Round Trip Time Formula
Equation for calculate round trip time is,
RTT = (α · Old_RTT) + ((1 − α) · New Round Trip Sample)
where,a is known as the smoothing factor and it determines how much weight the new measurement carries and the value of a lies between 0.8 and 0.9.
If a = 0, we simply use the new value,
If a = 1, we ignore the new value,
RTT = Round Trip Time