A connection is opened with SYN, SYN-ACK and ACK, then closed with a four-way FIN and ACK exchange.
100%
Legend
Current step
SYN — the client asks to connect
The client picks a random initial sequence number and sends SYN with no data.
Flags
SYN
Sequence
1000
State
Connection requested
Both ends agree on an initial sequence number before any data moves, which is what makes TCP reliable and ordered. Teardown costs four messages because each direction closes independently, and a firewall that only permits the handshake still has to allow the closing messages to expire the session cleanly.
Documentation example: addresses use the RFC 5737 ranges and ASNs use the reserved private range. Nothing here connects to a real network.