M32 - Network Diagnostics

Troubleshoot network problems layer by layer using connectivity tests, route tracing, DNS checks, and port inspection.

Networking

Network Diagnostics

Troubleshoot network problems layer by layer using connectivity tests, route tracing, DNS checks, and port inspection.

45 min INTERMEDIATE BOTH
What you should learn
  • Troubleshoot network problems layer by layer using connectivity tests, route tracing, DNS checks, and port inspection.
Visual model

Concept to practice path

Each lesson is meant to move from an idea, to an example, to a safe practice step.

Why This Matters

Good network diagnosis is mostly about order.

If you jump between random tools, you waste time. If you move layer by layer, the failure usually reveals itself much faster.


1. Start With Reachability

Use a simple connectivity test first.

Basic Reachability on Windows

ping 127.0.0.1 ping 8.8.8.8

Basic Reachability on Linux

ping -c 2 127.0.0.1 ping -c 2 8.8.8.8

This helps separate local stack issues from broader reachability issues.


2. Then Ask About the Path

If reachability is inconsistent or missing, route-tracing tools can show where the path seems to break.

Trace the Path on Windows

tracert google.com

Trace the Path on Linux

traceroute google.com

These tools are about path visibility, not application success.


3. Separate DNS From Raw Connectivity

If raw IP reachability works but hostnames fail, DNS becomes the focus.

That is why ping 8.8.8.8 and ping google.com are not identical tests.

One asks about raw connectivity. The other also depends on name resolution first.

Important Distinction

A failed hostname test can point to DNS even when the route and the remote network path are fine.


4. Check Whether the Service Is Actually Listening

Even when the network path is fine, the target application may not be listening on the expected port.

Inspect Listening State on Windows

netstat -ano

Inspect Listening State on Linux

sudo ss -tulpn

That step answers a different question: is the program waiting for network traffic at all?


A Better Troubleshooting Order

  1. confirm local network state
  2. test reachability
  3. inspect the route when needed
  4. check DNS separately
  5. inspect whether the service is listening

That order prevents a lot of confusion.


What to Ignore for Now

  • packet capture tools
  • deep BGP or routing-protocol analysis
  • advanced firewall-state debugging

The goal here is clean first-pass diagnosis.


Before You Move On

You are ready for the firewall lesson when you can:

  1. explain a layered diagnostic sequence
  2. separate route problems from DNS problems
  3. explain why a listening-port check is its own step

Next, we look at how firewalls fit into this troubleshooting picture.

Learning loop

Recall it, check it, then practice it.

Do this before moving on. It turns reading into memory and safer action.

Recall
  • What troubleshooting order makes network failures easier to reason about?
  • Why does a failed ping not always mean the target service is down?
Check
  • Describe a layered network troubleshooting sequence without notes.
  • Explain what ping, traceroute, and port inspection each tell you.

What to do next

Best next step Practice

Use the matching lab or keep building skill in practice.

Open now