30-46
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter30 Co nf iguring QoS
Configuring QoS
Configuring Output Policy Maps with Class-Based Shaping
You use the shape average policy-map class configuration command to configure traffic shaping.
Class-based shaping is a control mechanism that is applied to classes of traffic leaving an interface and
uses the shape average command to limit the rate of data transmission used for the committed
information rate (CIR) for the class.
Follow these guidelines when configuring class-based shaping:
Configuring a queue for traffic shaping sets the maximum bandwidth or peak information rate (PI R)
of the queue. In the Cisco ME switch, configuring traffic shaping au to mat ica lly al so set s the
minimum bandwidth guarantee or CIR of the queue to the same value a s the PIR.
You cannot configure CBWFQ (bandwidth) or priority queuing (priority) and traffic (shape
average) for the same class in an output policy map.
You cannot configure traffic shaping for a traffic class when strict priority (priority without police)
is configured for another class within the output policy-map.
Beginning in privileged EXEC mode, follow these steps to use class-based shaping t o c onfigure the
maximum permitted average rate for a class of traffic:
After you have created an output policy map, you attach it to an egress port. See the “Attaching a Traffic
Policy to an Interface” section on page30-35.
Use the no form of the appropriate command to delete an existing policy map or class map or t o del ete
a class-based shaping configuration.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 policy-map policy-map-name Create a policy map by entering the policy map na me, an d en te r
policy-map configuration mode.
Step3 class class-map-name Enter a class-map name, and enter policy-map class configuration
mode.
Step4 shape average target bps Specify the average class-based shaping rate.
For target bps, specify the average bit rate in bits per second. The
range is from 64000 to 1000000000.
Step5 exit Return to policy-map configuration mode.
Step6 exit Return to global configuration mode.
Step7 interface interface-id Enter interface configuration mode for the interface to which you
want to attach the policy.
Step8 service-policy output policy-map-name Attach the policy map (created in Step 2) to the egress interface.
Step9 end Return to privileged EXEC mode.
Step10 show policy-map [policy-map-name [class
class-map-name]] Verify your entries.
Step11 copy running-config startup-config (Optional) Save your entries in the configuration file.