CN1863202B - Method for improving load balance apparatus and server processing performance - Google Patents

Method for improving load balance apparatus and server processing performance Download PDF

Info

Publication number
CN1863202B
CN1863202B CN200510109123XA CN200510109123A CN1863202B CN 1863202 B CN1863202 B CN 1863202B CN 200510109123X A CN200510109123X A CN 200510109123XA CN 200510109123 A CN200510109123 A CN 200510109123A CN 1863202 B CN1863202 B CN 1863202B
Authority
CN
China
Prior art keywords
server
load
balancing device
information
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
CN200510109123XA
Other languages
Chinese (zh)
Other versions
CN1863202A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200510109123XA priority Critical patent/CN1863202B/en
Publication of CN1863202A publication Critical patent/CN1863202A/en
Application granted granted Critical
Publication of CN1863202B publication Critical patent/CN1863202B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a method for improving processing performance of load equalizing device and server, mainly comprising: making interaction of various messages between the load equalizing device and server, and according to the interactive messages, they make corresponding configuration processing. And it can better dispose new servers and better use resources of the load equalizing device and improve safety of the load equalizing device and other processing functions.

Description

Improve the method for load-balancing device and server handling property
Technical field
The present invention relates to field of network communication, relate in particular to a kind of method that improves load-balancing device and server handling property.
Background technology
In real network is used, when the performance of a station server is not enough to support applications, just need multiple servers that service externally is provided together.At this moment, just need use load-balancing technique.
Load balancing is formed a server set by multiple servers with symmetrical manner, and every station server all has status of equal value, service can externally be provided separately and need not other servers auxiliary.By certain load balancing technology, the request that the outside is sent is evenly distributed on a certain station server in the symmetrical structure, and receives the request that the requested service device is responded the client independently.
The networking schematic diagram of load balancing as shown in Figure 1.In networking shown in Figure 1, multiple servers has been formed a server zone.When the user initiates to visit, user's access request will at first arrive on the load-balancing device, and load-balancing device is distributed to request on the corresponding server again.General load-balancing device is not analyzed application layer, but directly shares processing according to the information of network layer.
In networking shown in Figure 1, when needing in the server zone to add new server apparatus, in load-balancing device, need to increase configuration at this new server, make follow-up application can progressively share on this new server.
The shortcoming of above-mentioned existing load-balancing device is: can not increase new server easily in existing load balancing networking.In actual applications, the performance of various servers may be different, can handle 100 requests such as the server that has, and the server that has can be handled 300 requests or more.When need in existing load balancing networking, increasing new server apparatus, need change the configuration on the load-balancing device.Such as on load-balancing device, increasing an order, point out the disposal ability of the server that this is new.Simultaneously, above-mentioned existing load-balancing device can not utilize existing resource fully, and fail safe is also relatively poor.
Summary of the invention
The purpose of this invention is to provide a kind of method that improves load-balancing device and server handling property, thereby can improve the handling property of load-balancing device.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method that improves load-balancing device and server handling property comprises:
Carry out the mutual of server initial configuration information between load-balancing device and server, according to mutual server initial configuration information, load-balancing device and server carry out corresponding configuration process;
Need add fashionablely as new server, this new server sends the information carry these server-capabilities data to load-balancing device;
After load-balancing device is received the information of described server transmission, the capacity data of the server that carries in the information is kept in its inner tables of data, return the response message of the outside ip address that carries load-balancing device to described server, described server with described outside ip address as the IP address in the data field of the message that sends to load-balancing device.
Described method specifically comprises:
Carry out the mutual of various information based on transmission control protocol TCP or User Datagram Protoco (UDP) UDP or SCTP SCTP between load-balancing device and the server.
Described method specifically comprises:
Carry out the mutual of various information by transferring equipment between load-balancing device and the server, this transferring equipment comprises information collecting device or agent equipment.
After capacity data is handled, return response message to server.
Described method specifically comprises:
By information interaction, keep the connection between load-balancing device and the server between load-balancing device and the server;
Pass through information interaction, the initial configuration information of log-on server on load-balancing device between load-balancing device and the server.
Described method specifically comprises:
By information interaction, the session entry on the load-balancing device is handled between load-balancing device and the server.
Described method specifically comprises:
When server needed the notification payload balancing equipment to go to keep or deletes session entry, server sent corresponding request information to load-balancing device;
Load-balancing device is according to the solicited message that receives, after keeping accordingly or deleting the processing of session entry, returns response message to server.
Described when server needs the notification payload balancing equipment to go to keep or deletes session entry, server sends corresponding request information to load-balancing device and specifically comprises:
If the user succeeds in registration on server, then server send to keep the solicited message of this user's session entry to load-balancing device, otherwise, send the solicited message of this user's of deletion session entry;
When producing various useless session entry on the load-balancing device, server sends the solicited message of this useless session entry of deletion to load-balancing device.
As seen from the above technical solution provided by the invention, the present invention is by carrying out the mutual of various message based on a kind of protocol between load-balancing device and server, thereby can dispose new server better, utilize the resource of load-balancing device better, improve the processing capacities such as fail safe of load-balancing device.
Description of drawings
Fig. 1 is the networking schematic diagram of load balancing;
Fig. 2 is the process chart of the described method of this method;
Fig. 3 is for carrying out the mutual schematic diagram of logon message and registration response message between load-balancing device and the server;
Fig. 4 is the implicit IP address of load-balancing device and the schematic diagram of outside ip address;
The IP address of server replaces with the schematic diagram of external IP address in the message IP head that Fig. 5 sends over server for load-balancing device;
Fig. 6 handles the mutual schematic diagram of message for carrying out keep-alive message, cancellation message and session entry between load-balancing device and the server;
The schematic diagram that Fig. 7 registers on sip server for sip user;
The schematic diagram of Fig. 8 for carrying out transfer by transferring equipment between server and the load-balancing device.
Embodiment
The invention provides a kind of method that improves load-balancing device and server handling property, core of the present invention is: carry out the mutual of various message based on a kind of protocol between load-balancing device and server, according to interactive messages, load-balancing device and server carry out corresponding configuration process.
Describe the present invention in detail below in conjunction with accompanying drawing, the handling process of the described method of this method comprises the steps: as shown in Figure 2
Carry out the mutual of logon message, the corresponding message of registration based on a kind of protocol between step 2-1, load-balancing device and the server, connect mutually.
The present invention at first sets up a kind of protocol between load-balancing device and server, this agreement can wait other agreement based on TCP (transmission control protocol), UDP (User Datagram Protoco (UDP)) or SCTP (SCTP), if adopted certain agreement between server and the load-balancing device, this agreement also can be used as the part of the agreement that has adopted.
After having set up protocol between load-balancing device and the server, can at first carry out mutual authentication operation, authentication by after carry out mutually again information alternately.The mechanism of authentication can adopt the mechanism of similar CHAP (CHAP) or PAP (password authentication protocol), also can adopt other authentication mechanisms.
Can carry out the mutual of various information by the protocol of setting up between load-balancing device and the server.Need add fashionablely as new server, at first carry out the mutual of logon message, registration response message between load-balancing device and this new server, the schematic diagram of this reciprocal process as shown in Figure 3.
At first server is initiated a logon message to load-balancing device, carries following information in this logon message:
1, type of message, this type of message is a logon message;
2, the capacity data of book server;
3, the title of book server, this information are optional information.
After load-balancing device is received the logon message that server sends, after the capacity data of the server that carries in the logon message preserved, return a registration response message to server, carry following information in this registration response message:
1, type of message, this type of message is a response message;
2, the outside ip address of load-balancing device, this information are optional information;
3, simplify other information of server configuration, this information is optional information.
Load-balancing device is just known the performance data of new server according to the logon message that receives, and therefore, load-balancing device does not just need this new server is carried out extra configuration effort.
In actual applications, can in load-balancing device, safeguard a tables of data, the performance data of each server of record, current processing costs etc. in the table.This table is a foundation of load-balancing device distribution flow.
Mutually mutual logon message and registration response message can divide in a plurality of messages and transmit between load-balancing device and the server.
Generally speaking, load-balancing device has inside and outside two IP addresses, implicit IP address to server as seen, outside ip address is to the user as seen.Server need not dispose special routing iinformation, just can link to each other with the implicit IP address of load-balancing device.Based on factors such as routes, server is not connected with the outside ip address of load-balancing device.The implicit IP address of load-balancing device and the schematic diagram of outside ip address are as shown in Figure 4.
Below we introduce the effect of the outside ip address information of the load-balancing device that carries in the above-mentioned registration response message.
H.323, some protocol massages that server sends to load-balancing device are such as SIP (initial session protocol), wait protocol massages, the IP address information that need carry this machine in message data.Because the content of message that load-balancing device does not generally send server is made an amendment again, and just revise the IP head of message, the IP address of server in the message IP head is replaced with the external IP address of load-balancing device, and does not make an amendment the IP address of carrying in the message data district, then, the load-balancing device message that will carry out replacing is transmitted to the user.The schematic diagram of above-mentioned replacement process as shown in Figure 5.
Receive the message of above-mentioned load-balancing device forwarding as the user after, the user will see two different IP addresses, and one is the IP address in the IP head, and another is the IP address in the data field.Such situation may cause follow-up flow process mistake to occur.
For addressing the above problem, after server receives the outside ip address information of the load-balancing device that carries in the above-mentioned registration response message, server just can directly be filled in into the IP address in the data field outside ip address of this load-balancing device in the transmission of subsequent packet.So, will only carry an IP address in the message that end user is seen.
In above-mentioned registration response message, except the outside ip address that carries load-balancing device, can also carry other some information and give server.Such as server some attribute informations that should possess jointly.The information of specifically carrying is relevant with the applied environment of server reality.
After successfully having carried out logon message and registration response message mutual between load-balancing device and the server, just set up between load-balancing device and the server and be connected.
After connecting between step 2-2, load-balancing device and the server, carry out the keep-alive message, nullify the mutual of message and session entry processing message etc. based on described protocol.
After successfully having set up connection between load-balancing device and the server, just can carry out the mutual of other various information between load-balancing device and the server by the protocol of setting up.Such as, as shown in Figure 6, carry out keep-alive message and keep-alive response message, nullify message and nullify the mutual of response message, session entry processing request message and session entry processing response message.
Keep-alive message and keep-alive response message just transmit between load-balancing device and server at set intervals, to keep the connection between load-balancing device and the server.
Server send to be nullified message to load-balancing device, and load-balancing device is operated accordingly, return nullify response message after, so, just nullified the registration of server on load-balancing device, disconnected the connection between load-balancing device and the server.
Below we introduce the effect of above-mentioned session entry processing request message and session entry processing response message.
Can handle on same station server for a plurality of messages that guarantee same user, load-balancing device need generate a conversational list at each user.Because the resource of conversational list is limited, when certain conversational list had lost efficacy, load-balancing device can be to processing such as this conversational list wear out, to discharge the shared resource of this conversational list.
Be that example illustrates above-mentioned situation below with the Session Initiation Protocol.Under normal conditions, sip user needs to succeed in registration on server earlier, follow-up could be as called or caller.And after sip user succeeds in registration, will exist on load-balancing device at this user conversational list, up to user log off or till disconnecting. always
When certain sip user does not succeed in registration on server.Conversational list at this user does not need long-time reservation on load-balancing device.Simultaneously, under the situation that has network attack to take place, can produce on the load-balancing device has a lot of this long-time session entries that keep that do not need.When this list item reaches very big quantity, can take a large amount of resources, will cause load-balancing device also not have enough resources to remove to create session entry for normal users, so, can cause normal service to be rejected.Existing load-balancing device can not be distinguished above-mentioned various session entry.The schematic diagram that sip user is registered on sip server as shown in Figure 7.
For addressing the above problem, the protocol of the present invention by setting up between load-balancing device and server carried out the mutual of session entry processing request message, session entry processing response message between load-balancing device and server.
When server needed the notification payload balancing equipment to go to keep or deletes certain session entry, server just sent corresponding session entry processing request message to load-balancing device.Load-balancing device is according to the session entry processing request message that receives, after keeping accordingly or deleting certain session entry and handle, returns session entry processing response message to server.
Such as, when server needs the notification payload balancing equipment to remove to keep certain session entry, server will carry following information in the session entry processing request message that load-balancing device sends:
1, type of message, this type of message are to keep specific certain session entry;
2, the information of concrete this session entry of mark is such as source, purpose IP address etc.;
3, this session entry time that need keep.
After load-balancing device is received this session entry processing request message, can keep the processing of special session list item accordingly, then, return a session entry processing response message, will carry following information in this response message:
1, type of message, this type of message are to keeping the response of session entry.
2, response results is to respond successfully or fail.
Equally, when server needs the notification payload balancing equipment to remove to delete certain session entry, also send corresponding session entry processing request message to load-balancing device.
Mutual by above-mentioned session entry processing request message, session entry processing response message between load-balancing device and the server just can effectively utilize the resource of load-balancing device, and the while can increase the fail safe of load balancing networking.
In actual applications, can not carry out between server and the load-balancing device directly alternately, but carry out transfer by the third party, such as, carry out transfer by transferring equipment.The schematic diagram that carries out transfer by transferring equipment between server and the load-balancing device as shown in Figure 8.
Transferring equipment can be a concentrated information collecting device, and other equipment all is that load-balancing device and server carry out with this equipment respectively alternately from this station information collecting device breath of winning the confidence that gets on.To this equipment write data (as performance index of server etc.), and load-balancing device goes to read these data such as server.
Transferring equipment also can a kind of agent equipment, just acts on behalf of the function of load-balancing device and server respectively.For load-balancing device, this agent equipment is exactly a server; And for server, this agent equipment is exactly a load-balancing device.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (7)

