Headers & connections
02TCP headers identify endpoints and carry the sequence, acknowledgment, window, and control information that drive the connection.
An arriving segment is interpreted according to the current connection state.
Key idea: Each connection needs its own state.
Rules & examples
Each connection needs its own state.
- A connection is identified by its pair of sockets, each comprising an IP address and port.
- The checksum covers the TCP header, data, and an IP pseudo-header.
- Header options are variable length; the data offset locates the payload.
A checksum detects transmission corruption. It is not a cryptographic integrity or authenticity mechanism.
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.