TCP sequence number
The counter TCP attaches to every byte it sends, so the receiver can put data in order, spot gaps and acknowledge exactly what arrived.
In more detail
Each side picks a random starting number and announces it in its SYN. Acknowledgements refer to these numbers. This per-connection state is what makes TCP a connection rather than loose packets.
Related terms
- TCP three-way handshake — The three messages that open a TCP connection: the client sends SYN, the server replies SYN-ACK, and the client answers ACK.
- ACK — The TCP flag and number that confirm which bytes have been received, completing the handshake and keeping the stream reliable.
- byte stream — A continuous, ordered sequence of bytes with no built-in message boundaries, which is what TCP delivers to applications.
Taught in
- The Handshake, And The States A Socket Passes Through — Linux Fundamentals & Systems Administration