Communication Networks · Visualized
TCP 3-Way Handshake
Transport Reliability
TCP connections, retransmission timers and sliding windows that make lossy links behave.
6 interactive subtopics — each one animated, step-through and explained.
TCP 3-Way Handshake
Transport ReliabilityBefore TCP moves one data byte, both endpoints synchronise initial sequence numbers and buffer sizes. The three-message handshake proves both directions work, seeds the numbering used to detect loss, and negotiates options like window scaling — all before the application payload begins.
How TCP 3-Way Handshake Works
- Client sends SYN with random ISN x — “I want to talk; I’ll count from x.”
- Server replies SYN-ACK carrying its own ISN y and ACK = x+1 — “heard you; I start at y.”
- Client answers ACK = y+1 — both sides now consider the connection ESTABLISHED.
- Sequence numbers increment per byte, which is how ACKs acknowledge exact ranges.
- Closing repeats the dance with FIN/ACK from both sides (four steps).
TCP 3-Way Handshake Worked Example
Try it: Play — watch seq/ack counters appear on each arrow as the connection opens, transfers, and closes cleanly.
SYN(seq=100) → SYN-ACK(seq=500, ack=101) → ACK(ack=501). The GET rides seq 101; the server’s reply acknowledges it and pushes its own bytes forward.
TCP 3-Way Handshake: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.