Skip to content
We areTOP 1%

At which OSI layer do common protocols and devices work?

MediumConceptOSI & TCP/IP Models
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

A device works at the highest layer whose header it reads to make its forwarding decision, and a protocol belongs to the layer whose service it provides.

LayerProtocolsDevices
7 ApplicationHTTP, DNS, DHCP, SMTP, FTP, SSHproxies, layer-7 load balancers
6 PresentationTLS encryption, ASCII, JPEGnone specific
5 SessionRPC, NetBIOSnone specific
4 TransportTCP, UDPlayer-4 load balancers, stateful firewalls
3 NetworkIP, ICMP, OSPF, RIProuters, layer-3 switches
2 Data LinkEthernet, Wi-Fi (802.11), PPPswitches, bridges, access points
1 Physicalsignalling, cables, connectorshubs, repeaters
  • ARP is usually placed between layers 2 and 3, because it maps IP addresses to MAC addresses.
  • Some protocols sit on top of others: DHCP and DNS travel over UDP, and BGP travels over TCP.

Example: A switch reads only the destination MAC address (layer 2), so it connects PCs within one LAN but cannot route between networks. A router reads the destination IP address (layer 3) and chooses a path between networks. A layer-7 load balancer reads the HTTP path, so it can send /api and /images to different servers.

More in OSI & TCP/IP Models

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account