TCP Sequence Number and Segmentation Visualization

Byte Stream

Segmentation

Network Events

How TCP Sequencing Works

TCP assigns a sequence number to each byte in the data stream. The sequence number field in the TCP header contains the sequence number of the first byte in the segment. This helps the receiver:

The Maximum Segment Size (MSS) determines how many bytes can be sent in a single TCP segment. The acknowledgment (ACK) number in the response indicates the next byte expected by the receiver.