一、在openwrt里面安装iperf3(如果你用的是vlede 1.2.9版本可以忽略这个步骤,默认已经安装)
![图片[1]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.01.11-1024x485.png)
![图片[2]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.02.03-1024x799.png)
二、mac电脑和win电脑客户端安装方法
1.MAC电脑安装Homebrew,官网https://brew.sh/index_zh-cn.html
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2.安装iperf3
brew install iperf3brew install iperf3brew install iperf3
1.iperf3官网下载win64位版本 https://iperf.fr/iperf-download.php
![图片[3]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.33.16-1018x1024.png)
2.解压放在桌面上就行
![图片[4]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.34.33.png)
三、在opnewrt里面启动服务端
1.ssh登录到你的opnewrt软路由
2.启动命令
iperf3 -s #这个是临时启动命令iperf3 -s #这个是临时启动命令iperf3 -s #这个是临时启动命令
![图片[5]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.40.35-1024x658.png)
iperf3 -s -D #保持在后台iperf3 -s -D #保持在后台iperf3 -s -D #保持在后台
![图片[6]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.42.12-1024x650.png)
四、启动客户端测速
打开终端:
iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器,单线程TCP协议 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2 #多线程UDP测速iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器,单线程TCP协议 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2 #多线程UDP测速iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器,单线程TCP协议 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2 #多线程UDP测速
-i 每多少秒输出一次 -i 1 代表每秒输出一次
-t 一共输出多少秒 -t 60 持续输出60秒
-u UDP协议测试,如果删除默认就是TCP协议测试
-b 预估宽带多少 千兆:-b 1000m 万兆:-b 10G
-p 线程数 -p 2 2线程输出 (一般2-4线程)
![图片[7]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.45.50-1024x624.png)
通过有线测试出来的速度平均在 956Mbits/sec 这个就是这台软路由的极限速度千兆
打开CMD
cd C:/Users/vee/Desktop/iperf-3.1.3-win64 #cd后面的路径为你的cd C:/Users/vee/Desktop/iperf-3.1.3-win64 #cd后面的路径为你的cd C:/Users/vee/Desktop/iperf-3.1.3-win64 #cd后面的路径为你的
![图片[8]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.48.34-1024x614.png)
输入命令:
iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2iperf3 -c 10.10.10.252 #这里的IP地址填你的openwrt路由器 iperf3 -c 10.10.10.252 -b 1000m -t 60 -i 1 -u -P 2
![图片[9]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.51.01-1024x623.png)
五、同时也可以测试你的无线路由器或者AP的无线极限性能
进入iperf官网下载iphone或安卓的客户端
![图片[10]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/截屏2020-07-12-下午12.53.04-1024x560.png)
![图片[11]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/IMG_5061-473x1024.png)
这里我以我的iphone为例测试我的无线路由器的性能
![图片[12]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/IMG_5056-473x1024.png)
![图片[13]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/IMG_5057-2-473x1024.png)
![图片[14]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/IMG_5058-2-473x1024.png)
![图片[15]-iPerf | openwrt软路由安装iperf3测试内网软路由的性能极限速度-天时网](https://www.vediotalk.com/wp-content/uploads/2020/07/IMG_5060-473x1024.png)
以上跑出500M左右的速度就是我无线路由器的极限内网传输速度。还有很多进阶的测试测试参数可以看iperf3官网
暂无评论内容