SESK: Stuff Everyone Should Know · sesk.info/aplus-tcp-three-way
How many messages make up the TCP connection setup, known as the handshake?
Three: SYN, SYN-ACK, then ACK.
- Two
- Three ✔
- Four
Why: TCP sets up a connection with a three-way handshake. The middle steps are combined in one message, so the whole exchange is three messages. After that, data flows reliably.
Huh, didn't know that: RFC 9293 describes TCP as a reliable, in-order, byte-stream service.
Knock, knock. Who's there? Cache. Cache who? Cache me if you can, slowpoke!
Like this card?
References
Answer: Three. TCP sets up a connection with a three-way handshake. The middle steps are combined in one message, so the whole exchange is three messages. After that, data flows reliably.
- RFC 9293 www.rfc-editor.org/rfc/rfc9293
Because steps 2 and 3 can be combined in a single message this is called the three-way (or three message) handshake (3WHS).
Checked 2026-10-10. - RFC 9293 www.rfc-editor.org/rfc/rfc9293
TCP provides a reliable, in-order, byte-stream service to applications.
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.