USB Ethernet Testing – Measuring network throughput using iperf



As a Device(Gadget):

1) using ipref

* download iperf from

* 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 port 5001 connected with port 51887

connect failed: Connection refused

[ ID] Interval       Transfer     Bandwidth

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

On BeagleBoard

[email protected]:~# iperf -c -d


Client connecting to, TCP port 5001

TCP window size: 35.2 KByte (default)


[  3] local port 51887 connected with 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

[email protected]:~#



Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question