[go: up one dir, main page]

CN102387071A - Network load balancing method, processor and system - Google Patents

Network load balancing method, processor and system Download PDF

Info

Publication number
CN102387071A
CN102387071A CN2011103063954A CN201110306395A CN102387071A CN 102387071 A CN102387071 A CN 102387071A CN 2011103063954 A CN2011103063954 A CN 2011103063954A CN 201110306395 A CN201110306395 A CN 201110306395A CN 102387071 A CN102387071 A CN 102387071A
Authority
CN
China
Prior art keywords
message
server
type
total weight
weights
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
CN2011103063954A
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011103063954A priority Critical patent/CN102387071A/en
Publication of CN102387071A publication Critical patent/CN102387071A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention provides a network load balancing method, processor and system, wherein the method comprises the following steps that: after receiving messages sent by a request terminal, a server sends a weight query application to each processing terminal; after receiving the weight query application sent by the server, each processing terminal calculates the total weight thereof according to a correspondence relation table of the types of the messages and the numbers of the messages in different types, and returns the total weight to the server; and after receiving the returned total weight of each processing terminal, the server compares the total weights, and sends the messages to the processing terminals to process according to the obtained comparison results.

Description

A kind of method of Network Load Balance, processor and system
Technical field
The invention belongs to transmission technique field, relate in particular to a kind of method, processor and system of Network Load Balance.
Background technology
Along with the develop rapidly of informationized society, network is deep in people's the live and work more and more, and client's application demand of numerous and complicated is also increasingly high to the load-bearing capacity requirement of network.In prior art, application number is that 201010586289.1 invention " a kind of adaptive load balancing method and apparatus based on cognition network " discloses a kind of adaptive load balancing method and apparatus based on cognition network.Foregoing invention is through gather each server state parameter in real time; Calculate the load weighted value of each server, and institute's load calculated weighted value and preset management threshold values are compared, when having the load weighted value greater than the server of preset management threshold values; After the response of corresponding with service device stopped the Preset Time section; Recomputate the load weighted value of each server, and up-to-date load requests is assigned on the minimum server of load weighted value, thereby realize real-time, the dynamic scheduling of network service flow; Make traffic carrying capacity in whole network, evenly distribute, reduce network congestion.
Foregoing invention comprises each server state parameter of cpu load, network traffics, memory usage through real-time collection, calculate each server the load weighted value and with preset management threshold ratio, select server in order to handle up-to-date load requests.Yet, do not realize difference in the foregoing invention according to the type of message of handling, calculate it and handle burden, thereby distribute new service request.
Summary of the invention
The present invention provides a kind of method, processor and system of Network Load Balance to address the above problem.
The present invention provides a kind of method of Network Load Balance, may further comprise the steps.After server receives the message of sending the request end; To each end for process transmission weights inquiry application; After each end for process receives server weights inquiry application; According to type of message and weight mapping table and dissimilar message numbers, calculate the total weight value of each end for process self and return to server.Server compares after receiving each end for process total weight value that returns, and according to comparative result message is sent to end for process and handles.
The present invention provides a kind of processor of Network Load Balance; Comprise receiver module, computing module, feedback module, receiver module connects computing module, and computing module connects feedback module; Receiver module sends to computing module after being used to receive the weights inquiry application of server transmission.Computing module according to type of message and weight mapping table and dissimilar message numbers, calculates total weight value, and total weight value is sent to said feedback module after being used to receive weights inquiry application.Feedback module sends to server after being used to receive the total weight value of computing module transmission.
The present invention provides a kind of system of Network Load Balance, comprises request end, server and end for process, request end Connection Service device, and server connection processing end, wherein, after server receives the message of sending the request end, to each end for process transmission weights inquiry application.Each end for process according to type of message and weight mapping table and dissimilar message numbers, is calculated the total weight value of each end for process self and is returned to server after receiving server weights inquiry application.Server compares after receiving each end for process total weight value that returns, and according to comparative result message is sent to end for process and handles.
Compared to prior art, the method for Network Load Balance provided by the invention, processor and system distribute different weights through giving different type of messages, the burden of computation processor, thus realized the reasonable distribution of pending message.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
The flow chart of the network load balancing method that provides for preferred embodiment according to the present invention shown in Figure 1;
The sketch map of the Network Load Balance processor that provides for preferred embodiment according to the present invention shown in Figure 2;
The sketch map of the Network Load Balance system that provides for preferred embodiment according to the present invention shown in Figure 3.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
The flow chart of the network load balancing method that provides for preferred embodiment according to the present invention shown in Figure 1.As shown in Figure 1, the network load balancing method that preferred embodiment of the present invention provides comprises step 101~103.
Step 101: after server receives the message of sending the request end, to each end for process transmission weights inquiry application.Wherein, the request end comprises inquiry, interpolation, deletion, revises four types to the message of server transmission.
Step 102: each end for process according to type of message and weight mapping table and dissimilar message numbers, is calculated the total weight value of each end for process self and is returned to server after receiving server weights inquiry application.Particularly, message numbers dissimilar on each end for process obtain dissimilar message weights with corresponding multiplied by weight, said dissimilar message weights summation are obtained the total weight value of said each end for process.Wherein, the request end sends in the message of server, and corresponding first weight of query type is added corresponding second weight of type, and corresponding the 3rd weight of deletion type is revised corresponding the 4th weight of type.For example, the type of message of end for process A and weights corresponding relation are as shown in the table:
The weight rank Type of message Weights The message number The message weights
First weight Inquiry 7 56 56×7=392
Second weight Add 5 30 30×5=150
The 3rd weight Deletion 4 ?26 26×4=104
The 4th weight Revise 2 ?12 12×2=24
?…
According to last table, with the total weight value of dissimilar message weights summation acquisition end for process A, then the total weight value of end for process A is 392+150+104+24=670.
Step 103: server compares after receiving each end for process total weight value that returns, and according to comparative result message is sent to end for process and handles.
For example; If A, B, three end for process of C are arranged; According to the computational methods of last table, the total weight value that obtains end for process A respectively is 670, the total weight value of end for process B is 420, and the total weight value of end for process C is 752; Server compares three end for process total weight value separately, said message is sent to the end for process B with minimum total weight value handle.In addition, server compares after receiving each end for process total weight value that returns, and can select the end for process of time minimum total weight value, message is sent to this end for process handle.According to last example, server is handled the end for process A that message sends to time minimum total weight value.This present invention is not done any qualification.
The sketch map of the Network Load Balance processor that provides for preferred embodiment according to the present invention shown in Figure 2.As shown in Figure 2, processor 20 comprises receiver module 201, computing module 202 and feedback module 203.Receiver module 201 connects computing module 202, and computing module 202 connects feedback module 203.
In present embodiment; Receiver module 201 sends to computing module 202 after receiving the weights inquiry application of server transmission, and computing module 202 is according to type of message and weight mapping table and dissimilar message numbers; Calculate total weight value; And total weight value sent to feedback module 203, feedback module 203 sends to server after receiving the total weight value that computing module 202 sends.
The sketch map of the Network Load Balance system that provides for preferred embodiment according to the present invention shown in Figure 3.As shown in Figure 3, SiteServer LBS comprises request end 310, request end 311, request end 312, server 320 and end for process 330, end for process 331, end for process 332.Request end 310, request end 311, request end 312 Connection Service devices 320, server 320 connection processing ends 330, end for process 331, end for process 332.
Wherein, after the message that send server 320 reception request ends 310, request end 311, request end 312, to end for process 330, end for process 331, end for process 332 transmission weights inquiry application.After end for process 330, end for process 331, the end for process 332 reception servers 320 weights inquiry application,, calculate the total weight value of each end for process self and return to server 320 according to type of message and weight mapping table and dissimilar message numbers.Server 320 receives end for process 330, end for process 331, the end for process 332 returned and compares behind the total weight value separately, according to comparative result message is sent to said end for process and handles.
In sum, the method for the Network Load Balance that preferred embodiment provides according to the present invention, processor and system distribute different weights through giving different type of messages, the burden of computation processor, thus realized the reasonable distribution of pending message.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the method for a Network Load Balance is characterized in that, may further comprise the steps:
After server receives the message of sending the request end, to each end for process transmission weights inquiry application;
Said each end for process according to type of message and weight mapping table and dissimilar message numbers, is calculated the total weight value of said each end for process self and is returned to said server after receiving said server weights inquiry application;
Said server compares after receiving said each end for process total weight value that returns, and according to comparative result said message is sent to said end for process and handles.
2. method according to claim 1 is characterized in that, said server compares after receiving said each end for process total weight value that returns, and said message is sent to the end for process with minimum total weight value handle.
3. method according to claim 1; It is characterized in that; Message numbers dissimilar on said each end for process obtain dissimilar message weights with corresponding multiplied by weight, said dissimilar message weights summation are obtained the total weight value of said each end for process.
4. method according to claim 1 is characterized in that, said weight mapping table; Comprise different messages type and corresponding weights thereof, wherein, said type of message comprises inquiry, interpolation, deletion, revises four types; Corresponding first weight of query type; Add corresponding second weight of type, corresponding the 3rd weight of deletion type is revised corresponding the 4th weight of type.
5. the processor of a Network Load Balance is characterized in that, comprises receiver module, computing module, feedback module, and said receiver module connects said computing module, and said computing module connects said feedback module,
Said receiver module sends to said computing module after being used to receive the weights inquiry application of server transmission,
Said computing module according to type of message and weight mapping table and dissimilar message numbers, calculates total weight value, and said total weight value is sent to said feedback module after being used to receive said weights inquiry application,
Said feedback module sends to server after being used to receive the total weight value of said computing module transmission.
6. the system of a Network Load Balance is characterized in that, comprises request end, server and end for process, and the described request end connects said server, and said server connects said end for process, wherein:
After server receives the message of sending the request end, to each end for process transmission weights inquiry application;
Said each end for process according to type of message and weight mapping table and dissimilar message numbers, is calculated the total weight value of said each end for process self and is returned to said server after receiving said server weights inquiry application;
Said server compares after receiving said each end for process total weight value that returns, and according to comparative result said message is sent to said end for process and handles.
7. system according to claim 6 is characterized in that, said server compares after receiving said each end for process total weight value that returns, and said message is sent to the end for process with minimum total weight value handle.
8. system according to claim 6; It is characterized in that; Message numbers dissimilar on said each end for process obtain dissimilar message weights with corresponding multiplied by weight, said dissimilar message weights summation are obtained the total weight value of said each end for process.
9. system according to claim 6 is characterized in that, said type of message and weight mapping table; Comprise different messages type and corresponding weights thereof, wherein, said type of message comprises inquiry, interpolation, deletion, revises four types; Corresponding first weight of query type; Add corresponding second weight of type, corresponding the 3rd weight of deletion type is revised corresponding the 4th weight of type.
CN2011103063954A 2011-10-12 2011-10-12 Network load balancing method, processor and system Pending CN102387071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103063954A CN102387071A (en) 2011-10-12 2011-10-12 Network load balancing method, processor and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103063954A CN102387071A (en) 2011-10-12 2011-10-12 Network load balancing method, processor and system