1. a method that improves load-balancing device and server handling property is characterized in that, comprising:
Carry out the mutual of server initial configuration information between load-balancing device and server, according to mutual server initial configuration information, load-balancing device and server carry out corresponding configuration process;
Need add fashionablely as new server, this new server sends the information carry these server-capabilities data to load-balancing device;
After load-balancing device is received the information of described server transmission, the capacity data of the server that carries in the information is kept in its inner tables of data, return the response message of the outside ip address that carries load-balancing device to described server, described server with described outside ip address as the IP address in the data field of the message that sends to load-balancing device.
2. according to the method for described raising load-balancing device of claim 1 and server handling property, it is characterized in that described method specifically comprises:
Carry out the mutual of various information based on transmission control protocol TCP or User Datagram Protoco (UDP) UDP or SCTP SCTP between load-balancing device and the server.
3. according to the method for described raising load-balancing device of claim 1 and server handling property, it is characterized in that described method specifically comprises:
Carry out the mutual of various information by transferring equipment between load-balancing device and the server, this transferring equipment comprises information collecting device or agent equipment;
After capacity data is handled, return response message to server.
4. according to the method for claim 1,2 or 3 described raising load-balancing devices and server handling property, it is characterized in that described method specifically comprises:
By information interaction, keep the connection between load-balancing device and the server between load-balancing device and the server;
Pass through information interaction, the initial configuration information of log-on server on load-balancing device between load-balancing device and the server.
5. according to the method for claim 1,2 or 3 described raising load-balancing devices and server handling property, it is characterized in that described method specifically comprises:
By information interaction, the session entry on the load-balancing device is handled between load-balancing device and the server.
6. according to the method for described raising load-balancing device of claim 5 and server handling property, it is characterized in that described method specifically comprises:
When server needed the notification payload balancing equipment to go to keep or deletes session entry, server sent corresponding request information to load-balancing device;
Load-balancing device is according to the solicited message that receives, after keeping accordingly or deleting the processing of session entry, returns response message to server.
7. according to the method for described raising load-balancing device of claim 6 and server handling property, it is characterized in that, described when server needs the notification payload balancing equipment to go to keep or deletes session entry, server sends corresponding request information to load-balancing device and specifically comprises:
If the user succeeds in registration on server, then server send to keep the solicited message of this user's session entry to load-balancing device, otherwise, send the solicited message of this user's of deletion session entry;
When producing various useless session entry on the load-balancing device, server sends the solicited message of this useless session entry of deletion to load-balancing device.
CN200510109123XA 2005-10-18 2005-10-18 Method for improving load balance apparatus and server processing performance Expired - Fee Related CN1863202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510109123XA CN1863202B (en) 2005-10-18 2005-10-18 Method for improving load balance apparatus and server processing performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510109123XA CN1863202B (en) 2005-10-18 2005-10-18 Method for improving load balance apparatus and server processing performance

