TCP/IP 3-Way Handshake
The 3-way handshake is how TCP ensures both sides are ready to communicate.
- SYN: Client sends a SYN (synchronize) packet.
- SYN-ACK: Server responds with SYN-ACK.
- ACK: Client sends an ACK (acknowledge) packet.
Now, the connection is established.