Lesson
Lesson 12: Data units, encapsulation and layers
Learning goal
After this lesson, you can trace application data through encapsulation and decapsulation and identify the protocol data unit at each layer.
Why this concept matters
Layering identifies which address and control field serves which function. Encapsulation expresses responsibility; it does not promise a fixed header size or encryption.
Each layer adds control information that its peer processes at the receiver.
Trace the unit down and back up
- Start with application data and its boundaries.
- Add transport control and distinguish stream from message.
- Add IP addressing for inter-network delivery.
- Build a link frame, then process peer headers in reverse at the receiver.
Why responsibilities are layered
Layers divide responsibilities. Each layer treats the higher-layer result as payload and adds control information required for its own function.
Follow an envelope down the stack
Encapsulation order describes responsibilities; it is not a claim that every packet has one fixed header size.
| Layer | Teaching unit | Typical control information |
|---|---|---|
| Application | Application data | Format and message defined by the application |
| Transport | TCP segment or UDP datagram | Ports and protocol-specific transport state |
| Internet | IP packet | IP addresses and forwarding information |
| Network access | Link frame | Link addresses and technology-specific checking |
Decapsulation is not decryption
Envelopes nest because layers have distinct scopes, not because data becomes four separate files. The page records no production measurement or learner execution.
Diagnostic exercise
Takeaway and the next lesson
Envelopes nest because layers have distinct scopes, not because data becomes four separate files.
Quick review
- Why is a higher-layer unit payload below?
- Is decapsulation decryption?
- Which envelope normally changes at a routed link?
Show the explained answers
- The lower layer carries the complete higher-layer result.
- No.
- The link-layer frame.

