BBN Notes for Lecture 16 (4/2/97)
next previous contents

Flow Regulators


Simple Leaky Bucket Regulator


Leaky Token Bucket Regulator

Suppose we now want to allow some bursty data into the network but we want to limit the size of a burst.

Example:
If 12 cells arrive at once at a time when there are 7 tokens in the token bucket, then there would be a burst of 7 cells. The five (12-7) remaining cells would enter the network at a rate of 1/ seconds.


NOTE: In any time interval of length T, the maximum number of cells allowed into the network = M + T. If you have a large M, then you do not have regulation.

Approximate Analysis of Leaky Token Bucket Regulator


State Diagram


Assume number of cell arrivals between consecutive token arrivals is Ai
Let aj = P{j arrivals in 1/ period of time} = P{Ai = j}. independent of i.
Assume Ai's are independent.

Same state diagram as G/D/1 output queueing model.
As in the output queue case, we can solve the balance equations, e.g.

recursively to get pn = P{system is in state n}.

Note that exactly one token is generated in each 1/ interval, except when n = 0 and there are no cell arrival in that interval. Thus, the token generation rate is (1 - p0a0).

In steady state this should equal , the cell arrival rate, so we have

or



We can also compute the mean waiting time (in seconds) for a cell to get a token:

E{W} = 0 p0 + 0 p1 + . . . + 0 pM + 1/ pM+1 + 2/ pM+2 + . . .


BBN Notes for Lecture 16 (4/2/97)
next previous contents
Notes taken by Russ Ford from a lecture by Professor Kenneth Vastola of RPI on 4/02/97