R3303-HP 6600/HSR6600 Routers ACL and QoS Configuration Guide

81
Perform AF for packets with DSCP AF11 or AF21, and set the minimum guaranteed bandwidth to
500 kbps for the packets.
Perform EF for packets with DSCP EF, and set the maximum bandwidth to 2000 kbps for the
packets.
Figure 28 Network diagram
Configuration procedure
Before performing the configuration, make sure that:
Router C and Router D can reach each other through Router A and Router B.
The DSCP field of the traffic has been set before it enters Router A.
Configure Router A:
# Define three classes to match the IP packets with DSCP 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. Enable AF and set the minimum guaranteed bandwidth to 500 kbps in
each traffic behavior.
[RouterA] traffic behavior af11_behav
[RouterA-behavior-af11_behav] queue af bandwidth 500
[RouterA-behavior-af11_behav] quit
[RouterA] traffic behavior af21_behav
[RouterA-behavior-af21_behav] queue af bandwidth 500
[RouterA-behavior-af21_behav] quit
# Define a traffic behavior. Enable EF and set the maximum bandwidth to 2000 kbps in the traffic
behavior.
[RouterA] traffic behavior ef_behav
[RouterA-behavior-ef_behav] queue ef bandwidth 2000