====== Iperf ======
[[https://iperf.fr/download/windows/iperf-3.1.3-win64.zip|Download Iperf]] für Windows 64bit \\
[[http://www.pcwelt.de/download_file?bid=262685|Download Jperf]] (Iperf mit GUI, Benötigt Java!)
===== Starten von Client und Server =====
**HINWEIS: Alle Befehle in der Admin CMD ausführen** \\
In den Ordner in dem sich Iperf befindet wechseln
cd "c:\Program Files\iperf"
Server starten
iperf3 -s
Client starten (IP des Servers angeben)
iperf3 -c 192.168.178.189
==== Optionen ====
Optionen für Client und Server
-p, --port # server port to listen on/connect to
-f, --format [kmgKMG] format to report: Kbits, Mbits, KBytes, MBytes
-i, --interval # seconds between periodic bandwidth reports
-F, --file name xmit/recv the specified file
-B, --bind bind to a specific interface
-V, --verbose more detailed output
-J, --json output in JSON format
--logfile f send output to a log file
-d, --debug emit debugging output
-v, --version show version information and quit
-h, --help show this message and quit
Optionen nur für Server
-s, --server run in server mode
-D, --daemon run the server as a daemon
-I, --pidfile file write PID file
-1, --one-off handle one client connection then exit
Optionen nur für Client
-c, --client run in client mode, connecting to
-u, --udp use UDP rather than TCP
-b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited)
(default 1 Mbit/sec for UDP, unlimited for TCP)
(optional slash and packet count for burst mode)
-t, --time # time in seconds to transmit for (default 10 secs)
-n, --bytes #[KMG] number of bytes to transmit (instead of -t)
-k, --blockcount #[KMG] number of blocks (packets) to transmit (instead of -t or -n)
-l, --len #[KMG] length of buffer to read or write
(default 128 KB for TCP, 8 KB for UDP)
--cport bind to a specific client port (TCP and UDP, default: ephemeral port)
-P, --parallel # number of parallel client streams to run
-R, --reverse run in reverse mode (server sends, client receives)
-w, --window #[KMG] set window size / socket buffer size
-M, --set-mss # set TCP/SCTP maximum segment size (MTU - 40 bytes)
-N, --no-delay set TCP/SCTP no delay, disabling Nagle's Algorithm
-4, --version4 only use IPv4
-6, --version6 only use IPv6
-S, --tos N set the IP 'type of service'
-Z, --zerocopy use a 'zero copy' method of sending data
-O, --omit N omit the first n seconds
-T, --title str prefix every output line with this string
--get-server-output get results from server
--udp-counters-64bit use 64-bit counters in UDP test packets
[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-
===== Testbefehle =====
https://openmaniak.com/iperf.php \\
https://www.thomas-krenn.com/de/wiki/TCP_und_UDP_Netzwerk_Performance_mit_iperf_messen
iperf3 -c 192.168.178.189 -w 512k -l 512k
iperf3 -s -i 1 --logfile log.txt #Server: jitter / packet loss
iperf3 -c 192.168.178.189 -u -b 10m #Client: jitter / packet loss
====Jitter und packet loss====
Server:
iperf3 -s -i 1
Output:
Accepted connection from 192.168.178.135, port 52376
[ 5] local 192.168.178.189 port 5201 connected to 192.168.178.135 port 53291
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-1.01 sec 1.09 MBytes 9.06 Mbits/sec 1.503 ms 0/139 (0%)
[ 5] 1.01-2.01 sec 1.20 MBytes 10.0 Mbits/sec 2.056 ms 0/153 (0%)
[ 5] 2.01-3.01 sec 1.19 MBytes 9.96 Mbits/sec 1.647 ms 0/152 (0%)
[ 5] 3.01-4.01 sec 1.20 MBytes 10.1 Mbits/sec 1.388 ms 0/154 (0%)
[ 5] 4.01-5.01 sec 1.19 MBytes 9.89 Mbits/sec 1.628 ms 0/152 (0%)
[ 5] 5.01-6.00 sec 1.20 MBytes 10.2 Mbits/sec 1.630 ms 0/153 (0%)
[ 5] 6.00-7.01 sec 1.20 MBytes 9.96 Mbits/sec 1.848 ms 0/153 (0%)
[ 5] 7.01-8.00 sec 1.17 MBytes 9.86 Mbits/sec 1.876 ms 0/150 (0%)
[ 5] 8.00-9.00 sec 1.20 MBytes 10.0 Mbits/sec 1.834 ms 0/153 (0%)
[ 5] 9.00-10.01 sec 1.19 MBytes 9.94 Mbits/sec 1.628 ms 0/152 (0%)
[ 5] 10.01-10.08 sec 112 KBytes 13.1 Mbits/sec 1.681 ms 0/14 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-10.08 sec 0.00 Bytes 0.00 bits/sec 1.681 ms 0/1525 (0%)
Client:
iperf3 -c 192.168.178.189 -u -b 10M #UDP-Verbindung mit 10 MBits/sec
Output:
Connecting to host 192.168.178.189, port 5201
[ 4] local 192.168.178.135 port 53291 connected to 192.168.178.189 port 5201
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.00 sec 1.14 MBytes 9.57 Mbits/sec 146
[ 4] 1.00-2.00 sec 1.17 MBytes 9.83 Mbits/sec 150
[ 4] 2.00-3.00 sec 1.20 MBytes 10.0 Mbits/sec 153
[ 4] 3.00-4.00 sec 1.17 MBytes 9.83 Mbits/sec 150
[ 4] 4.00-5.00 sec 1.22 MBytes 10.2 Mbits/sec 156
[ 4] 5.00-6.00 sec 1.16 MBytes 9.75 Mbits/sec 149
[ 4] 6.00-7.00 sec 1.20 MBytes 10.0 Mbits/sec 153
[ 4] 7.00-8.00 sec 1.17 MBytes 9.80 Mbits/sec 150
[ 4] 8.00-9.01 sec 1.20 MBytes 10.0 Mbits/sec 153
[ 4] 9.01-10.00 sec 1.30 MBytes 10.9 Mbits/sec 166
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-10.00 sec 11.9 MBytes 10.0 Mbits/sec 1.681 ms 0/1525 (0%)
[ 4] Sent 1525 datagrams
iperf Done.