Networking · 6 min read · 30 November 2026

The OSI Model Explained: 7 Layers With Real Network Examples

The seven OSI layers in plain words, with the devices and protocols that work at each one, how they map to TCP/IP, and how to use the model to troubleshoot.

The OSI (Open Systems Interconnection) model splits network communication into seven layers, from the physical cable at layer 1 up to the application at layer 7. Each layer has one job and serves the layer above it. Engineers use the layer numbers every day: a "layer 2 switch", a "layer 3 problem", a "layer 7 firewall".

The seven layers

LayerJobExamples
7 ApplicationServices that applications useHTTP, DNS, SIP, SMTP
6 PresentationData format, encryption, compressionTLS, character sets, H.265 video
5 SessionOpening, keeping and closing sessionsSession set-up in RPC and some streaming protocols
4 TransportEnd-to-end delivery between applications, portsTCP and UDP
3 NetworkLogical addressing and routing between networksIP, routers, layer 3 switches, OSPF
2 Data linkDelivery inside one network, MAC addressesEthernet, switches, VLANs, Wi-Fi frames
1 PhysicalBits as electrical, light or radio signalsCopper cable, fibre, SFP modules, radio

A common memory aid from layer 1 up is "Please Do Not Throw Sausage Pizza Away".

How data moves through the layers

When you open a web page, the browser's request is passed down the stack. Each layer adds its own header: TCP adds ports (layer 4), IP adds source and destination addresses (layer 3), and Ethernet adds MAC addresses (layer 2) before the bits go onto the cable. The receiving side removes the headers in reverse order. Switches only look as far as layer 2, routers read layer 3, and application firewalls inspect up to layer 7.

OSI and the TCP/IP model

Real networks run the TCP/IP suite, which uses four layers: link (OSI 1 and 2), internet (OSI 3), transport (OSI 4) and application (OSI 5 to 7). OSI stays popular because its finer split is useful for teaching and troubleshooting.

Where network devices sit

  • Layer 1: cables, fibre, transceivers, media converters, PoE power.
  • Layer 2: switches forward frames by MAC address and separate traffic with VLANs.
  • Layer 3: routers and layer 3 switches route between subnets. See layer 2 vs layer 3 switch.
  • Layers 4 to 7: firewalls filter by port and protocol, and next-generation firewalls identify applications.

Troubleshooting with the OSI model

Work from the bottom up and stop at the first layer that fails:

  1. Physical: is the link light on, is the cable or fibre good, is the device powered?
  2. Data link: is the port in the right VLAN, does the switch learn the device's MAC address?
  3. Network: does the device have the right IP address, subnet and gateway? Can it ping the gateway? Use ping and traceroute.
  4. Transport: is a firewall blocking the port?
  5. Application: does DNS resolve the name, is the service running, is the login correct?

FAQ

Frequently asked questions

What are the 7 layers of the OSI model?

From the bottom: 1 Physical, 2 Data link, 3 Network, 4 Transport, 5 Session, 6 Presentation and 7 Application.

What layer is a switch and what layer is a router?

A standard switch works at layer 2 and forwards frames by MAC address. A router works at layer 3 and forwards packets by IP address. A layer 3 switch does both.

What is the difference between the OSI model and TCP/IP?

OSI is a seven-layer reference model. TCP/IP is the protocol suite networks actually run, described with four layers: link, internet, transport and application.

Why is the OSI model useful?

It gives engineers a shared language and a step-by-step way to troubleshoot: check the cable, then switching, then IP addressing, then ports and finally the application.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.