• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

08-ACL和QoS配置举例

06-H3C_拥塞避免与队列调度典型配置举例

本章节下载 06-H3C_拥塞避免与队列调度典型配置举例  (173.92 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S7500E/S7500X-G/Configure/Typical_Configuration_Example/H3C_S7500X-G_CE-R7724-6W100/08/201807/1091747_30005_0.htm

06-H3C_拥塞避免与队列调度典型配置举例

拥塞避免与队列调度配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



1  简介

本文档介绍了拥塞避免与队列调度的配置举例。

拥塞避免是通过监视网络资源的使用情况,在发生拥塞时主动丢弃报文,调节网络流量,以避免网络过载

队列调度是指当设备的某个端口发生拥塞时,先通过配置队列调度策略修改各队列的调度参数,然后在该端口应用该策略来实现拥塞管理功能。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文假设您已了解队列调度特性。

3  拥塞避免与队列调度典型配置举例

3.1  组网需求

图1所示,Device通过端口XGE1/0/27与网关相连,来自Internet的业务有语音、视频、数据经由网关和Device到达用户。其中:

·     语音业务通过VLAN 6发送,携带的802.1p优先级分别为6;

·     其中视频业务通过VLAN 4发送,携带的802.1p优先级分别为4;

·     其中数据业务通过VLAN 2发送,携带的802.1p优先级分别为2;

由于Device入端口XGE1/0/27的速率大于出端口XGE1/0/25和XGE1/0/26的速率,在这两个出端口处可能会发生拥塞。为了减轻网络拥塞造成的影响,保证用户对于高优先级、低延迟业务的服务要求,配置需求如下:

·     当网络发生拥塞时,三种业务(语音业务:视频业务:数据业务)之间按照调度比重1:2:2的权重进行调度。

·     当发生严重拥塞时,要求采用随机丢弃的策略,防止出现TCP全局同步现象。

图1 配置组网图

 

3.2  配置思路

·     本例中三种业务均采用了802.1p优先级,为了将三种业务流量入不同的队列,可以配置Device的入端口XGE1/0/27信任报文的802.1p优先级,将不同的业务流量指定至对应的队列中。

·     当发生拥塞时,若要实现三种业务按照1:2:2的权重比例进行调度,可以将三种业务规划到同一WRR优先组的三个队列中,并配置这三个队列的调度权重比为1:2:2。

·     由于组网中存在不同类型的流量,因此需要根据不同流量的特点,制定不同的丢弃策略。根据随机丢弃数据对于各类数据的影响程度,丢弃概率由大到小的排列为:语音、视频、数据。本例中以表1中列出的丢弃数据为例,配置WRED功能。

表1 拥塞避免参数

业务类型

颜色

阈值下限

阈值上限

丢弃概率

语音

1000

1500

3%

500

1000

30%

视频

1000

1500

2%

500

1000

20%

数据

1000

1500

1%

500

1000

10%

 

3.3  使用版本

本举例是在S7500XG-CMW710-R7724版本上进行配置和验证的。

3.4  配置步骤

3.4.1  Device的配置

(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 ten-gigabitEthernet 1/0/27

[Device-Ten-GigabitEthernet1/0/27] port link-type trunk

[Device-Ten-GigabitEthernet1/0/27] port trunk permit vlan 2 4 6

[Device-Ten-GigabitEthernet1/0/27] quit

[Device] interface ten-gigabitethernet 1/0/25

[Device-Ten-GigabitEthernet1/0/25] port link-type trunk

[Device-Ten-GigabitEthernet1/0/25] port trunk permit vlan 2 4 6

[Device-Ten-GigabitEthernet1/0/25] quit

[Device] interface ten-gigabitethernet 1/0/26

[Device-Ten-GigabitEthernet1/0/26] port link-type trunk

[Device-Ten-GigabitEthernet1/0/26] port trunk permit vlan 2 4 6

[Device-Ten-GigabitEthernet1/0/26] quit

(2)     配置业务流量的入端口上配置信任报文的802.1p优先级

[Device] interface Ten-GigabitEthernet 1/0/27

[Device-Ten-GigabitEthernet1/0/27] qos trust dot1p

[Device-Ten-GigabitEthernet1/0/27] 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/25上使能WRR队列。

[Device] interface ten-gigabitethernet 1/0/25

[Device-Ten-GigabitEthernet1/0/25] qos wrr byte-count

# 配置WRR队列,实现数据、视频和语音三个队列之间的调度权重比为2:2:1。

[Device-Ten-GigabitEthernet1/0/25] qos wrr 1 group 1 byte-count 2

[Device-Ten-GigabitEthernet1/0/25] qos wrr 4 group 1 byte-count 2

[Device-Ten-GigabitEthernet1/0/25] qos wrr 6 group 1 byte-count 1

[Device-Ten-GigabitEthernet1/0/25] quit

# 在业务流量的出端口Ten-GigabitEthernet1/0/26上使能WRR队列。

[Device] interface ten-gigabitethernet 1/0/26

[Device-Ten-GigabitEthernet1/0/26] qos wrr weight

# 配置WRR队列,实现数据、视频和语音三个队列之间的调度权重比为2:2:1。

[Device-Ten-GigabitEthernet1/0/26] qos wrr 1 group 1 byte-count 2

[Device-Ten-GigabitEthernet1/0/26] qos wrr 4 group 1 byte-count 2

[Device-Ten-GigabitEthernet1/0/26] qos wrr 6 group 1 byte-count 1

[Device-Ten-GigabitEthernet1/0/26] 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/25和 Ten-GigabitEthernet1/0/26上应用WRED表。

[Device] interface ten-gigabitethernet 1/0/25

[Device-Ten-GigabitEthernet1/0/25] qos wred apply droppolicy

[Device-Ten-GigabitEthernet1/0/25] quit

[Device] interface ten-gigabitethernet 1/0/26

[Device-Ten-GigabitEthernet1/0/26] qos wred apply droppolicy

[Device-Ten-GigabitEthernet1/0/26] quit

3.5  验证配置

# 查看业务流量出端口上WRR队列调度的配置情况。(此处仅列出Ten-GigabitEthernet1/0/25和Ten-GigabitEthernet1/0/26端口的配置)

[Device] display qos queue wrr interface

Interface: Ten-GigabitEthernet1/0/25                                           

 Output queue: Weighted Round Robin queuing                                    

 Queue ID     Queue name     Group     Byte count                              

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

 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/26                                           

 Output queue: Weighted Round Robin queuing                                    

 Queue ID     Queue name     Group     Byte count                              

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

 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      

3.6  配置文件

·     Device S1:

#

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/25

 port link-type trunk

 port link-type trunk                                                          

 port trunk permit vlan 1 to 2 4 6                                             

 qos wrr byte-count                                                            

 qos wrr af4 group 1 byte-count 2                                              

 qos wrr cs6 group 1 byte-count 1    

#

interface Ten-GigabitEthernet1/0/26

 port link-type trunk                                                          

 port trunk permit vlan 1 to 2 4 6                                             

 qos wrr byte-count                                                            

 qos wrr af4 group 1 byte-count 2                                              

 qos wrr cs6 group 1 byte-count 1                                               

#

interface Ten-GigabitEthernet1/0/27

 port link-type trunk                                                          

 port trunk permit vlan 1 to 2 4 6                                              

 qos wrr byte-count                                                            

 qos wrr af4 group 1 byte-count 2                                              

 qos wrr cs6 group 1 byte-count 1                                               

#

return

4  相关资料

·     H3C S7500X-G系列交换机 ACL和QoS配置指导-R7724

·     H3C S7500X-G系列交换机 ACL和QoS命令参考-R7724

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们