Reliability
Cheat sheet · https://pcornel.dk/topic.php?topic=916
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 filtertcp.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 signal | Meaning | Common ambiguity | Next proof |
|---|---|---|---|
| Duplicate ACK | Receiver not advancing cumulative ACK | Reordering or ACK duplication | Sequence/SACK timeline |
| SACK block | Later byte range received beyond gap | Capture may miss original packet | Trace missing range |
| Fast retransmit | Sender reacted before RTO | Algorithm-dependent trigger | Loss/reordering evidence |
| RTO retransmit | Progress timed out | Forward or reverse loss | Both directions/path |
| ACK advances after retry | Gap repaired | Root cause may remain | Repeated workload |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=916