62-擁塞避免與隊列調度典型配置舉例
本章節下載: 62-擁塞避免與隊列調度典型配置舉例 (207.70 KB)
H3C S6800&S6860&S6861產品擁塞避免與隊列調度配置舉例
Copyright © 2019 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
目 錄
本文檔介紹了擁塞避免與隊列調度的配置舉例。
擁塞避免是通過監視網絡資源的使用情況,在發生擁塞時主動丟棄報文,調節網絡流量,以避免網絡過載。
隊列調度是指當設備的某個端口發生擁塞時,先通過配置隊列調度策略修改各隊列的調度參數,然後在該端口應用該策略來實現擁塞管理功能。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文假設您已了解隊列調度特性。
如圖3-1所示,Device通過端口FGE1/0/49與網關相連,來自Internet的業務有語音、視頻、數據經由網關和Device到達用戶。其中:
· 語音業務通過VLAN 6發送,攜帶的802.1p優先級分別為6;
· 其中視頻業務通過VLAN 4發送,攜帶的802.1p優先級分別為4;
· 其中數據業務通過VLAN 2發送,攜帶的802.1p優先級分別為2;
由於Device入端口FGE1/0/49的速率大於出端口XGE1/0/1和XGE1/0/2的速率,在這兩個出端口處可能會發生擁塞。為了減輕網絡擁塞造成的影響,保證用戶對於高優先級、低延遲業務的服務要求,配置需求如下:
· 當網絡發生擁塞時,三種業務(語音業務:視頻業務:數據業務)之間按照調度比重1:2:2的權重進行調度。
· 當發生嚴重擁塞時,要求采用隨機丟棄的策略,防止出現TCP全局同步現象。
· 本例中三種業務均采用了802.1p優先級,為了將三種業務流量入不同的隊列,可以配置Device的入端口FGE1/0/49信任報文的802.1p優先級,將不同的業務流量指定至對應的隊列中。
· 當發生擁塞時,若要實現三種業務按照1:2:2的權重比例進行調度,可以將三種業務規劃到同一WRR優先組的三個隊列中,並配置這三個隊列的調度權重比為1:2:2。
· 由於組網中存在不同類型的流量,因此需要根據不同流量的特點,製定不同的丟棄策略。根據隨機丟棄數據對於各類數據的影響程度,丟棄概率由大到小的排列為:語音、視頻、數據。本例中以表3-1中列出的丟棄數據為例,配置WRED功能。
業務類型 |
顏色 |
閾值下限 |
閾值上限 |
丟棄概率 |
語音 |
黃 |
1000 |
1500 |
3% |
紅 |
500 |
1000 |
30% |
|
視頻 |
黃 |
1000 |
1500 |
2% |
紅 |
500 |
1000 |
20% |
|
數據 |
黃 |
1000 |
1500 |
1% |
紅 |
500 |
1000 |
10% |
產品 |
軟件版本 |
S6800係列 S6860係列 S6861係列 |
Release 2702 |
(1) 配置Device上允許不同業務對應的VLAN報文通過
# 創建三種業務所需的VLAN。
<Device> system-view
[Device] vlan 2
[Device-vlan2] quit
[Device] vlan 4
[Device-vlan4] quit
[Device] vlan 6
[Device-vlan6] quit
# 配置各端口加入對應的VLAN。
[Device] interface fortygige 1/0/49
[Device-FortyGigE1/0/49] port link-type trunk
[Device-FortyGigE1/0/49] port trunk permit vlan 2 4 6
[Device-FortyGigE1/0/49] quit
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] port link-type trunk
[Device-Ten-GigabitEthernet1/0/1] port trunk permit vlan 2 4 6
[Device-Ten-GigabitEthernet1/0/1] quit
[Device] interface ten-gigabitethernet 1/0/2
[Device-Ten-GigabitEthernet1/0/2] port link-type trunk
[Device-Ten-GigabitEthernet1/0/2] port trunk permit vlan 2 4 6
[Device-Ten-GigabitEthernet1/0/2] quit
(2) 配置業務流量的入端口上配置信任報文的802.1p優先級
[Device] interface fortygige 1/0/49
[Device-FortyGigE1/0/49] qos trust dot1p
[Device-FortyGigE1/0/49] quit
(3) 配置WRR隊列
# 查看802.1p優先級到本地優先級映射表,確定各個業務對應的本地優先級。
[Device] display qos map-table dot1p-lp
MAP-TABLE NAME: dot1p-lp TYPE: pre-define
IMPORT : EXPORT
0 : 2
1 : 0
2 : 1
3 : 3
4 : 4
5 : 5
6 : 6
7 : 7
# 在業務流量的出端口Ten-GigabitEthernet1/0/1上使能WRR隊列。
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] qos wrr weight
# 配置WRR隊列,實現數據、視頻和語音三個隊列之間的調度權重比為2:2:1。
[Device-Ten-GigabitEthernet1/0/1] qos wrr 1 group 1 weight 2
[Device-Ten-GigabitEthernet1/0/1] qos wrr 4 group 1 weight 2
[Device-Ten-GigabitEthernet1/0/1] qos wrr 6 group 1 weight 1
[Device-Ten-GigabitEthernet1/0/1] quit
# 在業務流量的出端口Ten-GigabitEthernet1/0/2上使能WRR隊列。
[Device] interface ten-gigabitethernet 1/0/2
[Device-Ten-GigabitEthernet1/0/2] qos wrr weight
# 配置WRR隊列,實現數據、視頻和語音三個隊列之間的調度權重比為2:2:1。
[Device-Ten-GigabitEthernet1/0/2] qos wrr 1 group 1 weight 2
[Device-Ten-GigabitEthernet1/0/2] qos wrr 4 group 1 weight 2
[Device-Ten-GigabitEthernet1/0/2] qos wrr 6 group 1 weight 1
[Device-Ten-GigabitEthernet1/0/2] quit
(4) 配置擁塞避免
# 創建WRED表。
[Device] qos wred queue table droppolicy
[Device-wred-table-droppolicy] queue 6 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 3
[Device-wred-table-droppolicy] queue 6 drop-level 2 low-limit 500 high-limit 1000 discard-probability 30
[Device-wred-table-droppolicy] queue 4 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 2
[Device-wred-table-droppolicy] queue 4 drop-level 2 low-limit 500 high-limit 1000 discard-probability 20
[Device-wred-table-droppolicy] queue 1 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 1
[Device-wred-table-droppolicy] queue 1 drop-level 2 low-limit 500 high-limit 1000 discard-probability 10
[Device-wred-table-droppolicy] quit
# 在業務流量的出端口Ten-GigabitEthernet1/0/1和 Ten-GigabitEthernet1/0/2上應用WRED表。
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] qos wred apply droppolicy
[Device-Ten-GigabitEthernet1/0/1] quit
[Device] interface ten-gigabitethernet 1/0/2
[Device-Ten-GigabitEthernet1/0/2] qos wred apply droppolicy
[Device-Ten-GigabitEthernet1/0/2] quit
# 查看業務流量出端口上WRR隊列調度的配置情況。(此處僅列出Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2端口的配置)
[Device] display qos queue wrr interface
Interface: Ten-GigabitEthernet1/0/1
Output queue: Weighted Round Robin queuing
Queue ID Queue name Group Weight
---------------------------------------------------
0 be 1 1
1 af1 1 2
2 af2 1 3
3 af3 1 4
4 af4 1 2
5 ef 1 9
6 cs6 1 1
7 cs7 1 15
Interface: Ten-GigabitEthernet1/0/2
Output queue: Weighted Round Robin queuing
Queue ID Queue name Group Weight
---------------------------------------------------
0 be 1 1
1 af1 1 2
2 af2 1 3
3 af3 1 4
4 af4 1 2
5 ef 1 9
6 cs6 1 1
7 cs7 1 15
# 查看業務流量出端口上的WRED策略的配置信息和運行情況。
[Device] display qos wred table
Table name: droppolicy
Table type: Queue based WRED
QID gmin gmax gprob ymin ymax yprob rmin rmax rprob exponent ECN
----------------------------------------------------------------------------
0 100 1000 10 100 1000 10 100 1000 10 9 N
1 100 1000 10 1000 1500 1 500 1000 10 9 N
2 100 1000 10 100 1000 10 100 1000 10 9 N
3 100 1000 10 100 1000 10 100 1000 10 9 N
4 100 1000 10 1000 1500 2 500 1000 20 9 N
5 100 1000 10 100 1000 10 100 1000 10 9 N
6 100 1000 10 1000 1500 3 500 1000 30 9 N
7 100 1000 10 100 1000 10 100 1000 10 9 N
#
vlan 1
#
vlan 2
#
vlan 4
#
vlan 6
#
qos wred queue table droppolicy
queue 1 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 1
queue 1 drop-level 2 low-limit 500 high-limit 1000 discard-probability 10
queue 4 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 2
queue 4 drop-level 2 low-limit 500 high-limit 1000 discard-probability 20
queue 6 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 3
queue 6 drop-level 2 low-limit 500 high-limit 1000 discard-probability 30
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 to 2 4 6
qos wrr weight
qos wrr af1 group 1 weight 2
qos wrr af4 group 1 weight 2
qos wrr cs6 group 1 weight 1
qos wred apply droppolicy
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 to 2 4 6
qos wrr weight
qos wrr af1 group 1 weight 2
qos wrr af4 group 1 weight 2
qos wrr cs6 group 1 weight 1
qos wred apply droppolicy
#
interface FortyGigE1/0/49
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 to 2 4 6
#
return
· H3C S6800[60][61](R27xx) & S6820(R630x)係列以太網交換機 ACL和QoS配置指導
· H3C S6800[60][61](R27xx) & S6820(R630x)係列以太網交換機 ACL和QoS命令參考
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!