TCP Retransmission Timer Calculator

See the retransmission timeout a TCP sender derives from measured round trips.

One to 24 measured round trips in milliseconds, separated by spaces, commas or line breaks: 540 620 580 660 is a satellite path at about 600 ms, 24 31 28 45 a local network.

G is the clock tick the sender can measure with, one millisecond on most systems. RFC 6298 allows a maximum timeout of 60 seconds but does not require one.

Each round-trip sample folds into two running values: the smoothed round trip SRTT and the variation RTTVAR. The first sample sets SRTT to itself and RTTVAR to half of it; every later sample moves the variation four parts towards the gap between the old smoothed value and the new sample and one part towards the sample itself, then moves the smoothed value seven parts towards itself and one part towards the sample. The timeout is SRTT plus four times RTTVAR, or SRTT plus G if the variation is smaller than the clock tick, and RFC 6298 rounds anything under one second up to one second. The page models the measurement-driven timer only: a real sender doubles the timer on each retransmission until the next good sample, and implementations differ on the cap they keep. On a short terrestrial path the four-times-variation term is a few tens of milliseconds, so the one-second floor decides the timer and the samples make no difference - which is why a sender still waits a second before its first retransmission on a 20 ms link. Everything runs in your browser with no storage, uploads or network access.