Visual RFC.
ALL RFCs / RFC 6298
Read the RFC ↗
RFC 6298 / TCP retransmission timer

Back off and reject ambiguous samples

04

When an RTO expires, TCP retransmits the earliest unacknowledged segment and doubles the timeout. An ACK after a retransmission may confirm data but cannot normally tell which transmission it answered.

RFC 6298 · § 5EXAMPLE
4 / 4
Back off and reject ambiguous samplesAfter B is acknowledged without a sample, clean new C has RTT 800. With estimator 800/400 retained, update to 800/300 and recompute 2000 ms. Backed-off 9600 collapses by calculation, not an arbitrary 1000 ms reset.ACK processing and RTT sampling differSenderReceivernew C, sent onceclean RTT sample: 800 msRetained SRTT 800 / RTTVAR 400Update to 800 / 300 msRTO: 9600 → 2000 msTimer-based recovery · congestion control separate
04
Recompute after a clean new exchange

After B is acknowledged without a sample, new C is sent and acknowledged once with RTT 800 ms. Retained estimator 800/400 updates to 800/300, giving RTO 2000 ms. Recalculation, not a fixed reset, collapses the backed-off timeout.

Source for this drawing: RFC 6298 · Read RFC section 5 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

Double the timeout after expiration; do not feed ambiguous retransmitted-segment timings into the estimator.

  • On timeout, retransmit the earliest unacknowledged segment (§5.4). The host MUST double RTO (§5.5), subject to a permitted maximum, then restart for that doubled value (§5.6). It does not resend every outstanding segment merely because this timer expired.
  • The first example expires at 2400 ms: resend A, change RTO 2400→4800 ms and restart at 2400 with deadline 7200 ms. The second separate expiration for B doubles 4800→9600 ms. No maximum is chosen in these examples.
  • TCP MUST use Karn’s algorithm: RTT samples MUST NOT come from retransmitted segments because the reply can refer to the original or a later instance (§3). The TCP timestamp option is the stated exception when it removes that ambiguity.
  • An ACK for A arriving at 2600 ms after sends at 0 and 2400 could suggest 2600 ms or 200 ms. The data can be acknowledged, but do not admit either ambiguous value as a new RTT sample. Acknowledgment processing and sampling are distinct.
  • Once new data is sent and acknowledged with an unambiguous RTT sample, recompute using §2. This can collapse a backed-off RTO. The final state retains the old estimator 800/400 ms and uses a clean 800 ms sample, producing SRTT 800/RTTVAR 300/RTO 2000 ms; it does not blindly reset to 1000 ms.
  • An implementation MAY clear SRTT/RTTVAR after multiple backoffs (§5). If it clears them, the next valid sample uses first-sample initialization, not the subsequent-sample update. The drawn final case explicitly retains them. Congestion control after a timeout remains RFC 5681’s separate responsibility.
DETAILS

Independent labeled events: A expires, A’s ambiguous ACK, B expires later, then a clean new C exchange after B is acknowledged. No real traffic or automatic transport implementation.

Read the RFC section ↗

All chapters in RFC 6298

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