R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
57
CBQ configuration example
Network requirements
As shown in Figure 17, configure a QoS policy to meet the following requirements:
• Traffic from Router C is classified into three classes based on DSCP values. Perform AF for traffic with
DSCP values of AF11 and AF21, and set a minimum guaranteed bandwidth percentage of 5% for
the traffic.
• Perform EF for traffic with a DSCP value of EF and set the maximum bandwidth percentage for the
traffic to 30%.
Before performing the configuration, make sure:
• The route from Router C to Router D through Router A and Router B is reachable.
• The DSCP fields have been set for the traffic before the traffic enters Router A.
Figure 17 Network diagram
Configuring Router A
# Define three classes to match the IP packets with the DSCP values AF11, AF21, and EF, respectively.
<RouterA> system-view
[RouterA] traffic classifier af11_class
[RouterA-classifier-af11_class] if-match dscp af11
[RouterA-classifier-af11_class] quit
[RouterA]traffic classifier af21_class
[RouterA-classifier-af21_class] if-match dscp af21
[RouterA-classifier-af21_class] quit
[RouterA] traffic classifier ef_class
[RouterA-classifier-ef_class] if-match dscp ef
[RouterA-classifier-ef_class] quit
# Define two traffic behaviors, and enable AF and set a minimum guaranteed bandwidth percentage of
5% in each traffic behavior.
[RouterA] traffic behavior af11_behav
[RouterA-behavior-af11_behav] queue af bandwidth pct 5
[RouterA-behavior-af11_behav] quit
[RouterA] traffic behavior af21_behav
[RouterA-behavior-af21_behav] queue af bandwidth pct 5
[RouterA-behavior-af21_behav] quit
Router A
GE2/1/0
1.1.1.1/24
GE2/1/0
1.1.1.2/24
Router C
Router D
Router B
AF11
AF21
EF
EthernetEthernet