CN103188163A - Load balancing method and device - Google Patents

Load balancing method and device Download PDF

Info

Publication number
CN103188163A
CN103188163A CN2011104602567A CN201110460256A CN103188163A CN 103188163 A CN103188163 A CN 103188163A CN 2011104602567 A CN2011104602567 A CN 2011104602567A CN 201110460256 A CN201110460256 A CN 201110460256A CN 103188163 A CN103188163 A CN 103188163A
Authority
CN
China
Prior art keywords
access request
network
server access
load balancing
load
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.)
Pending
Application number
CN2011104602567A
Other languages
Chinese (zh)
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.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang 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 China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN2011104602567A priority Critical patent/CN103188163A/en
Publication of CN103188163A publication Critical patent/CN103188163A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a load balancing method and device in order to solve the problem that in the prior art, client side applications can not be well guaranteed in a load balancing process. The method includes that the load balancing device receives a server access request sent by a client side, chooses from a plurality of network exits according to a preset load balancing algorithm, and transmits the server access request according to the chosen exit, wherein the plurality of network exits are respectively connected with a plurality of networks through a plurality of physical links, home networks of a server are included in the plurality of networks, other non-home networks and the home networks are linked in a communication mode, and due to the fact that the load balancing device chooses from the plurality of network exits according to the load balancing algorithm and transmits the server access request sent by the client side, the client side applications are well guaranteed in the load balancing process.

Description

