watch> tcp — 14 packets

TCP · Protocol

Transmission Control Protocol

CoreL4
STEPS
  1. 1OPEN CONNECTIONThree-way handshake
  2. 2SEND DATAEvery byte is numbered
  3. 3TWO SEGMENTS BACKOne of them is lost
  4. 4A GAP IS NOTICEDDuplicate ACK with SACK
  5. 5RESEND THE GAPOnly the missing bytes
  6. 6CLOSE CONNECTIONEach side says goodbye
NETWORK VIEW
Client192.168.1.10Router192.168.1.1InternetWeb Server203.0.113.10
STEP 1/6 · 0/14
PACKET FLOWTCP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.10203.0.113.10TCP49152 → 80 [SYN] Seq=066 B
20.017s203.0.113.10192.168.1.10TCP80 → 49152 [SYN, ACK] Seq=0 Ack=166 B
30.034s192.168.1.10203.0.113.10TCP49152 → 80 [ACK] Seq=1 Ack=160 B
40.034s192.168.1.10203.0.113.10TCP49152 → 80 [PSH, ACK] Seq=1 Ack=1 Len=78132 B
50.051s203.0.113.10192.168.1.10TCP80 → 49152 [ACK] Seq=1 Ack=7960 B
60.052s203.0.113.10192.168.1.10TCP80 → 49152 [ACK] Seq=1 Ack=79 Len=1460LOST1514 B
70.052s203.0.113.10192.168.1.10TCP80 → 49152 [PSH, ACK] Seq=1461 Ack=79 Len=14601514 B
80.069s192.168.1.10203.0.113.10TCP49152 → 80 [ACK] Seq=79 Ack=1 SLE=1461 SRE=292166 B
90.095s203.0.113.10192.168.1.10TCP80 → 49152 [TCP Retransmission] Seq=1 Ack=79 Len=14601514 B
100.112s192.168.1.10203.0.113.10TCP49152 → 80 [ACK] Seq=79 Ack=292160 B
110.113s192.168.1.10203.0.113.10TCP49152 → 80 [FIN, ACK] Seq=79 Ack=292160 B
120.13s203.0.113.10192.168.1.10TCP80 → 49152 [ACK] Seq=2921 Ack=8060 B
130.131s203.0.113.10192.168.1.10TCP80 → 49152 [FIN, ACK] Seq=2921 Ack=8060 B
140.148s192.168.1.10203.0.113.10TCP49152 → 80 [ACK] Seq=80 Ack=292260 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERTransport (Layer 4)
CONNECTIONThree-way handshake
RELIABILITYSequence numbers + ACKs
RECOVERYRetransmission
HEADER20–60 bytes
DEFINED INRFC 9293

What is TCP?

TCP gives applications a reliable, ordered byte stream: sequence numbers and acknowledgements, retransmission for anything lost, and a graceful close. Most of the internet's connections ride on it.

Steps

  1. 1. OPEN CONNECTIONThree-way handshake
  2. 2. SEND DATAEvery byte is numbered
  3. 3. TWO SEGMENTS BACKOne of them is lost
  4. 4. A GAP IS NOTICEDDuplicate ACK with SACK
  5. 5. RESEND THE GAPOnly the missing bytes
  6. 6. CLOSE CONNECTIONEach side says goodbye

Which port does TCP use?

TCP does not use a fixed port number.

Which layer does TCP run at?

TCP sits at Transport (Layer 4).

Where is TCP defined?

RFC 9293.

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as TCP (Transmission Control Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.