Provides instructions for classifying network traffic into user-defined classes and applying Quality of Service actions like traffic shaping. This process helps manage bandwidth and prioritize specific traffic flows on an interface using class maps and policy maps.
Use this task to classify traffic into user-defined classes and apply QoS actions such as traffic shaping. This helps manage bandwidth and prioritize traffic on an interface.
To classify and shape outgoing traffic, you apply a traffic policy to an interface. Classification is based on match criteria, such as QoS groups. Shaping controls the transmission rate of classified traffic.
Before you begin
Determine the match criteria for classifying traffic and the QoS actions based on the interface bandwidth.
Procedure
| 1. | Create a class map and specify the match criteria. Example:
This example creates a class map named qos-1 and specifies that traffic is matched if any of the defined conditions are met. |
|
| 2. | Match traffic with QoS group 1 to the qos-1 class. Example:
QoS groups are internal markers that may be set based on ACLs, routing protocols, or other criteria. |
|
| 3. | Create a policy map named test-shape-1 . Example:
|
|
| 4. | Bind or associate the qos-1 class to the policy map. Example:
|
|
| 5. | Specify QoS actions for the traffic class. Example:
This example configures the policy to shape traffic in the qos-1 class to 40% of the interface bandwidth. |
|
| 6. | Attach the traffic policy to an interface. Example:
This example applies the policy map to the egress-direction of interface FourHundredGigE 0/0/0/2 . |
|
| 7. | Verify policy configuration and traffic statistics. Example:
The Shape Average Rate (kbps) 160000000 (40%) line shows the configured shaping rate (160 Gbps), which accounts for 40% of the 400 Gbps interface bandwidth. |