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).
Configuring ECN
Configuring ECN
Context
Combination of WRED and Explicit Congestion Notification (ECN) enables a terminal device to detect congestion and notify the source of congestion. After receiving the notification, the source reduces the rate of sending packets to prevent congestion from aggravating.
To limit the rate of packets sent by the upstream device to prevent congestion aggravation, configure ECN.
Global ECN cannot be enabled in a VS except Admin-VS in port mode, whereas global ECN enabled in Admin-VS takes effect in a VS in port mode. Global ECN can be enabled in a VS in port group mode and takes effect only in this VS.
For the CE12800E equipped with ED-E, EG-E, and EGA-E series cards, after ECN is enabled for a queue, if congestion occurs, the device does not randomly discard packets. Instead, the device randomly marks packets based on the WRED drop profile. When the queue length reaches the upper threshold in the WRED drop profile, the device starts to discard new packets entering the queue. In this case, ECN cannot reset the CE field.
For switches excluding the CE12800E equipped with ED-E, EG-E, and EGA-E series cards, after ECN is enabled for a queue, if congestion occurs, the device does not randomly discard packets. Instead, the device randomly marks packets based on the ECN profile.
Procedure
Configure ECN on the CE12800.
Run system-view
The system view is displayed.
Run qos ecn
Global ECN is enabled.
Run drop-profiledrop-profile-name
A WRED drop profile is created and the drop profile view is displayed.
By default, the WRED drop profile default exists. The WRED drop profile default can be modified but cannot be deleted.
Run ecn { buffer-sizelow-limitlow-buffer-sizehigh-limithigh-buffer-size | buffer-sizecelllow-limitlow-buffer-cell-sizehigh-limithigh-buffer-cell-size | low-limitlow-limit-percentagehigh-limithigh-limit-percentage } discard-percentagediscard-percentage-value
ECN parameters including the absolute values of upper and lower drop thresholds, upper and lower drop thresholds in percentage, and maximum drop probability are configured.
By default, the absolute values of upper and lower drop thresholds, upper and lower drop thresholds in percentage, and maximum drop probability are not set.
Run quit
Exit from the WRED drop profile view.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
Run qos queuequeue-indexecndrop-profile-name
ECN is enabled for a specified queue.
Run commit
The configuration is committed.
Configure ECN on the CE12800E.
Run system-view
The system view is displayed.
Run drop-profiledrop-profile-name
A WRED drop profile is created and the drop profile view is displayed.
By default, the WRED drop profile default exists. The WRED drop profile default can be modified but cannot be deleted.
(Optional) Run ecn weightweight-value
The ECN weight is configured.
By default, the ECN weight is 4.
Only the CE12800E equipped with FD-X series cards supports this command.
(For the CE12800E equipped with ED-E, EG-E, and EGA-E series cards) Run color { green | red | yellow } { buffer-sizelow-limitlow-buffer-sizehigh-limithigh-buffer-size | low-limitlow-limit-percentagehigh-limithigh-limit-percentage } discard-percentagediscard-percentage
WRED parameters are set.
By default, the upper drop threshold, lower drop threshold, and maximum drop probability of a WRED drop profile are all 100, and absolute values of upper and lower drop thresholds are not configured.
(For the CE12800E equipped with FD-X series cards) Run ecn { buffer-sizelow-limitlow-buffer-sizehigh-limithigh-buffer-size | buffer-sizecelllow-limitlow-buffer-cell-sizehigh-limithigh-buffer-cell-size | low-limitlow-limit-percentagehigh-limithigh-limit-percentage } discard-percentagediscard-percentage-value
WRED parameters are set.
By default, the upper and lower drop thresholds in percentage, absolute values of upper and lower drop thresholds, and maximum drop probability are not set.