December 5, 2026

TCP Congestion Control: CUBIC vs BBR on a Linux Test Bench

A metered highway on-ramp with a short queue of cars merging

Every TCP connection constantly guesses how fast it may send. Send too slowly and bandwidth goes unused; send too fast and a router somewhere starts queueing packets, then dropping them. Linux ships several algorithms for that guess, and the two that matter today are CUBIC, the long-standing default on most systems, and BBR, Google’s model-based design. A bench of two Linux network namespaces joined by a 50 Mbit/s bottleneck, tested with iperf3 3.16 on kernel 6.18, shows where they behave alike and where they part ways: queue delay, random loss and sharing a link.

Video: APNIC on YouTube

Two philosophies

CUBIC: probe until something breaks

RFC 9438, published in August 2023 as a standards-track specification, describes CUBIC as using “a cubic function instead of a linear congestion window increase function.” It also notes that CUBIC “has been adopted as the default TCP congestion control algorithm by the Linux, Windows, and Apple stacks.” RFC 9438

CUBIC is loss-based. It grows its sending window until packets are lost, takes the loss as the signal of congestion, and backs off. The RFC says CUBIC “sets the multiplicative window decrease factor to 0.7, whereas Reno uses 0.5,” so each loss costs it 30% of its window instead of half.

BBR: model the pipe

BBR was introduced by Google engineers in a 2016 ACM Queue article. Its authors argue that “When bottleneck buffers are large, loss-based congestion control keeps them full, causing bufferbloat,” and that in small buffers loss-based schemes mistake loss for congestion and run slowly. BBR instead works by “measuring the two parameters that characterize a path: bottleneck bandwidth and round-trip propagation time,” and sends at the rate those measurements suggest. ACM Queue, BBR: Congestion-Based Congestion Control

The algorithm is still being standardized. The IETF’s draft-ietf-ccwg-bbr, at version 07 dated 2 November 2026 with an intended status of Experimental, says BBR “uses recent measurements of a transport connection’s delivery rate, round-trip time, and packet loss rate” to build a model of the path. IETF draft-ietf-ccwg-bbr The tests here used the bbr module built into this kernel, which may not match the latest draft in every detail.

Green and white circuit board

The test bench

Setup

Two namespaces were connected by a virtual Ethernet pair. The sender’s outgoing interface was limited to 50 Mbit/s with a token bucket filter (the tbf queueing discipline), which also set how much data could queue at the bottleneck. A latency 400ms setting gave a deep buffer; latency 20ms a shallow one. Random packet loss was added with an iptables statistic rule dropping a set fraction of incoming data packets at the receiver.

Why 50 Mbit/s

The bottleneck rate was chosen to resemble a modest home broadband upload or a busy shared link, slow enough that the shaping on the sender, not the virtual hardware, decided the speed. Every run used the same rate and the same receiver, and each algorithm was selected per connection, so nothing else changed between comparisons. Throughput figures come from iperf3’s own end-of-test summary, and retransmission counts from the sender side of the same report.

What was missing

The kernel on the test machine did not include netem, the usual tool for adding artificial delay, so the base round-trip time was a fraction of a millisecond. Real internet paths have tens of milliseconds of propagation delay, and the absolute numbers below would differ on them. The comparisons between algorithms under identical conditions are what this bench can show.

Queue delay: where BBR pulled ahead

Measuring bufferbloat

Each algorithm ran a 12-second transfer through the deep-buffer link while ping measured round-trip time every 0.2 seconds. With the link idle, ping returned in about 0.03 ms.

Algorithm Throughput Median ping during transfer Max ping
CUBIC 48.7 Mbit/s 19.9 ms 24.4 ms
Reno 48.7 Mbit/s 19.9 ms 25.8 ms
BBR 48.7 Mbit/s 3.4 ms 6.3 ms

All three filled the link equally. The difference was in the queue. CUBIC and Reno kept roughly 20 ms of data waiting at the bottleneck the whole time, so any other traffic on that link, a video call or a game, would wait behind it. BBR delivered the same throughput while keeping the queue to a few milliseconds.

Why it happens

This is the behavior the BBR authors describe. A loss-based algorithm has no reason to stop growing until a packet drops, so it fills whatever buffer exists. BBR aims to send at the measured bottleneck rate, and the queue stays small. The ACM Queue article reports the same effect at scale on YouTube, where BBR “reduces median RTT by 53 percent on average globally and by more than 80 percent in the developing world,” while it “only slightly improves connection throughput.”

Shallow buffer

