CS FundamentalsVery hardGATE CS

Two TCP hosts perform a simultaneous open: each sends a SYN to the other before receiving one. How many segments are exchanged to set up the connection, and through which states does each side pass?

  1. A. 3 segments; SYN_SENT then ESTABLISHED
  2. B. 4 segments; LISTEN, SYN_RCVD, then ESTABLISHED
  3. C. 4 segments; SYN_SENT, SYN_RCVD, then ESTABLISHED
  4. D. 3 segments; SYN_SENT, SYN_RCVD, then ESTABLISHED

Correct answer: C. 4 segments; SYN_SENT, SYN_RCVD, then ESTABLISHED

Each side sends SYN (2 segments) and moves to SYN_SENT; on receiving the other's SYN it goes to SYN_RCVD and sends SYN+ACK (2 more). When each SYN+ACK arrives, both enter ESTABLISHED. Neither side passes through LISTEN, and four segments are needed rather than three.

More Computer Networks questions

Exams that ask this topic