9-14
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 9 Shaping Traffic
Configuring Traffic Shaping
Shaping a Traffic Class
To shape a traffic class to control the flow of traffic on an interface, enter the following commands
beginning in global configuration mode:
Note These steps configure class-based traffic shaping, which can be applied to interfaces, subinterfaces, VCs,
and DLCIs.
Command Purpose
Step 1
Router(config)# policy-map policy-map-name
Creates or modifies a policy map.
policy-map-name is the name of the child policy map. The
name can be a maximum of 40 alphanumeric characters.
Step 2
Router(config-pmap)# class class-map-name
Assigns the traffic class you specify to the policy map. Enters
policy-map class configuration mode.
class-map-name is the name of a previously configured class
map and is the traffic class you want to shape.
Step 3
Router(config-pmap-c)# shape [average] cir
or
Router(config-pmap-c)# shape [average]
percent percentage [be excess-burst-in-msec
ms] [bc committed-burst-in-msec ms]
Shapes traffic to the rate you specify, or shapes traffic based
on the percentage of available bandwidth you specify.
average is the committed burst (Bc) that specifies the
maximum number of bits sent out in each interval. This
option is only supported on the PRE3.
cir specifies the committed information rate (CIR), in bits per
second (bps).
percent percentage specifies the percentage of available
bandwidth to allocate.
(Optional) be excess-burst-in-msec ms is the excess (peak)
burst (be) size in milliseconds (ms).
(Optional) bc committed-burst-in-msec ms is the committed
(conform) burst (bc) size in milliseconds (ms).
Step 4
Router(config-pmap-c)# shape max-buffers
number-of-buffers
(Optional) Specifies the maximum number of buffers allowed
on shaping queues.
number-of-buffers specifies the maximum number of buffers.
Valid values are from 1 to 4096.
Step 5
Router(config-pmap-c)# service-policy
policy-map-name
(Optional) Applies the child policy map you specify to the
traffic class. The router applies the QoS actions specified in
the child policy to the traffic class.
policy-map-name is the name of the child policy.
Note Do not specify the output or input keywords.
For more information, see Chapter 13, “Defining QoS for
Multiple Policy Levels.”