13-14
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 13 Defining QoS for Multiple Policy Levels
Configuring QoS for Multiple Queues
Example 13-3
shows how to create a nested hierarchical policy that creates two fair queues: one queue
for the Bronze traffic and one queue for all other traffic. The top-level policy named Top-Parent shapes
the total output rate of both queues to 1 Mbps. The bottom-level policy named Bottom-Child shapes
Bronze traffic to 50 percent of the total output rate, or 500 kbps. The router allocates the remaining
500 kbps to all other traffic.
Example 13-3 Creating Fair Queues at Two Levels of Hierarchy
Router(config)#
policy-map Bottom-Child
Router(config-pmap)#
class Bronze
Router(config-pmap-c)#
bandwidth percent 50
Router(config-pmap-c)#
exit
Router(config-pmap)#
policy-map Top-Parent
Router(config-pmap)#
class class-default
Router(config-pmap-c)#
shape 1000
Router(config-pmap-c)#
service-policy Bottom-Child
Step 3
Router(config-pmap-c)#
bandwidth
{
bandwidth-kbps
|
percent
percentage
|
remaining percent
percentage
}
(Optional) Enables class-based fair queuing.
bandwidth-kbps
specifies or modifies the minimum bandwidth
allocated for a class belonging to a policy map. Valid values are
from 8 to 2,488,320, which represents from 1 to 99 percent of the
link bandwidth.
percent
percentage
specifies or modifies the minimum
percentage of the link bandwidth allocated for a class belonging
to a policy map. Valid values are from 1 to 99.
remaining percent
percentage
specifies or modifies the
minimum percentage of unused link bandwidth allocated for a
class belonging to a policy map. Valid values are from 1 to 99.
Step 4
Router(config-pmap-c)#
exit
Exits policy-map class configuration mode.
Step 5
Router(config-pmap)#
policy-map
policy-map-name
Creates or modifies the top-level parent policy.
policy-map-name
is the name of the parent policy map. The name
can be a maximum of 40 alphanumeric characters.
Step 6
Router(config-pmap)#
class
class-default
Configures or modifies the parent class-default class.
Note
You can configure only the class-default class in a parent
policy. Do not configure any other traffic class.
Step 7
Router(config-pmap-c)#
shape
kbps-value
Shapes traffic to the indicated bit rate.
kbps-value
is the bit-rate (in kilobits per second) used to shape the
traffic.
Step 8
Router(config-pmap-c)#
service-policy
policy-map-name
Applies a bottom-level child policy to the top-level parent
class-default class.
policy-map-name
is the name of the previously configured child
policy map.
Command
Purpose