2-5
Defining a Policy
In a policy, you can define multiple class-behavior associations. A behavior is performed for the
associated class of packets. In this way, various QoS features can be implemented.
Follow these steps to associate a class with a behavior in a policy:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a policy and enter policy
view
qos policy
policy-name
Required
Associate a class with a
behavior in the policy
classifier
tcl-name behavior
behavior-name
[
mode
dot1q-tag-manipulation
]
Required
Specify the
dot1q-tag-manipulation
keyword if the class-behavior
association is defined for VLAN
mapping.
z
If an ACL is referenced by a QoS policy for defining traffic match criteria, packets matching the ACL
are organized as a class and the behavior defined in the QoS policy applies to the class regardless
of whether the match mode of the
if-match
clause is
deny
or
permit
.
z
In a QoS policy with multiple class-to-traffic-behavior associations, if the action of creating an outer
VLAN tag, the action of setting customer network VLAN ID, or the action of setting service provider
network VLAN ID is configured in a traffic behavior, we recommend you not to configure any other
action in this traffic behavior. Otherwise, the QoS policy may not function as expected after it is
applied.
z
The
do1q-tag-manipulation
keyword is applicable to only many-to-one VLAN mapping
configuration. For information about many-to-one VLAN mapping, refer to
VLAN Mapping
Configuration
in the
Access Volume
.
Applying the QoS Policy
You can apply a QoS policy to different occasions:
z
Applied to an interface, the policy takes effect on the traffic sent or received on the interface.
z
Applied to a user profile, the policy takes effect on the traffic sent or received by the online users of
the user profile.
z
Applied to a VLAN, the policy takes effect on the traffic sent or received on all ports in the VLAN.
z
Applied globally, the policy takes effect on the traffic sent or received on all ports.