Summary
- Receive livelock happens when the cost of answering arrivals eats the CPU time needed to push packets through protocol, output or application work. The machine runs flat out; delivered throughput can hit zero.
- Mogul and Ramakrishnan paired interrupt-triggered polling with round-robin service, per-callback quotas, early discard, downstream queue feedback and a measured CPU share. Polling without a quota still collapsed.
- Their evidence came from a deliberately slow single-CPU DECstation on 10-Mbit/s Ethernet. The tested five-to-ten-packet quota and queue watermarks were bounded settings, not universal modern defaults.
A machine sprinting at full speed, delivering nothing
Picture the worst kind of busy. The fans roar, the activity light strobes, the CPU sits pinned near one hundred percent, and the application waiting behind it receives—nothing. Not a trickle. Nothing.
An interrupt is a promise of urgency: a device tells the processor something happened, and the operating system drops lower-priority work to answer. That bargain is superb when arrivals are rare. It turns savage when packets arrive faster than the machine can finish them.
In the 4.2BSD-derived design that Jeffrey C. Mogul and K. K. Ramakrishnan took apart, a receive interrupt pulled packets off the interface and dropped them onto an IP input queue. Protocol processing ran later, at lower priority. So every fresh arrival could pre-empt the very work needed to drain the queue. Once input got fast enough, the queue filled, each later packet was discarded only after the machine had already spent effort on it, and no packet reached the application or the output wire.
The authors called it receive livelock. It was not deadlock—ease the input rate and the system recovered. But during the overload, a monitoring panel showed relentless CPU activity and a river of serviced interrupts while useful throughput sat at zero.
That definition quietly moved the goalposts, and that was the point. Throughput was not packets noticed by the adapter or copied into memory. It was packets delivered to their ultimate consumer—an application, or the transmitting interface of a router. Receive and transmit were one completion path, and the paper refused to let anyone count the first half and call it done.
Interrupt priority was a hidden scheduler
The operating-system scheduler never chose this collapse. In the traditional design, it barely saw the work at all. Fixed interrupt priorities decided which code ran first, and receive work held an authority stronger than the scheduler's ordinary fairness rules.
The damage went beyond lost payload. A router starved of transmit work might delay routing control messages; neighbours could misread that delay as a dead link and answer with more control traffic. A local management process could lose its turn to run at precisely the moment the machine most needed inspecting.
Batching interrupts did not cure the structure. It amortised the cost of entering the handler and could lift the maximum loss-free receive rate, but it only moved the point at which overload took over. Faster admission was still not guaranteed completion.
Let the interrupt knock—don't let it move in
Mogul and Ramakrishnan kept interrupts for light load, because they bought low latency without constant polling. Under heavy load, the handler did almost nothing: it flagged the device as needing service, scheduled a polling thread and left further device interrupts disabled.
The polling thread then walked the registered event sources in round-robin order. It handled receive and transmit work, handed each callback a packet quota, and re-enabled an interface's interrupts only after its pending work had drained. Once a packet was accepted from the device, the kernel tried to push it as far toward completion as possible rather than parking it at the next priority boundary.
This was not a slogan of “interrupts bad, polling good.” Pure polling burns cycles and adds latency when traffic is quiet. The useful design switched modes: an interrupt discovered unpredictable work; bounded polling governed predictable saturation. The interrupt was invited to knock, not to move in.
The experiment that killed the slogan
The paper supplied its own warning against turning the result into a bumper sticker. When the modified kernel polled without a quota, throughput fell almost to zero again above the loss-free rate.
The input callback always found another packet, so it never returned to the polling loop. The loop therefore never reached the transmit-completion callback. Output descriptors went unreleased, the output queue filled, and packets were discarded late in the path—after more work had been sunk into them than in the original kernel.
Polling had changed the mechanism without breaking the monopoly. The quota, not the word “polling,” created a turn for output. On the tested hardware, quotas of five to ten packets produced stable, near-optimum forwarding; larger turns amortised polling overhead but raised latency and starvation risk. The authors were explicit that another processor and interface could demand another number.
Drop before the investment, then listen to the next queue
Under overload, some offered packets simply cannot be completed. The only real question is where the system learns that fact. Dropping at the interface costs almost nothing. Dropping after driver work, protocol work and queueing burns scarce cycles on a packet that will never become throughput.
Early discard therefore served efficiency, while feedback served progress. In the screend experiment, the kernel stopped input when the downstream screening queue hit 75% full, resumed at 25%, and used an approximately one-millisecond timeout as a safety valve. Those numbers were openly arbitrary. The principle was the evidence loop: when a later stage cannot drain, the entrance must stop pretending that more admission is success.
A second loop measured the CPU cycles spent on packet processing in ten-millisecond windows. Once the configured share was consumed, input paused so user processes and housekeeping could run. The machine became far more responsive to a local user. Network interaction still suffered, because overload was being shed as packet loss. Reserved CPU was a bounded improvement, not an availability miracle.
The receipts—and the fine print
The router under test was a DECstation 3000/300 running Digital UNIX V3.2, chosen precisely because it was the slowest Alpha machine available. It bridged two otherwise idle 10-Mbit/s Ethernets. Each trial fired 10,000 UDP packets with four bytes of payload; the source was not precisely paced, so the rates were averages over several seconds.
With the unmodified kernel and user-mode screend, poor overload behaviour began above roughly 2,000 packets per second and complete livelock appeared near 6,000. Without screend, forwarding peaked around 4,700 packets per second, and the authors expected livelock before minimum-sized Ethernet traffic could reach its physical maximum.
The numbers are valuable because the report carries their limits on the same page. The authors said they could not extrapolate to the faster LANs and CPUs of the day. They had not demonstrated true symmetric-multiprocessor behaviour. Their early-drop design decided when to discard, not which application, flow or partial video frame deserved protection.
The paper also notes that an early version had been deployed in routers used for the NASDAQ financial network. That proves operational contact, not independent validation of every result. The scientific receipt remains the published workload, machine, queues, thresholds and measured output.
A modern echo, not a universal recipe
Today's Linux NAPI documentation describes a recognisable shape: a device interrupt schedules a poll instance, drivers keep interrupts masked until polling finishes, and a work budget bounds each poll cycle. Linux also exposes packet and time budgets, backlog limits and explicit trade-offs between batching, CPU use and latency.
The resemblance is useful, but it should not be inflated into a claim that every NAPI path is a direct copy of this paper, or that every overloaded host is livelocked. Diagnosis still demands the same disciplined evidence: offered load rises; interrupt or receive work eats the budget; later stages stop progressing; and useful output falls instead of holding near capacity.
Google Research now describes Mogul's career across DEC/Compaq WRL, HP Labs and Google's networking infrastructure, alongside his Internet standards work. The receive-livelock paper remains joint work with Ramakrishnan. Its historical force lies less in any single kernel patch than in the metric it refused to accept: a busy entrance could no longer call itself a working system.
Sources
- Mogul and Ramakrishnan — WRL Research Report 95/8
- Stanford course archive — ACM journal paper mirror
- USENIX ATC 1996 paper record
- ACM TOCS journal version and DOI
- Google Research publication record
- Jeffrey C. Mogul — Google Research profile
- Official Google Research identity portrait
- Linux kernel NAPI documentation
- Linux network budget and backlog documentation
- Linux Symposium 2003 proceedings — NAPI discussion
- Heng Lu — Running-Code Primacy
- Heng Lu — Why Reality, Not Advocacy, Is the Product
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






