利用iperf3为VPS测速

最近都在捣鼓VPS,现在来说说如何利用iperf3为VPS测速。关于iperf3的相关介绍详见以下网页。

  1. iperf3的官方网站:http://software.es.net/iperf/index.html
  2. iperf3的Github网站:https://github.com/esnet/iperf
  3. iperf3 v3.1.3等已编译版本的下载网站:https://iperf.fr/iperf-download.php

1 安装iperf3

以Ubuntu系统为例,通过PuTTy连接VPS。

(1)安装iperf3:

sudo add-apt-repository "ppa:patrickdk/general-lucid"
sudo apt-get update
sudo apt-get install iperf3

(2)卸载iperf3:

sudo apt-get remove iperf3

(3)查看帮助文档:https://iperf.fr/iperf-doc.php

2 iperf3客户端

以Windows7 64 bits 为例:

(1)到官网下载页面下载客户端。

(2)解压后,在iperf3.exe同一目录下新建一个文本文档(*.txt),写入以下内容(自行替换VPSIP),重命名为“iperf3test.bat”:

iperf3.exe -c VPSIP -R

也可以自行调整参数,譬如:

iperf3.exe -c VPSIP -P 30 -R -t 60

常用参数说明:

  • -s:声明服务端;
  • -c:声明客户端;
  • -P:测试线程数;
  • -R:测试下行网速(如果不加这个参数,则测试上行网速);
  • -p:服务器的iperf3测试端口,默认无需添加;
  • -t:测试时长,秒。

3 测试步骤

(1)通过PuTTY连接VPS,运行:

iperf3 -s

(2)运行“iperf3test.bat”,在PuTTY窗口查看测试结果。


了解 环评五四三 的更多信息

订阅后即可通过电子邮件收到最新文章。

发表评论