← Back to all chapters

Chapter 12Down the Rabbit Hole: BBR and the Pipe You Can't Measure All at Once

8 min read
rabbit-holenetworkingtcpcongestion-control

The numbers in the original BBR paper read like a typo. On Google's B4 backbone, BBR got 2 to 25 times the throughput of CUBIC. On one US-Europe path it sustained 2 Gbit/s where CUBIC managed 15 Mbit/s, a factor of 133. When YouTube switched, median RTT dropped 53% globally and more than 80% in the developing world.

Today BBRv3 runs all of google.com, YouTube's public traffic and Google's internal WAN. AWS CloudFront rolled BBR out in 2019 for up to 22% more aggregate throughput.

But Verizon's CDN saw a roughly 50% regression on links between its own points of presence, and kept CUBIC inside the data center. Dropbox found BBRv2 still caused about twice the packet loss of CUBIC. One algorithm, a huge win in one place and a clear loss in another. It all comes down to one simple model and the one thing it can't see.

The parking lot problem#

Picture a toll booth that passes exactly 100 cars a minute, with a parking lot behind it for cars that arrive too fast.

Reno and CUBIC keep sending until the lot overflows and a car is turned away (a loss), then cut back (CUBIC multiplies its window by 0.7) and creep up again. The lot is almost always full, so every car waits. That's bufferbloat: a 40 ms path can take hundreds.

BBR asks "what does this path look like?" and answers with two numbers:

  • BtlBw, the bottleneck bandwidth: the fastest rate cars come out of the booth.
  • RTprop, the round-trip propagation time: the trip time with an empty lot.

Their product is the bandwidth-delay product (BDP), the data that should be on the road to keep the booth busy with nobody waiting. BBR paces at BtlBw and keeps about one BDP in flight.

delivery rateround-trip timeBtlBwRTpropBBR sits hereBDPBDPdata in flightdata in flightqueue buildsCUBIC
Why BDP is the sweet spot: rate stops improving at the BDP, delay starts growing there. Schematic curves, not measurements.

You can't measure both at once#

To see true bandwidth the pipe must be full, so a queue is forming. To see true propagation delay the queue must be empty, so the pipe isn't full. One measurement gives you one of them.

This isn't a BBR quirk. Kleinrock showed in 1979 that the best operating point (max throughput, min delay) is exactly at BDP. Jaffe showed in 1981 that no distributed algorithm can converge to it exactly.

BBR measures them at different times, with filters that each err in only one direction:

  • Every RTT sample is at least RTprop, since queueing only adds delay. Take the minimum over a 10-second window.
  • Every delivery-rate sample is at most BtlBw, since competition only reduces it. Take the maximum over a short window.

Each filter converges toward the truth and never past it, as long as there's no measurement noise. Hold onto that condition.

BBR's loop, per ACK. Click a box.
The control loop as code
# per ACK: one delivery-rate sample
send_elapsed  = P.sent_time - P.first_sent_time
ack_elapsed   = now - P.delivered_time
interval      = max(send_elapsed, ack_elapsed)   # guards against ACK compression
delivery_rate = (C.delivered - P.delivered) / interval
 
max_bw  = windowed_max(delivery_rate)   # ~BtlBw
min_rtt = windowed_min(rtt_sample)      # ~RTprop, 10 s window
bdp     = max_bw * min_rtt
 
pacing_rate = pacing_gain * max_bw
cwnd        = cwnd_gain * bdp           # a safety cap, not the main control

Gains above and below one#

Sending at exactly the measured rate would never discover that bandwidth went up, so BBR runs a state machine of gains.

