cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2885
Views
5
Helpful
8
Replies
feableee123
Beginner

ASR 9000 shape on the interface - where are stats?

Hello,

How can I show statistics when I use shapeing on interface level. With police it is clear e.g

sh policy-map interface TenGigE 0/0/0/0 output 
give me some statistics about conform and exceeded traffic but when I configure
shapeing like below:

policy-map p-map
class class-default
shape average 6 gbps !
end-policy-map


How can I show some statistics about peaks above.
I ask because output is a bit misterious for me

sh qos interface tenGigE 0/0/0/0 output

Interface: TenGigE0_0_0_0 output
Bandwidth configured: 6000000 kbps Bandwidth programed: 6000000 kbps
ANCP user configured: 0 kbps ANCP programed in HW: 0 kbps
Port Shaper programed in HW: 6000000 kbps
Policy: p-map Total number of classes: 1
----------------------------------------------------------------------
Level: 0 Policy: p-map Class: class-default
QueueID: 0 (Priority Normal)
Queue Limit: 0 kbytes Profile: 0 Scale Profile: 0


I cant see anyting from that output ?




8 REPLIES 8
Ahmed Moshref
Beginner

Which IOX are you using?

I have just tried this on my 9k platform , and it showd stats

interface POS0/0/0/0

service-policy output p-map

encapsulation ppp

pos

  crc 16

!

load-interval 30

!

policy-map p-map

class class-default

  shape average 20 mbps

!

end-policy-map

!

RP/0/RSP0/CPU0:EQUINOX-A9k#show policy-map interface pos 0/0/0/0 output

Mon Jul 29 04:40:36.655 UTC

POS0/0/0/0 output: p-map

Class class-default

  Classification statistics          (packets/bytes)     (rate - kbps)

    Matched             :                   4/48                   0

    Transmitted         :                   0/0                    0

    Total Dropped       :                   0/0                    0

  Queueing statistics

    Queue ID                             : 3758096386

    High watermark  (Unknown)

    Inst-queue-len  (bytes)              : 0

    Avg-queue-len   (Unknown)

    Taildropped(packets/bytes)           : 0/0

I am currently working with 4.2.3

Thank You

Ahmed Moshref

Hi,

My IOS XR  version is also 4.2.3.  When run

sh policy-map interface TenGigE 0/0/0/0 output

Wed Jul 31 08:36:42.204 MET

TenGigE0/0/0/0 direction output: Service Policy not installed

But like in command above show qos .... I got some results. Strange isn't it ?

If you just want to make this work, move the shaper to parent level:

policy-map dummy

class class-default

  bandwidth percent 100

!

end-policy-map

!

policy-map p-map

class class-default

  service-policy dummy

  shape average 500 mbps

!

end-policy-map

With this modification, your policy will be correctly applied.

I'm not sure why it doesn't work with the original config, I would have to look it up. What is the LC type on which you are trying to apply the policy?

/Aleksandar

Hi,

I just ran into the same problem on A9K6/RSP440(TR)/MOD80(TR) running XR 4.3.1:

Before dummy-config:

-----snip-----

interface GigabitEthernet0/0/1/0

bandwidth 100000

cdp

service-policy output Shape-to-100M

ipv4 address

negotiation auto

carrier-delay up 2000 down 0

load-interval 30

dampening

!

RP/0/RSP0/CPU0:#sh run policy-map

Tue Aug 13 09:28:54.079 UTC

policy-map Shape-to-100M

class class-default

  shape average 95000000 bps

!

end-policy-map

!

RP/0/RSP0/CPU0:#sh policy-map int g0/0/1/0 output

Tue Aug 13 09:37:30.831 UTC

GigabitEthernet0/0/1/0 direction output: Service Policy not installed

-----snap-----

After dummy-config:


-----snip-----

interface GigabitEthernet0/0/1/0

bandwidth 100000

cdp

service-policy output Shape-to-100M

ipv4 address

negotiation auto

carrier-delay up 2000 down 0

load-interval 30

dampening

!

RP/0/RSP0/CPU0:#sh run policy-map

Tue Aug 13 09:42:13.765 UTC

policy-map dummy

class class-default

  bandwidth percent 100

!

end-policy-map

!

policy-map Shape-to-100M

class class-default

  service-policy dummy

  shape average 95000000 bps

!

end-policy-map

!

RP/0/RSP0/CPU0:#sh policy-map int g0/0/1/0 output

Tue Aug 13 09:43:12.887 UTC

GigabitEthernet0/0/1/0 output: Shape-to-100M

Class class-default

  Classification statistics          (packets/bytes)     (rate - kbps)

    Matched             :              626092/543729402            10849

    Transmitted         :              627073/544823300            9379

    Total Dropped       :                   0/0                    0

    Policy dummy Class class-default

      Classification statistics          (packets/bytes)     (rate - kbps)

        Matched             :              626092/543729402            10849

        Transmitted         :              627073/544823300            9379

        Total Dropped       :                   0/0                    0

      Queueing statistics

        Queue ID                             : 418

        High watermark                       : N/A

        Inst-queue-len  (packets)            : 0

        Avg-queue-len                        : N/A

        Taildropped(packets/bytes)           : 0/0

        Queue(conform)      :              627073/544823300            9379

        Queue(exceed)       :                   0/0                    0

        RED random drops(packets/bytes)      : 0/0

RP/0/RSP0/CPU0:#

-----snap-----

Thanks for the tip with the dummy child policy!

Do you know if there's an existing bug report for this weirdocity? - or should I report it?

Cheers!

Mikkel

Hi Mikkel,

glad to hear that this is working now.

This is actually behaviour per design. Without a queueing action at child level, shaper profile is not created.

If you check the output from the very start of the thread, you don't see any shaper profiles:

sh qos interface tenGigE 0/0/0/0 output

Interface: TenGigE0_0_0_0 output
Bandwidth configured: 6000000 kbps Bandwidth programed: 6000000 kbps
ANCP user configured: 0 kbps ANCP programed in HW: 0 kbps
Port Shaper programed in HW: 6000000 kbps
Policy: p-map Total number of classes: 1
----------------------------------------------------------------------
Level: 0 Policy: p-map Class: class-default
QueueID: 0 (Priority Normal)
Queue Limit: 0 kbytes Profile: 0 Scale Profile: 0

If you run the same command now that there is a dummy child policy with BW allocation, you will see that a Level0 a shaper profile was created. This shaper profile is applied to all queues at Level1 of this policy.

I couldn't find any documents where this restriction is listed, though. I'll see what can be done about that.

/Aleksandar

Mikkel Troest
Beginner

Thanks, Aleksandar!
An update to the documentation would indeed be welcome.

Cheers,
Mikkel

Hi Mikkel,

document ASR9000/XR: Understanding QOS on the A9K platform, default marking behavior, troubleshooting has been updated. Please see the "Port level shaping" section. I hope this addresses your concern.

Rgds,

Aleksandar

Hi Mikkel,

CCO document Configuring Modular QoS Congestion Management will also be updated soon.

Aleksandar