Loading...
Loading...
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.
Three-way Handshake is connection establishment process between client and server via TCP (Transmission Control Protocol).
This mechanism ensures reliable and ordered connection between two parties before data exchange begins.
TCP connection establishment happens in three steps:
Client initiates connection and sends SYN packet (synchronize) to server with initial sequence number.
Server receives SYN, confirms it with ACK (acknowledgment), and simultaneously sends its SYN — i.e., server says: "I received your request and want to establish connection".
Client receives SYN-ACK, confirms it by sending ACK packet. After this connection is considered established, and data exchange begins.
Important:
Three-way handshake applies only to TCP. UDP protocol doesn't require connection establishment.
| Stage | What it Does |
|---|---|
SYN | Client requests connection |
SYN-ACK | Server confirms and offers connection |
ACK | Client confirms connection |
After this data transmission can begin.