6-2
Figure 6-1
QoS policy configuration procedure
Define a
class
Define a traffic
behavior
Define a policy
Apply the policy
to an interface
Defining a Class
To define a class, specify its name and then configure the match criteria in class view.
Follow these steps to define a class:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Create a class and
enter class view
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
Required
By default, the operator of a class is AND.
The operator of a class can be AND or OR.
z
AND: A packet is considered belonging to a class only
when the packet matches all the criteria in the class.
z
OR: A packet is considered belonging to a class if it
matches any of the criteria in the class.
Configure match
criteria
if-match match-criteria
Required
For more information, see the
if-match
command in
QoS
in
the
ACL and QoS Command Reference
.
Defining a Traffic Behavior
A traffic behavior is a set of QoS actions (such as traffic filtering, traffic policing, and priority mapping) to
take on a class of traffic. To define a traffic behavior, first create it and then configure QoS actions (such
as priority mapping and traffic policing) in traffic behavior view.
Follow these steps to define a traffic behavior:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Create a traffic behavior
and enter traffic
behavior view
traffic behavior behavior-name
Required
Configure a CAR action
car cir committed-information-rate
[
cbs
committed-burst-size
[
ebs
excess-burst-size
] ] [
pir
peak-information-rate
] [
red
action
]
Optional