Pure TCP benchmark using iperf3

The iperf3 can be enabled in the petalinux design flow:

# recipe is in <petalinux-v2018.2>/components/yocto/source/arm/layers/meta-openembedded/meta-oe/recipes-benchmark/iperf3/iperf3_3.2.bb
echo "IMAGE_INSTALL_append = \" iperf3 \"" >><petalinux_project>/project-spec/meta-user/recipes-core/images/petalinux-image.bbappend
petalinux-config -c rootfs # enable "user packages" -> "iperf3"

Commands:

iperf3 -s -A 1 #server runs faster on 2nd core ??
iperf3 -c 192.168.1.31 #client PC->Zed
iperf3 -c 192.168.1.31 -R #client Zed->PC

Results <900Mbits/s download from ZEDboard:

iperf3 output
kvas@flchcaldev:~/opt/iperf-3.2/src$ ./iperf3 -c 192.168.1.31 
Connecting to host 192.168.1.31, port 5201
[  5] local 192.168.1.2 port 56870 connected to 192.168.1.31 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  88.2 MBytes   740 Mbits/sec   44    385 KBytes       
[  5]   1.00-2.00   sec  90.0 MBytes   755 Mbits/sec    0    410 KBytes       
[  5]   2.00-3.00   sec  91.2 MBytes   765 Mbits/sec    0    433 KBytes       
[  5]   3.00-4.00   sec  90.0 MBytes   755 Mbits/sec    0    458 KBytes       
[  5]   4.00-5.00   sec  91.2 MBytes   765 Mbits/sec    0    482 KBytes       
[  5]   5.00-6.00   sec  90.0 MBytes   755 Mbits/sec    0    505 KBytes       
[  5]   6.00-7.00   sec  90.0 MBytes   755 Mbits/sec    0    526 KBytes       
[  5]   7.00-8.00   sec  91.2 MBytes   765 Mbits/sec    0    547 KBytes       
[  5]   8.00-9.00   sec  90.0 MBytes   755 Mbits/sec    0    567 KBytes       
[  5]   9.00-10.00  sec  91.2 MBytes   765 Mbits/sec    0    587 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   903 MBytes   758 Mbits/sec   44             sender
[  5]   0.00-10.04  sec   900 MBytes   752 Mbits/sec                  receiver

kvas@flchcaldev:~/opt/iperf-3.2/src$ ./iperf3 -c 192.168.1.31 -R
Connecting to host 192.168.1.31, port 5201
Reverse mode, remote host 192.168.1.31 is sending
[  5] local 192.168.1.2 port 56866 connected to 192.168.1.31 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   107 MBytes   898 Mbits/sec                  
[  5]   1.00-2.00   sec   107 MBytes   900 Mbits/sec                  
[  5]   2.00-3.00   sec   107 MBytes   898 Mbits/sec                  
[  5]   3.00-4.00   sec   107 MBytes   898 Mbits/sec                  
[  5]   4.00-5.00   sec   107 MBytes   898 Mbits/sec                  
[  5]   5.00-6.00   sec   107 MBytes   901 Mbits/sec                  
[  5]   6.00-7.00   sec   107 MBytes   900 Mbits/sec                  
[  5]   7.00-8.00   sec   107 MBytes   899 Mbits/sec                  
[  5]   8.00-9.00   sec   107 MBytes   899 Mbits/sec                  
[  5]   9.00-10.00  sec   107 MBytes   898 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec  1.05 GBytes   896 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.05 GBytes   900 Mbits/sec                  receiver
  • No labels