How to configure Assured Forwarding (AF) for packets of a certain type on an AR

On AR routers, you can run the queue af command to configure Assured Forwarding (AF) for packets of a certain type and set the minimum bandwidth.
AF ensures a low drop probability of packets when the rate of outgoing service traffic does not exceed the minimum bandwidth. It is applied to services of heavy traffic whose bandwidth need to be ensured.
Configuration example: Set the minimum bandwidth for the traffic of network segment 192.168.100.0 to 3000 kbit/s.
[Huawei] acl 3022 //Configure an ACL to match traffic for which traffic is to be assured.
[Huawei-acl-adv-3022] rule permit ip source 192.168.100.0 0.0.0.255
[Huawei-acl-adv-3022] quit
[Huawei] traffic classifier c
[Huawei-classifier-c] if-match acl 3022 //Create a traffic classifier to protect the traffic matching the ACL rule.
[Huawei-classifier-c] quit
[Huawei] traffic behavior b
[Huawei-behavior-b] queue af bandwidth 3000 //Create a traffic behavior and set the minimum bandwidth to 3000 kbit/s.
[Huawei-behavior-b] quit
[Huawei] traffic policy p
[Huawei-trafficpolicy-p] classifier c behavior b //Create a traffic policy and bind the traffic classifier and traffic behavior to the traffic policy.
[Huawei-trafficpolicy-p] quit
[Huawei] interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0] traffic-policy p outbound //Apply the traffic policy on the interface.

Scroll to top