Publications (1)

Publication Number Publication Date
CN102387071A true CN102387071A (en) 2012-03-21

Family

ID=45826067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103063954A Pending CN102387071A (en) 2011-10-12 2011-10-12 Network load balancing method, processor and system

Country Status (1)

Country Link
CN (1) CN102387071A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131555A1 (en) * 2014-09-29 2015-09-11 中兴通讯股份有限公司 Method and apparatus for multi-coprocessor load balancing and main processor
CN108111431A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 Business datum sending method and device
CN109617826A (en) * 2018-12-29 2019-04-12 南京航空航天大学 A Storm Dynamic Load Balancing Method Based on Cuckoo Search
WO2020006865A1 (en) * 2018-07-03 2020-01-09 平安科技(深圳)有限公司 Short message sending method and apparatus, computer device and storage medium
CN113438301A (en) * 2021-06-22 2021-09-24 北京百度网讯科技有限公司 Network load balancer, request message distribution method, program product and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126202A1 (en) * 2001-11-08 2003-07-03 Watt Charles T. System and method for dynamic server allocation and provisioning
CN1592166A (en) * 2003-09-05 2005-03-09 深圳市中兴通讯股份有限公司南京分公司 Admission controlling method under multi-user type distribution environment based on WCDMA system
CN101730147A (en) * 2009-11-20 2010-06-09 中兴通讯股份有限公司 Carrier frequency allocating method and device
CN101753461A (en) * 2010-01-14 2010-06-23 中国建设银行股份有限公司 Method for realizing load balance, load balanced server and group system
CN102076020A (en) * 2011-01-25 2011-05-25 中兴通讯股份有限公司 Method and device for allocatng selection element (SE) resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126202A1 (en) * 2001-11-08 2003-07-03 Watt Charles T. System and method for dynamic server allocation and provisioning
CN1592166A (en) * 2003-09-05 2005-03-09 深圳市中兴通讯股份有限公司南京分公司 Admission controlling method under multi-user type distribution environment based on WCDMA system
CN101730147A (en) * 2009-11-20 2010-06-09 中兴通讯股份有限公司 Carrier frequency allocating method and device
CN101753461A (en) * 2010-01-14 2010-06-23 中国建设银行股份有限公司 Method for realizing load balance, load balanced server and group system
CN102076020A (en) * 2011-01-25 2011-05-25 中兴通讯股份有限公司 Method and device for allocatng selection element (SE) resources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JINGNAN YAO ET AL: ""A Novel Service-Aware Message Scheduler for Cisco Application Oriented Networking Systems"", 《COMPUTER COMMUNICATIONS AND NETWORKS, 2008》, 7 August 2008 (2008-08-07) *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131555A1 (en) * 2014-09-29 2015-09-11 中兴通讯股份有限公司 Method and apparatus for multi-coprocessor load balancing and main processor
CN105530192A (en) * 2014-09-29 2016-04-27 中兴通讯股份有限公司 Method and device for multi-coprocessor load balancing and main processor
CN105530192B (en) * 2014-09-29 2019-08-23 中兴通讯股份有限公司 A kind of method, apparatus and primary processor of more coprocessor load balancing
CN108111431A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 Business datum sending method and device
CN108111431B (en) * 2016-11-24 2021-09-24 腾讯科技(北京)有限公司 Service data sending method, apparatus, computing device, and computer-readable storage medium
WO2020006865A1 (en) * 2018-07-03 2020-01-09 平安科技(深圳)有限公司 Short message sending method and apparatus, computer device and storage medium
CN109617826A (en) * 2018-12-29 2019-04-12 南京航空航天大学 A Storm Dynamic Load Balancing Method Based on Cuckoo Search
CN109617826B (en) * 2018-12-29 2022-05-03 南京航空航天大学 Storm dynamic load balancing method based on cuckoo search
CN113438301A (en) * 2021-06-22 2021-09-24 北京百度网讯科技有限公司 Network load balancer, request message distribution method, program product and system
CN113438301B (en) * 2021-06-22 2023-06-06 北京百度网讯科技有限公司 Network load balancer, request message distribution method, program product and system

