Patent ID: 11870698
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H  Y | IPC H

Claim 6:
7. A network device comprising a processor and a memory, wherein
the memory is configured to store a computer program, wherein the computer program comprises program instructions;
the processor is configured to invoke the computer program to implement a congestion control method, wherein the congestion control method comprises:
obtaining statistical information of a target egress queue within a first time period, wherein the target egress queue is an egress queue in a network device;
determining, based on the statistical information of the target egress queue within the first time period, an explicit congestion notification (ECN) threshold for the target egress queue within a second time period; and
setting an ECN mark for a data packet in the target egress queue, when a queue depth of the target egress queue exceeds the ECN threshold within the second time period;
wherein the statistical information further comprises queue depth change information, and the determining, based on the statistical information of the target egress queue within the first time period, an explicit congestion notification (ECN) threshold for the target egress queue within a second time period comprises:
when a queue depth of the target egress queue at an end moment of the first time period is less than a queue depth of the target egress queue at a start moment of the first time period, determining a maximum ECN threshold supported by a forwarding chip on which the target egress queue is located as the ECN threshold for the target egress queue within the second time period, or canceling setting of the ECN threshold for the target egress queue within the second time period.