<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scott O&#039;Brien &#187; IP</title>
	<atom:link href="http://www.scottyob.com/tag/ip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottyob.com</link>
	<description>A look at the world through my eyes</description>
	<lastBuildDate>Wed, 25 Apr 2012 03:29:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>What&#8217;s the harm in Google DNS?  Performance!</title>
		<link>http://www.scottyob.com/2011/07/02/whats-the-harm-in-google-dns-performance/</link>
		<comments>http://www.scottyob.com/2011/07/02/whats-the-harm-in-google-dns-performance/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 14:40:05 +0000</pubDate>
		<dc:creator>scottyob</dc:creator>
				<category><![CDATA[nerd]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://www.scottyob.com/?p=112</guid>
		<description><![CDATA[On a little side note to the tutorial series I&#8217;ve been writing up lately for building a ZFS fileserver. This one is about Why Google DNS is bad for your performance (well, depending on where you live) A real quick run down, we all know what DNS does yeah? It translates domains like www.scottyob.com into [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both;">On a little side note to the tutorial series I&#8217;ve been writing up lately for building a ZFS fileserver. This one is about Why Google DNS is bad for your performance (well, depending on where you live)</p>
<p style="clear: both;">A real quick run down, we all know what DNS does yeah? It translates domains like www.scottyob.com into IP addresses like 112.140.183.97. A DNS server has a job of translating these domain names to the IP addresses we can use.</p>
<p style="clear: both;">Now, when it comes to Google DNS, if you believe in the propaganda <a href="http://code.google.com/speed/public-dns/">http://code.google.com/speed/public-dns/</a> where Google DNS is said to</p>
<ul style="clear: both;">
<li><a href="http://code.google.com/speed/public-dns/docs/performance.html">Speed up your browsing experience</a></li>
<li><a href="http://code.google.com/speed/public-dns/docs/security.html">Improve your Security. </a></li>
</ul>
<p style="clear: both;">What google doesn&#8217;t tell you is that it interferes with DNS servers that might try and give you a server that&#8217;s close to your home. I&#8217;ve been using Google DNS for months here at home, but only just have I decided against using it, and I&#8217;ll run through exactly what causes some performance issues.</p>
<p style="clear: both;">I was trying to watch a program on iView on TPG&#8217;s internet connection. Now, TPG don&#8217;t have the best international links on peak times, so I first started getting frustrated at them for not letting me watch my iView program with buffer lags on my 8Mbit plan. I checked my Signal to Noise ratio and dropped packets, etc.. it was fine. I checked the bandwith going out on my ppp interface on the router to see if I was maxing out the net connection at home, but nope, that was fine too, so the problem must have been with TPG.</p>
<p style="clear: both;">Looking at what was going on, I did a little traceroute to www.abc.net.au</p>
<blockquote style="clear: both;">
<p style="clear: both;">traceroute: Warning: www.abc.net.au has multiple addresses; using 125.252.224.73<br />
traceroute to a1632.g.akamai.net (125.252.224.73), 64 hops max, 52 byte packets<br />
1 10.1.1.254 (10.1.1.254) 1.919 ms 1.260 ms 1.202 ms<br />
2 * * *<br />
3 202.7.173.17 (202.7.173.17) 27.056 ms 26.317 ms 26.693 ms<br />
4 syd-sot-ken-crt1-ge-5-1-0.tpgi.com.au (202.7.162.173) 26.283 ms 26.884 ms 26.100 ms<br />
5 ix-11-1-0-507.tcore2.tv2-tokyo.as6453.net (116.0.88.21) 153.325 ms 135.736 ms 126.568 ms<br />
6 if-14-0-0-1720.core1.tv2-tokyo.as6453.net (209.58.61.121) 1481.461 ms<br />
if-1-0-0-1715.core1.tv2-tokyo.as6453.net (209.58.61.125) 298.270 ms<br />
if-14-0-0-1720.core1.tv2-tokyo.as6453.net (209.58.61.121) 282.141 ms<br />
7 if-10-0-0-981.core3.hk2-hongkong.as6453.net (116.0.82.85) 208.232 ms<br />
if-5-0-0.core3.hk2-hongkong.as6453.net (116.0.82.1) 199.170 ms<br />
if-10-0-0-981.core3.hk2-hongkong.as6453.net (116.0.82.85) 206.027 ms<br />
8 vlan31.icore1.hk2-hongkong.as6453.net (116.0.82.18) 219.937 ms 204.963 ms 196.273 ms<br />
9 80.150.169.25 (80.150.169.25) 333.519 ms 306.138 ms 307.031 ms<br />
10 80.156.224.6 (80.156.224.6) 358.402 ms 320.029 ms 349.133 ms<br />
11 a125-252-224-73.deploy.akamaitechnologies.com (125.252.224.73) 332.188 ms 331.008 ms 314.833 ms</p>
</blockquote>
<p style="clear: both;">Looking at this traceroute, the first thing I thought was &#8220;Why on earth is ABC hosting it&#8217;s website in hongkong (or so the traffic has to go via hongkong.)? Immediately reject ABC would do this and I blame TPG&#8217;s stupid routing decisions.</p>
<p style="clear: both;">Looking at the IP address further <a href="http://www.dnsstuff.com/tools/ipall/?tool_id=67&amp;token=&amp;toolhandler_redirect=0&amp;ip=125.252.224.73">http://www.dnsstuff.com/tools/ipall/?tool_id=67&amp;token=&amp;toolhandler_redirect=0&amp;ip=125.252.224.73</a> It looks like it&#8217;s hosted in Singapore, and some googling shows akamaitechnologies is the web host for ABC.. ok, so what is going on here?</p>
<p style="clear: both;">then I did a little DIGging around on the ABC domain and check this out.</p>
<p style="clear: both;">Using Google DNS (8.8.8.8, hosted in America)</p>
<blockquote style="clear: both;">
<p style="clear: both;">; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; www.abc.net.au @8.8.8.8</p>
<p style="clear: both;">;; global options: +cmd</p>
<p style="clear: both;">;; Got answer:</p>
<p style="clear: both;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 16084</p>
<p style="clear: both;">;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0</p>
<p style="clear: both;">;; QUESTION SECTION:</p>
<p style="clear: both;">;www.abc.net.au. IN A</p>
<p style="clear: both;">;; ANSWER SECTION:</p>
<p style="clear: both;">www.abc.net.au. 882 IN CNAME www.abc.net.au.edgesuite.net.</p>
<p style="clear: both;">www.abc.net.au.edgesuite.net. 21581 IN CNAME a1632.g.akamai.net.</p>
<p style="clear: both;">a1632.g.akamai.net. 2 IN A 63.150.131.41</p>
<p style="clear: both;">a1632.g.akamai.net. 2 IN A 63.150.131.33</p>
<p style="clear: both;">;; Query time: 161 msec</p>
<p style="clear: both;">;; SERVER: 8.8.8.8#53(8.8.8.8)</p>
<p style="clear: both;">;; WHEN: Sun Jul 3 00:37:00 2011</p>
<p style="clear: both;">;; MSG SIZE rcvd: 135</p>
</blockquote>
<p style="clear: both;">And using TPG&#8217;s DNS servers (203.12.160.35)</p>
<blockquote style="clear: both;"><p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px} span.Apple-tab-span {white-space:pre} -->macshell:~ scott$ dig www.abc.net.au @203.12.160.35</p>
<p>&nbsp;</p>
<p>; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; www.abc.net.au @203.12.160.35</p>
<p>;; global options: +cmd</p>
<p>;; Got answer:</p>
<p>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 11673</p>
<p>;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0</p>
<p>&nbsp;</p>
<p>;; QUESTION SECTION:</p>
<p>;www.abc.net.au.			IN	A</p>
<p>&nbsp;</p>
<p>;; ANSWER SECTION:</p>
<p>www.abc.net.au.		523	IN	CNAME	www.abc.net.au.edgesuite.net.</p>
<p>www.abc.net.au.edgesuite.net. 12274 IN	CNAME	a1632.g.akamai.net.</p>
<p>a1632.g.akamai.net.	10	IN	A	202.7.177.66</p>
<p>a1632.g.akamai.net.	10	IN	A	202.7.177.83</p>
<p>&nbsp;</p>
<p>;; Query time: 29 msec</p>
<p>;; SERVER: 203.12.160.35#53(203.12.160.35)</p>
<p>;; WHEN: Sun Jul  3 00:38:20 2011</p>
<p>;; MSG SIZE  rcvd: 135</p>
<p style="clear: both;">&nbsp;</p>
</blockquote>
<p>So there we go, hosted in Sydney Australia.. So how does the traceroute compare?</p>
<blockquote><p>macshell:~ scott$ traceroute www.abc.net.au</p>
<p>traceroute: Warning: www.abc.net.au has multiple addresses; using 202.7.177.83</p>
<p>traceroute to a1632.g.akamai.net (202.7.177.83), 64 hops max, 52 byte packets</p>
<p>1  10.1.1.254 (10.1.1.254)  1.711 ms  1.134 ms  1.100 ms</p>
<p>2  * * *</p>
<p>3  202.7.173.17 (202.7.173.17)  27.047 ms  26.072 ms  26.502 ms</p>
<p>4  syd-sot-ken-ak2-83.tpgi.com.au (202.7.177.83)  26.540 ms  26.835 ms  26.540 ms</p></blockquote>
<p>Different nameservers can be set up to resolve to different addresses based on geographic positioning, in more of a first in best dressed kind of effort.  So if you&#8217;re using Google DNS servers (8.8.8.8), it so happens that because this is in America (check out their IP address, CA), then I started getting update servers and the like on DNS that were closest in latency terms to America then Sydney Australia.</p>
<p>Simply by changing from Google DNS servers to my ISP&#8217;s, I get healthier latency, and am no longer sending traffic over saturated overseas links.  So how does this compare with ABC iView?  Well, check it out</p>
<p><img class="alignnone" title="iView before" src="https://img.skitch.com/20110702-1t6mcstm7chcus1ikbictyydp1.jpg" alt="iView before" width="659" height="197" /></p>
<p>And when I&#8217;m using my own ISP&#8217;s DNS</p>
<p><img class="alignnone" title="iView After" src="https://img.skitch.com/20110702-1wq1jcb1g6u8xi7ad5ht1ky124.jpg" alt="" width="651" height="192" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottyob.com/2011/07/02/whats-the-harm-in-google-dns-performance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

