<?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>compbrain.net &#187; networking</title>
	<atom:link href="http://compbrain.net/archives/tag/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://compbrain.net</link>
	<description>A collection of occasional thoughts</description>
	<lastBuildDate>Fri, 09 Dec 2011 03:06:27 +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>DD-WRT and a Xbox 360 &#8211; DHCP Mishaps</title>
		<link>http://compbrain.net/archives/96</link>
		<comments>http://compbrain.net/archives/96#comments</comments>
		<pubDate>Thu, 28 Oct 2010 03:07:17 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[fixit]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=96</guid>
		<description><![CDATA[Sometime earlier this month I started noticing more frequent problems with my internet connection at home. Flash back to June of this year, our local Frys Electronics had a sale on the Netgear WNDR3700. I had &#8230; <a class="more-link" href="http://compbrain.net/archives/96">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="NOVO XBOX 360 by SobControllers, on Flickr" href="http://www.flickr.com/photos/sobcontrollers/4701407403/"><img class="aligncenter" src="http://farm2.static.flickr.com/1266/4701407403_bd296535f7.jpg" alt="NOVO XBOX 360" width="500" height="400" /></a></p>
<p>Sometime earlier this month I started noticing more frequent problems with my internet connection at home. Flash back to June of this year, our local Frys Electronics had a sale on the <a href="http://www.amazon.com/gp/product/B002HWRJY4?ie=UTF8&amp;tag=compbrainnet-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B002HWRJY4">Netgear WNDR3700</a>. I had done a quick search in store and found that the WNDR3700 was supported by DD-WRT, so I picked one up. I may have been a bit overexcited and flashed the device with the latest build without fully reading what could go wrong. Several users have <a href="http://www.dd-wrt.com/wiki/index.php/Netgear_WNDR3700#Known_Issues">reported</a> problems with wireless signal strength after flashing the unit. Reverting back to stock firmware doesn&#8217;t seem to fix the problem, and you end up stuck with a wireless router with terrible range. As time progressed, the WNDR3700 seemed to degrade even further, dropping long lived TCP connections, and hard-locking on occasion. In order to get reasonable 802.11b/g range, I was forced to use an old router as a dumb access point, as the WNDR3700&#8242;s signal barely reached 15ft away from the unit before clients dropped their connections.</p>
<p>Back to today: As a potential fix, I looked to the <a href="http://www.dd-wrt.com/site/support/router-database">DD-WRT router database</a> for advice on a replacement router. My requirements included gigabit Ethernet, dual-band (a/b/g/n) radios, and alternative firmware support. There are sadly few devices that meet this mix of features, but I settled on the <a href="http://www.amazon.com/gp/product/B003B48UQ8?ie=UTF8&amp;tag=compbrainnet-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B003B48UQ8">Linksys E3000</a>. Users were reporting fairly good wireless range, and reasonable stability. When the router arrived, I removed the WNDR-3700 and the old router providing 2.4Ghz connectivity. I was confident that this new device would fill the void left by the old and broken hardware. DD-WRT setup was a breeze, following instructions on the <a href="http://www.dd-wrt.com/wiki/index.php/Linksys_E3000">wiki</a>. Once the new router was up and broadcasting, old wireless devices associated and I was able to connect to the internet without issue. Everything had gone well with the upgrade, or so I thought.</p>
<p>Early in the honeymoon period with the WNDR-3700, I was using OpenWrt. I was unable to get a UPnP daemon running that my Xbox 360 approved of. Often Xbox Live connections failed to work properly as the required ports were not opened on the routers firewall. Remembering those problems, I decided to test the Xbox 360 with the new E3000 to make sure there would be no unforeseen problems in the future. I powered on the Xbox, and turned on our projector. By the time the projector warmed up, the Xbox had already booted and was waiting at the dashboard. Sadly, the Xbox reported that I was not automatically signed in to Xbox live. This situation was tell-tale of UPnP problems with the old router, so I checked the UPnP administration page on the E3000, but no connections to the Xbox were opened.</p>
<p>I attempted a connection to Xbox Live manually, but the Xbox threw an error, recommending I run its network diagnostic wizard. The wizard blinked and chirped for a while, then decided that the console could not acquire an IP address. Strange, I thought, as numerous other devices on our home network were able to connect without issue, and get fresh DHCP leases. Looking at the DD-WRT status page, I could see that the Xbox&#8217;s MAC Address had a recently requested DHCP reservation. I initially thought it was a transient error, so I gave the Xbox another shot. It once again came back with the &#8216;could not acquire an IP address&#8217; error. I tried a couple more things &#8212; setting a DHCP hostname, entering a new MAC Address, rebooting the router and Xbox, and even switching Ethernet cables. I eventually assigned the Xbox a static IP, and things started looking up; the Xbox could now connect to the Internet, but complained that the firewall settings were awry. This change in luck lead me to focus on  DHCP as the source of my problem.</p>
<p>I finally decided to fall back on the Internet for advice. After a bit of poking around, I found this helpful <a href="https://secure.dd-wrt.com/phpBB2/viewtopic.php?t=65913&amp;sid=08c11ef69be80d2a96aef6c9611d7f8a">DD-WRT forum post</a>.</p>
<blockquote><p>Tim.Lad: Check the DHCP lease times are not set to 0 or Blank the 360 will not take an ip address if the lease time is 0</p></blockquote>
<p>Jumping back to the DD-WRT administration page, sure enough, my DHCP lease time was set to 0. I changed it to 5, applied my changes, and ran the Xbox connection test once more. Everything worked perfectly.<br />
<a href="http://compbrain.net/wp-content/uploads/2010/10/Screen-shot-2010-10-27-at-20.50.22-.png"><img src="http://compbrain.net/wp-content/uploads/2010/10/Screen-shot-2010-10-27-at-20.50.22-.png" alt="" title="DD-WRT DHCP Settings" width="527" height="184" class="aligncenter size-full wp-image-120" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/96/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Home Theatre Device Control</title>
		<link>http://compbrain.net/archives/92</link>
		<comments>http://compbrain.net/archives/92#comments</comments>
		<pubDate>Tue, 26 Oct 2010 00:43:04 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=92</guid>
		<description><![CDATA[Home theatre devices do not like to play nice together. They each use separate protocols and methods for command and control, and finding documentation or sample code on how they work is often difficult. I have &#8230; <a class="more-link" href="http://compbrain.net/archives/92">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Home theatre devices do not like to play nice together. They each use separate protocols and methods for command and control, and finding documentation or sample code on how they work is often difficult.</p>
<p>I have written two small libraries and put them up on <a href="http://github.com/">GitHub</a> for devices I have come in contact with:</p>
<ul>
<li><a href="http://github.com/compbrain/Viewsonic-Pro-8100-Control">The Viewsonic Pro 8100 Projector</a></li>
<li><a href="http://github.com/compbrain/Onkyo-TX-NR708-Control">The Onkyo TX-NR708 Receiver</a></li>
</ul>
<p>The code for the Viewsonic Pro 8100 will let you control every feature documented in the <a href="http://www.viewsonic.com/assets/005/5446.pdf">manual</a> over a serial connection. Reading data back from the projector is not yet fully functional, however.<br />
The code for the Onkyo Receiver should be compatible with other Onkyo devices using their ISCP protocol over Ethernet. With a bit of elbow grease, that library should also be useful for those wishing to control their Onkyo serial devices.<br />
If you find either library useful, please drop me a note &#8212; and patches are always welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/92/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPv6</title>
		<link>http://compbrain.net/archives/84</link>
		<comments>http://compbrain.net/archives/84#comments</comments>
		<pubDate>Thu, 11 Mar 2010 18:46:30 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=84</guid>
		<description><![CDATA[The past few weeks have been jam packed with academics and post-grad job hunting, so I&#8217;ve had little time to play around with technology. This week, in a few hours of time, I deployed IPv6 in &#8230; <a class="more-link" href="http://compbrain.net/archives/84">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The past few weeks have been jam packed with academics and post-grad job hunting, so I&#8217;ve had little time to play around with technology. This week, in a few hours of time, I deployed IPv6 in <a href="http://ipv6.crew.ccs.neu.edu/">my school research lab</a>, the <a href="http://ipv6.pitcam.ccs.neu.edu/">research lab webcam</a>, and my colocated server (<a href="http://ipv6.compbrain.net/">this blog</a>). My domain name, compbrain.net, now has both an A record and an AAAA record. I&#8217;ve noticed that machines with 6to4 IPv6 addresses tend to pick the IPv4 A record over the IPv6 alternative when both records are available.</p>
<p>Thanks to <a href="http://www.he.net">Hurricane Electric&#8217;s</a> <a href="http://tunnelbroker.net">IPv6 Tunnel Broker</a>, setting up these IPv6 networks was fairly painless. The only real exception here was in my dorm room, as our residential network filters inbound ICMP (inbound anything from the public net really) and prevents Hurricane Electric from allowing a tunnel to be created. To work around that, i&#8217;m using 6to4 on my <a href="http://www.dd-wrt.com/">DD-WRT</a> powered <a href="http://www.linksysbycisco.com/US/en/products/WRT310N">WRT310N</a>. The DD-WRT docs have a decent writeup on 6to4 available <a href="http://www.dd-wrt.com/wiki/index.php/IPv6#6to4_Setup">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/84/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

