GATE 2017 CS (CS1) – Question 24
Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls `close` to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the server-side TCP?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) FIN-WAIT-2
Explanation
The client sends FIN and enters FIN-WAIT-1. When it receives the ACK for that FIN, it moves to FIN-WAIT-2 and waits there for the server's own FIN.
More TCP: Flow Control, Congestion Control, Socket API questions
- GATE 2014 CS (CS1) Q37
- GATE 2014 CS (CS2) Q34
- GATE 2017 CS (CS2) Q28
- GATE 2012 CS Q32
- GATE 2013 CS Q22
- GATE 2015 CS (CS2) Q33
All TCP: Flow Control, Congestion Control, Socket API questions →