Traffic Shaping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 01:55 PM - edited 03-05-2019 08:39 AM
I am trying to add a few shaping classification to an auto QoS policy-map and it is not working. I can see the matching packets for each class-map but the shaping is not happening.
ROPS-M0-A2-2-4500X-V(config-pmap)#do sh policy-map AutoQos-4.0-Output-Policy
Policy Map AutoQos-4.0-Output-Policy
Class AutoQos-4.0-Scavenger-Queue
bandwidth remaining 1 (%)
Class AutoQos-4.0-Priority-Queue
priority
police cir percent 30 bc 33 ms
conform-action transmit
exceed-action drop
Class AutoQos-4.0-Control-Mgmt-Queue
bandwidth remaining 10 (%)
Class AutoQos-4.0-Multimedia-Conf-Queue
bandwidth remaining 10 (%)
Class AutoQos-4.0-Multimedia-Stream-Queue
bandwidth remaining 10 (%)
Class AutoQos-4.0-Trans-Data-Queue
bandwidth remaining 10 (%)
dbl
Class AutoQos-4.0-Bulk-Data-Queue
bandwidth remaining 4 (%)
dbl
Class Shape_Test
Class Shape-10M
Class Shape-20M
Class class-default
bandwidth remaining 25 (%)
dbl
ROPS-M0-A2-2-4500X-V(config-pmap)#class Shape_Test
ROPS-M0-A2-2-4500X-V(config-pmap-c)#shape average 1500000
ROPS-M0-A2-2-4500X-VSS#sh policy-map int t 1/2/7
Service-policy output: AutoQos-4.0-Output-Policy
Class-map: Shape_Test (match-any)
54977717 packets
Match: access-group 101
54977717 packets
I wasn't sure if this policing on the output Auto QoS policy map would be an issue
Class-map: AutoQos-4.0-Priority-Queue (match-any)
509160419 packets
Match: cos 5
138348028 packets
Match: dscp ef (46)
303733728 packets
Match: dscp cs5 (40)
9315 packets
Match: dscp cs4 (32)
67069348 packets
Priority: Strict, b/w exceed drops: 383
police:
cir 30 %, bc 33
cir 30000000 bps, bc 123750 bytes
conformed 123213236182 bytes; actions:
transmit
exceeded 4410471 bytes; actions:
drop
conformed 762000 bps, exceeded 0000 bps
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 02:51 PM
Hello,
Can you please try a nested service policy-map like this one:
policy-map SHAPING-100Mb
class class-default
shape average 100000000
service-policy AutoQos-4.0-Output-Policy
interface <WAN interface>
service-policy output SHAPING-100Mb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 05:39 AM
Does not let me.
ROPS-M0-A2-2-4500X-V(config-pmap-c)#shape average 1500000
ROPS-M0-A2-2-4500X-V(config-pmap-c)#serv
ROPS-M0-A2-2-4500X-V(config-pmap-c)#service-policy AutoQos-4.0-Output-Policy
^
% Invalid input detected at '^' marker.
ROPS-M0-A2-2-4500X-V(config-pmap-c)#?
Policy-map class configuration commands:
bandwidth Bandwidth
dbl Dynamic buffer limiting
exit Exit from class action configuration mode
no Negate or set default values of a command
police Police
priority Strict Scheduling Priority for this Class
queue-limit Queue Max Threshold for Tail Drop
set Set QoS values
shape Traffic Shaping
ROPS-M0-A2-2-4500X-V(config-pmap-c)#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 10:15 AM
What device is this one? Can you please post a 'sh version' output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 12:59 PM
4500X L3 Switch.
ROPS-M0-A2-2-4500X-VSS#sh ver
Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.07.03.E RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Thu 14-Jan-16 10:32 by prod_rel_team
Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.
(http://www.gnu.org/licenses/gpl-2.0.html) For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: 15.0(1r)SG11
ROPS-M0-A2-2-4500X-VSS uptime is 37 weeks, 5 days, 18 hours, 57 minutes
Uptime for this control processor is 37 weeks, 5 days, 17 hours, 6 minutes
System returned to ROM by SSO Switchover
System restarted at 22:53:02 EDT Thu Sep 15 2016
System image file is "bootflash:cat4500e-universalk9.SPA.03.07.03.E.152-3.E3.bin"
Jawa Revision 2, Winter Revision 0x0.0x41
Last reload reason: issu~
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
License Information for 'WS-C4500X-16'
License Level: entservices Type: Permanent
Next reboot license Level: entservices
cisco WS-C4500X-16 (MPC8572) processor (revision 9) with 4194304K bytes of physical memory.
Processor board ID JAE194705KZ
MPC8572 CPU at 1.5GHz, Cisco Catalyst 4500X
Last reset from Reload
14 Virtual Ethernet interfaces
48 Ten Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.
Configuration register is 0x2102

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 12:42 PM
Hello,
can you post post the output of 'show auto qos' ? The shaping needs to be configured in the parent policy map...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 01:04 PM
Strange....
ROPS-M0-A2-2-4500X-VSS#sh auto qos
AutoQoS not enabled on any interface
ROPS-M0-A2-2-4500X-VSS#sh auto qos int t 1/2/7
TenGigabitEthernet1/2/7
AutoQoS is disabled
ROPS-M0-A2-2-4500X-VSS#
There are two Policy-maps on the int inbound and outbound
ROPS-M0-A2-2-4500X-VSS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ROPS-M0-A2-2-4500X-V(config)#policy
ROPS-M0-A2-2-4500X-V(config)#policy-map AutoQos-4.0-Output-Policy
ROPS-M0-A2-2-4500X-V(config-pmap)#class Shape_Test
ROPS-M0-A2-2-4500X-V(config-pmap-c)#shape av
ROPS-M0-A2-2-4500X-V(config-pmap-c)#shape average 1500000
ROPS-M0-A2-2-4500X-VSS#sh run | sec AutoQos-4.0-Output-Policy
policy-map AutoQos-4.0-Output-Policy
class AutoQos-4.0-Scavenger-Queue
bandwidth remaining percent 1
class AutoQos-4.0-Priority-Queue
priority
police cir percent 30 bc 33 ms
class AutoQos-4.0-Control-Mgmt-Queue
bandwidth remaining percent 10
class AutoQos-4.0-Multimedia-Conf-Queue
bandwidth remaining percent 10
class AutoQos-4.0-Multimedia-Stream-Queue
bandwidth remaining percent 10
class AutoQos-4.0-Trans-Data-Queue
bandwidth remaining percent 10
dbl
class AutoQos-4.0-Bulk-Data-Queue
bandwidth remaining percent 4
dbl
class Shape_Test
class Shape-10M
class Shape-20M
class class-default
bandwidth remaining percent 25
dbl
service-policy output AutoQos-4.0-Output-Policy
ROPS-M0-A2-2-4500X-VSS#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 01:20 PM
Hello,
interface TenGigabitEthernet1/2/7
auto qos
Do you have that configured ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 01:24 PM
ROPS-M0-A2-2-4500X-V(config)#do sh policy-map int t 1/2/7
TenGigabitEthernet1/2/7
Service-policy input: AutoQos-4.0-Input-Policy
Class-map: AutoQos-4.0-VoIP (match-any)
2792949194 packets
Match: dscp ef (46)
2792680114 packets, 0 bytes
30 second rate 0 bps
Match: cos 5
269080 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Broadcast-Vid (match-all)
264267 packets
Match: dscp cs5 (40)
Class-map: AutoQos-4.0-Realtime-Interact (match-all)
123250183 packets
Match: dscp cs4 (32)
Class-map: AutoQos-4.0-Network-Ctrl (match-all)
17878 packets
Match: dscp cs7 (56)
Class-map: AutoQos-4.0-Internetwork-Ctrl (match-all)
40267172 packets
Match: dscp cs6 (48)
Class-map: AutoQos-4.0-Signaling (match-any)
128156204 packets
Match: dscp cs3 (24)
98943092 packets, 0 bytes
30 second rate 0 bps
Match: cos 3
29213131 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Network-Mgmt (match-all)
7940118 packets
Match: dscp cs2 (16)
Class-map: AutoQos-4.0-Multimedia-Conf (match-any)
164139781 packets
Match: dscp af41 (34)
162763865 packets, 0 bytes
30 second rate 0 bps
Match: dscp af42 (36)
1367070 packets, 0 bytes
30 second rate 0 bps
Match: dscp af43 (38)
8846 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Multimedia-Stream (match-any)
24384973 packets
Match: dscp af31 (26)
17503151 packets, 0 bytes
30 second rate 0 bps
Match: dscp af32 (28)
6878718 packets, 0 bytes
30 second rate 0 bps
Match: dscp af33 (30)
3104 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Transaction-Data (match-any)
3015830585 packets
Match: dscp af21 (18)
3014372004 packets, 0 bytes
30 second rate 0 bps
Match: dscp af22 (20)
1284968 packets, 0 bytes
30 second rate 0 bps
Match: dscp af23 (22)
173613 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Bulk-Data (match-any)
175399330 packets
Match: dscp af11 (10)
170647343 packets, 0 bytes
30 second rate 0 bps
Match: dscp af12 (12)
9913 packets, 0 bytes
30 second rate 0 bps
Match: dscp af13 (14)
4742074 packets, 0 bytes
30 second rate 0 bps
Class-map: AutoQos-4.0-Scavenger (match-all)
8065462966 packets
Match: dscp cs1 (8)
Class-map: class-default (match-any)
51316384957 packets
Match: any
Service-policy output: AutoQos-4.0-Output-Policy
queue stats for all priority classes:
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/383
(bytes output) 126216457624
Class-map: AutoQos-4.0-Scavenger-Queue (match-any)
73436683 packets
Match: dscp cs1 (8)
72754630 packets
Match: cos 1
0 packets
Match: access-group name AutoQos-4.0-ACL-Scavenger
682053 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/1271
(bytes output) 36821357680
bandwidth remaining 1%
Class-map: AutoQos-4.0-Priority-Queue (match-any)
520520013 packets
Match: cos 5
141678302 packets
Match: dscp ef (46)
310430768 packets
Match: dscp cs5 (40)
10055 packets
Match: dscp cs4 (32)
68400888 packets
Priority: Strict, b/w exceed drops: 383
police:
cir 30 %, bc 33
cir 30000000 bps, bc 123750 bytes
conformed 125878483064 bytes; actions:
transmit
exceeded 4410471 bytes; actions:
drop
conformed 1167000 bps, exceeded 0000 bps
Class-map: AutoQos-4.0-Control-Mgmt-Queue (match-any)
32420789 packets
Match: cos 3
21266597 packets
Match: dscp cs7 (56)
4543 packets
Match: dscp cs6 (48)
5614263 packets
Match: dscp cs3 (24)
347362 packets
Match: dscp cs2 (16)
3152061 packets
Match: access-group name AutoQos-4.0-ACL-Signaling
2035963 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/3
(bytes output) 12595807891
bandwidth remaining 10%
Class-map: AutoQos-4.0-Multimedia-Conf-Queue (match-any)
159516194 packets
Match: cos 4
47645740 packets
Match: dscp af41 (34)
262861 packets
Match: dscp af42 (36)
295523 packets
Match: dscp af43 (38)
4697 packets
Match: access-group name AutoQos-4.0-ACL-Multimedia-Conf
111307373 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/89
(bytes output) 46116853980
bandwidth remaining 10%
Class-map: AutoQos-4.0-Multimedia-Stream-Queue (match-any)
5672876 packets
Match: dscp af31 (26)
5438926 packets
Match: dscp af32 (28)
232361 packets
Match: dscp af33 (30)
1589 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/2
(bytes output) 799672403
bandwidth remaining 10%
Class-map: AutoQos-4.0-Trans-Data-Queue (match-any)
16002012 packets
Match: cos 2
3037784 packets
Match: dscp af21 (18)
893450 packets
Match: dscp af22 (20)
23361 packets
Match: dscp af23 (22)
2824 packets
Match: access-group name AutoQos-4.0-ACL-Transactional-Data
12044593 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/0
(bytes output) 2287879500
bandwidth remaining 10%
dbl
Probabilistic Drops: 0 Packets
Belligerent Flow Drops: 0 Packets
Class-map: AutoQos-4.0-Bulk-Data-Queue (match-any)
86152385 packets
Match: cos 1
0 packets
Match: dscp af11 (10)
82127979 packets
Match: dscp af12 (12)
576 packets
Match: dscp af13 (14)
43876 packets
Match: access-group name AutoQos-4.0-ACL-Bulk-Data
3979954 packets
Queueing
queue limit 3040 packets
(queue depth/total drops) 0/24
(bytes output) 57810360602
bandwidth remaining 4%
dbl
Probabilistic Drops: 35 Packets
Belligerent Flow Drops: 2481 Packets
Class-map: Shape_Test (match-any)
119138976 packets
Match: access-group 101
119138976 packets
Class-map: Shape-10M (match-any)
55323893 packets
Match: access-group 102
55323893 packets
Class-map: Shape-20M (match-any)
0 packets
Match: access-group 103
0 packets
Class-map: class-default (match-any)
14394370619 packets
Match: any
Queueing
queue limit 3024 packets
(queue depth/total drops) 0/2058
(bytes output) 17449931138915
bandwidth remaining 25%
dbl
Probabilistic Drops: 1815712 Packets
Belligerent Flow Drops: 11121536 Packets
ROPS-M0-A2-2-4500X-V(config)#
