Cisco Systems A9014CFD Router User Manual


 
24-47
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-09
Chapter 24 Configuring QoS
Configuring Quality of Service (QoS)
Configuring Shaping
The Cisco ASR 901 supports class-based traffic shaping. Follow these steps to configure class-based
traffic shaping.
Class-based traffic shaping is configured using a hierarchical policy map structure; you enable traffic
shaping on a primary level (parent) policy map and other QoS features such as queuing and policing on
a secondary level (child) policy map.
This section contains the following topics:
Configuring Class-Based Traffic Shaping in a Primary-Level (Parent) Policy Map
Configuring the Secondary-Level (Child) Policy Map
Configuring Class-Based Traffic Shaping in a Primary-Level (Parent) Policy Map
Follow these steps to configure a parent policy map for traffic shaping.
Step 1 Use the policy-map command to specify the policy map for which you want to configure shaping and
enter policy-map configuration mode.
Step 5
[no] random-detect discard-class-based Base WRED on the discard class value of a packet.
To disable this feature, use the no form of this command.
Step 6
[no] random-detect discard-class value
min-threshold max-threshold
mark-prob-denominator
Example
Router(config-pmap-c)# random-detect
discard-class 2 100 200 10
Configure WRED parameters for a discard-class value for a class policy
in a policy map.
value—Discard class. Valid values are 0 to 2.
Note WRED counters are not supported for discard class 0.
min-threshold—Minimum threshold in number of packets. Valid
values are 1 to 4096. When the average queue length reaches the
minimum threshold, WRED randomly drops some packets with the
specified IP precedence.
max-threshold—Maximum threshold in number of packets. Valid
values are 1 to 4096. When the average queue length exceeds the
maximum threshold, WRED drops all packets with the specified IP
precedence.
Note Max-threshold values configured above 1024 cannot be
reached.
mark-prob-denominator—Denominator for the fraction of packets
dropped when the average queue depth is at the maximum
threshold. For example, if the denominator is 512, 1 out of every
512 packets is dropped when the average queue is at the maximum
threshold. Valid values are 1 to 65535. The default is 10; 1 out of
every 10 packets is dropped at the maximum threshold.
To return the values to the default for the discard class, use the no form
of this command.
Command Purpose