[go: up one dir, main page]

CN100411401C - Method for network equipment self adaption load equalization - Google Patents

Method for network equipment self adaption load equalization Download PDF

Info

Publication number
CN100411401C
CN100411401C CNB021594767A CN02159476A CN100411401C CN 100411401 C CN100411401 C CN 100411401C CN B021594767 A CNB021594767 A CN B021594767A CN 02159476 A CN02159476 A CN 02159476A CN 100411401 C CN100411401 C CN 100411401C
Authority
CN
China
Prior art keywords
network
node
cluster
hash
load balancing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB021594767A
Other languages
Chinese (zh)
Other versions
CN1512729A (en
Inventor
韦卫
杨聪毅
刘永锋
李清玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB021594767A priority Critical patent/CN100411401C/en
Publication of CN1512729A publication Critical patent/CN1512729A/en
Application granted granted Critical
Publication of CN100411401C publication Critical patent/CN100411401C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a self adaption load equalization method for a network device. Each node in a network device cluster makes use of autonomous load equalization operation to process network data packets which enter the cluster in parallel and in the equalization mode. Then, load information, a, CPU and memory utilization ratio information are obtained from each node. When failure of the operating state of a certain node occurs, the cluster can dynamically adjust the rest of normal nodes, and can ensure that the cluster can normally process all network data packets. The present invention solves the problem of the load equalization of network flow quantity, improves the reliability, the high availability and the processing capability to the data packets of the network system, gives full play to the processing capability and the utilization ratio of a plurality of network devices, and solves the problems of the single failure point of the system.

Description

Self-adaptive load balancing method for network equipment
The technical field is as follows:
the invention relates to a network equipment self-adaptive load balancing method, which comprises a firewall, a router, a Virtual Private Network (VPN) gateway, intrusion detection equipment or a special server and other load balancing methods; in particular to a method for realizing distributed self-adaptive load balance of a network cluster, belonging to the technical field of computer networks.
Background art:
at present, the exponential increase of network traffic makes network devices such as firewalls, routers and the like become bottlenecks that limit network bandwidth, and greatly restricts the practical application of networks. Meanwhile, the reliability and high availability of the whole network system are greatly influenced. In order to improve the reliability of the network system, a common technical means is to adopt a firewall dual-computer hot standby technology. However, in the firewall dual-computer hot standby technology, the firewall as the hot standby is in the standby state and does not participate in processing the network traffic. The essence of this technique is to ensure the reliability of the system through redundant techniques. Although this improves the reliability of the entire system to some extent, it wastes device resources and cannot fully exploit the utilization and efficiency of firewalls.
On the other hand, network security devices such as firewalls, VPN gateways, etc. increasingly become the single point of failure of network systems. The problem is only relieved by adopting the dual-computer hot standby technology, but the problem cannot be fundamentally solved.
Therefore, advanced technologies must be adopted to solve the load balancing problem of network traffic, so as to improve the reliability, high availability and processing capability of the network system.
The invention content is as follows:
the invention mainly aims to provide a network equipment self-adaptive load balancing method, which is used for solving the load balancing problem of network flow and improving the reliability, high availability and data packet processing capacity of a network system.
Another objective of the present invention is to provide a method for network device adaptive load balancing, which fundamentally solves the problem that a network security device becomes a single failure point of a network system.
The invention is realized by the following technical scheme:
a network equipment self-adapting load balancing method, each node in the network equipment cluster monitors the node running state through heartbeat protocol, each node only processes the data packet belonging to its own processing range, and the load balancing operation in the network equipment cluster is carried out according to the running state of each node; the method specifically comprises the following steps:
step 1: a master node in the cluster communicates with each slave node through a heartbeat protocol to acquire load information and state information of each slave node;
step 2: when the slave node fails, the master node performs load balancing operation in the network equipment cluster again according to the residual node number, and redistributes a data packet hash (hash) interval to be processed for each node.
The above method further comprises:
and step 3: the master node equipment sends heartbeat information of the master node equipment to other slave equipment within a specified time; when the slave device does not receive the heartbeat information of the master node device within the specified time, the master node device is considered to have a fault, and one slave node device near the master node device automatically takes over the task of the master node device.
The heartbeat information at least comprises: node number or load condition or IP address or Hash value space or one or the combination of configuration synchronization mark information or load synchronization mark information; the information is transmitted by each node device to other nodes through the network within a prescribed time.
The load balancing operation in the network equipment cluster comprises the following steps:
step 21: calculating the hash value interval of the whole cluster; the method specifically comprises the following steps: determining the interval of the cluster hash value, setting the lower limit of the interval to be zero, and calculating the upper limit of the hash interval according to the following formula:
HU=(2m-1);
wherein,
HU is the upper limit value of the hash interval;
m is a hash value binary digit value;
step 22: dividing a hash value interval of each sub-device in the cluster according to the following formula;
HashI=((i-1)×SE,i×SE]
SE = HashV SEN
wherein: 1, 2, …, SEN;
HashI is a Hash numerical value interval where the I-th sub-device is located;
SE is a numerical value interval size value occupied by each sub-device of the cluster;
HashV is the cluster hash upper limit value HU calculated in step 21;
SEN is the total number of sub-devices in the cluster;
step 23: the ports with the same number of all the devices in the cluster can receive network messages from the external interfaces of the cluster through the shared network;
step 24: each node device calculates and processes the received network data message.
The header information includes at least source address and destination address information of the IP header.
The specific processing procedure of step 24 is:
step 241: when each node device receives a network data message, the header information of the message is taken out, and the hash function is used for calculation;
step 242: judging whether the calculation result falls within a hash value interval occupied by the node equipment; if yes, the node equipment processes the received network message; otherwise, the network message is discarded.
Each node device in the network device cluster is the same device, and one of the network interfaces of each node device is connected through a shared network.
The invention solves the load balancing problem of network flow, and improves the reliability, high availability and data packet processing capability of the network system. The processing capacity and the utilization rate of a plurality of network devices are fully exerted, and the problem of single fault point of the system is solved.
Description of the drawings:
fig. 1 is a schematic structural diagram of a network cluster according to the present invention.
The specific implementation mode is as follows:
the invention is illustrated in detail in the following by specific examples and figures:
referring to fig. 1, in an example of the present invention, m node devices are provided in a network cluster 1, and each node device is the same device; the number of network interfaces of each device is 3, and the serial numbers are as follows in sequence: i1, I2, I3, i.e. 3 network interfaces outside the whole network cluster 1.
First, cluster node devices are connected, and network interfaces I1 of m devices are connected by using a shared network device, such as: an Ethernet hub with a broadcasting function or a switch with a broadcasting function, wherein the number of network ports of the hub is at least m + 1; the m ports of the hub are connected to I1 ports of m devices, and the m +1 th interface of the hub is used as the 1 st interface outside the cluster. The same as the method, I2 and I3 interfaces of m devices are connected in sequence to form I2 and I3 network interfaces outside the cluster.
The automatic load balancing method of the network data packet text by the node equipment in the cluster comprises the following steps:
calculating the maximum value of the cluster hash;
in the cluster of this embodiment, there are m sub-devices, then: and equally dividing the cluster hash maximum value range from 0 to the cluster hash maximum value range into m cluster hash value intervals, wherein each device occupies one value interval.
Ports with the same number of all the devices in the cluster can receive network messages from external interfaces of the cluster due to the connection method of the cluster node devices.
When a port of each node device receives a network data message, firstly, the header information of the message is taken out, a hash function is used for calculating a result, then, whether the hash result falls in a hash value interval occupied by the node device is judged, and if yes, the node device processes the received network message; otherwise, the network message is discarded.
By the method, the cluster is processed in parallel, so that the network equipment in the cluster has the capacity of automatic load balancing, the distributed self-adaptive load balancing of the network cluster is realized, and in order to ensure the reliable operation of the cluster, the management of the cluster adopts a master-slave mode management, namely: and setting one node device as a master node and other node devices as slave nodes in the cluster, wherein the cluster nodes perform load balancing according to the load condition of each node, the utilization rate of a CPU (Central processing Unit) and a memory and the load condition of the whole cluster, which are exchanged among the cluster nodes through a heartbeat protocol.
The heartbeat information of the node device described herein includes: node number, load condition, IP address, hash value space, configuration synchronization mark, load synchronization mark and other information.
Each node device sends heartbeat information to the master node device within the specified time, and if the master node device does not receive the heartbeat of the slave node device within the specified time, the slave node device is considered to have a fault; when a certain slave node device fails, the master node device recalculates the cluster hash interval according to the number of the remaining slave node devices, and allocates a new cluster hash interval value to the remaining slave node devices; the master node equipment also has to send own heartbeat information to other slave equipment within a specified time; when the slave node device does not receive the heartbeat of the master node device within the specified time, the master node device is considered to be in failure, and one slave node device near the master node device automatically takes the task of the master node device.
Finally, it should be noted that: the above embodiments are only used to illustrate the present invention and do not limit the technical solutions described in the present invention; thus, while the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted; all such modifications and variations are intended to be included herein within the scope of this disclosure and the present invention and protected by the following claims.

Claims (7)

1. A method for network device adaptive load balancing is characterized in that: each node in the network equipment cluster monitors the node running state mutually through a heartbeat protocol, each node only processes data packets belonging to the processing range of the node, and load balancing operation in the network equipment cluster is carried out according to the running state of each node; the method specifically comprises the following steps:
step 1: a master node in the cluster communicates with each slave node through a heartbeat protocol to acquire load information and state information of each slave node;
step 2: and when the slave node fails, the master node performs load balancing operation in the network equipment cluster again according to the residual node number, and redistributes the hash interval of the data packet to be processed for each node.
2. The method of network device adaptive load balancing according to claim 1, wherein: the method still further comprises:
and step 3: the master node equipment sends heartbeat information of the master node equipment to other slave equipment within a specified time; when the slave device does not receive the heartbeat information of the master node device within the specified time, the master node device is considered to have a fault, and one slave node device near the master node device automatically takes over the task of the master node device.
3. The method for network device adaptive load balancing according to claim 1 or 2, wherein: the heartbeat information at least comprises: node number or load condition or IP address or Hash value space or one or the combination of configuration synchronization mark information or load synchronization mark information; the information is transmitted by each node device to other nodes through the network within a prescribed time.
4. The method of network device adaptive load balancing according to claim 1, wherein: the load balancing operation in the network equipment cluster comprises the following steps:
step 21: calculating a hash interval of the whole cluster; the method specifically comprises the following steps: determining the interval of the cluster hash value, setting the lower limit of the interval to be zero, and calculating the upper limit of the hash interval according to the following formula:
HU=(2m-1);
wherein,
HU is the upper limit value of the hash interval;
m is a hash value binary digit value;
step 22: dividing a hash value interval of each sub-device in the cluster according to the following formula;
HashI=((i-1)×SE,i×SE]
SE = HashV SEN
wherein: 1, 2, …, SEN;
HashI is a Hash numerical value interval where the I-th sub-device is located;
SE is a numerical value interval size value occupied by each sub-device of the cluster;
HashV is the cluster hash upper limit value HU calculated in step 21;
SEN is the total number of sub-devices in the cluster;
step 23: the ports with the same number of all the devices in the cluster can receive network messages from the external interfaces of the cluster through the shared network;
step 24: each node device calculates and processes the received network data message.
5. The method of network device adaptive load balancing according to claim 4, wherein: the header information includes at least source address and destination address information of the IP header.
6. The method of network device adaptive load balancing according to claim 4, wherein: the specific processing procedure of step 24 is:
step 241: when each node device receives a network data message, the header information of the message is taken out, and the hash function is used for calculation;
step 242: judging whether the calculation result falls within a hash value interval occupied by the node equipment; if yes, the node equipment processes the received network message; otherwise, the network message is discarded.
7. The method for network device adaptive load balancing according to claim 1, 2, 4, 5 or 6, wherein: each node device in the network device cluster is the same device, and one of the network interfaces of each node device is connected through a shared network.
CNB021594767A 2002-12-31 2002-12-31 Method for network equipment self adaption load equalization Expired - Fee Related CN100411401C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021594767A CN100411401C (en) 2002-12-31 2002-12-31 Method for network equipment self adaption load equalization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021594767A CN100411401C (en) 2002-12-31 2002-12-31 Method for network equipment self adaption load equalization

Publications (2)

Publication Number Publication Date
CN1512729A CN1512729A (en) 2004-07-14
CN100411401C true CN100411401C (en) 2008-08-13

Family

ID=34237489

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021594767A Expired - Fee Related CN100411401C (en) 2002-12-31 2002-12-31 Method for network equipment self adaption load equalization

Country Status (1)

Country Link
CN (1) CN100411401C (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1317853C (en) * 2004-07-20 2007-05-23 联想网御科技(北京)有限公司 Network safety equipment and assemblied system and method for implementing high availability
GB0501697D0 (en) * 2005-01-27 2005-03-02 Ibm Controlling service failover in clustered storage apparatus networks
US7734813B2 (en) * 2005-01-28 2010-06-08 Cariden Technologies, Inc. Method and system for communicating predicted network behavior between interconnected networks
CN100364279C (en) * 2005-12-07 2008-01-23 中国科学院计算技术研究所 Distributed Load Balancing Method for Structured P2P System
CN100417142C (en) * 2005-12-22 2008-09-03 华为技术有限公司 Method for sharing interface traffic among multiple network processor engines
CN100456702C (en) * 2006-09-27 2009-01-28 北京航空航天大学 Network resource load balancing method
CN101166176B (en) * 2006-10-19 2010-12-08 中兴通讯股份有限公司 Method for dynamic load balance in distributed system based on session origination protocol
CN101127720B (en) * 2007-09-25 2010-09-01 中兴通讯股份有限公司 Method for guaranteeing network address translation and reachability of internal local address
US7917574B2 (en) * 2007-10-01 2011-03-29 Accenture Global Services Limited Infrastructure for parallel programming of clusters of machines
CN101242255B (en) * 2008-02-15 2011-09-21 中兴通讯股份有限公司 A method and system for realizing N+1 redundant backup and load share
CN101277477B (en) 2008-04-29 2012-04-04 华为技术有限公司 Method, device and system for balancing flow
CN101662506B (en) * 2009-10-14 2013-01-16 中兴通讯股份有限公司 Load balancing method based on CPU kernel sharing and device thereof
CN101789960B (en) * 2009-12-31 2013-10-09 中国人民解放军国防科学技术大学 Neighbor session load processing method and device
CN101895472B (en) 2010-07-16 2013-11-06 华为技术有限公司 Traffic flow load sharing method and processing method and corresponding device and system
CN101909067A (en) * 2010-08-26 2010-12-08 北京天融信科技有限公司 Antivirus method and system for secure gateway cluster
CN102480502B (en) * 2010-11-26 2014-10-01 联想(北京)有限公司 I/O load equilibrium method and I/O server
CN102123087B (en) * 2011-02-18 2014-01-08 天津博宇铭基信息科技有限公司 Fast scaling multi-stage forwarding load balancing method and multi-stage forwarding network system
CN102231673B (en) * 2011-05-31 2014-12-31 北京京东世纪贸易有限公司 System and method for monitoring business server
CN102510403B (en) * 2011-11-15 2015-08-26 江苏大为科技股份有限公司 Receive and the cluster distributed system and method for real-time analysis for vehicle data
CN102521044B (en) * 2011-12-30 2013-12-25 北京拓明科技有限公司 Distributed task scheduling method and system based on messaging middleware
CN103200119B (en) * 2013-03-15 2016-02-24 杭州华三通信技术有限公司 A kind of Ethernet virtual interconnection site inner load sharing method and edge device
CN103401712B (en) * 2013-07-31 2016-09-07 北京华易互动科技有限公司 A kind of intelligent High Availabitity task processing method based on content distribution and system
CN104639347A (en) * 2013-11-07 2015-05-20 北大方正集团有限公司 Multi-cluster monitoring method and device, and system
CN104852857B (en) * 2014-02-14 2018-07-31 航天信息股份有限公司 Distributed data transport method and system based on load balancing
CN105812159B (en) * 2014-12-30 2019-06-04 中国科学院深圳先进技术研究院 A cloud platform monitoring and alarm method
CN106168919A (en) * 2016-07-06 2016-11-30 浪潮电子信息产业股份有限公司 A kind of database backup method, Apparatus and system
CN107071189B (en) * 2016-11-28 2021-11-09 深圳市潮流网络技术有限公司 Connection method of communication equipment physical interface
CN108055321B (en) * 2017-12-11 2021-06-11 中国电子科技集团公司第二十八研究所 High-reliability cluster construction method based on localization platform
CN108153606A (en) * 2018-01-26 2018-06-12 上海储迅信息技术有限公司 A kind of irredundant protection cluster realizes front-end business continuity method
CN110417842B (en) * 2018-04-28 2022-04-12 北京京东尚科信息技术有限公司 Fault processing method and device for gateway server
CN110958326B (en) * 2019-12-13 2022-11-11 锐捷网络股份有限公司 Load balancing method, device, system, equipment and medium
CN116367202A (en) * 2021-12-28 2023-06-30 华为技术有限公司 Cluster arbitration method, network equipment and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1207225A (en) * 1996-11-12 1999-02-03 株式会社东芝 Communication network system and rebuilding thereof
US6011781A (en) * 1997-03-19 2000-01-04 Advanced Micro Devices, Inc. Multipoint access protocol utilizing a point-to-point methodology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1207225A (en) * 1996-11-12 1999-02-03 株式会社东芝 Communication network system and rebuilding thereof
US6011781A (en) * 1997-03-19 2000-01-04 Advanced Micro Devices, Inc. Multipoint access protocol utilizing a point-to-point methodology

Also Published As

Publication number Publication date
CN1512729A (en) 2004-07-14

Similar Documents

Publication Publication Date Title
CN100411401C (en) Method for network equipment self adaption load equalization
US5781726A (en) Management of polling traffic in connection oriented protocol sessions
CN1246994C (en) Method and system for implementing a fast recovery process in a local area network
EP2993838B1 (en) Methods for setting a member identity of gateway device and corresponding management gateway devices
EP1892929B1 (en) A method, an apparatus and a system for message transmission
US6470013B1 (en) Use of enhanced ethernet link—loop packets to automate configuration of intelligent linecards attached to a router
US8289839B2 (en) Scaling BFD sessions for neighbors using physical / sub-interface relationships
CN101699799B (en) Method and network equipment for preventing network loop and spanning tree protocol network system
CA2311197A1 (en) Enhanced dual counter rotating ring network control system
JP2006229967A (en) High-speed multicast path switching
US6389550B1 (en) High availability protocol computing and method
Giorgetti et al. Performance analysis of media redundancy protocol (MRP)
CN112491700A (en) Network path adjusting method, system, device, electronic equipment and storage medium
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
CN106549821A (en) A kind of network loop detection method and controller
US20070274307A1 (en) Cluster System, Cluster Member, And Program
JP6639232B2 (en) Method and apparatus for adjusting Ethernet data transmission rate
US20050086368A1 (en) System and method for determining nearest neighbor information
Cisco Troubleshooting Token Ring
CN113132129B (en) Network management method, device and system and storage medium
Cisco Configuring Serial Tunnel and Block Serial Tunnel
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080813

Termination date: 20201231

CF01 Termination of patent right due to non-payment of annual fee