A TCP sender knows neither the bandwidth of its path nor how many other connections share the link. What it can observe is how fast ACKs come back and whether packets go missing. A congestion control algorithm decides how to read those limited signals and how to react. Reno and CUBIC treat packet loss as the congestion signal. BBR builds a model of the path from measured bandwidth and RTT.

Any summary of TCP congestion control eventually says “congestion avoidance is AIMD.” Increase by adding, decrease by multiplying. I wanted to know why that particular combination.

Congestion Collapse

In October 1986 the Internet saw its first congestion collapse. According to Van Jacobson’s Congestion Avoidance and Control (SIGCOMM ‘88), throughput between LBL and UC Berkeley — 400 yards apart — dropped from 32 Kbps to 40 bps. The links were unchanged, yet throughput fell to roughly 1/800 of what it had been.

The slow start and congestion avoidance that Jacobson proposed in that paper are still the foundation of TCP congestion control. A sender tracks the congestion window (cwnd): the upper bound on how much data it may send before receiving ACKs. The current standard, RFC 5681, adjusts cwnd during congestion avoidance as follows. SMSS is the sender’s maximum segment size, and FlightSize is the amount of data sent but not yet acknowledged.

  • Increase: grow cwnd by roughly 1 SMSS per RTT
  • Decrease: on loss, set ssthresh = max(FlightSize / 2, 2 * SMSS) and cut cwnd to roughly half

Adding a fixed amount per RTT is additive increase. Multiplying by a fixed ratio on loss is multiplicative decrease. Together: AIMD.

AIMD

Dah-Ming Chiu and Raj Jain’s 1989 paper Analysis of the Increase and Decrease Algorithms for Congestion Avoidance in Computer Networks used a model to show why this combination is needed. The model is simple. Two connections share a link of capacity C, and each receives only one bit of feedback: congested or not. Without congestion they increase their rate; with congestion they decrease it. In real TCP, that one bit is packet loss. The model aims for efficiency and fairness.

  • Efficiency: the total rate x₁ + x₂ stays close to C
  • Fairness: both connections get the same share, x₁ = x₂

Plotting the two rates as a point (x₁, x₂) turns every state change into a move on a plane. This is the Chiu–Jain phase plot.

AIMD converging to fairness (Chiu–Jain phase plot)StartOptimal pointFairness line x₁ = x₂Efficiency line x₁ + x₂ = COverload (loss)UnderutilizedConnection 1 rate x₁Connection 2 rate x₂AI: both add the same amountMD: both cut by the same ratio

Below the efficiency line the link has spare capacity. Above it, the link is overloaded and drops packets. The target is where the fairness line and the efficiency line cross.

Additive increase adds the same amount to both connections. The point moves at 45 degrees, parallel to the fairness line, and the difference x₁ − x₂ stays the same.

Multiplicative decrease multiplies both connections by the same ratio. The point moves toward the origin, and the difference shrinks by that same ratio. Halving the rates halves the difference.

Alternating the two keeps the difference constant during increase and cuts it at every decrease. The point oscillates around the efficiency line while converging toward the fairness line. In the figure, even a start far from the fairness line ends up oscillating around the optimal point after a few decreases.

Other combinations do not get there.

  • AIAD: both increase and decrease add or subtract the same amount. The difference x₁ − x₂ never changes, so the initial unfairness stays. Figure 6 of the paper shows this case
  • MIMD: both increase and decrease multiply by a ratio. The point moves only along a line through the origin, so the ratio x₁ / x₂ never changes
  • MIAD: on increase the larger rate grows more; on decrease both lose the same amount. The difference keeps growing

The paper’s conclusion is that, for linear controls, decrease must be multiplicative and increase must have an additive component. Among the controls that satisfy this, they show that AIMD is optimal.

The model assumes both connections receive the same feedback at the same moment. Real TCP increases once per RTT, so a connection with a shorter RTT increases more often in the same amount of time. When connections share the same bottleneck, the longer-RTT connection ends up with a smaller share. This is RTT unfairness.

Reno and NewReno

Reno implements AIMD directly. In congestion avoidance cwnd grows in a straight line. When three duplicate ACKs signal a loss, cwnd drops by half and fast recovery begins. Over time, cwnd traces a sawtooth.

Reno struggles when several packets are lost from one window. After the first lost packet is retransmitted, Reno leaves fast recovery even if the returning ACK does not cover the whole window. The remaining losses have to wait for a new set of duplicate ACKs or a timeout. NewReno, in RFC 6582, treats that ACK as a partial ACK, stays in fast recovery, and immediately retransmits the next unacknowledged segment.

