Skip to the workspace
Pebellslearn by building
Networking & Protocols  ›  Lesson

The OSI Model — Troubleshooting Layer by Layer

OSI Model 12 minThe OSI model's layers give a bottom-up order for troubleshooting, with a quick tool such as ping, nc or curl to test each layer.

devops / The OSI Model — Troubleshooting Layer by Layer

Explore each scene at your own pace.

01 · The rule

The rule

The OSI Model — Troubleshooting Layer by Layer

"The site is down" can mean a cut cable, a wrong IP address, a closed port, an expired certificate or a crashed app. Guessing wastes hours. The OSI model gives you an order to check things in, so each test rules out a whole layer.

The rule

Troubleshoot bottom-up: link, then IP, then port, then application.

The OSI model splits networking into seven layers, each relying on the one below:

# Layer What lives there Example
7 Application what the program says HTTP, DNS, SSH
6 Presentation encoding, encryption TLS is often placed here
5 Session keeping a conversation going
4 Transport ports, reliable or fast delivery TCP, UDP
3 Network addresses and routing between networks IP, routers
2 Data link delivery on the local network Ethernet, MAC addresses, switches
1 Physical signals on a wire or radio cables, Wi-Fi

In daily work, layers 5 to 7 blur into "the application", and people say "layer 4 load balancer" (routes by IP and port) or "layer 7 load balancer" (reads HTTP paths and headers).

Each layer has a quick test tool:

ip addr                                # L2/L3: does this machine have an address?
ping -c 3 203.0.113.10                 # L3: can packets reach that IP?
traceroute 203.0.113.10                # L3: where along the route do they stop?
nc -zv notes.example.com 443           # L4: is the TCP port open?
curl -v https://notes.example.com/health   # L7: does the app answer?
Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.