Confused about GCE ZONES IP Address' Real geographical position

1,258 views
Skip to first unread message

Ya Yang

unread,
Jul 14, 2014, 5:51:18 AM7/14/14
to gce-dis...@googlegroups.com
Hi, everyone

I'm a new user of GCE and I know there are 3 zones that we can choose:

asia-east1-a/b
europe-west1-a/b
us-central1-a/b/f

However, no matter what zones I choose, the IP of that zone always shows that it's in the United States. 
I check it from several public IP libraries.

But from several network speed testings among servers globally, IP really matches its zone in GCE.

Does it mean IP library is not correct ? (almost all IP library...)
Or any optimization from GCE side ?

Thanks a lot.  

Eran Sandler

unread,
Jul 14, 2014, 6:27:03 AM7/14/14
to Ya Yang, gce-discussion
I'm only guessing here, but I think Google's network routing is very advanced (BGP and all that routing protocols) which allows it to assign any address they have to any zone they have.

If that is indeed the case, they would obviosuly cannot change the location of the IP addresses in the database fast enough as ephemeral IPs might switch zones all the time (whenever a server is started and stopped).

On top of that I know that Google optimizes networks to GCE instances by taking the user to the closest entry point into the Google network, once its there it will travel within the faster Google network to the server, perform the request, sent it back and go out back to the user from the same point the user entered. So even traceroutes might not have the exact information you would seek as you would only see the entry point into the Google network.

Eran


--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/d319e66f-1323-42f0-99cd-750a561e73b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jimmy Kaplowitz

unread,
Jul 14, 2014, 9:17:48 PM7/14/14
to Eran Sandler, Ya Yang, gce-discussion
Yes, there is no guarantee that a GCE IP address will remain in the same region long-term. They have moved between regions before and may again.

- Jimmy


Ya Yang

unread,
Jul 14, 2014, 10:00:02 PM7/14/14
to gce-dis...@googlegroups.com, er...@sandler.co.il, youngerb...@gmail.com
Thanks  a lot for your reply.

It means Google will help us to optimize the links so we just need to choose the right zones that we need ?

For example, my instances will connect to other servers in HongKong, Asia. 
I create gce instances in  asia-east1-a/b.
Even though the static IP in asia-east1-a/b shows itself in America, but the link speed between HK and my instances is good.
It's also the same with europe-west1-a/b and us-central1-a/b/f,right ?

Jimmy Kaplowitz

unread,
Jul 15, 2014, 1:01:27 AM7/15/14
to Ya Yang, gce-dis...@googlegroups.com, Eran Sandler
It's definitely true that, if you assign an IP address to an instance in one GCE zone, the instance will be running geographically in that zone, and Google's network will be aware that the IP address is in that zone, even if the IP address was originally allocated from a different continent. For example, if an instance in an Asian zone gets an IP address originating from the US regional Internet registry's network blocks, it would not be typical for connections from Asia to cross continents despite the IP.

You're right that currently many geoIP databases do not accout for how Google Cloud Platform manages its IP addresses. I've noticed this too.

- Jimmy


Ya Yang

unread,
Jul 15, 2014, 1:49:07 AM7/15/14
to gce-dis...@googlegroups.com, youngerb...@gmail.com, er...@sandler.co.il
Much appreciated !
Thanks a lot for sharing your knowledge and experience on it.

Sasha White

unread,
Aug 7, 2016, 1:32:45 PM8/7/16
to gce-discussion, youngerb...@gmail.com, er...@sandler.co.il
Super glad I found this discussion... This was driving me crazy! As I thought my traffic was going to USA first then EU... And was stressing about the delay implications.. This explains it all.... Thank you so much!

Paul Nash

unread,
Aug 8, 2016, 6:53:39 AM8/8/16
to Sasha White, gce-discussion, youngerb...@gmail.com, er...@sandler.co.il
Hi Sasha, so glad you found this old thread, too - it answers some questions that came up here recently, so I'd like to reiterate for future reference:

Jimmy's observation from way back when is still true: Google's IPs are not "bound" in a specific geographical region, and geoIP databases may provide incorrect information about the "location" of an IP coming from Google Cloud.

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.

---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/5f3fe814-b9f5-4590-accb-da04b81c7101%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Paul R. Nash | Product Manager, Compute Engine | paul...@google.com | 206-876-1620

Reply all
Reply to author
Forward
0 new messages