Configuring AI ECN
<HUAWEI> system-view [~HUAWEI] low-latency fabric [~HUAWEI-low-latency-fabric] undo qos dynamic-ecn-threshold enable //Disable the dynamic ECN threshold function for all lossless queues. Skip this step for the CloudEngine 16800. [*HUAWEI-low-latency-fabric] quit [*HUAWEI] commit [~HUAWEI] ai-service [*HUAWEI-ai-service] ai-ecn [*HUAWEI-ai-service-ai-ecn] ai-ecn enable
Precautions:
This function takes effect only for the queue with the highest priority in the default PFC profile bound to an interface in Up state. You can adjust the queue priorities in the default PFC profile to adjust the queue for which the AI ECN function is enabled.
If the static ECN threshold or WRED function has been enabled for the queue with the highest priority in the default PFC profile, the AI ECN function cannot be enabled on such a queue. Likewise, if the AI ECN function has been enabled for the queue with the highest priority in the default PFC profile, the static ECN threshold or WRED function cannot be enabled on such a queue.
Additionally, the AI ECN function and the dynamic ECN threshold function are mutually exclusive. In other words, if the dynamic ECN threshold function has been enabled, you need to disable the dynamic ECN threshold function for lossless queues before configuring the AI ECN function.
After the configuration is complete, run the display ai-ecn calculated state command to check whether the AI ECN function is enabled for lossless queues and the calculated ECN threshold.
[~HUAWEI] display ai-ecn calculated state interface 100ge 1/0/1
*: Indicates the queue where AI ECN takes effect.
AI-ECN State: enabled
--------------------------------------------------------------------
Interface Queue Low-Threshold High-Threshold Probability
(Byte) (Byte) (%)
--------------------------------------------------------------------
100GE1/0/1 0 0 0 0
1 0 0 0
2 0 0 0
*3 4896 18874080 40
4 0 0 0
5 0 0 0
6 0 0 0
7 0 0 0
Note that the display ai-ecn calculated state command displays only the ECN threshold calculated by the AI ECN function. To check the actual ECN threshold that takes effect, run the display qos ecn threshold command. (This command is not supported on the CloudEngine 16800.)