linux 测速命令 speed-test 以及 iperf3

简介: linux 测速命令 speed-test 以及 iperf3

公网测速 与 局域网测速 差别

局域网点对点 测速吞吐 推荐 iperf3 需要 自建 测速服务器

公网 测速 直接 联通 运营商 进行测速即可

speed-test 直接 公网测速

store_url='registry.cn-hangzhou.aliyuncs.com/mkmk/all'
docker run -it ${store_url}:speed-cli   /usr/local/bin/speedtest-cli
-->
[root@kk-test ~]# docker run -it ${store_url}:speed-cli   /usr/local/bin/speedtest-cli
Retrieving speedtest.net configuration...
Testing from China Telecom (27.18.136.158)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by 湖北联通5G (Wuhan) [1.65 km]: 11.559 ms
Testing download speed................................................................................
Download: 276.47 Mbit/s
Testing upload speed......................................................................................................
Upload: 46.64 Mbit/s

iperf3 局域网测速

启动服务器

docker run -it --rm -p 5201:5201  --name iperf3_server networkstatic/iperf3  -s
docker run -itd  -p 5201:5201  --name iperf3_server networkstatic/iperf3  -s

启动 测试机

#  -c  server_ip
iperf3  -c 192.168.19.10
iperf3 -c 172.20.143.222
# client server
# if you use ubuntu debein , apt install iperf3
docker run -it --rm --name iperf3_client networkstatic/iperf3  -c 192.168.19.10
docker stop iperf3_client && docker rm iperf3_client

不用docker的话需要自行pip install

pip install speed-cli
speed-cli
相关文章
|
2天前
|
安全 Linux 测试技术
|
2天前
|
安全 Linux Windows
Linux中Shutdown命令使用介绍
Linux中Shutdown命令使用介绍
|
3天前
|
缓存 关系型数据库 Linux
Linux目录结构:深入理解与命令创建指南
Linux目录结构:深入理解与命令创建指南
|
3天前
|
数据挖掘 Linux vr&ar
Linux命令实战:解决日常问题的利器
Linux命令实战:解决日常问题的利器
|
3天前
|
NoSQL Linux Redis
Redis的介绍,以及Redis的安装(本机windows版,虚拟机Linux版)和Redis常用命令的介绍
Redis的介绍,以及Redis的安装(本机windows版,虚拟机Linux版)和Redis常用命令的介绍
17 0
|
3天前
|
安全 Linux Shell
linux基础命令详解
linux基础命令详解
9 0
|
4天前
|
Linux
Linux常用命令2
Linux常用命令2
6 0
|
4天前
|
Linux
Linux常用命令1
Linux常用命令1
10 0
|
4天前
|
人工智能 Linux Shell
linux命令-条件判断-test
linux命令-条件判断-test
8 1