Traceroute: Understand and Use the Results
Real ICMP traceroute from 18 global cloud regions
Traceroute: how to see exactly which routers your traffic crosses
Traceroute is a network diagnostic that reveals the exact path a packet takes from your computer to a remote server, listing every intermediate router along the way. Where ping tells you the round-trip latency, traceroute tells you the entire route — every hop, every router's IP address (and often its hostname), and how long each hop takes. The clever trick that makes traceroute work is the Time-To-Live (TTL) field in IP packets. Every IP packet has a TTL counter that decreases by one at every router it passes; when the counter hits zero, the router throws the packet away and sends back an error. Traceroute exploits this by sending a packet with TTL=1 first (which dies at the first router and reveals it), then TTL=2 (dies at the second), and so on, mapping out the entire path one hop at a time.
You should care because **traceroute is the only tool that tells you where in the network a problem is happening**, not just that it is happening. The classic story is the customer reporting that your website is slow only from their region. A ping test confirms the slowness but doesn't explain it. A traceroute reveals that there is a 200 ms hop right in the middle of the path — usually at the boundary between two ISPs — and now you know it is a peering issue, not a server issue, and you can stop blaming your CDN. Traceroute is the difference between guessing where the slowness is and actually pointing at the broken router.
The six things every traceroute reveals:
The list of routers (hops). Each hop along the path, with its IP address and (often) its hostname.
The latency at each hop. How long the round-trip to that specific router takes — plus percentile latency and jitter when multiple probes are sent.
The total path length. A typical internet path is 8–15 hops; longer paths are usually a sign of inefficient routing.
Timeouts and stars. Routers that don't respond are shown as ` *` — sometimes intentional (some routers don't reply to traceroute), sometimes a sign of a broken hop.
The AS path. Every hop is tagged with the autonomous system it belongs to (Cogent, Level 3, NTT, Hurricane Electric, Cloudflare, etc.), and the deduplicated sequence of ASNs is the AS path — what `traceroute -A` shows. This is how you tell "traffic crosses three transit providers to get to AWS" from "traffic stays on Cloudflare's backbone end-to-end."
Private vs public hops. Hops inside RFC 1918 address space are your own LAN / corporate / cloud-internal routers. Distinguishing them from public-internet hops makes a traceroute interpretable inside complex enterprise networks.
Three questions a traceroute answers:
Which router or network segment is responsible for the latency I'm seeing?
Is the path my traffic is taking sensible, or is it going through Mars?
For an outage, where in the path is the failure happening?
The cost of not understanding traceroute is debugging network problems without ever pinpointing them. The fix is to learn to read traceroute output once — the basics take about ten minutes — and then keep a traceroute tool handy. Traceroute is built into every major operating system (`tracert` on Windows, `traceroute` everywhere else), and the underlying technique is unchanged since the 1980s.
The Traceroute endpoint, in plain language
Real ICMP (Internet Control Message Protocol) traceroute from 18 global cloud regions
Traceroute reveals the actual network path between cloud regions and your service, exposing routing inefficiencies, peering bottlenecks, and geographic detours invisible to simple latency testing. With per-hop ASN (Autonomous System Number) enrichment, you can tell "traffic crosses three transit providers" from "traffic stays on Cloudflare's backbone end-to-end" without a second tool. Essential for debugging regional performance issues, verifying CDN (Content Delivery Network) edge routing, identifying ISP congestion points, and understanding how traffic traverses autonomous systems. Compare paths from multiple regions simultaneously to detect routing asymmetries.
What is actually happening when you call it
Creates ICMP (Internet Control Message Protocol) traceroute measurements via the Globalping network from cloud provider regions (AWS, GCP, Azure). Returns real hop-by-hop path data including router IP (Internet Protocol address) addresses, reverse DNS (Domain Name System) hostnames, per-hop round-trip times, per-hop p50/p95 percentiles, RFC (Request for Comments) 3550 interarrival jitter, a private-hop flag (true for RFC 1918/4193 addresses), per-hop ASN (Autonomous System Number) / AS name / country (from Team Cymru), and destination reachability. Each zone also exposes a deduplicated `as_path` (the BGP transit sequence) and `private_hop_count`. Computes median end-to-end latency and average hop count across zones. Note: Internet routing is asymmetric (RFC 792) — forward and reverse paths often differ, and ICMP rate limiting at intermediate hops may show timeouts that don't indicate actual packet loss.
Why this specific tool matters
Choose a task: Regional Routing Analysis. Analyze routing paths from all major regions to identify suboptimal routes, unexpected geographic detours (e.g., Asia traffic routing through US), or missing peering. Compare AS paths to detect hot-potato routing issues.
Run the Traceroute request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Traceroute reference to check the field definitions and supported options.
Available on the pro plan. The technical details: `GET /v1/network/traceroute`.
When would I actually use this?
Regional Routing Analysis
Analyze routing paths from all major regions to identify suboptimal routes, unexpected geographic detours (e.g., Asia traffic routing through US), or missing peering. Compare AS paths to detect hot-potato routing issues.
Use the finding: Pinpoint regional routing inefficiencies and negotiate peering improvements with data.
CDN & Anycast Path Verification
Verify that your CDN (Content Delivery Network) or anycast deployment correctly routes traffic from each region to the nearest edge location. Detect cases where routing bypasses nearby PoPs.
Use the finding: Confirm CDN (Content Delivery Network) edge locality across all geographic regions with traceroute evidence.
Latency Root Cause Analysis
When users in a specific region report high latency, trace the route from that region to identify the exact hop where latency spikes — whether it's a congested peering point, an ISP backbone, or a last-mile issue.
Use the finding: Isolate network-level bottlenecks to the specific hop, ISP, or peering exchange causing the problem.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use network_traceroute with host=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Traceroute, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Traceroute request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the pro plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/network/traceroute?host=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Traceroute
Start with the inputs below. Keep the same hostname, path, and options when comparing Traceroute observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
host | string | Yes | Target hostname or IP (Internet Protocol address) address to traceroute | example.com |
Interpret Traceroute findings
Read these fields alongside the full response from your Traceroute check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
host | string | The target host that was traced |
trace_method | string | Trace method: "ICMP" |
results | array | Per-zone traceroute results with hop-by-hop data, latency, and probe network info |
Words you might be wondering about
DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.
IP (Internet Protocol address) — A unique number that identifies a computer on the internet, like a phone number for a server.
CDN (Content Delivery Network) — A worldwide network of servers that store copies of your website close to your visitors so pages load fast.
ASN (Autonomous System Number) — A unique number assigned to a big network operator (like an ISP or cloud provider). Tells you who owns a chunk of the internet.
ICMP (Internet Control Message Protocol) — The "knock-knock" of the internet. Tools like ping use it to check whether a server is reachable and how long the round trip takes.
RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.
API Reference for This Guide
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.