CN1863202A - Method for improving load balance apparatus and servicer processing performance - Google Patents

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

Info

Publication number
CN1863202A
CN1863202A CN 200510109123 CN200510109123A CN1863202A CN 1863202 A CN1863202 A CN 1863202A CN 200510109123 CN200510109123 CN 200510109123 CN 200510109123 A CN200510109123 A CN 200510109123A CN 1863202 A CN1863202 A CN 1863202A
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.)
Granted
Application number
CN 200510109123
Other languages
Chinese (zh)
Other versions
CN1863202B (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 various information between load-balancing device and server, according to mutual information, load-balancing device and server carry out corresponding configuration process.
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.
Described method specifically comprises:
Carry out the mutual of server initial configuration information between load-balancing device and the server.
Described method specifically comprises:
A1, need add fashionablely as new server, this new server sends the information carry these server-capabilities data to load-balancing device;
After A2, load-balancing device are received the information that server sends, after the capacity data of the server that carries in the information handled, return response message to server.
Described steps A 2 specifically comprises:
Load-balancing device is kept at the capacity data of the server that receives in its inner tables of data, the performance data of each server of record and current processing costs in this tables of data.
Described steps A 2 specifically comprises:
Load-balancing device carries the outside ip address of load-balancing device in the response message that server returns, this outside ip address that server will obtain is as the IP address in the data field of the message that sends to load-balancing device.
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 steps A specifically comprises:
By information interaction, the session entry on the load-balancing device is handled between load-balancing device and the server.
Described steps A specifically comprises:
A3, need the notification payload balancing equipment to go to keep or during the deletion session entry, server sends corresponding request information to load-balancing device when server;
A4, load-balancing device be according to the solicited message that receives, and after keeping accordingly or deleting the processing of session entry, returns response message to server.
Described steps A 3 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 (11)

1, a kind of method that improves load-balancing device and server handling property is characterized in that, comprising:
Carry out the mutual of various information between load-balancing device and server, according to mutual information, load-balancing device and server carry out corresponding configuration process.
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.
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:
Carry out the mutual of server initial configuration information between load-balancing device and the server.
5, according to the method for described raising load-balancing device of claim 4 and server handling property, it is characterized in that described method specifically comprises:
A1, need add fashionablely as new server, this new server sends the information carry these server-capabilities data to load-balancing device;
After A2, load-balancing device are received the information that server sends, after the capacity data of the server that carries in the information handled, return response message to server.
According to the method for described raising load-balancing device of claim 5 and server handling property, it is characterized in that 6, described steps A 2 specifically comprises:
Load-balancing device is kept at the capacity data of the server that receives in its inner tables of data, the performance data of each server of record and current processing costs in this tables of data.
According to the method for described raising load-balancing device of claim 5 and server handling property, it is characterized in that 7, described steps A 2 specifically comprises:
Load-balancing device carries the outside ip address of load-balancing device in the response message that server returns, this outside ip address that server will obtain is as the IP address in the data field of the message that sends to load-balancing device.
8, 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.
9, 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 steps A specifically comprises:
By information interaction, the session entry on the load-balancing device is handled between load-balancing device and the server.
10, according to the method for described raising load-balancing device of claim 9 and server handling property, it is characterized in that described steps A specifically comprises:
A3, need the notification payload balancing equipment to go to keep or during the deletion session entry, server sends corresponding request information to load-balancing device when server;
A4, load-balancing device be according to the solicited message that receives, and after keeping accordingly or deleting the processing of session entry, returns response message to server.
According to the method for described raising load-balancing device of claim 10 and server handling property, it is characterized in that 11, described steps A 3 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 Active 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 true CN1863202A (en) 2006-11-15
CN1863202B CN1863202B (en) 2011-04-06

Family

ID=37390529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510109123XA Active 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010020152A1 (en) * 2008-08-21 2010-02-25 腾讯科技(深圳)有限公司 Method, system and domain name solution server for realizing network server load balance
CN101252540B (en) * 2008-04-07 2010-07-07 华耀环宇科技(北京)有限公司 Method for allocating network flow based on external policy server interaction
CN102045396A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Load balancing method of server document
CN102761608A (en) * 2012-06-28 2012-10-31 深信服网络科技(深圳)有限公司 UDP (User Datagram Protocol) conversation multiplexing method 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
CN104363300A (en) * 2014-11-26 2015-02-18 浙江宇视科技有限公司 Compute task distributed dispatching device in server cluster
CN115134227A (en) * 2022-06-17 2022-09-30 京东科技信息技术有限公司 Method and apparatus for maintaining server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120743A1 (en) * 2001-02-26 2002-08-29 Lior Shabtay Splicing persistent connections
CN1158615C (en) * 2001-09-06 2004-07-21 华为技术有限公司 Load balancing method and equipment for convective medium server
CN100429896C (en) * 2003-11-11 2008-10-29 浙江大学 A network server structure and its service providing process
CN1276629C (en) * 2003-11-21 2006-09-20 清华大学深圳研究生院 Flow-media cluster service content scheduling method based on Netfilter architecture
CN100377554C (en) * 2004-05-25 2008-03-26 华中科技大学 Load balancing method for cluster server

Cited By (10)

* 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
WO2010020152A1 (en) * 2008-08-21 2010-02-25 腾讯科技(深圳)有限公司 Method, system and domain name solution server for realizing network server load balance
US8510434B2 (en) 2008-08-21 2013-08-13 Tencent Technology (Shenzhen) Company Limited Method, system and DNS server for load balancing network servers
CN102045396A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Load balancing method of server document
CN102761608A (en) * 2012-06-28 2012-10-31 深信服网络科技(深圳)有限公司 UDP (User Datagram Protocol) conversation multiplexing method and load balancing equipment
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
CN104363300A (en) * 2014-11-26 2015-02-18 浙江宇视科技有限公司 Compute task distributed dispatching device in server cluster
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

Also Published As

Publication number Publication date
CN1863202B (en) 2011-04-06

Similar Documents

Publication Publication Date Title
CN1158615C (en) Load balancing method and equipment for convective medium server
CN101030946A (en) Method and system for realizing data service
CN1863202A (en) Method for improving load balance apparatus and servicer processing performance
CN101075962A (en) Method and apparatus for realizing DHCP repeater in two-layer network exchanger
WO2013040942A1 (en) Data centre system and apparatus, and method for providing service
WO2014190791A1 (en) Method for setting identity of gateway device and management gateway device
CN1949770A (en) Method for providing push message and push agent device
CN1744521A (en) Network equipment management method and network management system
CN1878118A (en) System for realizing data communication and its method
JP5518202B2 (en) End-to-end call implementation method, end-to-end call terminal and system
CN1925452A (en) Data transferring system, method and network transferring apparatus
CN1859409A (en) Method and system for improving network dynamic host configuration DHCP safety
WO2011140910A1 (en) Service process unit and method, and service control gateway and load equalization method
CN101076978A (en) Directed pppoe session initiation over switched ethernet
CN1870568A (en) Method for implementing network address conversion anti-virus transition
JP2013506358A5 (en)
EP2161875A1 (en) Method and device for configuring configuration data of user access network
CN101043385A (en) System and method for detecting service healthiness
CN1812398A (en) Method for realizing DHCP server loading sharing based on DHCP relay
CN1917521A (en) Method and system for realizing load balancing, and load balancing equipment
CN1662004A (en) Method of implementing multiple service treatment by application server through conversation initiating protocol
CN1595890A (en) Virtual connectivity with subscribe-notify service
CN1905566A (en) Method and system for implementing system high-usability in network storage service
CN1852249A (en) Multi-cast broadcasting business realizing method
CN1829233A (en) Mobile streaming media arranging method based on single connection

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