Compute the TCP retransmission timeout from measured round-trip time
Before measuring RTT, a TCP sender should use a one-second RTO; its first sample sets SRTT to the sample, RTTVAR to half the sample, and RTO to SRTT plus the larger of clock granularity or four times RTTVAR.
Read the explainer