OSI (Open Systems Interconnection) model is a seven‑layer framework that standardizes how network devices communicate. Learning these layers helps you understand where different protocols and hardware operate, troubleshoot effectively, and grasp terms like “Layer 3 switch” or “Layer 7 firewall.”

A popular mnemonic to remember them (bottom→top) is:

Please Do Not Throw Sausage Pizza Away

(Physical, Data Link, Network, Transport, Session, Presentation, Application)

image.png


Layer Name Primary Function Key Protocols & Devices
7 Application Interface for end‑user applications to request network services HTTP/HTTPS, FTP, SMTP, DNS; Browsers, Email clients
6 Presentation Data translation, encryption, compression SSL/TLS, MIME, ASCII/Unicode, JPEG, PNG
5 Session Establishes, manages, and terminates sessions RPC, NetBIOS, PPTP
4 Transport Reliable (or connectionless) end‑to‑end data delivery, flow control, segmentation TCP, UDP; Firewalls, Load‑balancers
3 Network Logical addressing and routing between networks IPv4/IPv6, ICMP; Routers, Layer 3 switches
2 Data Link Framing, physical addressing (MAC), error detection Ethernet (802.3), Wi‑Fi (802.11); Switches, Bridges
1 Physical Transmits raw bits over physical medium Cables (Cat5/6), Fiber, Wi‑Fi radios; Hubs, Repeaters

Physical (Layer 1)


Data Link (Layer 2)


Network (Layer 3)