R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
58
# Define a traffic behavior, and enable EF and set a maximum bandwidth percentage of 30% (both
bandwidth and delay are guaranteed for EF traffic) in the traffic behavior.
[RouterA] traffic behavior ef_behav
[RouterA-behavior-ef_behav] queue ef bandwidth pct 30
[RouterA-behavior-ef_behav] quit
# Define a QoS policy and associate the configured traffic behaviors with classes in the QoS policy.
[RouterA] qos policy dscp
[RouterA-qospolicy-dscp] classifier af11_class behavior af11_behav
[RouterA-qospolicy-dscp] classifier af21_class behavior af21_behav
[RouterA-qospolicy-dscp] classifier ef_class behavior ef_behav
[RouterA-qospolicy-dscp] quit
# Apply the QoS policy to the outgoing traffic of GigabitEthernet 2/1/0.
[RouterA] interface gigabitethernet 2/1/0
[RouterA-GigabitEthernet2/1/0] ip address 1.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/1/0] qos apply policy dscp outbound
The configuration enables EF traffic to be forwarded preferentially when congestion occurs.
Configuring packet information pre-extraction
If a tunnel interface has processed the incoming IP packets, for example, if the tunnel interface has used
GRE to encapsulate packets, the GRE-encapsulated packets enter the QoS module for processing. As a
result, the QoS module cannot obtain the IP information of the original packets.
To process the original IP packets with QoS on the physical interface for a tunnel interface, configure
packet information pre-extraction on the logical interface.
Configuration procedure
To configure packet information pre-extraction:
Ste
p
Command Remarks
1. Enter system view.
system-view N/A
2. Enter tunnel interface view.
interface tunnel interface-number N/A
3. Enable packet information
pre-extraction on the tunnel
interface.
qos pre-classify
By default, packet information
pre-extraction is disabled on a
tunnel interface.
Configuration example
Network requirements
Enable packet information pre-extraction on a tunnel interface.
Configuration procedure
# Enable packet information pre-extraction on tunnel interface Tunnel 0.
<Sysname> system-view
[Sysname] interface tunnel 0