CentOS下千兆網(wǎng)卡帶寬測試詳解

iperf 是一個基于C/S模型的純帶寬測試軟件,可以測試網(wǎng)卡的吞吐量。
iperf的好處是純粹發(fā)包和接收,防止硬盤拖后腿,影響測試結果。
本文以千兆網(wǎng)卡Bcom 5720 進行測試,環(huán)境CentOS 6.4 x64
在兩臺機器上分別安裝iperf
yum install iperf --enablerepo=epel
在其中一臺以服務端方式啟動,并開放防火墻5001端口
iperf -s -i 1 -w 448k
啟動結果如下:
Server listening on TCP port 5001
TCP window size: 448 KByte
在另一臺上,以客戶端方式連接到服務端,測試10分鐘
iperf -c 10.10.10.22 -i 1 -w 448k -t 600
此時,服務端會顯示如下信息
[ 4] local 10.10.10.22 port 5001 connected with 10.10.10.11 port 56251
[ ID] Interval Transfer Bandwidth
[ 4] 0.0- 1.0 sec 112 MBytes 941 Mbits/sec
[ 4] 1.0- 2.0 sec 112 MBytes 941 Mbits/sec
[ 4] 2.0- 3.0 sec 112 MBytes 941 Mbits/sec
[ 4] 3.0- 4.0 sec 112 MBytes 941 Mbits/sec
[ 4] 4.0- 5.0 sec 112 MBytes 941 Mbits/sec
[ 4] 5.0- 6.0 sec 112 MBytes 941 Mbits/sec
[ 4] 6.0- 7.0 sec 112 MBytes 941 Mbits/sec
[ 4] 7.0- 8.0 sec 112 MBytes 941 Mbits/sec
客戶端信息則是
3] 46.0-47.0 sec 112 MBytes 942 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 47.0-48.0 sec 112 MBytes 941 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 48.0-49.0 sec 112 MBytes 942 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 49.0-50.0 sec 112 MBytes 941 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 50.0-51.0 sec 112 MBytes 942 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 51.0-52.0 sec 112 MBytes 941 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 52.0-53.0 sec 112 MBytes 941 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 53.0-54.0 sec 112 MBytes 942 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 54.0-55.0 sec 112 MBytes 941 Mbits/sec
以上信息顯示,當前網(wǎng)卡傳輸速度約為940Mbit/s,接近理論速度1G/s,下載速度112M/s,也接近理論速度125M/s,通過cacti 帶寬監(jiān)控,也顯示上述統(tǒng)計結果。
至此,千兆網(wǎng)卡驗明正身。
補充說明,影響帶寬的可能原因有很多:
1、交換機是百兆的,通信樞紐
2、千兆網(wǎng)卡工作在百兆模式,參與測試的機器任意一臺工作在百兆都不行
3、用真實的硬盤文件進行測試,硬盤速度拖后腿
相關文章
- 使用udev管理網(wǎng)卡;網(wǎng)卡的udev配置文件路徑為:etc/udev/rules.d/*net*.rules;下面小編就為大家詳細的講一下CentOS6.5使用udev如何管理網(wǎng)卡,有需要的朋友一起去看看吧2016-12-20
Centos系統(tǒng)下查看和修改網(wǎng)卡Mac地址(附ifconfig命令格式)
本文主要為大家簡單的介紹了linux/Centos下如何查看網(wǎng)卡Mac地址?Linux/Centos下如何永久修改網(wǎng)卡MAC地址?以及臨時修改MAC地址,一起來看看吧2016-11-22CentOS中無線網(wǎng)卡的驅(qū)動安裝與基本操作命令教程
這篇文章主要介紹了CentOS中無線網(wǎng)卡的驅(qū)動安裝與基本操作命令教程,包括對無線網(wǎng)絡的掃描及設置無線網(wǎng)卡IP等命令行中的操作例子,需要的朋友可以參考下2016-05-03虛擬機中向CentOS添加網(wǎng)卡無法識別的問題解決
這篇文章主要介紹了虛擬機中向CentOS添加網(wǎng)卡無法識別的問題解決,同時作者還介紹了將CentOS7中網(wǎng)卡名修改為通常大家所更熟悉的eth0的方法,需要的朋友可以參考下2016-03-03CentOS雙網(wǎng)卡時改變網(wǎng)卡編號和配置靜態(tài)路由的方法
這篇文章主要介紹了CentOS雙網(wǎng)卡時改變網(wǎng)卡編號和配置靜態(tài)路由的方法,同樣適用于Fedora等其他的RedHat系的Linux系統(tǒng)使用時借鑒,需要的朋友可以參考下2015-11-30CentOS中關閉防火墻及解決找不到網(wǎng)卡問題的方法
這篇文章主要介紹了CentOS中關閉防火墻及解決找不到網(wǎng)卡問題的方法,是CentOS服務器配置的基礎操作,需要的朋友可以參考下2015-10-14在CentOS系統(tǒng)上為一個網(wǎng)卡綁定多個IP地址的方法
這篇文章主要介紹了在CentOS系統(tǒng)上為一個網(wǎng)卡分配多個IP地址的方法,文中示例基于CentOS7版本,同時也適用于RedHat系的其他Linux系統(tǒng),需要的朋友可以參考下2015-06-06- 這篇文章主要介紹了在CentOS中綁定多塊網(wǎng)卡的教程,CentOS強大的官方網(wǎng)卡驅(qū)動支持是其最主要的有點之一,而多塊網(wǎng)卡又可以加大網(wǎng)站吞吐量,需要的朋友可以參考下2015-06-04
- Centos系統(tǒng)網(wǎng)卡怎么手動配置?平時裝linux系統(tǒng)用工具配置網(wǎng)絡經(jīng)常出一些搞不清楚的問題,在這里分享一下手動在linux系統(tǒng)里配置網(wǎng)卡,下面我們一起來看看2015-05-05
centos配置網(wǎng)卡修改ip地址和修改網(wǎng)關的方法
本文主要介紹了centos配置網(wǎng)卡、修改網(wǎng)關、修改DNS的方法,大家參考使用吧2014-01-17