Skip to content
All lessons
Objective 1.1Networking Concepts· 2 min read

The OSI Model and Encapsulation

The OSI model and encapsulation concepts

What you will learn

  • Order the seven layers from Physical to Application, and state each layer's job in one sentence.
  • Distinguish each layer's data unit: bits, frames, packets, segments.
  • Explain encapsulation and de-encapsulation as a reverse process between sender and receiver.
  • Identify which layer common devices operate at: switch, router, firewall.

The OSI model isn't literally how the internet runs — real networks use the simpler 4-layer TCP/IP model. But OSI remains the shared language for describing problems: "is this a layer 2 or layer 3 issue?" is a question any network engineer hears daily, which is why the exam demands knowing it precisely.

The seven layers, bottom to top

  1. 1. Physical

    Cables and electrical/optical signals — raw bits only.

  2. 2. Data Link

    MAC addresses, frames — where a switch operates.

  3. 3. Network

    IP addresses, packets — where a router operates.

  4. 4. Transport

    TCP and UDP, segments, port numbers.

  5. 5. Session

    Opening, managing, and ending a connection session.

  6. 6. Presentation

    Data formatting, encryption, compression (e.g., TLS).

  7. 7. Application

    What the user actually interacts with: HTTP, DNS, email.

Encapsulation on send

Each layer wraps its own header around the layer above's data — the exact reverse happens on receipt.

  1. Application data

  2. + Transport header → Segment

  3. + Network header → Packet

  4. + Data Link header → Frame

  5. Raw bits on the wire

Protocol Data Unit per layer

BitsPhysical layer — raw signals.
FrameData Link layer — carries MAC addressing.
PacketNetwork layer — carries IP addressing.
SegmentTransport layer — carries the port number (TCP/UDP).

The most common trap

A question describes a switch, then asks "which layer does it operate at?" — the answer is always layer 2, because a basic switch only reads MAC addresses. A Layer 3 switch is an exception the question states explicitly, never assumed by default.

What matters on the exam

  • Order the layers fast: Physical, Data Link, Network, Transport, Session, Presentation, Application.
  • Switch = layer 2, Router = layer 3, unless the question states otherwise explicitly.
  • TCP and UDP are both layer 4 — they differ in delivery reliability, not in layer.

Quick check

Answer in your head first, then reveal.

  1. Which layer does a basic switch operate at?Reveal the answer

    Data Link layer (layer 2).

  2. What is the data unit at the Network layer?Reveal the answer

    Packet.

  3. What is the reverse of encapsulation on receipt called?Reveal the answer

    De-encapsulation.

Sign in to track your progress on this topic.

Your next step

Read the lesson, then mark it complete