Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Speed of Network Interface

The iperf package provides a convenient tool to measure the speed of local network connections. The package is installed on two local computers, yoga (36.8) and theano (36.9).

$ wajig install iperf

Run iperf as a server on the first host using -s:

@yoga$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

On the other host which will connect to that server run the iperf client using -c. The client here is connected through USB (direct or via a USB2 Hub) to an ethernet adaptor (connected at 100Mbit/s), obtaining 94Mbits/sec (repeated with similar results):

@theano$ iperf -c yogae
------------------------------------------------------------
Client connecting to yogae, TCP port 5001
TCP window size:  162 KByte (default)
------------------------------------------------------------
[  3] local 192.168.178.83 port 34532 connected with 192.168.178.91 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   112 MBytes  94.3 Mbits/sec

On the client, turn the wired connection off and Wifi on to achieve 160Mbits/sec (again repeated multiple times with similar results):

@theano$ iperf -c yogae
------------------------------------------------------------
Client connecting to yogae, TCP port 5001
TCP window size:  136 KByte (default)
------------------------------------------------------------
[  3] local 192.168.178.82 port 42206 connected with 192.168.178.91 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec   193 MBytes   161 Mbits/sec

On the server the following is reported:

[  4] local 192.168.178.91 port 5001 connected with 192.168.178.83 port 34532
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec   112 MBytes  93.9 Mbits/sec
[  4] local 192.168.178.91 port 5001 connected with 192.168.178.83 port 34638
[  4]  0.0-10.0 sec   112 MBytes  93.9 Mbits/sec
[  4] local 192.168.178.91 port 5001 connected with 192.168.178.82 port 42206
[  4]  0.0-10.2 sec   193 MBytes   159 Mbits/sec
[  4] local 192.168.178.91 port 5001 connected with 192.168.178.82 port 42214
[  4]  0.0-10.1 sec   194 MBytes   161 Mbits/sec

Some experimentation, from client to server speeds:

eth200Mbps eth2Gbps 94Mbps
wifi5GHz eth2Gbps 160Mbps
wifi5GHz wifi5GHz 125Mbps
wifi5GHz wifi2.4GHz 55Mbps


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.