iperf3 使用

iperf 分client 和 server

server:   iperf3 -s -p 5000 -i 1 

client: iperf3 -c 192.168.31.11 -p 5000 

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
-B, --bind <host> bind to a specific interface 主机绑定指定接口
-V, --verbose more detailed output 更详细的输出
-J, --json output in JSON format  输出JSON格式
--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   显示帮助信息并退出
Server specific:
-s, --server run in server mode     运行服务器模式
-D, --daemon run the server as a daemon  将服务器作为守护进程运行
-I, --pidfile file write PID file         写PID文件
-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      使用UDP而不是TCP
-b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited)   目标带宽(比特/秒)
(default 1 Mbit/sec for UDP, unlimited for TCP)    UDP默认为1 Mbit/秒,TCP没有限制
(optional slash and packet count for burst mode)
-t, --time # time in seconds to transmit for (default 10 secs)   传输时间(默认为10秒)
-n, --bytes #[KMG] number of bytes to transmit (instead of -t)   要传输的字节数(而不是-t)
-k, --blockcount #[KMG] number of blocks (packets) to transmit (instead of -t or -n)  要传输的块(包)数量(而不是-t或-n)
-l, --len #[KMG] length of buffer to read or write  读取或写入缓冲区的长度
(default 128 KB for TCP, 8 KB for UDP)  TCP默认为128 KB, UDP默认为8 KB
--cport <port> bind to a specific client port (TCP and UDP, default: ephemeral port)   绑定到特定的客户端端口(TCP和UDP,默认:临时端口)
-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  设置窗口大小/套接字缓冲区大小
-C, --congestion <algo> set TCP congestion control algorithm (Linux and FreeBSD only)  设置TCP拥塞控制算法(只支持Linux和FreeBSD)
-M, --set-mss # set TCP/SCTP maximum segment size (MTU - 40 bytes)   设置TCP/SCTP最大段大小(MTU - 40字节)
-N, --no-delay set TCP/SCTP no delay, disabling Nagle's Algorithm  设置TCP/SCTP没有延迟,禁用Nagle的算法
-4, --version4 only use IPv4
-6, --version6 only use IPv6
-S, --tos N set the IP 'type of service'  设置IP“服务类型”
-L, --flowlabel N set the IPv6 flow label (only supported on Linux)   设置IPv6流标签(只支持Linux)
-Z, --zerocopy use a 'zero copy' method of sending data   使用“零拷贝”方法发送数据
-O, --omit N omit the first n seconds  省略前N秒
-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   在UDP测试包中使用64位计数器
--no-fq-socket-pacing disable fair-queuing based socket pacing
(Linux only)

猜你喜欢

转载自www.cnblogs.com/idz188/p/10753972.html