Visual RFC.
ALL RFCs / RFC 9293
Read the RFC ↗
RFC 9293 / CONNECTION LIFECYCLE

Three-way handshake

03

Both endpoints synchronize their initial sequence numbers before ordinary data transfer.

RFC 9293 · § 3.5EXAMPLE
4 / 4
04
Complete synchronization.

The server enters ESTABLISHED after the valid acknowledgment.

Three-way handshakeThree transport messages synchronize both sequence spaces and change the connection states.ClientServerSYN · seq xSYN y · ACK x+1ACK y+1ESTABLISHEDESTABLISHEDBoth sides: ESTABLISHED

Key idea: Acknowledge both initial sequence numbers.

Terms

Look up a term in the glossary ↗

Rules & examples
  • SYN consumes one sequence number in each direction.
  • The final ACK acknowledges the server SYN.
  • TCP also supports simultaneous open; the familiar client-server exchange is one path through the state machine.

The handshake synchronizes transport state. It does not authenticate the peer or negotiate encryption.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 9293

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