CS FundamentalsVery hardGATE CS (PYQ pattern)

A TCP client with initial sequence number 4000 completes the handshake, sends 1000 bytes of data in two segments, and then sends FIN. The server's ACK of the FIN carries an acknowledgement number of what value?

  1. A. 5001
  2. B. 5000
  3. C. 5002
  4. D. 5003

Correct answer: C. 5002

SYN consumes one number (data starts at 4001); 1000 bytes occupy 4001-5000; FIN occupies 5001, so the ACK of the FIN is 5002.

More Computer Networks questions

Exams that ask this topic