Transport, chapter 22 of 36
Congestion Control: From Collapse to BBR
In October 1986 the throughput between two Berkeley sites 400 yards apart fell from 32 kbit/s to 40 bit/s.
The handshake told the server that the laptop can buffer 64,240 bytes. It said nothing about how fast the path is. So a Linux sender allows itself at most ten segments, 14,480 bytes of payload, before the first acknowledgments come back 12 ms later.
- 212 ms
- the Linux retransmission timer on our path, where RFC 6298 asks for one second
- 400 ms
- of queue in one megabyte of buffer in front of a 20 Mbit/s uplink
- 17 years
- of CUBIC as the Linux default before RFC 9438 made it a Proposed Standard
One flow, one bottleneck, 12 ms
Our connection simulated one round trip at a time. Pick an algorithm, set the bottleneck, the buffer, and a random loss rate, and press Run.
How does a sender start when it knows nothing about the path?
An ACK means a segment has left the network, so a sender that sends one segment per ACK runs at the rate of the slowest link. Jacobson called this self-clocking, and at the start there is no clock. Slow start adds a congestion window that grows by one segment for each ACK of new data, so it doubles every round trip.
Doubling overshoots: in the round in which the window passes the capacity of the path plus its buffer, up to half the flight can be lost.
How long should a sender wait before it retransmits?
Long enough that a timeout almost certainly means a loss. Jacobson set the timer to the mean RTT plus four mean deviations. RFC 6298, Section 2 keeps the rule and says that any value below one second SHOULD be rounded up to one second.
On our path the formula yields 36 ms, and the floor turns that into one second. Neither stack keeps the floor. Linux uses 200 ms as the minimum of the variation term, about 212 ms on our path. FreeBSD 15.1 adds 200 ms of slop to the formula, about 236 ms, over a 30 ms floor [Linux2026] [FreeBSD2026].
What does a sender do when one segment goes missing?
It shrinks its window by a factor and grows it by a constant. A footnote names the source: "We copied Jain's scheme", from Raj Jain of DEC. The DEC scheme needed a header bit that gateways would set. Jacobson used packet loss, a signal "delivered automatically by all existing networks" [Jacobson1988]. DEC cut the window to 7/8. Jacobson chose one half by what the paper calls "handwaving".
The increase is one segment per round trip. Three duplicate ACKs trigger fast retransmit before the timer fires (RFC 5681, Section 3.2), and the count of three doubles as an allowance for reordering.
Why did Linux replace Reno with a cubic polynomial?
One segment per round trip does not scale. To fill 10 Gbit/s at 100 ms with 1,500-byte packets, a Reno connection needs an average window of 83,333 segments and at most one congestion event every 1 2/3 hours (RFC 3649, Section 1). Linux made CUBIC its default in version 2.6.19 of 2006.
CUBIC grows the window as a function of the time since the last congestion event, and a Reno-friendly estimate runs alongside. On our path the estimate wins. A loss at 100 segments leaves the window at 70, and the estimate passes 100 after 57 rounds, 0.68 seconds, when the cubic curve stands at 82.
Where do the packets wait?
In front of the slowest link, in whatever memory the device has. Nagle saw where that leads in RFC 896: "The more memory added, the longer round-trip times must become before packets are dropped." Reno and CUBIC speed up until a FIFO overflows, so every connection through the bottleneck waits behind a full buffer (RFC 9743, Section 5.1.2).
As memory got cheaper, buffers grew. RFC 8289 calls the result bufferbloat. A megabyte of buffer in front of a 20 Mbit/s uplink holds 400 ms, more than 30 round trips of our path.
What if the sender measured the pipe instead of filling it?
Random loss means low throughput: at 1 percent loss over 100 ms, CUBIC sustains at most 3 Mbit/s [Cardwell2026]. BBR, published in 2016 by a Google team with Van Jacobson [Cardwell2016], models the path from the maximum delivery rate over the last ten round trips and the minimum RTT over the last ten seconds.
In steady state it caps the flight at twice the estimated bandwidth-delay product, and in deep buffers it runs into that cap, which does not count the competing loss-based flows. A single BBR flow took 35 to 40 percent of the link against as many as 16 CUBIC flows [Ware2019].
The book keeps asking
This chapter has 5,731 words and 15 questions. These 9 are answered only in the book and the audiobook.
- What happened in October 1986?
- Why count duplicate ACKs when the sender has a clock?
- What can a router do besides drop the newest packet?
- Can the network say "slow down" without dropping anything?
- Why is one congestion signal per round trip not enough?
- How small can a queue get?
- Who decides what is fair?
- Can a connection start where the last one stopped?
- What does the laptop actually run?
Open the sources
- RFC 5681 TCP Congestion Control
- RFC 6298 Computing TCP's Retransmission Timer
- RFC 8985 The RACK-TLP Loss Detection Algorithm for TCP
- RFC 9438 CUBIC for Fast and Long-Distance Networks
- RFC 3168 The Addition of Explicit Congestion Notification (ECN) to IP
- RFC 9768 More Accurate Explicit Congestion Notification (AccECN) Feedback in TCP
- RFC 9330 Low Latency, Low Loss, and Scalable Throughput (L4S) Internet Service: Architecture
- [Jacobson1988] Congestion Avoidance and Control. Revised version (November 1988) of the paper in Proceedings of ACM SIGCOMM '88, pp. 314-329
All 53 documents this chapter cites, each with a link to its publisher and a copy kept here.
