<?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>MightyOhm &#187; ethernet</title>
	<atom:link href="http://mightyohm.com/blog/tag/ethernet/feed/" rel="self" type="application/rss+xml" />
	<link>http://mightyohm.com/blog</link>
	<description>Join the resistance.</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:07:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Measuring network performance with iperf</title>
		<link>http://mightyohm.com/blog/2010/08/measuring-network-performance-with-iperf/</link>
		<comments>http://mightyohm.com/blog/2010/08/measuring-network-performance-with-iperf/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 16:41:15 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[iperf]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Wifi]]></category>

		<guid isPermaLink="false">http://mightyohm.com/blog/?p=3016</guid>
		<description><![CDATA[My new place in Austin came with a huge perk for a tech geek like me &#8211; it came pre-wired for ethernet in every room.  (Well, technically not every room is wired.  The laundry room, bathrooms, and garage are not, an understandable oversight.) After installing a new D-Link Gigabit Ethernet Switch, I wanted to check [...]]]></description>
			<content:encoded><![CDATA[<p>My new place in Austin came with a huge perk for a tech geek like me &#8211; it came pre-wired for ethernet in every room.  (Well, technically not <em>every</em> room is wired.  The laundry room, bathrooms, and garage are not, an understandable oversight.)</p>
<p>After installing a new <a href="http://www.anrdoezrs.net/click-3238164-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16833127082%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Network%2B-%2BSwitches-_-D-Link-_-33127082&amp;cjsku=N82E16833127082" target="_top">D-Link Gigabit Ethernet Switch</a><img src="http://www.ftjcfx.com/image-3238164-10440897" border="0" alt="" width="1" height="1" />, I wanted to check the throughput to see if I was actually getting gigabit speeds &#8211; particularly because the house is wired with CAT-5e cable (and not the recommended <a href="http://en.wikipedia.org/wiki/Category_6_cable">CAT-6</a>).</p>
<p>There are many ways to measure network throughput.  In the past I have usually copied a file across the network and used a stopwatch to get a relative sense of speed.  However, due to file sharing protocol overhead I always got disappointing results and never knew maximum capability of my network.</p>
<p>This time, based on the advice of a more network-savvy friend, I decided to use a command-line tool called <a href="http://sourceforge.net/projects/iperf/">iperf</a>.</p>
<p>iperf is a command-line tool to measure network performance.  It is very powerful, but also easy to use for simple tests.  For a more complete overview of what iperf is and what it can be used for, check out <a href="http://openmaniak.com/iperf.php">this tutorial</a> or <a href="http://en.wikipedia.org/wiki/Iperf">the iperf page on Wikipedia</a>.  iperf has a lot of options, and I won&#8217;t cover the majority of them here.  For more usage information, consult the <a href="http://manpages.ubuntu.com/manpages/lucid/en/man1/iperf.1.html">iperf manual</a>.</p>
<p>If you run Debian or Ubuntu (Linux), iperf can be installed by executing</p>
<pre><strong>sudo apt-get install iperf</strong></pre>
<p>I did these tests with OS X on the Mac since both of my Macs have gigabit ethernet ports and my older PCs don&#8217;t.  A package for iperf is conveniently available from <a href="http://www.macports.org/">Macports</a>.  It can be installed via the graphical package manager <a href="http://porticus.alittledrop.com/">Porticus</a> or opening a Terminal window and typing</p>
<pre><strong>sudo port install iperf</strong></pre>
<p>In my case, all I wanted was a quick test of TCP/IP network performance.  This is easy to do, but it requires two computers, a client and a server, both connected to the network under test.  Ideally, there should be no other network traffic during the test, as this will affect the results.</p>
<p>On the first computer, launch the iperf server by executing</p>
<pre><strong>iperf -s</strong></pre>
<p>You should see something like this:</p>
<pre>------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------</pre>
<p>On the 2nd computer (the client), open a Terminal window and run</p>
<pre><strong>iperf -c </strong>&lt;IP address or hostname of server&gt;<strong> -i 1</strong></pre>
<p>Within a few seconds, you should start to see reports coming in on both the client and server terminal windows:</p>
<pre>------------------------------------------------------------
Client connecting to mini.home, TCP port 5001
TCP window size:   129 KByte (default)
------------------------------------------------------------
[  3] local 192.168.24.135 port 65142 connected with 192.168.24.77 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec    110 MBytes    924 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  1.0- 2.0 sec    101 MBytes    850 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  2.0- 3.0 sec    109 MBytes    914 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  3.0- 4.0 sec    100 MBytes    841 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  4.0- 5.0 sec    111 MBytes    927 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  5.0- 6.0 sec    102 MBytes    853 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  6.0- 7.0 sec    110 MBytes    923 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  7.0- 8.0 sec    102 MBytes    858 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  8.0- 9.0 sec  79.4 MBytes    666 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  9.0-10.0 sec  93.6 MBytes    785 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1018 MBytes    854 Mbits/sec</pre>
<p>The last report (for the interval 0.0-10.0 sec) is the average throughput for the entire test.  I&#8217;m more than happy with 854 Mbits (927 Mbits/sec peak!) given my fairly long runs of CAT-5e cable and other machines using the network.   Contrast this with my results over 802.11g wireless:</p>
<pre>[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  24.9 MBytes  20.9 Mbits/sec</pre>
<div>Ouch.</div>
]]></content:encoded>
			<wfw:commentRss>http://mightyohm.com/blog/2010/08/measuring-network-performance-with-iperf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Microchip Internet Radio Demonstration Board</title>
		<link>http://mightyohm.com/blog/2009/06/microchip-internet-radio-demonstration-board/</link>
		<comments>http://mightyohm.com/blog/2009/06/microchip-internet-radio-demonstration-board/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 14:22:21 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[Microchip]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[pic]]></category>
		<category><![CDATA[PIC18F67J60]]></category>
		<category><![CDATA[wifiradio]]></category>

		<guid isPermaLink="false">http://mightyohm.com/blog/?p=2024</guid>
		<description><![CDATA[Microchip Technology, makers of the PIC microcontroller, have released a demo board for the 8-bit PIC18F67J60 that is pre-programmed to function as an internet radio receiver. Anyone familiar with the blog knows that I have a special love for internet streaming radio, so it shouldn&#8217;t be a surprise that this demo board immediate caught my [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en536047"><img class="alignnone size-full wp-image-2026" title="Microchip Internet Radio Demonstration Board" src="http://mightyohm.com/blog/wp-content/uploads/2009/06/95837-1.png" alt="Microchip Internet Radio Demonstration Board" width="336" height="227" /></a></p>
<p><a href="http://www.microchip.com">Microchip Technology,</a> makers of the <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=74">PIC microcontroller</a>, have released a demo board for the 8-bit <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en026445">PIC18F67J60</a> that is pre-programmed to function as an internet radio receiver.</p>
<p>Anyone familiar with the blog knows that I have a special love for <a href="http://mightyohm.com/blog/2009/05/building-a-wifi-radio-part-10-building-the-box/">internet streaming radio</a>, so it shouldn&#8217;t be a surprise that this demo board immediate caught my eye.</p>
<p>The demo board&#8217;s features include ethernet, a dedicated MP3 decoder IC, pushbutton user interface, and a cool <a href="http://en.wikipedia.org/wiki/Oled">OLED</a> matrix display.  The PIC18F67J60 includes an ethernet <a href="http://en.wikipedia.org/wiki/PHY">PHY</a> on-chip,  which makes for a very simple way to add network connectivity to the microcontroller.  Sadly, unlike <a href="http://mightyohm.com/blog/2008/10/detailed-specs-for-the-asus-wl-520gu-uber-hacking-platform/">my usual hacking platform</a>, there isn&#8217;t any wireless on-board, but given the extremely small size and downloadable source code, I am really tempted to get one of these to play with.</p>
<p>Here&#8217;s a short video about the board by <a href="http://www.youtube.com/user/MicrochipTechnology">MicrochipTechnology</a> on YouTube:</p>
<p><object width="480" height="385" data="http://www.youtube.com/v/wwUViJNvRAI&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/wwUViJNvRAI&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /></object></p>
<p><a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en536047">Internet Radio Demonstration Board</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mightyohm.com/blog/2009/06/microchip-internet-radio-demonstration-board/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

