ByteByte CityCity
All lessons
OSI Model

"The Internet Is Down": Troubleshoot Any Network Layer by Layer

8:00 Watch on YouTube

Monday morning, five help-desk tickets, and every one says the same four words: "the internet is down." Five identical sentences, five completely different causes, on five different floors of the building. This is the last lesson of the OSI Model series and the reason the map exists: five questions, asked from the bottom up, each with its tool and its ticket.

You'll learn

Chapters

  1. 0:00Five tickets, four words
  2. 0:29The reason the map exists
  3. 1:19Question 1: is there a link light?
  4. 1:43Question 2: can it see its neighbours?
  5. 2:13Question 3: can it reach the gateway?
  6. 2:52Question 4: is the door open? Ping is a mail bag
  7. 3:42Question 5: does the name resolve?
  8. 4:12Five tickets, five floors
  9. 4:29The real names: bottom-up, top-down, divide and conquer
  10. 5:00Two honest notes, and above the door
  11. 5:38The real thing: five commands, one ticket
  12. 6:55Exam corner
  13. 7:16Recap, and the series closes

The written lesson

Five tickets, four words

Monday morning, nine o'clock. Five tickets are waiting on the help desk, and every one of them says the same four words: "the internet is down."

Five identical sentences. Five completely different causes, on five different floors of the building.

By the end of this lesson you will tell them apart with five questions, asked from the bottom up. This is the reason the map exists.

Why you start at the road

A card titled The reason the map exists. The seven floors are listed from 7 Application, the storefront, down to 1 Physical, the road. Floors 1 and 2 have green ticks, floor 3 Network, the mail bag, has a red cross, and floors 4 to 7 each carry a chip reading innocent until floor 3 is fixed. The banner reads The first question that fails is where you look: everything above it is innocent until that floor is fixed
Climb one floor at a time. The first question that fails is where you look.

When a delivery doesn't come back, the temptation is to guess. Reboot it. Reinstall it. Blame the Wi-Fi.

The map says: don't guess. Every floor depends on the floor beneath it. A slip cannot leave the storefront if the road outside is broken. So you start at the road, and you climb, one question per floor. The first question that fails tells you where to look, and everything above it is innocent until that floor is fixed.

Why from the bottom? Because a fault low in the building wears every disguise above it. One broken cable looks like a web problem, an email problem and a DNS problem all at once. Fix the road, and three tickets close themselves.

The five questions are the same five the OSI Model overview asked, in the same words and the same order. Now each one gets its tool, and its ticket. Floors 5 and 6 don't get a question of their own; they come back at the end, above the door.

Questions one to three: the road, the street, the gate

A Windows PowerShell window. ipconfig shows IPv4 Address 192.168.1.10, Subnet Mask 255.255.255.0 and Default Gateway 192.168.1.11, highlighted. Below, ping 192.168.1.11 returns two lines of Reply from 192.168.1.10: Destination host unreachable. A caption bar reads Ticket three: the gateway is typed as 192.168.1.11, Destination host unreachable
Ping the gateway ipconfig names. Here the answer comes from our own machine: nobody lives at .11.

Question one: is there a link light? This is Layer 1, the road. Look at the lamp on the house. Look at the port. Then ask the machine with ipconfig. If it says "Media disconnected", the road is out, and nothing above it matters yet.

Ticket one: the office moved a cabinet on Friday, and a wheel went through the cable. Dark lamp. Fix the road.

Question two: can the machine see its neighbours on the street? This is Layer 2, the crate and the brass plaque. Ping the machine next door, 192.168.1.20, and then run arp -a to see which plaques your machine has learned. If the neighbour never answers and no plaque was learned, the crates aren't crossing the street.

Ticket two: a replaced network card. This is the stranger from the Layer 2 lesson. The lamp is green, the card has a new plaque, and the switch-depot's allow-list still has the old one. Update the list.

Question three: can it reach the gateway at the end of the street? This is Layer 3, the mail bag. Read the gateway line in ipconfig, and ping that address: the gate this machine believes in, not the one you believe in. If the neighbour answers and the gate doesn't, look at the bag's addressing.

Ticket three: ipconfig says the gateway is 192.168.1.11. Ping it, and the answer is "Destination host unreachable", sent back by the machine itself. Nobody lives at .11. It's a typo, a gate that doesn't exist. Had you pinged 192.168.1.1 because that is where gateways usually live, it would have answered, and the fault would have stayed hidden.

And remember the rule with no exceptions: the gateway MUST be on the same network as the host. Your gate is always on your own street. Fix the number.

Questions four and five: the door and the name

A diagram titled Ping is a mail bag: it never touches a door. Your house at 192.168.1.10 on the left, the server at 10.0.5.20 on the right. A mail bag marked ping sits on the lawn at the end of the road, labelled floors 1, 2, 3. Three ticks above read Proven, all the way to that house: floor 1, floor 2, floor 3. Doors 443, 25 and 22 each carry a question mark under the label The doors: nothing known. The banner reads A ping that succeeds proves floors 1, 2 and 3, and says nothing at all about the doors
Ping lands on the lawn. It proves the road, the street and the route, and nothing about the doors.