With the 20 ms buffer, CUBIC’s median ping fell to 13.6 ms, because there was less room to fill, and it logged 20 retransmissions. BBR again held about 3.6 ms, but logged 409 retransmissions, overrunning the small queue more often while probing for bandwidth. Throughput was 48.7 and 48.6 Mbit/s.

A purple wave of light on a black background

Random loss: where CUBIC fell behind

The test

Random drops simulate a lossy link, such as weak Wi-Fi or a noisy cable, where packets disappear for reasons that have nothing to do with congestion. Each algorithm ran for 10 seconds at three loss rates:

Loss rate CUBIC Reno BBR
0.1% 48.9 Mbit/s 48.8 Mbit/s 48.4 Mbit/s
1% 48.6 Mbit/s 48.1 Mbit/s 47.6 Mbit/s
3% 28.5 Mbit/s 41.2 Mbit/s 46.7 Mbit/s

Reading it

At low loss there was no meaningful difference. At 3% random loss, CUBIC dropped to 28.5 Mbit/s, about 58% of the link, while BBR kept 46.7 Mbit/s, about 95%. Every random drop told CUBIC the network was congested, and it cut its window in response, even though the link was idle enough to carry more.

Reno outperformed CUBIC at 3% here, which looks odd given that Reno cuts harder on each loss. With a sub-millisecond base round-trip time, both recover in very little time, and the result reflects that unusual condition. On real paths with tens of milliseconds of delay, each loss costs a loss-based sender far more time to recover, and the gap between BBR and the loss-based algorithms would be expected to widen, though this bench could not measure that.

Sharing a link: fairness

CUBIC and BBR together

The trickier question is what happens when one CUBIC flow and one BBR flow share the same bottleneck, which is the normal situation on the internet. Two 15-second transfers ran at the same time, one with each algorithm:

Buffer CUBIC BBR
Deep (400 ms setting), run 1 35.0 Mbit/s 12.6 Mbit/s
Deep, run 2 34.9 Mbit/s 12.8 Mbit/s
Shallow (20 ms setting), run 1 44.5 Mbit/s 3.0 Mbit/s
Shallow, run 2 33.4 Mbit/s 14.1 Mbit/s

On this bench CUBIC took the larger share every time, roughly three quarters of the link in the deep-buffer runs. The shallow-buffer results varied a lot between runs, with BBR getting anywhere from 3 to 14 Mbit/s.

Context

The IETF draft lists among BBR’s goals “an approximately fair sharing of bandwidth,” and fairness between BBR and CUBIC has been a long-running research topic that depends heavily on buffer size and round-trip times. With near-zero propagation delay, these runs represent one corner of that space, not a general verdict. They do show that switching a single machine to BBR does not guarantee it a bigger share of a contested link.

Gray and white rolled cable

Checking and switching on Linux

What is in use

The available algorithms are listed in /proc/sys/net/ipv4/tcp_available_congestion_control. On the test machine that file read reno bbr cubic. The current default is in /proc/sys/net/ipv4/tcp_congestion_control, which on this sandbox was already set to bbr, an unusual default chosen by whoever built the image.

Changing it

sysctl -w net.ipv4.tcp_congestion_control=bbr sets the system default for new connections. Programs can also pick an algorithm per socket, which is how iperf3’s -C option chose one for each test above. Inside these namespaces, attempts to change the list of algorithms unprivileged programs may select, tcp_allowed_congestion_control, were refused with “Operation not permitted,” which is a reminder that some of these settings are restricted to the host.

When BBR is worth trying

  • Servers that send a lot of data over long or lossy paths, such as video or file downloads.
  • Links where latency under load matters, since BBR kept the queue much shorter on this bench.
  • Paths with random loss not caused by congestion, where CUBIC slowed sharply at 3%.

When to be careful

  • Shared links where other users run CUBIC, given the uneven split measured here.
  • Very shallow buffers, where BBR’s retransmissions climbed to 409 in 12 seconds.
  • Any change on production servers without measuring before and after, because results depend on the specific path.

Sources

  • RFC 9438, CUBIC for Fast and Long-Distance Networks, August 2023: https://www.rfc-editor.org/rfc/rfc9438.html
  • BBR: Congestion-Based Congestion Control, ACM Queue vol. 14 no. 5, 2016 (Google make-tcp-fast project): https://queue.acm.org/detail.cfm?id=3022184
  • IETF, draft-ietf-ccwg-bbr, BBR Congestion Control: https://datatracker.ietf.org/doc/draft-ietf-ccwg-bbr/

920 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *