Menu
Coddy logo textTech

The TCP Handshake

Lesson 17 of 32 in Coddy's The OSI Model course.

TCP promises that bytes arrive complete and in order. That promise starts with a ritual: before any data flows, the two sides perform the three-way handshake.

  1. The client sends SYN: "I want to talk, here is my starting number."
  2. The server answers SYN-ACK: "Heard you, I want to talk too."
  3. The client confirms with ACK, and the connection is open.

Every TCP connection on Earth, every web page, every SSH session, begins with exactly these three packets.

challenge icon

Challenge

Beginner

Print the three handshake steps in order, one per line, exactly as written in the theory.

Expected output:

SYN
SYN-ACK
ACK

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground