141
Implementing HQoS through nesting QoS policies
Figure 54 QoS policy configuration procedure
Defining a traffic class
The system pre-defines some traffic classes and defines general match criteria for them. A
user-defined traffic class cannot be named the same as a system-defined traffic class. You can use
these pre-defined traffic classes when defining a policy. The system-defined traffic classes include:
•
The default traffic class
default-class
—
Matches the default traffic.
•
DSCP-based pre-defined traffic classes
ef, af1, af2, af3, af4
—
Matches IP DSCP value ef, af1, af2, af3, af4 respectively.
•
IP precedence-based pre-defined traffic classes
ip-prec0, ip-prec1, …ip-prec7
—
Matches IP precedence value 0, 1, …7 respectively.
•
MPLS EXP-based pre-defined traffic classes
mpls-exp0, mpls-exp1, …mpls-exp7
—
Matches MPLS EXP value 0, 1, …7 respectively.
To define a traffic class:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a traffic
class and enter
class view.
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
By default, the operator of a class is AND.
The operator of a class can be AND or OR.
•
AND
—
A packet is assigned to a class only
when the packet matches all the criteria in the
class.
•
OR
—
A packet is assigned to a class if it
matches any of the criteria in the class.
3.
Configure match
criteria.
if-match
[
not
]
match-criteria
For more information, see the
if-match
command in
ACL and QoS Command Reference
.