No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
When the inbound interface rate on the downstream device is variable and lower than the outbound interface rate on the upstream device, configure adaptive traffic shaping on the outbound interface of the upstream device to reduce congestion and packet loss.
Adaptive traffic shaping is implemented by associating an NQA test instance with an adaptive traffic profile on the upstream device. The NQA test instance detects the packet loss ratio on the downstream device, and the upstream device dynamically adjusts traffic shaping parameters based on the packet loss ratio as follows:
Reduces the traffic shaping rate when the NQA test instance detects that the packet loss ratio is larger than the upper threshold in the adaptive traffic profile.
Increases the traffic shaping rate when all the following conditions are met:
The NQA test instance detects that the packet loss ratio is lower than the lower threshold in the adaptive traffic profile.
Congestion occurs on the outbound interface of the upstream device.
The interval for increasing the traffic shaping rate is reached.
Retains the traffic shaping rate in one of the following scenarios:
The NQA test instance detects that the packet loss ratio is smaller than the lower threshold in the adaptive traffic profile and no congestion occurs on the outbound interface of the upstream device.
The detected packet loss ratio is within the packet loss ratio range in the adaptive traffic profile.
Uses the upper threshold for the traffic shaping rate in the adaptive traffic profile when the NQA test fails.
Uses the upper threshold for the traffic shaping rate in the adaptive traffic profile when the adaptive traffic profile is not bound to any NQA test instance.
Procedure
Configure an adaptive traffic profile.
Run system-view
The system view is displayed.
(Optional) Run qos overheadlayer { link | physics }
A mode is specified for calculating packet lengths during traffic policing or traffic shaping.
By default, the system counts the physical-layer and link-layer compensation information in packet lengths during traffic policing or traffic shaping.
Run qos adaptation-profileadaptation-profile-name
An adaptive traffic profile is created and its view is displayed.
Run rate-rangelow-thresholdlow-threshold-valuehigh-thresholdhigh-threshold-value
The traffic shaping rate range is set.
(Optional) Run rate-adjust stepstep
The traffic shaping rate change step is set.
(Optional) Run rate-adjust increase intervalinterval-value
The interval for increasing the traffic shaping rate is set.
(Optional) Run rate-adjust losslow-thresholdlow-threshold-percentagehigh-thresholdhigh-threshold-percentage
The packet loss ratio range is set.
Run track nqaadmin-nametest-name
An NQA test instance is bound to the adaptive traffic profile.
When configuring an NQA test instance, ensure that NQA packets can enter high-priority queues so that they are not discarded in the case of heavy traffic.
Run quit
Exit from the adaptive traffic profile.
Apply the adaptive traffic profile.
Run interfaceinterface-typeinterface-number[.subinterface-number]
The interface or sub-interface view is displayed.
Run qos gts adaptation-profileadaptation-profile-name
The adaptive traffic profile is applied to the interface or sub-interface.