CS FundamentalsVery hardProduct company interview · GATE level
A TCP sender must deliver a file of exactly 100 segments. It starts with cwnd = 1 segment and ssthresh = 8 segments; cwnd doubles per round below ssthresh and grows by 1 per round from ssthresh onwards. The receiver advertises a constant window of 10 segments, there are no losses, and in each round the sender transmits min(cwnd, receiver window) segments. In which round is the last segment of the file sent?
- A. Round 12
- B. Round 13
- C. Round 7
- D. Round 11
Correct answer: B. Round 13
Segments per round: 1, 2, 4, 8 (slow start), then 9, 10 in congestion avoidance. From round 7 onwards cwnd is 11 or more, but the receiver window caps each round at 10. Running total: 1, 3, 7, 15, 24, 34 after six rounds, then +10 per round: 44, 54, 64, 74, 84, 94, 104. The total first reaches 100 in round 13. Ignoring the receiver window gives round 12 (57, 70, 84, 99, 115); pure doubling with no threshold gives round 7.
More Computer Networks questions
- 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…
- 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…