CPC H04L 47/122 (2013.01) [H04L 47/11 (2013.01); H04L 47/25 (2013.01); H04L 47/283 (2013.01); H04L 49/506 (2013.01)] | 17 Claims |
1. A congestion control method, comprising:
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.
|