(2016-05-08, 07:29)steve1977 Wrote: What I need help with is the proper syntax to run iperf on my RPi2 to provide a better log files. The simple Kodi log i below:
You can follow this guide to run iperf:
https://www.linode.com/docs/networking/d...sing-iperf
You need iperf installed on two machines, one at each "end" of the network link you want to test. So you need to install iperf on the RPi2 (LibreELEC Addons > Program add-ons > Network Tools), and also iperf on whatever machine is at the "other end".
The LE repo will install "iperf" and "iperf3" - they're the same thing, iperf 3.1.2.
Run iperf on one machine in server mode (this is on 192.168.0.9):
and then run iperf on the other machine in client mode:
Code:
iperf3 -c 192.168.0.9 -t 60 -i 10
at which point the test will start (in this case testing TCP for 60 seconds with results displayed by the client every 10 seconds).
You can reverse roles (swap server with client) to run the test in the "opposite" direction (or use the --reverse option on the client), which might yield different results.
My RPi3 results (the server is my Ubuntu FX-8350 build server, both server and client are wired to a GigE switch):
Code:
rpi22:~ # iperf3 -c 192.168.0.9 -t 60 -i 10
Connecting to host 192.168.0.9, port 5201
[ 4] local 192.168.0.18 port 45230 connected to 192.168.0.9 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-10.00 sec 112 MBytes 94.2 Mbits/sec 0 33.9 KBytes
[ 4] 10.00-20.00 sec 112 MBytes 94.2 Mbits/sec 0 33.9 KBytes
[ 4] 20.00-30.00 sec 112 MBytes 94.1 Mbits/sec 0 33.9 KBytes
[ 4] 30.00-40.00 sec 112 MBytes 94.2 Mbits/sec 0 33.9 KBytes
[ 4] 40.00-50.00 sec 112 MBytes 94.1 Mbits/sec 0 33.9 KBytes
[ 4] 50.00-60.00 sec 112 MBytes 94.1 Mbits/sec 0 33.9 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-60.00 sec 673 MBytes 94.1 Mbits/sec 0 sender
[ 4] 0.00-60.00 sec 673 MBytes 94.1 Mbits/sec receiver
iperf Done.
and in reverse:
Code:
rpi22:~ # iperf3 -c 192.168.0.9 -t 60 -i 10 --reverse
Connecting to host 192.168.0.9, port 5201
Reverse mode, remote host 192.168.0.9 is sending
[ 4] local 192.168.0.18 port 45336 connected to 192.168.0.9 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 112 MBytes 94.2 Mbits/sec
[ 4] 10.00-20.00 sec 112 MBytes 94.1 Mbits/sec
[ 4] 20.00-30.00 sec 112 MBytes 94.1 Mbits/sec
[ 4] 30.00-40.00 sec 112 MBytes 94.1 Mbits/sec
[ 4] 40.00-50.00 sec 112 MBytes 94.1 Mbits/sec
[ 4] 50.00-60.00 sec 112 MBytes 94.1 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-60.00 sec 674 MBytes 94.2 Mbits/sec 0 sender
[ 4] 0.00-60.00 sec 674 MBytes 94.2 Mbits/sec receiver
iperf Done.