R3303-HP HSR6800 Routers ACL and QoS Configuration Guide
66
Figure 23 Network diagram
Configuration procedure
Configure 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
# 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
Router A
S1/1/1
1.1.1.1/24
S1/1/1
1.1.1.2/24
Router C
Router D
Router B
AF11
AF21
EF
EthernetEthernet