iperf3 服务端

iperf3 --server

iperf3 客户端

perf3 -c 10.179.0.1 -t 60 -b 1M

常用参数

Server or Client:
-p, --port      #         server port to listen on/connect to

Server specific:
  -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

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 (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)

结果

Connecting to host 10.179.0.1, port 5201
[  4] local 10.179.0.6 port 12825 connected to 10.179.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   194 KBytes  1.59 Mbits/sec    0   97.2 KBytes       
[  4]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec    0   77.5 KBytes       
[  4]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec    0   80.1 KBytes       
[  4]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec    0   77.5 KBytes       
[  4]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec    0   77.5 KBytes       
[  4]   5.00-6.00   sec   128 KBytes  1.05 Mbits/sec    0   80.1 KBytes       
[  4]   6.00-7.00   sec   128 KBytes  1.05 Mbits/sec    0   77.5 KBytes       
[  4]   7.00-8.00   sec   128 KBytes  1.05 Mbits/sec    0   77.5 KBytes

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  7.19 MBytes  1.01 Mbits/sec    1             sender
[  4]   0.00-60.00  sec  7.19 MBytes  1.01 Mbits/sec                  receiver

retr代表重传