Chapter 24 Configuring QoS

Understanding QoS

Marking, page 24-18

Congestion Management and Scheduling, page 24-19

Configuring Quality of Service (QoS), page 24-25

Modular QoS CLI

Modular QoS CLI (MQC) allows users to create traffic policies and attach these policies to interfaces. A traffic policy contains a traffic class and one or more QoS features. Use a traffic class to classify traffic, and the QoS features in the traffic policy determine how to treat the classified traffic.

Complete the following steps to configure Modular QoS CLI:

Step 1 Define a traffic class.

Use the class-map[match-all match-any] class-map-nameglobal configuration command to define a traffic class and to enter class-map configuration mode. A traffic class contains three elements: a name, an instruction on how to evaluate the configured match commands (if more than one match command is configured in the class map), and a series of match commands

Name the traffic class in the class-mapcommand line to enter class-map configuration mode.

You can optionally include keywords to evaluate these match commands by entering class-mapmatch-anyor class-mapmatch-all. If you specify match-any, the traffic being evaluated must match one of the specified criteria. If you specify match-all, the traffic being evaluated must match all of the specified criteria. A match-allclass map can contain only one match statement, but a match-anyclass map can contain multiple match statements.

Note If you do not enter match-allor match-any, the default is to match all.

Use the match class-map configuration commands to specify criteria for classifying packets. If a packet matches the specified criteria, that packet is considered a member of the class and is forwarded according to the QoS specifications set in the traffic policy. Packets that fail to meet any of the matching criteria are classified as members of the default traffic class.

Step 2 Create a traffic policy to associate the traffic class with one or more QoS features.

Use the policy-mappolicy-map-nameglobal configuration command to create a traffic policy and to enter policy-map configuration mode. A traffic policy defines the QoS features to associate with the specified traffic class. A traffic policy contains three elements: a name, a traffic class (specified with the class policy-map configuration command), and the QoS policies configured in the class.

Name the traffic policy in the policy-mapcommand line to enter policy-map configuration mode.

In policy-map configuration mode, enter the name of the traffic class used to classify traffic to the specified policy, and enter policy-map class configuration mode.

In policy-map class configuration mode, you can enter the QoS features to apply to the classified traffic. These include using the set, police, or police aggregate commands for input policy maps or the bandwidth, priority, or shape average commands for output policy maps.

Note A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic class in the traffic policy, the first traffic class defined in the policy is used. To configure more than one match criterion for packets, you can associate multiple traffic classes with a single traffic policy.

 

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

24-4

OL-23826-09

Page 440
Image 440
Cisco Systems A9014CFD manual Modular QoS CLI, 24-4