A kind of load-balancing method and device
Technical field
The present invention relates to the data service field, particularly a kind of load-balancing method and device.
Background technology
Because at present each core of existing network is along with the raising of traffic carrying capacity, the quick growth of visit capacity and data traffic, its disposal ability and calculating strength also correspondingly increase, and make single server apparatus can't bear at all.In the case, do a large amount of HardwareUpgrings if throw away existing equipment, to cause the waste of existing resource like this, if when facing the lifting of traffic carrying capacity next time again, this will cause again the great number cost of HardwareUpgring to drop into again, in addition performance more remarkable equipment can not satisfy the demand that the current business amount increases.
For this reason, a kind of new technology-load balancing (is called load balancing again, English name is Load Balance) occurred, its meaning is carried out load (task) balance, is shared on a plurality of operating units and carry out exactly, the for example crucial application server of Web server, ftp server, enterprise and other mission critical server etc., thus finish the work task jointly.Existing load-balancing technique is used and is all belonged to the forward application, as the load balancing according to request content and load condition realization server, perhaps realize the automatic routing of server side according to network condition, its core is ensure server professional normal, and does not ensure the scheme of client application.
This shows and have following problem in the prior art: in the load balancing process, can not well ensure client application.
Summary of the invention
The objective of the invention is in the load balancing process, can not well ensure the problem of client application at what exist in the prior art that a kind of load-balancing method and device are provided, and this method comprises:
The load balancing device receives the server access request that client sends;
The load balancing device is according to default load-balancing algorithm, from its a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, the home network that comprises server in a plurality of networks has between other non-attribution network and the home network and communicates to connect.
Further, the load balancing device is selected from a plurality of network egresses according to default load-balancing algorithm, and is specially by the outlet forwarding server access request of selecting:
The load balancing device is judged when client belongs to the set of given client end, according to default load-balancing algorithm, from a plurality of network egresses, selects, and the outlet forwarding server access request by selecting.
Further, also comprise: the load balancing device is judged when client does not belong to the set of given client end, direct network egress forwarding server access request by presetting.
Further, the load balancing device is selected from a plurality of network egresses according to default load-balancing algorithm, and is specially by the outlet forwarding server access request of selecting:
Reference address in this server access request is visit first, the load balancing device is according to route time delay and the jumping figure of each network egress correspondence, and default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
Further, the load balancing device is selected from a plurality of network egresses, and is specially by the outlet forwarding server access request of selecting:
Reference address in this server access request is non-visit first, and the load balancing device is by the network egress forwarding server access request of selecting before.
The embodiment of the invention also provides a kind of load balancing device, comprising:
Receiver module is used for receiving the server access request that client sends;
Forwarding module, be used for according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, the home network that comprises server in a plurality of networks has between other non-attribution network and the home network and communicates to connect.
Further, forwarding module also is used for judging when client belongs to the set of given client end, according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
Further, forwarding module also is used for judging when client does not belong to the set of given client end, directly the network egress forwarding server access request by presetting.
Further, forwarding module, the reference address that also is used for this server access request is visit first, route time delay and jumping figure according to each network egress correspondence, and default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
Further, forwarding module, the reference address that also is used for this server access request are non-visit first, by the network egress forwarding server access request of selecting before.
Because the load balancing device is selected from a plurality of network egresses according to load-balancing algorithm, transmit the server access request that client sends, therefore in the load balancing process, well ensured client application.
Description of drawings
Fig. 1 represents SiteServer LBS network topological diagram provided by the invention;
Fig. 2 represents method flow diagram provided by the invention;
Fig. 3 represents structure drawing of device provided by the invention.
Embodiment
Below in conjunction with Figure of description the preferred embodiment of the present invention is described, the embodiment of the invention provides a kind of method and device of load balancing, with what exist in the prior art that exists in the solution prior art, in the load balancing process, can not well ensure the problem of client application.
The SiteServer LBS of present embodiment, comprise as shown in Figure 1, client 11, load balancing device 12, server 3, has communication link between client 11 and the load balancing device 12, load balancing device 12 has a plurality of network egresses, and connect a plurality of networks 14 through many physical links 13 respectively by a plurality of network egresses, and comprise the home network of server in a plurality of networks, have between other non-attribution network and the home network and communicate to connect.This method comprises, the load balancing device receives the server access request that client sends, the load balancing device is according to default load-balancing algorithm, from its a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, comprise the home network of server in a plurality of networks, have between other non-attribution network and the home network to communicate to connect.
The method flow diagram that the embodiment of the invention provides is illustrated in fig. 2 shown below, and comprises the steps:
Step 101, client sends the server access request to the load balancing device.
Step 102, load balancing device check that according to the server access request source address judges whether to be VIP client, if execution in step 106, otherwise execution in step 103.
In this step, from the server access request, extract the source IP address of client, if this source IP address is in the exclusive IP address field of the VIP client of appointment, can think that then this client is VIP client, be that the load balancing device just can judge that client belongs to the set of given client end, can from a plurality of network egresses, select according to default load-balancing algorithm in the subsequent step like this, and the outlet forwarding server access request by selecting.For example 3 network egresses are arranged is respectively network egress A, network egress B, network egress C to the load balancing device, this client is VIP client, then can be according to default load-balancing algorithm in the subsequent step, select network egress B (also may be network egress A or network egress C certainly), and by network egress B forwarding server access request.Concrete being implemented in the subsequent step described in detail.
Step 103, load balancing device forwarding server access request is to general outlet.
In this step, if this source IP address is not in the exclusive IP address field of the VIP client of appointment, can think that then this client is not VIP client, namely the load balancing device is judged when client does not belong to the set of given client end, directly the network egress forwarding server access request by presetting.For example when client was non-VIP client, the load balancing device no longer carried out equilibrium treatment, but directly the server access request is forwarded to network egress A.The network egress A network egress that non-VIP client is set in advance.
Step 104, load balancing device judge whether can normal access server, if execution in step 110 then, otherwise execution in step 105.
Step 105, load balancing device are returned error message and are given client, and flow process finishes.
Step 106, load balancing device are called the load balancing group of many outlets, and check the IP address of destination server.
The load balancing device is judged when client belongs to the set of given client end, call the load balancing group of many outlets and prepare to carry out equilibrium treatment, be preset with load-balancing algorithm in the load balancing group, by this default load-balancing algorithm, in the subsequent step, according to default load-balancing algorithm, from a plurality of network egresses, select, select optimum path, and the network egress forwarding server access request by the optimal path correspondence selected.Also to from the server access request, extract the IP address of destination server in this step.
Step 107, load balancing device judge whether the address of destination server has Visitor Logs, if then execution in step 109, otherwise execution in step 108.
The load balancing device can record the address of the destination server of having visited, and this IP address and the record of destination server compared, and whether the address of watching this destination server accessed mistake.If visited, show that then the reference address in this server access request is non-visit first,
Step 108, load balancing device are according to route time delay and the jumping figure of each network egress correspondence, and default load-balancing algorithm is selected optimal path, execution in step 110.
This step shows, reference address in this server access request is visit first, the load balancing group can be parameter with route time delay and the jumping figure of network egress correspondence, select from a plurality of network egresses according to load-balancing algorithm, select optimal path, for example, the route time delay of network egress A correspondence is 50ms, jumping figure 5, the route time delay of network egress B correspondence is 30ms, jumping figure 3, the route time delay of network egress C correspondence is 60ms, jumping figure 6, the optimal path of selecting by load-balancing algorithm is the path of network egress B correspondence, and then the load balancing device is by network egress B forwarding server access request.
Whether the optimal path of selecting before the step 109, the inspection of load balancing device is available, if then carry out step 110, otherwise execution in step 108.
This step shows that the reference address in this server access request is non-visit first, and the load balancing device is by the network egress B forwarding server access request of selecting before.Export health examination simultaneously, check whether the path of lower network outlet B correspondence is available, prevent that the server access request that causes because the path is unavailable from can't send to corresponding server.
Step 110, the server response request is returned the request msg flow process and is finished.
The scheme of present embodiment is the reverse application of a kind of load balancing, namely sets up the load balancing device that connects a plurality of network egresses at client-side, and particularly VIP client access network can automatic routing thereby realize client.Remedy the defective that VIP client's important Internet service is difficult to ensure, expanded the application category of load-balancing technique at client-side.This method had both been saved VIP client's equipment cost and the maintenance cost of multilink, can export at certain again and guarantee still under the unusual situation that business is normal.
The embodiment of the invention also provides a kind of load balancing device, as shown in Figure 3, comprising:
Receiver module 201 is used for receiving the server access request that client sends;
Forwarding module 202, be used for according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, the home network that comprises server in a plurality of networks has between other non-attribution network and the home network and communicates to connect.
Further, forwarding module 202 also is used for judging when client belongs to the set of given client end, according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
Further, forwarding module 202 also is used for judging when client does not belong to the set of given client end, directly the network egress forwarding server access request by presetting.
Further, forwarding module 202, the reference address that also is used for this server access request is visit first, route time delay and jumping figure according to each network egress correspondence, and default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
Further, forwarding module 202, the reference address that also is used for this server access request are non-visit first, by the network egress forwarding server access request of selecting before.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a load-balancing method is characterized in that, comprising:
The load balancing device receives the server access request that client sends;
The load balancing device is according to default load-balancing algorithm, from its a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, the home network that comprises server in a plurality of networks has between other non-attribution network and the home network and communicates to connect.
2. method according to claim 1 is characterized in that, the load balancing device is selected from a plurality of network egresses according to default load-balancing algorithm, and is specially by the outlet forwarding server access request of selecting:
The load balancing device is judged when client belongs to the set of given client end, according to default load-balancing algorithm, from a plurality of network egresses, selects, and the outlet forwarding server access request by selecting.
3. method according to claim 2 is characterized in that, also comprises: the load balancing device is judged when client does not belong to the set of given client end, direct network egress forwarding server access request by presetting.
4. method according to claim 1 is characterized in that, the load balancing device is selected from a plurality of network egresses according to default load-balancing algorithm, and is specially by the outlet forwarding server access request of selecting:
Reference address in this server access request is visit first, the load balancing device is according to route time delay and the jumping figure of each network egress correspondence, and default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
5. method according to claim 4 is characterized in that, the load balancing device is selected from a plurality of network egresses, and is specially by the outlet forwarding server access request of selecting:
Reference address in this server access request is non-visit first, and the load balancing device is by the network egress forwarding server access request of selecting before.
6. a load balancing device is characterized in that, comprising:
Receiver module is used for receiving the server access request that client sends;
Forwarding module, be used for according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting, wherein a plurality of network egresses connect a plurality of networks through many physical links respectively, the home network that comprises server in a plurality of networks has between other non-attribution network and the home network and communicates to connect.
7. device according to claim 6 is characterized in that, forwarding module, also be used for judging when client belongs to the set of given client end, according to default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
8. device according to claim 7 is characterized in that, forwarding module also is used for judging when client does not belong to the set of given client end, directly the network egress forwarding server access request by presetting.
9. device according to claim 6, it is characterized in that, forwarding module, the reference address that also is used for this server access request is visit first, route time delay and jumping figure according to each network egress correspondence, and default load-balancing algorithm, from a plurality of network egresses, select, and the outlet forwarding server access request by selecting.
10. device according to claim 9 is characterized in that, forwarding module, the reference address that also is used for this server access request are non-visit first, by the network egress forwarding server access request of selecting before.
CN2011104602567A 2011-12-31 2011-12-31 Load balancing method and device Pending CN103188163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104602567A CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104602567A CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Publications (1)

