Protocols
Saved & recent

TCP

Also called: Transmission Control Protocol, byte stream

Transmission Control Protocol provides an ordered byte stream between two endpoints. Sequence numbers, acknowledgments, and retransmission recover from many packet losses while a connection remains usable. TCP does not preserve the boundaries of individual application writes, and it does not itself encrypt the stream.

If a sender writes “HELLO” and then “WORLD”, the receiver might read “HEL”, then “LOWORLD”. The bytes remain ordered, but application-level framing must identify messages. A successful write also does not prove that the peer application processed or saved the data. Broken connections still need error handling at the application level.

Read first
Internet Protocol
Related
TCP handshake, Message framing, TLS, Selective acknowledgment, Head-of-line blocking
Further reading
IETF RFC 9293 — Transmission Control Protocol (TCP)
application writes HELLO WORLD H E L L O W O R L D one ordered byte stream segment lost retransmission H E L L O W O R L D HEL LOWORLD receiving application reads
Illustrative stream reads: TCP preserves byte order, while read boundaries can differ from the sender’s writes.

View in the full Protocols collection