TCP

Transmission Control ProtocolTransport layer · OSI 4

Reliable, ordered byte delivery across IP networks

Step 1 of 6: Open the connection. Before sending any web data, your laptop and the server agree on starting numbers and confirm the link .
0.0 s / 18.8 s
Your laptop192.168.1.10
HandshakeData

Overview

turns unreliable packet delivery into a dependable byte stream. It opens a session, numbers every byte sent, confirms arrivals, and resends anything lost on the way.

Transmission Control Protocol (RFC 9293) establishes a stateful connection via a three-way handshake, tracks sequence and acknowledgment numbers for every octet, detects gaps with duplicate ACKs and (RFC 2018), and closes each direction independently with .

Key facts

Layer
Transport (OSI Layer 4)
Setup
Three-way handshake (SYN, SYN-ACK, ACK)
Reliability
Sequence numbers, ACKs, SACK
Header size
20 bytes base (up to 60 with options)
Defined in
RFC 9293, RFC 2018

Stream completed reliably

TCP opened a session, tracked every byte, spotted a dropped segment using SACK, resent only what was missing, and closed both directions cleanly.

Delivered 73 bytes upstream and 2920 bytes downstream over port 80 on www.example.com, recovering from single-segment loss without disturbing application order.

Bytes sent
73 B up, 2920 B down
Loss recovery
Duplicate ACK + SACK
MSS
1460 bytes
Teardown
Four-way FIN exchange

Try it yourself

Inspect active TCP sockets

View open TCP connections, local and remote ports, and states such as ESTABLISHED or TIME_WAIT.

netstat -ano