The bigger limit of the Reno family is its growth rate. At 1 SMSS per RTT, getting a halved cwnd back to its original size takes as many RTTs as half the original cwnd. Filling a link takes bandwidth × RTT worth of data in flight, a quantity called the BDP (bandwidth-delay product). On a 10 Gbps path with a 100 ms RTT, the BDP is 125 MB, or about 83,000 segments of 1500 bytes. Recovering from a single loss takes about 41,000 RTTs — more than an hour. On paths with both high bandwidth and high latency, most of the time is spent below link capacity.

CUBIC

CUBIC replaces the 1 SMSS per RTT increase with a cubic function. It replaced BIC as the default in Linux 2.6.19 in 2006, and in August 2023 moved to the Standards Track as RFC 9438, obsoleting RFC 8312.

During congestion avoidance the window follows this function.

W_cubic(t) = C × (t − K)³ + W_max
K = ∛((W_max − cwnd_epoch) / C)
  • W_max: the window at the last loss
  • t: seconds elapsed since the current congestion avoidance stage began
  • K: the time it takes for the window to reach W_max again
  • C: how aggressively the window grows. The RFC recommends 0.4

On loss, the window is multiplied by 0.7. That is a smaller cut than Reno’s 0.5, so throughput drops less right after a loss.

cwnd over time: Reno vs CUBICReno: +1 SMSS per RTT, halve on losscwndW_maxCUBIC: cubic curve, ×0.7 on losscwndW_maxConcave: fast recovery to W_maxSlow near W_maxConvex: probe for moreTime →Loss

The shape of the cubic curve drives the behavior. Right after a loss the window is far from W_max, so it grows fast (concave). Near W_max the slope approaches zero, and the window passes the size that last caused a loss slowly. If there is still no loss past W_max, growth speeds up again to probe for more bandwidth (convex).

What matters is that growth is a function of elapsed time, not of RTT. Connections with different RTTs grow by the same amount over the same time, which reduces Reno’s RTT unfairness. Still, what CUBIC changed is the response to loss. The signal is still loss.

Short-RTT paths raise the opposite problem: the cubic curve can grow more slowly than Reno’s 1 SMSS per RTT. CUBIC also tracks W_est, the window Reno would have reached, and uses it whenever W_cubic is smaller. RFC 9438 calls this the Reno-friendly region. It keeps CUBIC from getting less than Reno on short-RTT paths.

Limits of Loss-Based Control

Reno and CUBIC both use loss as the congestion signal.

Deep Buffers

Loss happens only after the bottleneck router’s buffer is full. A loss-based algorithm keeps growing its window until it sees a loss, so it ends up running with the bottleneck buffer full. With a large buffer, throughput stays the same while queuing delay keeps climbing. Jim Gettys named this excessive buffering “bufferbloat” in a 2010 blog post and later wrote it up with Kathleen Nichols as Bufferbloat: Dark Buffers in the Internet (ACM Queue, 2011).

Loss Unrelated to Congestion

On paths such as wireless links, packets are lost to bit errors regardless of congestion. A loss-based algorithm reads these losses as congestion too and shrinks its window. Throughput stays low even when the link is idle.

The deep-buffer problem becomes clear when you plot RTT and delivery rate against the amount of data in flight.

RTT and delivery rate vs. inflightApp-limitedBandwidth-limitedBuffer-limitedRTTRTprop (propagation delay)Delivery rateBtlBw (bottleneck bandwidth)BDPBDP + bufferData in flight →BBR operating pointLoss-based operating point
  • inflight < BDP (app-limited): the link is not full. RTT equals the propagation delay (RTprop), and delivery rate grows with inflight
  • BDP ≤ inflight < BDP + buffer (bandwidth-limited): the link is full. Delivery rate stays at the bottleneck bandwidth (BtlBw), and extra data waits in the queue, only adding RTT
  • inflight ≥ BDP + buffer (buffer-limited): the buffer overflows and packets are lost

Delivery rate is at its maximum and RTT at its minimum when inflight equals the BDP. Leonard Kleinrock showed in 1979 that this operating point is optimal. A loss-based algorithm gets its signal only after entering the third region, so it operates near the point where the buffer overflows, not at the optimum. Loss unrelated to congestion cuts the window even in the first region, making the sender back off before the link is full.

BBR

BBR (Bottleneck Bandwidth and Round-trip propagation time) was published by Neal Cardwell and colleagues at Google in BBR: Congestion-Based Congestion Control (ACM Queue, 2016) and merged into Linux 4.9 the same year. Instead of waiting for loss, it targets the optimum directly: inflight = BDP.

Path Model

