Protocols
Saved & recent

Encapsulation

Encapsulation places one protocol’s data inside another protocol’s message. The enclosing protocol adds information it needs, such as addresses, lengths, or control flags. The receiver interprets the enclosing structure before passing its payload to the appropriate next protocol.

For example, an IP packet can carry a TCP segment containing application bytes. A local link then carries that IP packet in its own frame. This nesting explains why a packet capture shows several headers for one exchange. Encapsulation alone does not hide the payload: encryption is a separate property.

Read first
Protocol stack
Related
Protocol stack, Message framing, Internet Protocol
Further reading
IETF RFC 791 — Internet Protocol
link hdr IP packet trailer IP hdr TCP segment TCP hdr application bytes link frame receiverpeels layers schematic widths
Schematic nesting; widths do not represent byte counts. Adding an envelope does not encrypt its contents.

View in the full Protocols collection