TCP RTT – Initial Estimated Round Trip Time in the RTT Formula

latencyprotocol-theorytcp

I was reading about Round Trip Time (RTT) and then I came across this formula

EstimatedRTT = 0.9 * PreviousEstimatedRTT + 0.1 * Sample RTT

What is the value of PreviousEstimatedRTT when it is calculated for the very first time??Is it assumed to be 0 or any other value??

Best Answer

According to RFC 6928, the SRTT is only calculated with the formula

SRTT <- (1 - alpha) * SRTT + alpha * R'

after two RTT measurements have been made. After the first measurement, SRTT is initilized to the value of this first measurement, ie. SRTT <- R'.

You were close, according to the RFC alpha SHOULD be 1/8 (= 0.125).

Note, in RFC's, SHOULD means "there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course." (RFC 2119)

Related Topic