RTT Estimation & Timers
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
A retransmission timer that is too short floods the network with duplicates, and one that is too long leaves the connection idle after a loss. TCP estimates path delay to choose a value that adapts.
On the wire
TCP samples RTT by timestamping a segment and measuring until its ACK arrives, then updates smoothed RTT and its variance with exponential weighting. The retransmission timeout is derived from SRTT plus a multiple of the variance, with a minimum floor and exponential backoff on repeated timeouts.
When it breaks
A sudden route change increases RTT beyond the current RTO, causing spurious retransmissions that add load and confuse the estimator. An ACK arriving after the timer expired is ambiguous, which is why estimators ignore RTT samples taken from retransmitted segments.
Timers & acknowledgments
Advance the event timeline to see RTT samples, duplicate ACKs and retransmission behavior.
SRTT is updated with exponential weighting
Caps bytes in flight regardless of congestion window
The gap is reported by repeated ACKs for the missing byte until the sender reacts.