Use this Topic for retransmissions, duplicate ACKs, SACK blocks, RTO events, intermittent loss, asymmetric failures and streams that recover slowly after a missing segment.
Reliability
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.
1. Wireshark tcp.analysis.retransmission — how many, which direction?
2. Fast retransmits (after duplicate ACKs) vs RTO timeouts (long pauses)?
3. ss -ti / netstat -s | findstr /i retrans — retransmission counters.
4. Find where loss happens: interface drops, errors, QoS drops along the path.
5. Fix the loss; TCP only hides it.
segment lost → receiver sends duplicate ACKs or sender times out → sender retransmits → receiver ACKs the repaired range → throughput recovers
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
Build a byte-range timeline rather than counting analyzer warnings. Identify the first sequence range whose acknowledgement does not advance, then inspect whether the receiver reports later bytes through duplicate ACKs or SACK. Determine whether the sender retransmits quickly or waits for an RTO, and whether the retransmission itself is acknowledged. In parallel, inspect the exact egress/ingress interfaces, queue drops, physical errors, policing and ECMP member used during the event. A known-good case should show monotonic ACK progress with only occasional recovery; a failure case should preserve the same tuple and workload so retransmission density and timing can be compared meaningfully. This section is authored reference guidance for Reliability in the TCP context.
Step 2 Verification & troubleshooting Narrow the fault
1. Verify IP path and return path.
2. Confirm destination port is listening.
3. Inspect the three-way handshake.
5. Validate application request/response.
Step 3 Failure signatures and troubleshooting branches Narrow the fault
If retransmissions cluster around one direction, separate forward data loss from reverse ACK loss: both can cause sender retransmission. If duplicate ACKs and SACK blocks show the receiver obtained later data, trace the missing range through the forward path. If no ACKs return at all, inspect return routing, stateful policy and endpoint health. If retransmission succeeds but throughput stays poor, examine repeated loss, RTT inflation and congestion behavior rather than declaring closure. If the analyzer reports “spurious retransmission,” verify capture completeness before assuming the endpoint behaved incorrectly. Avoid clearing interfaces or routing protocols unless the missing range correlates to an actual device boundary. This section is authored reference guidance for Reliability in the TCP context.
Step 4 When the problem is really fixed Narrow the fault
Closure requires replaying the original stream and showing that the previous missing-byte pattern is gone or reduced to an explained normal baseline, ACKs advance through the same workload, and the application completes successfully. Correlate any device counter improvement with the same timestamps and path member. A clean packet capture at one point cannot show every hop was loss-free, and one successful retransmission does not show the root cause is fixed. Preserve the distinction between protocol-derived observations, device telemetry and authored troubleshooting guidance when recording Evidence later. This section is authored reference guidance for Reliability in the TCP context.
Step 5 Common mistakes Narrow the fault
- Assuming TCP hides all loss — retransmissions add latency.
- Ignoring retransmission counters.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
- 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.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key operational limits
- SYN, SYN-ACK, ACK establish a connection
- Sequence and acknowledgement numbers track bytes
In depth
How TCP achieves reliability
TCP turns an unreliable IP service into a reliable byte stream by combining several mechanisms. RFC 9293 makes the checksum mandatory: senders must generate it and receivers must check it. The retransmission timeout must be calculated dynamically from measured round-trip times, so TCP adapts to slow and fast paths alike. Sequence numbers and cumulative ACKs tell the sender what is missing, and TIME-WAIT, held for 2×MSL (MSL is taken as 2 minutes), stops old duplicates from corrupting a new connection.
Mechanisms working together
| Mechanism | Protects against |
|---|---|
| Checksum | Corrupted segments |
| Sequence numbers | Reordering and duplicates |
| Cumulative ACK and SACK | Loss going unnoticed |
| Retransmission timer (RTO) | Lost segments and lost ACKs |
| Fast retransmit after duplicate ACKs | Waiting a full timeout for a single loss |
| TIME-WAIT | Old segments being accepted by a new connection |
| Resets | Half-open connections after a crash |
Retransmission behaviour
| Event | TCP response |
|---|---|
| Three duplicate ACKs | Resend the missing segment immediately; reduce the congestion window |
| RTO expires | Resend, double the timeout (exponential backoff), sharply reduce the sending rate |
| Repeated timeouts | The application eventually sees a connection error |
host$ ss -ti dst 10.30.0.15 | grep -o "rto:[^ ]*\|rtt:[^ ]*\|retrans:[^ ]*\|lost:[^ ]*"
rto:204
rtt:3.1/0.8
retrans:0/57
host$ nstat -az TcpRetransSegs TcpExtTCPLostRetransmit
R1# show interfaces GigabitEthernet0/0/1 | include drops|errors
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 18842
What reliability doesn't cover
| Limit | Consequence |
|---|---|
| Reliability is end to end | Loss still happens in the network and costs throughput |
| No protection against tampering | The checksum detects errors, not attacks; use TLS |
| The application must handle connection errors | TCP gives up after repeated timeouts |
Retransmissions are a symptom. Find the loss on the path, such as output drops, errors or a congested queue, rather than tuning TCP.
Documented example, not captured output.
Quick reference
TCP reliability comes from retransmission: the sender keeps unacknowledged data and resends it when an acknowledgement does not arrive in time (retransmission timeout) or when duplicate ACKs signal a loss. Congestion control reduces the sending rate after loss.
| Mechanism | Trigger |
|---|---|
| RTO retransmission | No ACK before the timer expires |
| Fast retransmit | Three duplicate ACKs |
| Congestion window reduction | Loss detected (CUBIC, BBR differ in reaction) |
Even 1% packet loss can cut TCP throughput dramatically on high-latency links, so loss matters more than raw bandwidth for TCP performance.
Mechanics and state ownership
TCP reliability maintains a sender-side record of unacknowledged byte ranges and a receiver view of the next contiguous byte expected. When data arrives in order, cumulative ACKs advance. When a gap appears, later segments can trigger duplicate ACK behavior and SACK blocks can tell the sender which non-contiguous ranges are already present. The sender can retransmit based on duplicate-ACK/fast-recovery logic or after a retransmission timeout when progress is insufficient. Reordering can mimic some loss symptoms, and captures taken after NIC offload or on only one direction can distort packet boundaries. Reliability therefore recovers the byte stream, but it does not tell you which Layer-2/Layer-3 hop discarded or delayed the original transmission. This section is authored reference guidance for Reliability in the TCP context.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → TCP → Reliability. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9293.html · confidence 94%Quick lookup tables
Reliability operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| 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 |