446 12 Scheduling Algorithms
The probability of k arrivals in one time step is given by
p
i,k
=
N
i
k
a
k
i
b
N
i
−k
i
k = 0, 1, 2,...,N
i
(12.28)
where a
i
is the Bernoulli probability of packet arrival, b
i
= 1 − a
i
, and N
i
is the
maximum number of packets that could arrive in one time step. N
i
is determined by
the maximum burst rate σ
i
as follows
N
i
=σ
i
× T (12.29)
where the ceiling function x is the smallest integer that is larger than or equal to
x. Assuming binomial distribution, we can estimate a
i
from the average number of
packets received in one time step:
a
i
× N
i
= λ
i
× T (12.30)
which gives
a
i
=
λ
i
× T
N
i
(12.31)
Because of our choice for the step size, the queue size can decrease by w
i
packets
at most at any instant with probability c
i
= 1.
From the above calculations, we are able to construct a transition matrix for the
queue of session i. Having done that, we are able to obtain expressions for the queue
parameters such as throughput, delay, and average queue length.
12.13 Max–Min Fairness Scheduling
Scheduling deals with the sharing of a resource among several users. However, not
all users have the same demands on the resource. In many cases, not all users require
an equal share of that bandwidth. How should we divide the bandwidth among all
users in a fair manner? One way to do that is to use the max–min policy.
Max–min sharing policy is an iterative technique for fair sharing of the resource.
For example, assume the outgoing link capacity is C and there are m users. Assume
user i requires a bandwidth λ
i
and the users are sorted such that
λ
1
≤ λ
2
≤···≤λ
m
(12.32)
The allocation of the bandwidth proceeds as follows:
1. Allocate the bandwidth equally among all users C/m.
2. If λ
1
< C/m, then give user 1 only λ
1
.