Publications (2)

Publication Number Publication Date
CN1863202A CN1863202A (en) 2006-11-15
CN1863202B true CN1863202B (en) 2011-04-06

Family

ID=37390529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510109123XA Expired - Fee Related CN1863202B (en) 2005-10-18 2005-10-18 Method for improving load balance apparatus and server processing performance

Country Status (1)

Country Link
CN (1) CN1863202B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252540B (en) * 2008-04-07 2010-07-07 华耀环宇科技(北京)有限公司 Method for allocating network flow based on external policy server interaction
CN101340327B (en) * 2008-08-21 2011-11-30 腾讯科技(深圳)有限公司 Method and system for implementing load balance of network server
CN102045396A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Load balancing method of server document
CN102761608B (en) * 2012-06-28 2016-06-01 深圳市深信服电子科技有限公司 The method of UDP session multiplexing and load balancing equipment
CN103024018A (en) * 2012-12-04 2013-04-03 北京蓝汛通信技术有限责任公司 Method and device for operating multiple content distribution network (CDN) service processes in single device
CN104363300B (en) * 2014-11-26 2018-06-05 浙江宇视科技有限公司 Task distribution formula dispatching device is calculated in a kind of server cluster
CN115134227A (en) * 2022-06-17 2022-09-30 京东科技信息技术有限公司 Method and apparatus for maintaining server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372405A (en) * 2001-02-26 2002-10-02 阿瓦雅通信以色列有限公司 Go-on sustained connection
CN1403934A (en) * 2001-09-06 2003-03-19 华为技术有限公司 Load balancing method and equipment for convective medium server
CN1545262A (en) * 2003-11-11 2004-11-10 浙江大学 A network server structure and its service providing process
CN1545275A (en) * 2003-11-21 2004-11-10 清华大学深圳研究生院 Flow-media cluster service content scheduling method based on Netfilter architecture
CN1585399A (en) * 2004-05-25 2005-02-23 华中科技大学 Load balancing method for cluster server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372405A (en) * 2001-02-26 2002-10-02 阿瓦雅通信以色列有限公司 Go-on sustained connection
CN1403934A (en) * 2001-09-06 2003-03-19 华为技术有限公司 Load balancing method and equipment for convective medium server
CN1545262A (en) * 2003-11-11 2004-11-10 浙江大学 A network server structure and its service providing process
CN1545275A (en) * 2003-11-21 2004-11-10 清华大学深圳研究生院 Flow-media cluster service content scheduling method based on Netfilter architecture
CN1585399A (en) * 2004-05-25 2005-02-23 华中科技大学 Load balancing method for cluster server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
第4页倒数第1-2段.

