US 12,407,609 B2
Methods for shunting clustered gateways
Zhifeng Huang, Beijing (CN); and Wansheng Zhang, Beijing (CN)
Assigned to Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed by Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed on Apr. 1, 2022, as Appl. No. 17/657,708.
Claims priority of application No. 202111064467.9 (CN), filed on Sep. 10, 2021.
Prior Publication US 2023/0081696 A1, Mar. 16, 2023
Int. Cl. H04L 45/7453 (2022.01); H04L 12/46 (2006.01); H04L 12/66 (2006.01); H04L 61/256 (2022.01)
CPC H04L 45/7453 (2013.01) [H04L 12/4633 (2013.01); H04L 12/66 (2013.01); H04L 61/256 (2013.01); H04L 2212/00 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method for shunting clustered gateways, comprising:
in response to receiving a first packet sent by a target internal network machine, acquiring a first hash value, wherein the first hash value is generated by a shunt of a public network gateway cluster, and the shunt is configured to perform a hash calculation on the first packet based on a pre-configured port dictionary;
selecting a target gateway machine from the public network gateway cluster according to the first hash value;
sending the first packet to the target gateway machine; and
configuring the port dictionary on the basis of a preset port range, wherein the port dictionary is information configured on the shunt of the public network gateway cluster and at least one public network machine, and at least one port field in the port dictionary comprises at least one hash bucket and at least one port linked list, each of the at least one hash bucket comprising one port linked list, and a plurality of non-repeated addresses are existed in the one port linked lists of different hash buckets.