USB Ethernet Testing – Measuring network throughput using iperf

Host:

 

As a Device(Gadget):

1) using ipref

* download iperf from http://sourceforge.net/projects/iperf/files/

* cd to iperf-2.0.4

* assuming toolchain at /opt/arm-2007q3,    export PATH=/opt/arm-2007q3/bin:$PATH

*  ./configure –host=arm-none-linux-gnueabi –build=i686-pc-linux-gnu AR=/opt/arm-2007q3/bin/arm-none-linux-gnueabi-ar CC=/opt/arm-2007q3/bin/arm-none-linux-gnueabi-gcc LD=/opt/arm-2007q3/bin/arm-none-linux-gnueabi-ld CXX=/opt/arm-2007q3/bin/arm-none-linux-gnueabi-g++ –prefix=/opt/ipref

* make

[ Note: if similar error came as rpc_alloc, disable following line from config.h

/* Define to rpl_malloc if the replacement function should be used. */

//#define malloc rpl_malloc

Ref. to discussion at linux forum

* make install

* copy /opt/iperf/bin/iperf to /usr/local/bin of BeagleBoard(ARM platform) RFS.

On linux host

:~$ iperf -s

————————————————————

Server listening on TCP port 5001

TCP window size: 85.3 KByte (default)

————————————————————

[  4] local 192.168.0.200 port 5001 connected with 192.168.0.202 port 51887

READ  Installing adb on ubuntu 16.04 and accessing android device using adb

connect failed: Connection refused

[ ID] Interval       Transfer     Bandwidth

[  4]  0.0-10.0 sec    222 MBytes    186 Mbits/sec

On BeagleBoard

root@beagleboard:~# iperf -c 192.168.0.200 -d

————————————————————

Client connecting to 192.168.0.200, TCP port 5001

TCP window size: 35.2 KByte (default)

————————————————————

[  3] local 192.168.0.202 port 51887 connected with 192.168.0.200 port 5001

————————————————————

Server listening on TCP port 5001

TCP window size: 85.3 KByte (default)

————————————————————

Waiting for server threads to complete. Interrupt again to force quit.

[ ID] Interval       Transfer     Bandwidth

[  3]  0.0-10.0 sec    222 MBytes    186 Mbits/sec

root@beagleboard:~#

Reference’s:

http://dominion.thruhere.net/koen/cms/measuring-network-throughput-with-iperf

http://openmaniak.com/iperf.php

http://unixfoo.blogspot.com/2009/02/iperf-network-throughput-measurement.html

 

Leave a Reply

Your email address will not be published. Required fields are marked *