Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Traceroute Test: Network Path, MTR, and Connectivity

How to run traceroute and MTR, read hops and latency, use Cloudflare WAN and DEX tools, and what to collect for support or your ISP.

This page summarizes Cloudflare documentation on traceroute and related path diagnostics: when to run them, how to interpret hops (including Cloudflare data center IATA codes), MTR for packet loss, dashboard and Digital Experience (DEX) traceroute tests, and Linux fixes when tracing through GRE, IPsec, CNI, or WARP.

traceroute: what it shows and when to use it

Section titled “traceroute: what it shows and when to use it”

A traceroute test measures the network path of an IP packet from a device to a server. The packet passes through intermediate routers (each a hop), and the test records response time and packet loss at each hop so you can see where latency rises or packets drop.

Traceroute is a network diagnostic tool that measures the route latency of packets across a network. Most operating systems support the traceroute command. If you experience connectivity issues with your Cloudflare-proxied website and ask Cloudflare Support for assistance, ensure to provide output from a traceroute.

— Cloudflare, Gathering information for troubleshooting sites

Use traceroute (or MTR) when you see connection timeouts, slow connections, or suspected routing problems between your network and Cloudflare or your origin. For HTTP-specific checks (errors, cache, TLS), use tools such as curl or a HAR capture instead; see Cloudflare’s quick reference table for matching issue type to tool.

Issue type Recommended tool When to use
Connection timeouts/drops Traceroute / MTR Network path issues, latency between hops
Site unreachable from specific networks Traceroute / MTR Suspected ISP blocking of Cloudflare IP prefixes
Packet loss, connection resets Packet capture Layer 3/4 issues (use traceroute/MTR first to locate the segment)
Slow response times curl (performance) HTTP latency, not hop-by-hop path

— Adapted from Cloudflare, Gathering information for troubleshooting sites

Replace www.example.com with your hostname or destination IP. Save complete output for support tickets.

On Linux, from a terminal:

traceroute www.example.com

For IPv6:

traceroute -6 www.example.com

On macOS you can use Network Utility (Traceroute tab) or the same terminal commands as Linux.

— Cloudflare, Gathering information for troubleshooting sites

Open cmd and run:

tracert www.example.com

For IPv6:

tracert -6 www.example.com

— Cloudflare, Gathering information for troubleshooting sites

If traceroute fails at the first hop (the device after your computer, usually your router), the problem is often local hardware or routing.

If your traceroute fails at the first hop (the first network device after your computer, usually your router), the issue is likely hardware-related.

— Cloudflare, 1.1.1.1 troubleshooting

Include router make and model, ISP name, and relevant router configuration when you report it.

MTR: traceroute plus ongoing loss and latency

Section titled “MTR: traceroute plus ongoing loss and latency”

MTR (My Traceroute) combines traceroute and ping and updates latency and packet loss per hop in real time, which helps with intermittent issues.

Use MTR when you need more detailed network diagnostics than traceroute provides. MTR combines traceroute and ping to show real-time latency and packet loss at each hop, making it easier to identify intermittent network issues.

— Cloudflare, Gathering information for troubleshooting sites

Typical usage on Unix-like systems:

mtr -rw one.one.one.one
mtr -rw 1.1.1.1

TCP to a specific port:

mtr -P <tcp port> -T <destination ip>

When reviewing output, look for high latency at specific hops, packet loss, and timeouts (which may indicate firewalls or routing). Cloudflare’s slow website troubleshooting recommends mtr -rw www.example.com from your location toward Cloudflare.

Cloudflare WAN and Magic Transit: trace to your prefix

Section titled “Cloudflare WAN and Magic Transit: trace to your prefix”

For Cloudflare WAN (formerly Magic WAN) or Magic Transit connectivity, run traceroute from the source network toward your advertised Cloudflare prefix and find where traffic enters Cloudflare’s network.

Run a traceroute from the source network to your Cloudflare WAN prefix. Look for the Cloudflare data center hostname in the trace output, which contains a three-letter IATA airport code that identifies the data center.

— Cloudflare, Troubleshoot connectivity (Cloudflare WAN)

Example pattern:

traceroute 203.0.113.1
5 lhr01.cf (198.51.100.11) 15.678 ms

Here lhr means traffic enters at the London (Heathrow) data center. Note the ingress data center (airport code, e.g. LHR, IAD) when opening a case.

For proxied websites, you can see which Point of Presence (PoP) serves browser requests via http://www.example.com/cdn-cgi/trace and the colo field. The three-letter code in a data center name is the IATA code of the nearest major airport.

Information to attach for WAN connectivity cases

Section titled “Information to attach for WAN connectivity cases”

Cloudflare asks for, among other items:

  • Account ID and affected tunnel name(s)
  • Timestamps in UTC when the issue started
  • Ingress data center you identified
  • Whether user traffic or only health-check alerts are affected; which tunnels/data centers are degraded; intermittent vs persistent
  • Traceroute from your source network to your WAN or Magic Transit prefix
  • Dashboard screenshots, distributed traces (e.g. ping.pe), and packet captures if loss is confirmed

— See Troubleshoot connectivity and Magic Transit connectivity

Traceroute through GRE, IPsec, CNI, or WARP to a tunnel endpoint

Section titled “Traceroute through GRE, IPsec, CNI, or WARP to a tunnel endpoint”

If you connect through GRE, IPsec, CNI, or WARP and traceroute to a host behind a Cloudflare Tunnel, default OS behavior can hide the real path.

If you have a Cloudflare WAN (formerly Magic WAN) client connected through GRE, IPsec, CNI or WARP and want to perform a traceroute to an endpoint behind a Cloudflare Tunnel, the following settings must be applied for the command to return useful information.

