Spurious Retransmissions, Reordering and Duplication: DSACK, Eifel and F-RTO
What happens when TCP retransmits data that wasn't lost: spurious timeouts from delay spikes, DSACK reports, Eifel detection with timestamps, F-RTO and undoing the window cut, plus how reordering and duplication affect TCP, the per-destination metrics cache, repacketization, and timer-based attacks.
kvi5hnuCode Sprout team member12 min readOn this page
Articles 65 and 66 treated every retransmission as the repair of a real loss. But TCP can only guess that a segment is lost. If the segment, or its ACK, was just late, the retransmission is spurious: it wastes capacity and, worse, makes congestion control cut the sending rate for nothing. This article shows how spurious retransmissions happen, how a sender finds out, and what it does about it. Then it looks at the related path problems, reordering and duplication.
A spurious timeout
Delay can jump suddenly: a wireless link retransmits at its own layer, a cellular network hands over between cells, or a queue fills up behind a burst. If the delay rises above the RTO, the timer fires even though nothing was lost.
In the lab, a 1.5 MB transfer ran over a 40 ms RTT path. After 250 ms, the ACK path's delay was raised to 420 ms for 300 ms and then restored:
net.ipv4.tcp_frto = 2: 1.5 MB in 730 ms
TcpRetransSegs 1 0.0
TcpExtTCPLossUndo 1 0.0
TcpExtTCPTimeouts 1 0.0
TcpExtTCPDSACKRecv 1 0.0
TcpExtTCPDSACKRecvSegs 1 0.0
The plot below shows the transfer as sequence number against time, with the ACK stall shaded.

