Shaping on 7604 SPA interface - show policy-map question.

Unanswered Question
Apr 30th, 2009

When I apply a service policy that has shaping to a router interface, like on a 7206, the 'show policy-map int xxx' has a "Shaping Active" field that will show you if shaping is actually occurring as in this output:

BVU-RT7206A-MDF#sh policy-map int g0/3.82


Service-policy output: WAN-100MB-speed_with_10MB_voice_Imaging

Class-map: class-default (match-any)

2009821825 packets, 505756075940 bytes

30 second offered rate 6251000 bps, drop rate 0 bps

Match: any

Traffic Shaping

Target/Average Byte Sustain Excess Interval Increment

Rate Limit bits/int bits/int (ms) (bytes)

99920000/99920000 624500 2498000 2498000 25 312250

Adapt Queue Packets Bytes Packets Bytes Shaping

Active Depth Delayed Delayed Active

- 0 2009821859 3244902755 0 0 no <--- will show 'no' or 'yes'

** This output even shows how many packets have been delayed due to shaping.


But when a shaping service policy is applied to a SPA routed interface, there is no such field to show whether shaping is active or not, or whether any packets have been queued due to shaping, as in this output:

ROC-7604-B#sh policy-map int g2/1/0.122


Service-policy output: WAN-ERG_with_24voice

Counters last updated 00:00:08 ago

Class-map: class-default (match-any)

7404685 packets, 3163108752 bytes

30 second offered rate 1811000 bps, drop rate 0 bps

Match: any


queue limit 1998 packets

(queue depth/total drops/no-buffer drops) 0/0/0

(pkts output/bytes output) 7397565/3159181928

shape (average) cir 7992000, bc 31968, be 31968

target shape rate 7992000

How is one to know if shaping is active on a SPA interface?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (2 ratings)
Laurent Aubert Thu, 04/30/2009 - 17:04


You will know shaping is on if the queue depth is higher than 0 but it's real-time value so I agree you will notice it only when you are sending traffic around the CIR for a significant period of time.



jkeeffe Fri, 05/01/2009 - 06:01

May I request a counter be installed that will let us know how many packets have been shaped? Something that will let us know that this is working? Sometimes we end of going on faith that our configuration is working when there is no tangible sign that it is.

What would it take to get something like that going?

Laurent Aubert Fri, 05/01/2009 - 06:58


For feature request, you need to work with your Cisco account team who could help you to build a business case.




This Discussion