Researchers at USC have stumbled on a huge change in how Google architects its search services. The result? Reduced lag in serving search queries, especially in more far-flung regions (as in, far from Googleâ€™s own data centres).
The insight into Mountain Viewâ€™s pipes stems from other research the team was doing to develop a new method for tracking and mapping servers, identifying when they are in the same data center and estimating where that data center is.Â The method also identifies the relationships between servers and clients, and â€” as luck would have it â€” the team happened to be using it when Google made its big move. Unless of course Mountain View makes such massive shifts regularly (which seems unlikely).
According to the findings, over the past 10 months, Google has â€œdramaticallyâ€ increased (by 600 percent no less) the sites around the world from where it serves client search queries (the animated GIF at the top of this post depicts this ramping up â€” with black circles being Google data centres, and red triangles being othersâ€™ sites now being utilised by Google to relay search traffic).
The researchers note:
The USC team says Google has made this change by repurposing existing infrastructure â€” utilizing client networks it was already relying upon to host content such as videos on YouTube, and reusing them to relay â€” and crucially speed up â€” user requests and responses for search and ads.
â€œGoogle already delivered YouTube videos from within these client networks,â€ said USC PhD student Matt Calder, lead author of the study, commenting in a statement. â€œBut theyâ€™ve abruptly expanded the way they use the networks, turning their content-hosting infrastructure into a search infrastructure as well.â€
Previously search queries would have gone direct to a Google data centre, a network structure that could introduce an element of lag â€” based on how far from the data centre the query originated.Â The new architecture means searches go to a regional network first, and are then relayed on to Googleâ€™s data centre. While that might sound more long-winded, it actually has the opposite effect, thanks to the continuous connection between regional node and Google data centres, keeping speeds up and helping to mitigate the effect of lost data packets.
The researchers explain:
Data connections typically need to â€œwarm upâ€ to get to their top speed â€“ the continuous connection between the client network and the Google data center eliminates some of that warming up lag time. In addition, content is split up into tiny packets to be sent over the Internet â€“ and some of the delay that you may experience is due to the occasional loss of some of those packets. By designating the client network as a middleman, lost packets can be spotted and replaced much more quickly.
Googleâ€™s new search architecture resembles the architecture of content delivery networks (CDNs) â€” such as Akamai and Limelight Networks â€” which are used to support video services to reduce lag when streaming content.
How much lag is Googleâ€™s new world order for search eliminating? Report author Ethan Katz-Bassett told TechCrunch Â thatâ€™s difficult to assess at this point (the team is doing ongoing work to quantify the performance implications of the change), and said lag reduction will also necessarily vary â€œa lotâ€ by region. But he described one example where search latency looks to have decreased by around a fifth.
â€œTo eyeball results from one machine in New Zealand, it used to get served from Sydney, and now it is directed to a frontend in NZ. As a result, it looks like the latency dropped by about 20%,â€ he said.
â€œThe high level implication is that many regions around the world that were previously somewhat underserved should receive faster performance,â€ he added. â€œFor example, of the networks we see using these new servers, 50% were 1600+km away from their old server on Googleâ€™s network. Now, half of them are within 50km of their new server in the local ISP.â€
The new infrastructure looks to be a win not just for users (getting faster results) and for Google (delivering more ads), but also for ISPs â€” because it should lower their operational costs since they are now serving more local traffic. And if Google is leaning more heavily on their infrastructure, itâ€™s possible Mountain View is paying them more too.
Rather than the shift being about Google future-proofing for expected global growth in search queries,Â Katz-Bassettâ€™s view is this is aboutÂ helping to serve existing users around the world better. â€œOn its own, it doesnâ€™t necessarily aid capacity, but is probably mainly useful for improving performance,â€ he said when asked.
Why has Google made this change now? Again, hard to say (Google isnâ€™t commenting on the research).Â Katz-Bassett speculates that there were engineering and technical challenges preventing it from routing search traffic this way before (more likely that than a lack of business partnerships, at least â€” since the study notes that Google is â€˜mostlyâ€™ utilising existing Â client networks, such as Time Warner Cable, for this new search topology).
That and prioritising this change vs other performance improvements, saidÂ Katz-Bassett.
â€œIt does introduce some challenges: how should the system decide which server to direct a particular client to to get the best performance? In the past, Google controlled the whole path as soon as a request hit a frontend. Now that most of the frontend locations are outside Googleâ€™s network, the frontends have to relay it over the public Internet (towards Google data centers), so I imagine the conditions vary more (congestion, available bandwidth, etc), and it is a very large system to manage,â€ he added.
The USC team presented their findings at theÂ SIGCOMM Internet Measurement ConferenceÂ in Spain yesterday.
Article source: http://techcrunch.com/2013/10/25/search-shift/