— Cloudflare, Run traceroute

On Linux, a tunnel device may inherit the inner packet TTL and show only * * * until the final hop. Set TTL explicitly on the GRE interface, then trace again:

sudo ip link set cf_gre type gre ttl 64
sudo traceroute -s 10.1.0.100 -I 10.3.0.100

Full before/after examples are in Run traceroute.

reverse path filtering with Cloudflare One Client

Section titled “reverse path filtering with Cloudflare One Client”

Strict rp_filter on Linux can drop traceroute probes. Before tracing with Cloudflare One Client:

sudo sysctl -w net.ipv4.conf.CloudflareWARP.rp_filter=2

Then run traceroute with an appropriate source IP (-s). Details: Run traceroute and Cloudflare Gateway (section Run traceroute).

After cutover issues on Magic Transit, also verify Customer Premises Equipment (CPE) is not using strict uRPF or anti-spoofing that drops outbound Internet traffic; see Troubleshooting connectivity after prefix advertisement.

DEX traceroute test: scheduled path checks from devices

Section titled “DEX traceroute test: scheduled path checks from devices”

In Cloudflare One, Digital Experience (DEX) can run automated Traceroute tests from managed clients (Windows, macOS, Android, ChromeOS on supported client versions; Linux/iOS not listed as supported in the product table).

A traceroute test measures the network path of an IP packet from an end-user device to a server. The packet passes through a series of intermediate routers — each called a “hop” — and the test records the response time and packet loss at each one.

— Cloudflare, Traceroute test

  1. In Cloudflare One, go to Insights > Digital experience > Tests > Add a Test.
  2. Set Name, Target (public or private IP), optional Source device profiles, Test type: Traceroute, and Test frequency (5–60 minutes).
  3. Select Add test and review hop-level path, round-trip time, hop count, packet loss, availability, and (on Windows/macOS) Last seen ISP with ASN/ASO when geolocation data exists.

Use DEX results alongside manual traces when user-location path quality matters; use WAN dashboard traceroutes when you need Cloudflare’s view toward your network.

Traceroutes in WAN and Magic Transit analytics

Section titled “Traceroutes in WAN and Magic Transit analytics”

From the dashboard you can run traceroutes from a Cloudflare data center toward your network for hop-by-hop latency analysis.

Traceroutes provide a hop-by-hop breakdown of the Internet path network traffic follows from Cloudflare’s network to your network.

— Cloudflare, Traceroutes (Cloudflare WAN analytics)

Workflow (paths vary slightly by product): Insights > Network health > WAN connector health (or Connector health), select the tunnel, then Traceroute details. Metrics include TTL and host, AS number, packets sent, average/min/max latency, and latency standard deviation. See Magic Transit analytics for starting a troubleshooting workflow with traceroutes and packet captures.

ISP blocking and what to send your provider

Section titled “ISP blocking and what to send your provider”

When failures stop inside the ISP’s network, only the ISP can remove filtering. Cloudflare recommends:

The IP addresses that are failing, with the dates and times of the failures
Traceroute and MTR output for those IP addresses, showing where packets stop
The Cloudflare IP ranges that the addresses belong to, from Cloudflare’s published IP ranges
A request for the ISP to verify that its routers are not filtering or blackholing those prefixes

— Cloudflare, Potential ISP blocking of Cloudflare IP addresses

Network Error Logging (NEL) patterns such as concentrated tcp.timed_out from one client ASN can point to last-mile ISP issues; transit or peering events often span more ASNs or data centers. See Network Error Logging reference for outage archetypes—not a substitute for traceroute/MTR at failure time.

Section titled “Support tickets: traceroute and related context”

Before opening a ticket, check Cloudflare Status for incidents. For all issues, Cloudflare’s Contact Cloudflare Support flow expects timestamp (UTC), reproduction steps, actual vs expected behavior, frequency, screenshots, and example URLs where relevant.

Attach path diagnostics where applicable:

  • Traceroute/MTR from source networks to affected prefixes or hostnames
  • For routing/BGP: ASN, neighbor IPs, sanitized router config, BGP session state (Troubleshoot routing and BGP)
  • For tunnel health: tunnel type, health-check settings, router logs, traces to Cloudflare endpoints (Troubleshoot tunnel health)
  • For IPv6 issues: IPv6 traceroute, serving data center, whether disabling IPv6 Compatibility changes behavior (IPv6 compatibility)

For WARP client issues, include warp-diag and a concrete timeline; vague tickets slow resolution (WARP client troubleshooting).

  • Interpreting * * * mid-path as always meaning outage (ICMP may be rate-limited or filtered).
  • Tracing through GRE/WARP without fixing TTL or rp_filter, then concluding the tunnel has no hops.
  • Omitting UTC timestamps or ingress IATA code when WAN symptoms are regional.
  • Using only browser tools for pure path problems instead of traceroute/MTR (or only CLI traces when the issue is HTTP cache/TLS).
  1. From the affected network, run traceroute or tracert (or mtr -rw) toward your Cloudflare-proxied hostname or WAN/Magic Transit prefix and save full output.
  2. For websites, open https://your-domain/cdn-cgi/trace and note the colo field; for WAN, confirm the three-letter IATA code in the trace to your prefix per Troubleshoot connectivity.
  3. If you use GRE/WARP toward a tunnel endpoint, apply Run traceroute TTL and rp_filter settings and re-run the trace.
  4. Compare with Insights > Network health traceroute details or a DEX Traceroute test from Traceroute test if you use Cloudflare One.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.