Publication Number Publication Date
CN103188163A true CN103188163A (en) 2013-07-03

Family

ID=48679134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104602567A Pending CN103188163A (en) 2011-12-31 2011-12-31 Load balancing method and device

Country Status (1)

Country Link
CN (1) CN103188163A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259372A (en) * 2016-12-28 2018-07-06 天津岩石科技有限公司 A kind of multi-link load balance system and method
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
WO2020248363A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Load balancing method for server and related apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN101867976A (en) * 2010-07-22 2010-10-20 杭州华三通信技术有限公司 Load balancing method based on mobile terminal number and equipment
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN102215247A (en) * 2010-05-06 2011-10-12 华为技术有限公司 Network proximity load balancing method and device
CN101867976A (en) * 2010-07-22 2010-10-20 杭州华三通信技术有限公司 Load balancing method based on mobile terminal number and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岳荣惠: "出方向链路负载均衡选路策略的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259372A (en) * 2016-12-28 2018-07-06 天津岩石科技有限公司 A kind of multi-link load balance system and method
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
WO2020248363A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Load balancing method for server and related apparatus

Similar Documents

Publication Publication Date Title
CN104272708B (en) It is distributed with the stateless first order grouping to server farm and is distributed to the secondary data packets of the stateful second level grouping distribution of some server in group
CN102118319B (en) Traffic load balancing method and device
US7808931B2 (en) High capacity ring communication network
CN101009662B (en) Message processing method, system and device based on the load balance technology
CN102684951B (en) The system of selection of many Wide Area Network interface networking, system and network equipment
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN103916275A (en) BFD detection device and method
CN100452746C (en) Method for determining out interface and multi-switch-in wideband router
US20070280686A1 (en) Network configuring apparatus
TW201225588A (en) Mobile gateways in pool for session resilience
US20130094511A1 (en) Packet diversion method and deep packet inspection device
CN101094185A (en) Method and device for forwarding message based on multilink
CN101350773A (en) Mobile packet network architecture as well as access method for equalizing load of a plurality of firewalls
JP7092813B2 (en) Packet transmission method and equipment
CN103581014B (en) VRRP routers dynamic adjusting method and device
CN103067291A (en) Method and device of up-down link correlation
EP2081336A1 (en) Business message transmission method, system and apparatus
CN104901881A (en) Route device, load balancing device, and message distribution method and system
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
US8218433B2 (en) Monitoring connectivity in ring networks
CN103188163A (en) Load balancing method and device
US9571346B2 (en) Fault tolerant communication system, method, and device that uses tree searching
CN101141409A (en) Method and equipment for implementing 6to4 relay routing device backup
CN102857436A (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN106331004A (en) Method and device for load balancing of servers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130703

RJ01 Rejection of invention patent application after publication