背景
网络性能测试的指标(服务质量指标)
- 带宽/吞吐(throughput)
- 延迟(lantecy)
- 抖动(jitter):延迟的变化程度,标识网络的稳定性;计算方式:最大延迟减去最小延迟的时间差;在iperf中,我们测试时需要发送大量的包,因此计算出来的抖动值就是连续发送时延差值的平均值。
- 丢包率(packet loss rate)
简介
Iperf是一个网络性能测试工具。Iperf可以报告带宽,延迟,抖动,数据包丢包率。利用iperf这一特性,可以用来测试一些网络设备如路由器,防火墙,交换机等的性能。
NAME
iperf - perform network throughput testsSYNOPSIS
iperf -s [options]iperf -c server [options]
iperf -u -s [options]
iperf -u -c server [options]
DESCRIPTION
iperf is a tool for performing network throughput measurements. It can test either TCP or UDP throughput. To perform an iperf test the user must establish both a server (to discard traffic) and a client (to gen‐
erate traffic).
功能
带宽测试通常采用UDP模式,因为能测出极限带宽(bps)、时延抖动(latency, jitter)、丢包率(packet loss rate)。
使用方法
参数说明
客户端与服务器共用选项
服务器端专用选项
客户端专用选项
范例
QA
参考
https://wangchujiang.com/linux-command/c/iperf.html
https://blog.csdn.net/dwj_daiwenjie/article/details/102974352
https://cloud.tencent.com/developer/article/1540674