US 12,238,162 B2
Method and non-transitory computer-readable storage medium and apparatus for load balancing of network processing unit
Weihua Huang, Nanjing (CN); and Fei Yan, Nanjing (CN)
Assigned to AIROHA TECHNOLOGY (SUZHOU) LIMITED, Suzhou (CN)
Filed by Airoha Technology (Suzhou) Limited, Suzhou (CN)
Filed on Feb. 27, 2023, as Appl. No. 18/114,778.
Claims priority of application No. 202211215701.8 (CN), filed on Sep. 30, 2022.
Prior Publication US 2024/0121295 A1, Apr. 11, 2024
Int. Cl. G06F 15/173 (2006.01); H04L 67/1008 (2022.01); H04L 67/1021 (2022.01)
CPC H04L 67/1008 (2013.01) [H04L 67/1021 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A method for load balancing of a network processing unit (NPU), performed by a central processing unit (CPU), wherein the CPU is coupled to the NPU and the NPU comprises a plurality of cores, the method comprising:
reassigning a data stream processed by a first core in the NPU, which is under a high load, to a second core in the NPU, which is under a low load, wherein the low load is lower than the high load,
wherein the data stream is defined by a quintuple, and the quintuple is composed of a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port and a protocol type,
wherein an NPU cost of the data stream is lower than a sharable load of the second core,
wherein the NPU cost of the data stream is calculated based on a data rate of the data stream.