Configuring HQoS Based on a Main Interface

This section describes how to configure HQoS based on a main interface.

Context

When congestion occurs because the assured bandwidth of traffic exceeds the interface bandwidth, you can change the default CIR, PIR, CBS, PBS, and weight of user queues on a main physical interface, thereby relieving congestion. If all trunk member interfaces are on the same network processor (NP) of the same board, the trunk member interfaces share the bandwidth configured on the trunk interface. Otherwise, the rate limit of each trunk member interface is the one configured on the trunk interface. In this case, the rate limiting fails. Therefore, users need to configure a bandwidth distribution mode so that traffic is allocated to trunk member interfaces based on weights.

In VS mode, this configuration is supported only by the admin VS.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run user-queue cir cir-value [ [ pir pir-value ] | [ flow-queue flow-queue-name ] | [ user-group-queue group-name ] ] * { inbound | outbound } [ service-template template-name [ adjust-on-card ] ]

    User queue scheduling parameters are configured to implement HQoS for user services.

  4. Run user-queue shaping ldp-traffic outbound

    HQoS is configured to take effect for L3VPN, IP, VLL, VPLS, and EVPN traffic on the interface.

  5. (Optional) Run qos schedule-tree distribute-mode outbound

    Weight-based bandwidth allocation for a trunk's member interfaces is configured for HQoS scheduling.

  6. (Optional) Run any of the following commands:

  7. (Optional) Run user-queue shaping bgp-local-ifnet-traffic outbound

    The HQoS function is enabled for the traffic carried by a BGP local IFNET tunnel on the interface.

    After HQoS is configured on an outbound interface of a BGP local IFNET tunnel, if the outbound interface resides on a downstream board equipped with a non-eTM subcard, you need to perform this step to allow HQoS to take effect.

  8. Run qos default user-queue { cir cir-value | pir pir-value | cbs cbs-value | pbs pbs-value | weight weight-value } * outbound

    The default user queue scheduling parameters are modified.

  9. Run commit

    The configuration is committed.

  10. Run quit

    Return to the system view.

  11. Run slot slot-id

    The slot view is displayed.

  12. Run qos user-queue burst-size bytes min-bytes time burst-time

    The minimum default burst size and burst time are configured for user queues.

  13. Run qos channel auto-adjust-quantity disable

    The function of automatically adjusting the number of users on a channel is disabled.

    • After the function of automatically adjusting the number of users on a channel is enabled or disabled, you must restart the corresponding board for the configuration to take effect.
    • After this function is disabled, run the qos channel-profile command to customize a channel profile based on the actual bandwidth to prevent channel insufficiency.

  14. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >