このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 24 Bitwarden/Vaultwarden created
最近の更新
ネットワーク負荷試験ツールiperfの新しいバージョン
RPMforgeリポジトリ を追加してからyumでインストール
# yum install iperf3
# iperf3 -hlep Usage: iperf [-s|-c host] [options] iperf [-h|--help] [-v|--version] Server or Client: -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 -A, --affinity n/n,m set CPU affinity -V, --verbose more detailed output -J, --json output in JSON format -d, --debug emit debugging output -v, --version show version information and quit -h, --help show this message and quit Server specific: -s, --server run in server mode -D, --daemon run the server as a daemon Client specific: -c, --client <host> run in client mode, connecting to <host> -u, --udp use UDP rather than TCP -b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (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, --num #[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) -P, --parallel # number of parallel client streams to run -R, --reverse run in reverse mode (server sends, client receives) -w, --window #[KMG] TCP window size (socket buffer size) -B, --bind <host> bind to a specific interface or multicast address -C, --linux-congestion <algo> set TCP congestion control algorithm (Linux only) -M, --set-mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP 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' -L, --flowlabel N set the IPv6 flow label (only supported on Linux) -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 [KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga- Report bugs to <iperf-users@lists.sourceforge.net>
iperf3 -s
iperf3 -c [server ip]
例: parallel:2, time:10, bandwidth:1G UDP
iperf3 -c [server ip] -P 2 -t 10 -b 1G -u
Retrを見ると再送が多くて、ネットワーク品質が安定しない事が分かる
# iperf3 -c 192.168.10.10 -t 10 Connecting to host 192.168.10.140, port 5201 [ 5] local 192.168.10.101 port 36110 connected to 192.168.10.10 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 1.15 GBytes 9.90 Gbits/sec 18 2.91 MBytes [ 5] 1.00-2.00 sec 1.15 GBytes 9.91 Gbits/sec 31 3.64 MBytes [ 5] 2.00-3.00 sec 1.14 GBytes 9.82 Gbits/sec 0 4.10 MBytes [ 5] 3.00-4.00 sec 1.15 GBytes 9.88 Gbits/sec 26 3.91 MBytes [ 5] 4.00-5.00 sec 1.15 GBytes 9.84 Gbits/sec 0 4.83 MBytes [ 5] 5.00-6.00 sec 1.14 GBytes 9.76 Gbits/sec 37 3.12 MBytes [ 5] 6.00-7.00 sec 1.15 GBytes 9.83 Gbits/sec 0 4.54 MBytes [ 5] 7.00-8.00 sec 1.15 GBytes 9.89 Gbits/sec 24 4.36 MBytes [ 5] 8.00-9.00 sec 1.15 GBytes 9.88 Gbits/sec 0 4.36 MBytes [ 5] 9.00-10.00 sec 1.14 GBytes 9.78 Gbits/sec 35 2.24 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 11.5 GBytes 9.85 Gbits/sec 171 sender [ 5] 0.00-10.04 sec 11.5 GBytes 9.80 Gbits/sec receiver iperf Done.