IOS-XR - 如何在接口上监管带宽

网络工程 服务质量 警务 cisco-ios-xr
2021-08-01 19:18:03

如何以直接的方式获得 IOS-XR 上某个接口上监管的带宽。

在IOS中,我执行

show policy-map interface Gi1/1.1000

我清楚地得到了接口上的 BW 监管

 GigabitEthernet1/1.1000

  Service-policy output: cos-REF0186382

    class-map: class-default (match-any)
      Match: any 
      police :
        10600000 bps 1250000 limit 1250000 extended limit
      Earl in slot 1 :
        0 bytes
        30 second offered rate 0 bps
        aggregate-forwarded 0 bytes action: transmit
        exceeded 0 bytes action: drop
        aggregate-forward 0 bps exceed 0 bps 
      Earl in slot 5 :
        1111006353149 bytes
        30 second offered rate 204584 bps
        aggregate-forwarded 1082398797572 bytes action: transmit
        exceeded 28607555577 bytes action: drop
        aggregate-forward 210768 bps exceed 0 bps   

我怎样才能在 IOS-XR 上获得类似的信息。通过类似的命令,我得到了计数器,但没有关于配置的监管 BW 的信息。

RP/0/RSP0/CPU0:PE2#show policy-map interface Te0/0/0/1.1000
TenGigE0/0/0/1.1000 direction input: Service Policy not installed

TenGigE0/0/0/1.1000 output: cos-REF123456789

Class class-default
  Classification statistics          (packets/bytes)     (rate - kbps)
    Matched             :                   0/0                    0
    Transmitted         :                   0/0                    0
    Total Dropped       :                   0/0                    0
    Policy cos-po2-REF123456789 Class cos-vo-1
      Classification statistics          (packets/bytes)     (rate - kbps)
        Matched             :                   0/0                    0
        Transmitted         :                   0/0                    0
        Total Dropped       :                   0/0                    0
      Policing statistics                (packets/bytes)     (rate - kbps) 
        Policed(conform)    :                   0/0                    0
        Policed(exceed)     :                   0/0                    0
        Policed(violate)    :                   0/0                    0
        Policed and dropped :                   0/0                  
        Policed and dropped(parent policer)  : N/A
      Queueing statistics
        Queue ID                             : 65744 
        High watermark                       : N/A 
        Inst-queue-len  (packets)            : 0
        Avg-queue-len                        : N/A 
        Taildropped(packets/bytes)           : 0/0
        Queue(conform)      :                   0/0                    0
        Queue(exceed)       :                   0/0                    0
        RED random drops(packets/bytes)      : 0/0

    Policy cos-po2-REF123456789 Class cos-nm-1
      Classification statistics          (packets/bytes)     (rate - kbps)
        Matched             :                   0/0                    0
        Transmitted         :                   0/0                    0
        Total Dropped       :                   0/0                    0
      Queueing statistics
        Queue ID                             : 65746 
        High watermark                       : N/A 
        Inst-queue-len  (packets)            : 0
        Avg-queue-len                        : N/A 
        Taildropped(packets/bytes)           : 0/0
        Queue(conform)      :                   0/0                    0
        Queue(exceed)       :                   0/0                    0
        RED random drops(packets/bytes)      : 0/0

        WRED profile for WRED Curve 1
        RED Transmitted (packets/bytes)            : N/A
        RED random drops(packets/bytes)            : 0/0
        RED maxthreshold drops(packets/bytes)      : N/A 
        RED ecn marked & transmitted(packets/bytes): N/A 
    Policy cos-po2-REF123456789 Class class-default
      Classification statistics          (packets/bytes)     (rate - kbps)
        Matched             :                   0/0                    0
        Transmitted         :                   0/0                    0
        Total Dropped       :                   0/0                    0
      Queueing statistics
        Queue ID                             : 65747 
        High watermark                       : N/A 
        Inst-queue-len  (packets)            : 0
        Avg-queue-len                        : N/A 
        Taildropped(packets/bytes)           : 0/0
        Queue(conform)      :                   0/0                    0
        Queue(exceed)       :                   0/0                    0
        RED random drops(packets/bytes)      : 0/0

        WRED profile for WRED Curve 1
        RED Transmitted (packets/bytes)            : N/A
        RED random drops(packets/bytes)            : 0/0
        RED maxthreshold drops(packets/bytes)      : N/A 
        RED ecn marked & transmitted(packets/bytes): N/A 
1个回答

抱歉,我面前没有实际的系统来为您提供实际输出,但请查找“show qos interface ...”,并且应该为所有 QoS 参数配置硬件值。

该CLI将是什么样:

show qos interface gigE 0/0/0/0.101 ingress

(它实际上可能是“输入”或“输出”,而不是“入口”或“出口”,但使用一点问号魔法,您将能够找到它。您将有一大堆输出显示给您所有监管器速率、动作和令牌桶深度。这实际上是一个非常有用的小命令。;-)