CS FundamentalsVery hardProduct company interview · GATE level

A TCP sender has EstimatedRTT = 100 ms and DevRTT = 10 ms. Two new RTT samples arrive: 140 ms, then 80 ms. For each sample it first updates DevRTT = 0.75 x DevRTT + 0.25 x |Sample - EstimatedRTT| using the old EstimatedRTT, and then EstimatedRTT = 0.875 x EstimatedRTT + 0.125 x Sample. With timeout = EstimatedRTT + 4 x DevRTT, what is the retransmission timeout after the second sample?

  1. A. 140.625 ms
  2. B. 172.5 ms
  3. C. 179.375 ms
  4. D. 181.875 ms

Correct answer: C. 179.375 ms

Sample 140: DevRTT = 7.5 + 0.25 x 40 = 17.5; EstimatedRTT = 87.5 + 17.5 = 105. Sample 80: DevRTT = 13.125 + 0.25 x |80 - 105| = 13.125 + 6.25 = 19.375; EstimatedRTT = 91.875 + 10 = 101.875. Timeout = 101.875 + 4 x 19.375 = 179.375 ms. Updating EstimatedRTT before DevRTT gives 172.5 ms, which is not the order stated; adding only 2 x DevRTT gives 140.625 ms.

More Computer Networks questions

Exams that ask this topic