101 · Question #595
A client receives all of the expected data from a server and sends a FIN packet signaling the end of communication. What will the server do when it receives the FIN Packet from the client?
The correct answer is D. send an ACK Packet. In TCP's four-way connection termination, receiving a FIN triggers an ACK - not a reset or new connection initiation.
Question
A client receives all of the expected data from a server and sends a FIN packet signaling the end of communication. What will the server do when it receives the FIN Packet from the client?
Options
- Asend a SYN packet
- Bsend an RST packet
- CSend both FIN and RST packets
- Dsend an ACK Packet
How the community answered
(27 responses)- A7% (2)
- B4% (1)
- D89% (24)
Why each option
In TCP's four-way connection termination, receiving a FIN triggers an ACK - not a reset or new connection initiation.
SYN packets initiate new TCP connections and have no role in connection termination.
RST packets abruptly terminate a connection due to an error condition, not as a normal graceful response to a FIN.
Sending both FIN and RST simultaneously is not standard TCP behavior; the FIN and ACK are sent in separate steps of the termination sequence.
When a server receives a FIN from the client, TCP requires it to immediately send an ACK to acknowledge receipt of the client's close request. This places the connection in a half-closed state where the server may still send remaining data before issuing its own FIN to complete the four-way termination handshake.
Concept tested: TCP four-way connection termination sequence
Source: https://datatracker.ietf.org/doc/html/rfc793
Topics
Community Discussion
No community discussion yet for this question.