R3303-HP HSR6800 Routers ACL and QoS Configuration Guide

125
# Create QoS policy REMARK, and associate the behaviors with the classes in the QoS policy to
mark different classes of packets with different EXP values.
[PE1] qos policy REMARK
[PE1-qospolicy-REMARK] classifier af11 behavior exp1
[PE1-qospolicy-REMARK] classifier af21 behavior exp2
[PE1-qospolicy-REMARK] classifier af31 behavior exp3
[PE1-qospolicy-REMARK] classifier efclass behavior exp4
[PE1-qospolicy-REMARK] quit
# Apply QoS policy REMARK to the incoming traffic of interface GigabitEthernet 1/0/1 of PE1 in
the MPLS network.
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] qos apply policy REMARK inbound
[PE1-GigabitEthernet1/0/1] quit
2. Configure device P:
# Configure four classes to match EXP values 1, 2, 3 and 4 of the MPLS packets, respectively.
<P> system-view
[P] traffic classifier EXP1
[P-classifier-EXP1] if-match mpls-exp 1
[P-classifier-EXP1] traffic classifier EXP2
[P-classifier-EXP2] if-match mpls-exp 2
[P-classifier-EXP2] traffic classifier EXP3
[P-classifier-EXP3] if-match mpls-exp 3
[P-classifier-EXP3] traffic classifier EXP4
[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.