CS FundamentalsModerateGATE CS · Product company CS fundamentals

How long does a TCP endpoint stay in TIME_WAIT if MSL = 2 minutes, and which side enters it?

  1. A. 2 minutes, on the side that closes last
  2. B. 4 minutes (2 × MSL), on the side that closes first (sends the first FIN)
  3. C. 4 minutes, on the passive closer
  4. D. 30 seconds, on both sides

Correct answer: B. 4 minutes (2 × MSL), on the side that closes first (sends the first FIN)

The active closer waits 2 × MSL so that a lost final ACK can be resent and stray old segments die out before the same 4-tuple is reused. The passive closer goes through CLOSE_WAIT and LAST_ACK instead.

More Computer Networks questions

Exams that ask this topic