Chapter 5
Distributing Bandwidth Between Queues
Configuration Example for Kilobits per Second-Based Bandwidth
Example 5-2
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
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
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
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
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
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
OL-7433-09
shows how to create a policy-map named account1 and configure a class named gold,
Configuring Bandwidth Based on Kilobits per Second
shows how to create a policy map named mypolicy and configure a class named silver,
Configuring a Percentage-Based Bandwidth
shows how to create a policy map named vlan and configure two traffic classes named
Configuring Bandwidth-Remaining-Based Bandwidth
Cisco 10000 Series Router Quality of Service Configuration Guide
Bandwidth Distribution Between Queues
5-11