Deficit Round Robin (DRR)
💡 The Core Idea
A scheduling algorithm that provides fair bandwidth allocation and handles variable packet sizes with complexity, avoiding the high cost of bit-by-bit fair queuing.
🧠Mechanism
Each flow is assigned:
- Quantum (): The bandwidth share per round (e.g., 500 bits).
- Deficit Counter (): Tracks unused credit.
The Algorithm
- In each round, add to .
- Send packets from the flow as long as .
- Decrement by the size of sent packets.
- If the queue is empty, reset to 0.