网络性能测试

丢包率

1
2
3
4
# -f 以极高的速度发送数据包
# -c 100000 发送100000个数据包
# ip 目标ip地址
ping -f -c 100000 ip

延迟

lagscope

1
2
3
4
5
# mtr 
mtr --report -c 10 $dest_ip

# lagscope
lagscope -s ip -H -a10 -l1 -c98

带宽

iperf

1
2
3
4
# 被压端
iperf -s -p 2345
# 发压端:调整 -P 并发数量
iperf -c 10.131.102.7 -p 2345 -i 1 -P 50 -t 100

双端口冗余测试

1
2
ping ip
ip link set eth0 down


网络性能测试
https://blog.erhuoyan.cn/2024/08/23/fa8830f8fd3a/
作者
erhuoyan
发布于
2024年8月23日
许可协议