Problem Statement
Describe how a TCP connection is terminated.
Explanation
TCP uses a four-step termination process. One side sends a FIN to signal it has finished sending. The receiver acknowledges with ACK and may send its own FIN when done. The first side replies with a final ACK. This orderly teardown ensures that all data is delivered and resources are released gracefully. Interviews often ask candidates to contrast this with the three-way handshake.
Practice Sets
This question appears in the following practice sets: