What you'll get from this article
If any of these sound like you, read on:
- A website loads through your VPN but times out without it, and you want to know why — not just "use a VPN."
- You've run
traceroute(ortracert), seen a wall of IP addresses and* * *rows, and had no idea what you were looking at. - You studied networking once, but "TTL," "hops," and "gateways" have gone fuzzy.
- You want a repeatable way to answer the question: "My connection failed — where exactly did it die, and whose fault is it?"
I'll build every concept from scratch, walk through the exact trick that makes traceroute work, then use it to dissect a real case: a site on Google Cloud that the Great Firewall silently drops.
Part 0: The mental model you need first
Before traceroute makes any sense, four ideas. If you already know them, skip to Part 1.
A packet is an envelope
The internet doesn't send "a web page." It chops everything into small chunks called packets. Each packet is like a paper envelope: it has a destination address written on the front (the server's IP) and a return address (your IP), plus a chunk of data inside.
Key Concept
IP address
A numeric postal address for a machine on the internet, like 34.94.173.160. Every packet carries a source IP and a destination IP. Routers along the way read the destination and decide where to forward the envelope next — they don't open it or read the data inside.
A hop is one forwarding step
Your packet does not fly straight to the server. It's handed from one router to the next, like a parcel passing through a chain of sorting offices. Each handoff is one hop.
Key Concept
Router / hop
A router is a machine whose only job is to receive a packet, look at its destination address, and forward it one step closer. Each router the packet passes through is called a "hop." A typical connection from China to the US crosses 10–20 hops.
A gateway is the door out of your network
Your laptop can't talk to the whole internet directly. It talks to one machine — its gateway — which is the door from your little network to the bigger one. Your home Wi-Fi router is your first gateway. Your ISP has its own gateways. And a country's networks connect to the rest of the world through a small number of international gateways. Remember that last one — it's where our story ends.
Key Concept
Gateway
The router that connects one network to another — the "door" between them. Traffic leaving your house goes through your home gateway; traffic leaving China goes through a handful of international gateways operated by the big carriers. A gateway is just a router that happens to sit on a boundary.
TTL is a hop budget (this is the key)
Here's the one concept the whole article hinges on. Every packet carries a small counter called TTL — Time To Live. Despite the name, it's not a timer in seconds. It's a hop budget: a number that says "this packet may be forwarded at most N more times."
The rule, baked into the internet since 1981, is simple:
Every router that forwards a packet subtracts 1 from its TTL. If a router decrements the TTL to 0, it must throw the packet away and mail a little notice back to the sender saying "your packet died here."
TTL exists to stop packets from looping around the internet forever. But traceroute hijacks it for something cleverer.
Where the 'notice' comes from
That "your packet died here" notice is a real, standardized message called an ICMP Time Exceeded. ICMP is the internet's built-in messaging system for routers to report problems. The notice arrives in an envelope whose return address is the router that killed your packet — which means you just learned that router's IP. Hold that thought.
Part 1: The TTL trick (the whole idea)
Now the magic. We want to discover every router between us and a destination. We have no map. But we have the TTL rule, and we can abuse it.
The trick: send packets with deliberately too-small a hop budget, and listen to who complains.
- Send a packet with TTL = 1. The very first router subtracts 1 → TTL is 0 → it throws the packet away and mails you a "died here" notice. The notice's return address is router #1. You just discovered hop 1.
- Send another with TTL = 2. Router 1 decrements it to 1 and forwards it. Router 2 decrements it to 0, kills it, and complains. You discovered hop 2.
- Send TTL = 3 → you hear from router 3. And so on.
Keep increasing the budget by one. Each round, the packet gets one hop further before dying, and one more router reveals its address. Eventually the budget is large enough to reach the actual destination — which replies differently (it's the intended recipient, not a router killing the packet), and traceroute knows it's done.
That's it. traceroute is just a loop that sends packets with TTL = 1, 2, 3, 4… and writes down who replies each time. No magic map — it builds the map one complaint at a time.
Watch the TTL trick discover the path, one hop at a time
data flow
—Quick check
Why does each traceroute line show a different router's IP address?
Part 2: Reading a real traceroute
Here's the actual output that started this whole investigation. The target, 34.94.173.160, is a website hosted on Google Cloud, run from a broadband connection in Shenzhen, China — no VPN.
Read top to bottom, it's a story in three acts:
The three zones every hop falls into
Latency tells you the geography: ~9ms = local, ~18ms = still in-country, 210ms+ = crossed an ocean
A few things to notice, because they're the clues we'll use:
How to decode each part of the output
| Header | Meaning | Example |
|---|---|---|
192.168.x / 100.x | Private/carrier addresses — your home network and the ISP's internal plumbing | Hops 1–3, sub-10ms |
202.97.x.x | China Telecom's international backbone — the road to the border | Hops 7–9 |
The latency jump | 18ms → 210ms in one hop = the packet physically crossed the Pacific. Distance shows up as time. | Hop 8 → 9 |
74.125 / 209.85 | Google's IP ranges — these replies came from routers inside Google's network | Hops 11–12 |
* * * | traceroute waited (a couple seconds) for a reply and got nothing. The trail goes cold. | Hops 10, 13–30 |
A * is not always a problem
A single * * * row mid-path is often harmless — plenty of routers are simply configured not to send the ICMP 'died here' notice (it's optional). What matters is the pattern: a path that reaches the destination has a final line showing the destination's IP. A path where the stars start partway and never stop until hop 30 means the packets stopped getting through. That's our case.
Part 3: Using traceroute to debug "it works on VPN but not without"
Now the detective work. The symptom: the site loads through a VPN, but a direct connection just hangs and eventually times out. Four steps turn that vague complaint into a precise diagnosis.
Step 1 — Rule out DNS first
Before blaming the network, make sure the name resolves to the right address. A common form of blocking is DNS poisoning, where you ask "what's the IP for this domain?" and get a fake answer.
We confirmed 34.94.173.160 genuinely belongs to Google (its reverse DNS is ...bc.googleusercontent.com, and the IP block 34.64.0.0/10 is registered to Google LLC). So DNS is not the problem — we're aiming at the right address. The trouble is reaching it.
Step 2 — Try to connect, and note how it fails
There are two very different ways a connection can fail, and the difference is the whole diagnosis:
The two failure modes — learn to tell them apart
| Header | Meaning | Example |
|---|---|---|
Connection refused / reset | Something actively said NO. A packet came back rejecting you. Fast failure. | Firewall sending a RST, or nothing listening on that port |
Timeout (hang, then give up) | Total silence. Your packets vanish into a void; nothing ever replies. Slow failure. | Packets being silently dropped — the classic GFW signature |
It's a timeout, not a reset. Nobody is politely saying "no" — our packets are simply disappearing. That points at silent dropping somewhere along the path.
Step 3 — Compare against a baseline (the most important step)
Here's the mistake beginners make: they test one broken thing, see it fail, and conclude "the internet is broken" or "my connection is bad." You must compare against something that should work. A failed test alone tells you almost nothing; a failed test next to a passing test tells you exactly what's special about the failure.
This is the moment the case cracks open. Overseas sites in general are fine. What fails is 34.94.173.160 (on Google Cloud) and www.google.com itself. The common factor isn't "overseas" or "slow" — it's Google. The block is targeted at Google's network, and our Google-Cloud-hosted site is collateral damage for sitting on the same address space.
Step 4 — traceroute to locate the wall
Now run traceroute (Part 2's output) and find where the replies stop. Replies come back normally through China Telecom's backbone (hops 7–9), then a couple of Google routers answer (hops 11–12), then dead silence to hop 30. The destination never responds.
Putting all four steps together:
The verdict: where the connection dies
Right address, silent timeout, Google-specific, dies past the border = IP-based blocking at the international gateway
Part 4: "But traceroute reached Google — how can it be blocked after that?"
This is the question that trips everyone up, and it's a great one. If the firewall wants to block Google, shouldn't it stop you the moment you head for Google — at the border? How did packets get all the way "into" Google (hops 11–12) before anything went wrong?
The answer is a mental-model fix:
traceroute maps the road. It does not drive down it.
Seeing a Google router in your traceroute output does not mean your connection got into Google. It means the route toward that IP physically passes through links that lead into Google's network, and a router along that road answered a probe. traceroute draws the map of the road. Whether the gate on that road is open for your actual traffic is a completely separate question.
Three facts dissolve the paradox:
1. Probes and real traffic get treated differently. Those TTL=11 packets that made a Google router reply are tiny throwaway probes that expire on the way. The firewall, sitting at the international gateway, doesn't bother dropping every little probe — but it does drop the real connection packets (the TCP "SYN" that actually opens a session to port 443). So the diagnostic probe wanders further down the road than your real request ever will. Same road, different treatment.
2. The block is at the gateway — exactly where you'd expect. Look again: hop 9 is the international gateway (202.97.107.162), and hop 10 is already * * *. The wall is right there, at the border, on the way out. The Google routers at hops 11–12 replying afterward is the probe artifact from fact #1 — not evidence that "real" traffic got in and was then turned around.
3. Blocking works in both directions. Even if a stray packet leaks across and reaches Google, and Google sends a reply, that reply has to come back across the same border — where the same filter drops it. From your side every outcome looks identical: you send, and nothing ever comes back. Silence. A timeout.
Key Concept
IP-based dropping
The firewall keeps a list of IP ranges (Google's among them) and silently discards packets to or from those ranges at the international gateway. No rejection message is sent — that's why you get a timeout (silence) rather than a connection reset (an active "no"). The timeout-vs-reset distinction from Step 2 is exactly what tells you it's silent dropping and not, say, a server that's simply down.
So the model isn't "a doorman who inspects your destination and turns you away at the entrance, but only after letting you wander inside." It's "a filter at the border that silently throws away envelopes addressed to certain places — while still letting harmless little probe-postcards rattle a bit further down the road before they fall apart on their own."
Quick check
The connection fails with a timeout (silence), and a baseline test shows github.com connects fine but google.com doesn't. What's the most likely cause?
Bonus: why it "used to work, just slowly"
A natural follow-up: it was reachable before — slow, but it loaded. Why dead now? Two likely reasons, both consistent with everything above:
- Blocklists are not static. The set of blocked IP ranges changes over time. An address that wasn't on the list yesterday was "slow but reachable" (normal international latency through the 202.97 backbone). The day it lands on the list, it flips straight to "silent timeout." Going from slow to dead is the classic signature of an IP crossing from un-blocked to blocked.
- The site may have moved. It might have lived on a Hong Kong or non-Google host before (slow but fine) and recently migrated onto Google Cloud — onto an address range that is blocked. Same domain name, new address, new fate.
Either way, the fix for a site you control is the same: don't serve your China-facing endpoint from an IP range the border drops. Put it on a reachable host (Hong Kong, or a domestically-filed/ICP host), or front it with a CDN that has nodes reachable from inside China. I wrote up one concrete version of that — a Hong Kong Nginx reverse proxy — in Reverse-Proxying Vercel: Five Pitfalls.
Iron rules
⚡ Iron Rule #1
A failed test means nothing without a baseline
Always test something that should work right next to the thing that's broken, on the same connection at the same moment. "github.com loads, google.com doesn't" turns a vague "internet's broken" into a precise "Google is being targeted." One data point is an anecdote; two is a diagnosis.
⚡ Iron Rule #2
Timeout vs. reset is the first fork in any network diagnosis
A reset/refused means something actively rejected you (server down, port closed, firewall sending RST). A timeout/silence means packets are being dropped into a void (silent filtering, blackhole routing, wrong route). They point at completely different causes — always note which one you got before guessing why.
⚡ Iron Rule #3
traceroute shows you the road, not whether your traffic arrives
A hop appearing in traceroute means a router on the path replied to a probe — not that your real connection succeeded to that point. Read traceroute for where replies stop and how latency jumps (geography), then confirm reachability with an actual connection test. The map is not the journey.
Sources
- RFC 792 — Internet Control Message Protocol: defines the "Time Exceeded" message a router sends when TTL hits 0 — the reply traceroute listens for.
- RFC 1393 — Traceroute Using an IP Option: the traceroute mechanism and the TTL-increment technique.
- RFC 1812 — Requirements for IP Routers: specifies that routers must decrement TTL on forwarding and discard packets that reach 0.
- traceroute(8) man page: the real tool's options (
-Tfor TCP probes,-mmax hops,-pport), useful when ICMP probes are filtered.