NewCode CLOUD — 20% off your first month on all cloud VPSClaim

How to Test Server Latency and Routing to Mainland China

Latency to mainland China is the single most important number for many cross-border projects, and it is also the one most often misunderstood. A server that pings 30 ms from Shanghai at 10 a.m. can climb to 200 ms with packet loss at 9 p.m. if the route is congested. This guide shows how to test properly before you order, using the free test IPs every provider should give you.

What you need

  • The test IP for each route you are considering. Server.HK lists them on every product page and on the FAQ page, one per route (CN2, Optimized 163, Global and so on).
  • A machine inside mainland China on the carrier your users use — China Telecom, China Unicom or China Mobile. Results from a server in Europe tell you nothing about how users in Guangzhou will experience the route.
  • Ten minutes at two different times of day: once in the morning and once between 20:00 and 23:00 China time, the evening peak.

If you do not have a machine in China, online multi-node tools (search for “ping 多节点测试” or “itdog”) run ping and traceroute from dozens of Chinese cities and carriers at once. They are a good first pass, but a test from your own users’ network is still the most reliable.

Step 1: Ping

Ping gives you round-trip time and packet loss.

# Linux / macOS: 100 packets
ping -c 100 TEST_IP

# Windows: 100 packets
ping -n 100 TEST_IP

Look at three things in the summary:

  1. Average latency. From southern China to Hong Kong on a good route, expect roughly 10–40 ms; to Tokyo 40–80 ms; to the US West Coast 130–180 ms.
  2. Jitter — the gap between minimum and maximum. A route that swings from 30 ms to 150 ms will feel worse than a steady 60 ms.
  3. Packet loss. Anything above 1–2% at peak hours will hurt websites and make games and remote desktops unusable.

Step 2: mtr (best) or traceroute

Ping tells you how good the path is; mtr and traceroute tell you which path it is.

# Linux (install with: apt install mtr-tiny  or  yum install mtr)
mtr -rwc 50 TEST_IP

# Windows
tracert TEST_IP

mtr -rwc 50 sends 50 probes and prints a report with loss and latency for every hop. Loss that appears on one middle hop but not on the hops after it is usually just a router de-prioritising ICMP; loss that starts at a hop and continues to the destination is real.

Step 3: Identify the backbone

China Telecom runs two international backbones, and you can tell them apart by the IP addresses in the traceroute:

You see hops in It means
59.43.x.x CN2 — China Telecom’s premium backbone
202.97.x.x 163 — the standard, mass-market backbone

If the path stays on 59.43.x.x both on the way out and on the way back, it is CN2 GIA, the best tier. If you see 202.97.x.x mixed in, it is either CN2 GT or the ordinary 163 network, which congests heavily at peak hours. Our CN2 GIA explainer covers the differences in detail.

China Unicom and China Mobile use different address ranges, so ask users on those networks to test too. A “three-network” CN2 route like the China-Optimized lines on Server.HK is tuned for all three carriers.

Step 4: Test the return path

Traffic often takes a different path back. A route can look perfect from China to the server and still return over a congested link. If you can, run mtr from a server in the same data center back to your Chinese IP. If you are not a customer yet, open a sales ticket and ask about the return path for your network.

Step 5: Test at peak hours

This is the step most people skip. International links into China are busiest from about 20:00 to 23:00 Beijing time. Repeat Steps 1 and 2 in that window. A good CN2 GIA route will look almost the same as it did in the morning; a 163 route may show double the latency and visible loss.

Reading the results

  • Website for Chinese visitors: pick the route with the lowest peak-hour loss, even if its morning latency is a few milliseconds higher.
  • Mixed China and international traffic: an Optimized (163) route gives more bandwidth for the money; accept some evening slowdown.
  • Mostly overseas visitors: the Global route is cheapest per Mbps and has excellent international peering, but no mainland optimisation.
  • Gaming and remote desktop: jitter matters more than average latency. Choose the steadiest route.

Common mistakes

  • Testing from a cloud server in Europe or the US and assuming the result applies to China.
  • Testing only once, in the morning.
  • Comparing a provider’s CN2 test IP with another provider’s 163 test IP and concluding one data center is “faster”.
  • Ignoring the carrier: a route that is excellent on China Telecom may be average on China Mobile.

Next steps

Once you know which route works for your users, choose a plan on that route:

Still unsure? Open a sales ticket with your test results and we will recommend a route.