Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Toward faster international server selection using clever DNS.

Reply
Thread Tools

Toward faster international server selection using clever DNS.

 
 
Roedy Green
Guest
Posts: n/a
 
      03-17-2012
When you type google.com you get sent to google.ca if you live in
Canada. I presume this works by your request going to google.com in
the USA, where it then figures out you are from Canada and sends back
a redirect, then you resend your request to google.ca a server in
Canada. Is that correct?

blogger.com (owned by google) has just started doing this variable
suffix thing too. All kinds of large companies use this sort of
logic. Sometimes you must manually select your region. It strikes me
as inefficient. If the head office is in Taiwan, it is quite slow
(e.g. motherboard manufacturers).

What should happen is the DNS routers in Canada should direct
google.global requests to google.ca. and in the USA to google.com.
You should be able to bypass the country server selector with a
specific google.ca request.

Does it actually work roughly this way already? if not, why? It is
just the inertia holding back extending DNS software in all the
world's servers?

If it does not work this way, or when the server uses the redirect
method, it suggests I can be kind to my clients in my JSP (the Java
topic tie) by localising links to global enterprises in the generated
HTML so they go directly.

For example, on every page in the Java glossary is a link to google
that lets you find more information about the topic of the page. This
link could be localised if I were using JSP to dynamically generate
the page.
--
Roedy Green Canadian Mind Products
http://mindprod.com
One of the most useful comments you can put in a program is
"If you change this, remember to change ?XXX? too".

 
Reply With Quote
 
 
 
 
Jeff Higgins
Guest
Posts: n/a
 
      03-17-2012
On 03/17/2012 06:36 AM, Roedy Green wrote:
> When you type google.com you get sent to google.ca if you live in
> Canada. I presume this works by your request going to google.com in
> the USA, where it then figures out you are from Canada and sends back
> a redirect, then you resend your request to google.ca a server in
> Canada. Is that correct?
>
> blogger.com (owned by google) has just started doing this variable
> suffix thing too. All kinds of large companies use this sort of
> logic. Sometimes you must manually select your region. It strikes me
> as inefficient. If the head office is in Taiwan, it is quite slow
> (e.g. motherboard manufacturers).
>
> What should happen is the DNS routers in Canada should direct
> google.global requests to google.ca. and in the USA to google.com.
> You should be able to bypass the country server selector with a
> specific google.ca request.
>
> Does it actually work roughly this way already? if not, why? It is
> just the inertia holding back extending DNS software in all the
> world's servers?


<http://www.zytrax.com/books/dns/>
<http://tools.ietf.org/html/rfc3439>

>
> If it does not work this way, or when the server uses the redirect
> method, it suggests I can be kind to my clients in my JSP (the Java
> topic tie) by localising links to global enterprises in the generated
> HTML so they go directly.
>
> For example, on every page in the Java glossary is a link to google
> that lets you find more information about the topic of the page. This
> link could be localised if I were using JSP to dynamically generate
> the page.


 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      03-17-2012
On Sat, 17 Mar 2012 03:36:16 -0700, Roedy Green
<> wrote, quoted or indirectly quoted
someone who said :

>For example, on every page in the Java glossary is a link to google
>that lets you find more information about the topic of the page. This
>link could be localised if I were using JSP to dynamically generate
>the page.


I have developed this idea further at
http://mindprod.com/project/routing.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
It is almost impossible to keep things in synch manually. Instead:
-Keep each fact in only one central database (not necessarily SQL),
and access it as needed. Since there is only one copy of each fact,
there is nothing to get out of synch.
-Use some automated tool so that if you change a fact is one place,
it automatically updates the others.
-Write a sanity checker you run periodically to ensure all is consistent.
This is the strategy compilers use.
-Document the procedures needed to keep all in synch if you change
something and rigidly and mechanically follow them.
 
Reply With Quote
 
Joshua Cranmer
Guest
Posts: n/a
 
      03-17-2012
On 3/17/2012 5:36 AM, Roedy Green wrote:
> When you type google.com you get sent to google.ca if you live in
> Canada. I presume this works by your request going to google.com in
> the USA, where it then figures out you are from Canada and sends back
> a redirect, then you resend your request to google.ca a server in
> Canada. Is that correct?


No. Most servers probably do the global domain name switching via a
vhost-based similar on their webservers; they otherwise go to the same
computer(s). The point of server selection is to do appropriate
regionalization based on the user's preferences, which often has nothing
to do with the physical location of a user.


> What should happen is the DNS routers in Canada should direct
> google.global requests to google.ca. and in the USA to google.com.
> You should be able to bypass the country server selector with a
> specific google.ca request.


