A reliable byte stream
01TCP offers applications an ordered, reliable stream of bytes over a network that may lose, duplicate, or reorder packets.
The application sees a stream, with no preserved write boundaries.
Key idea: TCP preserves bytes, not application messages.
Rules & examples
TCP preserves bytes, not application messages.
- Each direction has its own byte sequence space.
- TCP uses acknowledgments and retransmission to recover from loss.
- One application write need not correspond to one segment or one application read.
Reliability is subject to connection failure. Applications need their own framing and must handle errors; TCP cannot promise delivery after every failure.
Sources
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.