US 11,991,085 B2
Data packet marking method and device, and data transmission system
Dawei Liu, Beijing (CN); and Nongda Hu, Beijing (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed by Huawei Technologies Co., Ltd., Guangdong (CN)
Filed on Oct. 1, 2021, as Appl. No. 17/492,395.
Application 17/492,395 is a continuation of application No. PCT/CN2020/083193, filed on Apr. 3, 2020.
Claims priority of application No. 201910271733.1 (CN), filed on Apr. 4, 2019; and application No. 201910345779.3 (CN), filed on Apr. 26, 2019.
Prior Publication US 2022/0045960 A1, Feb. 10, 2022
Int. Cl. H04L 47/31 (2022.01); H04L 12/26 (2006.01); H04L 12/801 (2013.01); H04L 12/863 (2013.01); H04L 43/026 (2022.01); H04L 47/11 (2022.01); H04L 47/2425 (2022.01); H04L 47/2483 (2022.01); H04L 47/62 (2022.01)
CPC H04L 47/2483 (2013.01) [H04L 43/026 (2013.01); H04L 47/11 (2013.01); H04L 47/2425 (2013.01); H04L 47/621 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A data packet marking method, applied to a switching device, wherein the method comprises:
collecting statistics about a target parameter of a first data flow, wherein a target queue of the switching device is used to buffer a data packet in the first data flow, wherein the target parameter is used to reflect an amount of data in the first data flow;
when a length of the target queue meets a first length condition, determining, based on at least one of the target parameter and an auxiliary parameter of the first data flow, a marking probability corresponding to the first data flow; and
performing congestion marking on a data packet in the first data flow based on the marking probability corresponding to the first data flow,
wherein the auxiliary parameter of the first data flow is related to the target parameter of the first data flow, the auxiliary parameter comprises a level of the first data flow,
wherein the target parameter of the first data flow falls within one of a plurality of target parameter ranges, the plurality of target parameter ranges are in a one-to-one correspondence with a plurality of data flow levels, and the level of the first data flow is a data flow level that is in the plurality of data flow levels and that corresponds to one target parameter range.