Interactive end-of-chapter exercises


Computing TCP's RTT and timeout values

Suppose that TCP's current estimated values for the round trip time (estimatedRTT) and deviation in the RTT (DevRTT) are 310 msec and 32 msec, respectively (see Section 3.5.3 for a discussion of these variables). Suppose that the next three measured values of the RTT are 210 msec, 240 msec, and 350 msec respectively.

RTT Diagram

Compute TCP's new value of DevRTT, estimatedRTT, and the TCP timeout value after each of these three measured RTT values is obtained. Use the values of α = 0.125, and β = 0.25. Round your answers to two decimal places after leading zeros.



Question List


1. What is the estimatedRTT after the first RTT?

2. What is the RTT Deviation for the the first RTT?

3. What is the TCP timeout for the first RTT?

4. What is the estimatedRTT after the second RTT?

5. What is the RTT Deviation for the the second RTT?

6. What is the TCP timeout for the second RTT?

7. What is the estimatedRTT after the third RTT?

8. What is the RTT Deviation for the the third RTT?

9. What is the TCP timeout for the third RTT?




Solution


DevRTT is calculated with the following equation: (1-beta)*DevRTT + beta * |estimatedRTT - sampleRTT|
estimatedRTT is calculated with the following equation: (1-alpha)*estimatedRTT + alpha*sampleRTT
TCP timeout is calculated with the following equation: estimatedRTT + (4*DevRTT)

1. The estimatedRTT for RTT1 is 297.5

2. The DevRTT for RTT1 is 49

3. The timeout for RTT1 is 493.5

4. The estimatedRTT for RTT2 is 290.31

5. The DevRTT for RTT2 is 51.13

6. The timeout for RTT2 is 494.81

7. The estimatedRTT for RTT3 is 297.77

8. The DevRTT for RTT3 is 53.27

9. The timeout for RTT3 is 510.84



That's incorrect

That's correct

The answer was: 297.5

Question 1 of 9

The answer was: 49

Question 2 of 9

The answer was: 493.5

Question 3 of 9

The answer was: 290.31

Question 4 of 9

The answer was: 51.13

Question 5 of 9

The answer was: 494.81

Question 6 of 9

The answer was: 297.77

Question 7 of 9

The answer was: 53.27

Question 8 of 9

The answer was: 510.84

Question 9 of 9

Try Another Problem

We’d appreciate your leave us feedback on this networking tutor.

We gratefully acknowledge the programming and problem design work of John Broderick (UMass '21), which has really helped to substantially improve this site. The networking tutor was designed and implemented by Hashim Zia and Shayan Ahmad from New York University Abu Dhabi.

Copyright © 2010-2025 J.F. Kurose, K.W. Ross
Comments welcome and appreciated: kurose@cs.umass.edu