-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiperf.txt
More file actions
26 lines (24 loc) · 2.24 KB
/
iperf.txt
File metadata and controls
26 lines (24 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 使用 iperf 测试的时候需要关掉防火墙: sudo systemctl stop firewalld
iperf -s # 服务器(TCP), 端口号为 5001
iperf -s -p 8080 # 服务器(TCP), 端口号为 8080
iperf -s -f MB # 服务器(TCP), 端口号为 5001, 设置输出的单位
iperf -s -i 10 # 服务器(TCP), 端口号为 5001, 设置报告的时间间隔为 10s
iperf -s -D # 服务器(TCP), 端口号为 5001, 服务器在后台启动
iperf -s -1 # 服务器(TCP), 端口号为 5001, 只接受一个客户端
iperf -s -N # 服务器(TCP), 端口号为 5001, 使用 TCP nodelay 算法
iperf -s -u # 服务器(UDP), 端口号为 5001
iperf -c 127.0.0.1 # 客户端(TCP), 服务器端口号为 5001
iperf -c 127.0.0.1 -p 8080 # 客户端(TCP), 服务器端口号为 8080
iperf -c 127.0.0.1 -i 1 # 客户端(TCP), 服务器端口号为 5001, 设置报告的时间间隔为 1s
iperf -c 127.0.0.1 -t 10 # 客户端(TCP), 服务器端口号为 5001, 设置测试时间为 10s
iperf -c 127.0.0.1 -f MB # 客户端(TCP), 服务器端口号为 5001, 设置输出的单位
iperf -c 127.0.0.1 -b 100M # 客户端(TCP), 服务器端口号为 5001, 设置发送速率
iperf -c 127.0.0.1 -n 100M # 客户端(TCP), 服务器端口号为 5001, 设置测试的数据的大小
iperf -c 127.0.0.1 -k 100M # 客户端(TCP), 服务器端口号为 5001, 设置测试的数据包的数量
iperf -c 127.0.0.1 -R # 客户端(TCP), 服务器端口号为 5001, 反向测试, 服务端连客户端
iperf -c 127.0.0.1 -d # 客户端(TCP), 客户端连服务端的同时, 服务端同时连客户端, 端口号为 5001
iperf -c 127.0.0.1 -L 9090 -d # 客户端(TCP), 客户端连服务端的同时, 服务端同时连客户端, 端口号为 9090
iperf -c 127.0.0.1 -r # 客户端(TCP), 客户端连服务端结束后, 服务端连回客户端, 端口号为 5001
iperf -c 127.0.0.1 -L 9090 -r # 客户端(TCP), 客户端连服务端结束后, 服务端连回客户端, 端口号为 9090
iperf -c 127.0.0.1 -P 30 # 客户端(TCP), 客户端线程数为 30
iperf -c 127.0.0.1 -u # 客户端(UDP)