CS FundamentalsVery hardProduct company interview · GATE level
A TCP Reno sender starts transmission round 1 with cwnd = 1 MSS and ssthresh = 32 MSS. In slow start cwnd doubles every round but is never raised above ssthresh; at or above ssthresh it grows by 1 MSS per round. A loss is detected by three duplicate ACKs during round 9 and by a timeout during round 15. On triple duplicate ACK, ssthresh = floor(cwnd/2) and the next round starts with cwnd = ssthresh; on timeout, ssthresh = floor(cwnd/2) and cwnd restarts at 1 MSS. What is cwnd in round 22?
- A. 13 MSS
- B. 18 MSS
- C. 12 MSS
- D. 14 MSS
Correct answer: A. 13 MSS
Rounds 1-6: 1, 2, 4, 8, 16, 32 (slow start reaches ssthresh). Rounds 7-9: 33, 34, 35. Triple duplicate ACK at 35: ssthresh = 17, and rounds 10-15 are 17, 18, 19, 20, 21, 22. Timeout at 22: ssthresh = 11, cwnd = 1. Rounds 16-19: 1, 2, 4, 8. Doubling 8 would give 16, above ssthresh, so round 20 is 11, then 12 and 13 in rounds 21 and 22. The 18 MSS answer comes from letting slow start overshoot to 16 and then adding 1 per round; 12 is the value one round too early.
More Computer Networks questions
- A TCP sender must deliver a file of exactly 100 segments. It starts with cwnd = 1 segment and ssthresh = 8 segments; cwnd doubles per…
- 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…
- 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…