CS FundamentalsModerateGATE CS · Product company CS fundamentals
In a TCP connection the client calls close() first and the server closes later. Which sequence of states does the SERVER go through from ESTABLISHED?
- A. CLOSE_WAIT → LAST_ACK → CLOSED
- B. FIN_WAIT_1 → FIN_WAIT_2 → TIME_WAIT → CLOSED
- C. CLOSE_WAIT → TIME_WAIT → CLOSED
- D. LAST_ACK → CLOSE_WAIT → CLOSED
Correct answer: A. CLOSE_WAIT → LAST_ACK → CLOSED
The passive closer receives FIN and enters CLOSE_WAIT; when its application closes it sends its own FIN and waits in LAST_ACK for the ACK, then goes to CLOSED. FIN_WAIT_1/2 and TIME_WAIT belong to the active closer (the client here).
More Computer Networks questions
- A remote-shell client writes one keystroke (1 byte) at a time to a TCP socket with Nagle's algorithm enabled; the RTT is 50 ms and the…
- Which pair correctly matches the fix with the side that causes silly window syndrome? (i) receiving application reads data one byte at a…
- How many of the following statements about UDP are correct? 1. The UDP checksum covers a pseudo-header containing the source and…
- A sender must deliver frames 1–8 with a window of 4. Only the first transmission of frame 3 is lost; nothing else is lost, and the sender…
- A 2 Mbps link uses Selective Repeat with a window of 10 frames. The propagation delay is 8 times the frame transmission time and ACKs are…
- A block code has minimum Hamming distance 5. Which statement is correct?