VPS测速教程:如何用iperf测试你的VPS最大网速

内容纲要

购买VPS:https://2badao.club/vultr_plans/

VPS安装iperf3

#Debian和Ubuntu系统
apt install iperf3 -y
#Centos系统
yum install iperf3 -y

本地电脑安装iperf3

直接下载链接:https://iperf.fr/download/windows/iperf-3.1.3-win64.zip

下载后解压

VPS上关闭防火墙并运行iperf3作为服务端

#Debian系统
ufw disable
iperf3 -s -p 12888
#Centos系统
systemctl stop firewalld
iperf3 -s -p 12888

本地电脑进行上传下载测速

在解压的iperf3文件目录下,打开powershell

#-c后面是vps的IP,-p是端口 12888 ,-t是测试时间,-p是线程数,多一点测试最大速度,-R是测试下载速度,不加-R就是上传速度
.\iperf3.exe -c 104.225.140.xx -p 12888 -t 100  -P 32 -R

结果

sum这一行

25MB每秒的上传速度

[SUM]   2.00-3.00   sec  25.0 MBytes   210 Mbits/sec

6MB每秒的下载速度

[SUM]   9.00-10.00  sec  5.78 MBytes  48.5 Mbits/sec

更多参数介绍

-s 服务器模式
-c 客户端模式
-p 端口号
-f 报告格式
-i 报告间隔时间
-t 测试时长
-u 使用UDP
-b 目标比特率
-l 缓冲区大小
-P 并行流数量
-R 反向模式(服务器发送,客户端接收)
-w 发送/接收缓冲区大小
-4 仅使用IPv4
-6 仅使用IPv6
-h 帮助信息
-v 版本信息

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注