Note that people already use DNS to point you to the closest physical
servers you have access to, along with load balancing tricks. Basically,
the problem you are trying to solve is already more or less solved.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      03-19-2012
On Sat, 17 Mar 2012 09:08:39 -0500, Joshua Cranmer
<> wrote, quoted or indirectly quoted someone
who said :

>Note that people already use DNS to point you to the closest physical
>servers you have access to, along with load balancing tricks. Basically,
>the problem you are trying to solve is already more or less solved.


Oddly though, Google does not do this. I watched it with Wireshark.
So there still might be value is localising Google links in your JSP.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It is almost impossible to keep things in synch manually. Instead:
-Keep each fact in only one central database (not necessarily SQL),
and access it as needed. Since there is only one copy of each fact,
there is nothing to get out of synch.
-Use some automated tool so that if you change a fact is one place,
it automatically updates the others.
-Write a sanity checker you run periodically to ensure all is consistent.
This is the strategy compilers use.
-Document the procedures needed to keep all in synch if you change
something and rigidly and mechanically follow them.
 
Reply With Quote
 
Joshua Cranmer
Guest
Posts: n/a
 
      03-20-2012
On 3/18/2012 9:46 PM, Roedy Green wrote:
> On Sat, 17 Mar 2012 09:08:39 -0500, Joshua Cranmer
> <> wrote, quoted or indirectly quoted someone
> who said :
>
>> Note that people already use DNS to point you to the closest physical
>> servers you have access to, along with load balancing tricks. Basically,
>> the problem you are trying to solve is already more or less solved.

>
> Oddly though, Google does not do this. I watched it with Wireshark.
> So there still might be value is localising Google links in your JSP.


What do you mean by this? If, for example, I do a traceroute to
google.co.at and another to google.com, the route is exactly the same
except for the final server. Judging from whois data, the servers for
both domains are located in Wisconsin, whereas the host computer I
queried from is in Illinois. Given the politics of how ISPs connect to
each other, this is not an unreasonable result (the traffic is forwarded
via what appear to be primarily academic transit links, so I presume
that the amount of money that changes hands for the bandwidth in
question is exactly $0).

Repeating a traceroute from a computer located in another state for the
same domain name produced a different IP address, accessed via a
different set of intermediate hops. I can't map these to physical server
locations, but knowing a little about ISP infrastructures, I suspect
that the server is likely within 20 miles of my location (I happen to be
geographically close to a cluster of major internet exchanges--over half
of the DNS root nameservers have a home in the area).
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
 
Reply With Quote
 
RedGrittyBrick
Guest
Posts: n/a
 
      03-27-2012
On 19/03/2012 02:46, Roedy Green wrote:
> On Sat, 17 Mar 2012 09:08:39 -0500, Joshua Cranmer
> <> wrote, quoted or indirectly quoted someone
> who said :
>
>> Note that people already use DNS to point you to the closest physical
>> servers you have access to, along with load balancing tricks. Basically,
>> the problem you are trying to solve is already more or less solved.

>
> Oddly though, Google does not do this. I watched it with Wireshark.
> So there still might be value is localising Google links in your JSP.


I'm not sure how Roedy's idea is an improvement over what firms like
Akamai have been doing for nearly fifteen years?

http://en.wikipedia.org/wiki/Akamai_...very_to_a_user

--
RGB
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      05-06-2012
On 3/17/2012 8:45 AM, Roedy Green wrote:
> On Sat, 17 Mar 2012 03:36:16 -0700, Roedy Green
> <> wrote, quoted or indirectly quoted
> someone who said :
>
>> For example, on every page in the Java glossary is a link to google
>> that lets you find more information about the topic of the page. This
>> link could be localised if I were using JSP to dynamically generate
>> the page.

>
> I have developed this idea further at
> http://mindprod.com/project/routing.html


You are mixing up two problems:
1) delivering localized content
2) route traffic to server that is close network wise

Problem #1 has standard solutions in most web technologies.

Problem #2 was solved in 1998 by Akamai (they do not use a
special domain just the company's main domain).

Arne

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FritzBox Help - Identification, Selection and International Flashability? News Reader UK VOIP 1 03-30-2011 03:01 PM
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Yeongja_Choi@yahoo.com C++ 0 06-07-2005 02:00 AM
CAN I COUNT 70-305 TOWARD BOTH MCSD AND MCDBA? IGNACIO DE LA TORRE MCSD 1 04-29-2004 11:35 AM
"Working Toward MCSE" Jon Anderson MCSE 17 04-23-2004 01:06 AM
Will 70-216 Count Toward My MCSA? Jim Bayers MCSE 2 01-26-2004 08:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57