Pcornel
Networking · IP Fundamentals › TCP

Reliability

Cheat sheet · https://pcornel.dk/topic.php?topic=916

Back to the Topic

Answer

TCP does not make the network reliable; it detects missing byte progress and retransmits. Cumulative ACKs identify the next expected byte, while SACK can describe additional received ranges beyond a gap.

Remember

A retransmission proves that the sender believed progress was missing, not where the packet was lost. “TCP retransmission” in an analyzer is an inference based on capture visibility and timing, not automatic root cause.

First checks

  • Packet capture: tcpdump -nn -i <if> host <ip> and port <p> or Wireshark filter tcp.stream eq <n>.
  • ss -tni (Linux) / netstat -ano (Windows) — connection state, RTT, retransmits and windows.
  • Test-NetConnection <host> -Port <p> / nc -vz <host> <p> — does the handshake complete?
  • show tcp brief (IOS) — TCP sessions to the device itself.
  • show interfaces <if> | include drops|errors — drops on the path.

Verify in this order

segment lost → receiver sends duplicate ACKs or sender times out → sender retransmits → receiver ACKs the repaired range → throughput recovers

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Reliability operational reference

Reliability signalMeaningCommon ambiguityNext proof
Duplicate ACKReceiver not advancing cumulative ACKReordering or ACK duplicationSequence/SACK timeline
SACK blockLater byte range received beyond gapCapture may miss original packetTrace missing range
Fast retransmitSender reacted before RTOAlgorithm-dependent triggerLoss/reordering evidence
RTO retransmitProgress timed outForward or reverse lossBoth directions/path
ACK advances after retryGap repairedRoot cause may remainRepeated workload

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=916

Confirmation

Confirm action

Continue?