Archive for the ‘Uncategorized’ Category

Ahh, that’s better!

Monday, August 30th, 2010

About a month ago, I complained about Time Warner’s anemic upstream bandwidth cap on home cable modem service.  (512k!  Oh, the humanity!)

Well, a phone call to Time Warner and $10 a month later, my cap has been increased to 2 Mb.  They call this their “Turbo” plan.  (Turbo == fast, right?)

The asymmetry of my speedtest result below is still laughable, but the improvement in upstream AND downstream performance is very noticeable.  Now my uploads to Flickr don’t completely saturate the connection and more than one person can actually use the network without hosing everyone else.

I still suspect that my upstream bandwidth puts a cap on the actual download performance I can achieve.  I haven’t been able to find a rule of thumb to calculate how much upstream bandwidth is required to support a 20+ Mb/s download.

Surely there is a relationship between data coming down the pipe and the acknowledgements (or other handshaking packets) that are sent back?

Ahh, that's better.

Measuring network performance with iperf

Monday, August 16th, 2010

My new place in Austin came with a huge perk for a tech geek like me – 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 the throughput to see if I was actually getting gigabit speeds – particularly because the house is wired with CAT-5e cable (and not the recommended CAT-6).

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.

This time, based on the advice of a more network-savvy friend, I decided to use a command-line tool called iperf.

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 this tutorial or the iperf page on Wikipedia.  iperf has a lot of options, and I won’t cover the majority of them here.  For more usage information, consult the iperf manual.

If you run Debian or Ubuntu (Linux), iperf can be installed by executing

sudo apt-get install iperf

I did these tests with OS X on the Mac since both of my Macs have gigabit ethernet ports and my older PCs don’t.  A package for iperf is conveniently available from Macports.  It can be installed via the graphical package manager Porticus or opening a Terminal window and typing

sudo port install iperf

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.

On the first computer, launch the iperf server by executing

iperf -s

You should see something like this:

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------

On the 2nd computer (the client), open a Terminal window and run

iperf -c <IP address or hostname of server> -i 1

Within a few seconds, you should start to see reports coming in on both the client and server terminal windows:

------------------------------------------------------------
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

The last report (for the interval 0.0-10.0 sec) is the average throughput for the entire test.  I’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:

[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  24.9 MBytes  20.9 Mbits/sec
Ouch.

Getting settled in Austin

Monday, August 2nd, 2010

Welcome to Texas

We made it!  Driving a moving truck almost 2000 miles across America was no picnic (it gets HOT in Arizona) but ~4 days of travel were relatively uneventful (only one flat tire!). Pretty much everything made it intact, including a few hundred pounds of lab benches and equipment.  (Note to self, next time get twice as many moving pads as seems necessary!)

My wife and I have been getting acquainted with our new city.  One of the interesting/unique things about Austin is the local trailer food scene.  One example, shown below, is odd duck, where you can purchase local, sustainable, gourmet wood fired food out of a trailer in South Austin.  Yum.

odd duck

The biggest downside to Austin I have found so far (aside from the lack of In-n-Out and Trader Joe’s) has been the pitiful upstream bandwidth that Time Warner provides with their Roadrunner internet service.   Check out these Speedtest results:

Time Warner Austin 8/2/10

Holy asymmetric internet access, Batman!

Compare those results with this test I ran before I packed up my computer in San Francisco:

Comcast San Francisco 6/30/10

Over 4 megabits!  If only I knew how lucky I was on Comcast when I could upload entire Flickr albums and HD videos in minutes!

Time Warner – 512K?  Really?

Ok, that’s enough for now – time to unpack the power supplies and oscilloscope.

PS. I almost forgot.  There are a few pictures of the move on Flickr.

MightyOhm is moving!

Wednesday, June 30th, 2010

Austin, here we come!

I apologize for the slow updates as of late, but I have some big news that I would like to share with you:

MightyOhm is moving to Austin, Texas!

While the move should be pretty much transparent to anyone reading the blog, there will be a lot going on behind the scenes in the next few weeks.  Most significantly, orders placed after July 9th will not be shipped before August 1st. The move will continue to take time away from the blog as I figure out how to move an electronics lab across three states.  Don’t expect too many posts in the next few weeks!

I am sad to be leaving San Francisco (and the many friends I have made in this wonderful city), but I’m eager to explore a new city, meet new friends, and make Austin my home.  Once I get settled, I would really like to meet some other electronics geeks in the area.  If anyone who reads the blog lives in or near Austin, please send me an e-mail or comment below to say hello!

That reminds me: Does anyone know where to find surplus electronic parts in Austin?  If you do, please post a comment here or add it to the wiki.  As soon as I unpack, I’ll be looking for local substitutes for Silicon Valley’s HSC and Weird Stuff.

That’s all for now.  Time to pack up my soldering iron and oscilloscope!

Printed Circuit Board Photo Collage Screensaver for OS X

Friday, December 4th, 2009
OS X Flickr PCB Pool Screensaver

PCB Photo Pool Screensaver

One of my favorite ways to keep tabs on the Printed Circuit Boards Group on Flickr is with OS X’s built-in ability to turn an RSS feed into a screen saver, as shown above.

To create this cool and constantly changing screen saver, open the “Desktop & Screen Saver” pane of the OS X System Preferences, as shown below.

Desktop & Screen Saver Preferences

Click the + button and select “Add RSS Feed…”  OS X will prompt you for an RSS feed URL to use for the screen saver.  Enter

http://api.flickr.com/services/feeds/groups_pool.gne?id=812901@N20&lang=en-us

and click OK.

Make sure that the Display Style is set to “Collage” mode (the center option) as shown above.  Click Test and you should see photos from the pool appear on your screen.  Now the next time your screen saver activates, you should see a collage of cool photos from the PCB photo pool.

That’s it!

PS. If anyone knows of an equivalent screen saver for Windows or Linux, please let me know in the comments.  I don’t want OS X users to have all the fun!


www.flickr.com
mightyohm More of mightyohm