Skip to content

Lesson 4 of 9 · 26m

Retransmission and Loss Recovery: RTO, Fast Retransmit, and SACK

How TCP decides a segment is gone, why fast retransmit is usually preferable to timeout recovery, and how selective acknowledgments change what gets resent.

A retransmission is not a scandal. It is TCP doing its job in a network where loss exists. The incident skill is distinguishing routine loss recovery from pathological retransmission patterns, because the first costs milliseconds and the second can turn a small problem into a collapse.

The timeout path is the expensive path

TCP keeps a retransmission timer. If an acknowledgment does not arrive before the retransmission timeout, the sender resends unacknowledged data and usually assumes congestion is severe. It slows down sharply, often entering slow start again after the timeout.

t=0.000  seq=1000 len=1460
t=0.200  retransmission seq=1000 len=1460   (RTO fired)

Modern stacks measure round-trip time continuously and adapt the timeout. On a healthy LAN it can be tens of milliseconds; across lossy WAN paths it can be much larger. That is why one dropped packet sometimes costs almost nothing and sometimes stalls an application for a visible beat.

Fast retransmit uses receiver feedback

Receivers generate duplicate cumulative ACKs when later data arrives while a gap remains. Three duplicate ACKs are treated as strong evidence that one segment was lost rather than merely delayed. The sender retransmits the missing sequence range without waiting for the full timeout.

1. server sends 1000, 2460, 3920, 5380
2. 2460 is lost
3. receiver ACKs 2460 repeatedly as later segments arrive
4. sender fast-retransmits seq=2460

Fast retransmit is good news in moderation. It means the feedback loop worked. Constant fast retransmits in the same direction often point to chronic loss on one path, a failing interface, congestion, or policing.

SACK narrows the blast radius

Selective acknowledgment lets the receiver say which non-contiguous blocks arrived. Without SACK, the sender knows the cumulative hole but not all the later arrivals. With SACK, it can retransmit only missing ranges.

ACK 2000
SACK 3000-4500
SACK 6000-7500

This means bytes before 2000 are contiguous, bytes 3000–4500 and 6000–7500 arrived, and the missing pieces are inferable. In high-delay networks, SACK can be the difference between a brief dip and a full window of redundant retransmission.

Spurious retransmissions are a clue

A spurious retransmission is a resent segment that was not actually needed — often caused by reordering or an RTT estimate that was too aggressive. They are not harmless. They waste capacity and can trigger congestion responses unnecessarily. When you see retransmitted bytes followed by an ACK that already covered them, suspect reordering or measurement error.

Patterns operators should recognize

  • Single isolated retransmit, immediate ACK progress: normal loss recovery.
  • Repeated RTOs with exponential backoff: severe loss, blackhole, or path failure.
  • Retransmissions only in the upload direction: inspect the client-to-server path, not the server socket.
  • Retransmissions at fixed application sizes: possible MTU, fragmentation, or middlebox interaction.
  • Burst of retransmits after idle: sometimes timer and congestion state interacting badly, not a network outage.

Field notes

  • Wireshark labels are heuristics; verify against sequence arithmetic before repeating them in an incident report.
  • Capture at both ends when possible. A sender retransmission tells only half the story.
  • Packet loss is directional. Test and capture each direction independently.
  • Do not chase one retransmitted packet in a gigabyte capture; chase rates, bursts, and stalls.
  • Check interface counters for drops before assuming the WAN is guilty.

Was this lesson helpful?

Sign in to rate