byte stream
A continuous, ordered sequence of bytes with no built-in message boundaries, which is what TCP delivers to applications.
In more detail
TCP guarantees the bytes arrive in the order sent, without gaps or duplicates, but the application must decide where one message ends and the next begins. HTTP, for example, uses headers such as Content-Length for that.
Related terms
- TCP — The internet protocol that delivers data between programs reliably and in order, used by the web and most databases.
- datagram — A self-contained message sent on its own, with no connection and no guarantee it arrives, arrives once or arrives in order.
- 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.
Taught in
- TCP Versus UDP — Linux Fundamentals & Systems Administration