Defining a policy, Applying the qos policy, Configuration restrictions and guidelines – H3C Technologies H3C S12500 Series Switches User Manual

Page 35

Advertising
background image

26

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a traffic behavior and
enter traffic behavior view.

traffic behavior behavior-name N/A

3.

Configure actions in the traffic
behavior.

See the subsequent chapters, depending on the purpose of the traffic
behavior: traffic policing, traffic filtering, traffic redirecting, priority

marking, traffic accounting, and so on.

Defining a policy

You associate a behavior with a class in a QoS policy to perform the actions defined in the behavior for

the class of packets.
To associate a class with a behavior in a policy:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a policy and enter
policy view.

qos policy policy-name N/A

3.

Associate a class with a

behavior in the policy.

classifier tcl-name behavior
behavior-name

Repeat this step to create more
class-behavior associations.

IMPORTANT:

When an ACL is referenced by a QoS policy for traffic classification, the deny action in an ACL rule means
not to execute the behavior of the corresponding class-behavior association, and the permit action in an
ACL rule means to execute the behavior of the corresponding class-behavior association.

Applying the QoS policy

You can apply a QoS policy to the following destinations:

An interface—The policy takes effect on the traffic sent or received on the interface.

A VLAN—The policy takes effect on the traffic sent or received on all ports in the VLAN.

Globally—The policy takes effect on the traffic sent or received on all ports.

Control plane—The policy takes effect on the traffic sent on the control plane.

Configuration restrictions and guidelines

You can apply a QoS policy to the control plane of only an Ethernet interface card.

You can modify classes, behaviors, and class-behavior associations in a QoS policy even after it is
applied. If a class references an ACL for traffic classification, you can delete or modify the ACL

(such as add rules to, delete rules from, and modify rules of the ACL).

Global QoS policies, interface QoS policies, and VLAN QoS policies are in the descending order
of priority when being used to match packets.

Global QoS policies and VLAN QoS policies will be applied to all interface cards. If the hardware

resources of an interface card are insufficient, applying a global or VLAN-based QoS policy will
fail on the interface card. In this case, the system does not automatically roll back the QoS policy

Advertising