Applying the QoS policy
You can apply a QoS policy to the following destinations:
An interface or PVC—The policy takes effect on the traffic sent or received on the interface or PVC.
A user profile—The policy takes effect on the traffic sent or received by the online users of the user profile.
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 or received on the control plane.
You can modify classes, behaviors, and class-behavior associations in an applied QoS policy unless it is applied to online users. 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).
Applying the QoS policy to an interface or PVC
A policy can be applied to multiple interfaces or PVCs, but only one policy can be applied in one direction (inbound or outbound) of an interface or PVC.
When you apply the QoS policy to an interface or PVC, follow these guidelines:
You can apply QoS policies to all physical interfaces but X.25- or LAPB-enabled interfaces.
The QoS policy applied to the outgoing traffic on an interface or PVC does not regulate local packets, which are critical protocol packets sent by the local system for operation maintenance. The most common local packets include link maintenance, routing (IS-IS, BGP, and OSPF for example), RIP, LDP, RSVP, and SSH packets.
To apply the QoS policy to an interface or PVC:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view, port group view, or PVC view. |
| Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in PVC view take effect on the current PVC. |
3. Apply the policy to the interface, port group, or PVC. | qos apply policy policy-name { inbound | outbound } | N/A |
Applying the QoS policy to online users
You can apply a QoS policy to multiple online users. In one direction of each online user, only one policy can be applied. To modify a QoS policy already applied in a certain direction, remove the QoS policy application first.
When you apply the QoS policy to online users, follow these guidelines:
You can only edit or remove the configurations in a disabled user profile. Disabling a user profile logs out the users that are using the user profile.
The QoS policy applied to a user profile supports only the remark, car, and filter actions.
Do not apply a null policy to a user profile. The user profile using a null policy cannot be activated.
The authentication methods supported for online users include PPPoE, 802.1X, Portal, and MAC authentication
To apply the QoS policy to online users:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter user profile view. | user-profile profile-name | The configuration made in user profile view takes effect when the user profile is activated and the users of the user profile are online. For more information about user profiles, see Security Configuration Guide. |
3. Apply the QoS policy. | qos apply policy policy-name { inbound | outbound } | Use the inbound keyword to apply the QoS policy to the incoming traffic of the device (traffic sent by the online users). Use the outbound keyword to apply the QoS policy to the outgoing traffic (traffic received by the online users). |
4. Return to system view. | quit | N/A |
5. Activate the user profile. | user-profile profile-name enable | By default, user profiles are inactive. |