High-Speed TCP: CUBIC, Fairness and Sharing Congestion State
Why Reno's one-segment-per-RTT growth is too slow for fast long paths, how HighSpeed TCP, BIC and CUBIC fix it, what "TCP-friendly" and fair sharing mean, and how hosts reuse congestion state between connections, with measured Reno and CUBIC curves and two-flow fairness tests.
kvi5hnuCode Sprout team member19 min readOn this page
Reno-style congestion avoidance adds one segment per round trip. On the paths of the 1990s that was plenty. On a path that needs tens of thousands of segments in flight, it's far too slow: after one loss, the sender can spend an hour climbing back. This article covers what replaced it: HighSpeed TCP, BIC and CUBIC, the default congestion control in Linux, Windows and Apple's systems today. It also covers what it means for a new algorithm to be TCP-friendly, how fairly flows share a bottleneck (measured, with the Jain fairness index), and how a host can share congestion state between connections to the same destination.
The problem: AIMD at high speed
Reno's rule is AIMD, additive increase, multiplicative decrease: add a fixed amount per round trip, cut by a fraction on loss.
Take a 10 Gbit/s path with a 100 ms RTT and 1500-byte packets. Filling it takes a window of
10,000,000,000 bit/s × 0.1 s ÷ (1500 × 8 bit) ≈ 83,333 segments
After a single loss, Reno halves that to about 41,667 segments and then adds one segment per RTT. Getting back to 83,333 takes about 41,667 round trips. At 0.1 s each, that's 41,667 × 0.1 s ≈ 4,167 s, or roughly 1.2 hours. And to stay at full speed, the path would need to lose fewer than about one packet in 5 billion, which no real long-distance path guarantees. The issue isn't congestion: the network has capacity to spare, and TCP just can't grow into it quickly.
The response function
The relationship between loss rate and throughput makes this precise. For a sender that increases its window by a segments per RTT and multiplies it by (1 − b) on each loss, a simple model gives an average window of
W = √( a·(2 − b) / (2·b·p) )
segments, where p is the fraction of packets that experience a loss event. For Reno, a = 1 and b = 0.5, so W ≈ 1.22/√p. This is the response function of standard TCP: halve the loss rate and the window grows by only about 41%. Because it's a power law, it's a straight line on a log-log plot of window against loss rate.
The model ignores timeouts and assumes evenly spaced, independent losses, so it's a guide, not a prediction. But it explains why high-speed variants all change the same thing: they want a larger window at very low loss rates, while behaving like Reno where Reno already works.
TCP friendliness and TFRC
A new congestion control algorithm can't just be faster. If it takes bandwidth from standard TCP flows sharing a bottleneck, deploying it hurts everyone else. A protocol is called TCP-friendly (or TCP-compatible) if, in the same conditions, it uses no more bandwidth over time than a conforming TCP would.
TCP Friendly Rate Control (TFRC, RFC 5348) turns this into an equation. Instead of a window, it computes a sending rate from the measured loss event rate and RTT, using a more complete version of the response function that includes timeouts:
s
X = ───────────────────────────────────────────────────
R·√(2bp/3) + t_RTO · (3·√(3bp/8)) · p · (1 + 32p²)
Here X is the rate in bytes per second, s the packet size, R the RTT, p the loss event rate, t_RTO the retransmission timeout (usually 4R) and b the number of packets acknowledged by one ACK (usually 1). Because the rate changes smoothly rather than halving, TFRC suits streaming media that dislikes sudden drops. It was used in the Datagram Congestion Control Protocol (DCCP) as its congestion control profile CCID 3 (Congestion Control ID 3) and has influenced media congestion controllers.
When a new TCP variant is evaluated, researchers often plot its relative fairness: its throughput divided by standard TCP's, as a function of the loss rate. RFC 9743 (BCP 133, a Best Current Practice document, 2025) now sets the IETF's expectations for specifying and evaluating new congestion control algorithms. It no longer insists on strict Reno-friendliness but asks that an algorithm not do worse harm than existing deployed algorithms.
HighSpeed TCP and limited slow start
HighSpeed TCP (HSTCP, RFC 3649, Experimental) changes the response function only for large windows. Below a window of 38 segments (a loss rate of about 10⁻³) it behaves like Reno. Above that, it follows a steeper power law, so that at a loss rate of 10⁻⁷ it reaches a window of about 83,000 segments instead of Reno's 3,900. In practice, both its increase a(w) and its decrease b(w) become functions of the current window: larger windows add more per RTT and cut by less than half on a loss.
The companion RFC 3742 (Experimental) defines limited slow start. Doubling a window of 10,000 segments in one RTT could dump 10,000 extra packets into a router queue at once. Limited slow start introduces max_ssthresh (suggested: 100 segments). Below it, slow start works as usual. Above it, the window grows by at most max_ssthresh/2 segments per RTT. HSTCP saw little deployment, but the idea that slow start must be gentler on huge windows survives in HyStart (in Linux's CUBIC) and HyStart++ (RFC 9406, 2023), which leave slow start early when RTT samples start rising.
RTT fairness
Two Reno flows with different RTTs don't share a bottleneck equally. Each adds one segment per its own RTT, so a flow with a 20 ms RTT grows its window six times as often as one with 120 ms. Its window also translates to more throughput, because throughput is window ÷ RTT. The result is that short-RTT flows get a larger share, roughly in inverse proportion to RTT, or worse.
Whether that's wrong is debated. A long-RTT flow usually crosses more links and uses more of the network, so some argue it should get less. But algorithms that grow faster for larger windows make the bias much stronger, and that was a central concern for BIC and CUBIC.
BIC: binary search for the right window
BIC-TCP (Binary Increase Congestion control) was Linux's default from kernel 2.6.8 (2004) until 2006. After a loss it knows two things: the window where loss happened (W_max) and the reduced window that's now working (W_min). The right window is somewhere between them, so BIC does a binary search:
- Binary search increase: jump to the midpoint of
W_minandW_max. If no loss happens, the midpoint becomes the newW_min. If loss happens, it becomes the newW_max. Repeat until the two are within a small threshold. - Additive increase (clamping): if the midpoint is very far away, a jump straight there would be a huge burst, so the increase is capped at
S_maxper RTT. - Max probing: once the window passes
W_maxwithout loss, the old maximum is obsolete. BIC grows slowly at first, then faster and faster, to find the new limit.
This gives an unusual shape: growth slows as the window approaches the point where the last loss happened. Almost every earlier algorithm grew fastest there. BIC also added fast convergence: if a flow's new W_max is lower than its previous one, other flows are probably competing, so it lowers its target further to release bandwidth sooner.
CUBIC
BIC worked, but its rules were complicated and it could be too aggressive with short RTTs. Its authors replaced the piecewise search with a single smooth curve: a cubic function of the time since the last reduction. CUBIC became Linux's default in kernel 2.6.19 (2006), Windows' default in 2017, and is also the default in Apple's stacks. RFC 9438 (2023) made it a Proposed Standard.

The window target is:
W_cubic(t) = C · (t − K)³ + W_max
K = ∛( W_max · (1 − β_cubic) / C )
tis the time since the last window reduction, andW_maxis the window just before it.C = 0.4sets how aggressive the curve is.β_cubic = 0.7is the multiplicative decrease: on a loss, CUBIC reduces to 70% of the window, not 50%. (Older papers and the original Linux code describe the same thing as reducing by 0.2 or 0.3. The value in RFC 9438 is 0.7.)Kis the time it takes the curve to return toW_max.
On each ACK, CUBIC looks at where the curve will be one RTT from now and grows cwnd toward it. The curve has three regions: a concave region where it climbs quickly back toward the old maximum, a plateau around W_max where it lingers close to where trouble happened last time, and a convex region where, if no loss comes, it probes faster and faster for new bandwidth.
Because growth depends on elapsed time, not on the number of ACKs, two CUBIC flows with different RTTs grow their windows on the same schedule. That doesn't make them equal in throughput (the longer RTT still divides the same window by a larger number), but it removes the extra bias that window-per-RTT growth adds.
The Reno-friendly region
When windows are small or RTTs are short, the cubic curve can be slower than Reno. That would make CUBIC lose to Reno in exactly the environments where Reno does fine. So CUBIC also computes W_est, an estimate of what a Reno-like flow would have, growing by
α_cubic = 3 · (1 − β_cubic) / (1 + β_cubic) ≈ 0.53 segments per RTT
That value makes an AIMD flow with a 0.7 decrease get the same average throughput as Reno with its 0.5 decrease. If W_est is larger than the cubic target, CUBIC uses W_est. This is called the Reno-friendly region (the older name was TCP-friendly region).
Reno and CUBIC, measured
Here are a Reno flow and a CUBIC flow, measured one at a time through the same 40 Mbit/s bottleneck in the course lab (80 ms base RTT, 250 KB queue):

36.8 Mbit/s received, 431 segments retransmitted
37.9 Mbit/s received, 435 segments retransmitted
The first line is the Reno run and the second the CUBIC run: iperf3's average received throughput and its count of retransmitted segments. The two are almost the same here; the difference is in the shape of the curves.
The shapes match the theory:
- Reno drops from about 430 to 215 segments (half) and then climbs in a straight line. The climb takes about 22 seconds: 215 segments, one per RTT of about 100 ms (80 ms plus queuing delay).
- CUBIC drops from about 430 to 300 (70%), climbs quickly, then flattens for several seconds near the old maximum before probing again. With
W_max = 430,K = ∛(430 × 0.3 ÷ 0.4) ≈ 6.9seconds, which matches the time it takes the curve to reach its plateau. Some cycles end before the plateau, and a few flatten lower than the previous maximum: that's fast convergence loweringW_max.
On this modest path, both reach nearly the same throughput, because a 250 KB queue lets even Reno's halved window keep the link busy. The difference shows on paths where the queue is small compared with the BDP (bandwidth-delay product, the data needed to fill the path): Reno's deep cuts then leave the link idle, and CUBIC's shallower cuts and faster regrowth don't.
Fairness between flows, measured
How evenly do flows share a bottleneck? A common single-number answer is Jain's fairness index. For n flows with throughputs x₁ … xₙ:
J = (Σ xᵢ)² / (n · Σ xᵢ²)
J is 1 when all flows get the same throughput, and 1/n when one flow takes everything. For two flows, 0.5 is completely unfair. For example, with throughputs 12.0 and 7.2 Mbit/s: (12.0 + 7.2)² = 19.2² = 368.64, and 2 × (12.0² + 7.2²) = 2 × (144 + 51.84) = 391.68, so J = 368.64 ÷ 391.68 ≈ 0.94.
In the course lab, a second client (203.0.113.10) joins, and both clients send to the server through one 20 Mbit/s bottleneck with a 150 KB queue. The RTTs are set per client. Each experiment runs two iperf3 flows for 40 seconds:

experiment flow A Mbit/s flow B Mbit/s Jain index
CUBIC, same RTT (B joins at 10 s) 12.0 7.2 0.94
CUBIC, different RTTs 12.4 7.1 0.93
Reno, different RTTs 13.7 5.4 0.84
CUBIC against Reno, same RTT 8.4 10.7 0.99
Flow A is from the first client and flow B from the second. In the different-RTT rows, A is the 20 ms flow and B the 120 ms flow. In the last row, A is CUBIC and B is Reno. Each number is the flow's average throughput, skipping its first 5 seconds of start-up.
What this shows:
- Same algorithm, same RTT. The newcomer starts with a small window and has to take bandwidth from the established flow. It converges, but slowly: a CUBIC flow only gives up bandwidth when it loses packets. In this run, 30 seconds weren't enough for an even split (index 0.94).
- Different RTTs. The 20 ms flow gets more than the 120 ms flow with both algorithms. In this run, Reno split about 2.5 (index 0.84) and CUBIC about 1.7 (index 0.93), for an RTT ratio of 6. Reno's bias comes from growing once per RTT. CUBIC grows by elapsed time, which removes part of the bias but not all of it.
- CUBIC against Reno, same RTT. At this BDP, the two get similar shares, and which one is ahead changes from run to run. That's the Reno-friendly region working as designed: on a small, low-latency path, CUBIC behaves much like Reno. On long fat paths, CUBIC would take a larger share.
Sharing congestion state
Every new connection normally starts from scratch: an initial window of 10, no RTT estimate (so an initial RTO of 1 second), and no idea where the path's limits are. If the host already talked to the same destination recently, it knows a lot more. Reusing that knowledge is called TCP control block interdependence (RFC 9040, which replaced RFC 2140 in 2021). It distinguishes two kinds:
- Temporal sharing: a new connection uses state left by connections that have closed.
- Ensemble sharing: a new connection shares state with connections that are still open to the same host.
RFC 3124 went further with the Congestion Manager, a host service that any protocol could query for path RTT, loss and available rate. It wasn't widely deployed, but the idea lives on in QUIC and HTTP/2, where many streams share one connection and therefore one congestion controller.
Linux implements temporal sharing in its TCP metrics cache. When a connection closes, the kernel saves the RTT, RTT variance, and sometimes cwnd and ssthresh, per destination. Here's the cache after one transfer, with saving turned on (the course labs usually turn it off so each experiment starts fresh):
198.51.100.10 age 0.617sec cwnd 68 rtt 83293us rttvar 83293us source 192.0.2.10
The entry is keyed by destination address. age is how long ago it was saved, cwnd the saved window in segments, rtt and rttvar the smoothed RTT and its variance in microseconds (83293us is about 83 ms, the 80 ms path plus a little queuing), and source the local address used.
A new connection to 198.51.100.10 seeds the RTO for its first data segments from this saved RTT, when it's larger than the handshake's own sample (the SYN itself still uses the 1-second initial RTO). A saved ssthresh can also end slow start early, but current kernels don't save it unless net.ipv4.tcp_no_ssthresh_metrics_save is set to 0 (the default is 1). The cache can be flushed, as the labs do between runs:
$ ip tcp_metrics delete 198.51.100.10; ip tcp_metrics show | wc -l
0
(The 0 is the number of lines left in the cache.) The sysctl net.ipv4.tcp_no_metrics_save=1 stops saving altogether. The initial congestion window itself isn't taken from this cache. To change it for a destination, set it on the route, for example ip route change 198.51.100.0/24 via 192.0.2.1 initcwnd 20.
Common questions
Is CUBIC TCP-friendly?
Where Reno does well, yes: the Reno-friendly region makes it behave like Reno with small windows and short RTTs. On long, fast paths it's deliberately more aggressive than Reno, which is the point of a high-speed algorithm. RFC 9438 explains the trade-off and documents its behavior against Reno.
Why 0.7 and not 0.5 for the decrease?
A smaller cut keeps the link busier after a loss, which matters most on paths with small buffers. The Reno-friendly increase of about 0.53 segments per RTT is chosen so that, with a 0.7 cut, the long-run average matches Reno's.
Does a higher Jain index mean the network is working better?
It means flows are getting more equal shares, nothing more. A network can be perfectly fair and still have bad latency or low utilization, and equal shares isn't always the goal: some networks deliberately give priority traffic more.
Why does a new flow take so long to get its share?
With loss-based algorithms, a flow only gives up bandwidth when it loses packets. The newcomer has a small window and the established flow has a large one, and each loss event shifts the balance only a little. Fair queuing at the bottleneck (article 77) avoids this by giving each flow its own queue.
Can I share congestion state across hosts, for example in a data center?
Not with standard TCP; the metrics cache is per host. Some large services do this at the application level, choosing initial windows from measurements of earlier connections, and QUIC can resume a connection with remembered RTT and bandwidth estimates.
What is HyStart, and is it on by default in Linux?
HyStart is CUBIC's slow-start exit heuristic: it watches the spacing of ACK trains and rising RTT samples and leaves slow start before the queue overflows. It's on by default in Linux CUBIC. HyStart++ (RFC 9406) is the standardized successor, used by several QUIC and TCP implementations.
Summary
- Reno's additive increase of one segment per RTT is far too slow for high-BDP paths: refilling a 10 Gbit/s, 100 ms path after one loss takes over an hour.
- The response function ties the average window to the loss rate: about
1.22/√pfor Reno. TFRC uses a fuller version to compute a TCP-friendly rate. - HSTCP made the response more aggressive for large windows, and limited slow start capped slow-start growth above
max_ssthresh. - BIC used binary search between the last good window and the last loss point, with clamping and max probing.
- CUBIC grows along
W(t) = C·(t − K)³ + W_maxwithC = 0.4, reduces to 70% on loss, and falls back to a Reno-friendly estimate when that's larger. It's the default in Linux, Windows and Apple's stacks, and RFC 9438. - Measured in the lab: Reno's straight-line sawtooth against CUBIC's concave-plateau-convex cycle, and RTT unfairness for both algorithms, stronger for Reno. Jain's index gives a single fairness number.
- Hosts can reuse congestion state from earlier connections (RFC 9040). Linux's TCP metrics cache stores RTT and other values per destination.
Practice questions
1. A path has 1 Gbit/s capacity and a 50 ms RTT, with 1500-byte packets. Roughly how long does a Reno flow take to refill the window after one loss?
Answer
The window is 1,000,000,000 × 0.05 ÷ 12,000 ≈ 4,167 segments. After halving to about 2,083, Reno needs about 2,083 RTTs to get back, or 2,083 × 0.05 s ≈ 104 seconds.
2. Using W ≈ 1.22/√p, what loss rate allows a Reno window of 1,000 segments?
Answer
p ≈ (1.22/1000)² ≈ 1.5 × 10⁻⁶, or about one loss every 670,000 packets.
3. CUBIC's window was 200 segments when a loss happened. What is the window just after the reduction, and roughly when does the curve get back to 200?
Answer
70% of 200 is 140 segments. K = ∛(200 × 0.3 ÷ 0.4) = ∛150 ≈ 5.3 seconds after the reduction, whatever the RTT.
4. Two flows get 15 and 5 Mbit/s. What is Jain's index?
Answer
(15 + 5)² / (2 × (15² + 5²)) = 400 / 500 = 0.8.
5. Why does CUBIC need a Reno-friendly region at all?
Answer
With small windows or short RTTs, the cubic curve grows more slowly than Reno would. Without the fallback, CUBIC would get less than its fair share against Reno in exactly the common, low-BDP cases. Using max(W_cubic, W_est) makes it at least as aggressive as a Reno-like flow.
6. A laptop downloads from a server over a fast home connection, then joins a slow hotel network and connects to the same server. Which saved TCP metric could mislead the first connection, and what limits the harm?
Answer
Mainly a saved ssthresh, if ssthresh saving is enabled (tcp_no_ssthresh_metrics_save = 0; it's off by default): a high value from the fast path lets slow start run too long on the slow one. The saved RTT does little harm here, because Linux uses it only when it's larger than the handshake's own RTT sample, so a stale low value is ignored. The harm is limited because cached values only initialize the connection: the first real RTT samples and losses replace them.
Review: what to remember
| Algorithm | Increase | Decrease on loss | Notes |
|---|---|---|---|
| Reno | 1 segment per RTT | to 50% | the baseline response function |
| HSTCP | grows with window | less than 50% for large windows | RFC 3649, Experimental |
| BIC | binary search, clamped | to about 80% | Linux default 2004–2006 |
| CUBIC | cubic in time since the last loss | to 70% | Linux, Windows and Apple default; RFC 9438 |
Previous: Congestion Control in a Real Trace: Reading cwnd, Losses and Recovery
Next: Delay-Based and Model-Based Congestion Control: Vegas, Compound and BBR

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.