US 12,452,176 B2
Load balancing method for multi-thread forwarding and related apparatus
Xiangjun Meng, Shenzhen (CN); Yunjian Wang, Hangzhou (CN); Lijun Li, Hangzhou (CN); Chunhe Li, Hangzhou (CN); and Dingke Xu, Hangzhou (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Dec. 8, 2023, as Appl. No. 18/533,886.
Application 18/533,886 is a continuation of application No. PCT/CN2022/095899, filed on May 30, 2022.
Claims priority of application No. 202110651243.1 (CN), filed on Jun. 10, 2021.
Prior Publication US 2024/0106754 A1, Mar. 28, 2024
Int. Cl. H04L 47/127 (2022.01); H04L 47/125 (2022.01); H04L 47/625 (2022.01); H04L 49/00 (2022.01); H04L 49/90 (2022.01)
CPC H04L 47/125 (2013.01) [H04L 47/626 (2013.01); H04L 49/70 (2013.01); H04L 49/9068 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
determining a first thread and a second thread from a plurality of threads, wherein the plurality of threads is for processing data packets in virtual network interface card queues, wherein the first thread processes a first load of the data packets, wherein the second thread processes a second load of the data packets;
determining a first queue from a plurality of virtual network interface card queues corresponding to the first thread;
switching the first queue from the first thread to the second thread in response to the first load being greater than a first threshold and the second load being less than a second threshold, and wherein the first threshold is greater than the second threshold; and
processing, by the second thread, a first data packet in the first queue.