Question four: is the door actually open on the far end? This is Layer 4, the truck. And here is the trap: ping is a mail bag. It rides Layer 3, it lands on the lawn, and it never touches a door. So a ping that succeeds proves floors 1, 2 and 3 all the way to that house, and says nothing at all about the doors.

Test the door itself. On Windows, Test-NetConnection 10.0.5.20 -Port 443 tries to open door 443. The answer is the screen from the Layer 4 lesson: PingSucceeded: True. TcpTestSucceeded: False.

Ticket four: the building is there, and the storefront is rolled shut. Either the service behind door 443 has stopped, or a firewall is in the way.

Question five: does the name resolve to a street number at all? This is Layer 7, the Yellow Pages. Ping an address out on the internet, 8.8.8.8, and then ping the name. If the address works and the name doesn't, it's DNS. nslookup shows you the shout, and the silence: "DNS request timed out."

Ticket five: the Yellow Pages office has stopped answering. Start the service. The internet was never down, only the book that turns names into numbers. To the user, those two look identical.

Five tickets, five floors

A grid titled Five tickets, one sentence, five floors. Columns read Q1 L1, Q2 L2, Q3 L3, Q4 L4, Q5 L7 and cause. Ticket #4471 Priya has a red cross at Q1, cable crushed; #4472 Marcus a tick then a cross at Q2, new card, old allow-list; #4473 Dana crosses at Q3, gateway typed .11; #4474 Leo at Q4, door 443 shut; #4475 Ana passes four questions and crosses at Q5, DNS stopped. The banner reads The order mattered: you never test a door on a road that's out
Same sentence on every ticket. Each one stops at a different question, on a different floor.

Five tickets, one sentence, five floors. Each ticket passes questions until it reaches the one that fails, and no two stop in the same place.

QuestionLayerToolA fail points toThe ticket
Is there a link light?1, Physical: the roadThe lamp, ipconfigCable, portCable crushed by a cabinet
Can the machine see its neighbours on the street?2, Data Link: the crateping a neighbour, arp -aPlaque, switch-depot, allow-listNew card, old allow-list
Can it reach the gateway at the end of the street?3, Network: the mail bagping the gateway ipconfig namesAddress, mask, gatewayGateway typed as .11
Is the door actually open on the far end?4, Transport: the truckTest-NetConnection -PortStopped service, firewallDoor 443 shut
Does the name resolve to a street number at all?7, Application: the Yellow Pagesping an address, then the name; nslookupDNSDNS service stopped

And the order mattered. You never test a door on a road that's out.

The real names: bottom-up, top-down, divide and conquer

A card titled Three approaches: the exam names all of them. The seven floors are drawn three times. The first has a green arrow climbing from 1 Physical to 7 Application, labelled bottom-up. The second has a blue arrow descending from 7 to 1, labelled top-down. The third has an arrow pointing in at 3 Network with arrows going up and down from it, labelled divide and conquer. The banner reads Divide and conquer: jump to the middle, ping the gateway, and let the answer tell you which half to search
Bottom-up climbs, top-down descends, divide and conquer starts in the middle.

What we just did is called the bottom-up approach: start at the physical layer and climb.

There is a top-down approach too: start at the application and work down. It is the right choice when one program is failing on one machine and everything else works.

And there is divide and conquer: jump straight to the middle, ping the gateway, and let the answer tell you which half to search.

The exam names all three and expects you to pick the one that fits the symptom.

Two honest notes, and above the door

First, a ping that fails is a clue, not a verdict. Some houses are told not to answer the bell.

Second, when all five questions pass and the page still won't load, you have climbed past the door. That is where floors 5 and 6 come back in, along with the storefront itself:

  • The lock, Layer 6: an expired ID card, the certificate behind "Your connection is not private."
  • The window, Layer 5: the call that drops after 32 seconds.
  • The storefront, Layer 7: a slip that was right, and a shelf that was empty. 404.

The full troubleshooting method (identify, theorise, test, plan, fix, verify, document) gets a lesson of its own in the Troubleshooting Toolkit series.

The real thing: five commands, one ticket

A Windows PowerShell window. ipconfig now shows IPv4 Address 192.168.1.10, Subnet Mask 255.255.255.0 and Default Gateway 192.168.1.1. ping 192.168.1.1 gets Reply from 192.168.1.1: bytes=32 time<1ms TTL=64, ping 8.8.8.8 gets Reply from 8.8.8.8: bytes=32 time=14ms TTL=115, and nslookup catalog.bytecity.tech begins Server: ns1.bytecity.tech. A caption bar reads nslookup, the name comes back with its number: catalog.bytecity.tech = 10.0.5.20
Gateway corrected, ladder run again: the gate replies, the internet replies, and the name comes back with its number.

Here are the five questions as five commands, and one ticket run through them in order. The card lives by the desk, and you don't skip a line. A skipped line is a guess wearing a uniform.

  1. ipconfig: Media State Connected, address 192.168.1.10. Question one passes.
  2. ping 192.168.1.20: reply. Question two passes.
  3. Ping the gateway ipconfig gave us, 192.168.1.11: "Destination host unreachable." Stop.

