Course · $400 Free reference Certifications

The OSI model: 7 layers on one page

Each OSI layer, what it does, its data unit, and the protocols and devices that live there — plus the mnemonics to memorize the order. Core Network+/Security+/CCNA material.

Advertisement · 728×90

The seven layers, top to bottom

#LayerPDUFunction · examples
7ApplicationDataUser-facing protocols — HTTP, FTP, DNS, SMTP
6PresentationDataEncoding, encryption, compression — TLS/SSL, JPEG, ASCII
5SessionDataEstablishes/maintains sessions — RPC, NetBIOS
4TransportSegmentEnd-to-end delivery, ports — TCP, UDP
3NetworkPacketLogical addressing, routing — IP, ICMP; routers
2Data LinkFrameMAC addressing, switching — Ethernet, ARP; switches
1PhysicalBitsSignals on the medium — cables, hubs, NIC

How to memorize the order

  • Top → bottom (7→1): All People Seem To Need Data Processing.
  • Bottom → top (1→7): Please Do Not Throw Sausage Pizza Away.
Layer 8?

Half-jokingly, network engineers call the user "Layer 8" — most faults trace back there.

How it maps to the TCP/IP model

TCP/IP modelOSI layers it covers
Application7 Application + 6 Presentation + 5 Session
Transport4 Transport
Internet3 Network
Network Access / Link2 Data Link + 1 Physical

Exam traps

  • Switch vs router layer. Switches = Layer 2 (MAC); routers = Layer 3 (IP). (L3 switches blur this.)
  • TLS layer. Encryption is usually placed at Layer 6 (Presentation).
  • Segment vs packet vs frame. Transport = segment, Network = packet, Data Link = frame.

Test yourself

4 quick questions — tap an answer to check it instantly. Nothing is sent anywhere.

1. A router primarily operates at which OSI layer?

Answer: B. Routers use logical (IP) addressing at Layer 3. Switches operate at Layer 2.

2. The PDU (data unit) at the Transport layer is a…

Answer: C. Transport = segment, Network = packet, Data Link = frame, Physical = bits.

3. Which layer handles MAC addressing and switching?

Answer: B. MAC addresses and switches live at Layer 2, the Data Link layer.

4. TCP and UDP operate at which layer?

Answer: B. TCP and UDP are Transport-layer (Layer 4) protocols.

Sources

  1. ISO/IEC 7498-1, Information technology — Open Systems Interconnection — Basic Reference Model.
  2. CompTIA Network+ and Cisco CCNA exam objectives.

Reference summary only. For the formal standard see ISO/IEC 7498-1.