R3303-HP HSR6800 Routers ACL and QoS Configuration Guide

55
Configuration procedure
Configure Router A:
# Configure ACLs to match the packets from Server and Host A, respectively.
[RouterA] acl number 2001
[RouterA-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
[RouterA] acl number 2002
[RouterA-acl-basic-2002] rule permit source 1.1.1.2 0.0.0.0
# Configure a PQ list that assigns the packets from Server to the top queue and those from Host A to the
bottom queue when congestion occurs. Set the maximum queue size of the top queue to 50 and that of
the bottom queue to 100 in the PQ list.
[RouterA] qos pql 1 protocol ip acl 2001 queue top
[RouterA] qos pql 1 protocol ip acl 2002 queue bottom
[RouterA] qos pql 1 queue top queue-length 50
[RouterA] qos pql 1 queue bottom queue-length 100
# Apply PQ list 1 to Serial 2/1/1.
[RouterA] interface serial 2/1/1
[RouterA-Serial2/1/1] qos pq pql 1
Configuring CQ
This feature is not supported on SAP modules operating in bridge mode.
You can configure a CQ list that contains up to 16 queues (1-16), with each queue including the match
criteria for packets to enter the queue, the length of the queue, and the bytes sent from the queue during
a cycle of round robin queue scheduling. Only one CQ list can be applied to an interface.
You must enable the rate limit function for the queuing function to take effect on these interfaces: tunnel
interfaces, subinterfaces, Layer 3 aggregate interfaces, HDLC link bundle interfaces, RPR logical
interfaces, and VT interfaces configured with PPPoE, PPPoA, or PPPoEoA.
To configure CQ:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure a CQ list.
qos cql cql-index protocol ip
[ queue-key key-value ] queue
queue-number
Optional.
3. Specify the default queue.
qos cql cql-index default-queue
queue-number
Optional.
This command specifies the queue
to which unmatched packets are
assigned.
4. Set the length of a queue.
qos cql cql-index queue
queue-number queue-length
queue-length
Optional.
5. Configure the bytes sent from
a queue during a cycle of
round robin queue
scheduling.
qos cql cql-index queue
queue-number serving byte-count
Optional.