Showing 7 of 7
7 · Application
- What it does:
- Network services for applications and users
- Data unit:
- Data
- Examples:
- HTTP, HTTPS, DNS, SMTP, FTP, SSH, SNMP, DHCP
- Devices:
- —
6 · Presentation
- What it does:
- Formats, encrypts and compresses data
- Data unit:
- Data
- Examples:
- Character encoding (ASCII, Unicode), JPEG, encryption
- Devices:
- —
5 · Session
- What it does:
- Opens, manages and closes sessions between hosts
- Data unit:
- Data
- Examples:
- NetBIOS, RPC, session set-up
- Devices:
- —
4 · Transport
- What it does:
- End-to-end delivery, ports, reliability
- Data unit:
- Segment (TCP) / datagram (UDP)
- Examples:
- TCP, UDP
- Devices:
- Firewalls that filter by port
3 · Network
- What it does:
- Logical addressing and routing between networks
- Data unit:
- Packet
- Examples:
- IPv4, IPv6, ICMP, IPsec
- Devices:
- Router, Layer 3 switch
2 · Data Link
- What it does:
- Physical (MAC) addressing and frames on the local network
- Data unit:
- Frame
- Examples:
- Ethernet, Wi-Fi (802.11), MAC addresses, VLANs (802.1Q)
- Devices:
- Switch, bridge, wireless access point
1 · Physical
- What it does:
- Sends raw bits over cables or radio
- Data unit:
- Bit
- Examples:
- Cabling, connectors, radio signals
- Devices:
- Hub, repeater, media converter, cable
Memory tip
Layers 1 to 7: Please Do Not Throw Sausage Pizza Away. Then tie each layer to one device you know: hub at 1, switch at 2, router at 3.
Exam questions often describe a problem and ask which layer it sits at. A broken cable is layer 1, a wrong VLAN is layer 2, a bad IP address or route is layer 3, and a blocked port is layer 4. Learn the ports too with the common ports list. More tips in how to remember the OSI model.
Common questions
What are the 7 layers of the OSI model?
From the top: 7 Application, 6 Presentation, 5 Session, 4 Transport, 3 Network, 2 Data Link and 1 Physical.
What's an easy way to remember the OSI layers?
From layer 1 up: "Please Do Not Throw Sausage Pizza Away" (Physical, Data Link, Network, Transport, Session, Presentation, Application). From layer 7 down: "All People Seem To Need Data Processing".
Which layer does a switch work at?
A standard switch works at layer 2, the Data Link layer, using MAC addresses. A Layer 3 switch can also route between networks using IP addresses.
Which layer does a router work at?
Layer 3, the Network layer. Routers forward packets between networks using IP addresses.
How does the OSI model compare with the TCP/IP model?
The TCP/IP model has four layers. Its Application layer covers OSI layers 5 to 7, Transport matches layer 4, Internet matches layer 3, and Network Access (or Link) covers layers 1 and 2.