类映射中提供的速率统计信息在接口上仅显示 0000 bps

网络工程 思科 服务质量
2021-07-07 21:40:33

我想使用类映射(ACL 匹配)监视接口上提供的速率。


配置

Router#show policy-map interface port-channel 3

 Port-channel3 

  Service-policy input: GGC_ADSL

    Class-map: GGC_ADSL (match-all)
      0 packets, 0 bytes
      30 second offered rate 0000 bps
      Match: access-group name GGC_ADSL

    Class-map: GGC_ADSL_ALL (match-all)
      0 packets, 0 bytes
      30 second offered rate 0000 bps
      Match: access-group name GGC_ADSL_ALL

    Class-map: class-default (match-any)
      0 packets, 0 bytes
      30 second offered rate 0000 bps, drop rate 0000 bps
      Match: any 
        0 packets, 0 bytes
        30 second rate 0 bps


Router#show ip access-lists GGC_ADSL

Extended IP access list GGC_ADSL

    10 permit ip any 11.11.0.0 0.0.255.255

Router#show ip access-lists GGC_ADSL_ALL

Extended IP access list GGC_ADSL_ALL

    10 permit ip any any

Router#show policy-map GGC_ADSL

Policy Map GGC_ADSL
 Class GGC_ADSL
 Class GGC_ADSL_ALL



Router#show version 

Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-M), Version 12.2(33)SXI13, RELEASE SOFTWARE (fc3)

为什么每类提供的额定值为 0000 bps?请给我建议。

这是使用设置 DSCP 位操作提供的速率显示的最后一个配置。

 #show policy-map interface port-channel 3 

服务策略输入:GGC_ADSL

class-map: GGC_ADSL (match-all)
  Match: access-group name GGC_ADSL
  set dscp 10:
  Earl in slot 2 :
0 bytes
30 second offered rate 0 bps
aggregate-forwarded 0 bytes
  Earl in slot 3 :
0 bytes
30 second offered rate 0 bps
aggregate-forwarded 0 bytes
  Earl in slot 5 :
0 bytes
30 second offered rate 0 bps
aggregate-forwarded 0 bytes
  Earl in slot 7 :
7397272408547 bytes
30 second offered rate 1445423448 bps
aggregate-forwarded 7397272408547 bytes

Class-map: GGC_ADSL_ALL (match-all)
  0 packets, 0 bytes
  30 second offered rate 0000 bps
  Match: access-group name GGC_ADSL_ALL

Class-map: class-default (match-any)
  0 packets, 0 bytes
  30 second offered rate 0000 bps, drop rate 0000 bps
  Match: any 
    0 packets, 0 bytes
    30 second rate 0 bps


 #show policy-map GGC_ADSL
 Policy Map GGC_ADSL
   Class GGC_ADSL
     set dscp af11
   Class GGC_ADSL_ALL

我的问题是如何在不使用 DSCP 位操作的情况下显示提供的费率?

1个回答

从您的配置来看,您似乎没有在配置的源和与您的访问列表匹配的目标之间发起任何流量。提供的速率基本上是指进入该类映射(“提供”给该类)的流量。由于在最后一个 30 秒的轮询间隔内没有流量到达接口,因此提供和丢弃率为 0 bps。