iperf2 Reference


1. Download

Click here to download iperf2.0.9.

Version2.0.9 for windows:https://iperf.fr/iperf-download.php#windows 


2. Compile

Specify the corresponding compiler:

./configure --host=arm-linux-gnueabihf CXX=${CROSS_COMPILE}g++ CC=${CROSS_COMPILE}gcc
cd iperf-2.0.9/
make clean  
make

3. Test

  1. cp ./src/iperf  ${your board

    Connect the windows pc and the target board for testing.

  2. Throughput test

    ./iperf -s
    
    ./iperf -c 172.19.24.78 -i 1 -t 10  //tcp throughput
    

    Result:

    [ ID] Interval Transfer Bandwidth

    [ 4] 0.0-10.0 sec 113 MBytes 94.7 Mbits/sec

  3. Packet loss test

    ./iperf -s -u  //Server running
    
    ./iperf -c 172.19.24.78 -i 1 -t 10 -u  //udp packet loss
    

    Result:

    [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams

    [ 4] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.029 ms 0/ 893 (0%)

  4. help

    ./iperf -h