Question three failed, so questions four and five don't get asked yet. The door and the Yellow Pages are innocent until the gate answers.

Now read that ipconfig again, slowly. Default Gateway: 192.168.1.11. Nobody lives at .11. Correct it to 192.168.1.1 and run the ladder again. ping 192.168.1.1: reply. ping 8.8.8.8: reply. nslookup catalog.bytecity.tech: the name comes back with its number, 10.0.5.20. The card fills with five green lines.

Ticket closed, and you can write down exactly why. Green lines are evidence. "I rebooted it" is not.

For the Network+ exam: a technician checks the link light, pings the default gateway, then pings a remote server by IP address. Which troubleshooting approach is that? Bottom-up. It started at Layer 1 and climbed. Top-down would have opened the browser first. Divide and conquer would have gone straight to the gateway.

Quick answers

How do you troubleshoot "the internet is down"?

Ask five questions from the bottom up: is there a link light, can the machine reach a neighbour, can it reach its gateway, is the service's port open, and does the name resolve. The first question that fails is where the fault is.

What is the bottom-up troubleshooting approach?

It starts at the physical layer of the OSI model and works up one layer at a time. It suits problems where you don't yet know which layer is at fault, because a low-layer fault can look like many different problems above it.

What is the difference between top-down and divide and conquer?

Top-down starts at the application and works down, which suits one program failing on one machine. Divide and conquer starts in the middle, usually with a ping to the gateway, and the result tells you which half of the stack to search.

Why can I ping an IP address but not open websites by name?

Ping by address proves the network path works. If names fail while addresses work, the problem is DNS: check it with nslookup, and look at whether the DNS server is answering.

Does a successful ping mean the server is working?

No. Ping uses ICMP, which has no ports, so it only proves the path to the machine. To test a service, test its port, for example with Test-NetConnection and -Port 443 on Windows.

Key terms

Bottom-up approach
—
troubleshooting from the physical layer upwards, one layer at a time.
Top-down approach
—
troubleshooting from the application layer downwards.
Divide and conquer
—
starting in the middle of the stack and letting the result pick which half to search.
Default gateway
—
the router on the host's own network that carries traffic off it; it must be on the same network as the host.
ipconfig
—
the Windows command that shows media state, IP address, subnet mask and default gateway.
arp -a
—
lists the MAC addresses your machine has learned for addresses on its own network.
Test-NetConnection
—
the Windows PowerShell command that tests whether a TCP port on a host is open.
nslookup
—
asks a DNS server to turn a name into an address, and shows when it gets no answer.
Next: Can't Send Email? Ports 25, 587, 80, 443 and 53 | Common Ports 1

Quick quiz

Five questions on this lesson. Pick an answer to see why.

  1. 1. A user cannot open an HTTPS site hosted on 10.0.5.20, but ping 10.0.5.20 gets replies. What does the successful ping prove?
  2. 2. Which Windows command checks whether TCP port 443 is open on the server 10.0.5.20?
  3. 3. A user can ping 8.8.8.8, but every website fails by name and nslookup reports "DNS request timed out". What is the most likely cause?
  4. 4. A PC can ping 192.168.1.1 but cannot reach any other network. ipconfig shows Default Gateway 192.168.1.11. What should the technician fix?
  5. 5. Only one application fails on one PC; other programs on it and other PCs on the network work normally. Which troubleshooting approach fits best?

Keep learning

Previous

Thumbnail for What Happens When You Click a Link: All 7 OSI Layers in One Trip8:28
OSI Model

What Happens When You Click a Link: All 7 OSI Layers in One Trip

One click, seven floors down, across the city, and back. Every layer in one trip.

8:28 Watch

Next

Thumbnail for Common Ports Unwrapped! Web, Mail and Names8:02
Ports and Protocols

Common Ports Unwrapped! Web, Mail and Names

A new firewall on Friday. Monday: web fine, incoming mail fine, nobody can send. Know your doors and it takes one look.

8:02Coming soon

Related

Thumbnail for Ping Works, Page Won't Load: Ports, TCP and UDP | OSI Layer 49:32
OSI Model

Ping Works, Page Won't Load: Ports, TCP and UDP | OSI Layer 4

Numbered doors, the truck that calls ahead and the bullhorn that doesn't.

9:32 Watch

Related

Thumbnail for Can Print, But No Websites? The Network Layer Explained | OSI Layer 37:17
OSI Model

Can Print, But No Websites? The Network Layer Explained | OSI Layer 3

The mail bag, the road atlas and the gate at the end of the street.

7:17 Watch

Exam objectives: CompTIA Network+ N10-009: 5.1 (troubleshooting methodology; top-to-bottom, bottom-to-top and divide-and-conquer OSI approaches), 5.5 (ping, ipconfig, arp, nslookup, Test-NetConnection), 1.1 (OSI layers).

Byte City is not affiliated with or endorsed by CompTIA.