5-11
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 5 Distributing Bandwidth Between Queues
Bandwidth Distribution Between Queues
Configuration Example for Kilobits per Second-Based Bandwidth
Example 5-2
shows how to create a policy-map named account1 and configure a class named gold,
which provides a guaranteed minimum bandwidth of 700 kbps for all gold class traffic. The maximum
queue depth for gold traffic is 64 packets. If the queue depth is reached, the router tail-drops excess
traffic.
Example 5-2
Configuring Bandwidth Based on Kilobits per Second
Router(config)#
policy-map account1
Router(config-pmap)#
class gold
Router(config-pmap-c)#
bandwidth 700
Router(config-pmap-c)#
queue-limit 64
Configuration Example for Percentage-Based Bandwidth
Example 5-3
shows how to create a policy map named mypolicy and configure a class named silver,
which allocates a minimum of 30 percent of the link bandwidth to all silver class traffic. The maximum
queue depth for silver traffic is 64 packets. The
random-detect
command ensures that excess traffic is
randomly discarded using a precedence-based algorithm.
Example 5-3
Configuring a Percentage-Based Bandwidth
Router(config)#
policy-map mypolicy
Router(config-pmap)#
class silver
Router(config-pmap-c)#
bandwidth percent 30
Router(config-pmap-c)#
queue-limit 64
Router(config-pmap-c)#
random-detect precedence-based
Configuration Example for Bandwidth-Remaining-Based Bandwidth
Example 5-4
shows how to create a policy map named vlan and configure two traffic classes named
priority and premium. The priority class contains both the
priority
and
police
commands. The premium
class allocates a minimum of 25 percent of the unused bandwidth to this class.
Example 5-4
Configuring Bandwidth-Remaining-Based Bandwidth
Router(config)#
policy-map vlan
Router(config-pmap)#
class priority
Router(config-pmap-c)#
priority
Router(config-pmap-c)#
police percent 50
Router(config-pmap-c)#
exit
Router(config-pmap)#
class premium
Router(config-pmap-c)
bandwidth remaining percent 25