1/5Startup
gain 4 ln 2 = 2.77   rate doubles each RTT
pipe  [##########>>>>>>>>>>>>]
queue [##########]  filling

Like slow start. Ends after three rounds without 25% bandwidth growth.

BBR's life of a connection (queue sketched, not measured)
gain 1.01.25up0.75down1.00cruise1.00cruise1.00cruise1.00cruise1.00cruise1.00cruiseeight phases, about one RTT each, average gain exactly 1.0
ProbeBW pacing gain over one cycle: one push up, one drain back, six quiet phases. The phase order is schematic.

Why 4 ln 2 ≈ 2.77 (BBRv1 used 2/ln 2 ≈ 2.885)? Your bandwidth estimate is always stale.

The Startup gain derivation

Model the estimate as the average send rate over the window from two rounds ago to one round ago. If the rate must double each round, the gain has to satisfy

b(t) = (1/R) ∫ r₀ 2^(s/R) ds  over [t-2R, t-R]  =  r(t) / (4 ln 2)

so g = r(t) / b(t) = 4 ln 2. That derivation is the dive's reconstruction; the draft just calls it the minimum gain that lets the rate double each round.

The toy simulator#

My small packet-level simulator has one bottleneck, a Reno-like sender and a BBRv1-like sender. It's deliberately simple: drops are detected instantly, no SACK or timeouts. 12 Mbit/s, 40 ms path:

BufferSenderGoodput (Mbit/s)Median RTTDrops
8x BDP (320 pkt)Reno11.91221.0 ms1
BBR11.8955.5 ms0
32x BDP (1280 pkt)Reno11.91670.0 ms1
BBR11.8955.5 ms0
0.5x BDP (20 pkt)Reno11.3249.0 ms8
BBR11.8949.5 ms324

In deep buffers, Reno's RTT tracks the buffer size (221 ms, then 670 ms) while BBR stays near 55 ms. That's the YouTube result in miniature.

  • Reno, 8x BDP buffer221.0 ms
  • BBR, 8x BDP buffer55.5 ms
  • Reno, 32x BDP buffer670.0 ms
  • BBR, 32x BDP buffer55.5 ms
Median RTT in the toy simulator, 12 Mbit/s and 40 ms path. Reno tracks the buffer, BBR doesn't.

The last rows are the catch. In a sub-BDP buffer, BBRv1 gets 5% more goodput by causing 40 times more drops. It essentially ignored loss, and a cwnd cap of 2x BDP plus probing overflows a shallow buffer every cycle. v2 and v3 fix that: they cap loss at 2% per round, cut by 0.7 when exceeded, and learn a ceiling on in-flight data from where loss started.

Sharing the road#

BBR's model has no concept of a fair share. A max filter of your own delivery rate measures your slice of the link, not its capacity.

Against CUBIC in a deep buffer, CUBIC keeps the queue full, so BBR's share is decided by its in-flight cap (2 x max_bw x min_rtt), not by any congestion signal. Ware et al. (IMC 2019) predicted BBR's share within 5% median error. The headline: a single BBR flow takes a fixed ~40% of the link whether it competes with 1 CUBIC flow or 16.

A 120-second trace of one BBR flow and one CUBIC flow sharing a link. The BBR flow's capacity share (red) and the CUBIC flow's share (blue) swing between roughly 20% and 90% and trade places in a long repeating cycle, while BBR's MinRTT estimate (dotted purple) jumps only at occasional refreshes.

Fig. 4 (right) from Scherrer et al., "A Control-Theoretic Perspective on BBR/CUBIC Congestion-Control Competition" (arXiv 2025), arXiv:2510.22773, licensed CC BY 4.0. Cropped and recompressed.

The two flows trade the lead over tens of seconds. The "fixed share" is an average over a system that never sits still.

v3 didn't fix it:

  • Unfairness. PAM 2024 found v3's unfairness toward CUBIC "nearly identical to BBRv1's behavior and exacerbated in shallow buffers".
  • Long-RTT bias. A longer RTprop means a bigger BDP, a bigger cap, a bigger slice of the shared queue. That's what hurt Verizon's PoP-to-PoP links.
  • ECN backfires. With ECN on, one BBRv3 flow took about 99% of the bandwidth against five CUBIC flows (ANRW 2024). v3 reacts to marks proportionally, like DCTCP; CUBIC treats any mark like a loss and cuts by 30%. Same bit, two meanings.

The failure you can't tune away#

Most failure modes have patches: an extra_acked allowance for Wi-Fi ACK aggregation, a long-term model for token-bucket policers, short-term bounds in v2 for bandwidth drops.

One can't be patched. Remember the no-noise condition. Arun, Alizadeh and Balakrishnan (SIGCOMM 2022) proved that if an algorithm converges to a delay range of width δ that depends on its rate, and non-congestive jitter (ACK aggregation, end-host scheduling) can exceed 2δ, then there are paths where two flows running the same algorithm get arbitrarily unequal throughput. Starvation. The rate is encoded in the delay, and enough jitter makes one flow see a delay that "means" a much lower rate. BBR, PCC Vivace and Copa all starved in emulation.

The question I'm left with#

What should "fair" even mean between different algorithms?

Jain's index treats every unequal split as equally bad and ignores duration. Ware et al. argued for a harm-based metric: how much worse off am I because you showed up, compared with how much CUBIC would have hurt me? The IETF hasn't picked one, and BBRv3's draft sits on the Experimental track partly for that reason.

Theory also lags deployment. A 2025 IFIP paper found existing fluid models fit v1 and partly v2, but v3 shows "clear discrepancies". Most of Google's public traffic runs on an algorithm with no validated model.

One exit: FRCC (NSDI 2026) claims to be the first algorithm that provably bounds unfairness even under jitter, by separating "how many flows share this link" from "how big is the link". Not deployed at Internet scale. Meanwhile Starlink reshuffles RTT and capacity roughly every 15 seconds, which makes a 10-second min filter look slow.

Next on my list is L4S, where routers mark packets at a very shallow queue so the sender doesn't have to guess. That feels like the honest fix for "you can't measure both at once", if it ever gets deployed widely enough.

Sources#

© 2026 Bharat Kaurav. Built with Next.js & Tailwind.

>_ bk@netherwatcheresc to close

Welcome, reader. Type help to see what this shell can do.