<?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>Perpetually Bored &#187; Networking</title>
	<atom:link href="http://perpetuallybored.com/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://perpetuallybored.com</link>
	<description>The incessant rants of an anhedonic person.</description>
	<lastBuildDate>Fri, 10 Sep 2010 03:03:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Singapore rolls out FTTH</title>
		<link>http://perpetuallybored.com/2010/04/17/singapore-rolls-out-ftth/</link>
		<comments>http://perpetuallybored.com/2010/04/17/singapore-rolls-out-ftth/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 00:47:47 +0000</pubDate>
		<dc:creator>mythokia</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Singapore]]></category>

		<guid isPermaLink="false">http://perpetuallybored.com/2010/04/17/singapore-rolls-out-ftth/</guid>
		<description><![CDATA[It looks like Singapore is beginning to roll out Fibre-to-the-Home (FTTH) networks, upgrading the current Hybrid-Fibre-Coaxial (HFC) network, which currently constitutes a large part of Singapore’s broadband delivery medium. In FTTH networks, fibre cables are run all the way down &#8230; <a href="http://perpetuallybored.com/2010/04/17/singapore-rolls-out-ftth/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It looks like Singapore is beginning to roll out Fibre-to-the-Home (FTTH) networks, upgrading the current Hybrid-Fibre-Coaxial (HFC) network, which currently constitutes a large part of Singapore’s broadband delivery medium.</p>
<p>In FTTH networks, fibre cables are run all the way down from the service provider and terminated directly into the consumer’s home. In HFC networks, although the backhaul comprises of fibre cables, they’re terminated further away from homes, and coaxial cables take over this last mile instead.</p>
<p>I first noticed the new cable installations nearly a week ago. Closer inspection of the markings revealed that they were indeed fibre cables, and the huge rolls of them lying around on the lobby suggested large scale deployment. Conversing with the technicians who were responsible for them confirmed that.</p>
<p align="center"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="FTTH-1" border="0" alt="FTTH-1" src="http://perpetuallybored.com/wp-content/uploads/2010/04/FTTH1_thumb.jpg" width="425" height="322" /> </p>
<p>A few days later, these units begin to appear on the landing of every pair of home, which I can only surmise to be FTTH termination equipment. </p>
<p><a href="http://perpetuallybored.com/wp-content/uploads/2010/04/FTTH2.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="FTTH-2" border="0" alt="FTTH-2" src="http://perpetuallybored.com/wp-content/uploads/2010/04/FTTH2_thumb.jpg" width="425" height="322" /></a></p>
<p>Although these cables do not seem to be carrying any form of data at this point in time, they are perhaps the most important groundwork ever done for Singapore’s next generation broadband network. Last mile equipment is usually the hardest and most expensive problem to tackle, but it seems to me that we have solved that already.</p>
]]></content:encoded>
			<wfw:commentRss>http://perpetuallybored.com/2010/04/17/singapore-rolls-out-ftth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>High performance and affordable router with m0n0wall and Atom</title>
		<link>http://perpetuallybored.com/2010/02/12/high-performance-and-affordable-router-with-m0n0wall-and-atom/</link>
		<comments>http://perpetuallybored.com/2010/02/12/high-performance-and-affordable-router-with-m0n0wall-and-atom/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 21:29:36 +0000</pubDate>
		<dc:creator>mythokia</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://perpetuallybored.com/2010/02/12/high-performance-and-affordable-router-with-m0n0wall-and-atom/</guid>
		<description><![CDATA[Intel Atom is a powerful little platform for it’s cost.&#160; It works well as an office productivity or Internet access desktop, as a Home Theatre PC (HTPC) for watching and recording videos, storage server, and a even a small network &#8230; <a href="http://perpetuallybored.com/2010/02/12/high-performance-and-affordable-router-with-m0n0wall-and-atom/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Intel Atom is a powerful little platform for it’s cost.&#160; It works well as an office productivity or Internet access desktop, as a Home Theatre PC (HTPC) for watching and recording videos, storage server, and a even a <a href="http://www.markwilson.co.uk/blog/2009/11/building-a-low-power-server-for-24x7-infrastructure-at-home-part-2-assembly-and-initial-configuration.htm">small network AD server</a>. Another area it can excel is as a home/SME router.</p>
<p>I’ve ceased using commercial routers aimed targeted at the home segment for a number of years now. What made those routers unfeasible was the growing bandwidth available to home user and the popularity of peer-to-peer, meshed, file sharing – where a large number of connections would be made simultaneously to grab various parts of the same file from different users. The earlier home routers with their low memory and processing capability couldn’t handle the load, and enterprise routers were, and still are, out of the reach of my financial capability.</p>
<p>That was when I turned to building my own. I started refurbishing an old computer with additional network cards. The system with I replaced today ran on an Intel Pentium III 450 MHz processor with 256 MB of ram, and had been for a number of years.</p>
<p>At the simplest level, any computer with more than one Ethernet adapter can be used as a router. On, Linux, routing can be done through <code>iptables</code>, on Windows, either through <code>Internet Connection Sharing</code> or <code>Routing and Remote Access</code> on consumer and server variants of the operation system respectively. However, there are Linux-based distributions which are designed with the sole purpose of turning a PC into a dedicated router which can rival commercial offerings in terms of performance and features. One such example and the one that I’m using is <a href="http://m0n0wall.ch">m0n0wall</a>.</p>
<p>Lately, my old setup has been giving me issues, which I attributed to a failing power supply. Replacing it wasn’t the best of idea since the system was old, really old. This was the opportunity to get rid of and replace the system. A new one wouldn’t cost very much, and the much lower power draw of the Atom was welcomed too. It was the perfect system for the task.</p>
<p>I did some shopping, and although some manufacturers, such as Gigabyte, do offer Atom boards with dual GbE adapters, none of those models made it to the local market. In fact, they’re relatively few Atom models here in Singapore. I had to settle for the Asus AT3GC-I, which sports a dual core Intel Atom 330 processor with a single GbE port, resulting in me having to purchase an additional network card, filling up the only PCI expansion slot available. The 2 GB of RAM that I bought was a huge overkill, but the stores were only carrying 1 GB and 2 GB DDR2 memory, and the cost between the two was a mere $2. Add in a mini-ITX case, and I was almost ready to go.</p>
<p>Since m0n0wall takes up only a mere 10 MB of space, I decided to skip the hard disk. Instead, I opted for a 4GB USB thumb drive as the primary storage medium. It was the lowest capacity one I could find.</p>
<p>Assembly was a breeze, and was the easiest one I’ve done to date. The motherboard fit right into the case, and since the only peripheral I have is one expansion card, it was all very straightforward. No issues with lengthy graphics card that wouldn’t fit into the casing, nor a billion front panel chassis connectors to deal with.</p>
<p>For m0n0wall installation, I downloaded <code>physdiskwrite 0.5.2</code> and the <code>generic-pc-1.3.img</code> from <a title="http://m0n0.ch/wall/downloads.php" href="http://m0n0.ch/wall/downloads.php">http://m0n0.ch/wall/downloads.php</a>. Opening the command prompt on my Windows 7 PC with Administrator rights, I inserted my newly bought thumb drive in, formatted it, and began writing the m0n0wall image to it by executing the following.</p>
<p><code>physdiskwrite –u generic-pc-1.3.img</code></p>
<p>I was displayed a list of the drives available and selected my thumb drive as the destination. One-sixth of a minute later or under, it was done. I plugged the thumb drive into my Atom system, did a few changes in the BIOS to set it as the default boot medium, and booted. The picture below shows the initial boot.</p>
<p><a href="http://perpetuallybored.com/wp-content/uploads/2010/02/atom_boot.jpg"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="atom_boot" border="0" alt="atom_boot" src="http://perpetuallybored.com/wp-content/uploads/2010/02/atom_boot_thumb.jpg" width="500" height="297" /></a> </p>
<p>I spent the next half hour or so copying over my configuration from my previous set-up, and the hour after that rearranging some furniture and re-doing cabling. The beauty of m0n0wall is that it can be used right out of the box if you have no need for more advanced features such as traffic shaping. There really is little configuration.</p>
<p>I still maintain that the system is an overkill. Under load, memory and CPU usage hardly crosses 5%. However, a lesser powered system, such as one of <a href="http://www.soekris.com/">Soekris Engineering’s</a> offerings, would have cost just as much or even more. I’m extremely happy with my new setup. Before I end the article, here’s another pictures, from the rear, where you can clearly see the 4GB thumb drive which would be permanently plugged in as the boot medium.</p>
<p><a href="http://perpetuallybored.com/wp-content/uploads/2010/02/atom_final.jpg"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="atom_final" border="0" alt="atom_final" src="http://perpetuallybored.com/wp-content/uploads/2010/02/atom_final_thumb.jpg" width="500" height="441" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://perpetuallybored.com/2010/02/12/high-performance-and-affordable-router-with-m0n0wall-and-atom/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>File transfer rate: What&#039;s going on here?</title>
		<link>http://perpetuallybored.com/2008/06/09/file-transfer-rate-whats-going-on-here/</link>
		<comments>http://perpetuallybored.com/2008/06/09/file-transfer-rate-whats-going-on-here/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 05:29:51 +0000</pubDate>
		<dc:creator>mythokia</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mythokia.net/?p=207</guid>
		<description><![CDATA[I&#8217;m completely puzzled by this. Transferring a file across the network (GigE), a file that contains real data moves much slower (it&#8217;s almost a 10 MB/s difference!) than a test file created by fsutil. As far as I know, and &#8230; <a href="http://perpetuallybored.com/2008/06/09/file-transfer-rate-whats-going-on-here/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m completely puzzled by this. Transferring a file across the network (GigE), a file that contains real data moves much slower (it&#8217;s almost a 10 MB/s difference!) than a test file created by <code>fsutil</code>. As far as I know, and I maybe wrong here, the content of a file shouldn&#8217;t matter when transferring across the network as the protocols involved (TCP and Samba) doesn&#8217;t do any compression on its own. Explanations anyone?</p>
<p><div class="wp-caption aligncenter" style="width: 426px"><a href="http://www.flickr.com/photos/mythokia/2990965255/"><img alt="Transfer rate with a real file, in this case, an image of the Windows Vista WAIK" src="http://farm4.static.flickr.com/3236/2990965255_0ea53f90f4_o.png" title="Real file speed" width="416" height="244" /></a><p class="wp-caption-text">Transfer rate with a real file, in this case, an image of the Windows Vista WAIK</p></div><br />
<div class="wp-caption aligncenter" style="width: 426px"><a href="http://www.flickr.com/photos/mythokia/2991428628/"><img alt="Test file created with fsutil" src="http://farm4.static.flickr.com/3018/2990965311_915908c6eb_o.png" title="Test file speed" width="416" height="244" /></a><p class="wp-caption-text">Test file created with fsutil</p></div><br />
Transfer rate with a test file of the exact same size created by fsutil</p>
]]></content:encoded>
			<wfw:commentRss>http://perpetuallybored.com/2008/06/09/file-transfer-rate-whats-going-on-here/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lost in transition: ICMP Redirects</title>
		<link>http://perpetuallybored.com/2008/05/12/lost-in-transition-icmp-redirects/</link>
		<comments>http://perpetuallybored.com/2008/05/12/lost-in-transition-icmp-redirects/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:54:09 +0000</pubDate>
		<dc:creator>mythokia</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://blog.mythokia.net/?p=196</guid>
		<description><![CDATA[I configured and installed Ubuntu Server 8.04 with the typical LAMP setup with the intend of mirroring this blog locally so I could test out a few changes without affecting the live copy and placed the server virtualized, behind the &#8230; <a href="http://perpetuallybored.com/2008/05/12/lost-in-transition-icmp-redirects/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I configured and installed Ubuntu Server 8.04 with the typical LAMP setup with the intend of mirroring this blog locally so I could test out a few changes without affecting the live copy and placed the server virtualized, behind the Vyatta router.</p>
<p align="center"><a href="http://www.flickr.com/photos/mythokia/3031053010/" title="icmp_network_diag by Mythokia, on Flickr"><img src="http://farm4.static.flickr.com/3186/3031053010_6f6a41c99b_o.png" width="320" height="267" alt="icmp_network_diag" /></a></p>
<p>Back on my desktop, I was greeted with a previously unseen error as I navigated to the site.</p>
<p align="center"><a href="http://www.flickr.com/photos/mythokia/3031053046/" title="interrupted by Mythokia, on Flickr"><img src="http://farm4.static.flickr.com/3212/3031053046_c87bd17e48_o.png" width="500" height="181" alt="interrupted" /></a></p>
<p>I verified that Apache was running with a <code>ps aux | grep apache</code>, and indeed it was. I checked that I was able to access the page from machine on the same subnet. At this point, I suspected it was an issue with the Vyatta router, although its rather puzzling since all traffic initiated from the <code>192.168.5.0</code> network, internet bound or otherwise seemed to be working fine.</p>
<p align="center"><a href="http://www.flickr.com/photos/mythokia/3030216121/" title="ubuntu_tcpdump by Mythokia, on Flickr"><img src="http://farm4.static.flickr.com/3156/3030216121_f40a988ec3_o.png" width="500" height="278" alt="ubuntu_tcpdump" /></a></p>
<p>Carrying out tcpdump on the Ubuntu server, it seems that the first SYN packet from <code>192.168.1.50</code> was received, and judging from the subsequent similar (they all have same sequence numbers) SYN-ACK packets that were sent out from the server, it was clear that server never heard from <code>192.168.1.50</code> any further. One of the following could&#8217;ve happened:</p>
<ol>
<li>The SYN-ACK bound for <code>192.168.1.50</code> never arrived at its destination.</li>
<li>The SYN-ACK packets arrived at <code>192.168.1.50</code>, but the ACK respond required to complete the handshake never made it back to the server.</li>
</ol>
<p>Carrying out a tcpdump dump similarly on eth0 of Vyatta, I was able to verify that the packets were following both ways, which took the fault of the router of the question. All was well with it.</p>
<p>I don&#8217;t know why I didn&#8217;t look at this earlier, but when you install a sparkling new piece of equipment and it something doesn&#8217;t work, you would automatically lay blame to that equipment instead of examining the complete picture closely, exactly like the old rhetoric &#8220;it used to work until I &lt;insert something that you recently just did here&gt;&#8221;. I ran Wireshark, which is a GUI version of a packet capturing tool much like tcpdump on my desktop itself. What showed next was the reason behind all my problems.</p>
<p>Wireshark showed that my IPCop router was sending me an <a href="http://www.networksorcery.com/enp/protocol/icmp/msg5.htm">ICMP redirect</a> for every packet I sent out destined for <code>192.168.5.3</code>. It was then that it occurred to me that since the Vyatta router had an interface in the same network as my computer, IPCop was telling me that that shorter route to the <code>192.168.5.0</code> network was to send it directly to the gateway at <code>192.168.1.150</code> instead of sending it to the default gateway specified on the desktop of <code>192.168.1.1</code> aka IPCop and then have it rerouted.</p>
<p>It turns out that on Windows if the Windows Firewall is turned on, ICMP redirects are dropped by default. As a routing mechanism, ICMP redirects have no security built in and hence, are vulnerable to IP spoofing attacks. So although an ICMP redirect was sent to my computer, it was silently dropped and the message never got through.</p>
<p>To get around this problem, the firewall could simply be enabled to accept ICMP redirects. Despite the security issues with it, it is rather safe on a small LAN where every computer comes under my control and ICMP requests are not forwarded by the exterior facing router into the network. Alternatively, an entry could be added in the Windows routing table.</p>
<blockquote><pre>route -p add 192.168.5.0 mask 255.255.255.0 192.168.1.150</pre>
</blockquote>
<p>It turns out to be a simple and small issue, but it took the better part of an afternoon to solve. Its all about the learning experience I guess, that&#8217;s what the network was setup for in the first place.</p>
]]></content:encoded>
			<wfw:commentRss>http://perpetuallybored.com/2008/05/12/lost-in-transition-icmp-redirects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up the virtual network</title>
		<link>http://perpetuallybored.com/2008/05/09/setting-up-the-virtual-network/</link>
		<comments>http://perpetuallybored.com/2008/05/09/setting-up-the-virtual-network/#comments</comments>
		<pubDate>Thu, 08 May 2008 22:13:51 +0000</pubDate>
		<dc:creator>mythokia</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Goals]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://blog.mythokia.net/?p=194</guid>
		<description><![CDATA[Virtualization is a cool new buzzword, but it goes beyond that, it is actually going to help me solve a few problems. Before I go any further, here&#8217;s the network topology of my setup. I&#8217;ve a few objectives I wish &#8230; <a href="http://perpetuallybored.com/2008/05/09/setting-up-the-virtual-network/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Virtualization is a cool new buzzword, but it goes beyond that, it is actually going to help me solve a few problems. Before I go any further, here&#8217;s the network topology of my setup.</p>
<p style="text-align:center;"><a href="http://www.flickr.com/photos/mythokia/3030220711/" title="Network diagram by Mythokia, on Flickr"><img src="http://farm4.static.flickr.com/3237/3030220711_887a5c8bb0_o.png" width="262" height="307" alt="Network diagram" /></a></p>
<p>I&#8217;ve a few objectives I wish to attain with this setup. Mainly,</p>
<ul>
<li>Learning Windows administration in depth.</li>
<li>Testing Vyatta and hope to eventually use it as my primary router.</li>
<li>Learning to implement more complex network setups with various routing protocols. I&#8217;ll eventually add more routers to my existing virtualized topology. Now I&#8217;m just getting the basics off the ground.</li>
<li>Learning some basic Linux administration. I&#8217;m adding Ubuntu 8.04 to the pile of virtualized OS soon, I currently have it installed on my desktop via Wubi.</li>
<li>Learning and deploying IPv6 as a minor objective after all the above has been satisfied.</li>
</ul>
<p>My main home router is an old P3 450 MHz machine that&#8217;s finding new purpose in life and now runs <a href="http://www.ipcop.org/">IPCop</a>. The router for my virtualized network runs <a href="http://www.vyatta.com/">Vyatta</a>.</p>
<p>Taking advantage of Microsoft&#8217;s <a href="http://www.microsoft.com/heroeshappenhere/learn-more/downloads/default.mspx">trial program for their server and developer products</a>, I downloaded a copy of Windows Server 2008. The 60 day evaluation period can be extended to 240 days, and doing so is even blessed by Microsoft. One reinstallation every 240 days sound fair enough for me. This time I really really am going sit down and teach myself Active Directory. Yes, really.</p>
<p>In order for the newly added network to be recognized, an entry in IPCop&#8217;s routing table needed to be added. Being a SOHO router distribution, it doesn&#8217;t support any routing protocols so a static route had to be manually added. As a Linux newbie, the whole process took way longer because of a silly mistake that I made, missing out the gateway portion of the <a href="http://linux.die.net/man/8/route">route</a> add command. From my past experiences working on Cisco routers, adding a static path required you only to specify the destination network address, mask and either the next hop router address or outgoing interface. I hastily entered the same, specifying the outgoing interface without realizing that if a gateway is between the two networks, I&#8217;ve to use the next hop address syntax instead of just specifying the outgoing interface.</p>
<p>Correct:</p>
<blockquote><p>route add -net 192.168.5.0 netmask 255.255.255.0 gw 192.168.1.150</p></blockquote>
<p>Wrong:</p>
<blockquote><p>route add -net 192.168.5.0 netmask 255.255.255.0 eth0</p></blockquote>
<p>This resulted in a scenario of traffic being able to reach from <code>192.168.1.1</code> to <em>192.168.5.1</em>, but not to the rest of the <code>192.168.5.0</code> network, which puzzled me greatly until I realized my folly.</p>
<p>Another silly was the result of cloning VMWare machines. The fact that cloned machines would have similar MAC addresses never crossed my mind, and that caused all kinds of havoc on its own. It was fixed by changing the MAC address in the machine configuration file (.vmx).</p>
<p>Aside from those issues, setting up the network was relatively easy. Vyatta took minimal configuration out of the box.</p>
<p>Setting up the interfaces:</p>
<blockquote><p>set interfaces ethernet eth0 address 192.168.1.150/24<br />
set interfaces ethernet eth1 address 192.168.5.1/24</p></blockquote>
<p>Default routing to allow internet access:</p>
<blockquote><p>set protocols static route 0.0.0.0/0 next-hop 192.168.1.1</p></blockquote>
<p>Enable the ssh service:</p>
<blockquote><p>set service ssh</p></blockquote>
<p>In Vyatta, changes are not committed immediately after typing in every command until you explicitly tell it to, so:</p>
<blockquote><p>commit</p></blockquote>
<p>Done for now, more updates on this small project of mine as they come along. Oh, and I&#8217;m proud of the network diagram I drew, it&#8217;s the cleanest and neatest one I&#8217;ve ever done. Previously they were hand drawn or MS Paint jobs, this one&#8217;s done in Powerpoint.</p>
]]></content:encoded>
			<wfw:commentRss>http://perpetuallybored.com/2008/05/09/setting-up-the-virtual-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
