Better Loss Recovery: NewReno, SACK-Based Recovery, PRR and Limited Transmit
How TCP recovers from several losses in one window: NewReno's recovery point, SACK-based recovery and the pipe estimate, rate halving and Proportional Rate Reduction, limited transmit, restarting after idle, and undoing spurious timeouts.
kvi5hnuCode Sprout team member20 min readOn this page
The Reno rules in article 72 work well when one segment is lost per window. Real losses often come in groups: a queue overflows and drops several packets in a row, or a radio fade wipes out a burst. Reno handles that badly, and the improvements in this article came from fixing it.
Each one changes a different part of recovery:
- NewReno decides when recovery is over.
- SACK-based recovery decides which segments to resend.
- Proportional Rate Reduction decides how much to send while recovering.
- Limited transmit helps when the window is too small to produce three duplicate ACKs.
The article also covers what TCP does with its window after an idle period, and how it undoes a reduction that turns out to have been unnecessary. It ends with a lab measurement of how much SACK matters.
The problem: Reno and partial ACKs
Suppose a sender has segments 1 to 8 in flight and segments 3 and 6 are lost. Segments 4 and 5 arrive and produce duplicate ACKs for 3, so the sender retransmits 3 and enters fast recovery. When the retransmitted 3 arrives, the receiver can acknowledge everything up to 5, but not 6. That ACK covers new data, but not all of it. It's a partial ACK.
Original Reno ends recovery on any ACK of new data. So it deflates its window to ssthresh and leaves recovery while 6 is still missing. Few segments are now in flight, often not enough to generate three more duplicate ACKs for 6, so the sender waits for the retransmission timer (the RTO, retransmission timeout, article 64). A timeout costs at least 200 ms on Linux (often a second elsewhere), and it collapses cwnd to one segment. Two losses in one window were enough to turn a fast recovery into a slow start.

NewReno: the recovery point
NewReno (RFC 6582) fixes this without needing anything from the receiver. On entering fast recovery, the sender records the recovery point: the highest sequence number it had sent so far. Then:
- A partial ACK, one below the recovery point, means another segment from the same window is lost. The sender retransmits the first unacknowledged segment right away and stays in recovery. It also keeps the retransmission timer from expiring while it makes progress.
- Only an ACK that covers the recovery point ends recovery and deflates
cwndtossthresh.
NewReno also reduces the window only once per window of data. All the losses from one congestion event cost one halving, not one per lost segment.
Its limitation is speed. NewReno discovers each additional hole only when the previous one is repaired, so it repairs one lost segment per round trip. With five holes, recovery takes five RTTs. Linux still uses NewReno-style recovery when the peer doesn't support SACK; the kernel counts those recoveries as TCPRenoRecovery.
SACK-based recovery and the pipe
With selective acknowledgment (SACK, article 66), the receiver reports which blocks above the hole it already has. The sender can see every hole at once and retransmit them all in one round trip. That raises a new problem: the sender now knows several segments are missing, but it mustn't send them all in one burst, or it could make the congestion worse.
SACK separates two decisions that Reno mixes together:
- Which segment to send next: the first hole, then the next hole, then new data.
- When sending is allowed: governed by congestion control.
RFC 6675 handles the second by keeping an estimate called pipe, the number of bytes the sender believes are still in the network:
- Segments sent but not yet acknowledged count, unless SACK information shows they were lost.
- Retransmissions count too.
- Segments SACKed by the receiver don't, because they've left the network.
During recovery, the sender may transmit whenever:
SMSS is the sender maximum segment size: one full-sized segment. So the rule says "send when at least one more full segment fits under cwnd". cwnd still sets the limit. pipe is accounted for separately and much more accurately than "flight size" could be without SACK. Linux calls its version of this estimate packets_in_flight, computed from packets_out, sacked_out, lost_out and retrans_out.
Proportional Rate Reduction
Fast recovery has to bring the window down from cwnd (the window before the loss) to ssthresh (usually half, or 0.7 times for CUBIC). The question is how to spread that reduction over the round trip of recovery.
- Reno's inflation sends nothing new until enough duplicate ACKs have arrived to inflate
cwndpast the outstanding data. Then it sends a segment for every remaining ACK. The result is silence for half the round trip, then a burst. - Halving
cwndimmediately and sending only whenpipefalls below it has the same effect: you wait until half the window has drained.
Proportional Rate Reduction (PRR) paces the reduction instead. For every ACK during recovery, it lets the sender transmit a share of the data that ACK reports as delivered, in proportion ssthresh / RecoverFS. Here RecoverFS is the flight size when recovery began. With CUBIC's 0.7 factor, that's about 7 segments sent for every 10 delivered. With Reno's 0.5, it's one for every two. By the end of the round trip, the amount in flight has come down to ssthresh smoothly, and the ACK clock never stopped.

