R3303-HP HSR6800 Routers ACL and QoS Configuration Guide
151
[Router-qospolicy-out] classifier Afather behavior Afather
[Router-qospolicy-out] classifier Bfather behavior Bfather
[Router-qospolicy-out] quit
# Set the maximum available bandwidth and maximum reserved bandwidth for interface
GigabitEthernet 2/0/1, configure line rate on interface GigabitEthernet 2/0/1, and apply the parent
QoS policy to the outgoing traffic of interface GigabitEthernet 2/0/1.
[Router] interface GigabitEthernet 2/0/1
[Router-GigabitEthernet2/0/1] qos max-bandwidth 50000
[Router-GigabitEthernet2/0/1] qos reserved-bandwidth pct 100
[Router-GigabitEthernet2/0/1] qos lr outbound cir 50000
[Router-GigabitEthernet2/0/1] qos apply policy out outbound
Configuration example for implementing
hierarchical CAR through nesting QoS policies
Network requirements
A university has three dormitory buildings, A, B, and C. Each dormitory building provides 200
dormitories, and each dormitory is assigned a VLAN ID (1 to 200). The dormitories of a building are
uplinked through the access switch for the building. The access switch of a building performs QinQ for
the packets from users, and tags the packets with a VLAN ID assigned to the building, which is 1 for
building A, 2 for building B, and 3 for building C. The QinQ packets are sent to subinterfaces
GigabitEthernet 2/0/0.1, GigabitEthernet 2/0/0.2, and GigabitEthernet 2/0/0.3 of the router. The
router performs QinQ termination for the packets, and accesses the Internet through a 300-Mbps
Ethernet interface.
Buildings A, B, and C are on network segments 192.168.0.0/24, 192.168.1.0/24, and 192.168.2.0/24,
respectively. Because the bandwidth of the WAN is limited, you need to rate-limit the users: limit the rate
of accessing the external network for each building, and limit the rate of accessing non-HTTP services.
Configure hierarchical CAR through nesting QoS policies to:
• Limit the rate of accessing the external network to 100 Mbps for each building.
• Limit the rate of accessing the non-HTTP services to 30 Mbps for each building.