GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 14

GATE CSE 2017 Set 1 Q14

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2017 Set 1 paper

GATE 2017 Set 1, Q14 1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 14, GATE 2017: After TCP data transfer, a client calls close, sends FIN, and receives the server’s ACK. In which RFC793 state does the client now wait for the server FIN? A LAST-ACK; B TIME-WAIT; C FIN-WAIT-1; D FIN-WAIT-2.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. The client is the active closer because it sends FIN first. Sending FIN moves it from ESTABLISHED into FIN-WAIT-1.

2. The ACK acknowledges that outgoing FIN. The client has finished its own send direction but the server has not yet sent its FIN, so it enters FIN-WAIT-2.

3. Receiving the peer FIN and acknowledging it leads to TIME-WAIT. LAST-ACK belongs to the passive closer awaiting acknowledgment of its own FIN. Therefore D.

Original paper, page 8 · Answer key