54
Configuring CBQ
To configured CBQ:
1.
Create a class and define a set of traffic match criteria in class view.
2.
Create a traffic behavior, and define a group of QoS features in traffic behavior view.
3.
Create a policy, and associate a traffic behavior with a class in policy view.
4.
Apply the QoS policy in the interface or PVC view.
Predefined classes, traffic behaviors, and policies
The system predefines the following classes, traffic behaviors, and policies:
Predefined classes
The system predefines some classes and defines general rules for them. You can use these
predefined classes when defining a policy.
•
The default class
default-class—Matches the default traffic.
•
DSCP-based predefined classes
ef, af1, af2, af3, af4—Matches IP DSCP value ef, af1, af2, af3, af4, respectively.
•
IP precedence-based predefined classes
ip-prec0, ip-prec1, …ip-prec7—Matches IP precedence value 0, 1, …7, respectively.
•
MPLS EXP-based predefined classes
mpls-exp0, mpls-exp1, …mpls-exp7—Matches MPLS EXP value 0, 1, …7, respectively.
Predefined traffic behaviors
The system predefines some traffic behaviors and defines QoS features for them.
•
ef
—Assigns a class of packets to the EF queue and assigns 20% of the available interface/PVC
bandwidth to the class of packets.
•
af
—Assigns a class of packets to the AF queue and assigns 20% of the available interface/PVC
bandwidth to the class of packets.
•
be
—Defines no features.
•
be-flow-based
—Assigns a class of packets to a WFQ queue and specifies the drop policy as
WRED. By default, 256 WFQ queues exist, and WRED is an IP precedence-based drop policy.
Predefined QoS policy
The system predefines a QoS policy, specifies a predefined class for the policy and associates a
predefined behavior with the class. The policy is named
default
, with the default CBQ action.
The policy
default
is defined as follows:
•
Associates the predefined class
ef
with the predefined traffic behavior
ef
.
•
Associates predefined classes
af1
through
af4
with the predefined traffic behavior
af
.
•
Associates the predefined class
default-class
with the predefined traffic behavior
be
.
Defining a class
To define a class, create the class first, and then configure match criteria in class view.
To define a class: