[P-classifier-EXP4] if-match mpls-exp 4
[P-classifier-EXP4] quit
# Create four traffic behaviors and configure AF or EF actions for them.
[P] traffic behavior AF11
[P-behavior-AF11] queue af bandwidth pct 10
[P-behavior-AF11] traffic behavior AF21
[P-behavior-AF21] queue af bandwidth pct 20
[P-behavior-AF21] traffic behavior AF31
[P-behavior-AF31] queue af bandwidth pct 30
[P-behavior-AF31] traffic behavior EF
[P-behavior-EF] queue ef bandwidth pct 40
[P-behavior-EF] quit
# Create QoS policy QUEUE, and associate the behaviors with the classes to meet the
following requirements: guarantee 10% of the bandwidth for traffic with an EXP value of 1,
guarantee 20% of the bandwidth for traffic with an EXP value of 2, guarantee 30% of the
bandwidth for traffic with an EXP value of 3, and guarantee a low delay and 40% of the
bandwidth for traffic with an EXP value of 4.
[P] qos policy QUEUE
[P-qospolicy-QUEUE] classifier EXP1 behavior AF11
[P-qospolicy-QUEUE] classifier EXP2 behavior AF21
[P-qospolicy-QUEUE] classifier EXP3 behavior AF31
[P-qospolicy-QUEUE] classifier EXP4 behavior EF
[P-qospolicy-QUEUE] quit
# Apply QoS policy QUEUE to the outgoing traffic of Serial 2/0/2 on device P.
[P] interface serial 2/0/2
[P-Serial2/0/2] qos apply policy QUEUE outbound
After the configuration, when congestion occurs in VPN 1, the bandwidth proportion between
flows with the DSCP value being af11, af21, af31, and ef is 1:2:3:4, and the delay for the flow
with the DSCP value being ef is smaller than the other traffic flows.
124