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

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