Loading... <!--more--> ## 使用说明 **UDP模式** 服务器端: ```apache iperf -u -s ``` 客户端: ```apache iperf -u -c 192.168.1.1 -b 100M -t 60 ``` 在UDP模式下,以100Mbps为数据发生速率,客户端到服务器192.168.1.1上传带宽测试,测试时间为60s ```apache iperf -u -c 192.168.1.1 -b 50M -P 30 -t 60 ``` 客户端同时向服务器端发起30个连接线程,以5Mbps为数据发生速率 ```apache iperf -u -c 192,168.1.1 -b 100M -d -t 60 ``` 以100M为数据发生速率,进行上下行带宽测试。 **TCP模式** 服务器端: ```apache iperf -s ``` 客户端: ```apache iperf -c 192.168.1.1 -t 60 ``` 在tcp模式下,客户端到服务器192.168.1.1上传带宽测试,测试时间60秒。 ```apache iperf -c 192.168.1.1 -P 30 -t 60 ``` 客户端同时向服务器端发起30个连接线程。 ```apache iperf -c 192.168.1.1 -d -t 60 ``` 进行上下行带宽测试。增加-R 为下载带宽 Last modification:April 27, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