Books indexNetwork Foundations: from mental models to data measurement

Lesson

Lesson 12: Data units, encapsulation and layers

Lesson 12 of 24 · Module 3: Local networking and addressing

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.

Encapsulation and decapsulation

Each layer adds control information that its peer processes at the receiver.

Conceptual layers; fields and sizes vary with protocol and technology.

Trace the unit down and back up

  1. Start with application data and its boundaries.
  2. Add transport control and distinguish stream from message.
  3. Add IP addressing for inter-network delivery.
  4. 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.

Unit and control information by TCP/IP layer
LayerTeaching unitTypical control information
ApplicationApplication dataFormat and message defined by the application
TransportTCP segment or UDP datagramPorts and protocol-specific transport state
InternetIP packetIP addresses and forwarding information
Network accessLink frameLink 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

  1. Why is a higher-layer unit payload below?
  2. Is decapsulation decryption?
  3. Which envelope normally changes at a routed link?
Show the explained answers
  1. The lower layer carries the complete higher-layer result.
  2. No.
  3. The link-layer frame.

References and evidence limits