CN102215247B - Network proximity load balancing method and device - Google Patents

Network proximity load balancing method and device Download PDF

Info

Publication number
CN102215247B
CN102215247B CN201010165687.6A CN201010165687A CN102215247B CN 102215247 B CN102215247 B CN 102215247B CN 201010165687 A CN201010165687 A CN 201010165687A CN 102215247 B CN102215247 B CN 102215247B
Authority
CN
China
Prior art keywords
website
client
distance parameter
network distance
access request
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.)
Active
Application number
CN201010165687.6A
Other languages
Chinese (zh)
Other versions
CN102215247A (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 CN201010165687.6A priority Critical patent/CN102215247B/en
Publication of CN102215247A publication Critical patent/CN102215247A/en
Application granted granted Critical
Publication of CN102215247B publication Critical patent/CN102215247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a network proximity load balancing method and device, wherein the network proximity load balancing method comprises the following steps: determining the carrying status of a network distance parameter between the client and the site of a website in an access request of a client to the website; and determining the site to provide the access service of the website for the client according to the carrying status of the network distance parameter. The network proximity load balancing device comprises a first determination module and a second determination module, wherein the first determination module is used to determine the carrying status of a network distance parameter between the client and the site of a website in an access request of a client to the website, the second determination module is used to determine the site to provide the access service of the website for the client according to the carrying status of the network distance parameter. By adopting the method and the device provided by the invention, the network proximity load balancing processing can be easily and feasibly realized, the performance of the local load balancing devices can be improved and the cost of the local load balancing devices can be reduced.

Description

Network proximity load balancing method and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of network proximity load balancing method and equipment.
Background technology
Local load balancing refers to carries out load balance process to the server zone of data center this locality.Local load balancing equipment (Server Load Balance, SLB) a large amount of external clients' Concurrency Access load balancing is processed respectively to multiple servers, by multiple servers and/or the network equipment, jointly provide service, can reduce the failure rate of service, scalability and the autgmentability of raising service; Client's load balancing, to the light server of load, can be reduced to user's access time delay.
GSLB is mainly used in having in a plurality of regions the website of server, and global user only just can access from server in station own nearest, that load is the lightest with a domain name, thereby obtains access speed and user's experience faster.
The processing procedure of providing services on the Internet with the name server (Domain Name System, DNS) of domain name multi-site in prior art is as follows:
1, client is resolved a certain website to local domain name server (Local DNS) request, as request is resolved www.site.com;
2, local domain name server, according to analysis result, is sent to client-access request the authoritative domain name server of www.site.c om;
3, authoritative domain name server is returned to one or more IP address of www.site.com to local domain name server; Non intelligent, traditional authoritative domain name server by same area under one's name all IP sequence of addresses circulate, client is generally used first IP address; Intelligence authoritative domain name server has been according to having surveyed the information such as each website of storage and the network distance parameter between local domain name server, server in station load in network distance parameter library, return to the site address of applicable client; Wherein, intelligent authoritative domain name server is GSLB equipment Global Server Load Balance, GSLB).When GSLB receives the domain name mapping request of new local domain name server, need to send network distance probe requests thereby to all websites, the network distance parameter between this website and local domain name server is surveyed and calculated to the load-balancing device of each website, report GSLB, by GSLB, preserve and safeguard.
4, local domain name server returns to one or more IP address of www.site.com to client;
5, client is initiated access request according to the IP address receiving to website;
6, the access request of website customer in response end.
For fear of GSLB equipment (Global Server Load Balance, GSLB) safeguard huge network distance parameter library, prior art is on existing GSLB network proximity technical scheme basis, provide a kind of each website for real user, to carry out the technical scheme of network distance detection, its main handling process is:
1, client, according to domain name mapping result, is initiated access request to website 1;
2, the local load balancing equipment of website 1 is initiated the network distance synchronizing detection request for client to the local load balancing equipment of every other website;
3, the local load balancing equipment of website 1 completes the network distance of client is surveyed, by outcome record in the network distance parameter library of oneself;
4, the local load balancing equipment of other websites also completes the network distance of client is surveyed, also by network distance parameter library separately in data record;
5, the network distance parameter for client of mutual each website of the local load balancing equipment of all websites;
When 6, the local load balancing equipment of follow-up any website receives client's access request again, just can be according to the network distance parameter between each website recording in database and client, select the website nearest with customer network, and redirect the client to and select website, by selecting website, to client, provide services on the Internet.
Inventor, in realizing process of the present invention, finds that above-mentioned prior art exists following not enough:
1, on the local load balancing equipment of website, preserved huge and complicated network distance parameter, along with number of users and website quantity growth, network distance parameter library scale is by uncontrollable, and aging maintenance management is difficult;
2, the local load balancing equipment of website can be very large to the probe messages data traffic of client, affects the performance of local load balancing equipment; Network distance parameter synchronization flow between the local load balancing equipment of website is very large, has also affected the performance of local load balancing equipment.
Summary of the invention
The embodiment of the present invention provides a kind of network proximity load balancing method, in order to simple, realizes network proximity load balance process, improves the performance of local load balancing equipment, reduces the cost of local load balancing equipment, and the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
According to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.
The embodiment of the present invention also provides a kind of network proximity load balancing method, and the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
Determine that the website that receives described access request provides the access services of described website to described client.
The embodiment of the present invention also provides a kind of network proximity load balancing method, and the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request does not carry the website of the described access request of reception and the network distance parameter between described client;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
Determine that the website that receives described access request provides the access services of described website to described client.
The embodiment of the present invention also provides a kind of network proximity load-balancing device, in order to simple, realizes network proximity load balance process, improves the performance of local load balancing equipment, reduces the cost of local load balancing equipment, and this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request;
Described the second determination module specifically for:
According to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.
The embodiment of the present invention also provides a kind of network proximity load-balancing device, and this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client;
Described the second determination module specifically for:
Determine that the website that receives described access request provides the access services of described website to described client.
The embodiment of the present invention also provides a kind of network proximity load-balancing device, and this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request does not carry the website of the described access request of reception and the network distance parameter between described client;
Described the second determination module specifically for:
Determine that the website that receives described access request provides the access services of described website to described client.
In the embodiment of the present invention, the website of website and the network distance parameter between client are entrained to the access request of website by client; According to the carrying status of network distance parameter in this access request, just can determine the website that website visiting service is provided to client; Without preserving and safeguard the network distance parameter library of bulky complex on the local load balancing equipment at website, also without the local load balancing equipment by website, carry out the synchronous of the detection of client distance and network distance parameter, can realize network proximity load balance process simplely, improve the performance of local load balancing equipment, reduce the cost of local load balancing equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.In the accompanying drawings:
Fig. 1 is the process chart of network proximity load balancing method in the embodiment of the present invention;
Fig. 2 is the process chart of an instantiation of network proximity load balancing method in the embodiment of the present invention;
Fig. 3 is the process chart of another instantiation of network proximity load balancing method in the embodiment of the present invention;
Fig. 4 is the structural representation of network proximity load-balancing device in the embodiment of the present invention;
Fig. 5 is the structural representation of an instantiation of network proximity load-balancing device in the embodiment of the present invention;
Fig. 6 is the structural representation of another instantiation of network proximity load-balancing device in the embodiment of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing, the embodiment of the present invention is described in further details.At this, schematic description and description of the present invention is used for explaining the present invention, but not as a limitation of the invention.
As shown in Figure 1, in the embodiment of the present invention, the handling process of network proximity load balancing method can comprise:
Step 101, determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client;
Step 102, according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client.
Flow process can be learnt as shown in Figure 1, and in the embodiment of the present invention, the website of website and the network distance parameter between client are entrained to the access request of website by client; According to the carrying status of network distance parameter in this access request, just can determine the website that website visiting service is provided to client; Compare with the technical scheme that in prior art, each website carries out network distance detection for real user, without preserving and safeguard the network distance parameter library of bulky complex on the local load balancing equipment at website, also without the local load balancing equipment by website, carry out the synchronous of the detection of client distance and network distance parameter, can realize network proximity load balance process simplely, improve the performance of local load balancing equipment, reduce the cost of local load balancing equipment.
During concrete enforcement, flow process shown in Fig. 1 can be implemented by the equipment that can realize its function, such as can be local load balancing equipment, GSLB equipment of website etc., or also the equipment that can realize function shown in Fig. 1 can be set in network specially.
During concrete enforcement, client can adopt multiple format to the access request of website, for example, can adopt HTTP (Hypertext Transfer Protocol, HTML (Hypertext Markup Language)) form etc.
HTTP cookie is that server sends to a segment information of client, client-cache cookie information when client-access some websites.When the same website of client access next time, expired if cookie information does not have, cookie information is attached in HTTP request, send to server.Server can utilize the arbitrariness of cookies inclusion information to screen and regular these information of safeguarding, to judge the transaction status in service process.Whether the most typical application of cookies is to judge registered user's Website login, and user may be pointed out, and whether upper, retains user profile to simplify login formality while once entering this website.The processing that another important application occasion of cookies is " shopping cart " and so on.User may select different commodity within a period of time in the different pages of same website, and these information all can write cookies, so that information extraction while in the end paying the bill.
In an embodiment, the website of website and the network distance parameter between client can be carried in the client cookie that client comprises the access request of website, and step 101 can be specially: determine the carrying status of network distance parameter described in client cookie in described access request.Like this, because the local load balancing equipment of website has been used the continuation information between the next mutual client of HTTP cookie and server, therefore, use client cookie to preserve network distance parameter in the present embodiment, more easily realize, cost is lower.Certainly, in enforcement, also can utilize client to carry aforementioned network distance parameter to some other information in the access request of network.
During concrete enforcement, aforementioned network distance parameter is the network distance parameter between web-site and client, can accurately reflect that the distance of web-site and client is far and near.Network distance parameter can comprise two-way round-trip delay (rtt), hop count (ttl), packet loss (loss) one of them or combination in any, can certainly comprise the data that other can reflect distance distance between web-site and client.In order to make, determining while providing the website of website visiting service to client, to determine result more accurately and reliably, the ageing time scope of network distance parameter can also be set, while implementing, need consider the network distance parameter within the scope of the ageing time allowing.In order to prevent the network attack of malice, in transmitting procedure, can also carry out encryption and decryption processing to the network distance parameter of carrying.
During concrete enforcement, in step 101, determine that client can have numerous embodiments to the carrying status of the network distance parameter between the website of website described in the access request of website and described client, accordingly, under different execution modes, step 102, according to the carrying status of described network distance parameter, is determined to described client and is provided the website of the access services of described website also can have different execution modes.
For example, if step 101 is embodied as: determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request; Step 102 can be embodied as: according to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.For example, client is to carrying the network distance parameter between website 1 and website 2 and client in the access request of certain website, at website 1, receive after the access request of client, by more known website 1 than website 2 from client more close to, website 1 directly provides the access services of this website to client.
In this example, if the nearest website of the distance client of determining is not the website that receives client-access request, client can be redirected to definite website.For example, client is to carrying the network distance parameter between website 1 and website 2 and client in the access request of certain website, at website 1, receive after the access request of client, by more known website 2 than website 1 from client more close to, client is redirected to website 2, the access services of this website is provided to client by website 2.
In another embodiment, if step 101 is embodied as: determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client; Step 102 can be embodied as: determine that the website that receives described access request provides the access services of described website to described client.Still illustrate, client is to carrying the network distance parameter between website 1 and client in the access request of certain website, and do not carry the network distance parameter between other websites and client, at website 1, receive after the access request of client, without relatively, by website 1, directly to client, provide the access services of this website.
In another embodiment, if step 101 is embodied as: determining that described access request is not carried receives the website of described access request and the network distance parameter between described client; Step 102 can be embodied as: determine that the website that receives described access request provides the access services of described website to described client.Still illustrate, client is not to carrying the network distance parameter between arbitrary website and client in the access request of certain website, can determine that access request is not carried receives the website of described access request and the network distance parameter between described client, can receive after the access request of client at website 1, by website 1, directly to client, provide the access services of this website.
In this example, can also insert described access request by receiving the website of described access request and the network distance parameter between described client.During the follow-up like this access request that again receives client, just can, with reference to the network distance parameter of wherein carrying, determine the website of providing services on the Internet to client.
Provide an instantiation below, the concrete enforcement of aforementioned network proximity load balancing method is described.In this example, by client, the client cookie in the access request of website is stored to the network distance parameter between client and web-site, the network distance parameter of carrying in receiving the local load balancing equipment inspection client cookie of client terminal website access request, is redirected to the website nearest with its network distance according to default strategy by client.
As shown in Figure 2, in this example, the handling process of network proximity load balancing method can comprise:
Step 201, client are initiated the access to website www.example.com, and DNS name resolution polling result is website A, and client is initiated the access request to this website to website A;
Now client cookie is exemplified as:
REF=ID=4c62c9c50167cdc8:NW=1:TM=1234428939:LM=1234428939:S=Ab7dvVV8eUsubttY;
The local load balancing equipment of step 202, website A is as the agency between client and website A, determine and in client cookie, there is no the network distance parameter between website A and client, when website visiting service is provided to client, calculate the network distance supplemental characteristic (can comprise two-way contact time delay rtt, hop count ttl and packet loss loss) between website A and client, and be inserted in client cookie, be sent to client and preserved by client;
The network distance example of parameters being inserted in client cookie is:
client_id=xxxxxxxx:client_ip=xx.xx.xx.xx;proximity_slb_a_ip=xx.xx.xx.xx:rtt=100ms:ttl=5:pkt_loss=1%:timestamp=xxxxxxxx;
Step 203, client are accessed www.example.com again, and now DNS name resolution polling result is website B, and client is initiated the access request to this website to website B;
Now client cookie has carried the network distance parameter of website A, is exemplified as:
REF=ID=4c62c9c50167cdc8:NW=1:TM=1234428939:LM=1234428939:S=Ab7dvVV8eUsubttY;
client_id=xxxxxxxx:client_ip=xx.xx.xx.xx;
proximity_slb_a_ip=xx.xx.xx.xx:rtt=100ms:ttl=5:pkt_loss=1%:timestamp=xx?xxxxxx;
Step 204, similar with step 202, the local load balancing equipment of website B completes between website B and client network distance parameter in the insertion of client cookie;
The network distance example of parameters being inserted in client cookie is:
proximity_slb_b_ip=xx.xx.xx.xx:rtt=200ms:ttl=6:pkt_loss=2%:timestamp=x?xxxxxxx;
Step 205, the follow-up www.example.com that again accesses of client, DNS name resolution polling result is website B, client is initiated the access request to this website to website B;
Now client cookie has carried the network distance parameter between website A and website B and client, is exemplified as:
REF=ID=4c62c9c50167cdc8:NW=1:TM=1234428939:LM=1234428939:S=Ab7dvVV8eUsubttY;
client_id=xxxxxxxx:client_ip=xx.xx.xx.xx;
proximity_slb_a_ip=xx.xx.xx.xx:rtt=100ms:ttl=5:pkt_loss=1%:timestamp=xx?xxxxxx;
proximity_slb_b_ip=xx.xx.xx.xx:rtt=200ms:ttl=6:pkt_loss=2%:timestamp=xx?xxxxxx;
The network distance parameter that the local load balancing equipment inspection client cookie of step 206, website B carries, according to collocation strategy, therefrom the nearest website of chosen distance client provides website visiting service to client; Wherein, collocation strategy can be two-way round-trip delay, hop count and the packet loss in comparing cell distance parameter, and the two-way round-trip delay in also can a comparing cell distance parameter, can arrange according to actual needs;
In this example, suppose that website A compares website B, and the network distance between client is nearer through comparing, the local load balancing equipment of website B redirects the client to website A, by website A, to client, provides website visiting to serve.
Lift again the concrete enforcement of an example explanation aforementioned network proximity load balancing method below.This example illustrates website A and how to process after to the access request of website receiving client, in this example, still by client, client cookie in the access request of website is stored to the network distance parameter between client and web-site.
As shown in Figure 3, in this example, the handling process of network proximity load balancing method can comprise:
The local load balancing equipment of step 301, website A receives the access request of client to website;
The local load balancing equipment of step 302, website A first checks in the client cookie of access request whether carried the network distance parameter between website A and client, in this example, consider the ageing time of network distance parameter, check the validity of network distance parameter: whether carried network distance parameter and these network distance parameters within the scope of the ageing time allowing;
If there is no the network distance parameter between effective website A and client in step 303 client cookie, when website visiting service is provided to client at website A so, the local load balancing equipment of website A is inserted into the network distance parameter of calculating in client cookie, and flow process finishes.
If carried the network distance parameter between effective website A and client in step 304 client cookie, continue to check whether client cookie has carried the network distance parameter between effective other websites and client; If no, by website A, to client, provide website visiting to serve, flow process finishes.
Step 305, according to collocation strategy, find out the website nearest with client network and provide network access service to client.
In specific implementation, can only consider that individual event specific targets are as rtt, also can many index (rtt, ttl and loss) be considered according to weights; Can more all websites and client between network distance parameter, also can only relatively configure the website of quantity and the network distance parameter between client, thereby find out the website nearest with client network; If this website is not nearest website, so just redirect the client to the nearest website of selecting; Otherwise this website continues to provide website visiting service until finish to client.
Based on same inventive concept, the embodiment of the present invention also provides a kind of network proximity load-balancing device, and its structure as shown in Figure 4, can comprise:
The first determination module 401, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client;
The second determination module 402, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client.
In an embodiment, the first determination module 401 specifically can be for:
Determine the carrying status of network distance parameter described in client cookie in described access request.
In an embodiment, the first determination module 401 specifically can be for:
Determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request;
The second determination module 402 specifically can be for:
According to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.
As shown in Figure 5, in an embodiment, the network proximity load-balancing device shown in Fig. 4 can also comprise:
Redirection module 501, for not being, while receiving the website of described access request, described client to be redirected to described definite website at described definite website.
In an embodiment, the first determination module 401 specifically can be for:
Determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client;
The second determination module 402 specifically can be for:
Determine that the website that receives described access request provides the access services of described website to described client.
In an embodiment, the first determination module 401 specifically can be for:
Determine that described access request does not carry the website of the described access request of reception and the network distance parameter between described client;
The second determination module 402 specifically can be for:
Determine that the website that receives described access request provides the access services of described website to described client.
As shown in Figure 6, the network proximity load-balancing device shown in Fig. 4 can also comprise:
Insert module 601, for inserting described access request by receiving the website of described access request and the network distance parameter between described client.
In an embodiment, described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any.
In an embodiment, described network distance parameter refers to the network distance parameter within the scope of the ageing time allowing.
In sum, in the embodiment of the present invention, the website of website and the network distance parameter between client are entrained to the access request of website by client; According to the carrying status of network distance parameter in this access request, just can determine the website that website visiting service is provided to client; Compare with the technical scheme that in prior art, each website carries out network distance detection for real user, without preserving and safeguard the network distance parameter library of bulky complex on the local load balancing equipment at website or GSLB equipment, also without the local load balancing equipment by website, carry out the synchronous of the detection of client distance and network distance parameter, can realize network proximity load balance process simplely, improve the performance of local load balancing equipment, reduce the cost of local load balancing equipment.Network distance parameter is the network distance parameter between web-site and client, can accurately reflect that the distance of web-site and client is far and near, can provide fine-grained network proximity load balance process for real user.
Because the local load balancing equipment of website has been used the continuation information between the next mutual client of HTTP cookie and server, therefore, in the present embodiment, the website of website and the network distance parameter between client can be carried in the client cookie that client comprises the access request of website, during enforcement, more easily realize, cost is lower.The embodiment of the present invention can be applied to have the load balancing field of the application protocol of cookies function.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only specific embodiments of the invention; the protection range being not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (19)

1. a network proximity load balancing method, is characterized in that, the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
According to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.
2. the method for claim 1, is characterized in that, the carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine the carrying status of network distance parameter described in client cookie in described access request.
3. the method for claim 1, is characterized in that, also comprises:
If described definite website is not the website that receives described access request, described client is redirected to described definite website.
4. method as claimed in claim 1 or 2, is characterized in that, described network distance parameter refers to the network distance parameter within the scope of the ageing time allowing.
5. a network proximity load balancing method, is characterized in that, the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
Determine that the website that receives described access request provides the access services of described website to described client.
6. method as claimed in claim 5, is characterized in that, the carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine the carrying status of network distance parameter described in client cookie in described access request.
7. method as claimed in claim 5, is characterized in that, described network distance parameter refers to the network distance parameter within the scope of the ageing time allowing.
8. a network proximity load balancing method, is characterized in that, the method comprises:
Determine the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
According to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client;
The carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine that described access request does not carry the website of the described access request of reception and the network distance parameter between described client;
Described according to the carrying status of described network distance parameter, determine the website that the access services of described website is provided to described client, comprising:
Determine that the website that receives described access request provides the access services of described website to described client.
9. method as claimed in claim 8, is characterized in that, the carrying status of described definite client to the network distance parameter between the website of website described in the access request of website and described client, comprising:
Determine the carrying status of network distance parameter described in client cookie in described access request.
10. method as claimed in claim 8, is characterized in that, when the website that receives described access request provides the access services of described website to described client, also comprises:
By receiving the website of described access request and the network distance parameter between described client, insert described access request.
11. methods as claimed in claim 8, is characterized in that, described network distance parameter refers to the network distance parameter within the scope of the ageing time allowing.
12. 1 kinds of network proximity load-balancing devices, is characterized in that, this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request carries the network distance parameter between at least two of described websites website and described client, described at least two websites comprise the website that receives described access request;
Described the second determination module specifically for:
According to the network distance parameter between described at least two websites and described client, described in determining, described at least two website middle distances, the nearest website of client provides the access services of described website to described client.
13. equipment as claimed in claim 12, is characterized in that, described the first determination module specifically for:
Determine the carrying status of network distance parameter described in client cookie in described access request.
14. equipment as claimed in claim 12, is characterized in that, also comprise:
Redirection module, for not being, while receiving the website of described access request, described client to be redirected to described definite website at described definite website.
15. 1 kinds of network proximity load-balancing devices, is characterized in that, this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request carries the website of the described access request of reception and the network distance parameter between described client, and do not carry the network distance parameter between other websites and described client;
Described the second determination module specifically for:
Determine that the website that receives described access request provides the access services of described website to described client.
16. equipment as claimed in claim 15, is characterized in that, described the first determination module specifically for:
Determine the carrying status of network distance parameter described in client cookie in described access request.
17. 1 kinds of network proximity load-balancing devices, is characterized in that, this equipment comprises:
The first determination module, for determining the carrying status of client to the network distance parameter between the website of website described in the access request of website and described client, described network distance parameter reflects that the website of described website and the distance of described client are far and near, and described network distance parameter comprises two-way round-trip delay, hop count, packet loss one of them or combination in any;
The second determination module, for according to the carrying status of described network distance parameter, determines the website that the access services of described website is provided to described client;
Described the first determination module specifically for:
Determine that described access request does not carry the website of the described access request of reception and the network distance parameter between described client;
Described the second determination module specifically for:
Determine that the website that receives described access request provides the access services of described website to described client.
18. equipment as claimed in claim 17, is characterized in that, described the first determination module specifically for:
Determine the carrying status of network distance parameter described in client cookie in described access request.
19. equipment as claimed in claim 17, is characterized in that, also comprise:
Insert module, for inserting described access request by receiving the website of described access request and the network distance parameter between described client.
CN201010165687.6A 2010-05-06 2010-05-06 Network proximity load balancing method and device Active CN102215247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010165687.6A CN102215247B (en) 2010-05-06 2010-05-06 Network proximity load balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010165687.6A CN102215247B (en) 2010-05-06 2010-05-06 Network proximity load balancing method and device

Publications (2)

Publication Number Publication Date
CN102215247A CN102215247A (en) 2011-10-12
CN102215247B true CN102215247B (en) 2014-12-03

Family

ID=44746377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010165687.6A Active CN102215247B (en) 2010-05-06 2010-05-06 Network proximity load balancing method and device

Country Status (1)

Country Link
CN (1) CN102215247B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188163A (en) * 2011-12-31 2013-07-03 中国移动通信集团浙江有限公司 Load balancing method and device
CN105100294B (en) * 2014-05-20 2018-05-08 阿里巴巴集团控股有限公司 Obtain method, system, the webserver, browser and the GSLB of webpage
CN105591962B (en) * 2015-08-03 2019-09-17 新华三技术有限公司 A kind of detection method and device of balancing link load
CN106941507B (en) * 2016-01-04 2020-09-11 中兴通讯股份有限公司 Request message scheduling method and device
CN106131129B (en) * 2016-06-23 2019-05-07 杭州迪普科技股份有限公司 The method and apparatus of management data synchronization time of global load balancing
CN108123890A (en) * 2016-11-30 2018-06-05 阿里巴巴集团控股有限公司 Chain circuit detecting method, device and electronic equipment in a kind of SiteServer LBS
CN109510809B (en) * 2018-09-17 2020-09-08 华为技术有限公司 Domain name access method and device
CN109873878B (en) * 2019-04-01 2021-08-24 宁波奥克斯电气股份有限公司 Communication connection method and device of electronic terminal, electronic terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022825A1 (en) * 2003-08-29 2005-03-10 Huawei Technologies Co., Ltd. A system of layered content delivery network and a method of layered delivering content
CN101355521A (en) * 2008-09-12 2009-01-28 北京星网锐捷网络技术有限公司 Control method for equalizing load, communication apparatus and communication system
CN101494654A (en) * 2009-03-13 2009-07-29 阿里巴巴集团控股有限公司 Method and apparatus for determining server accessibility
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100583820C (en) * 2006-09-11 2010-01-20 思华科技(上海)有限公司 Routing system and method of content distribution network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022825A1 (en) * 2003-08-29 2005-03-10 Huawei Technologies Co., Ltd. A system of layered content delivery network and a method of layered delivering content
CN101355521A (en) * 2008-09-12 2009-01-28 北京星网锐捷网络技术有限公司 Control method for equalizing load, communication apparatus and communication system
CN101494654A (en) * 2009-03-13 2009-07-29 阿里巴巴集团控股有限公司 Method and apparatus for determining server accessibility
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client

Also Published As

Publication number Publication date
CN102215247A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
CN102215247B (en) Network proximity load balancing method and device
CN105493445B (en) Method and system for the region firewall cluster in networked computing environment
JP5624973B2 (en) Filtering device
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
US10523748B2 (en) Managing health status of network devices in a distributed global server load balancing system
CN102281190B (en) Networking method for load balancing apparatus, server and client access method
CN101783771A (en) Method and equipment for realizing load balance continuity
CN103685590B (en) Obtain the method and system of IP address
CN102055813A (en) Access controlling method for network application and device thereof
JP2014505918A (en) System and method for delivering application traffic to a server based on dynamic service response time
CN101296176B (en) Data processing method and apparatus based on cluster
US11416564B1 (en) Web scraper history management across multiple data centers
CN105940655A (en) System for protection against DDos attacks
CN109672757A (en) File access method and file access processing unit
CN106550056B (en) A kind of domain name analytic method and device
CN106161519B (en) A kind of information acquisition method and device
La Marra et al. Introducing usage control in MQTT
US9729652B2 (en) Dynamically affinitizing users to a version of a website
CN106230992B (en) A kind of load-balancing method and load balancing node
US20090150564A1 (en) Per-user bandwidth availability
CN105677492B (en) A kind of reliability application execution method of terminaloriented
CN108111567A (en) Realize the uniform method and system of server load
CN109618004A (en) A kind of message forwarding method and device
CN115190107B (en) Multi-subsystem management method based on extensive domain name, management terminal and readable storage medium
Kontogiannis et al. ALBL: an adaptive load balancing algorithm for distributed web systems

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