Skip to main content
InterviewHubPRO
Section Overview
Q3

Question 3 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

6%
Networking & Protocols (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

How does the TCP 4-Way Handshake terminate a connection?

junior Levelnetworking-protocolsBasic

In Simple Words: Terminates connections gracefully in both directions:

  1. FIN: Client sends FIN (signals it has no more data to send).
  2. ACK: Server sends ACK (acknowledges client's close; server can still send data).
  3. FIN: When server finishes, it sends its own FIN.
  4. ACK: Client sends ACK and enters TIME_WAIT state (waits $2 \times \text{MSL}$ to ensure final ACK was received).