PRR has a second part for when losses are so heavy that pipe falls below ssthresh. In that case, it lets the sender catch up toward ssthresh. By default (the conservative bound) it sends no more than the ACKs report delivered. When an ACK shows that recovery is going well, it allows one extra segment per ACK, like slow start (the slow start bound). That stops a heavy loss burst from driving the window far below what the new threshold says is safe.
PRR was published as Experimental in RFC 6937 (2013). After a decade of deployment, it became a Proposed Standard as RFC 9937 (December 2025), which obsoletes RFC 6937. Linux has used PRR for all fast recoveries since kernel 3.2 (early 2012). That's why the drops in the sawtooth graphs in this part are steep slopes about one RTT wide rather than vertical lines.
Limited transmit
Fast retransmit needs three duplicate ACKs. A connection with a small window, say 4 segments, might lose one segment and have only two more in flight behind it, which isn't enough. Without help, it waits for a timeout. Small windows are common: short web transfers, application-limited senders, and connections early in slow start.
Limited transmit (RFC 3042) lets a sender send one new segment for each of the first two duplicate ACKs, if it has unsent data and the receiver's window allows it. Those new segments, if they arrive, generate more duplicate ACKs, which can bring the count up to three and trigger fast retransmit. cwnd itself isn't changed. RFC 5681 recommends limited transmit, and every major stack implements it.
Two newer mechanisms push the same idea further:
- Early retransmit (RFC 5827) lowers the duplicate-ACK threshold when very little data is outstanding.
- Tail Loss Probe (part of RACK-TLP, RFC 8985) sends a probe segment when the last segments of a burst might be lost and no ACKs would ever come back to report it.
Linux dropped its separate early-retransmit code in 2017 in favor of RACK-TLP. Article 66 covers RACK-TLP.
After an idle period: congestion window validation
Suppose a connection reached cwnd = 70 and then the application paused for two seconds. When it resumes, should the sender blast 70 segments at once?
Probably not:
- The network may have changed during the pause, with other flows taking the capacity.
- A 70-segment burst at line rate can overflow a queue even if 70 segments is the right long-term window, because it arrives all at once instead of being clocked out by ACKs.
RFC 5681's rule is that after an idle period longer than one RTO, the sender restarts with min(IW, cwnd), where IW is the initial window (10 segments on Linux). Congestion Window Validation (CWV), first published in RFC 2861, refined this. It decays cwnd while unused but keeps a memory of it in ssthresh:
- When idle: halve
cwndfor each RTO of idle time, and setssthresh = max(ssthresh, 3/4 × cwnd). - When application-limited (sending, but using less than the window): move
cwndtoward the amount actually used, and keep the old value inssthreshin the same way.
RFC 7661 (2015) replaced RFC 2861 with a newer experimental method that lets a rate-limited sender keep its window for a while instead of decaying it immediately.
Linux implements the idle rule, controlled by net.ipv4.tcp_slow_start_after_idle. When a transmission starts after a pause longer than the RTO, it halves cwnd once per RTO of idle time, down to IW at most, after setting ssthresh to at least 3/4 of the old cwnd. Here's the effect measured in the lab. A program sends 3.9 MB, pauses for two seconds, and sends another 3.9 MB over Reno, first with the default setting and then with it turned off:
net.ipv4.tcp_slow_start_after_idle = 1
net.ipv4.tcp_slow_start_after_idle = 0
1 max cwnd before pause 139 cwnd at restart 43
0 max cwnd before pause 141 cwnd at restart 49
Each block starts with the setting used for that run. The two summary lines at the end give, for each setting (1 or 0), the largest cwnd seen before the pause and a final cwnd sample (see the note below about that label). The graph is where the restart behavior shows.

