TCP 3-way handshake (setting up a connection in 3 steps)
Sign in to read this lesson
TCP is a reliable protocol, so it sets up a connection before sending any data. The connection is created in three steps: SYN, SYN-ACK and ACK. This is called the 3-way handshake.
What you will learn
- TCP is a reliable protocol: it sets up a connection before sending data.
- This connection is called the 3-way handshake: SYN → SYN, ACK → ACK.
- Every message carries a sequence number (SEQ).
- ACK=2 means: "I received your message with SEQ=1, send the next one with number 2".
- After the three steps both sides know the other one is ready, and data can be sent.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.