BBR keeps estimating two values.

  • BtlBw: the maximum delivery rate measured over roughly the last 10 rounds
  • RTprop: the minimum RTT measured over the last 10 seconds

Their product is the BDP estimate. The sending rate is set to pacing_gain × BtlBw, and the inflight cap (cwnd) to cwnd_gain × BDP. Reno and CUBIC use cwnd to decide only how much to send, and release data as ACKs come back. BBR also uses pacing — spacing packets out to match a target rate — to decide how fast to send it.

The two values cannot be measured at the same time. Confirming BtlBw requires filling the link, which builds a queue, and a queue hides RTprop. Seeing RTprop requires an empty queue, and then BtlBw cannot be confirmed. BBR solves this with a state machine that measures them in turn.

States

Linux’s net/ipv4/tcp_bbr.c defines the following states.

  • Startup: a pacing gain of 2/ln2 (about 2.89) doubles the sending rate every RTT. When delivery rate stops growing much for a few rounds, BBR concludes it has reached BtlBw
  • Drain: sends at the inverse of the Startup gain to empty the queue built up during Startup
  • ProbeBW: where BBR spends most of its time. The gain cycles through eight phases: 5/4, 3/4, 1, 1, 1, 1, 1, 1. The 5/4 phase checks whether more bandwidth is available, and the 3/4 phase drains the queue that probe created
  • ProbeRTT: entered when the RTprop estimate has not been refreshed for 10 seconds. BBR cuts inflight to a minimum and holds it for 200 ms to re-measure RTT with an empty queue

The opening comment of the v1 source says “The core algorithm does not react directly to packet losses or delays.” Loss is not a congestion signal for BBRv1. The design keeps the sending rate up even on paths with loss unrelated to congestion.

Coexisting with Loss-Based Flows

Ignoring loss became a problem when BBR shared a bottleneck with other algorithms.

When the buffer overflows, loss-based flows shrink their windows, but BBRv1 does not react to loss directly. Only one side backs off.

BBRv3

Later versions bring loss and ECN back as signals. As of November 2026, the latest IETF document, draft-ietf-ccwg-bbr-07, specifies BBRv3 as Experimental.

  • If the loss rate in a bandwidth-probing round exceeds 2% by default (BBR.LossThresh), BBR stops probing and lowers its inflight cap
  • When reacting to loss it multiplies its inflight cap by 0.7 (BBR.Beta), the same factor as CUBIC
  • When ECN (Explicit Congestion Notification) is in use, CE marks set by routers MUST be treated as congestion

Linux mainline’s tcp_bbr.c is still v1. BBRv3 ships as a separate branch of the google/bbr repository and, as far as I could verify, has not been merged into mainline.

Linux Configuration

The Linux kernel’s default is CUBIC, and congestion control can be changed per connection.

# Available algorithms and the current default
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control

# Make BBR the default for new connections (bbr must be in the available list)
sysctl -w net.ipv4.tcp_congestion_control=bbr

tcp_congestion_control applies only to new connections. To change a single socket, use the TCP_CONGESTION option of setsockopt. Unprivileged processes can pick only from the algorithms listed in tcp_allowed_congestion_control.

Congestion control runs only on the sender. Whatever the receiver uses does not matter, so a server-side setting is enough to change it. For workloads where data flows mostly from server to client, such as large downloads or video delivery, the server’s choice determines throughput.

When CUBIC fits:

  • The bottleneck is shared with other loss-based flows, and fairness with them matters
  • Most loss on the path comes from congestion
  • No measurement has shown a reason to switch from the default

When BBR fits:

  • The path is long and includes loss unrelated to congestion, such as a wireless hop
  • The bottleneck buffer is deep, and queuing delay inflates response times
  • You run the sending servers yourself and can choose the algorithm and measure its effect

Mainline bbr is v1, so on paths where it shares a bottleneck with CUBIC flows, the coexistence problem from the previous section applies.

Either way, after switching algorithms, watch throughput, RTT, and retransmission rate together. If throughput went up because other flows on the same path lost theirs, that is part of the result too.

Wrapping Up

AIMD was a way to approach both efficiency and fairness with a single bit of feedback. Reno carried it over as is. CUBIC replaced the growth function with a cubic curve to handle large-BDP paths and RTT differences. But both use loss as the congestion signal, so they react only after the buffer overflows and back off even for loss unrelated to congestion. BBR switched the signal to measured bandwidth and RTT to target the optimum directly, and BBRv3 reintroduced loss as a signal for the sake of coexistence. In the end, congestion control algorithms differ in what they treat as a sign of congestion.

References

  • TCP and UDP — the basic stages of congestion control: slow start, fast retransmit, and fast recovery