我的边缘路由器有点小问题。我使用QoS,一个LLQ队列的标准CBWFQ模板。但是我在“ef”类的访问列表中有匹配,路由器可能没有正确标记数据包。
我的配置如下所示,希望这能给出更好的解释。
整个排队/调度和成形映射:
!
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的类映射:
class-map match-any realtime
match ip dscp cs5 ef
class-map match-all ef
match access-group name ef
match protocol rtp
.
.
.标记地图的一部分:
policy-map ingress-mark
class ef
set ip dscp ef
class af41
set ip dscp af41
.
.
.显示匹配的ef类映射和显示命令的访问列表:
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访问列表中有匹配项,但是当我查看标记地图的状态时,我发现没有标记任何数据包。
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
.
.
.在输出映射中也是如此,优先级类不适用于我。当然,标记地图是附在局域网接口上的。
如果有人有同样的问题,我怎么解决呢?一切似乎都很好,我从来没有遇到过类似的问题。其他课程的评分没问题。
发布于 2014-12-04 12:59:18
我忽略了match-all在class-map ef中的语句。在我的例子中,这意味着到达LAN接口的数据包必须同时匹配语句access-group name ef和protocol rtp。问题是数据包不符合第二条件protocol rtp。
class-map match-all ef
match access-group name ef
match protocol rtp所以我把它改成了match-any。
class-map match-any ef
match access-group name ef
match protocol rtphttps://networkengineering.stackexchange.com/questions/13410
复制相似问题