The circle that lied

Round robin is the most honest-looking scheduler ever drawn. Arrange the active queues in a circle, move a pointer, give each one a turn. No queue appears favoured. Nothing is searched. The whole thing fits in a line of hardware. It is also, on a real packet link, quietly unfair — and the reason is hiding in plain sight.

A turn is not a unit of bandwidth. A packet is a container, not a measure. Let queue A always carry 1,500-byte packets and queue B always carry 500-byte packets. One from A, one from B, one from A, one from B: the pointer has been scrupulously even. The wire has not. A has moved three times as many bytes. The scheduler counted visits; the link spent capacity.

That gap — between the fairness of the pointer and the fairness of the wire — is the problem M. Shreedhar and George Varghese took up in a 1994 technical report and the 1995–96 paper, “Efficient Fair Queuing Using Deficit Round-Robin.” Earlier fair-queuing schemes could approximate a fluid allocation closely, but they paid for it in selection work. The cheap cyclic schemes were fast but inherited packet-size bias. DRR asked a smaller, sharper question: could a little memory keep the cheap cycle and repair its unit of account?

The counter that remembers

Every DRR queue carries two things: a quantum, measured in bytes, and a deficit counter. When the scheduler visits an active, non-empty queue, it adds the quantum to the counter. It looks at the packet at the head. If the packet fits inside the available credit, the scheduler transmits the whole packet and subtracts its size. It may keep going until the next head no longer fits.

The decisive move comes when a packet is too large for the remaining credit. The scheduler does not throw the remainder away, and it does not fragment the packet. If the queue stays backlogged, the counter survives. On the next visit, another quantum is added. A 1,500-byte packet facing a 1,000-byte quantum waits through the first visit holding 1,000 units of credit, collects another 1,000 on the next, transmits, and leaves 500 for the work that follows.

The counter does not remember an application’s promise or a particular human’s deprivation. It records unused service credit for a queue under this scheduler. If the queue empties, the counter resets — which stops an idle source from banking an unlimited burst claim for later. A single small state variable repairs the mismatch between indivisible packets and byte-based shares over repeated rounds.

The quantum writes the weight

Equal quanta express equal intended long-run shares among queues that stay backlogged. Unequal quanta turn the same mechanism into weighted service: a queue with twice the quantum can be assigned roughly twice the long-run link share, subject to packetisation error and the active set.

The paper bounds service around the number of opportunities multiplied by the queue’s quantum, with an error tied to maximum packet size. That is a stronger and more careful claim than saying every instant is equal. During a short interval one queue may be ahead because a whole packet just crossed the wire. Over continued service, retained deficits compensate the shortfall instead of erasing it at each rotation.

The same accounting explains the algorithm’s speed. DRR keeps an active list, visits queues in cyclic order, and uses simple additions, comparisons and subtractions. It never ranks every active flow by a changing timestamp. The original work presented nearly perfect throughput fairness with O(1) packet-processing work and an implementation simple enough for hardware, under its stated quantum and packet assumptions.

Those qualifications matter. “O(1)” is not a promise that every line card, queue hierarchy or classifier burns literally the same cycles. It describes how the scheduling operation scales, not a universal implementation cost. And the fairness bound does not turn packet transmission into ideal infinitesimal fluid service.

Fairness begins after classification

A scheduler can only be fair to the objects it can see. A DRR queue might correspond to one flow, a hashed group of flows, a customer, a traffic class, or a child scheduler. If ten applications collide in one queue while another application gets a private queue, DRR divides service between those queues. It does not reach inside the shared queue to restore per-application equality.

So “fair to flows” hides a control decision. Someone defines the flow key or class, chooses how many queues exist, assigns packets to them, and sets the quanta. A wrong classifier can turn a mathematically sound discipline into an operationally perverse allocation. A well-chosen quantum can express relative capacity; it cannot identify who deserves it.

Packet-size distribution is another condition. The tidy 1,500-versus-500 example exposes ordinary round robin’s bias, but it is not a measurement from a backbone router. Real queues carry changing mixes. Operators need maximum packet assumptions, observed distributions and active-set history before they read a counter or a fairness chart.

Throughput fairness is not a delay bound

The original paper says plainly that basic DRR gives fairness in throughput but no latency bounds, then explores augmentation for latency-sensitive service. That is not a footnote. A continuously backlogged queue can receive its bounded long-run share while an individual packet waits behind service opportunities for many other active queues. Queue count, quanta, packet sizes and hierarchy all shape the delay.

DRR also does not decide whether a packet should have entered the system. It is a scheduler: it chooses among eligible queued packets. Admission control asks whether work should be accepted. Shaping controls an arrival or departure rate. Active queue management decides when to mark or drop before a buffer fills. Congestion control changes sender behaviour. RFC 7567 lists fair-queuing schedulers, including DRR, while treating their role separately from AQM.

Combining these mechanisms can be sensible. Confusing them makes evidence unusable. A low DRR deficit is not proof of low congestion. A high counter is not a customer debt. Equal byte shares do not prove equal application latency, and a successful dequeue does not prove delivery across the network.

George Varghese’s place in the fast path

UCLA Samueli lists George Varghese as a Distinguished Professor of Computer Science and holder of the Jonathan B. Postel Chair in Networking. His work is associated with network algorithmics: find the bottleneck in a router or an end system, then match the algorithm to the hardware and the implementation constraints. UCLA records that he joined in 2016 after Microsoft Research and faculty appointments at UC San Diego and Washington University in St. Louis.

ACM SIGCOMM recognised him in 2014 for sustained, diverse contributions to network algorithmics with impact in research and industry. The Internet Hall of Fame, which inducted him in 2021, cites DRR among those contributions and reports its historical use in Cisco’s Gigabit Switch Router.

Yet the historical grammar must stay plural. The paper lists M. Shreedhar first and George Varghese second. DRR is their joint work. Profiling Varghese can illuminate the network-algorithmics method — begin with the precise resource a fast path consumes, preserve a cheap structure, add only the state needed to correct it — without manufacturing a sole-inventor legend.

What the counter proves, and what it cannot

A deficit trace can show how much service credit a queue carried between visits. Together with its quantum, packet lengths and dequeue history, it can help reconstruct why a packet was or was not sent. It cannot identify a subscriber unless classification supplies that link. It cannot disclose the downstream path, the congestion state, or the application result.

For an audit, record the active queues, quantum per queue, packet-size distribution, counter evolution, queue occupancy and transmitted bytes. Keep separate records for drops or marks from AQM, shaping state, classifier changes and performance. If throughput shares look correct while tail latency deteriorates, that is not a contradiction: the two measurements answer different questions.

The deeper lesson is almost administrative. Fairness is not created by a symmetrical pointer. It emerges from the unit being counted, the history retained, and the population placed behind each counter. DRR made round robin count the link’s scarce unit rather than the envelope carrying it. It did not relieve operators of deciding whose traffic each envelope represents.

Sources