Skip to main content

OSI Model

The 7 Layers of the OSI Model

LayerNamePDUKey FunctionsDevices / HardwareCommon Protocols / ExamplesExam Mnemonics / Notes
7ApplicationDataProvides network services directly to end-user applications. User interface to network.End-user apps, browsersHTTP, HTTPS, FTP, SMTP, DNS, SNMP, TelnetWhere the user interacts (e.g., browser, email client)
6PresentationDataTranslates data formats between application and network. Handles encryption, compression, character encoding.TLS/SSL (handshake), JPEG, ASCII/Unicode, MIME"Translator" layer – syntax/format conversion
5SessionDataManages sessions/connections between applications. Setup, coordination, termination, checkpoints.NetBIOS, RPC, SIP (some aspects)"Dialog controller" – start/stop/restart sessions
4TransportSegment (TCP) / Datagram (UDP)End-to-end delivery, segmentation, flow control, error recovery, reliability.TCP (reliable), UDP (fast/unreliable)"Post office" layer – reliable delivery options
3NetworkPacketLogical addressing, routing between networks, path determination.RoutersIP (IPv4/IPv6), ICMP (ping/traceroute), IPsec"Routing" layer – routers live here
2Data LinkFrameNode-to-node delivery on same network. Framing, MAC addressing, error detection (not correction), flow control.Switches, bridges, NICsEthernet, PPP, ARP, MAC addresses"Switching" layer – switches operate here
1PhysicalBitsRaw bit transmission over physical medium. Defines electrical, mechanical, functional specs.Cables, hubs, repeaters, NIC portsEthernet cabling (Cat6), fiber, Wi-Fi signals"Physics" of the network – cables & signals

Encapsulation / De-encapsulation Process

Data flow: Sending device (top-down) – Encapsulation

  • Layer 7–5: Data
  • Layer 4: Adds header → Segment (TCP) or Datagram (UDP)
  • Layer 3: Adds IP header → Packet
  • Layer 2: Adds MAC header + trailer (FCS for error check) → Frame
  • Layer 1: Converts to Bits (electrical/optical signals)

Receiving device (bottom-up) – De-encapsulation: Strips headers in reverse order.

Exam tip: Know where headers are added (each lower layer adds its own header; Layer 2 also adds trailer).

Key Devices by Layer

  • Layer 1: Hubs, repeaters, cables, connectors
  • Layer 2: Switches (forward based on MAC), bridges
  • Layer 3: Routers (forward based on IP), Layer 3 switches
  • Layer 4–7: Firewalls (some inspect up to L7), load balancers, proxies, IDS/IPS

Troubleshooting with OSI Model

Common method:

  • Top-down: Start at Layer 7 (can user access the app?) → down to Layer 1
  • Bottom-up: Start at Layer 1 (is cable plugged in?) → up to Layer 7
  • Divide and conquer: Jump to middle (e.g., can you ping? → Layer 3)

Exam scenarios:

  • "No link light" → Layer 1
  • "Can ping IP but not hostname" → Layer 7 (DNS) or Layer 3
  • "MAC address table issue" → Layer 2 (switch)

Quick Memorization Tips

  • Layers 1–4: Lower layers – more hardware/physical focus
  • Layers 5–7: Upper layers – software/application focus
  • Remember devices: Router = Layer 3, Switch = Layer 2
  • PDU progression: Bits → Frame → Packet → Segment/Datagram → Data
  • Common exam pairs:
    • IP address = Layer 3
    • MAC address = Layer 2
    • Port numbers = Layer 4 (TCP/UDP)
    • Encryption often associated with Layer 6 (Presentation)

Study Strategy

  1. Memorize the 7 layers and mnemonic daily.
  2. Quiz yourself: "What layer does a router operate on?" or "What PDU at Layer 3?"
  3. Practice mapping real-world issues to layers (e.g., "cable unplugged" = L1, "wrong subnet" = L3).
  4. Use Professor Messer videos or similar for visuals (watch encapsulation animations).
  5. Flashcards: Front = Layer number/name → Back = function + device + protocol + PDU.