Presentation is loading. Please wait.

Presentation is loading. Please wait.

Leaky Bucket Algorithm. Generic Cell Rate Algorithm (GCRA) Used to define conformance with respect to the traffic contract –Define the relationship b.w.

Similar presentations


Presentation on theme: "Leaky Bucket Algorithm. Generic Cell Rate Algorithm (GCRA) Used to define conformance with respect to the traffic contract –Define the relationship b.w."— Presentation transcript:

1 Leaky Bucket Algorithm

2 Generic Cell Rate Algorithm (GCRA) Used to define conformance with respect to the traffic contract –Define the relationship b.w. PCR and the CDVT, and the relationship b.w. SCR and the BT Be a virtual scheduling algorithm or a continuous-state leaky bucket algorithm Be defined with two parameters: the Increment (I) and the Limit (L)  GCRA(I,L)

3 GCRA(I,L) Arrival of a cell k at time t a (k) TATt a (k) +L? TAT=t a (k) TAT=TAT+I Conforming cell No Yes Non Conforming cell X’<0? X’>L? X’=0 X=X’+I LCT=t a (k) Conforming cell No Yes Non Conforming cell X’=X-(t a (k)-LCT) Virtual Scheduling Algorithm Continuous-state Leaky Bucket Algorithm TAT: Theoretical Arrival Time ta(k): Time of arrival of a cell X: Value of the Leaky Bucket counter X’: Auxiliary variable LCT: Last Compliance Time

4 Virtual scheduling algorithm –Conforming cell –Non-conforming cell *At the time of arrival of the first cell of the connection, TAT = t a (k) Time t a (k) TAT(k) TAT(k+1)TAT(k-1) (a) Time t a (k) TAT(k) TAT(k+1) TAT(k-1) (b) Time t a (k) TAT(k-1) TAT(k) TAT(k-2)

5 Continuous-state leaky bucket algorithm –Conforming cell –Non-conforming cell *At the time of arrival of the first cell of the connection, X=0 and LCT=t a (k) I+L X L X’(=0) L ta(k)-LCT I+L X L X’ L ta(k)-LCT I L (a) I+L X L X’ L ta(k)-LCT (b)

6 These two algorithms are equivalent ( TAT=X+LCT ) –For any sequence of cell arrival times, they determine the same cells to be conforming and thus the same cells to be non- conforming The capacity of the bucket is L+I As L increases, the minimum inter-arrival time between conforming cells decreases Given GCRA(T,  ) and the transmission time of a cell required, , the maximum number N of conforming back-to-back cells, i.e., at the full link rate, equals

7 If a cell stream conforms to the SCR (=1/T s ), the BT (=  s ), and the PCR (=1/T), then it offers traffic conforming to GCRA(T s,  s ) and GCRA(T,0)  The maximum burst size (MBS) is Over any closed time interval of length t, the number of cells, N(t), can be emitted with spacing no less than T and still be in conformance with GCRA(T s,  s ) is bounded by

8 If the minimum spacing between bursts and the MBS (with inter-cell spacing T) are T I and B, respectively, and the cell stream is conforming with GCRA(T s,  s ), then T s and  s are chosen at least large enough to satisfy Time


Download ppt "Leaky Bucket Algorithm. Generic Cell Rate Algorithm (GCRA) Used to define conformance with respect to the traffic contract –Define the relationship b.w."

Similar presentations


Ads by Google