iperf的安装和使用,测试千兆网100M每秒 ,万兆网1G每秒

简介: 在Ubuntu上安装

安装

在Ubuntu上安装


sudo apt install iperf


在centos上安装


yum install epel-release

yum install iperf


启动

注意要在服务端关闭防火墙iptables -F

这个软件需要在客户端和服务端都启动,才能进行连接测试。

在服务端启动


iperf -s


在客户端启动


iperf -c 10.168.85.178


测试结果

万兆网


scutech@infokist:~$ iperf -c 10.168.85.178 -i 1
------------------------------------------------------------
Client connecting to 10.168.85.178, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 10.168.85.155 port 50438 connected with 10.168.85.178 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  1.08 GBytes  9.25 Gbits/sec
[  3]  1.0- 2.0 sec  1.10 GBytes  9.42 Gbits/sec
[  3]  2.0- 3.0 sec  1.10 GBytes  9.41 Gbits/sec
[  3]  3.0- 4.0 sec  1.10 GBytes  9.42 Gbits/sec
[  3]  4.0- 5.0 sec  1.10 GBytes  9.42 Gbits/sec
[  3]  5.0- 6.0 sec  1.10 GBytes  9.41 Gbits/sec
[  3]  6.0- 7.0 sec  1.10 GBytes  9.41 Gbits/sec
[  3]  7.0- 8.0 sec  1.10 GBytes  9.41 Gbits/sec
[  3]  8.0- 9.0 sec  1.10 GBytes  9.42 Gbits/sec
[  3]  0.0-10.0 sec  10.9 GBytes  9.40 Gbits/sec



千兆网

scutech@infokist:~$ iperf -c 192.168.87.178  -i 1
------------------------------------------------------------
Client connecting to 192.168.87.178, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.87.155 port 49080 connected with 192.168.87.178 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   113 MBytes   949 Mbits/sec
[  3]  1.0- 2.0 sec   112 MBytes   942 Mbits/sec
[  3]  2.0- 3.0 sec   112 MBytes   942 Mbits/sec
[  3]  3.0- 4.0 sec   112 MBytes   943 Mbits/sec
[  3]  4.0- 5.0 sec   113 MBytes   946 Mbits/sec
[  3]  5.0- 6.0 sec   112 MBytes   940 Mbits/sec
[  3]  6.0- 7.0 sec   112 MBytes   938 Mbits/sec
[  3]  7.0- 8.0 sec   112 MBytes   942 Mbits/sec
[  3]  8.0- 9.0 sec   112 MBytes   943 Mbits/sec
[  3]  9.0-10.0 sec   112 MBytes   942 Mbits/sec
[  3]  0.0-10.0 sec  1.10 GBytes   942 Mbits/sec


服务端

[root@localhost ~]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 10.168.85.178 port 5001 connected with 10.168.85.155 port 50436
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  10.9 GBytes  9.38 Gbits/sec
[  4] local 10.168.85.178 port 5001 connected with 10.168.85.155 port 50438
[  4]  0.0-10.0 sec  10.9 GBytes  9.40 Gbits/sec
[  4] local 192.168.87.178 port 5001 connected with 192.168.87.155 port 49080
[  4]  0.0-10.0 sec  1.10 GBytes   942 Mbits/sec
相关文章
|
4天前
|
NoSQL 关系型数据库 MySQL
涉及rocketMQ,jemeter等性能测试服务器的安装记录
涉及rocketMQ,jemeter等性能测试服务器的安装记录
16 1
|
2天前
|
Web App开发 测试技术 C++
Playwright安装与Python集成:探索跨浏览器测试的奇妙世界
Playwright是新兴的跨浏览器测试工具,相比Selenium,它支持Chrome、Firefox、WebKit,执行速度快,选择器更稳定。安装Playwright只需一条`pip install playwright`的命令,随后的`playwright install`会自动添加浏览器,无需处理浏览器驱动问题。这一优势免去了Selenium中匹配驱动的烦恼。文章适合寻求高效自动化测试解决方案的开发者。
10 2
|
3天前
|
网络安全 Docker 容器
测试开发环境下centos7.9下安装docker的minio
测试开发环境下centos7.9下安装docker的minio
|
4天前
|
JSON 应用服务中间件 Linux
skywalking内部测试服务器安装记录
skywalking内部测试服务器安装记录
10 0
|
12天前
|
Linux 测试技术 数据安全/隐私保护
CentOS安装MeterSphere并实现无公网IP远程访问本地测试平台
CentOS安装MeterSphere并实现无公网IP远程访问本地测试平台
|
22天前
|
分布式计算 Hadoop Scala
Spark【环境搭建 01】spark-3.0.0-without 单机版(安装+配置+测试案例)
【4月更文挑战第13天】Spark【环境搭建 01】spark-3.0.0-without 单机版(安装+配置+测试案例)
26 0
|
28天前
|
SQL Java 测试技术
Jmeter的安装与快速使用(做并发测试)
Jmeter的安装与快速使用(做并发测试)
20 0
|
2月前
|
消息中间件 Kafka Linux
Kafka【付诸实践 03】Offset Explorer Kafka 的终极 UI 工具安装+简单上手+关键特性测试(一篇学会使用 Offset Explorer)
【2月更文挑战第21天】Kafka【付诸实践 03】Offset Explorer Kafka 的终极 UI 工具安装+简单上手+关键特性测试(一篇学会使用 Offset Explorer)
248 2
|
4月前
|
测试技术 API 芯片
阿萨聊测试:如何在Mac 电脑上安装Postman?
阿萨聊测试:如何在Mac 电脑上安装Postman?
337 0
阿萨聊测试:如何在Mac 电脑上安装Postman?
|
4月前
|
网络协议 网络安全 Go
Kali下安装渗透测试常用工具dnsx和dirsearch
Kali下安装渗透测试常用工具dnsx和dirsearch
122 0

热门文章

最新文章