1726
C
91: F
R
Q
S C
HAPTER
RAME
ELAY
O
ONFIGURATION
# Create an FR class and apply the QoS policy to it.
[RouterA]fr class frclass
[RouterA-fr-class-frclass] apply policy test outbound
[RouterA-fr-class-frclass] quit
# Perform FR-related configuration on Serial 2/1 interface.
[RouterA] interface Serial 2/1
[RouterA-Serial2/1] link-protocol fr
[RouterA-Serial2/1] fr map ip 192.168.1.2 60
[RouterA-Serial2/1] ip address 192.168.1.1 255.255.255.0
# Reserve bandwidth on Serial 2/1 interface.
[RouterA-Serial2/1] qos reserved-bandwidth pct 70
# Apply the FR class to the PVC.
[RouterA-Serial2/1] fr dlci 60
[RouterA-fr-dlci-Serial2/1-60] fr-class frclass
2 Configuration on Router B
# Define a traffic class.
<RouterB> system-view
[RouterB] traffic classifier af11_31 operator or
[RouterB-classifier-af11_31] if-match dscp af11
[RouterB-classifier-af11_31] if-match dscp af31
[RouterB-classifier-af11_31] quit
# Define a traffic behavior for AF queue.
[RouterB] traffic behavior afwred
[RouterB-behavior-afwred] queue af bandwidth pct 50
[RouterB-behavior-afwred] wred dscp
[RouterB-behavior-afwred] wred dscp af11 low-limit 10 high-limit 40
discard-probabilty 15
[RouterB-behavior-afwred] wred dscp af31 low-limit 10 high-limit 60
discard-probabilty 20
[RouterB-behavior-afwred] quit
# Define a traffic behavior for the WFQ queues.
[RouterB] traffic behavior wfqwred
[RouterB-behavior-wfqwred] queue wfq
[RouterB-behavior-wfqwred] wred dscp
[RouterB-behavior-wfqwred] wred dscp 0 low-limit 10 high-limit 20 di
scard-probabilty 8
[RouterB-behavior-wfqwred] quit
# Define a QoS policy to apply WFQ algorithm for packets that are of the default
class.
[RouterB] qos policy test
[RouterB-qospolicy-test] classifier default-class behavior wfqwred