How the Internet works

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].

serverlaptop segments 1 to 5, segment 2 dropped on the wayACK for 1, then duplicate ACK with SACK 3duplicate ACK, SACK 3-4duplicate ACK, SACK 3-5fast retransmit of 2
From the book: Fast retransmit after three duplicate ACKs

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 2009, Draft Standard
  • RFC 6298 Computing TCP's Retransmission Timer 2011, Proposed Standard
  • RFC 8985 The RACK-TLP Loss Detection Algorithm for TCP 2021, Proposed Standard
  • RFC 9438 CUBIC for Fast and Long-Distance Networks 2023, Proposed Standard
  • RFC 3168 The Addition of Explicit Congestion Notification (ECN) to IP 2001, Proposed Standard
  • RFC 9768 More Accurate Explicit Congestion Notification (AccECN) Feedback in TCP 2026, Proposed Standard
  • RFC 9330 Low Latency, Low Loss, and Scalable Throughput (L4S) Internet Service: Architecture 2023, Informational
  • [Jacobson1988] Congestion Avoidance and Control. Revised version (November 1988) of the paper in Proceedings of ACM SIGCOMM '88, pp. 314-329 1988, free

All 53 documents this chapter cites, each with a link to its publisher and a copy kept here.

Transport, chapter 23 of 36

Beyond TCP: SCTP, DCCP, and Multipath

Names and Trust, chapter 24 of 36

DNS: The Namespace and the Wire Format

Names and Trust, chapter 25 of 36

Resolvers, DNSSEC, and Encrypted DNS

Names and Trust, chapter 26 of 36

TLS 1.3: The Handshake

Names and Trust, chapter 27 of 36

Certificates and the Web PKI

Applications, chapter 28 of 36

HTTP: Semantics and HTTP/1.1

Applications, chapter 29 of 36

HTTP/2: Multiplexing over One Connection

Applications, chapter 30 of 36

QUIC: A Transport in Userspace

Applications, chapter 31 of 36

HTTP/3: The Web on QUIC

Applications, chapter 32 of 36

Mail: SMTP and Forty Years of Patches

Applications, chapter 33 of 36

Time, Shells, and Files: NTP, SSH, Telnet, and FTP

The Whole Path, chapter 34 of 36

Measuring and Debugging the Path

The Whole Path, chapter 35 of 36

The Whole Journey, Byte by Byte

The Whole Path, chapter 36 of 36

Ossification and What Comes Next

You have reached the server. The book goes further.

Everything on this site is a short version. Follow the Packet is the long one: 36 chapters and about 280,000 words, with every protocol fact traced to the section of the standard that defines it, every byte dump built by a script you can run, and a directory of more than a thousand cited documents. It comes as a printable book and as an audiobook.

Hear how chapter 1 opens. 70 seconds, narrated by a synthetic voice.

Get the book or the audiobook Read the start of chapter 1 Browse every source

Cover of Follow the Packet: How the Internet Works, Layer by Layer, from ARPANET to QUIC, by Wolfgang Kerschbaumer

The signup uses double opt-in. Every message includes an unsubscribe link.

Published by Sysinit Press. The public addresses, AS numbers and names of the scenario come from ranges reserved for documentation, and the home network uses private addresses, so the site describes no real network. RFC texts are copied unchanged from the RFC Editor.