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.
- The client sends SYN: "I want to talk, here is my starting number."
- The server answers SYN-ACK: "Heard you, I want to talk too."
- 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
BeginnerPrint the three handshake steps in order, one per line, exactly as written in the theory.
Expected output:
SYN
SYN-ACK
ACKTry it yourself
Terminal
All lessons in The OSI Model
Practice on your own: Terminal playground