The pause lasts about 8 RTOs (RTO was about 250 ms), so the default run halves its window down to the floor of 10 segments. Because ssthresh kept the memory, recovery is quick: slow start doubles back to about 35 within a few round trips, and then congestion avoidance continues. The run with the setting off resumed with its whole old window.
(The script's "cwnd at restart" label is misleading: that column is the last sample of each whole run, after the second burst. The graph shows the restart itself: from 43 segments with ssthresh 35 down to 10 with the default, and on at 41 with the setting off.) ss keeps showing the pre-pause cwnd during the pause in both runs. Linux applies the decay at the moment it next sends, not while the connection sits idle.
Servers that send in bursts over long-lived connections often turn this off. Common examples are HTTP/2 and gRPC servers, and database replication links. Otherwise every response after a pause starts from 10 segments. The trade-off is the burst risk described above, which is smaller when the server also paces its packets (article 76 covers pacing).
Undoing a spurious timeout
Sometimes a retransmission timeout fires even though nothing was lost. A cellular handover or a sudden delay spike holds the ACKs back past the RTO. TCP then sets ssthresh to half the flight size and cwnd to one segment, all for nothing. Article 67 explains how TCP detects such spurious timeouts: with DSACK, the Eifel detection algorithm using timestamps, or F-RTO.
Detection then needs a response: a rule for restoring the congestion state. The Eifel response algorithm (RFC 4015) saves the state before reducing it and restores it if the timeout turns out to be spurious:
- Before reducing
ssthreshfor the timeout, savepipe_prev = min(FlightSize, ssthresh). - If the first ACK after the retransmission shows the timeout was spurious, and the ACK doesn't carry an ECN-Echo flag (Explicit Congestion Notification: a router's mark meaning "I'm congested", article 25), then:
- set
cwnd = FlightSize + min(bytes_acked, IW), which allows at most one initial window of new data in one go; - restore
ssthresh = pipe_prev.
- set
Linux applies the same idea to both timeouts and fast recoveries, as congestion state undo. If DSACKs or timestamps later show that every retransmission in an episode was unnecessary, it restores the earlier cwnd and ssthresh. The counters TCPSpuriousRTOs, TCPLossUndo and TCPFullUndo in nstat show how often this happens.
Measured: how much SACK helps
To see the difference SACK makes, the lab ran the same Reno transfer six times: three runs with SACK on and three with SACK turned off on the client (net.ipv4.tcp_sack=0, so the client didn't offer SACK in its SYN). The path was the one from article 72, a 10 Mbit/s bottleneck with 40 ms RTT and a 60 KB queue. This time netem (the Linux network emulator that adds delay and loss) also dropped about 1.5% of the data packets, with some correlation so losses sometimes came in pairs. Each run lasted 15 seconds, and the kernel's TCP counters were read after each run with nstat.
The kernel counters for the first run with SACK:
TcpRetransSegs 82 0.0
TcpExtTCPRenoRecovery 0 0.0
TcpExtTCPSackRecovery 7 0.0
TcpExtTCPLostRetransmit 0 0.0
TcpExtTCPRenoFailures 0 0.0
TcpExtTCPTimeouts 0 0.0
TcpExtTCPLossProbes 0 0.0
TcpExtTCPSackRecoveryFail 0 0.0
And for the first run without SACK:
TcpRetransSegs 132 0.0
TcpExtTCPRenoRecovery 6 0.0
TcpExtTCPSackRecovery 0 0.0
TcpExtTCPLostRetransmit 0 0.0
TcpExtTCPRenoFailures 0 0.0
TcpExtTCPTimeouts 1 0.0
TcpExtTCPLossProbes 0 0.0
TcpExtTCPSackRecoveryFail 0 0.0
In nstat output, the first column is the counter name, the second its value since the last reset, and the third a per-second rate (0.0 here because the counters were read once, after the run). TcpRetransSegs counts retransmitted segments, TCPSackRecovery and TCPRenoRecovery count fast recoveries of each kind, and TCPTimeouts counts retransmission timeouts. The key contrast: 7 SACK recoveries and 0 timeouts with SACK, against 6 Reno recoveries and 1 timeout without.
All six runs:
SACK run Mbit/s SACK rec Reno rec RTOs TLPs retrans
on 1 8.97 7 0 0 0 82
on 2 9.04 7 0 0 0 77
on 3 8.97 7 0 0 0 87
off 1 6.26 0 6 1 0 132
off 2 7.85 0 6 2 0 282
off 3 7.94 0 7 2 0 261
In the table, SACK rec and Reno rec are the two recovery counters, RTOs is TCPTimeouts, TLPs is tail loss probes (TCPLossProbes) and retrans is TcpRetransSegs.

The differences are large and consistent:
- Recovery type. With SACK, every recovery was SACK-based (
TCPSackRecovery). Without it, they were NewReno recoveries (TCPRenoRecovery). - Timeouts. SACK runs had no retransmission timeouts. Every run without SACK had one or two. Those are the cases where several segments from one window were lost: NewReno repaired them one per round trip and sometimes ran out of time.
- Retransmissions. Runs without SACK retransmitted more segments for the same loss pattern, sometimes three times as many. After a timeout, a sender without SACK doesn't know which later segments the receiver already has, so it resends some of them again.
- Throughput. Each timeout cost a slow start from one segment, and the runs without SACK averaged about a fifth less throughput.
SACK is negotiated by nearly every TCP today, so you'll rarely see the no-SACK case in practice. A few middleboxes that strip TCP options are the main exception, and they produce exactly this behavior.
Common questions
What exactly is a partial ACK?
An ACK during fast recovery that acknowledges some new data but not everything up to the recovery point. It means another segment from the same window was also lost.
Does NewReno still matter if everyone uses SACK?
Yes, as the fallback. Some middleboxes strip TCP options, and some embedded stacks don't implement SACK. Linux falls back to NewReno-style recovery in those cases, as the no-SACK runs above did.
Why is it called "pipe" if it's just a byte count?
It estimates how much data is "in the pipe": sent, not yet delivered and not known to be lost. The name comes from the pipe picture of a network path, whose capacity is the bandwidth-delay product.
Does PRR change how much the window is reduced?
No. The multiplicative decrease is set by the congestion control algorithm: 0.5 for Reno, 0.7 for CUBIC. PRR only decides how the sending rate gets there during the round trip of recovery, and limits how far below ssthresh heavy losses can push it.
Should I turn off tcp_slow_start_after_idle?
For servers with long-lived connections that send in bursts, often yes, and many large deployments do. For general-purpose hosts, the default is the conservative choice. Pacing (the fq qdisc, or TCP's internal pacing) makes turning it off safer, because the restarted window is spread over time rather than sent as one burst.
If a timeout is undone, was the retransmission wasted?
The retransmitted segment itself was a duplicate, which costs a little bandwidth. Undo recovers what matters more: the congestion window, so the connection doesn't spend many round trips slow-starting back to where it was.
Does limited transmit increase cwnd?
No. It allows up to two extra segments beyond the window while waiting for the third duplicate ACK, so that fast retransmit can be triggered. If recovery starts, they're counted as part of the flight.
Summary
- Several losses in one window break Reno: the partial ACK after the first repair ends recovery early, often leading to a timeout.
- NewReno (RFC 6582) remembers the recovery point, retransmits on each partial ACK, and reduces the window once per window of data. It repairs one hole per RTT.
- SACK-based recovery (RFC 6675) sees all holes at once and controls sending with
cwnd − pipe ≥ SMSS. FACK was an earlier SACK scheme that Linux removed in favor of RACK. - Proportional Rate Reduction (RFC 9937, December 2025) spreads the window reduction evenly across the recovery round trip instead of pausing, then bursting.
- Limited transmit (RFC 3042) sends new data on the first two duplicate ACKs so small windows can still reach fast retransmit.
- After idle periods, TCP decays
cwndbut remembers it inssthresh. The lab showed a restart from 10 segments after a 2-second pause, avoided withtcp_slow_start_after_idle = 0. - Spurious timeouts can be undone (Eifel response, RFC 4015, and Linux's undo). In the lab, SACK eliminated timeouts and kept throughput at about 9 Mbit/s, against 6 to 8 Mbit/s without SACK.
Practice questions
1. A sender in NewReno recovery has a recovery point of 100,000. It receives an ACK for 64,000. What does it do?
Answer
64,000 is below the recovery point, so it's a partial ACK: the segment starting at 64,000 is also lost. The sender retransmits that segment immediately, stays in fast recovery and doesn't reduce the window again. Recovery ends only when an ACK of 100,000 or more arrives.
2. Three segments from one window are lost. Roughly how many round trips does NewReno need to repair them, compared with SACK-based recovery?
Answer
NewReno learns about each hole only after the previous one is repaired, so it needs about three round trips, one per hole. SACK-based recovery sees all three holes in the SACK blocks and can retransmit them in the first round trip, limited only by cwnd − pipe.
3. During SACK recovery, cwnd is 40 segments. The sender has 52 segments outstanding: 8 are SACKed, 4 are marked lost and none have been retransmitted. What is pipe, and may the sender transmit?
Answer
pipe counts outstanding segments that aren't SACKed and aren't known to be lost: 52 − 8 − 4 = 40. cwnd − pipe = 0, which is less than one segment, so it must wait. The next ACK that SACKs or acknowledges a segment reduces pipe and allows one transmission, which should be the first lost segment.
4. A CUBIC connection enters fast recovery with 100 segments in flight. With PRR, about how many segments does it send for the first 50 segments the ACKs report as delivered?
Answer
CUBIC's ssthresh is 0.7 × 100 = 70, so PRR sends in proportion 70/100. For 50 delivered segments, it sends about 35.
5. A connection's window is 3 segments and the first one is lost. Without limited transmit, what happens? With it?
Answer
Without it: the two remaining segments produce only two duplicate ACKs. That isn't enough for fast retransmit, so the sender waits for the RTO. With limited transmit: each of those two duplicate ACKs releases one new segment (if data is available), which produces more duplicate ACKs. The third one triggers fast retransmit, avoiding the timeout.
6. A server's connection was idle for 3 seconds with an RTO of 300 ms and cwnd = 64. With Linux's default tcp_slow_start_after_idle = 1 and IW 10, what is cwnd when it sends again, and what is ssthresh at least?
Answer
The idle time is 10 RTOs, so cwnd halves repeatedly (64, 32, 16, then 8, held at the floor), giving min(IW, cwnd) = 10 segments. ssthresh is set to at least 3/4 of 64 = 48, so the connection slow-starts quickly back up to 48 before switching to congestion avoidance.
7. Why does the Eifel response refuse to undo if the ACK carries ECN-Echo?
Answer
ECN-Echo means a router really did mark a packet as congested. The timeout may have been spurious, but congestion is real, so restoring the old, larger window would ignore a genuine congestion signal.
Previous: Congestion Control: Slow Start, Congestion Avoidance and Fast Recovery
Next: Congestion Control in a Real Trace: Reading cwnd, Losses and Recovery

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.