21-11
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 21 VLAN Tag-Based Quality of Service
Configuring VLAN Tag-Based QoS
Example
The following example configuration shows how to configure a QoS policy for outbound VLAN-group
traffic. In the example, QoS policies are created for VLAN traffic (policy1 through policy4) and for
default traffic (policy5). The policy map named output applies QoS services to VLAN groups and to the
class-default class for all of the traffic that does not belong to the VLAN groups classes.
Router(config)#
policy-map policy1
Router(config-pmap-c)#
class vgrp1
Router(config-pmap-c)#
set cos 2
Router(config-pmap)#
class vgrp2
Router(config-pmap-c)#
police percent 20
!
Router(config)#
policy-map policy2
Router(config-pmap)#
class vgrp2
Router(config-pmap-c)#
police 512000
Router(config-pmap-c)#
class vgrp1
Router(config-pmap-c)#
police 64000
Step 3
Router(config-pmap-c)#
shape
[
average
]
mean-rate
Shapes traffic to the indicated bit rate.
(Optional)
average
indicates that the Committed Burst (Bc)
is the maximum number of bits sent out in each interval.
(Optional)
mean-rate
is also called committed information
rate (CIR). Indicates the bit rate used to shape the traffic, in
bits per second. When this command is used with backward
explicit congestion notification (BECN) approximation, the
bit rate is the upper bound of the range of bit rates that will
be permitted.
Step 4
Router(config-pmap-c)#
service-policy
policy-map-name
(Optional) Applies the policy map you specify to the
outbound traffic class.
policy-map-name
is the name of the policy map that you
want to apply to the traffic class.
Step 5
Router(config-pmap-c)#
class class-default
Configures the class-default class for outbound traffic.
The router uses the class-default class to apply QoS services
to all of the traffic that does not belong to any other traffic
class.
Step 6
Router(config-pmap-c)#
shape
[
average
]
mean-rate
Shapes the default traffic to the indicated bit rate.
(Optional)
average
indicates that the Committed Burst (Bc)
is the maximum number of bits sent out in each interval.
(Optional)
mean-rate
is also called committed information
rate (CIR). Indicates the bit rate used to shape the traffic, in
bits per second. When this command is used with backward
explicit congestion notification (BECN) approximation, the
bit rate is the upper bound of the range of bit rates that will
be permitted.
Step 7
Router(config-pmap-c)#
service-policy
policy-map-name
Applies the policy map you specify to the outbound default
traffic class.
policy-map-name
is the name of the policy map that you
want to apply to the default traffic class.
Command or Action
Purpose