Also Published As

Publication number Publication date
CN1863202A (en) 2006-11-15

Similar Documents

Publication Publication Date Title
USRE44918E1 (en) Method and apparatus for equalizing load of streaming media server
US8423678B2 (en) Resilient network database
US8892768B2 (en) Load balancing apparatus and load balancing method
US8095681B2 (en) Load balancing server and system
US7554992B2 (en) Mobile device communications system and method
US7734795B2 (en) Translating switch and method
CN102893556B (en) Method, system and equipment for source peer-to-peer Diameter based on capacity load Sharing
CN1863202B (en) Method for improving load balance apparatus and server processing performance
CA2968964C (en) Source ip address transparency systems and methods
KR101368615B1 (en) Method for realizing end-to-end call, end-to-end call terminal and system
RU2464722C2 (en) Method, device and system for distribution of messages
US20090094611A1 (en) Method and Apparatus for Load Distribution in Multiprocessor Servers
WO2014190791A1 (en) Method for setting identity of gateway device and management gateway device
CN111327668B (en) Network management method, device, equipment and storage medium
CN107222561A (en) A kind of transport layer reverse proxy method
CN101355492B (en) Routing method and system for access protocol of simple objects as well as relevant equipment
WO2011140910A1 (en) Service process unit and method, and service control gateway and load equalization method
CN107528891A (en) A kind of automated cluster method and its system based on WebSocket
Cha et al. A mobility link service for ndn consumer mobility
JP2004510394A (en) Virtual IP framework and interface connection method
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN103414800A (en) Allocation and selection method and system of distributed relay servers in NAT traversal
CN101471954A (en) Method for implementing network service, network service entity and intelligent network system
JP2013126219A (en) Transfer server and transfer program
CN207234829U (en) Low discharge Web page accessing system

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: 20110406