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
- Further reading
- IETF RFC 791 — Internet Protocol