Reachability and Path Diagnostics
Quick answer
Test network failures layer by layer: local address, route, name resolution, transport and application. ICMP and path tools provide clues, not absolute proof.
Prepare the practice environment
Run python3 lab-fixtures/networking/setup.py from the extracted package root as an ordinary user. Enter the printed private path and check pwd. Use a fresh fixture, Bash with LC_ALL=C and set -o pipefail. Python 3 is required for the fixed local socket helper. Use only loopback or synthetic data; never apply sample configuration. Manual examples require an authorized disposable VM.
How it works
ping sends ICMP echo requests; a missing reply may mean filtering, loss or unreachable destination. traceroute uses TTL or hop-limit behavior and responses from intermediate routers; different probes and policies can produce different results. Asterisks mean no response within the probe timeout, not necessarily a broken forwarding path. tracepath can also discover path MTU where supported. Use bounded probes to owned lab endpoints, not scanning or public targets. A successful ping does not establish that a specific TCP port accepts connections.
For a service failure, record separately whether a name resolves, whether the transport connection succeeds and whether the application returns the expected response. A connection refusal on a local lab endpoint and a timeout are different observations; neither alone identifies the precise root cause. Do not replace evidence with a guess that a firewall is at fault.
Try the examples
Hop 2 did not answer; hop 3 did in this fictional trace.
Expected stdout:
1 192.0.2.12 * * *3 198.51.100.10Manual: the authoring container denies ICMP sockets. In a suitable VM expect a reply if local policy permits.
Manual example; not executed locally. Follow its stated environment restrictions.
Manual only; numeric loopback destination, one hop and one probe. Output depends on privileges and implementation.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
A missing ping reply or traceroute hop is not sufficient reason to disable a firewall.
Practice
Explain why hop 2 can be silent while hop 3 responds. Choose a layer to check after successful DNS but failed HTTP.
Related references
Study: ping, traceroute, tracepath. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Reachability and path diagnostics — Knowledge Check
Apply network concepts to loopback, synthetic fixtures and VM-only scenarios.
What does ping usually test?
What does * in traceroute mean?
Which tool can help inspect path MTU?
After successful DNS and refused TCP connection, what next?