To calculate the estimated Round-Trip Time (RTT) and the DevRTT (deviation of RTT), you can use the following formulas:
-
Estimated RTT: ( \text{Estimated RTT} = (1 - \alpha) \times \text{Estimated RTT} + \alpha \times \text{Sample RTT} ), where ( \alpha ) is typically set to 0.125.
-
DevRTT: ( \text{DevRTT} = (1 - \beta) \times \text{DevRTT} + \beta \times |\text{Sample RTT} - \text{Estimated RTT}| ), where ( \beta ) is generally set to 0.25.
-
Timeout interval: ( \text{Timeout} = \text{Estimated RTT} + 4 \times \text{DevRTT} ).
Using these formulas with appropriate RTT samples will give you the estimated RTT, DevRTT, and the timeout interval.