To define a traffic behavior:
Step
1.
Enter system view.
2.
Create a traffic behavior and
enter traffic behavior view.
3.
Configure actions in the traffic
behavior.
Defining a QoS policy
You associate a traffic behavior with a traffic class in a QoS policy to perform the actions defined in the
traffic behavior for the traffic class of packets.
When an ACL is used by a QoS policy for traffic classification, the action (permit or deny) in the ACL is
ignored, and the actions in the associated traffic behavior are performed.
To associate a traffic class with a traffic behavior in a QoS policy:
Step
1.
Enter system view.
2.
Create a QoS policy and
enter QoS policy view.
3.
Associate a traffic class with a
traffic behavior to create a
class-behavior association in
the QoS policy.
Applying the QoS policy
You can apply a QoS policy to the following destinations:
Interface—The QoS policy takes effect on the traffic sent or received on the interface.
•
VLAN—The QoS policy takes effect on the traffic sent or received on all ports in the VLAN.
•
•
Globally—The QoS policy takes effect on the traffic sent or received on all ports.
Control plane—The QoS policy takes effect on the traffic received on the control plane.
•
User profile—The QoS policy takes effect on the traffic sent or received by the online users of the
•
user profile.
Command
system-view
traffic behavior behavior-name
See the subsequent chapters,
depending on the purpose of the
traffic behavior: traffic policing,
traffic filtering, priority marking,
traffic accounting, and so on.
Command
system-view
qos policy policy-name
classifier classifier-name behavior
behavior-name [ mode dcbx |
insert-before
before-classifier-name ] *
21
Remarks
N/A
By default, no traffic behavior is
configured.
By default, no action is configured
for a traffic behavior.
Remarks
N/A
By default, no QoS policy is
configured.
By default, a traffic class is not
associated with a traffic behavior.
Repeat this step to create more
class-behavior associations.
If a class-behavior association has
the mode dcbx keyword, it applies
only to DCBX. For more
information about DCBX, see
Layer 2—LAN Switching
Configuration Guide.