30-3
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter30 Configuring QoS Understanding QoS
Modular QoS CLI
Modular QoS CLI (MQC) allows users to create traffic po l icies a nd att ach t hes e po l icies t o int erfa ces .
A traffic policy contains a traffic class and one or more QoS features. You use a traffic class to classify
traffic, and the QoS features in the traffic policy determine how to treat the classified traffic.
Modular QoS CLI configuration includes these steps:
Step1 Define a traffic class.
Use the class-map [match-all | match-any] class-map-name global configuration command to define a
traffic class and to enter class-map configuration mode. A traffic class contains three major 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 mat ch commands
You name the traffic class in the class-map command line to enter class-map configuration mode.
You can optionally include keywords to evaluate these match commands by entering class-map
match-any or class-map match-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-all class map can contain only one match statement, but a
match-any class map can contain multiple match statements.
Note If you do not enter match-all or match-any, the default is to match all.
You use the match class-map configuration commands to speci fy criter ia for cla ssify ing packet s. 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.
Step2 Create a traffic policy to associate the traffic class with one or more QoS features.
You use the policy-map policy-map-name global 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 traffi c policy contains three elements: a name, a traffic class (specif ied wit h the
class policy-map configuration command), and the QoS policies configured in the class.
You name the traffic policy in the policy-map command 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 feat ure s t o ap pl y to the c lassi fied
traffic. These include using the set, police, or police aggregate command for input policy maps or
the bandwidth, priority, queue-limit or shape average command for output policy maps.
Note A packet can match only one traffic class within a traf fic p olicy. 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.