No ACKs reached the sender for several hundred milliseconds, so its timer fired and it retransmitted the oldest outstanding segment. But nothing had been lost: the ACKs were just stuck. When they arrived, they acknowledged data the sender had already decided to resend. The counters tell the story: one timeout, one retransmission, one DSACK, and one undo.
DSACK: the receiver reports a duplicate
When the retransmitted segment reached the client, it already had that data, so it received a duplicate. A DSACK (duplicate SACK, RFC 2883) reports exactly that: the first SACK block in the ACK covers data below the cumulative ACK, which can only mean "I got this twice":
server: retransmits seq 101361
client: ACK 218649 with DSACK 101361-102809 (TSecr 1069181153)
The ACK acknowledges everything up to byte 218,649, and its SACK block names the range 101,361 to 102,809, which is the retransmitted segment. When the sender sees a DSACK for a segment it retransmitted, it knows the retransmission was unnecessary. Linux counts these in TCPDSACKRecv. Linux sends DSACKs by default (net.ipv4.tcp_dsack = 1).
Eifel detection: timestamps tell sooner
DSACK arrives only after the retransmission reaches the receiver, a full round trip later. The Eifel detection algorithm (RFC 3522) uses timestamps to find out faster. The retransmission carries a new TSval. If the first ACK that arrives after the retransmission echoes an older TSval (the original transmission's), that ACK was triggered by the original, which therefore wasn't lost. The sender knows at once that the timeout was spurious, before the retransmission even arrives.
F-RTO: probing with new data
Timestamps aren't always available. F-RTO (forward RTO recovery, RFC 5682) works without them. After a timeout, the sender retransmits the first segment as usual, but then, if the next ACK advances the window, it sends new data instead of retransmitting more old segments. If the ACKs that follow acknowledge data that wasn't retransmitted, the original segments must have arrived, and the timeout was spurious. If they don't, it was a real loss, and recovery continues normally.
Linux enables F-RTO by default (net.ipv4.tcp_frto = 2, the SACK-enhanced version).
Responding: undo the damage
Detection is only half the job. A timeout had cut the congestion window to one segment and lowered the slow-start threshold. The Eifel response algorithm (RFC 4015) says: once a timeout is known to be spurious, restore the congestion state to what it was before. Linux calls this an undo, counted as TCPLossUndo here. The plot shows the effect: after the delayed ACKs arrived, the transfer continued at the same pace as before the spike, not from a window of one segment.
RFC 4015 also recommends adjusting the RTO after a spurious timeout so it doesn't happen again on the next spike, for example by resetting it from the latest RTT samples, which include the delay.
Reordering
Packets can arrive in a different order than they were sent: over parallel links, through load balancers that spread one flow over several paths, or after link-layer retransmissions. To TCP, an out-of-order arrival looks like a hole, so reordering can trigger fast retransmit even though nothing was lost.
The lab ran 3 MB transfers while netem sent a share of the data segments 20 ms early, ahead of the rest:
reordered time (ms) retransmissions DSACKs received
0% 610 1 1
1% 536 1 1
5% 823 1 1
25% 2578 5 5
The chart below plots the retransmission and DSACK columns of the table.

Even with a quarter of the segments reordered, Linux sent only a handful of retransmissions, and every one was later flagged by a DSACK as spurious. (There was one spurious retransmission even without any reordering.) RACK's reordering window (article 66) absorbs small reordering, and when a DSACK shows that a retransmission was unnecessary, Linux adapts: it widens the reordering window and raises the duplicate-ACK threshold for the connection. The connection's ss view during a reordered transfer shows this learning:
rtt:41.372/4.891 retrans:11584 retrans:0/8 dsack_dups:8 reordering:24 reord_seen:69 rtt:20.727
(The line was filtered with grep, so retrans:11584 is the end of bytes_retrans:11584, and the last field, rtt:20.727, is the end of minrtt:20.727: the reordered segments skipped part of the path delay, so their round trips were shorter.) reordering:24 is the connection's current estimate of how far segments get displaced (it starts at tcp_reordering, 3, and can grow up to tcp_max_reordering, 300), reord_seen counts reordering events, and dsack_dups counts DSACKs received. Heavy reordering still hurt: the 25% transfer took several times longer, because the retransmissions that did happen reduced the congestion window. Transfer times in this lab varied a lot from run to run, so treat them as rough.
Duplication
A network can also deliver the same packet twice, for example after a link-layer retransmission whose acknowledgment was lost, or from a misconfigured network tap or bridge loop. TCP simply discards the extra copy, and the receiver reports it with a DSACK. The lab duplicated 2% of the data segments:
2% of data segments duplicated: 3 MB in 1307 ms
receiver:
TcpExtTCPDSACKOldSent 43 0.0
sender:
TcpRetransSegs 14 0.0
TcpExtTCPDSACKRecv 55 0.0
TcpExtTCPDSACKIgnoredOld 3 0.0
TcpExtTCPDSACKIgnoredNoUndo 10 0.0
TcpExtTCPDSACKRecvSegs 14 0.0
TcpExtTCPDSACKIgnoredDubious 41 0.0
The receiver sent DSACKs for the duplicates (TCPDSACKOldSent). The sender received them, but most were ignored as "dubious", because it hadn't retransmitted those segments: the duplicates came from the network. The duplicate ACKs also triggered a few unnecessary retransmissions, each later flagged by a DSACK too. Duplication is mostly harmless, but it isn't free.
Destination metrics
When a connection closes, Linux saves some of what it learned about the path in a per-destination cache, so the next connection to the same host can start with better estimates. Right after the spike test, the server's cache entry for the client was:
192.0.2.10 age 0.279sec cwnd 1047 rtt 44049us rttvar 44049us source 198.51.100.10
rtt 44049us is 44.049 ms (us means microseconds), and cwnd 1047 is the congestion window in segments. The saved values include the RTT and its variance, the congestion window and, if applicable, the slow-start threshold and reordering estimate. A new connection uses the saved RTT to seed the RTO for its first data segments (when it's larger than the handshake's own RTT sample). The saved slow-start threshold is used only if net.ipv4.tcp_no_ssthresh_metrics_save is 0; its default is 1, so current kernels don't save it. Usually that helps, but it can also carry one connection's bad experience into the next one. The lab flushed the cache (ip tcp_metrics flush) and set net.ipv4.tcp_no_metrics_save = 1 before the reordering tests, so each run started fresh.
Repacketization
A retransmission doesn't have to be a byte-for-byte copy of the original segment. TCP retransmits bytes, so when it resends data it may combine several small segments into one larger one, or send a different split. Linux collapses small adjacent segments when retransmitting (if they fit in one MSS), which saves packets for interactive traffic that wrote many small chunks. Receivers don't care: they reassemble by sequence number. It's one reason retransmitted segments in a capture don't always line up with the originals.
Attacks on retransmission timers
Retransmission behavior can be exploited:
- Low-rate ("shrew") attacks. An attacker sends short bursts timed to cause loss just as victims' retransmission timers fire. Each retransmission is lost again, the timers back off, and throughput collapses, even though the attack's average rate is low. Randomized minimum RTOs make the timing harder to hit.
- Optimistic ACKs. A malicious receiver acknowledges data it hasn't received yet, tricking the sender into sending faster than the path allows, which can congest the network. Senders can defend by occasionally skipping a sequence number and checking whether the receiver "acknowledges" it.
- Forged DSACKs or undo signals. A receiver lying about duplicates could make a sender undo congestion responses it should keep. Linux ignores DSACKs that don't match its own retransmissions ("dubious"), as the duplication test showed.
Common questions
How do I know whether a connection's retransmissions were necessary?
Look for DSACKs. In ss -ti, dsack_dups counts them per connection. System-wide, compare TCPDSACKRecv with TcpRetransSegs in nstat. A high ratio means many retransmissions were spurious, often caused by reordering or delay spikes.
Why does reordering hurt throughput if TCP doesn't retransmit much?
Each spurious fast retransmit before Linux adapts cuts the congestion window. Undo can restore it once a DSACK arrives, but the connection still loses some sending time, and heavy reordering keeps triggering new episodes.
Should I disable timestamps to save bytes?
Not if spurious timeouts matter to you: Eifel detection relies on timestamps, along with accurate RTT measurement and PAWS (article 60). DSACK and F-RTO still work without them, but more slowly.
Can I stop Linux from caching path metrics?
Yes: net.ipv4.tcp_no_metrics_save = 1, or flush the cache with ip tcp_metrics flush. This is mostly useful in testing, so each run starts from the same state.
Does duplication break TCP?
No. Sequence numbers let the receiver discard duplicate data exactly. The only costs are the wasted bandwidth and occasional extra retransmissions triggered by the duplicate ACKs.
Summary
- A spurious retransmission resends data that wasn't lost, usually because of a delay spike or reordering. In the lab, a 300 ms ACK stall caused one spurious timeout.
- DSACK lets the receiver report duplicate data, so the sender learns afterwards that a retransmission was unnecessary.
- Eifel detection uses timestamps to recognize a spurious timeout as soon as the first ACK arrives. F-RTO detects it by sending new data after the timeout. The Eifel response, Linux's undo, restores the congestion window.
- Reordering triggers occasional spurious fast retransmits. Linux learns from DSACKs, widening its reordering tolerance per connection (shown in
ssasreordering). - Duplicated packets are discarded and reported with DSACKs, which the sender ignores when it didn't retransmit.
- Linux caches per-destination metrics such as RTT and windows for future connections. TCP may repacketize data when retransmitting.
Practice questions
1. An ACK carries cumulative ACK 50,000 and a SACK block 30,000 to 31,448. What does the block mean?
Answer
It's a DSACK. The block lies below the cumulative ACK, so the receiver already had that data: the bytes 30,000 to 31,448 arrived twice. If the sender retransmitted that segment, the retransmission was spurious.
2. A segment is sent with TSval 1000, the timer fires, and it's retransmitted with TSval 1250. The next ACK echoes TSecr 1000. What does the sender conclude?
Answer
That the timeout was spurious. The ACK was triggered by the original transmission (TSval 1000), so the original arrived. That's Eifel detection, and the sender can undo the congestion window cut right away.
3. Why does F-RTO send new data after a timeout instead of retransmitting more old segments?
Answer
To test whether the original segments arrived. If ACKs come back covering data that was never retransmitted, the originals must have been delivered, so the timeout was spurious. Retransmitting old segments would produce ACKs that can't tell the two cases apart.
4. A load balancer splits one TCP flow across two paths with different delays. What symptoms would you expect at the sender?
Answer
Many out-of-order arrivals, so duplicate ACKs and SACKs, some spurious fast retransmits, and DSACKs reporting them. ss -ti would show reordering growing and nonzero dsack_dups. Throughput may suffer from repeated window cuts until Linux adapts.
5. Repeated benchmark runs to the same server behave differently from the first run, for example with different initial RTOs or reordering tolerance. What Linux feature might explain it, and how do you make runs comparable?
Answer
The per-destination metrics cache. The first connection saved RTT, RTT variance and reordering information, which later connections use as their starting point. Flush it with ip tcp_metrics flush before each run, or set net.ipv4.tcp_no_metrics_save = 1.
Previous: Fast Retransmit, SACK Recovery and RACK-TLP
Next: Interactive Traffic: Delayed ACKs, the Nagle Algorithm and TCP_NODELAY

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.