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?
- A. 3 segments; SYN_SENT then ESTABLISHED
- B. 4 segments; LISTEN, SYN_RCVD, then ESTABLISHED
- C. 4 segments; SYN_SENT, SYN_RCVD, then ESTABLISHED
- 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
- Client A sends FIN to server B, and B ACKs it but has not yet closed. How many of these are correct? 1. A is in FINWAIT2 and B is in…
- On a 40 Gbps path a TCP connection's 32-bit sequence space can wrap within the network's maximum segment lifetime, so an old delayed…
- Two HTTPS sites, a.example and b.example, share one IP address and port 443, each with its own certificate. How does the server know which…
- A download of a 10,000,000-byte file over HTTP broke after the first 4,000,000 bytes (bytes 0 to 3,999,999) arrived. To resume, which…
- In an SMTP session between two mail servers, in which order are these commands sent? P. DATA Q. RCPT TO R. EHLO S. MAIL FROM T. QUIT
- A system identifies records by a 64-bit hash. Roughly how many random records must be hashed before the chance of at least one collision…