<?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>Ian's blog &#187; iperf</title>
	<atom:link href="http://www.imacdonald.co.uk/tag/iperf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imacdonald.co.uk</link>
	<description>The Home of Ian Macdonald</description>
	<lastBuildDate>Mon, 31 May 2010 16:28:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Network Speeds</title>
		<link>http://www.imacdonald.co.uk/2009/01/04/network-speeds/</link>
		<comments>http://www.imacdonald.co.uk/2009/01/04/network-speeds/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 18:51:07 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[iperf]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pscp]]></category>
		<category><![CDATA[pscp slowness]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows XP]]></category>

		<guid isPermaLink="false">http://www.imacdonald.co.uk/?p=1035</guid>
		<description><![CDATA[Last night I needed to transfer a vmware image from a linux host to a windows laptop. I was surprised it took over an hour to do so considering it was on a wired network, so I decided to do some testing on my network. I have two ubuntu linux hosts which I will be [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I needed to transfer a vmware image from a linux host to a windows laptop. I was surprised it took over an hour to do so considering it was on a wired network, so I decided to do some testing on my network. </p>
<p>I have two ubuntu linux hosts which I will be calling linux1, linux2. I also have a mac laptop (apple1), a windows laptop (win1), plus a windows vm running on the mac (win1-vm). All have onboard gigabit network interface cards and are connect to a single 10/100 24 port switch in the basement. </p>
<p>So the first thing to do is benchmark the network and get a baseline<br />
linux1 to linux2<br />
<code><br />
linux1:$ iperf -t 60 -c linux2<br />
------------------------------------------------------------<br />
Client connecting to linux2, TCP port 5001<br />
TCP window size: 16.0 KByte (default)<br />
------------------------------------------------------------<br />
[  3] local 10.1.1.50 port 45045 connected with 10.1.1.136 port 5001<br />
[  3]  0.0-60.1 sec    674 MBytes  94.1 Mbits/sec<br />
<code></p>
<p>and apple1 to linux2<br />
<code><br />
apple1:$ iperf -t 60 -c linux2<br />
------------------------------------------------------------<br />
Client connecting to linux2, TCP port 5001<br />
TCP window size:   129 KByte (default)<br />
------------------------------------------------------------<br />
[  3] local 10.1.1.125 port 64143 connected with 1.1.1.136 port 5001<br />
[ ID] Interval       Transfer     Bandwidth<br />
[  3]  0.0-60.0 sec    664 MBytes  92.9 Mbits/sec<br />
</code></p>
<p>Here is the output from the endpoint linux2<br />
<code><br />
linux2:$ iperf -s<br />
------------------------------------------------------------<br />
Server listening on TCP port 5001<br />
TCP window size: 85.3 KByte (default)<br />
------------------------------------------------------------<br />
[  4] local 10.1.1.136 port 5001 connected with 10.1.1.50 port 45045<br />
[  4]  0.0-60.2 sec    674 MBytes  93.8 Mbits/sec<br />
[  5] local 10.1.1.136 port 5001 connected with 10.1.1.125 port 64143<br />
[  5]  0.0-60.0 sec    664 MBytes  92.9 Mbits/sec<br />
</code></p>
<p>This gives us a baseline of  92.9 Megabits to 93.8 Megabits per second, which look pretty good for a 10/100 Megabit per second switch.</p>
<p>Now to do some real world testing with scp<br />
Transfer from linux2 to apple1<br />
<code><br />
apple1:$ scp user@linux2:/usr/local/vm/test.vmdk .<br />
user@linux2's password:<br />
test.vmdk                                       100% 3549MB  10.5MB/s   05:39<br />
<code></p>
<p>Transfer from linux2 to linux1<br />
<code><br />
linux1:$ scp user@linux2:/usr/local/vm/test.vmdk .<br />
user@linux2's password:<br />
test.vmdk                                       100% 3549MB  11.2MB/s   05:18<br />
</code></p>
<p>so we are getting 84 and 89.6 Megbits/s which are acceptable apple1's lower number might be related to having vmware fusion running on the same machine.</p>
<p>Now we test the same situation I had last night of transferring a file form linux2 to a windows host. I am using pscp V0.60<br />
<code><br />
(win1-vm):\>pscp user@linux2:/usr/local/vm/test.vmdk .<br />
test@linux2's password:<br />
test.vmdk           | 176000 kB | 936.2 kB/s | ETA: 01:01:34 |   4%<br />
</code></p>
<p>That gives us 0.914 Megabytes/s or 7.31 Megabits per second which is a far cry from 93.8 Megabits recorded by iperf</p>
<p>Putty also has a beta snapshot Version 2009-01-04:r8377 so I tried that<br />
<code><br />
(win1-vm):>\pscp-b user@linux2:/usr/local/vm/test.vmdk .<br />
user@linux2's password:<br />
test.vmdk           | 3634240 kB | 6975.5 kB/s | ETA: 00:00:00 | 100%<br />
</code></p>
<p>That gives us 6.812 Megabytes/s or 54.49 Megabits/s which is a lot better than V0.60 but still not as good as native scp to scp. The above pscp tests were on a windows vm on a mac so that might account for some of the slowness. The final test is for a transfer from linux2 to a dedicated Windows XP machine.</p>
<p><code><br />
test.vmdk           | 3634240 kB | 9665.5 kB/s | ETA: 00:00:00 | 100%<br />
</code><br />
Which resulted in a respectable 9.44 Megabytes/s or 75.5 Megabits/s, still not quite as good as linux scp to scp but bearable.</p>
<p>So to conclude pscp V0.60 has some serious issues and should be avoided.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacdonald.co.uk/2009/01/04/network-speeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

