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?

  1. A. Round 12
  2. B. Round 13
  3. C. Round 7
  4. 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

Exams that ask this topic