AND-mode hierarchical CAR configuration example

Network requirements

As shown in Figure 22:

Figure 22: Network diagram

Configuration procedure

# Configure a hierarchical CAR action according to the rate limit requirements.

<Device> system-view
[Device] qos car http hierarchy cir 320

# Configure ACL 3000 to match HTTP packets.

[Device] acl advanced 3000
[Device-acl-ipv4-adv-3000] rule permit tcp destination-port eq 80
[Device-acl-ipv4-adv-3000] quit

# Create traffic class 1, and use ACL 3000 as the match criterion in the traffic class.

[Device] traffic classifier 1
[Device-classifier-1] if-match acl 3000
[Device-classifier-1] quit

# Create traffic behavior 1.

[Device] traffic behavior 1

# Configure the common CAR action in the traffic behavior, and use the hierarchical CAR, with the collaborating mode being AND.

[Device-behavior-1] car cir 240 hierarchy-car http mode and
[Device-behavior-1] quit

# Create a QoS policy named http, and associate traffic class 1 with traffic behavior 1 in the QoS policy.

[Device] qos policy http
[Device-qospolicy-http] classifier 1 behavior 1
[Device-qospolicy-http] quit

# Apply QoS policy http to the incoming traffic of and .

[Device] interface 
[Device-] qos apply policy http inbound
[Device-] quit
[Device] interface 
[Device-] qos apply policy http inbound