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
- Further reading
- IETF RFC 9293 — Transmission Control Protocol (TCP)