5

I noticed that ping to Google DNS and to google.com from Serbia is about 15ms, but google servers are located in California! http://www.geoiptool.com/en/?IP=173.194.39.110 My dedicated server is located in Germany and our countries are close, but ping is 43ms. What is the secret? Can I reduce ping to my server somehow?

  • 4
    "google servers are located in California!" No, they're not. – ceejayoz Sep 2 '12 at 15:01
  • 1
    Well, some of them are. :) – Michael B Sep 2 '12 at 20:31
  • 1
    Traceroute and see where it goes. – Skaperen Sep 3 '12 at 0:15
19

Google has servers all over the world and uses Anycast so that a server near you answers your request, they use the same method in their public DNS product.

If you have servers on multiple geographic locations, you can set up something similiar with BIND, not using Anycast, but based on geolocation by using views for certain IP addresses.

  • 4
    This is your answer. Google doesn't have any magic to break the laws of physics. – blueben Sep 2 '12 at 15:16
  • 3
    Google is likely using bgp anycasting, not geoip. – 3molo Sep 2 '12 at 16:36
  • 6
    "Google doesn't have any magic to break the laws of physics." Yet. – Michael B Sep 2 '12 at 20:32
  • 2
    @3molo, you're right but you could have just edited instead of downvoting. I've edited the answer to be closer to the truth. – Kenny Rasschaert Sep 2 '12 at 21:37
  • 1
    You're right, I should have done that. – 3molo Sep 3 '12 at 5:32
5

ICMP is not the correct tool for measuring network performance. A more realistic test would be using a network packet capture application like Wireshark, or something that that can perform application/protocol-specific tests, such as NPing.

Nping Reference Guide
http://nmap.org/book/nping-man.html

1

To explain why it looks like it's a secret, most likely you're not pinging the same server that geoiptool.com sees. You pinged a server in Serbia and geoiptool.com sees another machine in california.

If you want low latency, then place your server closest to an internet exchange in the area where the customers are located. If your customers are spread around the world, then use CDN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.