shape average
To shape traffic to the indicated bit rate according to the algorithm specified, use the
shape average
command
in policy map class configuration mode. To remove traffic shaping, use the
no
form of this command.
shape average
{
percent percentage
|
rate
[
units
]}
no shape average
Syntax Description
Specifies the interface bandwidth in percentage. Values can be from 1 to 100.
percent percentage
Average shaping rate in the specified units. Values can be from 1 to 4294967295.
rate
(Optional) Units for the bandwidth. Values can be:
•
bps
—bits per second (default)
•
gbps
—gigabits per second
•
kbps
—kilobits per second
•
mbps
—megabits per second
units
Command Default
units
:
bps
Command Modes
Policy map class configuration
Command History
Modification
Release
This command was introduced.
Release 6.0
Usage Guidelines
The
shape average
command is supported only in the egress direction.
When you use the
shape average
command, egress shaping is done at the Layer 1 level and includes the
Layer 1 header in the rate calculation. The minimum shape rate is 469 kbps. If you have both shape and
bandwidth configured for a class, ensure that the shape percent value is always greater than the percent value
for bandwidth. For bundled interfaces,
shape average
can be configured only as a percentage.
The
priority
and
shape average
commands can be configured together in the same class.
Task ID
Operations
Task
ID
read,
write
qos
Examples
This example sets traffic shaping to 50 percent of the parent shaper rate milliseconds:
RP/0/RP0/CPU0:router(config)#
policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)#
class class1
RP/0/RP0/CPU0:router(config-pmap-c)#
shape average percent 50
Modular QoS Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers
39
QoS Classification Commands
shape average