首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >QoS,标记地图不正确

QoS,标记地图不正确
EN

Network Engineering用户
提问于 2014-12-04 12:40:23
回答 1查看 1.9K关注 0票数 5

我的边缘路由器有点小问题。我使用QoS,一个LLQ队列的标准CBWFQ模板。但是我在“ef”类的访问列表中有匹配,路由器可能没有正确标记数据包。

我的配置如下所示,希望这能给出更好的解释。

整个排队/调度和成形映射:

代码语言:javascript
复制
!
policy-map etm-blazeknet
 class realtime
  priority 512
  police 512000 conform-action transmit  exceed-action drop
 class priority
  bandwidth remaining percent 40
  random-detect dscp-based
 class missioncritical
  bandwidth remaining percent 39
  random-detect dscp-based
 class transactional
  bandwidth remaining percent 16
  random-detect dscp-based
 class general
  bandwidth remaining percent 1
  random-detect dscp-based
 class class-default
  bandwidth remaining percent 4
  random-detect dscp-based
policy-map shape-etm-blazeknet
 class class-default
  shape average 3400000
  service-policy etm-SpiraxSarco-SXSNet

用于实时和ef的类映射:

代码语言:javascript
复制
class-map match-any realtime
 match ip dscp cs5  ef
class-map match-all ef
 match access-group name ef
 match protocol rtp
 .
 .
 .

标记地图的一部分:

代码语言:javascript
复制
policy-map ingress-mark
 class ef
  set ip dscp ef
 class af41
  set ip dscp af41
  .
  .
  .

显示匹配的ef类映射和显示命令的访问列表:

代码语言:javascript
复制
ip access-list extended ef
 permit udp any range 49152 57500 any range 49152 57500
 permit tcp any range 49152 57500 any range 49152 57500

sxs-sgsingapor-2677033#sh access-lists ef
Extended IP access list ef
    10 permit udp any range 49152 57500 any range 49152 57500
    20 permit tcp any range 49152 57500 any range 49152 57500 (234 matches)
sxs-sgsingapor-2677033#

正如您所看到的,在ef访问列表中有匹配项,但是当我查看标记地图的状态时,我发现没有标记任何数据包。

代码语言:javascript
复制
sxs-sgsingapor-2677033#sh policy-map int in
 GigabitEthernet0/0
 GigabitEthernet0/1

  Service-policy input: ingress-mark

    Class-map: ef (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group name ef
      Match: protocol rtp
      QoS Set
        dscp ef
          Packets marked 0
      .
      .
      .

在输出映射中也是如此,优先级类不适用于我。当然,标记地图是附在局域网接口上的。

如果有人有同样的问题,我怎么解决呢?一切似乎都很好,我从来没有遇到过类似的问题。其他课程的评分没问题。

EN

回答 1

Network Engineering用户

回答已采纳

发布于 2014-12-04 12:59:18

我忽略了match-allclass-map ef中的语句。在我的例子中,这意味着到达LAN接口的数据包必须同时匹配语句access-group name efprotocol rtp。问题是数据包不符合第二条件protocol rtp

代码语言:javascript
复制
class-map match-all ef
 match access-group name ef
 match protocol rtp

所以我把它改成了match-any

代码语言:javascript
复制
class-map match-any ef
 match access-group name ef
 match protocol rtp
票数 4
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/13410

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档