TCP 3 way handshake
Back to Networking page
- TCP connection is done through 3 way handshake process
- 3 way handshake establishes connection.
Diagram


Explanation
- Client sends SYN message to initiate connection. Also sends seq number
- Server sends SYN+ACK message with seq number & Ack number which is client seq number + 1 .
- Client sends ACK message with client seq+1 and Ack number which is server seq number + 1.
- If server replies with RST & ACK flag then port status is closed.
- –
Sources :
- Youtube video - short
- Youtube video - detailed
- Detailed Hindi video
- Website