国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > CentOS > 正文

CentOS下千兆網卡帶寬測試詳解

2020-07-08 12:46:43
字體:
來源:轉載
供稿:網友

iperf 是一個基于C/S模型的純帶寬測試軟件,可以測試網卡的吞吐量。

iperf的好處是純粹發包和接收,防止硬盤拖后腿,影響測試結果。

本文以千兆網卡Bcom 5720 進行測試,環境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

以上信息顯示,當前網卡傳輸速度約為940Mbit/s,接近理論速度1G/s,下載速度112M/s,也接近理論速度125M/s,通過cacti 帶寬監控,也顯示上述統計結果。

至此,千兆網卡驗明正身。

補充說明,影響帶寬的可能原因有很多:

1、交換機是百兆的,通信樞紐

2、千兆網卡工作在百兆模式,參與測試的機器任意一臺工作在百兆都不行

3、用真實的硬盤文件進行測試,硬盤速度拖后腿

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 玛曲县| 杭州市| 黄浦区| 南城县| 二连浩特市| 绥德县| 正定县| 达日县| 黑龙江省| 景洪市| 贵溪市| 黄平县| 栾城县| 高雄市| 东方市| 巴马| 五寨县| 凌源市| 错那县| 衢州市| 宝坻区| 佛冈县| 靖江市| 阿拉尔市| 扶绥县| 建昌县| 抚州市| 罗甸县| 略阳县| 大名县| 杨浦区| 嵊泗县| 西乌珠穆沁旗| 安乡县| 梓潼县| 柳州市| 五华县| 武川县| 河源市| 永川市| 晋宁县|