<?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>King of the Potato People &#187; router</title>
	<atom:link href="http://www.potato-people.com/blog/tag/router/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.potato-people.com/blog</link>
	<description>Code, photos and ramblings of Rick Hodger</description>
	<lastBuildDate>Fri, 23 Jul 2010 10:03:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pet Hate: MTR</title>
		<link>http://www.potato-people.com/blog/2008/09/pet-hate-mtr/</link>
		<comments>http://www.potato-people.com/blog/2008/09/pet-hate-mtr/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 09:49:10 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[ISP]]></category>
		<category><![CDATA[icmp]]></category>
		<category><![CDATA[loss]]></category>
		<category><![CDATA[measuring]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[winmtr]]></category>

		<guid isPermaLink="false">http://www.potato-people.com/blog/?p=21</guid>
		<description><![CDATA[MTR, also known as Matt's Trace Route, is an enahanced traceroute utility which after making the initial run continues to rerun the traceroute and calculate hop-specific packet loss and latencies.

Unfortunately, virtually everytime someone calls me and mentions "packet loss" and "MTR" in the same breath, it's because they do not understand the output. ]]></description>
			<content:encoded><![CDATA[<p>MTR, also known as Matt&#8217;s Trace Route, is an enahanced traceroute utility which after making the initial run continues to rerun the traceroute and calculate hop-specific packet loss and latencies.</p>
<p>Unfortunately, virtually everytime someone calls me and mentions &#8220;packet loss&#8221; and &#8220;MTR&#8221; in the same breath, it&#8217;s because they do not understand the output.</p>
<p><span id="more-21"></span></p>
<p>I&#8217;m going to assume you already know what a traceroute is, and what it does. MTR runs a traceroute over and over for infinity in order to identify possible faulty routers or links. For example, this is an mtr from my server to www.linx.net:</p>
<p><code>My traceroute  [v0.72]<br />
mashed (0.0.0.0)                                       Mon Sep  8 10:14:13 2008<br />
Keys:  Help   Display mode   Restart statistics   Order of fields   quit<br />
Packets               Pings<br />
Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev<br />
1. gw0.potato-people.com             0.0%    11    0.6   1.0   0.5   1.4   0.4<br />
2. gi0-3.br1.heron.bytel.net.uk      0.0%    11   98.8  13.9   0.5  98.8  31.1<br />
3. vlan1.br0.heron.bytel.net.uk      0.0%    11    2.3   1.9   1.0   2.6   0.5<br />
4. collector.linx.net                0.0%    10   19.6  18.4  17.3  20.0   1.0<br />
5. pink.linx.net                     0.0%    10   18.5  18.1  17.2  19.3   0.7</code></p>
<p>Pretty simple &#8211; each hop is identified, and then MTR repeats this (note the &#8220;Snt&#8221;, or sent packets column) and records the loss and latencies.</p>
<p><strong>Packet Loss</strong></p>
<p>If we saw a sudden jump to 50% loss at hop 3 and beyond, then we know there is a problem between hops 2 and 3, or at 3 itself. Eg:</p>
<p><code>My traceroute  [v0.72]<br />
mashed (0.0.0.0)                                       Mon Sep  8 10:14:13 2008<br />
Keys:  Help   Display mode   Restart statistics   Order of fields   quit<br />
Packets               Pings<br />
Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev<br />
1. gw0.potato-people.com             0.0%    11    0.6   1.0   0.5   1.4   0.4<br />
2. gi0-3.br1.heron.bytel.net.uk      0.0%    11   98.8  13.9   0.5  98.8  31.1<br />
3. vlan1.br0.heron.bytel.net.uk     50.0%    11    2.3   1.9   1.0   2.6   0.5<br />
4. collector.linx.net               50.0%    10   19.6  18.4  17.3  20.0   1.0<br />
5. pink.linx.net                    50.0%    10   18.5  18.1  17.2  19.3   0.7</code></p>
<p><strong>Measuring Routers</strong></p>
<p>Unfortuantely what I more often than not see, is something like this:</p>
<p><code>My traceroute  [v0.72]<br />
mashed (0.0.0.0)                                       Mon Sep  8 10:14:13 2008<br />
Keys:  Help   Display mode   Restart statistics   Order of fields   quit<br />
Packets               Pings<br />
Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev<br />
1. gw0.potato-people.com             0.0%    11    0.6   1.0   0.5   1.4   0.4<br />
2. gi0-3.br1.heron.bytel.net.uk      9.0%    11   98.8  13.9   0.5  98.8  31.1<br />
3. vlan1.br0.heron.bytel.net.uk      3.0%    11    2.3   1.9   1.0   2.6   0.5<br />
4. collector.linx.net                0.0%    10   19.6  18.4  17.3  20.0   1.0<br />
5. pink.linx.net                     0.0%    10   18.5  18.1  17.2  19.3   0.7</code></p>
<p>This example shows lost packets at hops 2 and 3 but &#8211; and here&#8217;s the important part &#8211; not beyond hops 2 or 3. In this case, the MTR is measuring the CPU load of the router at those hops, not the packet loss on the connection. Check hop 5 &#8211; no packets have been dropped at the actual destination.</p>
<p>You see, nearly all routers, much like computers, have a list of priorities of things they have to deal with. Forwarding packets between ports is the highest priority. Things such as routing protocols come second, the management interface (whether it be by web, telnet or serial console) come second. Responding to packets sent directly to the router comes long after everything else.</p>
<p>So, if a router is paticularly busy and has a lot of packets to forward, it&#8217;ll drop the lowest priority things to get a few more CPU cycles. This means the first thing to get dropped from it&#8217;s list of things to do, when under stress, is responding to packets sent directly to the router.</p>
<p><strong>ICMP is lossy</strong></p>
<p>Ping, traceroute and MTR all use the ICMP protocol, and ICMP is very, very lossy. That means that packets will and should be expected to drop. In the example below, we can see a level of packet loss across all hops. However, check the &#8220;Snt&#8221; column &#8211; this MTR has been running for some time, and sent over 1400 packets to each hop. This MTR measures nothing more than the lossy nature of ICMP over a long time period. Pure background noise.</p>
<p><code>My traceroute  [v0.72]<br />
mashed (0.0.0.0)                                       Mon Sep  8 10:38:03 2008<br />
Keys:  Help   Display mode   Restart statistics   Order of fields   quit<br />
Packets               Pings<br />
Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev<br />
1. gw0.potato-people.com             0.8%  1439    2.6   1.0   0.5  12.0   1.1<br />
2. gi0-3.br1.heron.bytel.net.uk      1.4%  1439    1.1   4.3   0.3 217.2  21.5<br />
3. vlan1.br0.heron.bytel.net.uk      1.3%  1438    1.6   6.0   0.6 208.5  24.2<br />
4. collector.linx.net                1.3%  1438   18.3  27.5  16.2 395.3  36.0<br />
5. pink.linx.net                     1.5%  1438   18.9  18.3  16.2  27.9   1.0</code></p>
<p><strong>Turning off ICMP</strong></p>
<p>It&#8217;s for these very reasons that an increasing number of ISPs are disabling the ability to do traceroutes across their network. It used to be that this was done for security &#8211; it&#8217;s much harder to hack into someone&#8217;s network if you do not know the addresses of any of the routers or switches &#8211; but now it&#8217;s done for a combination of security and to stop calls from customers who don&#8217;t know how to interpret the results of a tool that, for example, some VoIP company said they should run.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.potato-people.com/blog/2008/09/pet-hate-mtr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZyXEL 660R Half-Bridge Mode</title>
		<link>http://www.potato-people.com/blog/2008/04/zyxel-660r-half-bridge-mode/</link>
		<comments>http://www.potato-people.com/blog/2008/04/zyxel-660r-half-bridge-mode/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 11:21:07 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[ZyXEL]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[half-bridge]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[pppoa]]></category>
		<category><![CDATA[public ip]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://www.potato-people.com/blog/?p=5</guid>
		<description><![CDATA[A common problem with ADSL in the UK is that most connections are still using PPPoA. This means that if you want a computer to have a public IP address on one of these connections, you need to either have a block of IP addresses routed by your ISP to your router (at extra) cost, [...]]]></description>
			<content:encoded><![CDATA[<p>A common problem with ADSL in the UK is that most connections are still using PPPoA. This means that if you want a computer to have a public IP address on one of these connections, you need to either have a block of IP addresses routed by your ISP to your router (at extra) cost, or you use a USB modem. There’s no real option for those folks that want to connect something like a SonicWall or any other firewall device directly to the line.</p>
<p><span id="more-5"></span></p>
<p>However, there is a poorly documented hidden “half-bridge” mode in the ZyXEL 660R routers. These cheap little single-port routers have the ability to push the public IP address and all it’s traffic onto a single device connected to the LAN port.</p>
<p>To do this, set the router up as normal with the username and password for your connection, then logout from the web interface. You’ll now need to telnet to the device, and enter the following:</p>
<p><code>poe bridge switch on<br />
ip dhcp enif0 server lease 120<br />
sys save</code></p>
<p>After this, reboot the router. Once it boots up and logs into your ISP, you should find that it gives you a single IP address on DHCP and that address will be an external fully public IP address.</p>
<p><strong>Update:</strong> <a href="http://intotheunknown.co.uk/2008/06/struggling-with-sip-these-resources.html" target="_blank">IntoTheUnknown</a> uses this to build a SIP VoIP system, which of course can have problems when passing through any firewall or NAT conversion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.potato-people.com/blog/2008/04/zyxel-660r-half-bridge-mode/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
