|
|
Posted on4 minutes ago
|
|
|

When buying a VPS, the merchant listing listed "CN2 GIA Premium Line," but upon testing, latency during evening peak hours started at 250ms, with occasional packet drops. This gap is very common—"fake CN2" is almost an open selling trick in the domestic server market: packaging ordinary 163GB backbone machines as premium lines, charging double the price, and those unaware of the truth can't tell the difference. How to expose it?
When it comes to determining the route, the core routine is just two steps: first, check the IP location and ISP to confirm the carrier's identity; Then traceroute to check the routing nodes and verify whether CN2 is actually on the way. The first step is to use the destination interface in a few seconds; the second step is to check the critical node segments. This article uses shell to link these two steps into a script. Run it before buying the machine to get a clear idea.
1. What exactly is CN2, and why can it be detected?
CN2 (ChinaNet Next Carrying Network) is China Telecom's next-generation bearer network, and it is two physical networks compared to the 163 backbone network (ChinaNet) used for regular internet access. For domestic users accessing overseas servers, which network the line data passes through directly determines latency and packet loss:
163 Backbone (regular line): During peak periods, international outlets are crowded, with high latency and jitter. Common node IPs are 202.97.x.x;
CN2 line: Has independent backbone nodes, typical feature of 59.43.x.x nodes visible along the way, low latency, and stable performance;
The CN2 is also internally divided into GT and GIA: GT only runs CN2 on the international export segment, while the domestic segment still runs at 163;GIA runs CN2 throughout, offering the best experience for domestic access to overseas servers。
So the method is very simple: traceroute all the way through,The appearance of 59.43.x.x is a characteristic of CN2, the whole process is 202.97.x.x, which is the standard 163 backbone. This method has been used in the VPS community for over a decade, relying on the fact that the IP ranges of the two networks are different, making them easy to identify.
But don't rush to check the router—the first step is to confirm which carrier the machine is and which country it is in. Because your first and second hops to traceroute are often to your own broadband node, not to the server; Also, some VPS providers attach machines to different data centers, and verifying the origin (for example, Hong Kong, but routing routes to the US) is an important clue.
2. Scheme design
Check the location and ISP:curl tonehttps://ip9.com.cn/get?ip=<服务器IP>, get the country and carrier fields—first confirm the machine's actual location and carrier (Telecom/Unicom/Mobile/others), and rule out 'Marked Hong Kong is actually in the US West Coast' where the goods don't match;
Route tracing:traceroute -n -T -p 443 uses TCP to test port 443 (closer to the real access path than the default ICMP and easier to pass through firewalls), recording node IPs along the way;
Manual interpretation of key nodes: The script hits each jump, and you conclude with the occurrence of 59.43 / 202.97.
Why is it only needed for the home interface + traceroute? Because the "CN2" tag is essentially not a field that the home interface can directly return — the home interface provides you with carrier and ASN information (such as China Telecom, AS4809), which proves "this machine belongs to the telecom network" but cannot prove "the route you are using is CN2." Therefore, the correct approach is to identify the interface + verify the route by routing the path; both steps are indispensable.
3. Shell implementation
Dependency: Debian/Ubuntu requires installing apt install traceroute, used by CentOSyum install traceroute; If only mtr is used, replace the traceroute in step 2 with mtr -zn -T -P 443 -m 15 for the same effect.
The damage output after running looks roughly like this:
== Step 1: IP Location / ISP == Country: Hong Kong, China | Carrier: China Telecom
== Step 2: TCP 443 Route Tracing == 1 192.168.1.1 ... 5 202.97.x.x ... 8 59.43.x.x ... 10 59.43.x.x ... 12 103.xxx.xxx.xxx ... Jumps 8 and 10Continuously showing 59.43, it can basically be concluded that this is a CN2 line, combined with latency tests (stabilized within 50ms), the seller did not exaggerate this time.
Three details worth mentioning in the script:
curl added --max-time 10: Interface occasionally slows to prevent scripts from freezing; Using Python to parse only JSON: parsing the JSON returned by curl in a pure shell is too painful. This step is just a one-line tool call to Python, and the main logic remains in the shell, which fits operational habits; TCP 443 instead of ICMP: Many data centers have ICMP speed limits or shielding, while TCP traces closer to your actual business path.
4. Implementation Notes
GT and GIA should be viewed separately: 59.43 shows ≠ full GIA. Check if the "domestic segment" also has 59.43 — if you can see the CN2 node on the domestic segment (your broadband side), then the full GIA is complete; Only the outbound segment has it, which is GT, and can lag during evening rush hours; Return is more important than outbound: For domestic access to overseas servers, the quality of the return (server → you) line is the key to the actual experience. This script tests the outbound route. The return trip can be checked again using besttrace or online backhaul testing tools. Only if both sides pass 59.43 is the true GIA; Test multiple times to avoid the evening rush: line quality only shows during the 20:00-23:00 peak hour. Machines that test 20ms during the day and 250ms at night are mostly just regular lines struggling to hold on; If the location doesn't match, it's a big problem: if the machine's IP is found to be in a certain country but the routing is halfway around the world, it means the data center doesn't match the product. Quickly take screenshots and confront the merchant; Don't push the frequency to max: Native interface free version 60 times/min, more than enough to test a few machines yourself. Just don't write scripts to scan the entire IP range. |
Previous:iKuai (iKuai) sets wireless AP mode (bypass AP, bridge mode).
|