1 / 23

Traffic Management at the Packet Level Cont. Fair and Weighted Fair Queuing

Transmission & Switching NETW601 Tutorial (9). Traffic Management at the Packet Level Cont. Fair and Weighted Fair Queuing. Eng. Hadil Hisham Eng. Mariham Wasfy. Problem with previous strategies. NO FAIRNESS among users.

grantd
Download Presentation

Traffic Management at the Packet Level Cont. Fair and Weighted Fair Queuing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Transmission & Switching NETW601 Tutorial (9) Traffic Management at the Packet Level Cont.Fair and Weighted Fair Queuing Eng. Hadil Hisham Eng. Mariham Wasfy

  2. Problem with previous strategies • NO FAIRNESS among users. • Ex: HOL queuing (high priority queues served until empty disregarding the pkts from which user)

  3. Fair Queuing • Each user flow has its own buffer • Ideal Case (bit by bit fair queuing) • Divide the BW equally among all non empty buffers (If total transmission capacity C bps, then each flow has C/n bps, assuming n-flows) Pkt flow 1 C/n bps Tx Link C bps Pkt flow 2 C/n bps Approximated bit level round robin service Pkt flow n C/n bps

  4. Bit by bit fair queuing • Disadvantage: • Introduction of framing information and extensive processing at the o/p • Example: • Buffer 1: arrival at t=0, length=1 • Buffer 2: arrival at t=0, length=2 t=0 t=0

  5. t=0 t=0 Pkt Size Both Packets are served at rate=1/2 4 3 2 Packet from buffer 2 served at rate=1 1 Time 0 1 2 3 4 5 6

  6. Packet by Packet Fair Queuing (practical case) • Pkts are transmitted from the buffers, so the pkt completion time approximates those of an ideal fair queuing systemhow? • The completion time is derived from ideal bit by bit queuing and this number is used as a finish tag for the pkt • Next pkt to be transmitted is the one with smallest finish tag F

  7. t=5 t=0 Calculate a finish tag for each pkt arriving at the buffers assuming ideal case t=0 t=6

  8. t=0 - Total rounds to output pkt = 3 rounds - Total time = 3sec 1 round = 1unit out t=5 t=5 t=0 t=0 1 round =1unit out 1 round =1unit out t=0 - Total rounds to output pkt 1 = 3 rounds - Total time = 5 secTotal rounds to output pkt 2 = 2 rounds - Total time = 4sec 1 round = 1unit out 1 round = 1unit out 1 round = 1unit out 1 round = 1unit out 1 round = 1unit out

  9. Finish Tag • For a pkt arriving at empty buffer (you have to consider a finish tag of previous pkts in buffer if it’s not empty) F(i,k)=R(t)+P(i,k) • Where, • F(i,k): finish tag of kthpkt in buffer i, arriving at time t • R(t):number of rounds at time (t)number of cycles of services that have been completed at time t (1/sum of active buffers (buffers that have pkts)) • P(i,k): pkt length Buffer i, pktk

  10. Finish tag-non empty buffer F(i,k)= F(i,k-1)+P(i,k) • F(i,k-1): finish tag of previous pkt in buffer I F(i,k)=max{F(i,k-1),R(t)}+P(i,k) Example Buffer 1: arrival at t=0, length=1 Buffer 2: arrival at t=0, length=2 F(1,1)=R(0)+1=1 R(0)=0 F(2,1)=R(0)+2=2 F(1,1)<F(2,1) transmit pkts from buffer 1 @ beginning t=0 t=0

  11. t=0 t=0 Pkt Size Transmit pkt from buffer 1 @ rate=1 pkt @ buffer 2 wait 4 3 2 Packet from buffer 2 served at rate=1 1 Time 0 1 2 3 4 5 6

  12. Problem • Pkt by pkt fair queuing system: Buffer 1: arrival @ t=0, length =2 arrival @ t=4, length =1 Buffer 2: arrival @ t=1, length=3 arrival @ t=2, length=1 Buffer 3: arrival @ t=3, length=5 The rate of the transmission link is 1 unit/sec

  13. Pkt Size (3,1) 5 4 (2,1) 3 (1,1) 2 (2,2) (1,2) 1 Time 0 1 2 3 4 5 6 7 8 9 10 11 12

  14. Pkt Size (3,1) 5 4 (2,1) 3 (1,1) 2 (2,2) (1,2) 1 Time 0 1 2 3 4 5 6 7 8 9 10 11 12 R(0)=0 R(1)=1 R(2)=1.5 R(3)=2.5 R(4)=3

  15. Finish Tag Calculation R(0)=0 F(1,1)=R(0)+2=2 F(2,1)=R(1)+3=4 F(2,2)=max{F(2,1),R(2)}+1=4+1=5 F(3,1)=R(3)+5=7.5 F(1,2)=max{F(1,1),R(4)}+1=3+1=4 R(1)=1 R(2)=1.5 R(3)=2.5 R(4)=3 R(1)=R(0)+(R(t=0->t=1)=1/1)=1 R(2)=R(1)+(R(t=1>t=2)=1/2)=1.5 R(3)=R(2)+(R(t=2>t=3)=1/1)=2.5 R(4)=R(3)+(R(t=3>t=4)=1/2)=3

  16. Weighted Fair Queuing (WFQ) • Different users have different shares of the BW • Ex: • Buffer 1: has weight 1Receives ¼ of the BW • Buffer 2: has weight 3Receives ¾ of the BW • Assume bit by bit queuing (ideal case with weights) W i=1 t=0 W i=3 t=0

  17. W i=1 t=0 W i=3 t=0 Pkt Size Pkt from buffer 1 served @ rate=1/4 Pkt from buffer 2 served @ rate=3/4 4 3 2 Packet from buffer 1 served at rate=1 2/3 units left 1 Time 4/3 0 1 2 3 4 5 6

  18. Finish Tag • In each round, each non empty buffer would transmit a no. of pkts proportional to its weight • F(i,k)=max{F(i,k-1),R(t)}+P(i,k)/wi • So, for previous ex: F(1,1)=R(0)+1/1=1 F(2,1)=R(0)+1/3=1/3 F(2,1)<F(1,1) Start by pkt from buffer 2 R(0)=0

  19. W i=1 t=0 W i=3 t=0 Pkt Size Pkt from buffer 2 served @ rate=1 4 3 2 Packet from buffer 1 served at rate=1 1 Time 0 1 2 3 4 5 6

  20. Problem • Pkt by pkt fair queuing system: Buffer 1: arrival @ t=0, length =2 arrival @ t=4, length =1 Buffer 2: arrival @ t=1, length=3 arrival @ t=2, length=1 Buffer 3: arrival @ t=3, length=5 The rate of the transmission link is 1 unit/sec W 1=2 W 2=3 W 3=5

  21. Pkt Size (3,1) 5 4 (2,1) 3 (1,1) 2 (2,2) (1,2) 1 Time 0 1 2 3 4 5 6 7 8 9 10 11 12

  22. Finish tag calculation R(0)=0 R(3)=1.03 R(1)=0.5 F(1,1)=R(0)+2/2=1 F(2,1)=R(1)+3/3=1.5 F(2,2)=max{F(2,1),R(2)}+1/3=max{1.5,0.7}+1/3=1.83 F(3,1)=R(3)+5/5=2.03 F(1,2)=max{F(1,1),R(4)}+1/2=1.15+0.5=1.65 • R(t) is the reciprocal of the sum of the weights of active buffers at a given time R(4)=1.15 R(2)=0.7 R(1)=R(0)+(R(t=0->t=1)=1/2)=0.5 R(2)=R(1)+(R(t=1>t=2)=1/5)=0.7 R(3)=R(2)+(R(t=2>t=3)=1/3)=1.03 R(4)=R(3)+(R(t=t>t=4)=1/10)=1.15

  23. Pkt Size (3,1) 5 4 (2,1) 3 (1,1) 2 (2,2) (1,2) 1 Time 0 1 2 3 4 5 6 7 8 9 10 11 12 R(0)=0 R(1)=0.5 R(2)=0.7 R(3)=1.03 R(4)=1.15

More Related