TCP 3-Way Handshake

  • It’s the process that establishes a reliable connection before data transfer begins. This three-step exchange (SYN, SYN-ACK, ACK) ensures both devices are synchronized and ready to communicate.

    Before two devices can communicate using the TCP protocol, they must first establish a TCP session. This ensures that both sides are ready to send and receive data in a reliable and ordered manner.

    To do this, TCP uses a structured process called the 3-Way Handshake, which consists of three distinct steps:

    1. SYN – The client introduces itself and initiates the connection.

    2. SYN-ACK – The server replies, acknowledging the client and sharing its own connection parameters.

    3. ACK – The client confirms, and the TCP session is fully established.

    What Is a 3 Way Handshake illustrated with a client and server exchanging SYN, SYN-ACK, and ACK messages

    Figure 1 – TCP 3-Way Handshake

    Think of it like two people calling each other by name, confirming they can hear one another, and agreeing to start talking.

    Answer the question below