<?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>David Poblador i Garcia &#187; network</title>
	<atom:link href="http://davidpoblador.com/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidpoblador.com</link>
	<description>#sysadmin, #SEO, #freesoftware, #entrepreneur</description>
	<lastBuildDate>Fri, 15 Jul 2011 07:48:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Google Treasure Hunt: Network Question</title>
		<link>http://davidpoblador.com/google-treasure-hunt-network-question/</link>
		<comments>http://davidpoblador.com/google-treasure-hunt-network-question/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 22:20:53 +0000</pubDate>
		<dc:creator>David Poblador i Garcia</dc:creator>
				<category><![CDATA[just for fun]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google treasure hunt]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=37</guid>
		<description><![CDATA[The network question was by far the easiest one in GTH 2008 contest. Sample question: Below is a diagram of a computer network. The nodes are hosts on the network, and the lines between them are links. A packet is sent out from host N with a destination of 201.107.56.70. Which nodes does the packet [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 410px"><img title="Network Problem" src="http://treasurehunt.appspot.com/images/network.png" alt="Network Problem" width="400" height="210" /><p class="wp-caption-text">Network Problem</p></div>
<p>The <a href="http://treasurehunt.appspot.com/historic/network/">network question</a> was by far the easiest one in <a href="http://googleblog.blogspot.com/2008/05/google-treasure-hunt-update.html">GTH 2008 contest</a>.</p>
<p>Sample question:</p>
<blockquote><p>Below is a diagram of a computer network.  The nodes are hosts on the     network, and the lines between them are links.  A packet is sent out     from host <strong>N</strong> with a destination of     <strong>201.107.56.70</strong>.  Which nodes does the packet pass     through on its way to the destination?  (include start and final node in     your answer)</p></blockquote>
<p>After that, Google presented a list of nodes with their <a href="http://en.wikipedia.org/wiki/IP_address">IP addresses</a>, 3 different <a href="http://en.wikipedia.org/wiki/Static_routing">static routes</a> and a <a href="http://en.wikipedia.org/wiki/Default_gateway">default gateway</a>. This is the entry for host <strong>N</strong>:</p>
<table style="border: 1px solid black;" border="1" width="100%">
<tbody>
<tr style="border: 1px solid black;"></tr>
<tr style="border: 1px solid black;">
<td style="border: 1px solid black;">N</td>
<td style="border: 1px solid black;">97.134.15.173</td>
<td style="border: 1px solid black;">88.42.227.237 =&gt; 53.138.73.76</td>
<td style="border: 1px solid black;">201.107.56.70 =&gt; 179.138.156.133</td>
<td style="border: 1px solid black;">68.190.198.0/24 =&gt; 248.194.205.8</td>
<td style="border: 1px solid black;">246.10.120.232</td>
</tr>
</tbody>
</table>
<p>Pretty easy:</p>
<ol>
<li>A packet going to 201.107.56.70 arrives at node N</li>
<li>Does it match 88.42.227.237 destination host? No&#8230; next try</li>
<li>Does it match 201.107.56.70 destination host? Yes!</li>
<li>The packet is forwarded to the host having 179.138.156.133 IP address (which is host B):</li>
</ol>
<table style="border: 1px solid black;" border="1" width="100%">
<tbody>
<tr style="border: 1px solid black;">
</tr>
<tr style="border: 1px solid black;">
<td style="border: 1px solid black;">B</td>
<td style="border: 1px solid black;">179.138.156.133</td>
<td style="border: 1px solid black;">31.114.20.211 =&gt; 248.194.205.8</td>
<td style="border: 1px solid black;">53.138.73.76 =&gt; 97.134.15.173</td>
<td style="border: 1px solid black;">248.194.205.0/24 =&gt; 67.244.46.98</td>
<td style="border: 1px solid black;">53.138.73.76</td>
</tr>
</tbody>
</table>
<p>And so forth&#8230;</p>
<p>&lt;bonus&gt;</p>
<p>How would route table at host B look like?</p>
<pre>devel@stewie:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
31.114.20.211   248.194.205.8   255.255.255.255 U     0      0        0 eth0
53.138.73.76    97.134.15.173   255.255.255.255 U     0      0        0 eth0
248.194.205.0   67.244.46.98    255.255.255.0   U     0      0        0 eth0
0.0.0.0         53.138.73.76    0.0.0.0         UG    100    0        0 eth0</pre>
<p>&lt;/bonus&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/google-treasure-hunt-network-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

