HP MSR2000/3000/4000 Router Series ACL and QoS Configuration Guide

23
Applying the QoS policy to an interface
A QoS policy can be applied to multiple interfaces, but only one QoS policy can be applied in one
direction (inbound or outbound) of an interface.
You can modify traffic classes, traffic behaviors, and class-behavior associations in a QoS policy even
after it is applied. If a traffic 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).
The QoS policy applied to the outgoing traffic on an interface 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:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. Apply the QoS policy to
the interface.
qos apply policy policy-name { inbound |
outbound }
By default, no QoS policy
is applied to an interface.
Configuring the QoS policy-based traffic rate
statistics collection period for an interface
You can enable collection of per-class traffic statistics over a period, including the average forwarding
rate and drop rate. For example, if you set the statistics collection period to 10 minutes, the system collects
traffic statistics for the most recent 10 minutes and refreshes the statistics every 2 minutes. You can use the
display qos policy interface command to view the collected traffic rate statistics.
To configure the QoS policy-based traffic rate statistics collection period for an interface:
Ste
Command
Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. Configure the traffic rate
statistics collection period
for the interface.
qos flow-interval interval
The default setting is 5 minutes.
The traffic rate statistics
collection period of a
subinterface is the same as the
period configured on the main
interface.
Displaying and maintaining QoS policies
Execute display commands in any view and reset commands in user view.