270 likes | 360 Views
DRR Slide Show. DRR Example:. Quantum = 50. deficit counters. queues. 40. 40. 10. 30. 0. 20. 30. 10. 45. 0. 40. 10. 20. 20. 0. 40. 40. 20. 35. 0. DRR Example:. Quantum = 50. deficit counters. queues. 40. 40. 10. 30. 50. 20. 30. 10. 45. 0. 40. 10. 20. 20.
E N D
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 0 20 30 10 45 0 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 50 20 30 10 45 0 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 20 20 30 10 45 0 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 0 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 50 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 50 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 30 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 10 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 0 40 40 20 35 0
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 10 40 40 20 35 50
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 10 20 30 10 45 5 40 10 20 20 10 40 40 20 35 15 Note that we have completed one round. Observation: no flow has enough quota to send another message.
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 60 20 30 10 45 5 40 10 20 20 10 40 40 20 35 15
DRR Example: Quantum = 50 deficit counters queues 40 40 10 30 20 20 30 10 45 5 40 10 20 20 10 40 40 20 35 15
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 45 50 0 40 10 20 20 50 0 40 40 20 35 50 0
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 45 50 0 40 10 20 20 50 0 40 40 20 35 50 0 setup: request = 45 < deficit counter = 50 suspension flag not set decision: grant
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 0 50 0 40 10 20 20 50 0 40 40 20 35 50 0 If previous setup was blocked: teardown ack 0, so do not subtract from deficit counter
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 45 5 0 40 10 20 20 50 0 40 40 20 35 50 0 If previous setup was successful: teardown ack 45, so subtract 45 from deficit counter
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 45 5 0 40 10 20 20 50 0 40 40 20 35 50 0 Next request wants 10, but 10 > deficit counter...
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 50 0 20 30 10 45 55 1 40 10 20 20 50 0 40 40 20 35 50 0 Next request wants 10, but 10 > deficit counter… so block, set suspension flag and (pre)increase deficit coutner.
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 60 1 20 30 10 45 55 1 40 10 20 20 50 1 40 40 20 35 65 1 Eventually, all flows would have exhausted the original 50 units assigned to their deficit counters… Observe that all suspension flags are set. Start a new round.
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 60 0 20 30 10 45 55 0 40 10 20 20 50 0 40 40 20 35 65 0 Starting a new round: Clear all suspension flags.
dDRR Example: Quantum = 50 deficit counters suspension flag queues 40 40 10 30 60 0 20 30 10 45 55 0 40 10 20 20 50 0 40 40 20 35 65 0 request = 10 < deficit counter = 55, suspension flag is unset, decision: grant