How Encapsulation Wraps Your Data
Follow how each layer adds a header as data is prepared for sending.
Wrapping Data in Layers
As data moves down a protocol stack to be sent, each layer adds its own control information. This process is called encapsulation. Like sealing a letter in one envelope, then a bigger one, then a mailbag, each layer wraps the data with a header meant for its peer on the other side. Encapsulation is how the layered model actually prepares data for the network.
Headers Carry Instructions
The information each layer adds is mostly a header, a small block of control data placed in front of the payload. The header tells the matching layer on the receiving side how to handle the data: where it is going, which protocol it uses, and more. Some layers also add a trailer after the data. Headers are the instructions that make delivery work.
All lessons in this course
- The Four TCP/IP Layers Overview
- Comparing TCP/IP With the OSI Model
- How Encapsulation Wraps Your Data
- Tracing a Packet Through the Stack