US 11,658,924 B2
Buffer allocation method, and device
Yongping Zhang, Beijing (CN); Bailing Li, Beijing (CN); and Xiongwei Zhang, Beijing (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Dec. 28, 2020, as Appl. No. 17/134,976.
Application 17/134,976 is a continuation of application No. PCT/CN2019/093640, filed on Jun. 28, 2019.
Claims priority of application No. 201810702803.X (CN), filed on Jun. 30, 2018.
Prior Publication US 2021/0119943 A1, Apr. 22, 2021
Int. Cl. H04L 49/9005 (2022.01); H04L 47/62 (2022.01); H04L 49/9047 (2022.01)
CPC H04L 49/9005 (2013.01) [H04L 47/6215 (2013.01); H04L 49/9052 (2013.01)] 12 Claims
OG exemplary drawing
 
1. A buffer allocation method, comprising:
determining, by a device, a first output rate of a first queue on the device and a second output rate of a second queue on the device; and
separately allocating, by the device, a first buffer to the first queue and a second buffer to the second queue based on a first ratio of the first output rate to the second output rate, wherein the separately allocating the first buffer to the first queue and the second buffer to the second queue comprises at least one of:
determining, by the device, the first ratio of the first output rate to the second output rate,
determining, by the device based on the first ratio, a second ratio of the first buffer to be allocated to the first queue to the second buffer to be allocated to the second queue, and
separately allocating, by the device, the first buffer to the first queue and the second buffer to the second queue based on the second ration and a buffer or the device; or
determining, by the device, that a sum of buffers occupied on the device, by a plurality pf queues is greater than or equal to a threshold, wherein the threshold is determined based on a size of a buffer of the device, and the plurality of queues comprise the first queue and the second queue, and
in response to determination that a sum of buffers occupied, on the device, by the plurality of queues is greater than or equal to a threshold, separately allocating, by the device, the first buffer to the first queue and the second buffer to the second queue based on the first ratio of the first output rate to the second output rate.