Three-way handshake
03Both endpoints synchronize their initial sequence numbers before ordinary data transfer.
DIAGRAMRead RFC section 3.5 ↗
RFC 9293 · § 3.5EXAMPLE
4 / 4
04
Complete synchronization.
The server enters ESTABLISHED after the valid acknowledgment.
Key idea: Acknowledge both initial sequence numbers.
Rules & examples
Acknowledge both initial sequence numbers.
- 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.
Read the updated RFC section ↗