TCP/IP 3-Way Handshake

The 3-way handshake is how TCP ensures both sides are ready to communicate.

  1. SYN: Client sends a SYN (synchronize) packet.
  2. SYN-ACK: Server responds with SYN-ACK.
  3. ACK: Client sends an ACK (acknowledge) packet.

Now, the connection is established.