Deficit Round Robin

Deficit round robin (DRR), also deficit weighted round robin (DWRR), is a modified weighted round robin scheduling discipline. DRR was proposed by M. Shreedhar and G. Varghese in 1995. It can handle packets of variable size without knowing their mean size. A maximum packet size number is subtracted from the packet length, and packets that exceed that number are held back until the next visit of the scheduler.

WRR serves every non-empty queue whereas DRR serves packets at the head of every non-empty queue whose deficit counter is greater than the packet's size at the head of the queue (HoQ). If the deficit counter is lower, then the queue is skipped (HoQ packet is not served) and its credit is increased by some given value called quantum. This increased value is used to calculate the deficit counter the next time around when the scheduler examines this queue for serving its head-of-line packet. If the queue is served, then the Credit is decremented by the size of packet being served.

Compared with Fair queueing (FQ) scheduler that has complexity of O(log(n)) (n is the number of active flows), the complexity of DRR is O(1).

The major advantage of this method of scheduling is that it does not require the size of the incoming packets on the different links to be known to the scheduler, as opposed to a simpler weighted round robin scheduling.

Famous quotes containing the word robin:

    It is now many years that men have resorted to the forest for fuel and the materials of the arts: the New Englander and the New Hollander, the Parisian and the Celt, the farmer and Robin Hood, Goody Blake and Harry Gill; in most parts of the world, the prince and the peasant, the scholar and the savage, equally require still a few sticks from the forest to warm them and cook their food. Neither could I do without them.
    Henry David Thoreau (1817–1862)