linux网卡汇聚带宽,iperf压测linux网卡带宽

1.安装

yum install iperf --enablerepo=epel

2.启动服务端

iperf -s -i 1

3.启动客户端测试10分钟

iperf -c 172.16.3.153 -i 1 -t 600

-w窗口越小带宽越不能体现

4.客户端显示

Connecting to host 172.16.3.145, port 5201

[ 4] local 172.16.3.153 port 36895 connected to 172.16.3.145 port 5201

[ ID] Interval Transfer Bandwidth Retr Cwnd

[ 4] 0.00-1.00 sec 789 MBytes 6.61 Gbits/sec 138 1.95 MBytes

[ 4] 1.00-2.00 sec 1.08 GBytes 9.24 Gbits/sec 23 1.39 MBytes

[ 4] 2.00-3.00 sec 1.08 GBytes 9.25 Gbits/sec 0 1.46 MBytes

[ 4] 3.00-4.00 sec 1.08 GBytes 9.25 Gbits/sec 10 1.08 MBytes

5.服务端显示

Server listening on 5201

-----------------------------------------------------------

Accepted connection from 172.16.3.153, port 36894

[ 5] local 172.16.3.145 port 5201 connected to 172.16.3.153 port 36895

[ ID] Interval Transfer Bandwidth

[ 5] 0.00-1.00 sec 743 MBytes 6.23 Gbits/sec

[ 5] 1.00-2.00 sec 1.07 GBytes 9.23 Gbits/sec

[ 5] 2.00-3.00 sec 1.08 GBytes 9.25 Gbits/sec

[ 5] 3.00-4.00 sec 1.08 GBytes 9.27 Gbits/sec

[ 5] 4.00-5.00 sec 1.08 GBytes 9.28 Gbits/sec

6.网卡速度

[root@slave01 ~]# ethtool eth0

Supported link modes: 1000baseT/Full

10000baseT/Full

Supported pause frame use: No

Supports auto-negotiation: No

Advertised link modes: Not reported

Advertised pause frame use: No

Advertised auto-negotiation: No

Speed: 10000Mb/s

7.zabbix图形趋势

80c296e7ecc4460d0bbb30f2a1ebcabe.png

8.windows压测工具

什么是Iperf Iperf 是一个网络性能测试工具 Iperf可以测试TCP和UDP带宽质量 Iperf可以测量最大TCP带宽 具有多种参数和UDP特性 Iperf可以报告带宽 延迟抖动和数据包丢失 编译与安装 Iperf2 0 2目前仅提供源码包的下载 当你下载到Iperf源码包后 在类unix系统上 需要先解压缩源码包 使用解压缩命令gzip或tar 解压后会产生新文件夹“Iperf 2 0 2” Iperf2 0 2在以下操作系统可以很好的被编译:Linux SGI IRIX HP UX Solaris AIX 和Cray UNICOS 使用“make”命令编译Iperf源码 完整的编译命令如下: tar xvf iperf 2 0 2 tar gz cd iperf 2 0 2 configure make 编译成功后 使用以下命令安装Iperf: make install 重新编译Iperf 最简单的方法是使用以下命令: make distclean configure make 功能介绍 TCP 测量网络带宽 报告MSS MTU值的大小和观测值 支持TCP窗口值通过套接字缓冲 当P线程或Win32线程可用时 支持多线程 客户端与服务端支持同时多重连接 UDP 客户端可以创建指定带宽的UDP流 测量丢包 测量延迟 支持多播 当P线程可用时 支持多线程 客户端与服务端支持同时多重连接(不支持 Windows) 在适当的地方 选项可以使用K(kilo )和M(mega ) 例如131072字节可以用128K代替 可以指定运行的总时间 甚至可以设置传输的数据总量 在报告 为数据选用最合适的单位 服务器支持多重连接 而不是等待一个单线程测试 在指定时间间隔重复显示网络带宽 波动和丢包情况 服务器端可作为后台程序运行 服务器端可作为Windows 服务运行 使用典型数据流来测试链接层压缩对于可用带宽的影响 命令使用: for UDP Sending: iperf c [IP Addr] i 1 p [port] u t 10000 b 2M for UDP Receiving: iperf s i 1 u p [port] iperf c 10 0 5 5 i 1 p 6015 u t 10000 b 128k iperf s i 1 u p 6005 iperf c 10 18 61 66 i 1 p 6006 u t 99999 b 128k iperf s i 1 u p 6006 t 999999 运行后的结果在Clinet端: >iperf c 10 0 5 235 i 1 p 6005 u t 60 b 128k Client connecting to 10 0 5 235 UDP port 6005 Sending 1470 byte datagrams UDP buffer size: 8 00 KByte default [ ID] Interval Transfer Bandwidth [1868] 0 0 60 2 sec 940 KBytes 128 Kbits sec [1868] Server Report: [1868] 0 0 60 8 sec 940 KBytes 127 Kbits sec 13 838 ms 0 655 0% [1868] Sent 655 datagrams">什么是Iperf Iperf 是一个网络性能测试工具 Iperf可以测试TCP和UDP带宽质量 Iperf可以测量最大TCP带宽 具有多种参数和UDP特性 Iperf可以报告带宽 延迟抖动和数据包丢失 编译与安装 Iperf2 0 2目前仅提供源码包的下载 当 [更多]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值