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?
- A. 140.625 ms
- B. 172.5 ms
- C. 179.375 ms
- 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
- A client opens a TCP connection with initial sequence number 5000; the server chooses 9000. After the three-way handshake the client sends…
- Two stations 3000 km apart are joined by a 4 Mbps link on which signals travel at 2 x 10^8 m/s. Frames are 2000 bytes long, ACKs are…
- A stop-and-wait link runs at 1 Mbps with a one-way propagation delay of 10 ms. Data frames are 5000 bits, ACKs are 500 bits, and each data…
- A sender must deliver frames 1 to 12. Every 6th frame transmission (counting retransmissions too) is lost; ACKs are never lost. With…
- A stop-and-wait sender has 6 frames to deliver over a 100 kbps link with one-way propagation delay 20 ms. Frames are 1000 bits and ACKs…
- A 20 Mbps link has a one-way propagation delay of 8 ms and carries 1250-byte frames; ACKs are negligibly short. The sender window is…