Creating a Traffic Class
Restriction
Creating a Traffic Class
The class-map command is used to create a traffic class. A traffic class contains three major elements: a name,
a series of match commands, and, if more than one match command exists in the traffic class, an instruction
on how to evaluate these match commands.
The match commands are used to specify various criteria for classifying packets. Packets are checked to
determine whether they match the criteria specified in the match commands; 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.
To create traffic classes and define their match criteria, complete the following procedure:
configure terminal
class-map class
match type
Creating a Policy Map
After creating traffic classes, you can configure traffic policies to configure marking features to apply certain
actions to the selected traffic in those classes.
The policy-map command is used to create a traffic policy. The purpose of a traffic policy is to configure the
QoS features that should be associated with the traffic that has been classified in a user-specified traffic class.
A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic
Note
class in the traffic policy, the first traffic class defined in the policy will be used.
To define a traffic policy, complete the following procedure:
configure terminal
policy-map policy
class class
Defining QoS Actions in a Policy Map
Action commands can be added from within class mode on a policy map.
Cisco cBR Series Converged Broadband Routers Quality of Services Configuration Guide for Cisco IOS XE
Fuji 16.7.x
26
• QoS actions like policing, shaping, WRED, and queuing are not supported.
• Input MQC cannot be configured on cable physical interfaces.
Modular Quality of Service Command-Line Interface QoS