Network load balancing method based on cloud computing
Technical field
The present invention relates to a kind of network load balancing method, relate in particular to a kind of network load balancing method based on cloud computing.
Background technology
Since " after this notion of cloud computing is suggested to, blown afloat the wind of cloud computing in the whole world, the businessman of each association area all thinks one of branch " cloud computing cake ".
Cloud computing (Cloud Computing) is the product that grid computing (Grid Computing), Distributed Calculation (Distributed Computing), parallel computation (Parallel Computing), effectiveness calculating (Utility Computing) network storage (Network Storage Technologies), virtual (Virtualization), load balancing traditional calculations machine technologies such as (Load Balance) and network technical development merge.It is intended to be integrated into a perfect system with powerful calculating ability to the relatively low computational entity of a plurality of costs through network, and is distributed to this powerful computing ability in terminal use's hand by advanced persons' such as SaaS, PaaS, IaaS, MSP business model.The core concept of Cloud Computing is exactly through improving constantly the disposal ability of " cloud "; And then the processing that reduces user terminal is born; Finally make user terminal be simplified to a simple input-output equipment, and can enjoy the powerful computing ability of " cloud " as required.
The core concept of cloud computing; Be the computational resource unified management and the scheduling that will connect with network in a large number; Constitute a computational resource pond to user's on-demand service, " grid computing pond " that this and China famous cloud computing expert Liu Peng professor just proposed as far back as 2003 is on all four.
When specifically coming, the network that the narrow sense cloud computing provides resource is called as " cloud ".Resource in " cloud " can infinite expanding In the view of the user, and can obtain at any time, uses as required, and expansion is at any time paid by using.This specific character often is called as as water power uses IT infrastructure.And the broad sense cloud computing, it is relevant with software, the Internet that this service can be IT, also can be other service arbitrarily.
This resource pool is called " cloud "." cloud " is that some can self and the virtual computational resource of management, is generally some large server clusters, comprises calculation server, storage server, broadband resource or the like.Cloud computing puts together all computational resources, and realizes management automatically by software, need not artificial participation.It is loaded down with trivial details details worry that this feasible supplier of application need not, and can be absorbed in the business of oneself more, helps innovating and reducing cost.
In the brief introduction of cloud computing, mention a computer technology-" load balancing ", " cloud computing puts together all computational resources, and is realized management automatically need not artificial participation by software and mention in the cloud computing of the broad sense definition.It is loaded down with trivial details details worry that this feasible supplier of application need not, and can be absorbed in the business of oneself more, helps innovating and reducing cost.”。" details that need not to be loaded down with trivial details is worried, more is absorbed in the business of oneself ", this is that each application or ISP hope the benefit that obtains, and load-balancing technique just provides one of supporting technology of this mode.
About load balancing and since at present each core of existing network along with the raising of traffic carrying capacity, the quick growth of visit capacity and data traffic, its disposal ability and calculating strength be correspondingly increase also, makes 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 input of HardwareUpgring again, even the remarkable again equipment of performance can not satisfy the demand that the current business amount increases.And load balancing is based upon on the existing network infrastructure, and it provides bandwidth, increase throughput, strengthen network data-handling capacity, raising network more flexible and the availability of effectively transparent method extended network equipment of a kind of cheapness and server.
Specifically, load balancing has the implication of two aspects: at first, a large amount of concurrent visits or data traffic are shared on many node devices and being handled respectively, reduce the time of user's wait-for-response; Secondly, single heavy duty computing is shared on many node devices and is done parallel processing, and each node device processing after finishing gathers the result, returns to the user, and system processing power is greatly improved.
As an ISP; Quick growth along with visit capacity and data traffic; In existing technical support, generally all can select the Network Load Balance technology to increase throughput, the disposal ability of network data and raising network more flexible and availability.Do not get up to implement Network Load Balance for many enterprises that reduce cost can oneself not buy a large amount of services, they can select to the service provider's rental service with load-balancing technique.
The service of the load balancing that present domestic use is more is the service item that IDC (Internet Data Center Internet data center) provides.IDC can provide following concrete service items for the user.Server load balancing service: along with the increase of web site contents; Increasing of function; Make the number of servers that supports the website begin to increase; The server load balancing service of website can be according to server response time of reality traffic load between the Servers-all in the balance server zone, thereby improves site performance and responding ability, reduces wrong generation simultaneously.Service is quickened in the website: the efficient when the encrypt/decrypt work that can make server process secure socket layer protocol (SSL) is quickened to serve in the website improves tens of times to hundreds of times, thereby improves the response speed that web portal security is concluded the business.Adopt this service, the website can maximally utilise the Internet Server investment, under the prerequisite of not sacrificing website visiting speed, guarantees the fail safe of e-commerce transaction.
Load-balancing technique has improved the disposal ability of server for the ISP.But what for the user, need is to obtain return results fast.And the slow-footed problem of user capture websites response little owing to the network bandwidth, that the user capture amount is big, the unequal reason of network point distribution is caused is effectively solved.
For this reason, CDN (Content Delivery Network) technology efficiently solves the appeal problem.The full name of CDN is Content Delivery Network, i.e. content distributing network.Its objective is through in existing Internet, increasing the new network architecture of one deck; With the content release of website near user's network " edge "; Make the user can obtain required content nearby, solve the situation of Internet network congestion, improve the response speed of user capture website.Solve the slow-footed problem of user capture websites response little owing to the network bandwidth, that the user capture amount is big, the unequal reason of network point distribution is caused technically comprehensively.The content of a server just, average branch is to a plurality of servers, and the server Intelligent Recognition lets the user obtain the nearest server from the user, raising speed.
Make a general survey of the value chain of whole broadband service, content supplier and user are positioned at the two ends of whole value chain, and middle dependence Internet Service Provider is connected in series it.Along with the maturation of the Internet industry and the change of business model, the more and more also more and more segmentations of the role on this value chain.Such as the operator of content/application, managed service provider, backbone network service provider, link service provider or the like.Each role on this value chain will share out the work and help one another, Each performs its own functions could be for the client provides favorable service, thereby brings the situation of multi-win.See that from the binding pattern of content and network the issue of content has been passed by content (application) server and these two stages of IDC of ICP.The upsurge of IDC has also expedited the emergence of this role of managed service provider.But IDC can not solve effective RELEASE PROBLEM of content.The center that content is positioned at network can not solve taking of key bandwidth and set up the flow order on the IP network.Therefore content is shifted onto the edge of network,, thereby guaranteed that the quality of service has just become a kind of conspicuous selection with visit order on the whole network for the user provides the edge service of property nearby.And Here it is content release net (CDN) service mode.The foundation of CDN has solved the dilemma of the content " centralization and decentralization " of puzzlement content operator, is valuable for making up good the Internet value chain undoubtedly, also is that service is quickened in indispensable optimum website.
And CDN has following characteristics: 1, local Cache quickens, and has improved the access speed of enterprise site (especially containing a large amount of pictures and static page website), and has improved the stability of above character website greatly.2, the influence that bottleneck interconnected between the different operators causes has been eliminated in mirroring service, has realized the network acceleration of cross operator, guarantees that the user in the heterogeneous networks can both obtain good visit quality.3, long-range acceleration, the remote access user is according to the DNS load-balancing technique, and intelligence is selected Cache servers automatically, selects the fastest Cache servers, accelerates remote access speed.4, bandwidth optimization generates long-range Mirror (mirror image) the cache server of server automatically, during remote user access from the cache server reading of data, reduce remote access bandwidth, share network traffics, alleviate functions such as former website WEB server load.5, cluster is anti-attacks, and the CDN node that extensively distributes adds can effectively prevent intelligent superfluous in mechanism between the node hacker attacks and reduce the influence of various D.D.o.S attacks to the website, guarantees good quality of service simultaneously.
CDN distribution solution has solved the Performance And Reliability problem relevant with static website, and in current online business experience, and dynamic element static with distribution needs dynamic website to quicken to solve with the relevant unique challenges of application.And can solve all types of websites acceleration problem based on the Network Load Balance technology of cloud computing.
Summary of the invention
The object of the invention is exactly the problems referred to above that exist in the prior art in order to solve, and a kind of network load balancing method based on cloud computing is provided
The object of the invention is realized through following technical scheme:
Network load balancing method based on cloud computing is characterized in that: includes in resource access flow process, service control flow, and corresponding data processing method,
For the resource access flow process, its step is following, step 1., the client computer input instruction is to " cloud computing is filed a request; Step 2., through " cloud computing finds the best control server in " cloud "; Step 3.; Control Server through " cloud computing is handled request and return results; upgrade the information such as computation rule, resource and revision ID of Control Server simultaneously; the client identifying of this visit is the Resource Server of current version, and this result who returns is designated the server resource of current version; Step 4., client computer receives, the buffer memory return results and this result as an addressable server resource;
For the service control flow, its step is following, step 1., through " cloud computing is set up Control Server in cloud; Service and resource are added, upgrade, deleted to step 2. in Control Server;
Corresponding data processing method is that " " cloud computing is pressed computation rule Distributed Calculation and amalgamation result to Control Server for the resource of cloud computing and instrument use through instruction calls.
The above-mentioned network load balancing method based on cloud computing, wherein: said best control server is network transfer speeds and the server scheduling of resource best control server with client computer.
Further; Above-mentioned network load balancing method based on cloud computing; Wherein: Control Server is through " cloud computing processing request and return results are in " cloud ", to search the server resource of latest edition and pass through " cloud computing processing according to the latest computed rule of Control Server.
Further, above-mentioned network load balancing method based on cloud computing, wherein: described server resource includes picture, literal, video, audio frequency, webpage, program code, application program, the computation rule of buffer memory.
The advantage of technical scheme of the present invention is mainly reflected in: efficiently solve static and dynamic website acceleration problem.Simultaneously, can utilize " cloud computing minimizing cost and the treatment effeciency that improves computational speed and server.
The object of the invention, advantage and characteristics will make an explanation through the non-limitative illustration of following preferred embodiment.These embodiment only are the prominent examples of using technical scheme of the present invention, and all technical schemes of taking to be equal to replacement or equivalent transformation and forming all drop within the scope of requirement protection of the present invention.
Embodiment
Based on the network load balancing method of cloud computing, its unusual part is to include in resource access flow process, service control flow, and corresponding data processing method, specifically:
The present invention has adopted following step for the resource access flow process:
Step 1., the client computer input instruction is to " cloud computing is filed a request.
Step 2., through " cloud computing finds the best control server in " cloud ".Certainly, from " the comparatively perfect condition of cloud computing, best control server are network transfer speeds and the server scheduling of resource best control servers with client computer.
Step 3.; Control Server is through " cloud computing is handled request and return results; upgrade the information such as computation rule, resource and revision ID of Control Server simultaneously; the client identifying of this visit is the Resource Server of current version, and this result who returns is designated the server resource of current version.
Step 4., client computer receive the buffer memory return results and the result as an addressable server resource.And in order to satisfy the processing needs, server resource includes picture, literal, video, audio frequency, webpage, program code, application program, the computation rule of buffer memory, supplies Control Server according to rule invocation with this as resource.
Further, for the service control flow, step of the present invention is following:
Step 1., through " cloud computing is set up Control Server in cloud.
Service and resource are added, upgrade, deleted to step 2. in Control Server.Specifically, be in original service, to carry out plug type to upgrade, as the computation rule that request is returned, it can be to comprise picture, literal, video, web page fragments etc.And, exchanging utilization for the ease of resource, Control Server also can be a Resource Server.
Again further, in order to successfully manage resource access and the mutual coordination of serving control, corresponding data processing method is that Control Server is through the instruction calls " resource of cloud computing.Specifically, these resources are resources such as the picture that need use, literal, video, web page fragments.Use relevant instrument simultaneously, comprise similar means such as Eclipse, office, photoshop.Afterwards, through " cloud computing is pressed computation rule Distributed Calculation and amalgamation result.See that for daily should being used for this result can be data such as picture perhaps in webpage, the processed video.
With regard to the present invention's one preferred implementation, Control Server is through " cloud computing processing request and return results are in " cloud ", to search the server resource of latest edition and pass through " cloud computing processing according to the latest computed rule of Control Server.
Can find out through above-mentioned character express, behind employing the present invention, efficiently solve static and dynamic website acceleration problem.Simultaneously, can utilize " cloud computing minimizing cost and the treatment effeciency that improves computational speed and server.