Howto test and tune Gigabit Networking (1000M)
#1
Pine64+ and Pine64+2GB have a Gigabit NIC. To actually test the speed of the network interface a few things need to be considered. If you want to test the NIC performance of your Pine64, this thread is for you.

To do any meaningful testing, you need another device which is well known and capable to deliver over 900MBit/s with the cable and switch it is connected to. Also make sure that the network cable you use for the Pine64 is working with Gigabit Network (8 wires twisted pair, Cat5e or Cat6).

It is important to understand that you should test network speed only. If you copy a file to the Pine or something you are testing something completely different.

Furthermore it is important to know the settings of the whole stack involved and always use same / good settings. I added a platform-script at https://github.com/longsleep/build-pine6...network.sh to help with that. Make sure to run this or similar before any testing.

- Make sure you use the latest Kernel. `uname -a`
Code:
root@pine64:~# uname -a
Linux pine64 3.10.102-3-pine64-longsleep #98 SMP PREEMPT Sat Aug 20 22:28:17 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux

- Use iperf3. Start it in server mode on your other host (iperf3 -s). iperf 3 exists for essentially all platforms as precompiled binary (https://iperf.fr/iperf-download.php).

- Install iperf3 on your Pine64. `sudo apt-get install iperf3`.

- Run iperf3 in client mode on Pine64 `iperf -c $OTHER_HOST_IP`
This can reach about 800 Mbits/sec
Code:
root@pine64:~# iperf3 -c 192.168.1.111  
Connecting to host 192.168.1.111, port 5201
[  4] local 192.168.1.54 port 33437 connected to 192.168.1.111 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec  99.0 MBytes   825 Mbits/sec    1    168 KBytes      
[  4]   1.01-2.00   sec   100 MBytes   848 Mbits/sec    1    139 KBytes      
[  4]   2.00-3.00   sec   101 MBytes   849 Mbits/sec    0    197 KBytes      
[  4]   3.00-4.00   sec   100 MBytes   841 Mbits/sec    0    235 KBytes      
[  4]   4.00-5.00   sec  97.7 MBytes   820 Mbits/sec    3    139 KBytes      
[  4]   5.00-6.00   sec  99.1 MBytes   831 Mbits/sec    2   82.0 KBytes      
[  4]   6.00-7.00   sec  95.4 MBytes   801 Mbits/sec    1    120 KBytes      
[  4]   7.00-8.00   sec  97.7 MBytes   819 Mbits/sec    1    151 KBytes      
[  4]   8.00-9.00   sec  96.8 MBytes   812 Mbits/sec    0    202 KBytes      
[  4]   9.00-10.00  sec   102 MBytes   854 Mbits/sec    1    175 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   990 MBytes   830 Mbits/sec   10             sender
[  4]   0.00-10.00  sec   989 MBytes   829 Mbits/sec                  receiver

- Run iperf3 in client reverse mode on Pine64 `iperf -c $OTHER_HOST_IP -R`
This can reach about 900 Mbits/sec.

Code:
root@pine64:~# iperf3 -c 192.168.1.111 -R
Connecting to host 192.168.1.111, port 5201
Reverse mode, remote host 192.168.1.111 is sending
[  4] local 192.168.1.54 port 33435 connected to 192.168.1.111 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   104 MBytes   873 Mbits/sec                  
[  4]   1.00-2.00   sec   107 MBytes   901 Mbits/sec                  
[  4]   2.00-3.00   sec   106 MBytes   893 Mbits/sec                  
[  4]   3.00-4.00   sec   107 MBytes   901 Mbits/sec                  
[  4]   4.00-5.00   sec   108 MBytes   903 Mbits/sec                  
[  4]   5.00-6.00   sec   105 MBytes   879 Mbits/sec                  
[  4]   6.00-7.00   sec   109 MBytes   912 Mbits/sec                  
[  4]   7.00-8.00   sec   107 MBytes   898 Mbits/sec                  
[  4]   8.00-9.00   sec   107 MBytes   900 Mbits/sec                  
[  4]   9.00-10.00  sec   107 MBytes   895 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.04 GBytes   896 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.04 GBytes   896 Mbits/sec                  receiver

- To completely max out the Pine64 run iperf 3 in parallel mode (4)
This should be a little faster (combined) than the results from only a single thread.

Code:
root@pine64:~# iperf3 -c 192.168.1.111 -P 4
Connecting to host 192.168.1.111, port 5201
[  4] local 192.168.1.54 port 33439 connected to 192.168.1.111 port 5201
[  6] local 192.168.1.54 port 33440 connected to 192.168.1.111 port 5201
[  8] local 192.168.1.54 port 33441 connected to 192.168.1.111 port 5201
[ 10] local 192.168.1.54 port 33442 connected to 192.168.1.111 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.03   sec  26.9 MBytes   219 Mbits/sec    1    107 KBytes      
[  6]   0.00-1.03   sec  26.7 MBytes   218 Mbits/sec    0    209 KBytes      
[  8]   0.00-1.03   sec  26.5 MBytes   216 Mbits/sec    0    212 KBytes      
[ 10]   0.00-1.03   sec  26.4 MBytes   215 Mbits/sec    0    208 KBytes      
[SUM]   0.00-1.03   sec   106 MBytes   868 Mbits/sec    1            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.03-2.02   sec  26.2 MBytes   222 Mbits/sec    0    122 KBytes      
[  6]   1.03-2.02   sec  26.2 MBytes   222 Mbits/sec    0    236 KBytes      
[  8]   1.03-2.02   sec  26.2 MBytes   222 Mbits/sec    0    239 KBytes      
[ 10]   1.03-2.02   sec  26.2 MBytes   222 Mbits/sec    0    239 KBytes      
[SUM]   1.03-2.02   sec   105 MBytes   888 Mbits/sec    0            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.02-3.02   sec  26.2 MBytes   220 Mbits/sec    1   97.6 KBytes      
[  6]   2.02-3.02   sec  26.2 MBytes   221 Mbits/sec    1    112 KBytes      
[  8]   2.02-3.02   sec  26.2 MBytes   221 Mbits/sec    0    257 KBytes      
[ 10]   2.02-3.02   sec  26.2 MBytes   221 Mbits/sec    0    255 KBytes      
[SUM]   2.02-3.02   sec   105 MBytes   882 Mbits/sec    2            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.02-4.02   sec  26.2 MBytes   221 Mbits/sec    0    110 KBytes      
[  6]   3.02-4.02   sec  26.2 MBytes   221 Mbits/sec    0    124 KBytes      
[  8]   3.02-4.02   sec  26.2 MBytes   221 Mbits/sec    0    262 KBytes      
[ 10]   3.02-4.02   sec  26.2 MBytes   221 Mbits/sec    1    109 KBytes      
[SUM]   3.02-4.02   sec   105 MBytes   884 Mbits/sec    1            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.02-5.01   sec  26.2 MBytes   222 Mbits/sec    0    122 KBytes      
[  6]   4.02-5.01   sec  26.2 MBytes   222 Mbits/sec    0    130 KBytes      
[  8]   4.02-5.01   sec  26.2 MBytes   222 Mbits/sec    0    269 KBytes      
[ 10]   4.02-5.01   sec  26.2 MBytes   222 Mbits/sec    0    123 KBytes      
[SUM]   4.02-5.01   sec   105 MBytes   887 Mbits/sec    0            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.01-6.05   sec  27.5 MBytes   222 Mbits/sec    1    106 KBytes      
[  6]   5.01-6.05   sec  27.5 MBytes   222 Mbits/sec    0    132 KBytes      
[  8]   5.01-6.05   sec  27.5 MBytes   222 Mbits/sec    1   94.7 KBytes      
[ 10]   5.01-6.05   sec  27.5 MBytes   222 Mbits/sec    0    129 KBytes      
[SUM]   5.01-6.05   sec   110 MBytes   889 Mbits/sec    2            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.05-7.04   sec  27.0 MBytes   227 Mbits/sec    0    117 KBytes      
[  6]   6.05-7.04   sec  27.9 MBytes   235 Mbits/sec    0    143 KBytes      
[  8]   6.05-7.04   sec  25.8 MBytes   218 Mbits/sec    0    115 KBytes      
[ 10]   6.05-7.04   sec  22.8 MBytes   192 Mbits/sec    2   84.8 KBytes      
[SUM]   6.05-7.04   sec   103 MBytes   872 Mbits/sec    2            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.04-8.01   sec  26.1 MBytes   226 Mbits/sec    0    127 KBytes      
[  6]   7.04-8.01   sec  26.2 MBytes   228 Mbits/sec    0    150 KBytes      
[  8]   7.04-8.01   sec  24.9 MBytes   216 Mbits/sec    0    126 KBytes      
[ 10]   7.04-8.01   sec  23.8 MBytes   206 Mbits/sec    0    102 KBytes      
[SUM]   7.04-8.01   sec   101 MBytes   875 Mbits/sec    0            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.01-9.00   sec  26.2 MBytes   221 Mbits/sec    0    136 KBytes      
[  6]   8.01-9.01   sec  26.2 MBytes   221 Mbits/sec    0    156 KBytes      
[  8]   8.01-9.01   sec  26.2 MBytes   221 Mbits/sec    0    130 KBytes      
[ 10]   8.01-9.01   sec  26.2 MBytes   221 Mbits/sec    0    116 KBytes      
[SUM]   8.01-9.00   sec   105 MBytes   885 Mbits/sec    0            
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  26.2 MBytes   221 Mbits/sec    0    144 KBytes      
[  6]   9.01-10.00  sec  26.2 MBytes   221 Mbits/sec    1    109 KBytes      
[  8]   9.01-10.00  sec  26.2 MBytes   221 Mbits/sec    0    139 KBytes      
[ 10]   9.01-10.00  sec  26.2 MBytes   221 Mbits/sec    0    127 KBytes      
[SUM]   9.00-10.00  sec   105 MBytes   882 Mbits/sec    1            
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   265 MBytes   222 Mbits/sec    3             sender
[  4]   0.00-10.00  sec   265 MBytes   222 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   266 MBytes   223 Mbits/sec    2             sender
[  6]   0.00-10.00  sec   266 MBytes   223 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   262 MBytes   220 Mbits/sec    1             sender
[  8]   0.00-10.00  sec   262 MBytes   220 Mbits/sec                  receiver
[ 10]   0.00-10.00  sec   258 MBytes   216 Mbits/sec    3             sender
[ 10]   0.00-10.00  sec   258 MBytes   216 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  1.03 GBytes   881 Mbits/sec    9             sender
[SUM]   0.00-10.00  sec  1.03 GBytes   881 Mbits/sec                  receiver

Code:
root@pine64:~# iperf3 -c 192.168.1.111 -P 4 -R
Connecting to host 192.168.1.111, port 5201
Reverse mode, remote host 192.168.1.111 is sending
[  4] local 192.168.1.54 port 33444 connected to 192.168.1.111 port 5201
[  6] local 192.168.1.54 port 33445 connected to 192.168.1.111 port 5201
[  8] local 192.168.1.54 port 33446 connected to 192.168.1.111 port 5201
[ 10] local 192.168.1.54 port 33447 connected to 192.168.1.111 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.01   sec  20.9 MBytes   174 Mbits/sec                  
[  6]   0.00-1.01   sec  20.8 MBytes   174 Mbits/sec                  
[  8]   0.00-1.01   sec  20.9 MBytes   174 Mbits/sec                  
[ 10]   0.00-1.01   sec  20.8 MBytes   173 Mbits/sec                  
[SUM]   0.00-1.01   sec  83.3 MBytes   694 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.01-2.00   sec  27.4 MBytes   231 Mbits/sec                  
[  6]   1.01-2.00   sec  27.3 MBytes   230 Mbits/sec                  
[  8]   1.01-2.00   sec  27.5 MBytes   232 Mbits/sec                  
[ 10]   1.01-2.00   sec  27.5 MBytes   232 Mbits/sec                  
[SUM]   1.01-2.00   sec   110 MBytes   925 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  28.1 MBytes   236 Mbits/sec                  
[  6]   2.00-3.00   sec  28.0 MBytes   235 Mbits/sec                  
[  8]   2.00-3.00   sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   2.00-3.00   sec  28.0 MBytes   235 Mbits/sec                  
[SUM]   2.00-3.00   sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec  28.0 MBytes   235 Mbits/sec                  
[  6]   3.00-4.00   sec  28.1 MBytes   236 Mbits/sec                  
[  8]   3.00-4.00   sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   3.00-4.00   sec  28.0 MBytes   235 Mbits/sec                  
[SUM]   3.00-4.00   sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec  28.0 MBytes   235 Mbits/sec                  
[  6]   4.00-5.00   sec  28.0 MBytes   235 Mbits/sec                  
[  8]   4.00-5.00   sec  28.1 MBytes   236 Mbits/sec                  
[ 10]   4.00-5.00   sec  28.1 MBytes   236 Mbits/sec                  
[SUM]   4.00-5.00   sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  28.1 MBytes   236 Mbits/sec                  
[  6]   5.00-6.00   sec  28.1 MBytes   236 Mbits/sec                  
[  8]   5.00-6.00   sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   5.00-6.00   sec  27.8 MBytes   233 Mbits/sec                  
[SUM]   5.00-6.00   sec   112 MBytes   940 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec  27.9 MBytes   234 Mbits/sec                  
[  6]   6.00-7.00   sec  27.9 MBytes   234 Mbits/sec                  
[  8]   6.00-7.00   sec  27.9 MBytes   234 Mbits/sec                  
[ 10]   6.00-7.00   sec  27.9 MBytes   234 Mbits/sec                  
[SUM]   6.00-7.00   sec   112 MBytes   934 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec  28.1 MBytes   236 Mbits/sec                  
[  6]   7.00-8.00   sec  28.0 MBytes   235 Mbits/sec                  
[  8]   7.00-8.00   sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   7.00-8.00   sec  28.0 MBytes   235 Mbits/sec                  
[SUM]   7.00-8.00   sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec  28.0 MBytes   235 Mbits/sec                  
[  6]   8.00-9.00   sec  28.0 MBytes   235 Mbits/sec                  
[  8]   8.00-9.00   sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   8.00-9.00   sec  28.0 MBytes   235 Mbits/sec                  
[SUM]   8.00-9.00   sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  28.0 MBytes   235 Mbits/sec                  
[  6]   9.00-10.00  sec  28.1 MBytes   236 Mbits/sec                  
[  8]   9.00-10.00  sec  28.0 MBytes   235 Mbits/sec                  
[ 10]   9.00-10.00  sec  28.0 MBytes   235 Mbits/sec                  
[SUM]   9.00-10.00  sec   112 MBytes   940 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  sender
[  4]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  sender
[  6]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  sender
[  8]   0.00-10.00  sec   273 MBytes   229 Mbits/sec                  receiver
[ 10]   0.00-10.00  sec   272 MBytes   228 Mbits/sec                  sender
[ 10]   0.00-10.00  sec   272 MBytes   228 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  1.06 GBytes   915 Mbits/sec                  sender
[SUM]   0.00-10.00  sec  1.06 GBytes   914 Mbits/sec                  receiver



If your results are even faster, consider yourself lucky Smile. Feel free to post your results (please iperf3 results only).
  Reply


Messages In This Thread
Howto test and tune Gigabit Networking (1000M) - by longsleep - 08-21-2016, 04:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Howto use MAC address as printed on the label on the back longsleep 3 5,979 08-21-2016, 07:31 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)