CN106549875A - A kind of conversation managing method, device and load equalizer - Google Patents

A kind of conversation managing method, device and load equalizer Download PDF

Info

Publication number
CN106549875A
CN106549875A CN201510599682.7A CN201510599682A CN106549875A CN 106549875 A CN106549875 A CN 106549875A CN 201510599682 A CN201510599682 A CN 201510599682A CN 106549875 A CN106549875 A CN 106549875A
Authority
CN
China
Prior art keywords
website server
load
session
information
load balancing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510599682.7A
Other languages
Chinese (zh)
Other versions
CN106549875B (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.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN201510599682.7A priority Critical patent/CN106549875B/en
Publication of CN106549875A publication Critical patent/CN106549875A/en
Application granted granted Critical
Publication of CN106549875B publication Critical patent/CN106549875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a kind of conversation managing method, device and load equalizer, conversation managing method, including:Receive user solicited message;Corresponding first Website server address is retrieved in session routing table according to user request information;When the first Website server address is not retrieved, one second Website server address is obtained according to load balancing, and user request information is routed to by corresponding second Website server according to the second Website server address, the corresponding first via is attended the meeting in words routing table by information record, corresponding first routing iinformation is sent into other load equalizers into load balancing cluster and is synchronized renewal.The scheme that the present invention is provided realizes the conversation request of user and session keeps function;Simultaneously, it is ensured that when same user reuses, its request accurately can be forwarded on the Website server with its session information, provided the user.

Description

A kind of conversation managing method, device and load equalizer
Technical field
The present invention relates to mobile communication technology field, particularly relates to a kind of conversation managing method, device and load Equalizer.
Background technology
Load equalizer (LoadBalance) is used as indispensable a kind of cluster in current dominant systems framework Among network load balancing device has been deployed to each big information system of company, become important in information system One ring.When load equalizer occurs abnormal unavailable, system will be unable to the request of reception processing user, lead Cause the system normally cannot access.How the High Availabitity of proof load equalizer becomes system architecture design when institute The major issue that must take into.
Wherein, load equalizer is also commonly known as " four to seven layer switch ", respectively to four-layer network network exchange agreement Support with seven layer network exchange agreements, the function of each layer of agreement is as shown in figure 1, negative to four layers and seven layers below Carry equilibrium to be specifically introduced:
Four-layer load-equalizing:It is namely mainly by the destination address in message and port, equal along with loading The website WEB server selection strategy that weighing apparatus equipment is arranged, determines the WEB server of final choice.
As shown in Fig. 2 by taking common three-way handshake TCP as an example, load-balancing device is receiving first When asking from handshake SYN of client, i.e., an optimal WEB clothes are selected by the way Business device, and target ip address in message is modified (be changed to rear end WEB server IP), directly forward Give the WEB server.The connection establishment of TCP, i.e. three-way handshake are that client and WEB server are direct Set up, load-balancing device simply plays the forwarding behavior of a similar router.In some deployment scenarios Under, it is to ensure that WEB server is returned bag and can correctly return to load-balancing device, while E-Packeting May can also the source address original to message modify.
Seven layers of load balancing:Also referred to as " content exchange ", that is, mainly by real meaningful in message Application layer content, along with the WEB server selection strategy that load-balancing device is arranged, determine final choosing The WEB server selected.
As shown in figure 3, by taking common TCP as an example, if load-balancing device will be according to real application layer Content reselection WEB server, can only first act on behalf of final WEB server and client sets up connection (three It is secondary to shake hands) after, it is only possible to receive the message of the real application layer content that client sends, then further according to this Specific fields in message, along with the WEB server selection strategy that load-balancing device is arranged, determine most The WEB server for selecting eventually.Load-balancing device in this case, is more closely similar to a proxy server. The WEB server of the client and rear end of load balancing and front end can set up TCP connections respectively.
For the High Availabitity of proof load equalizer, occur in that in prior art a kind of using active and standby (HA) mode The load balancing framework of deployment.Load-balancing device of the framework using seven layer network exchange agreements of support, one The main load-balancing device of platform externally provides service, and another standby load-balancing device is in holding state, not right Outer offer service, as shown in Figure 4.So, when main load-balancing device breaks down can manually or Automated manner is switched on standby load-balancing device, continues externally to provide service.
And as corporate information system centralization is built, a large number of users request Concurrency access information system is expansion Big throughput of system, main flow framework adopt front end load balancing equipment, the pattern of rear end web server cluster, And it is responsible for asking the load-balancing device of distribution mostly to dispose using active/standby mode as core, all it is single for a long time Point work (only one load-balancing device externally provides service), does not have the support of cluster mode, concurrently visits Ask that pressure is larger, High Availabitity poor ability easily affects the normal access of information system, the speed of service occurs slow With the situation of collapse;In addition when main equipment breaks down and is switched on standby host, occur in handoff procedure short Temporarily information system cannot be accessed, and user session information can be caused to lose, and Consumer's Experience is very poor.
On the other hand, with LVS, (Linux Virtual Server, Linux virtual server are one empty The server cluster system of plan) technology development and maturation, occur in that therewith based on LVS technique constructions The load balancing cluster framework of four-layer network network exchange agreement is held, the framework be able to will be born according to its load balancing Load is assigned in cluster on each load-balancing device, while according to the demand of business, dynamic adjustment load balancing The number of members of cluster, with good expansible and High Availabitity characteristic.
But, LVS load balancing clusters framework is because only support four-layer network network agreement, it is impossible to user's request Data are analyzed process so that the load balancing framework cannot ensure that each request of the user is all forwarded to Preserve on the WEB server example of the user session information, cause user session information to lose, it is impossible to protect The normal process of card request, so not a large amount of in actual production system use.
The content of the invention
It is an object of the invention to provide a kind of conversation managing method, device and load equalizer, solve existing In technology, load balancing mode easily causes user session information loss, affects the problem of Consumer's Experience.
In order to solve above-mentioned technical problem, the embodiment of the present invention provides a kind of conversation managing method, is applied to bear The arbitrary load equalizer in balancing cluster is carried, including:
Receive user solicited message;
Corresponding first Website server address is retrieved in session routing table according to user request information;
When the first Website server address is not retrieved, one second net is obtained according to load balancing Site server address, and the user request information is routed to according to the second Website server address it is right The second Website server answered, by the corresponding first via by information record in the session routing table, by institute State other load equalizers that corresponding first routing iinformation sent into the load balancing cluster to synchronize Update.
Alternatively, the conversation managing method also includes:
When the first Website server address is detected, according to the first Website server address by institute State user request information and route to corresponding first Website server.
Alternatively, it is specially the step of the receive user solicited message:
Receive the user request information that webmaster is route according to Open Shortest Path First ospf network agreement.
Alternatively, the conversation managing method also includes:
Whether the Website server in regular check Website server cluster corresponding with the load balancing cluster It is available;
When unavailable, then by the disabled Website server corresponding in the session routing table Two routing iinformations are replaced by the 3rd routing iinformation of corresponding standby Website server, and will change information Other load equalizers sent into the load balancing cluster synchronize renewal.
Alternatively, it is described when unavailable, then the disabled website is taken in the session routing table The corresponding secondary route change dump of business device is the 3rd routing iinformation of corresponding standby Website server Step includes:
When unavailable, exception reporting information is produced;
According to the exception reporting information in the session routing table by the disabled Website server pair The secondary route change dump answered is the 3rd routing iinformation of corresponding standby Website server.
Alternatively, the conversation managing method also includes:
The 4th routing iinformation that other load equalizers in the load balancing cluster is received send or more During fresh information, renewal is synchronized to the local session routing table.
Alternatively, the 4th of other load equalizers transmissions in the load balancing cluster is received When routing iinformation or fresh information, include the step of synchronize renewal to the local session routing table:
During four routing iinformation that other load equalizers in the load balancing cluster is received send, will 4th routing iinformation is increased newly into the local session routing table;
During the fresh information that other load equalizers in the load balancing cluster is received send, according to institute State the 5th route that fresh information searches corresponding unavailable Website server in the local session routing table Information, and the 5th routing iinformation is revised as in the fresh information and the unavailable Website server 6th routing iinformation of corresponding standby Website server.
Present invention also offers a kind of session management device, the arbitrary load being applied in load balancing cluster is equal Weighing apparatus, including:
Receiver module, for receive user solicited message;
Retrieval module, for corresponding first website clothes are retrieved in session routing table according to user request information Business device address;
First processing module, it is for when the first Website server address is not retrieved, equal according to load Weighing apparatus strategy obtains one second Website server address, and according to the second Website server address by the use Family solicited message routes to corresponding second Website server, by the corresponding first via by information record to described In session routing table, corresponding first routing iinformation is sent into other into the load balancing cluster Load equalizer synchronizes renewal.
Alternatively, the session management device also includes:
Routing module, for when the first Website server address is detected, according to first website The user request information is routed to corresponding first Website server by server address.
Alternatively, the receiver module specifically for:
Receive the user request information that webmaster is route according to Open Shortest Path First ospf network agreement.
Alternatively, the session management device also includes:
Regular check module, for regular check Website server cluster corresponding with the load balancing cluster In Website server whether can use;
Second processing module, for when unavailable, then will be disabled described in the session routing table The corresponding secondary route change dump of Website server is the 3rd route of corresponding standby Website server Information, and replacing information is sent into other load equalizers into the load balancing cluster synchronize more Newly.
Alternatively, the Second processing module includes:
Submodule is produced, for, when unavailable, producing exception reporting information;
Submodule is changed, for will be disabled in the session routing table according to the exception reporting information The corresponding secondary route change dump of the Website server is the 3rd of corresponding standby Website server Routing iinformation.
Alternatively, the session management device also includes:
Synchronized update module, sends for other load equalizers in the load balancing cluster is received The 4th routing iinformation or during fresh information, renewal is synchronized to the local session routing table.
Alternatively, it is described to include in synchronized update module:
Newly-increased submodule, the sent for other load equalizers in the load balancing cluster is received During four routing iinformations, the 4th routing iinformation is increased newly into the local session routing table;
First processes submodule, sends for other load equalizers in the load balancing cluster is received Fresh information when, searched according to the fresh information corresponding unavailable in the local session routing table 5th routing iinformation of Website server, and by the 5th routing iinformation be revised as in the fresh information with 6th routing iinformation of the corresponding standby Website server of the unavailable Website server.
Present invention also offers a kind of load equalizer, is applied in load balancing cluster, including:Above-mentioned Session management device.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, the conversation managing method is asked by receive user, retrieves corresponding first website Server address, when not retrieving, obtains one second Website server address according to load balancing and enters Row forwarding, and the record of dependent routing information is carried out in local session routing table, realize the meeting of user Words request and session keep function;Meanwhile, the dependent routing information of new record is sent to same load balancing Other load equalizers in cluster synchronize renewal, it is ensured that when same user reuses, its request Accurately can be forwarded on the Website server with its session information, and the balanced collection of holding load The linear expansion of group, realizes load-balancing device High Availabitity, it is ensured that the smooth extended capability of system, is user Offer is preferably used interchangeably experience.
Description of the drawings
Protocal layers functional schematics of the Fig. 1 for prior art;
Four-layer load-equalizing schematic flow sheets of the Fig. 2 for prior art;
Seven layer load balancing schematic flow sheets of the Fig. 3 for prior art;
Active and standby form load balancing configuration diagrams of the Fig. 4 for prior art;
Conversation managing method schematic flow sheets of the Fig. 5 for the embodiment of the present invention one;
SiteServer LBS configuration diagrams of the Fig. 6 for the embodiment of the present invention two;
Session management device structural representations of the Fig. 7 for the embodiment of the present invention two;
SiteServer LBS schematic flow sheets of the Fig. 8 for the embodiment of the present invention two;
Session routing iinformation synchronized update schematic diagrams of the Fig. 9 for the embodiment of the present invention two;
Session management device structural representations of the Figure 10 for the embodiment of the present invention three.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with attached Figure and specific embodiment are described in detail.
The present invention easily causes user session information loss for load balancing mode in existing technology, affects to use The problem of family experience, there is provided various solutions, it is specific as follows:
Embodiment one
As shown in figure 5, the conversation managing method that the embodiment of the present invention one is provided, can be applicable to load balancing collection Arbitrary load equalizer in group, the conversation managing method include:
Step 51:Receive user solicited message;
Step 52:Corresponding first Website server ground is retrieved in session routing table according to user request information Location;
Step 53:When the first Website server address is not retrieved, obtained according to load balancing One second Website server address, and according to the second Website server address by the user request information Corresponding second Website server is routed to, by the corresponding first via by information record to the session routing table In, corresponding first routing iinformation is sent into other load equalizers into the load balancing cluster Synchronize renewal.
Wherein, user request information can be that any user needs to access the request of content, and load balancing can For polling schemas or Smallest connection strategy etc., other can arbitrarily reach the strategy of technical purpose, and here is not limited It is fixed.
The conversation managing method that the embodiment of the present invention one is provided is asked by receive user, is retrieved corresponding First Website server address, when not retrieving, obtains one second website service according to load balancing Device address is forwarded, and the record of dependent routing information is carried out in local session routing table, is realized The conversation request of user and session keep function;Meanwhile, the dependent routing information of new record is sent to same Other load equalizers in load balancing cluster synchronize renewal, it is ensured that when same user reuses, Its request accurately can be forwarded on the Website server with its session information, and holding load The linear expansion of balancing cluster, realizes load-balancing device High Availabitity, it is ensured that the smooth extended capability of system, Provide the user.
Corresponding, the conversation managing method also includes:When the first Website server address is detected, The user request information is routed to by corresponding first website service according to the first Website server address Device.
In order that the use feeling of user is more preferably, it is described according to user request information in session routing table Before retrieving corresponding first Website server address, the conversation managing method also includes:According to default rule Pretreatment is carried out to the user request information then.
Specifically, it is described to include the step of carry out pretreatment to the user request information according to preset rules: Received according to source address IP of client in the user request information and shielding processing;Or, according to institute State the request content in user request information to be received and shielding processing;Or, in the user request information In request type be predefined type when, the user request information is forwarded directly to into corresponding predetermined website Server interface carries out scheduled operation process.
Wherein, it is specially the step of the receive user solicited message:Webmaster is received according to open shortest path The user request information of preferential ospf network agreement route.
Further, the conversation managing method also includes:Regular check is corresponding with the load balancing cluster Website server cluster in Website server whether can use;When unavailable, then it route in the session It is corresponding standby net by the disabled Website server corresponding secondary route change dump in table 3rd routing iinformation of site server, and by replacing information send other into the load balancing cluster bear Carry equalizer and synchronize renewal.
Specifically, it is described when unavailable, then the disabled website is taken in the session routing table The corresponding secondary route change dump of business device is the 3rd routing iinformation of corresponding standby Website server Step includes:When unavailable, exception reporting information is produced;According to the exception reporting information in the meeting It is corresponding by the disabled Website server corresponding secondary route change dump in words routing table 3rd routing iinformation of standby Website server.
Also the situation of synchronized update, the conversation managing method is needed also to include corresponding to this load equalizer: Receive the 4th routing iinformation or fresh information that other load equalizers in the load balancing cluster send When, renewal is synchronized to the local session routing table.
Specifically, the 4th of other load equalizers transmissions in the load balancing cluster is received When routing iinformation or fresh information, include the step of synchronize renewal to the local session routing table: During four routing iinformation that other load equalizers in the load balancing cluster is received send, will be described 4th routing iinformation is increased newly into the local session routing table;In the load balancing cluster is received During the fresh information that other load equalizers send, the local meeting speech channel is searched according to the fresh information By the 5th routing iinformation of corresponding unavailable Website server in table, and the 5th routing iinformation is changed For the 6th tunnel of standby Website server corresponding with the unavailable Website server in the fresh information By information.
It is in view of practical situation, in the present embodiment, described that one second website clothes are obtained according to load balancing The step of business device address, includes:One second Website server address is obtained according to polling schemas;Or, according to most Little connection strategy obtains one second Website server address.
Embodiment two
With reference to Fig. 6 to Fig. 9, the session management scheme that the embodiment of the present invention two is provided is elaborated.
As shown in fig. 6, the framework of whole system is related generally to based on OSPF in the scheme of the embodiment of the present invention two The load balancing cluster of (Open Shortest Path First, Open Shortest Path First) express network and Session session management devices (SMD).
It is described as follows:
Load balancing cluster
Based on ospf network protocol construction high speed network environment, realize that user's request equal-cost route is equal to each load On weighing apparatus.
Ospf protocol is by being divided into different regions (Area) by autonomous system.Region is logically will Router is divided into different groups, and each group is identified with regional number (Area ID).Can arrange in region Multiple load equalizers constitute a cluster, and equal-cost route is realized in request in region, and request is averaged distribution To on each load equalizer, while multiple regions (cluster) can be set up as needed.
Session session management devices (SMD)
As shown in fig. 7, SMD includes five modules altogether:Request receiving interface module, session route search mould Block, session route synchronization module, request forwarding module and WEB (website) server detection module, respectively Mutual co-ordination between module, it is ensured that user's request accurately can be forwarded to its session information In WEB server, as shown in Figure 8:
Step 81:User sends request, asks Jing core routers are forwarded in load balancing cluster certain On load equalizer;
Step 82:Load equalizer is handed to the request of session management device (SMD) by the request for receiving Receiving interface module;
Step 83:Request receiving interface module receives the content after asking to asking and is analyzed, and can root According to arrange corresponding strategy to request carry out classification process, be transmitted to after process request attend the meeting words route search mould Block.;
Step 84:Session information retrieval session routing table of the session route search module according to request, and according to The result of retrieval carries out respective handling, if retrieving corresponding session information into step 85, if do not examined Rope is to into step 86;
Step 85:The routing iinformation asked and retrieve is sent to request forwarding by session route search module Module, into step 88;
Step 86:Retrieval result and request are transmitted to session route synchronization module by session route search module;
Step 87:Session route synchronization module distributes WEB server for the request according to load balancing, Then, step 871:The dependent routing information of the session (WEB server of distribution) recorded locally Session routing table in, and by its synchronized update in load balancing cluster on the SMD of other nodes;Step 872:The WEB server information of distribution and request are sent to into request forwarding module, into step 88;
Step 88:Request forwarding module routes requests to its corresponding WEB server according to routing iinformation On;
Step 89:The WEB server request that receives of process that result is returned to corresponding load is equal Weighing apparatus;
Step 810:The result for receiving is returned to client (user) by load equalizer;
Step 811:Whether available (the detection service shape of WEB service detecting module regular check WEB server State);
Step 812:If it find that the information is then given session by WEB server unavailable (service is abnormal) Route synchronization module;
Step 813:In session route synchronization module meeting routing table, all WEB servers are (in step 812 The abnormal WEB server of service) dependent routing information be revised as the standby WEB of the WEB server The address of server;Standby WEB server can rely on the Session copy functions of WEB server to preserve The session information of faulty WEB server, such subsequent request will route requests to standby WEB clothes On business device, it is ensured that user's request being capable of normal process.
Below five modules in session management device (SMD) are described in detail:
Request receiving interface module
It is responsible for receiving the user request information from load equalizer, and can be according to the corresponding strategy for arranging to asking Asking carries out classification process:
1. can be received and shielding processing according to the source IP of client.
2. can be received according to request content and shielding processing.
3. specific request can be forwarded directly to specific WEB server interface carries out specific operation process.
Session route search module
Attended the meeting to talk about in routing table according to the session information of request and enter line retrieval, determine whether the request is new request, And other modules being forwarded in device according to retrieval result are processed.
Wherein, shown in routing table data structure table specific as follows:
Field name Field description
Source_IP The client ip address of request
SessionID The SessionID information of request
Dest_IP The IP address of WEB server
Dest_Port The port information of WEB server
URL_PATH Using the context root information for accessing
Session route synchronization module
Local routing is safeguarded according to the solicited message of session route search module and WEB server detection module Table information, and the routing table information is sent to by MultiCast (multicast transmission) or IP communication protocols negative Carry other load equalizers (LB) member in balancing cluster so as to synchronous vacations local routing table information, As shown in Figure 9.
Request forwarding module
According to the retrieval result of session route search module, forward requests to corresponding session information In WEB server.
If 1. session route search module retrieves the conversation recording of the request, according to the note of routing table Record information is forwarded in corresponding WEB server.
If 2. session route search module does not retrieve the conversation recording of the request, according to load balancing The load balancing that device is arranged normally is forwarded.
WEB service detection module
The module goes the available situation of detection WEB server according to the detection cycle timing of setting, and according to anti- The result of feedback safeguards local routing table information, while calling session route synchronization module to carry out load balancing cluster Routing iinformation synchronized update.
Based on the Session copy functions of web server cluster, if this module detects certain WEB Server fail, then session routing table data renewal being associated with the WEB server so as to refer to Continue offer service to slave node server, it is ensured that do not lose user session information.
From the foregoing, it will be observed that the session management scheme that the embodiment of the present invention two is provided passes through session management device (SMD) The routing iinformation for realizing session is synchronously shared in load balancing cluster, it is ensured that user's request being capable of accurate nothing That what is missed is forwarded in the WEB server with its session information, and the linear expansion of holding load balancing cluster Exhibition, realizes load-balancing device High Availabitity, it is ensured that the smooth extended capability of system.
In sum, the embodiment of the present invention two provides a kind of situation that user session information is not lost in guarantee Seven layers of load balancing cluster framework of distributed horizontal extension can be supported down, realizing load-balancing device can root Need to carry out the purpose of linear expansion according to production;And Session sessions can be effectively managed, supports that session keeps, Ensure that session information is not lost;Realize load-balancing device High Availabitity, it is ensured that information system is stable, efficient Operation.
Embodiment three
As shown in Figure 10, the session management device that the embodiment of the present invention three is provided, can be applicable to load balancing collection Arbitrary load equalizer in group, the session management device include:
Receiver module 101, for receive user solicited message;
Retrieval module 102, for corresponding first website is retrieved in session routing table according to user request information Server address;
First processing module 103, for when the first Website server address is not retrieved, according to load Balance policy obtains one second Website server address, and will be described according to the second Website server address User request information routes to corresponding second Website server, by the corresponding first via by information record to institute State in session routing table, corresponding first routing iinformation is sent into its into the load balancing cluster His load equalizer synchronizes renewal.
Wherein, user request information can be that any user needs to access the request of content, and load balancing can For polling schemas or Smallest connection strategy etc., other can arbitrarily reach the strategy of technical purpose, and here is not limited It is fixed.
The session management device that the embodiment of the present invention three is provided is asked by receive user, is retrieved corresponding First Website server address, when not retrieving, obtains one second website service according to load balancing Device address is forwarded, and the record of dependent routing information is carried out in local session routing table, is realized The conversation request of user and session keep function;Meanwhile, the dependent routing information of new record is sent to same Other load equalizers in load balancing cluster synchronize renewal, it is ensured that when same user reuses, Its request accurately can be forwarded on the Website server with its session information, and holding load The linear expansion of balancing cluster, realizes load-balancing device High Availabitity, it is ensured that the smooth extended capability of system, Provide the user.
Corresponding, the session management device also includes:Routing module, for detecting first net During site server address, it is right to route to the user request information according to the first Website server address The first Website server answered.
In order that the use feeling of user is more preferably, the conversation managing method also includes:Pretreatment module, Before operation is performed for the first processing module, the user request information is carried out according to preset rules Pretreatment.
Specifically, the pretreatment module includes:Second processing submodule, for according to the user's request In information, source address IP of client is received and shielding processing;Or, the 3rd processes submodule, for root Received according to the request content in the user request information and shielding processing;Or, fourth process submodule, For the request type in the user request information be predefined type when, will be the user request information straight Switch through and be sent to corresponding predetermined website server interface and carry out scheduled operation process.
Wherein, the receiver module specifically for:Webmaster is received according to Open Shortest Path First ospf network The user request information of agreement route.
Further, the session management device also includes:Regular check module, for regular check and institute Whether the Website server stated in the corresponding Website server cluster of load balancing cluster can use;Second processing mould Block, for when unavailable, then by the disabled Website server correspondence in the session routing table Secondary route change dump be corresponding standby Website server the 3rd routing iinformation, and will change Other load equalizers that information is sent into the load balancing cluster synchronize renewal.
Specifically, the Second processing module includes:Submodule is produced, for, when unavailable, producing different Normal report information;Submodule is changed, for inciting somebody to action in the session routing table according to the exception reporting information The corresponding secondary route change dump of the disabled Website server is corresponding standby website service 3rd routing iinformation of device.
Also the situation of synchronized update, the session management device is needed also to include corresponding to this load equalizer:Together Step update module, the 4th sent for other load equalizers in the load balancing cluster is received When routing iinformation or fresh information, renewal is synchronized to the local session routing table.
Specifically, it is described to include in synchronized update module:Newly-increased submodule, for receiving the load During four routing iinformation that other load equalizers in weighing apparatus cluster send, the 4th routing iinformation is increased newly Into the local session routing table;First processes submodule, for receiving the load balancing cluster In other load equalizers send fresh information when, the local meeting is searched according to the fresh information 5th routing iinformation of corresponding unavailable Website server in words routing table, and by the 5th routing iinformation It is revised as of corresponding with the unavailable Website server standby Website server in the fresh information Six routing iinformations.
In view of practical situation, in the present embodiment, the first processing module includes:First acquisition submodule, For obtaining one second Website server address according to polling schemas;Or, the second acquisition submodule, for root One second Website server address is obtained according to Smallest connection strategy.
It should be noted that the described of above-mentioned conversation managing method realizes that embodiment is applied to the session management In the embodiment of device, identical technique effect can be also reached.
The session management device that the embodiment of the present invention three is provided, can be used in existing load balancing cluster Load equalizer is improved, to realize function of the session management device in the embodiment of the present invention three.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary people of the art For member, under the premise of without departing from principle of the present invention, some improvements and modifications can also be made, these Improvements and modifications also should be regarded as protection scope of the present invention.

Claims (15)

1. a kind of conversation managing method, the arbitrary load equalizer being applied in load balancing cluster, its feature It is, including:
Receive user solicited message;
Corresponding first Website server address is retrieved in session routing table according to user request information;
When the first Website server address is not retrieved, one second net is obtained according to load balancing Site server address, and the user request information is routed to according to the second Website server address it is right The second Website server answered, by the corresponding first via by information record in the session routing table, by institute State other load equalizers that corresponding first routing iinformation sent into the load balancing cluster to synchronize Update.
2. conversation managing method as claimed in claim 1, it is characterised in that the conversation managing method is also Including:
When the first Website server address is detected, according to the first Website server address by institute State user request information and route to corresponding first Website server.
3. conversation managing method as claimed in claim 1, it is characterised in that the receive user request letter The step of breath, is specially:
Receive the user request information that webmaster is route according to Open Shortest Path First ospf network agreement.
4. conversation managing method as claimed in claim 1, it is characterised in that the conversation managing method is also Including:
Whether the Website server in regular check Website server cluster corresponding with the load balancing cluster It is available;
When unavailable, then by the disabled Website server corresponding in the session routing table Two routing iinformations are replaced by the 3rd routing iinformation of corresponding standby Website server, and will change information Other load equalizers sent into the load balancing cluster synchronize renewal.
5. conversation managing method as claimed in claim 4, it is characterised in that described when unavailable, then In the session routing table by the disabled Website server corresponding secondary route change dump be with Corresponding standby Website server three routing iinformations the step of include:
When unavailable, exception reporting information is produced;
According to the exception reporting information in the session routing table by the disabled Website server pair The secondary route change dump answered is the 3rd routing iinformation of corresponding standby Website server.
6. conversation managing method as claimed in claim 1, it is characterised in that the conversation managing method is also Including:
The 4th routing iinformation that other load equalizers in the load balancing cluster is received send or more During fresh information, renewal is synchronized to the local session routing table.
7. conversation managing method as claimed in claim 6, it is characterised in that it is described receiving it is described negative When carrying the 4th routing iinformation or the fresh information that other load equalizers in balancing cluster send, to local The step of session routing table synchronizes renewal includes:
During four routing iinformation that other load equalizers in the load balancing cluster is received send, will 4th routing iinformation is increased newly into the local session routing table;
During the fresh information that other load equalizers in the load balancing cluster is received send, according to institute State the 5th route that fresh information searches corresponding unavailable Website server in the local session routing table Information, and the 5th routing iinformation is revised as in the fresh information and the unavailable Website server 6th routing iinformation of corresponding standby Website server.
8. a kind of session management device, the arbitrary load equalizer being applied in load balancing cluster, its feature It is, including:
Receiver module, for receive user solicited message;
Retrieval module, for corresponding first website clothes are retrieved in session routing table according to user request information Business device address;
First processing module, it is for when the first Website server address is not retrieved, equal according to load Weighing apparatus strategy obtains one second Website server address, and according to the second Website server address by the use Family solicited message routes to corresponding second Website server, by the corresponding first via by information record to described In session routing table, corresponding first routing iinformation is sent into other into the load balancing cluster Load equalizer synchronizes renewal.
9. session management device as claimed in claim 8, it is characterised in that the session management device is also Including:
Routing module, for when the first Website server address is detected, according to first website The user request information is routed to corresponding first Website server by server address.
10. session management device as claimed in claim 8, it is characterised in that the receiver module is specifically used In:
Receive the user request information that webmaster is route according to Open Shortest Path First ospf network agreement.
11. session management devices as claimed in claim 8, it is characterised in that the session management device is also Including:
Regular check module, for regular check Website server cluster corresponding with the load balancing cluster In Website server whether can use;
Second processing module, for when unavailable, then will be disabled described in the session routing table The corresponding secondary route change dump of Website server is the 3rd route of corresponding standby Website server Information, and replacing information is sent into other load equalizers into the load balancing cluster synchronize more Newly.
12. session management devices as claimed in claim 11, it is characterised in that the Second processing module Including:
Submodule is produced, for, when unavailable, producing exception reporting information;
Submodule is changed, for will be disabled in the session routing table according to the exception reporting information The corresponding secondary route change dump of the Website server is the 3rd of corresponding standby Website server Routing iinformation.
13. session management devices as claimed in claim 8, it is characterised in that the session management device is also Including:
Synchronized update module, sends for other load equalizers in the load balancing cluster is received The 4th routing iinformation or during fresh information, renewal is synchronized to the local session routing table.
14. session management devices as claimed in claim 13, it is characterised in that described in synchronized update mould Block includes:
Newly-increased submodule, the sent for other load equalizers in the load balancing cluster is received During four routing iinformations, the 4th routing iinformation is increased newly into the local session routing table;
First processes submodule, sends for other load equalizers in the load balancing cluster is received Fresh information when, searched according to the fresh information corresponding unavailable in the local session routing table 5th routing iinformation of Website server, and by the 5th routing iinformation be revised as in the fresh information with 6th routing iinformation of the corresponding standby Website server of the unavailable Website server.
A kind of 15. load equalizers, are applied in load balancing cluster, it is characterised in that include:Such as right Require the session management device described in 8 to 14 any one.
CN201510599682.7A 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer Active CN106549875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510599682.7A CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510599682.7A CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Publications (2)

Publication Number Publication Date
CN106549875A true CN106549875A (en) 2017-03-29
CN106549875B CN106549875B (en) 2019-09-13

Family

ID=58362027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510599682.7A Active CN106549875B (en) 2015-09-18 2015-09-18 A kind of conversation managing method, device and load balancer

Country Status (1)

Country Link
CN (1) CN106549875B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222544A (en) * 2017-06-14 2017-09-29 千寻位置网络有限公司 High availability method and system based on multilayer service architecture
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing
CN110098999A (en) * 2019-05-09 2019-08-06 携程计算机技术(上海)有限公司 The method and system that IM is managed in the event system of the website OTA
CN111193941A (en) * 2020-01-07 2020-05-22 北京东土科技股份有限公司 Method, device and equipment for transmitting media data and storage medium
CN111416852A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN111416851A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN111756780A (en) * 2019-03-27 2020-10-09 厦门网宿有限公司 Method for synchronizing connection information and load balancing system
CN112217843A (en) * 2019-07-09 2021-01-12 阿里巴巴集团控股有限公司 Service unit switching method, system and equipment
CN112653620A (en) * 2020-12-21 2021-04-13 杭州迪普科技股份有限公司 Route processing method, device, equipment and computer readable storage medium
CN112671928A (en) * 2020-12-31 2021-04-16 北京天融信网络安全技术有限公司 Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
CN113014503A (en) * 2021-03-08 2021-06-22 中国工商银行股份有限公司 Access data routing method, device and system
CN113489775A (en) * 2021-06-30 2021-10-08 深圳市风云实业有限公司 VPP-based seven-layer load balancing server and load balancing method
CN114598704A (en) * 2022-03-16 2022-06-07 浪潮云信息技术股份公司 TCP connection fault-tolerant method based on four-layer load balancing cluster
CN118394850A (en) * 2024-06-26 2024-07-26 杭州悦数科技有限公司 Load balancing and retry method and device for distributed graph database service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN103607356A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Load balancing method, load balancer and system thereof
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN104836839A (en) * 2015-03-30 2015-08-12 南京大学 Universal user self-defining session system and session management method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN103607356A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Load balancing method, load balancer and system thereof
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN104836839A (en) * 2015-03-30 2015-08-12 南京大学 Universal user self-defining session system and session management method thereof

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222544A (en) * 2017-06-14 2017-09-29 千寻位置网络有限公司 High availability method and system based on multilayer service architecture
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing
CN111756780B (en) * 2019-03-27 2022-04-22 厦门网宿有限公司 Method for synchronizing connection information and load balancing system
CN111756780A (en) * 2019-03-27 2020-10-09 厦门网宿有限公司 Method for synchronizing connection information and load balancing system
CN110098999A (en) * 2019-05-09 2019-08-06 携程计算机技术(上海)有限公司 The method and system that IM is managed in the event system of the website OTA
CN112217843B (en) * 2019-07-09 2023-08-22 阿里巴巴集团控股有限公司 Service unit switching method, system and equipment
CN112217843A (en) * 2019-07-09 2021-01-12 阿里巴巴集团控股有限公司 Service unit switching method, system and equipment
CN111193941A (en) * 2020-01-07 2020-05-22 北京东土科技股份有限公司 Method, device and equipment for transmitting media data and storage medium
CN111416852A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN111416851A (en) * 2020-03-16 2020-07-14 优刻得科技股份有限公司 Method for session synchronization among multiple load balancers and load balancer
CN112653620A (en) * 2020-12-21 2021-04-13 杭州迪普科技股份有限公司 Route processing method, device, equipment and computer readable storage medium
CN112671928A (en) * 2020-12-31 2021-04-16 北京天融信网络安全技术有限公司 Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
CN113014503A (en) * 2021-03-08 2021-06-22 中国工商银行股份有限公司 Access data routing method, device and system
CN113489775A (en) * 2021-06-30 2021-10-08 深圳市风云实业有限公司 VPP-based seven-layer load balancing server and load balancing method
CN113489775B (en) * 2021-06-30 2023-07-21 深圳市风云实业有限公司 Seven-layer load balancing server and load balancing method based on VPP
CN114598704A (en) * 2022-03-16 2022-06-07 浪潮云信息技术股份公司 TCP connection fault-tolerant method based on four-layer load balancing cluster
CN114598704B (en) * 2022-03-16 2024-05-17 浪潮云信息技术股份公司 TCP connection fault tolerance method based on four-layer load balancing cluster
CN118394850A (en) * 2024-06-26 2024-07-26 杭州悦数科技有限公司 Load balancing and retry method and device for distributed graph database service
CN118394850B (en) * 2024-06-26 2024-09-17 杭州悦数科技有限公司 Load balancing and retry method and device for distributed graph database service

Also Published As

Publication number Publication date
CN106549875B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN106549875A (en) A kind of conversation managing method, device and load equalizer
US9515920B2 (en) Name-based neighbor discovery and multi-hop service discovery in information-centric networks
CN104380693B (en) System and method for dynamic routing in the cluster
US10015082B2 (en) Providing non-interrupt failover using a link aggregation mechanism
US9659075B2 (en) Providing high availability in an active/active appliance cluster
US7263099B1 (en) Multicast packet replication
US9325609B2 (en) Segmented source routing in a network
CN100505692C (en) High performance router BGP routing protocol distribution parallel realizing method
JP2017118575A (en) Load distribution in data networks
US20130286893A1 (en) Route calculation method and master node device in virtual network element
CN107454155A (en) A kind of fault handling method based on load balancing cluster, device and system
US10554555B2 (en) Hash-based overlay routing architecture for information centric networks
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
KR20120036903A (en) Inter-node link aggregation system and method
WO2016173403A1 (en) Routing device, load balancing device, and message distribution method and system
CN112087390B (en) Network routing method and device
US20220131935A1 (en) Service Unit Switching Method, System, and Device
CN102291455A (en) Distributed cluster processing system and message processing method thereof
WO2015058705A1 (en) Data distribution method and apparatus
CN106341249A (en) Redundant port switching method and device
CN109495526A (en) A kind of file transmitting method, device, system, electronic equipment and storage medium
CN105450697B (en) A kind of more equipment are same to shield sharing method, device and server
CN100423514C (en) Data synchronization method in distributed equipment according to address resolution protocol
CN106209680A (en) Information processor and method
CN109644160A (en) The mixed method of name resolving and producer's selection is carried out in ICN by being sorted in

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant