问题原文
原帖链接 · David Callanan · CC BY-SA 4.0
According to this article, we would expect a ping of at least 60 milliseconds for 10,000km of distance:
Ireland is roughly 10,000km away from California, so this is the ping we would expect.
I am pinging api.kraken.com from Ireland, which is located somewhere in California.
How is my ping so low - 4 milliseconds?
I am using the ping command in Command Prompt to test this:
And it's definitely not just me getting this low ping. Here is a report from check-host.net:
Here is the location of the server, using iplocation.net:
Here is a traceroute if useful:
已采纳解答
原帖链接 · Simon Richter · CC BY-SA 4.0
For me, traceroute api.kraken.com ends with
8 ae-2-3602.edge3.Berlin1.Level3.net (4.69.159.5) 15.422 ms 16.278 ms 17.423 ms
9 unknown.Level3.net (212.162.40.34) 12.069 ms 12.045 ms 9.120 ms
10 104.16.214.191 (104.16.214.191) 9.071 ms 10.039 ms 4.867 ms
From a colo server I rent, it ends with
7 as13335.dusseldorf.megaport.com (194.146.118.139) 3.027 ms 3.000 ms 2.965 ms
8 104.16.213.191 (104.16.213.191) 2.419 ms 2.451 ms 2.386 ms
The round-trip times there have a lot of noise on them as we only have three probes per host, but we can be fairly confident that there is no transatlantic link involved.
What is happening here is that Cloudflare are announcing the same IP address block from multiple datacenters that all have copies of the services offered, so each client is connected to the closest one.
Such a setup can fail if routes change around while a connection is active, but generally only few clients are affected and the majority of clients will just rebuild the connection, possibly to a different instance this time.
Keeping the different instances synchronized to simulate a single service is part of Cloudflare's business model.
IP geolocation is guesswork at best, and certainly breaks with such setups since the same IP is used in different places. The ipinfo.io service is likely in San Francisco, so the next instance of api.kraken.com they found is their neighbor.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
