S12700 流策略重标记dscp优先级不生效

发布时间:  2017-05-20 浏览次数:  124 下载次数:  0
问题描述

S12700 流策略重标记dscp优先级不生效

关键配置:
#
acl name qos 3080 
 rule 5 permit ip source 192.168.42.0 0.0.0.255 destination 192.168.254.0 0.0.0.255
#
traffic classifier qos operator or
 if-match acl qos
#
traffic behavior qos
 remark dscp ef
#
traffic policy qos match-order config
 classifier qos behavior qos
#
interface GigabitEthernet2/0/16
port link-type access
port default vlan 20
traffic-policy qos inbound
#
interface GigabitEthernet3/0/35
port link-type access
port default vlan 100
#

处理过程

1.S12700在流量的入口2/0/16使用流策略remark dscp ef,在流量的出口3/0/35上抓包核实到报文中的dscp优先级没有更改。

2.接口上没有配置对报文按照DSCP优先级进行映射和应用DiffServ域,于是在接口下添加trust dscp和trust upstream default配置,在流量的出口3/0/35上重新抓包核实到报文中的dscp优先级已被更改。
[HUAWEI]interface GigabitEthernet2/0/16
[HUAWEI-GigabitEthernet2/0/16]trust upstream default
[HUAWEI-GigabitEthernet2/0/16]trust dscp
[HUAWEI-GigabitEthernet2/0/16]quit
[HUAWEI]interface GigabitEthernet3/0/35
[HUAWEI-GigabitEthernet3/0/35]trust upstream default
[HUAWEI-GigabitEthernet3/0/35]trust dscp
[HUAWEI-GigabitEthernet3/0/35]quit

重标记dscp优先级成功的报文:


3.但查看接口上基于队列的流量统计信息,没有按照默认的优先级映射进入队列5(默认的优先级映射关系中,EF优先级对应的队列索引为5)。
接口上查看队列5没有流量:
[HUAWEI]display qos queue statistics interface GigabitEthernet 2/0/16                         
------------------------------------------------------------
  Queue ID          : 5                          
  CIR(kbps)         : 0                          
  PIR(kbps)         : 1,000,000                  
  Used Length(byte) : 0                          
  Passed Packets    : 0                          
  Passed Rate(pps)  : 0                          
  Passed Bytes      : 0                          
  Passed Rate(bps)  : 0 
                         
  Dropped Packets   : 0                          
  Dropped Rate(pps) : 0                          
  Dropped Bytes     : 0                          
  Dropped Rate(bps) : 0                          
------------------------------------------------------------

[HUAWEI]display qos queue statistics interface GigabitEthernet 3/0/35
------------------------------------------------------------
  Queue ID          : 5                          
  CIR(kbps)         : 0                          
  PIR(kbps)         : 1,000,000                  
  Used Length(byte) : 0                          
  Passed Packets    : 0                          
  Passed Rate(pps)  : 0                          
  Passed Bytes      : 0                          
  Passed Rate(bps)  : 0 
                         
  Dropped Packets   : 0                          
  Dropped Rate(pps) : 0                          
  Dropped Bytes     : 0                          
  Dropped Rate(bps) : 0                          
------------------------------------------------------------

4.报文的内部优先级与端口的队列的对应关系是一对一。在实际部署时,只调整业务流量dscp优先级无法将业务流量放入队列中进行调度,因此还需要调整业务流量的内部优先级。在流行为中配置重标记内部优先级后,问题解决:
#
traffic behavior qos
remark dscp ef
remark local-precedence ef
#

解决方案

在接口下添加对报文按照DSCP优先级进行映射和应用DiffServ域的配置,并重标记内部优先级,问题解决

END