Similar Documents

Publication Publication Date Title
CN109347947A (en) A load balancing method, domain name server and cluster nas server
CN110365748A (en) Treating method and apparatus, storage medium and the electronic device of business datum
CN102387071A (en) Network load balancing method, processor and system
CN104660707B (en) A kind of method of the proxy server equilibrium assignment based on geographical location
WO2022062795A1 (en) Service request allocation method, apparatus and computer device, and storage medium
CN106506701A (en) A kind of server load balancing method and load equalizer
CN102004673A (en) Processing method and system of multi-core processor load balancing
WO2011154311A1 (en) Device and method for data load balancing
CN101854299A (en) A Dynamic Load Balancing Method for Publish/Subscribe System
CN104683216A (en) Forwarding method and forwarding device for customer service information as well as customer service system
CN108737292A (en) A kind of sending method and system, server of bulk messages
CN102724105B (en) A kind of load-balancing method and device
CN106302104A (en) A kind of customer relationship recognition methods and device
CN109274710A (en) Network load balancing method, device and cluster service system
CN104283963A (en) Distributed and collaborative type CDN load balancing method
CN202309752U (en) System for balancing network load
CN109246024A (en) Load sharing method, device, terminal device and storage medium in a kind of networking
CN103763206A (en) Network scheduling method and gateway
CN104301241A (en) A SOA dynamic load distribution method and system
CN110389839B (en) Request-based hierarchical structure load balancing method and system
CN117478636B (en) Domain name resolution scheduling method, device, network equipment and readable storage medium
CN110311957B (en) Server load balancing method and related equipment
CN108092919A (en) A kind of method and system of dynamically distributes terminal device flow
CN104243587A (en) Load balancing method and system for message servers
CN106612296A (en) A method and apparatus for assigning user equipment connection requests

Legal Events

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

Application publication date: 20120321