76
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
[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