TRACEROUTE
✅ What is Traceroute?
Traceroute is a network utility used to trace the path that packets take from your computer to a target server/host. It shows each hop (router) along the way and how long each step takes.
👉 In simple terms:
Shows how data travels through the Internet to reach a destination.
Helps find where a connection slows down or breaks.
🔑 Why is Traceroute Important?
Diagnose network problems
Find where connection drops or slows.
Measure latency per hop
Identify slow network devices or congestion.
Understand network route
See how data travels to a destination.
Check ISP and intermediary routers
Identify which ISPs/routers your data passes through.
⚙️ How does Traceroute Work?
Sends packets with increasing TTL (Time-To-Live) values.
Each router (hop) along the path decrements TTL by 1.
When TTL reaches 0, router sends ICMP "Time Exceeded" reply.
By analyzing replies, traceroute maps the path to the destination.
📊 Example:
TTL = 1 → Stop at 1st router, get reply.
TTL = 2 → Stop at 2nd router, get reply.
Continue until reaching target server.
💻 Traceroute Commands:
Windows
tracert google.com
Linux/Mac
traceroute google.com
📜 Example Output (Windows - tracert
):
tracert
):📜 Example Output (Linux/Mac - traceroute
):
traceroute
):🧠 Key Terms in Output:
Hop Number
Order of devices in the route.
IP Address
Address of the router or device.
Hostname
(Optional) Domain name of the router.
Time (ms)
Round-trip time to that router (latency).
* (Asterisk)
Timeout / No reply received from that hop.
🛠️ Traceroute Common Options:
-d
(Windows)
Do not resolve addresses to hostnames.
tracert -d google.com
-h [max hops]
Set max number of hops.
tracert -h 20 google.com
-w [timeout]
(ms)
Set timeout for each reply.
tracert -w 500 google.com
-n
(Linux/Mac)
Don't resolve names (show IP only).
traceroute -n google.com
-m [max hops]
Set max hops (Linux/Mac).
traceroute -m 20 google.com
-q [queries]
Number of queries per hop (Linux/Mac).
traceroute -q 5 google.com
🚦 How to Interpret Traceroute Results:
Normal response with times
Hop is reachable; latency measured.
* * * (3 stars)
No response; hop is dropping/ignoring packets.
High response times
Possible congestion or slow device.
Sudden jump in time between hops
Bottleneck or delay introduced.
Stops before reaching target
Possible routing issue or firewall blocking.
📌 Use Cases of Traceroute:
Identify network slowdowns:
Find broken paths (packet drop):
Check international routing:
🔐 Traceroute vs Ping:
Purpose
Test if host is reachable.
Trace the route packets take to a host.
Shows hops?
❌ No
✅ Yes
Shows delay per hop?
❌ No
✅ Yes
Packet type
ICMP Echo Request/Reply
ICMP (Windows), UDP/ICMP (Linux/Mac)
✅ Summary:
Purpose
Trace path of packets to destination.
Diagnoses
Network delays, unreachable devices.
Command (Windows)
tracert [host]
Command (Linux/Mac)
traceroute [host]
Common Issues Found
Slow hops, dropped packets, broken routes.
Last updated