CN109495526A - A kind of file transmitting method, device, system, electronic equipment and storage medium - Google Patents
A kind of file transmitting method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109495526A CN109495526A CN201710816202.7A CN201710816202A CN109495526A CN 109495526 A CN109495526 A CN 109495526A CN 201710816202 A CN201710816202 A CN 201710816202A CN 109495526 A CN109495526 A CN 109495526A
- Authority
- CN
- China
- Prior art keywords
- session
- load
- data message
- target data
- centralized
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention provides a kind of file transmitting method, device, system, electronic equipment and storage mediums, this method is applied to the load-balancing device in system for cloud computing, the system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, this method comprises: the target data message that desampler is sent;The corresponding session of the target data message is searched in the session being locally stored, if searching failure, the target data message is sent to centralized session synchronization equipment by the interchanger, so that the target data message is sent to application server cluster according to the session being locally stored by the centralization session synchronization equipment.The embodiment of the present invention is when load-balancing device breaks down, application server cluster will be sent in the data message that load-balancing device finds respective session by centralized session synchronization equipment, reduce the consumption to cpu resource, improves load-balancing device to the transmitting capacity of data message.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of file transmitting method, device, system, electronic equipment
And storage medium.
Background technique
In system for cloud computing, entrance of the load-balancing device as customer flow, performance and stability have act foot
The effect of weight.Load-balancing device is deployed as active-standby mode to realize High Availabitity, due to load-balancing device by traditional technology
It is stateful forwarding when forwarding customer flow, i.e., is forwarded customer flow is dialogue-based, therefore active and standby load balancing is set
Session synchronization function is needed between standby.For the performance of load-balancing device extending transversely, most cloud manufacturers can will all be loaded
Equalizing equipment is deployed as cluster mode, by carry out in a switch equivalent route (Equal-CostMultipathRouting,
ECMP) algorithm realizes forwarding of the customer flow on multiple load-balancing devices, can at most support so maximum in interchanger
The load-balancing device of number of routes carries out the forwarding of customer flow, and this deployment way is advantageous in that simple and reliable, is convenient for
It is extending transversely.
But traditional load-balancing device works in active-standby mode, the biggest problems are that its scalability is poor,
The flow of a large number of users can not be supported to forward demand, be difficult to suitable for cloud computing environment.When load-balancing device is disposed
When for cluster mode, customer flow is forwarded by traditional interchanger using ECMP algorithm by load-balancing device, when negative
When the number of load-balancing device changes in load equalizing equipment cluster, exchange opportunity is reused ECMP algorithm and is routed
Distribution, causes the path of most of customer flow that can change, thus will lead to most user data message and can not find
Oneself corresponding session, so that retransmission failure, even more serious the result is that the connection of user and load-balancing device cluster can dodge
Disconnected, Web vector graphic and experience to user bring great inconvenience.
For the problem that under cluster mode, load-balancing device quantity, which changes, causes customer flow that can not forward, mesh
Preceding existing solution are as follows: realize the session synchronization of full dose, i.e. cluster by interchanger between each load-balancing device
In each load-balancing device have whole session informations of all load-balancing devices of other in cluster, to guarantee in cluster
When some or certain several load-balancing devices break down, other load-balancing devices still are able to forwarding load fault equilibrium and set
The standby user data message that should be forwarded.Although can guarantee that one or several load balancing are set in cluster using aforesaid way
It is standby when breaking down, still can be realized faulty equipment responsible data message forwarding, but since each load balancing is set
The standby session information for being required to all devices in storage cluster, leads to the more cpu resource for occupying every load-balancing device,
The session management ability of separate unit load-balancing device will receive limitation, thus entire cluster to the transfer capability of customer flow by
Limitation, and aforesaid way needs interchanger to support multicast functionality.
Summary of the invention
Be designed to provide a kind of file transmitting method, device, system, electronic equipment and the storage of the embodiment of the present invention are situated between
Matter is required to the session information of all load-balancing devices in storage cluster to avoid the load-balancing device in system for cloud computing
Caused cpu resource occupies excessive situation, thus improve separate unit load-balancing device session management ability and entire cluster
Forward the ability of customer flow.Specific technical solution is as follows:
The embodiment of the invention discloses a kind of file transmitting method, applied to the load-balancing device in system for cloud computing,
System for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization equipment, the above method include:
The target data message that desampler is sent;
In the session being locally stored for having received the load-balancing device of target data message, target data message is searched
Corresponding session;If searching failure, target data message is sent to interchanger, so that interchanger sends out target data message
It send to centralized session synchronization equipment, so that local of the centralized session synchronization equipment according to centralized session synchronization equipment
Target data message is sent to application server cluster, wherein centralized session synchronization equipment is locally stored by the session of storage
Session are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
The embodiment of the invention discloses a kind of file transmitting methods, applied to the centralized session synchronization in system for cloud computing
Equipment, system for cloud computing include: that interchanger, load-balancing device and centralized session synchronization equipment, the above method include:
The target data message that desampler is sent;Wherein, target data message is by having received target data message
Load-balancing device do not find the corresponding session of target data message in the session that own local stores after, to interchanger
The target data message of transmission;
According to the session of centralized session synchronization equipment being locally stored, target data message is sent to application server
Group.
The embodiment of the invention discloses a kind of file transmitting methods, applied to the interchanger in system for cloud computing, cloud computing
Network includes: that interchanger, load-balancing device and centralized session synchronization equipment, the above method include:
Receive target data message;
Route assignment is carried out to target data message, determines the load-balancing device for forwarding target data message, and
Target data message is sent to identified load-balancing device, so that identified load-balancing device, is determining
Load-balancing device the session being locally stored in, search the corresponding session of target data message;
The target data message that is sent after searching conversation failure of load-balancing device determined by receiving, and by number of targets
It is sent to centralized session synchronization equipment according to message, so that centralized session synchronization equipment is according to centralized session synchronization equipment
The session being locally stored, target data message is sent to application server cluster, wherein the sheet of centralized session synchronization equipment
The session of ground storage are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
The embodiment of the invention discloses a kind of packet transmission device, applied to the load-balancing device in system for cloud computing,
System for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization equipment, above-mentioned apparatus include:
First receiving module, the target data message sent for desampler;
First searching module, in the session being locally stored for having received the load-balancing device of target data message
In, search the corresponding session of target data message;
First sending module, in the corresponding conversation failure of lookup target data message, target data message to be sent out
It send to interchanger, so that target data message is sent to centralized session synchronization equipment by interchanger, so that centralized meeting
Synchronizer is talked about according to the session of centralized session synchronization equipment being locally stored, target data message is sent to application service
Device group, wherein the session of centralized session synchronization equipment being locally stored are as follows: set from each load balancing in system for cloud computing
The session of standby synchronization gain.
The embodiment of the invention discloses a kind of packet transmission devices, applied to the centralized session synchronization in system for cloud computing
Equipment, system for cloud computing include: that interchanger, load-balancing device and centralized session synchronization equipment, above-mentioned apparatus include:
8th receiving module, the target data message sent for desampler;Wherein, target data message is by connecing
The load-balancing device for having received target data message does not find target data message in the session that own local stores and corresponds to
Session after, to interchanger send target data message;
4th sending module, for the session being locally stored according to centralized session synchronization equipment, by target data report
Text is sent to application server cluster.
The embodiment of the invention discloses a kind of packet transmission devices, applied to the interchanger in system for cloud computing, cloud computing
Network includes: that interchanger, load-balancing device and centralized session synchronization equipment, above-mentioned apparatus include:
Second receiving module, for receiving target data message;
First distribution module is determined for carrying out route assignment to target data message for forwarding target data message
Load-balancing device, and target data message is sent to identified load-balancing device, so that identified load
Equalizing equipment searches the corresponding session of target data message in the session of identified load-balancing device being locally stored;
Third receiving module, the number of targets sent after searching conversation failure for receiving identified load-balancing device
Be sent to centralized session synchronization equipment according to message, and by target data message so that centralized session synchronization equipment according to
Target data message is sent to application server cluster by the session of centralized session synchronization equipment being locally stored, wherein is concentrated
The session of formula session synchronization equipment being locally stored are as follows: from the meeting of each load-balancing device synchronization gain in system for cloud computing
Words.
The embodiment of the invention discloses a kind of transmitting system, which includes: interchanger, load-balancing device sum aggregate
Chinese style session synchronization equipment;Wherein,
Interchanger, for receiving target data message;Route assignment is carried out to target data message, is determined for forwarding mesh
Mark the load-balancing device of data message;Target data message is sent to identified load-balancing device;
Load-balancing device, the target data message sent for desampler;It is deposited in the local of load-balancing device
In the session of storage, the corresponding session of target data message is searched;If searching failure, target data message is sent to exchange
Machine;
Interchanger is also used to receive the target data report that identified load-balancing device is sent after searching conversation failure
Text, and target data message is sent to centralized session synchronization equipment;
Centralized session synchronization equipment, it is same according to centralized session for the target data message that desampler is sent
The session being locally stored for walking equipment, is sent to application server cluster for target data message, wherein centralized session synchronization is set
The standby session being locally stored are as follows: from the session of each load-balancing device synchronization gain in above system.
The embodiment of the invention discloses a kind of electronic equipment, which is that the load balancing in system for cloud computing is set
Standby, system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, and load-balancing device includes: place
Manage device and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, is realized above-mentioned applied to negative in system for cloud computing
Carry the method and step that the message of equalizing equipment is sent.
The embodiment of the invention also discloses a kind of computer readable storage medium, which is cloud meter
The storage medium of the load-balancing device in network is calculated, system for cloud computing includes: interchanger, load-balancing device and centralized meeting
Synchronizer is talked about, is stored with computer program in computer readable storage medium, it is real when which is executed by processor
The method and step that the existing above-mentioned message applied to the load-balancing device in system for cloud computing is sent.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the load-balancing device in system for cloud computing.
The embodiment of the invention also provides a kind of computer programs, when run on a computer, so that computer is held
The above-mentioned file transmitting method applied to the load-balancing device in system for cloud computing of row.
The embodiment of the invention discloses a kind of electronic equipment, which is that the centralized session in system for cloud computing is same
Equipment is walked, system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, centralized session synchronization
Equipment includes: processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the above-mentioned collection applied in system for cloud computing
The method and step that the message of Chinese style session synchronization equipment is sent.
The embodiment of the invention also discloses a kind of computer readable storage medium, which is cloud
Calculate network in centralized session synchronization equipment storage medium, system for cloud computing include: interchanger, load-balancing device and
Centralized session synchronization equipment is stored with computer program in computer readable storage medium, and the computer program is by processor
The method and step that the above-mentioned message applied to the centralized session synchronization equipment in system for cloud computing is sent is realized when execution.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the centralized session synchronization equipment in system for cloud computing.
The embodiment of the invention also provides a kind of computer programs, when run on a computer, so that computer is held
The above-mentioned file transmitting method applied to the centralized session synchronization equipment in system for cloud computing of row.
The embodiment of the invention discloses a kind of electronic equipment, which is the interchanger in system for cloud computing, cloud meter
Calculating network includes: interchanger, load-balancing device and centralized session synchronization equipment, and interchanger includes: processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the above-mentioned friendship applied in system for cloud computing
The method and step that the message changed planes is sent.
The embodiment of the invention also discloses a kind of computer readable storage medium, which is cloud
The storage medium of the interchanger in network is calculated, system for cloud computing includes: that interchanger, load-balancing device and centralized session are same
Equipment is walked, is stored with computer program in computer readable storage medium, is realized when which is executed by processor
State the method and step that the message for the interchanger being applied in system for cloud computing is sent.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the interchanger in system for cloud computing.
The embodiment of the invention also provides a kind of computer programs, when run on a computer, so that computer is held
The above-mentioned file transmitting method applied to the interchanger in system for cloud computing of row.
File transmitting method provided in an embodiment of the present invention, system, electronic equipment, storage medium, includes instruction at device
In computer program product and computer program, the load-balancing device in system for cloud computing receives the number of targets that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by number of targets
It is sent to interchanger according to message, target data message is sent to centralized session synchronization equipment by interchanger, by centralized meeting
It talks about synchronizer and target data message is sent to application server cluster.As it can be seen that in scheme provided in an embodiment of the present invention, load
When the corresponding session of target data message is locally not present in equalizing equipment, target data report is realized by centralized session synchronization equipment
The transmission of text, avoids the load-balancing device in system for cloud computing from being required to the session of all load-balancing devices in storage cluster
Cpu resource caused by information occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entire
Cluster forwards the ability of customer flow, and interchanger only needs to realize session synchronization with unicast feature.Certainly, implement this
Any product or method of invention must be not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 a is the first flow diagram of file transmitting method provided in an embodiment of the present invention;
When Fig. 1 b is that load-balancing device cluster is without failure, interchanger is according to equivalent route-hash algorithm to target
The schematic diagram of data message progress route assignment;
When Fig. 1 c is that load-balancing device cluster breaks down, interchanger is according to equivalent route-hash algorithm to number of targets
The schematic diagram of route assignment is re-started according to message;
Fig. 2 is second of flow diagram of file transmitting method provided in an embodiment of the present invention;
Fig. 3 is the third flow diagram of file transmitting method provided in an embodiment of the present invention;
Fig. 4 a is the 4th kind of flow diagram of file transmitting method provided in an embodiment of the present invention;
Fig. 4 b is the 5th kind of flow diagram of file transmitting method provided in an embodiment of the present invention;
Fig. 4 c is the 6th kind of flow diagram of file transmitting method provided in an embodiment of the present invention;
Fig. 5 is the first structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 6 is second of structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 7 is the third structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 8 a is the 4th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 8 b is the 5th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 8 c is the 6th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention;
Fig. 9 a is a kind of structural schematic diagram of transmitting system provided in an embodiment of the present invention;
Target data message is sent to application server cluster for transmitting system provided in an embodiment of the present invention by Fig. 9 b
Flow diagram;
Fig. 9 c is in transmitting system provided in an embodiment of the present invention, and load-balancing device passes through interchanger to centralization
Session synchronization equipment sends the flow diagram of control message;
Figure 10 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of another electronic equipment provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The load balancing that a kind of file transmitting method provided in an embodiment of the present invention can be applied in system for cloud computing is set
Standby or interchanger, system for cloud computing may include: interchanger, load-balancing device and centralized session synchronization equipment.Wherein, it bears
Cluster mode, the i.e. quantity at least two of load-balancing device can be deployed as in system for cloud computing by carrying equalizing equipment.
The embodiment of the present invention gives the side that the data message when quantity of centralized session synchronization equipment is one is sent
Method step.
In a kind of implementation of the application, in order to improve the data message forwarding ability of load-balancing device cluster, and
Extend the data message transmitting capacity of centralized session synchronization equipment, the quantity of centralized session synchronization equipment can be it is multiple,
Correspondingly, the Internet protocol of each centralized session synchronization equipment can be configured in every load-balancing device
Address (Internet Protocol, IP), in order to bear in a centralized session synchronization device upgrade or failure
Carrying equalizing equipment can choose other centralized session synchronization equipment to send datagram or to its simultaneous session.
In the embodiment of the present invention, interchanger can be replaced by router.
In the embodiment of the present invention, load-balancing device can be four-layer load-equalizing equipment or seven layers of load-balancing device.
Wherein, the work of four-layer load-equalizing equipment is in open system interconnection (Open System Interconnection, OSI) mould
The 4th layer (transport layer) of type is forwarded data message by the destination address and port of analyzing data message.Seven layers negative
Equalizing equipment work is carried in the layer 7 (application layer) of osi model, destination address and port in addition to analysis data message are also divided
The application layer messages such as the uniform resource locator (Uniform Resource Locator, URL) of data message are analysed to datagram
Text is forwarded.
In the embodiment of the present invention, load-balancing device locally be can store: be established between client and application server cluster
Session.
In the embodiment of the present invention, centralized session synchronization equipment locally be can store: from each in above-mentioned system for cloud computing
The session of a load-balancing device synchronization gain.
In the embodiment of the present invention, centralized session synchronization equipment may include multiple CPU cores, can choose wherein any one
A CPU core is as host CPU core;Centralized session synchronization equipment can also include memory.
In the embodiment of the present invention, needing proof load equalizing equipment to centralized session synchronization equipment is that routing is reachable.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 a is the first flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the load-balancing device in network, comprising the following steps:
S101, the target data message that desampler is sent.
In system for cloud computing, when client is needed to application server pocket transmission target data message, first by mesh
Mark data message is sent to interchanger, carries out route assignment to target data message by interchanger, i.e., is determined and be used for by interchanger
The load-balancing device of target data message is forwarded, then target data message is sent to identified load balancing by interchanger
Equipment, the target data message of identified load-balancing device desampler transmission are simultaneously forwarded to application server cluster.Its
In, it may include multiple application servers that application server cluster, which is used to client and provides the server zone of application service,.
It is understood that identified load-balancing device is certain in multiple load-balancing devices in system for cloud computing
One load-balancing device.
It, can be according to preset equivalent route-Hash after interchanger receives target data message in the present embodiment
(Equal-CostMultipathRouting hash, ECMP-hash) algorithm carries out route assignment to target data message, i.e.,
It can be determined in multiple load-balancing devices in system for cloud computing for forwarding target according to preset ECMP-hash algorithm
The load-balancing device of data message.Certainly, the application is only illustrated for above-mentioned, and interchanger is to target data message
The method for carrying out route assignment is not limited to this.
S102 searches number of targets in the session being locally stored for having received the load-balancing device of target data message
According to the corresponding session of message.
In the present embodiment, load-balancing device is generally transmission control protocol (Transmission in the agreement of transport layer
Control Protocol, TCP), thus be to forward statefully when load-balancing device forwarding target data message, that is, it loads
Equalizing equipment is to be forwarded based on session corresponding to target data message to target data message.
It is understood that being received if interchanger receives the target data message of client transmission in interchanger
Before the target data message sent to client, built by three-way handshake signal between client and application server cluster
The corresponding session of target data message is stood.
Specifically, above-mentioned load-balancing device forwarded produced when establishing the session for the session established
Three-way handshake signal in synchronization (synchronous, SYN) packet, then load-balancing device can establish session complete when
It carves, the session of above-mentioned foundation is locally stored in load-balancing device, be then based on stored session and turn to application server cluster
Send out target data message.For example, load-balancing device can load-balancing device be locally stored above-mentioned foundation session five
Tuple information.Wherein, the five-tuple information of session are as follows: the source IP address of session, source port, purpose IP address, destination port with
And transport layer protocol type.It will be appreciated by persons skilled in the art that a target data message corresponds to a unique meeting
Words.
In the present embodiment, target data message may include the five-tuple information of its corresponding session.Thus, load balancing
After equipment receives the target data message of interchanger transmission, the five-tuple information that target data message is included can be read,
According to the five-tuple information, in the session that load-balancing device is locally stored, five-tuple information and target data message are searched
The identical session of five-tuple information for being included.Certainly, the application is only illustrated for above-mentioned, and load-balancing device exists
The method that the corresponding session of target data message is searched in the session that load-balancing device is locally stored is not limited to this.
S103, if do not searched in the session being locally stored for having received the load-balancing device of target data message
To the corresponding session of target data message, target data message is sent to interchanger, so that interchanger is by target data message
It is sent to centralized session synchronization equipment, so that sheet of the centralized session synchronization equipment according to centralized session synchronization equipment
The session of ground storage, is sent to application server cluster for target data message.
In practical application, multiple load-balancing devices in system for cloud computing constitute load-balancing device cluster, at this
In cluster, one load-balancing device of each node on behalf, when the interstitial content of load-balancing device cluster changes,
For example some or certain several nodes break downs or number of nodes increase, accordingly, interchanger detects the quantity of next-hop
It decreases or increases, then exchange opportunity is according to preset ECMP-hash algorithm or by other methods to the data message received
Route assignment is re-started, the path of most of data message is caused to change.
Further, data message is sent to by interchanger route assignment is re-started to it after identified load balancing
After equipment, identified load-balancing device very likely searches meeting corresponding less than data message in the session being locally stored
Words, so as to cause to data message retransmission failure.
For example, as shown in Figure 1 b, it is assumed that have 4 load-balancing devices that can be worked normally, mesh in system for cloud computing
Mark data message 1 to the corresponding session of target data message 4 is respectively session 1 to session 4, and load-balancing device 1 is equal to load
Weighing apparatus equipment 4 is stored with session 1 to session 4 respectively.After interchanger is sequentially received target data message 1 to target data message 4,
Route assignment is carried out to target data message 1 to target data message 4 according to preset ECMP-hash algorithm, route assignment
As a result are as follows: forward target data message 1 to target data message 4 respectively by load-balancing device 1 to load-balancing device 4.
As illustrated in figure 1 c, it if the interstitial content of load-balancing device cluster changes, is set with some load balancing
For standby delay machine, such as 1 delay machine of load-balancing device, at this point, interchanger detects that the quantity of next-hop reduces 1, then interchanger root
Route assignment is re-started to the target data message 1 received to target data message 4 according to preset ECMP-hash algorithm,
Assuming that the result of route assignment are as follows: target data message 1 to 3 is forwarded by load-balancing device 2 to load-balancing device 4 respectively,
Target data message 4 is forwarded by load-balancing device 2.Then load-balancing device 2 to load-balancing device 4 cannot be respective
The corresponding session of target data message to be forwarded is found in the session being locally stored, so as to cause to target data message
Retransmission failure.
When load-balancing device does not find target data message pair in the session of load-balancing device being locally stored
When the session answered, and since interchanger does not store target data message, load-balancing device can be sent out target data message
It send to interchanger, so that the target data message received is sent to centralized session synchronization equipment by interchanger.
Specifically, in order to mark different marks in the different levels of osi model to target data message, load balancing is set
It is standby to be packaged target data message, and the target data message after encapsulation is sent to interchanger, so that interchanger
Target data message after the encapsulation received is sent to centralized session synchronization equipment.
For example, target data message can be encapsulated as virtual expansible local area network (Virtual by load-balancing device
Extensible Local Area Network, vxlan) format.Interchanger receives the packed of load-balancing device transmission
After the target data message of vxlan format, decapsulation or dissection process are not carried out to the target data message after the encapsulation,
But the target data message for being encapsulated as vxlan format is directly sent to centralized session synchronization equipment.Certainly, the application
It is only illustrated for above-mentioned, load-balancing device is not limited to this packaging method of target data message.
In the present embodiment, the session of centralized session synchronization equipment being locally stored are as follows: from each in system for cloud computing
The session of load-balancing device synchronization gain.It should be noted that can be realized using the prior art from each of system for cloud computing
A load-balancing device is to centralized session synchronization equipment simultaneous session.
As a preferred embodiment of the present invention, centralized session synchronization equipment is according to centralized session synchronization equipment
Target data message is sent to application server cluster by the session being locally stored, and may include step S103a-S103c:
S103a, the host CPU core of centralized session synchronization equipment, from the meeting of centralized session synchronization equipment being locally stored
In words, corresponding first session of target data message is determined.
Specifically, if centralized session synchronization equipment receives the target data message after the encapsulation that interchanger is sent,
Firstly, host CPU core can carry out decapsulation processing to the target data message after the encapsulation, then, host CPU core can read mesh
The five-tuple information for the corresponding session that mark data message is included is set according to the five-tuple information in centralized session synchronization
The meeting identical with the five-tuple information that target data message is included of five-tuple information is determined in the standby session being locally stored
Words.
S103b, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the first session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
The host CPU core of centralized session synchronization equipment is determined from the session of centralized session synchronization equipment being locally stored
After corresponding first session of target data message, host CPU core can be carried out according to attribute of the symmetrical hash algorithm to the first session
Hash calculation obtains the Hash characteristic value of the first session;According to the Hash characteristic value of the first session, advised according to preset selection
Then, to select the first session from other CPU cores in centralized session synchronization equipment local other than host CPU core corresponding
Target CPU core.
It should be noted that target CPU core is other other than host CPU core in centralized session synchronization equipment local
Some CPU core in CPU core.The corresponding unique target CPU core of first dialogue.Preset selection rule can be according to reality
Border needs to preset, and can also rule of thumb set, the present invention is not intended to limit this.
S103c, the target CPU core of the host CPU core scheduling steps S103b of centralized session synchronization equipment, so that step
The target CPU core of S103b is sent to application server cluster according to the first session, by target data message.
The host CPU core of centralized session synchronization equipment is determining corresponding first session of target data message, and selects
Out after the corresponding target CPU core of the first session, the target CPU core can be dispatched and sent target data message according to the first session
To application server cluster.
In this preferred embodiment, the host CPU core of centralized session synchronization equipment first determines that target data message is corresponding
First session, reselection goes out the corresponding target CPU core of the first session, and the first session corresponds to a unique target CPU core.This
Sample can be realized: as long as soon as the corresponding session of data message is the first session, it will by the corresponding target CPU core of the first session
This data message is sent to application server cluster, that is to say, that and corresponding session is the different data message of same session,
Application server cluster is sent to by the same CPU core, to realize to data message without lockization processing, improves concentration
The session management ability of formula session synchronization equipment and the transmitting efficiency of number message.
It,, can be by the mesh of step S103b after step S103c in a kind of implementation based on above preferred embodiment
Mark CPU core is sent completely the moment for what the overtime initial time of the first session was updated to target data message.
When it is possible to further be originated by the target CPU core of step S103b according to the time-out of updated first session
It carves, whether the session timeout duration of the first session of detection reaches preset duration, if the session timeout duration of the first session reaches pre-
If duration, the first session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of one session, the overtime initial time of when time-out of the first session a length of first session to current time when
It is long.If the session timeout duration of the first session reaches preset duration, then it is assumed that the corresponding TCP connection of the first session has disconnected,
Target CPU core can destroy the first session.
In file transmitting method provided in an embodiment of the present invention, load-balancing device receives the target data that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by target data
Message is sent to interchanger, target data message is sent to centralized session synchronization equipment by interchanger, by centralized session
Target data message is sent to application server cluster by synchronizer.As it can be seen that load is equal in scheme provided in an embodiment of the present invention
When the corresponding session of target data message is locally not present in weighing apparatus equipment, target data message is realized by centralized session synchronization equipment
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow.
Fig. 2 is second of flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the load-balancing device in network, comprising the following steps:
S201, the target data message that desampler is sent.
S202 searches number of targets in the session being locally stored for having received the load-balancing device of target data message
According to the corresponding session of message.
S203, if do not searched in the session being locally stored for having received the load-balancing device of target data message
To the corresponding session of target data message, target data message is sent to interchanger, so that interchanger is by target data message
It is sent to centralized session synchronization equipment, so that sheet of the centralized session synchronization equipment according to centralized session synchronization equipment
The session of ground storage, is sent to application server cluster for target data message.
In the present embodiment, above-mentioned steps S201-S203 can be complete with the step S101-S103 of embodiment described in Fig. 1 respectively
It is exactly the same, it is not repeated herein.
S204 sends control message to centralized session synchronization equipment by interchanger, so that centralized session synchronization
Equipment carries out synchronizing information according to control message.
In the present embodiment, control message is the message for carrying out synchronizing information.Specifically, control message can be and include
One session, and make centralized session synchronization equipment according to the message of session progress synchronizing information.Controlling message can also be with
It is a state comprising a session, and makes centralized session synchronization equipment according to the report of state progress synchronizing information
Text.
As a preferred embodiment of the present invention, control report is sent to centralized session synchronization equipment by interchanger
Text may comprise steps of S204a and S204b:
S204a determines that the session for meeting preset synchronous condition in session that load-balancing device is locally stored is to same
Walk session.
As described in step S202, session can establish between client and application server, then load-balancing device can be with
The session of above-mentioned foundation is locally stored in load-balancing device.For example, load-balancing device can be in load-balancing device local
Store the five-tuple information of the session of above-mentioned foundation.It is understood that according to the needs of client, client and application service
Multiple sessions can be established between device group at different times, and then each load-balancing device also can store multiple built
Vertical session.
It will be appreciated by persons skilled in the art that in the session of load-balancing device being locally stored, the duration
The less session of data message number that is shorter and being forwarded can be classified as short connection session.Wherein, the duration of session
Refer to that the data message number that session is forwarded refers to be continued in session from the duration for establishing session completion moment to current time
In time, from storing the load-balancing device of the session based on the session to the data message number of application server pocket transmission.?
In actual use, concentration is synchronized to by each load balancing in system for cloud computing to mitigate centralized session synchronization equipment processing
The pressure of the session of formula session synchronization equipment local, each load-balancing device can need not be by the short companies of load-balancing device local
Session synchronization is connect to centralized session synchronization equipment.Therefore, synchronous condition can be preset, is existed by each load-balancing device
The session for meeting preset synchronous condition is determined in the session that load-balancing device is locally stored, then meets preset synchronization bar
The session of part is the session that each load-balancing device needs to be synchronized to centralized session synchronization equipment.
In a kind of implementation, preset synchronous condition may include first presetting sub- synchronous condition and the second default son is same
Step condition.Wherein,
First presets sub- synchronous condition can be with are as follows: the duration of session is greater than or equal to session persistence preset value.
Second presets sub- synchronous condition can be with are as follows: the data message number forwarded by session is than or equal to data message
Forwarding number preset value.
Above-mentioned session persistence preset value and data message forwarding number preset value can be set according to actual needs,
It can rule of thumb set, the present invention is not intended to limit this.
As an example it is assumed that the session persistence preset value set is 2s, the data message forwarding number preset value of setting
It is 10.If the duration of session 1 is 5s, and the data message number that session 1 forwards is 20, then session 1 is on meeting
State the session of preset synchronous condition.If the duration of session 2 is 5s, and the data message number that session 2 forwards is 8,
Then session 2 is to be unsatisfactory for the session of above-mentioned preset synchronous condition.
Certainly, the application is only illustrated for above-mentioned, and preset synchronous condition is not limited to this.
It is understood that load-balancing device is possible to one client of storage and application server cluster at any time
Between the session established.Therefore, load-balancing device can be according to the preset scan period successively to the sheet of load-balancing device
The session of ground storage is scanned, to periodically determine that load-balancing device locally meets the session of preset synchronous condition
For session to be synchronized.In a kind of specific embodiment, load-balancing device can be set load balancing in first scan
The standby whole sessions being locally stored successively are scanned, and in non-first scan, local to load-balancing device not true
It is set to and meets the session of preset synchronous condition and be successively scanned.Certainly, the application is only illustrated for above-mentioned, is born
It carries equalizing equipment and determines the method for the session for meeting preset synchronous condition in the session being locally stored of load-balancing device simultaneously
It is without being limited thereto.
S204b sends the control message comprising session to be synchronized to centralized session synchronization equipment by interchanger.
Load-balancing device meets preset synchronous condition in determining session that load-balancing device is locally stored
After session to be synchronized, the control message comprising session to be synchronized can be sent to interchanger, include by what is received by interchanger
The control message of session to be synchronized is sent to centralized session synchronization equipment.It should be noted that a control message includes only
One session to be synchronized.
Specifically, the control message comprising session to be synchronized can be packaged by load-balancing device, and will be after encapsulation
The control message comprising session to be synchronized be sent to interchanger, by interchanger will after the encapsulation that received include meeting to be synchronized
The control message of words is sent to centralized session synchronization equipment.
For example, the control message comprising session to be synchronized can be encapsulated as vxlan format by load-balancing device.Interchanger
Receive load-balancing device transmission be encapsulated as the control message comprising session to be synchronized of vxlan format after, it is not right
The control message comprising session to be synchronized after the encapsulation carries out decapsulation or dissection process, but is directly encapsulated as this
The control message comprising session to be synchronized of vxlan format is sent to centralized session synchronization equipment.Certainly, the application only with
It is illustrated for above-mentioned, load-balancing device is not limited to this packaging method of the control message comprising session to be synchronized.
As another preferred embodiment of the invention, control report is sent to centralized session synchronization equipment by interchanger
Text may comprise steps of S204c:
Whether S204c, the state for detecting target session change;If the state of detection target session changes, lead to
Cross the control message that interchanger sends the state comprising target session to centralized session synchronization equipment.Wherein, target session are as follows:
It has been synchronized to the local session of centralized session synchronization equipment.
In the present embodiment, the state of the session in TCP connection, as shown in table 1.
Table 1
The state of target session may be any one state in above-mentioned TCP state machine, and the state of target session is all
In the form of message, load-balancing device is sent to by interchanger, thus, load-balancing device is detecting target session
State change after, can to interchanger send comprising target session change after state control message, by interchanger
The control message of state after the change comprising target session received is sent to centralized session synchronization equipment.It needs to illustrate
, one controls state after the change that message includes a unique target session.
Specifically, the control message of state after the change comprising target session can be packaged by load-balancing device,
And the control message of state after the change comprising target session after encapsulation is sent to interchanger, it will be received by interchanger
The control message of state is sent to centralized session synchronization equipment after the change comprising target session after encapsulation.
For example, the control message of state after the change comprising target session can be encapsulated as vxlan by load-balancing device
Format.Interchanger receives shape after the change comprising target session for being encapsulated as vxlan format that load-balancing device is sent
After the control message of state, not to the control message of state after the change comprising target session after the encapsulation carry out decapsulation or
Dissection process, but the control message that this is directly encapsulated as to state after the change comprising target session of vxlan format is sent
To centralized session synchronization equipment.Certainly, the application is only illustrated for above-mentioned, and load-balancing device is to including target
The packaging method of the control message of state is not limited to this after the change of session.
It should be noted that there is no stringent execution time sequencing between step S204c and step S204a-S204b.It is right
For a load-balancing device in system for cloud computing, as long as load-balancing device stores a session, and the session is
Meet the session of preset synchronous condition, so that it may send to centralized session synchronization equipment comprising the session by interchanger
Control message.As long as load-balancing device detects that the state of target session changes, so that it may by interchanger to concentration
Formula session synchronization equipment sends the control message of state after the change comprising target session.
Correspondingly, in a kind of implementation, centralized session synchronization equipment carries out synchronizing information according to control message, can be with
Including step S204d-S204f:
S204d, the host CPU core of centralized session synchronization equipment determine corresponding second session of control message.
Specifically, if centralized session synchronization equipment receives the control message after the encapsulation that interchanger is sent, firstly,
Host CPU core can carry out decapsulation processing to the control message after the encapsulation;Then,
For controlling message and being the case where step S204b controls message, host CPU core can read control message and be wrapped
The five-tuple information of the session contained is determined as controlling corresponding second session of message so that the session that message is included will be controlled;
For controlling message and being the case where step S204c controls message, host CPU core can read the five of target session
Tuple information, so that target session is determined as to control corresponding second session of message.
S204e, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the second session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
After the host CPU core of centralized session synchronization equipment has determined corresponding second session of control message, host CPU core can be with
Hash calculation is carried out according to attribute of the symmetrical hash algorithm to step the second session, obtains the Hash characteristic value of the second session;Root
According to the Hash characteristic value of the second session, according to preset selection rule, in addition to host CPU from centralized session synchronization equipment local
The corresponding target CPU core of the second session is selected in other CPU cores other than core.
It should be noted that target CPU core is other other than host CPU core in centralized session synchronization equipment local
Some CPU core in CPU core.The corresponding unique target CPU core of second dialogue.
S204f, the target CPU core of the host CPU core scheduling steps S204e of centralized session synchronization equipment is according to the second session
Carry out synchronizing information.
For the case where the second session includes session by step S204b control message, centralized session synchronization is set
After standby host CPU core selects target CPU core, target CPU core can be initialized the second session.Specifically, target CPU
Core can distribute memory space for the second session, and the memory of dispatching concentration formula session synchronization equipment local stores the second meeting
Words, for example, target CPU core can store the five-tuple letter of the second session with the memory of dispatching concentration formula session synchronization equipment local
Breath.
For the case where the second session is step S204c target session, the host CPU core of centralized session synchronization equipment
After selecting target CPU core, target CPU core can store target session with the memory of dispatching concentration formula session synchronization equipment local
Change after state.
It, can be by the target CPU core of step S204e by the second session after step S204f in a kind of implementation
Overtime initial time is updated to synchronizing information and completes the moment.The second session is executed at destruction to which target CPU core can wait
Reason.
When it is possible to further be originated by the target CPU core of step S204e according to the time-out of updated second session
It carves, whether the session timeout duration of the second session of detection reaches preset duration, if the session timeout duration of the second session reaches pre-
If duration, the second session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of two sessions, the overtime initial time of when time-out of the second session a length of second session to current time when
It is long.If the session timeout duration of the second session reaches preset duration, then it is assumed that the corresponding TCP connection of the second session has disconnected,
Target CPU core can destroy the second session.
It should be noted that there is no stringent execution time sequencing between step S204 and step S201-S203.For cloud
It calculates for a load-balancing device in network, as long as not found in the session of load-balancing device being locally stored
The corresponding session of target data message received, so that it may the target data message is sent to interchanger, so that interchanger
It is sent to centralized session synchronization equipment.As long as load-balancing device is needed to centralized session synchronization equipment synchronizing information,
The control message for carrying out synchronizing information can be sent to centralized session synchronization equipment by interchanger.Specifically, in conjunction with
For preferred embodiment given by step S204, as long as load-balancing device stores a session, and the session is to meet in advance
If synchronous condition session, so that it may by interchanger to centralized session synchronization equipment send include the session control report
Text.Equally, as long as load-balancing device detects that the state of target session changes, so that it may by interchanger to centralization
Session synchronization equipment sends the control message of state after the change comprising target session.
In file transmitting method provided in an embodiment of the present invention, load-balancing device receives the target data that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by target data
Message is sent to interchanger, target data message is sent to centralized session synchronization equipment by interchanger, by centralized session
Target data message is sent to application server cluster by synchronizer.As it can be seen that load is equal in scheme provided in an embodiment of the present invention
When the corresponding session of target data message is locally not present in weighing apparatus equipment, target data message is realized by centralized session synchronization equipment
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow, also, in centralized session synchronization equipment, target data message is sent, and to target
The corresponding session of data message carries out synchronizing information, realizes on an identical CPU core, to realize without lockization place
Reason improves centralized performance session synchronization management session and sent datagram.
Fig. 3 is the third flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the interchanger in network, comprising the following steps:
S301 receives target data message.
In system for cloud computing, when client is needed to application server pocket transmission target data message, can first by
Target data message is sent to interchanger, and interchanger receives the target data message.
S302 carries out route assignment to target data message, determines for forwarding the load balancing of target data message to set
It is standby, and target data message is sent to identified load-balancing device, so that identified load-balancing device, in institute
In the session of determining load-balancing device being locally stored, the corresponding session of target data message is searched.
Interchanger carries out route assignment to target data message, and as interchanger is determined for forwarding target data message
Load-balancing device.
It is understood that identified load-balancing device is certain in multiple load-balancing devices in system for cloud computing
One load-balancing device.
It, can be according to preset ECMP-hash algorithm to mesh after interchanger receives target data message in the present embodiment
It marks data message and carries out route assignment, it can according to multiple loads of the preset ECMP-hash algorithm in system for cloud computing
The load-balancing device for forwarding target data message is determined in equalizing equipment.Certainly, the application only for above-mentioned into
Row explanation, the method that interchanger carries out route assignment to target data message are not limited to this.
In the present embodiment, the sheet of identified load-balancing device in step S302 in identified load-balancing device
The corresponding session of target data message is searched in the session of ground storage, it can be with the complete phase of step S102 of embodiment described in Fig. 1
Together, it is not repeated herein.
S303 receives the target data message that identified load-balancing device is sent after searching conversation failure, and will
Target data message is sent to centralized session synchronization equipment, so that centralized session synchronization equipment is same according to centralized session
The session being locally stored for walking equipment, is sent to application server cluster for target data message.
Specifically, target data message can be packaged by load-balancing device, and by the target data report after encapsulation
Text is sent to interchanger, and the target data message after the encapsulation received is sent to centralized session synchronization equipment by interchanger.
For example, target data message can be encapsulated as vxlan format by load-balancing device.It is equal that interchanger receives load
Weigh equipment send the target data message for being encapsulated as vxlan format after, not to the target data message after the encapsulation into
Row decapsulation or dissection process, but the target data message for being encapsulated as vxlan format is directly sent to centralized session
Synchronizer.
In the present embodiment, the session of centralized session synchronization equipment being locally stored are as follows: from each in system for cloud computing
The session of load-balancing device synchronization gain.It should be noted that can be realized using the prior art from each of system for cloud computing
A load-balancing device is to centralized session synchronization equipment simultaneous session.
As a preferred embodiment of the present invention, centralized session synchronization equipment is according to centralized session synchronization equipment sheet
The session of ground storage, is sent to application server cluster for target data message, may include step S303a-S303c:
S303a, the host CPU core of centralized session synchronization equipment, the session being locally stored from centralized session synchronization equipment
In, determine corresponding first session of target data message.
S303b, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the first session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
S303c, the target CPU core of the host CPU core scheduling steps S303b of centralized session synchronization equipment, so that step
The target CPU core of S303b is sent to application server cluster according to the first session, by target data message.
In this preferred embodiment, above-mentioned steps S303a-S303c can be identical with step S103a-S103c respectively,
It is not repeated herein.
It,, can be by the mesh of step S303b after step S303c in a kind of implementation based on above preferred embodiment
Mark CPU core is sent completely the moment for what the overtime initial time of the first session was updated to target data message.
When it is possible to further be originated by the target CPU core of step S303b according to the time-out of updated first session
It carves, whether the session timeout duration of the first session of detection reaches preset duration, if the session timeout duration of the first session reaches pre-
If duration, the first session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of one session, the overtime initial time of when time-out of the first session a length of first session to current time when
It is long.If the session timeout duration of the first session reaches preset duration, then it is assumed that the corresponding TCP connection of the first session has disconnected,
Target CPU core can destroy the first session.
In file transmitting method provided in an embodiment of the present invention, the target data message received is sent to pair by interchanger
It carries out identified load-balancing device after route assignment, and does not search locally in load-balancing device in load-balancing device
After the corresponding session of target data message, the target data message that balancing received load equipment is sent, and send it to concentration
Target data message is sent to application server cluster by centralized session synchronization equipment by formula session synchronization equipment.As it can be seen that this hair
In the scheme that bright embodiment provides, can when the corresponding session of target data message is locally not present in load-balancing device, by
Centralized session synchronization equipment realizes the transmission of target data message, and the load-balancing device in system for cloud computing is avoided to be required to
Cpu resource caused by the session information of all load-balancing devices occupies excessive situation in storage cluster, to improve separate unit
The ability of the ability of load-balancing device session management and entire cluster forwarding customer flow.
Fig. 4 a is the 4th kind of flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the interchanger in network, comprising the following steps:
S401 receives target data message.
S402 carries out route assignment to target data message, determines for forwarding the load balancing of target data message to set
It is standby, and target data message is sent to identified load-balancing device, so that identified load-balancing device, in institute
In the session of determining load-balancing device being locally stored, the corresponding session of target data message is searched.
S403 receives the target data message that identified load-balancing device is sent after searching conversation failure, and will
Target data message is sent to centralized session synchronization equipment, so that centralized session synchronization equipment is same according to centralized session
The session being locally stored for walking equipment, is sent to application server cluster for target data message.
In the present embodiment, above-mentioned steps S401-S403 can be complete with the step S301-S303 of embodiment described in Fig. 3 respectively
It is exactly the same, it is not repeated herein.
S404, the control message that balancing received load equipment is sent, and control message is sent to centralized session synchronization
Equipment, so that centralized session synchronization equipment carries out synchronizing information according to control message.
In the present embodiment, control message is the message for carrying out synchronizing information.Specifically, control message can be and include
One session, and make centralized session synchronization equipment according to the message of session progress synchronizing information.Controlling message can also be with
It is a state comprising a session, and makes centralized session synchronization equipment according to the report of state progress synchronizing information
Text.
It is reported as the control message that a preferred embodiment of the present invention, balancing received load equipment are sent, and by control
Text is sent to centralized session synchronization equipment, may comprise steps of S404a:
S404a, balancing received load equipment determine load-balancing device locally meet preset synchronous condition to
After simultaneous session, the control message comprising session to be synchronized of transmission, and the control message comprising session to be synchronized is sent to
Centralized session synchronization equipment.
As described in step S402, session can establish between client and application server, then load-balancing device can be with
The session of above-mentioned foundation is locally stored in load-balancing device.For example, load-balancing device can be in load-balancing device local
Store the five-tuple information of the session of above-mentioned foundation.It is understood that according to the needs of client, client and application service
Multiple sessions can be established between device group at different times, and then each load-balancing device also can store multiple built
Vertical session.
It will be appreciated by persons skilled in the art that in the session of load-balancing device being locally stored, the duration
The less session of data message number that is shorter and being forwarded can be classified as short connection session.Wherein, the duration of session
Refer to that the data message number that session is forwarded refers to be continued in session from the duration for establishing session completion moment to current time
In time, from storing the load-balancing device of the session based on the session to the data message number of application server pocket transmission.?
In actual use, concentration is synchronized to by each load balancing in system for cloud computing to mitigate centralized session synchronization equipment processing
The pressure of the session of formula session synchronization equipment local, each load-balancing device can need not be by the short companies of load-balancing device local
Session synchronization is connect to centralized session synchronization equipment.Therefore, synchronous condition can be preset, is existed by each load-balancing device
The session for meeting preset synchronous condition is determined in the session that load-balancing device is locally stored, then meets preset synchronization bar
The session of part is the session that each load-balancing device needs to be synchronized to centralized session synchronization equipment.
In a kind of implementation, preset synchronous condition may include first presetting sub- synchronous condition and the second default son is same
Step condition.Wherein,
First presets sub- synchronous condition can be with are as follows: the duration of session is greater than or equal to session persistence preset value.
Second presets sub- synchronous condition can be with are as follows: the data message number forwarded by session is than or equal to data message
Forwarding number preset value.
Above-mentioned session persistence preset value and data message forwarding number preset value can be set according to actual needs,
It can rule of thumb set, the present invention is not intended to limit this.
Certainly, the application is only illustrated for above-mentioned, and preset synchronous condition is not limited to this.
Load-balancing device can send the control message comprising session to be synchronized to interchanger, and it is equal that interchanger receives load
The control message comprising session to be synchronized that the equipment that weighs is sent.It should be noted that a control message includes unique one
Session to be synchronized.
Specifically, the control message comprising session to be synchronized can be packaged by load-balancing device, and will be after encapsulation
The control message comprising session to be synchronized be sent to interchanger, interchanger will include session to be synchronized after the encapsulation that received
Control message be sent to centralized session synchronization equipment.
For example, the control message comprising session to be synchronized can be encapsulated as vxlan format by load-balancing device.Interchanger
Receive load-balancing device transmission be encapsulated as the control message comprising session to be synchronized of vxlan format after, it is not right
The control message comprising session to be synchronized after the encapsulation carries out decapsulation or dissection process, but is directly encapsulated as this
The control message comprising session to be synchronized of vxlan format is sent to centralized session synchronization equipment.
As the control message that another preferred embodiment of the invention, balancing received load equipment are sent, and will control
Message is sent to centralized session synchronization equipment, may comprise steps of S404b:
S404b, for balancing received load equipment after the state for detecting target session changes, transmission includes target
The control message of the state of session, and the control message of the state comprising target session is sent to centralized session synchronization and is set
It is standby, wherein target session are as follows: to be synchronized to the local session of centralized session synchronization equipment.
In the present embodiment, the state of the session in TCP connection, as shown in table 1.
For load-balancing device after the state for detecting target session changes, can send to interchanger includes target
The control message of state after the change of session, interchanger is by the control message of state after the change comprising target session received
It is sent to centralized session synchronization equipment.It should be noted that a control message includes changing for a unique target session
State after change.
Specifically, the control message of state after the change comprising target session can be packaged by load-balancing device,
And the control message of state after the change comprising target session after encapsulation is sent to interchanger, the envelope that interchanger will receive
The control message of state is sent to centralized session synchronization equipment after the change comprising target session after dress.
For example, the control message of state after the change comprising target session can be encapsulated as vxlan by load-balancing device
Format.Interchanger receives shape after the change comprising target session for being encapsulated as vxlan format that load-balancing device is sent
After the control message of state, not to the control message of state after the change comprising target session after the encapsulation carry out decapsulation or
Dissection process, but the control message that this is directly encapsulated as to state after the change comprising target session of vxlan format is sent
To centralized session synchronization equipment.
It should be noted that there is no stringent execution time sequencing between step S404b and step S404a.For cloud meter
It calculates for the interchanger in network, as long as receiving load-balancing device is determining that it is preset that load-balancing device locally meets
After the session to be synchronized of synchronous condition, the control message comprising session to be synchronized of transmission, so that it may send the control message
To centralized session synchronization equipment.As long as receiving load-balancing device after the state for detecting target session changes,
The control message of state after the change comprising target session sent, so that it may it is same that the control message is sent to centralized session
Walk equipment.
Correspondingly, in a kind of implementation, centralized session synchronization equipment carries out synchronizing information according to control message, can be with
Including step S404c-S404e:
S404c, the host CPU core of centralized session synchronization equipment determine corresponding second session of control message.
Specifically, if centralized session synchronization equipment receives the control message after the encapsulation that interchanger is sent, firstly,
Host CPU core can carry out decapsulation processing to the control message after the encapsulation;Then,
For controlling message and being the case where step S404a controls message, host CPU core can read control message and be wrapped
The five-tuple information of the session contained is determined as controlling corresponding second session of message so that the session that message is included will be controlled;
For controlling message and being the case where step S404b controls message, host CPU core can read the five of target session
Tuple information, so that target session is determined as to control corresponding second session of message.
S404d, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the second session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
After the host CPU core of centralized session synchronization equipment has determined corresponding second session of control message, host CPU core can be with
Hash calculation is carried out according to attribute of the symmetrical hash algorithm to step the second session, obtains the Hash characteristic value of the second session;Root
According to the Hash characteristic value of the second session, according to preset selection rule, in addition to host CPU from centralized session synchronization equipment local
The corresponding target CPU core of the second session is selected in other CPU cores other than core.
It should be noted that target CPU core is other other than host CPU core in centralized session synchronization equipment local
Some CPU core in CPU core.The corresponding unique target CPU core of second dialogue.
S404e, the target CPU core of the host CPU core scheduling steps S404d of centralized session synchronization equipment is according to the second session
Carry out synchronizing information.
For the case where the second session includes session by step S404a control message, centralized session synchronization is set
After standby host CPU core selects target CPU core, target CPU core can be initialized the second session.Specifically, target CPU
Core can distribute memory space for the second session, and the memory of dispatching concentration formula session synchronization equipment local stores the second meeting
Words, for example, target CPU core can store the five-tuple letter of the second session with the memory of dispatching concentration formula session synchronization equipment local
Breath.
For the case where the second session is step S404b target session, the host CPU core of centralized session synchronization equipment
After selecting target CPU core, target CPU core can store target session with the memory of dispatching concentration formula session synchronization equipment local
Change after state.
It, can be by the target CPU core of step S404d by the second session after step S404e in a kind of implementation
Overtime initial time is updated to synchronizing information and completes the moment.The second session is executed at destruction to which target CPU core can wait
Reason.
When it is possible to further be originated by the target CPU core of step S404d according to the time-out of updated second session
It carves, whether the session timeout duration of the second session of detection reaches preset duration, if the session timeout duration of the second session reaches pre-
If duration, the second session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of two sessions, the overtime initial time of when time-out of the second session a length of second session to current time when
It is long.If the session timeout duration of the second session reaches preset duration, then it is assumed that the corresponding TCP connection of the second session has disconnected,
Target CPU core can destroy the second session.
It should be noted that there is no stringent execution time sequencing between step S404 and step S401-S403.For cloud
It calculates for an interchanger in network, as long as receiving the number of targets that load-balancing device is sent after searching conversation failure
According to message, so that it may which the target data message is sent to centralized session synchronization equipment.As long as receiving load-balancing device
When needing to centralized session synchronization equipment synchronizing information, transmission for carrying out the control message of synchronizing information, so that it may
The control message is sent to centralized session synchronization equipment.Specifically, the preferred embodiment in conjunction with given by step S404 is come
It says, as long as receiving load-balancing device is determining that load-balancing device locally meets the meeting to be synchronized of preset synchronous condition
After words, the control message comprising session to be synchronized of transmission, so that it may the control message is sent to centralized session synchronization and set
It is standby.As long as receiving load-balancing device after the state for detecting target session changes, transmission includes target session
Change after state control message, so that it may the control message is sent to centralized session synchronization equipment.
In file transmitting method provided in an embodiment of the present invention, the target data message received is sent to pair by interchanger
It carries out identified load-balancing device after route assignment, and does not search locally in load-balancing device in load-balancing device
After the corresponding session of target data message, the target data message that balancing received load equipment is sent, and send it to concentration
Target data message is sent to application server cluster by centralized session synchronization equipment by formula session synchronization equipment.As it can be seen that this hair
In the scheme that bright embodiment provides, can when the corresponding session of target data message is locally not present in load-balancing device, by
Centralized session synchronization equipment realizes the transmission of target data message, and the load-balancing device in system for cloud computing is avoided to be required to
Cpu resource caused by the session information of all load-balancing devices occupies excessive situation in storage cluster, to improve separate unit
The ability of the ability of load-balancing device session management and entire cluster forwarding customer flow.
Fig. 4 b is the 5th kind of flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the centralized session synchronization equipment in network, comprising the following steps:
S511, the target data message that desampler is sent.
In system for cloud computing, when client is needed to application server pocket transmission target data message, first by mesh
Mark data message is sent to interchanger, carries out route assignment to target data message by interchanger, i.e., is determined and be used for by interchanger
The load-balancing device of target data message is forwarded, then target data message is sent to identified load balancing by interchanger
Equipment.The load-balancing device for having received target data message is searched target data message in the session that it is locally stored and is corresponded to
Session send target data message to interchanger, which is sent to collection again by interchanger if do not searched
Chinese style session synchronization equipment.
It is understood that identified load-balancing device is certain in multiple load-balancing devices in system for cloud computing
One load-balancing device.
Target data message is sent to application according to the session of centralized session synchronization equipment being locally stored by S512
Server zone.
In the present embodiment, the session of centralized session synchronization equipment being locally stored are as follows: from each in system for cloud computing
The session of load-balancing device synchronization gain.It should be noted that can be realized using the prior art from each of system for cloud computing
A load-balancing device is to centralized session synchronization equipment simultaneous session.
As a preferred embodiment of the present invention, centralized session synchronization equipment is according to centralized session synchronization equipment
Target data message is sent to application server cluster, may include step S512a-S512c by the session being locally stored:
S512a, the host CPU core of centralized session synchronization equipment, from the meeting of centralized session synchronization equipment being locally stored
In words, corresponding first session of target data message is determined.
S512b, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the first session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
S512c, the target CPU core of the host CPU core scheduling steps S512b of centralized session synchronization equipment, so that step
The target CPU core of S512b is sent to application server cluster according to the first session, by target data message.
In this preferred embodiment, above-mentioned steps S512a-S512c can respectively with the step S103a- of embodiment described in Fig. 1
S103c is identical, is not repeated herein.
In this preferred embodiment, the host CPU core of centralized session synchronization equipment first determines that target data message is corresponding
First session, reselection goes out the corresponding target CPU core of the first session, and the first session corresponds to a unique target CPU core.This
Sample can be realized: as long as soon as the corresponding session of data message is the first session, it will by the corresponding target CPU core of the first session
This data message is sent to application server cluster, that is to say, that and corresponding session is the different data message of same session,
Application server cluster is sent to by the same CPU core, to realize to data message without lockization processing, improves concentration
The session management ability of formula session synchronization equipment and the transmitting efficiency of number message.
It,, can be by the mesh of step S512b after step S512c in a kind of implementation based on above preferred embodiment
Mark CPU core is sent completely the moment for what the overtime initial time of the first session was updated to target data message.
When it is possible to further be originated by the target CPU core of step S512b according to the time-out of updated first session
It carves, whether the session timeout duration of the first session of detection reaches preset duration, if the session timeout duration of the first session reaches pre-
If duration, the first session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of one session, the overtime initial time of when time-out of the first session a length of first session to current time when
It is long.If the session timeout duration of the first session reaches preset duration, then it is assumed that the corresponding TCP connection of the first session has disconnected,
Target CPU core can destroy the first session.
In file transmitting method provided in an embodiment of the present invention, centralized session synchronization equipment receives the mesh that exchange is sent
After marking data message, according to the session of centralized session synchronization equipment being locally stored, target data message is sent to application
Server zone.As it can be seen that it is corresponding that target data message is locally not present in load-balancing device in scheme provided in an embodiment of the present invention
Session when, by centralized session synchronization equipment realize target data message transmission, avoid the load in system for cloud computing equal
Weighing apparatus equipment is required to cpu resource caused by the session information of all load-balancing devices in storage cluster and occupies excessive situation,
To improve the ability of separate unit load-balancing device session management and the ability of entire cluster forwarding customer flow.
Fig. 4 c is the 6th kind of flow diagram of file transmitting method provided in an embodiment of the present invention, and this method is applied to cloud
Calculate the centralized session synchronization equipment in network, comprising the following steps:
S611, the target data message that desampler is sent.
Target data message is sent to application according to the session of centralized session synchronization equipment being locally stored by S612
Server zone.
In the present embodiment, above-mentioned steps S611-S612 can be complete with the step S511-S512 of embodiment described in Fig. 4 b respectively
It is exactly the same, it is not repeated herein.
S613, the control message that desampler is sent;Synchronizing information is carried out according to control message.
In the present embodiment, load-balancing device can send control message to interchanger, and interchanger can will receive
Control message is sent to centralized session synchronization equipment.The control message is the message for carrying out synchronizing information.Specifically, control
Message processed can be comprising a session, and make centralized session synchronization equipment according to the report of session progress synchronizing information
Text.Control message is also possible to a state comprising a session, and makes centralized session synchronization equipment according to the state
Carry out the message of synchronizing information.
As a preferred embodiment of the present invention, controlling message may is that load-balancing device is determining its local
After the middle session to be synchronized for meeting preset synchronous condition, the control message comprising session to be synchronized sent to interchanger (can
With identical as the control message of step S204b of embodiment described in Fig. 2).In a kind of implementation, preset synchronous condition can be with
It is identical as the preset synchronous condition of embodiment described in Fig. 2.It should be noted that control message include unique one to
Synchronous session.
As another preferred embodiment of the invention, controlling message may is that load-balancing device is detecting target
After the state of session changes, to interchanger send the state comprising target session control message (can with described in Fig. 2
The control message of the step S204c of embodiment is identical).Wherein, target session are as follows: centralized session synchronization equipment is from cloud computing
Each load-balancing device in network is synchronized to the local session of centralized session synchronization equipment.
As a preferred embodiment of the present invention, centralized session synchronization equipment is same according to control message progress information
Step, may include step S613a-S613c:
S613a, the host CPU core of centralized session synchronization equipment determine corresponding second session of control message.
S613b, the host CPU core of centralized session synchronization equipment is according to preset hash algorithm, to the attribute of the second session
Carry out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment.
S613c, the target CPU core of the host CPU core scheduling steps S613b of centralized session synchronization equipment is according to the second session
Carry out synchronizing information.
In this preferred embodiment, above-mentioned steps S613a-S613c can respectively with the step S204d- of embodiment described in Fig. 2
S204f is identical, is not repeated herein.
It, can be by the target CPU core of step S613b by the second session after step S613c in a kind of implementation
Overtime initial time is updated to synchronizing information and completes the moment.The second session is executed at destruction to which target CPU core can wait
Reason.
When it is possible to further be originated by the target CPU core of step S613b according to the time-out of updated second session
It carves, whether the session timeout duration of the second session of detection reaches preset duration, if the session timeout duration of the second session reaches pre-
If duration, the second session is destroyed.
Specifically, to save the free memory of centralized session synchronization equipment, and improve centralized session synchronization and set
The standby managerial ability to the session for being synchronized to centralized session synchronization equipment local, target CPU core can periodically detect the
The session timeout duration of two sessions, the overtime initial time of when time-out of the second session a length of second session to current time when
It is long.If the session timeout duration of the second session reaches preset duration, then it is assumed that the corresponding TCP connection of the second session has disconnected,
Target CPU core can destroy the second session.
It should be noted that there is no stringent execution time sequencing between step S613 and step S611-S612.For cloud
It calculates for the centralized session synchronization equipment in network, as long as receiving the target data message of interchanger transmission, so that it may
The target data message is sent to application server cluster.As long as receiving the control for being used to carry out synchronizing information of interchanger transmission
Message processed, so that it may which synchronizing information is carried out according to the control message.
In file transmitting method provided in an embodiment of the present invention, centralized session synchronization equipment receives the mesh that exchange is sent
After marking data message, according to the session of centralized session synchronization equipment being locally stored, target data message is sent to application
Server zone.As it can be seen that it is corresponding that target data message is locally not present in load-balancing device in scheme provided in an embodiment of the present invention
Session when, by centralized session synchronization equipment realize target data message transmission, avoid the load in system for cloud computing equal
Weighing apparatus equipment is required to cpu resource caused by the session information of all load-balancing devices in storage cluster and occupies excessive situation,
To improve the ability of separate unit load-balancing device session management and the ability of entire cluster forwarding customer flow.
Fig. 5 is the first structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
The load-balancing device in network is calculated, system for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization are set
Standby, above-mentioned apparatus includes: the first receiving module 501, the first searching module 502, the first sending module 503.
First receiving module 501, the target data message sent for desampler.
First searching module 502, in the meeting being locally stored for having received the load-balancing device of target data message
In words, the corresponding session of target data message is searched.
First sending module 503 is used in the corresponding conversation failure of locally lookup target data message, by target data
Message is sent to interchanger, so that target data message is sent to centralized session synchronization equipment by interchanger, so that collection
Target data message is sent to and answers according to the session of centralized session synchronization equipment being locally stored by Chinese style session synchronization equipment
With server zone, wherein the session that centralized session synchronization equipment is locally stored are as follows: equal from each load in system for cloud computing
The session of weighing apparatus equipment synchronization gain.
In packet transmission device provided in an embodiment of the present invention, load-balancing device receives the target data that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by target data
Message is sent to interchanger, target data message is sent to centralized session synchronization equipment by interchanger, by centralized session
Target data message is sent to application server cluster by synchronizer.As it can be seen that load is equal in scheme provided in an embodiment of the present invention
When the corresponding session of target data message is locally not present in weighing apparatus equipment, target data message is realized by centralized session synchronization equipment
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow.
Fig. 6 is second of structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
The load-balancing device in network is calculated, system for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization are set
Standby, above-mentioned apparatus includes: the 4th receiving module 601, the second searching module 602, the second sending module 603 and third sending module
604。
In the present embodiment, the 4th receiving module 601, the second searching module 602, the second sending module 603 can respectively with
First receiving module 501 of embodiment described in Fig. 5, the first searching module 502, the first sending module 503 is identical, here not
It repeats.
Third sending module 604, for sending control message to centralized session synchronization equipment by interchanger, so that
Centralized session synchronization equipment carries out synchronizing information according to control message, wherein control message is for carrying out synchronizing information
Message.
In a kind of implementation, third sending module 604 may include: the first sending submodule 6041.
First sending submodule 6041 meets preset synchronization for determining in session that load-balancing device is locally stored
The session of condition is session to be synchronized;The control comprising session to be synchronized is sent to centralized session synchronization equipment by interchanger
Message.
In a kind of implementation, preset synchronous condition may include first presetting sub- synchronous condition and the second default son is same
Step condition.Wherein,
First presets sub- synchronous condition can be with are as follows: the duration of session is greater than or equal to session persistence preset value.
Second presets sub- synchronous condition can be with are as follows: the data message number forwarded by session is than or equal to data message
Forwarding number preset value.
In a kind of implementation, third sending module 604 may include: the second sending submodule 6042.
Whether the second sending submodule 6042, the state for detecting target session change, wherein target session
Are as follows: it has been synchronized to the local session of centralized session synchronization equipment;If the state of detection target session changes, pass through exchange
Machine sends the control message of the state comprising target session to centralized session synchronization equipment.
In packet transmission device provided in an embodiment of the present invention, load-balancing device receives the target data that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by target data
Message is sent to interchanger, target data message is sent to centralized session synchronization equipment by interchanger, by centralized session
Target data message is sent to application server cluster by synchronizer.As it can be seen that load is equal in scheme provided in an embodiment of the present invention
When the corresponding session of target data message is locally not present in weighing apparatus equipment, target data message is realized by centralized session synchronization equipment
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow.
Fig. 7 is the third structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
Calculating the interchanger in network, system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, on
Stating device includes: the second receiving module 701, the first distribution module 702, third receiving module 703.
Second receiving module 701, for receiving target data message.
First distribution module 702 is determined for carrying out route assignment to target data message for forwarding target data report
The load-balancing device of text, and target data message is sent to identified load-balancing device, so that identified negative
Equalizing equipment is carried, in the session of identified load-balancing device being locally stored, searches the corresponding meeting of target data message
Words.
Third receiving module 703, the mesh sent after searching conversation failure for receiving identified load-balancing device
Data message is marked, and target data message is sent to centralized session synchronization equipment, so that centralized session synchronization equipment
According to the session of centralized session synchronization equipment being locally stored, target data message is sent to application server cluster, wherein
The session of centralized session synchronization equipment being locally stored are as follows: from each load-balancing device synchronization gain in system for cloud computing
Session.
In packet transmission device provided in an embodiment of the present invention, the target data message received is sent to pair by interchanger
It carries out identified load-balancing device after route assignment, and does not search locally in load-balancing device in load-balancing device
After the corresponding session of target data message, the target data message that balancing received load equipment is sent, and send it to concentration
Target data message is sent to application server cluster by centralized session synchronization equipment by formula session synchronization equipment.As it can be seen that this hair
In the scheme that bright embodiment provides, can when the corresponding session of target data message is locally not present in load-balancing device, by
Centralized session synchronization equipment realizes the transmission of target data message, and the load-balancing device in system for cloud computing is avoided to be required to
Cpu resource caused by the session information of all load-balancing devices occupies excessive situation in storage cluster, to improve separate unit
The ability of the ability of load-balancing device session management and entire cluster forwarding customer flow.
Fig. 8 a is the 4th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
Calculating the interchanger in network, system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, on
Stating device includes: the 5th receiving module 801, the second distribution module 802, the 6th receiving module 803 and the 7th receiving module 804.
In the present embodiment, the 5th receiving module 801, the second distribution module 802, the 6th receiving module 803 can respectively with
Second receiving module 701 of embodiment described in Fig. 7, the first distribution module 702, third receiving module 703 is identical, here not
It repeats.
7th receiving module 804 is sent to for the control message that balancing received load equipment is sent, and by control message
Centralized session synchronization equipment, so that centralized session synchronization equipment carries out synchronizing information according to control message, wherein control
Message is the message for carrying out synchronizing information.
In a kind of implementation, the 7th receiving module 804 may include: the first receiving submodule 8041.
First receiving submodule 8041 is being determined locally to meet preset synchronous condition for balancing received load equipment
Session to be synchronized after, the control message comprising session to be synchronized of transmission, and by comprising session to be synchronized control message send out
It send to centralized session synchronization equipment.
In a kind of implementation, preset synchronous condition can be complete with the preset synchronous condition of embodiment described in Fig. 6
It is identical, it is not repeated herein.
In a kind of implementation, the 7th receiving module 804 may include: the second receiving submodule 8042.
Second receiving submodule 8042 changes for balancing received load equipment in the state for detecting target session
Afterwards, the control message of the state comprising target session of transmission, and the control message of the state comprising target session is sent to
Centralized session synchronization equipment, wherein target session are as follows: be synchronized to the local session of centralized session synchronization equipment.
In packet transmission device provided in an embodiment of the present invention, the target data message received is sent to pair by interchanger
It carries out identified load-balancing device after route assignment, and does not search locally in load-balancing device in load-balancing device
After the corresponding session of target data message, the target data message that balancing received load equipment is sent, and send it to concentration
Target data message is sent to application server cluster by centralized session synchronization equipment by formula session synchronization equipment.As it can be seen that this hair
In the scheme that bright embodiment provides, can when the corresponding session of target data message is locally not present in load-balancing device, by
Centralized session synchronization equipment realizes the transmission of target data message, and the load-balancing device in system for cloud computing is avoided to be required to
Cpu resource caused by the session information of all load-balancing devices occupies excessive situation in storage cluster, to improve separate unit
The ability of the ability of load-balancing device session management and entire cluster forwarding customer flow.
Fig. 8 b is the 5th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
The centralized session synchronization equipment in network is calculated, system for cloud computing includes: interchanger, load-balancing device and centralized session
Synchronizer, above-mentioned apparatus include: the 8th receiving module 711, the 4th sending module 712.
8th receiving module 711, the target data message sent for desampler;Wherein, target data message is
Load-balancing device by having received target data message does not find target data message pair in the session that it is locally stored
After the session answered, sent to interchanger;
4th sending module 712, for the session being locally stored according to centralized session synchronization equipment, by target data
Message is sent to application server cluster.
In a kind of implementation, the 4th sending module 712 may include: the 4th sending submodule 7121.
4th sending submodule 7121, it is same from centralized session for the host CPU core of dispatching concentration formula session synchronization equipment
In the session that step equipment is locally stored, corresponding first session of target data message is determined;It is same to be also used to dispatching concentration formula session
The host CPU core of equipment is walked according to preset hash algorithm, Hash calculation is carried out to the attribute of the first session, according to calculated result,
The selection target CPU core from the CPU core of centralized session synchronization equipment;It is also used to the master of dispatching concentration formula session synchronization equipment
CPU core, further regulation goal CPU core, so that target CPU core is sent to application according to the first session, by target data message
Server zone.
In a kind of implementation, above-mentioned apparatus can also include: the first clock module 713, will for regulation goal CPU core
What the overtime initial time of the first session was updated to target data message is sent completely the moment.
In a kind of implementation, the first clock module 713 is also used to regulation goal CPU core according to updated first meeting
Whether the session timeout duration of the overtime initial time of words, the first session of detection reaches preset duration, if the session of the first session
Overtime duration reaches preset duration, destroys the first session.
In packet transmission device provided in an embodiment of the present invention, centralized session synchronization equipment receives the mesh that exchange is sent
After marking data message, according to the session of centralized session synchronization equipment being locally stored, target data message is sent to application
Server zone.As it can be seen that it is corresponding that target data message is locally not present in load-balancing device in scheme provided in an embodiment of the present invention
Session when, by centralized session synchronization equipment realize target data message transmission, avoid the load in system for cloud computing equal
Weighing apparatus equipment is required to cpu resource caused by the session information of all load-balancing devices in storage cluster and occupies excessive situation,
To improve the ability of separate unit load-balancing device session management and the ability of entire cluster forwarding customer flow.
Fig. 8 c is the 6th kind of structural schematic diagram of packet transmission device provided in an embodiment of the present invention, which is applied to cloud
The centralized session synchronization equipment in network is calculated, system for cloud computing includes: interchanger, load-balancing device and centralized session
Synchronizer, above-mentioned apparatus include: the 9th receiving module 811, the 5th sending module 812 and the first synchronization module 813.
9th receiving module 811, the target data message sent for desampler;Wherein, target data message is
Load-balancing device by having received target data message does not find target data message pair in the session that it is locally stored
After the session answered, sent to interchanger;
5th sending module 812, for the session being locally stored according to centralized session synchronization equipment, by target data
Message is sent to application server cluster.
In a kind of implementation, the 5th sending module 812 may include: the 5th sending submodule 8121.
5th sending submodule 8121, it is same from centralized session for the host CPU core of dispatching concentration formula session synchronization equipment
In the session that step equipment is locally stored, corresponding first session of target data message is determined;It is same to be also used to dispatching concentration formula session
The host CPU core of equipment is walked according to preset hash algorithm, Hash calculation is carried out to the attribute of the first session, according to calculated result,
The selection target CPU core from the CPU core of centralized session synchronization equipment;It is also used to the master of dispatching concentration formula session synchronization equipment
CPU core further dispatches the target CPU core in this implementation, so that the target CPU core in this implementation is according to the first meeting
Words, are sent to application server cluster for target data message.
In a kind of implementation, above-mentioned apparatus can also include: second clock module 814, send son for dispatching the 5th
The overtime initial time of first session is updated to being sent completely for target data message by the selected target CPU core of module 8121
Moment.
In a kind of implementation, second clock module 814 is also used to dispatch the selected mesh of the 5th sending submodule 8121
CPU core is marked according to the overtime initial time of updated first session, whether the session timeout duration of the first session of detection reaches
Preset duration destroys the first session if the session timeout duration of the first session reaches preset duration.
First synchronization module 813, the control message sent for desampler;It is same that information is carried out according to control message
Step.
In a kind of implementation, the first synchronization module 813 may include: the first synchronous submodule 8131.
First synchronous submodule 8131, the host CPU core for dispatching concentration formula session synchronization equipment determine control message pair
The second session answered;The host CPU core of dispatching concentration formula session synchronization equipment is also used to according to preset hash algorithm, to the second meeting
The attribute of words carries out Hash calculation, according to calculated result, the selection target CPU core from the CPU core of centralized session synchronization equipment;
It is also used to the host CPU core of dispatching concentration formula session synchronization equipment, further dispatches the target CPU core in this implementation according to
Two sessions carry out synchronizing information.
In a kind of implementation, above-mentioned apparatus can also include: third clock module 815, for dispatching the first same step
The overtime initial time of second session is updated to synchronizing information and completes the moment by the selected target CPU core of module 8131.
In a kind of implementation, third clock module 815 is also used to dispatch the first synchronous selected mesh of submodule 8131
CPU core is marked according to the overtime initial time of updated second session, whether the session timeout duration of the second session of detection reaches
Preset duration destroys the second session if the session timeout duration of the second session reaches preset duration.
In packet transmission device provided in an embodiment of the present invention, centralized session synchronization equipment receives the mesh that exchange is sent
After marking data message, according to the session of centralized session synchronization equipment being locally stored, target data message is sent to application
Server zone.As it can be seen that it is corresponding that target data message is locally not present in load-balancing device in scheme provided in an embodiment of the present invention
Session when, by centralized session synchronization equipment realize target data message transmission, avoid the load in system for cloud computing equal
Weighing apparatus equipment is required to cpu resource caused by the session information of all load-balancing devices in storage cluster and occupies excessive situation,
To improve the ability of separate unit load-balancing device session management and the ability of entire cluster forwarding customer flow.
The embodiment of the invention also provides a kind of transmitting systems, as illustrated in fig. 9, the system include: interchanger 901,
Load-balancing device and centralized session synchronization equipment 902.Wherein,
Interchanger 901, for receiving target data message;Route assignment is carried out to target data message, is determined for turning
Send out the load-balancing device of target data message;Target data message is sent to identified load-balancing device.
Load-balancing device, the target data message sent for desampler 901;In the local of load-balancing device
In the session of storage, the corresponding session of target data message is searched;If searching failure, target data message is sent to exchange
Machine 901.
Interchanger 901 is also used to receive the number of targets that identified load-balancing device is sent after searching conversation failure
Centralized session synchronization equipment 902 is sent to according to message, and by target data message.
Centralized session synchronization equipment 902, for the target data message that desampler 901 is sent, according to centralization
Target data message is sent to application server cluster by the session of session synchronization equipment 902 being locally stored, wherein centralization
The session of session synchronization equipment 902 being locally stored are as follows: from the meeting of each load-balancing device synchronization gain in above system
Words.
Fig. 9 b gives above-mentioned transmitting system and illustrates the process that target data message is sent to application server cluster
Figure.
In a kind of implementation, load-balancing device is also used to send control message to interchanger 901;
Interchanger 901 is also used to the control message of balancing received load equipment transmission, and control message is sent to centralization
Session synchronization equipment 902;
Centralized session synchronization equipment 902 is also used to the control message of the transmission of desampler 901, according to control message
Carry out synchronizing information, wherein control message is the message for carrying out synchronizing information.
In a kind of implementation, load-balancing device, specifically for determining in session that load-balancing device is locally stored
The session for meeting preset synchronous condition is session to be synchronized, sends the control message comprising session to be synchronized to interchanger 901;
Specifically, preset synchronous condition, which presets sub- synchronous condition and second including first, presets sub- synchronous condition;
First presets sub- synchronous condition are as follows: the duration of session is greater than or equal to session persistence preset value;
Second presets sub- synchronous condition are as follows: the data message number forwarded by session is than or equal to data message forwarding
Number preset value;
Interchanger 901 will be wrapped specifically for the control message comprising session to be synchronized that balancing received load equipment is sent
Control message containing session to be synchronized is sent to centralized session synchronization equipment 902;
Centralized session synchronization equipment 902, the control comprising session to be synchronized sent specifically for desampler 901
Message.
In a kind of implementation, whether load-balancing device, the state specifically for detecting target session changes,
In, target session are as follows: be synchronized to the local session of centralized session synchronization equipment 902;If detecting the state hair of target session
It is raw to change, the control message of the state comprising target session is sent to interchanger 901;
Interchanger 901, specifically for balancing received load equipment send the state comprising target session control message,
The control message of state comprising target session is sent to centralized session synchronization equipment 902;
Centralized session synchronization equipment 902, the state comprising target session sent specifically for desampler 901
Control message.
Fig. 9 c gives in above-mentioned transmitting system, and load-balancing device is set by interchanger to centralized session synchronization
Preparation send the flow diagram of control message.
In a kind of implementation, centralized session synchronization equipment 902 is specifically used for dispatching concentration formula session synchronization equipment
902 local host CPU cores determine target data message pair from the session of centralized session synchronization equipment 902 being locally stored
The first session answered;According to preset hash algorithm, Hash calculation is carried out to the attribute of the first session, according to calculated result, from
Selection target CPU core in the local CPU core of centralized session synchronization equipment 902;Regulation goal CPU core, so that target CPU core root
According to the first session, target data message is sent to application server cluster.
In a kind of implementation, centralized session synchronization equipment 902 is also used to regulation goal CPU core for the first session
What overtime initial time was updated to target data message is sent completely the moment.
In a kind of implementation, centralized session synchronization equipment 902 is also used to regulation goal CPU core according to updated
Whether the session timeout duration of the overtime initial time of the first session, the first session of detection reaches preset duration, if described first
The session timeout duration of session reaches preset duration, destroys the first session.
In a kind of implementation, centralized session synchronization equipment 902 is specifically used for dispatching concentration formula session synchronization equipment
902 local host CPU cores determine corresponding second session of control message;According to preset hash algorithm, to the category of the second session
Property carry out Hash calculation, according to calculated result, the selection target CPU core from local CPU core;Regulation goal CPU core is according to
Two sessions carry out synchronizing information.
In a kind of implementation, centralized session synchronization equipment 902 is also used to regulation goal CPU core for the second session
Overtime initial time is updated to synchronizing information and completes the moment.
In a kind of implementation, centralized session synchronization equipment 902 is also used to regulation goal CPU core according to updated
Whether the session timeout duration of the overtime initial time of the second session, the second session of detection reaches preset duration, if described second
The session timeout duration of session reaches preset duration, destroys the second session.
As a preferred embodiment of the present invention, centralized session synchronization equipment 902 can also include control module
9021 (being not shown in Fig. 9), for obtaining the quantity for the session that centralized session synchronization equipment 902 is locally stored, each session
The data message number forwarded, in order to be shown;The control module is also used to obtain centralized session synchronization equipment 902
CPU core utilization rate, in order to be safeguarded;The control module is also used to as answering in centralized session synchronization equipment 902
Application programming interface (Application Programming Interface, API) is provided with program.
In transmitting system provided in an embodiment of the present invention, load-balancing device receives the target data that exchange is sent
After message, the corresponding session of target data message is locally searched in load-balancing device, if searched less than by target data
Message is sent to interchanger, target data message is sent to centralized session synchronization equipment by interchanger, by centralized session
Target data message is sent to application server cluster by synchronizer.As it can be seen that load is equal in system provided in an embodiment of the present invention
When the corresponding session of target data message is locally not present in weighing apparatus equipment, target data message is realized by centralized session synchronization equipment
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow.
Figure 10 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, which is cloud computing net
Load-balancing device in network, system for cloud computing include: interchanger, load-balancing device and centralized session synchronization equipment, are born
Carrying equalizing equipment includes: processor 1001 and memory 1003;
Memory 1003, for storing computer program;
Processor 1001 when for executing the program stored on memory 1003, being realized and being applied in system for cloud computing
Load-balancing device message send method and step.
Specifically, above-mentioned file transmitting method, comprising:
The target data message that desampler is sent;
In the session being locally stored for having received the load-balancing device of target data message, target data message is searched
Corresponding session;If searching failure, target data message is sent to interchanger, so that interchanger sends out target data message
It send to centralized session synchronization equipment, so that local of the centralized session synchronization equipment according to centralized session synchronization equipment
Target data message is sent to application server cluster, wherein centralized session synchronization equipment is locally stored by the session of storage
Session are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
It should be noted that above-mentioned processor executes the program stored in memory and the file transmitting method realized
Other implementations, with the file transmitting method mentioned by preceding method embodiment part, applied to load-balancing device
Implementation is identical, and which is not described herein again.
After electronic equipment provided in an embodiment of the present invention receives the target data message that exchange is sent, in electronic equipment sheet
The corresponding session of target data message is searched on ground, if searched less than target data message being sent to interchanger, by exchanging
Target data message is sent to centralized session synchronization equipment by machine, is sent out target data message by centralized session synchronization equipment
It send to application server cluster.As it can be seen that electronic equipment provided in an embodiment of the present invention, can locally be not present target in electronic equipment
When the corresponding session of data message, the transmission of target data message is realized by centralized session synchronization equipment, avoids cloud computing net
Load-balancing device in network is required to cpu resource caused by the session information of all load-balancing devices in storage cluster and occupies
Excessive situation, to improve the ability of separate unit load-balancing device session management and the energy of entire cluster forwarding customer flow
Power.
Figure 11 is the structural schematic diagram of another electronic equipment provided in an embodiment of the present invention, which is cloud computing
Interchanger in network, system for cloud computing include: interchanger, load-balancing device and centralized session synchronization equipment, interchanger
It include: processor 1101 and memory 1103;
Memory 1103, for storing computer program;
Processor 1101 when for executing the program stored on memory 1103, being realized and being applied in system for cloud computing
Interchanger message send method and step.
Specifically, above-mentioned file transmitting method, comprising:
Receive target data message;
Route assignment is carried out to target data message, determines the load-balancing device for forwarding target data message, and
Target data message is sent to identified load-balancing device, so that identified load-balancing device, is determining
Load-balancing device the session being locally stored in, search the corresponding session of target data message;
The target data message that is sent after searching conversation failure of load-balancing device determined by receiving, and by number of targets
It is sent to centralized session synchronization equipment according to message, so that centralized session synchronization equipment is according to centralized session synchronization equipment
The session being locally stored, target data message is sent to application server cluster, wherein the sheet of centralized session synchronization equipment
The session of ground storage are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
It should be noted that above-mentioned processor executes the program stored in memory and the file transmitting method realized
Other implementations, the realization side with the file transmitting method mentioned by preceding method embodiment part, applied to interchanger
Formula is identical, and which is not described herein again.
The target data message received is sent to by electronic equipment provided in an embodiment of the present invention carries out routing point to it
The corresponding session of target data message is not being searched locally with rear identified load-balancing device, and in load-balancing device
Afterwards, the target data message that balancing received load equipment is sent, and centralized session synchronization equipment is sent it to, by centralization
Target data message is sent to application server cluster by session synchronization equipment.As it can be seen that electronic equipment provided in an embodiment of the present invention,
It can be realized when the corresponding session of target data message is locally not present in load-balancing device by centralized session synchronization equipment
The transmission of target data message avoids the load-balancing device in system for cloud computing from being required to all load balancing in storage cluster
Cpu resource caused by the session information of equipment occupies excessive situation, to improve separate unit load-balancing device session management
The ability of ability and entire cluster forwarding customer flow.
Figure 12 is the structural schematic diagram of another electronic equipment provided in an embodiment of the present invention, which is cloud computing
Centralized session synchronization equipment in network, system for cloud computing include: interchanger, load-balancing device and centralized session synchronization
Equipment, centralized session synchronization equipment include: processor 1201 and memory 1203;
Memory 1203, for storing computer program;
Processor 1201 when for executing the program stored on memory 1203, being realized and being applied in system for cloud computing
Interchanger message send method and step.
Specifically, above-mentioned file transmitting method, comprising:
The target data message that desampler is sent;Wherein, target data message is by having received target data message
Load-balancing device do not find the corresponding session of target data message in the session that own local stores after, to interchanger
The target data message of transmission;
According to the session of centralized session synchronization equipment being locally stored, target data message is sent to application server
Group.
It should be noted that above-mentioned processor executes the program stored in memory and the file transmitting method realized
Other implementations are sent with the message mentioned by preceding method embodiment part, applied to centralized session synchronization equipment
The implementation of method is identical, and which is not described herein again.
After electronic equipment provided in an embodiment of the present invention receives the target data message that exchange is sent, set according to the electronics
Target data message is sent to application server cluster by the standby session being locally stored.As it can be seen that electricity provided in an embodiment of the present invention
Sub- equipment can realize target data message when the corresponding session of target data message is locally not present in load-balancing device
Transmission, avoid the load-balancing device in system for cloud computing be required to all load-balancing devices in storage cluster session letter
Cpu resource caused by ceasing occupies excessive situation, to improve the ability of separate unit load-balancing device session management and entirely collect
The ability of group's forwarding customer flow.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memorY), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the invention also provides a kind of computer readable storage medium, which is cloud meter
The storage medium of the load-balancing device in network is calculated, system for cloud computing includes: interchanger, load-balancing device and centralized meeting
Synchronizer is talked about, is stored with computer program in computer readable storage medium, is applied in system for cloud computing to execute
The method and step that the message of load-balancing device is sent.
Specifically, above-mentioned file transmitting method, comprising:
The target data message that desampler is sent;
In the session being locally stored for having received the load-balancing device of target data message, target data message is searched
Corresponding session;If searching failure, target data message is sent to interchanger, so that interchanger sends out target data message
It send to centralized session synchronization equipment, so that local of the centralized session synchronization equipment according to centralized session synchronization equipment
Target data message is sent to application server cluster, wherein centralized session synchronization equipment is locally stored by the session of storage
Session are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
It should be noted that executing the computer program stored in above-mentioned computer readable storage medium and the report realized
Other implementations of literary sending method, with mentioned by preceding method embodiment part, applied to the report of load-balancing device
The implementation of literary sending method is identical, and which is not described herein again.
The computer program that computer readable storage medium provided in an embodiment of the present invention is stored can be realized: load is equal
After weighing apparatus equipment receives the target data message that exchange is sent, it is corresponding that target data message is locally searched in load-balancing device
Session, if searched less than target data message is sent to interchanger, target data message is sent to collection by interchanger
Target data message is sent to application server cluster by centralized session synchronization equipment by Chinese style session synchronization equipment.As it can be seen that this
The computer program that the computer readable storage medium that inventive embodiments provide is stored, can be local not in load-balancing device
When session corresponding there are target data message, the transmission of target data message is realized by centralized session synchronization equipment, is avoided
Load-balancing device in system for cloud computing is required to CPU caused by the session information of all load-balancing devices in storage cluster
The excessive situation of resource occupation, to improve the ability and entire cluster forwarding user's stream of separate unit load-balancing device session management
The ability of amount.
The embodiment of the invention also provides another computer readable storage medium, which is cloud
The storage medium of the interchanger in network is calculated, system for cloud computing includes: that interchanger, load-balancing device and centralized session are same
Equipment is walked, is stored with computer program in computer readable storage medium, to execute the exchange being applied in system for cloud computing
The method and step that the message of machine is sent.
Specifically, above-mentioned file transmitting method, comprising:
Receive target data message;
Route assignment is carried out to target data message, determines the load-balancing device for forwarding target data message, and
Target data message is sent to identified load-balancing device, so that identified load-balancing device, is determining
Load-balancing device the session being locally stored in, search the corresponding session of target data message;
The target data message that is sent after searching conversation failure of load-balancing device determined by receiving, and by number of targets
It is sent to centralized session synchronization equipment according to message, so that centralized session synchronization equipment is according to centralized session synchronization equipment
The session being locally stored, target data message is sent to application server cluster, wherein the sheet of centralized session synchronization equipment
The session of ground storage are as follows: from the session of each load-balancing device synchronization gain in system for cloud computing.
It should be noted that executing the computer program stored in above-mentioned computer readable storage medium and the report realized
Other implementations of literary sending method are sent with the message mentioned by preceding method embodiment part, applied to interchanger
The implementation of method is identical, and which is not described herein again.
The computer program that computer readable storage medium provided in an embodiment of the present invention is stored can be realized: interchanger
The target data message received is sent to identified load-balancing device after carrying out route assignment to it, and equal in load
Weighing apparatus equipment is not after locally searching the corresponding session of target data message, the target data report of balancing received load equipment transmission
Text, and centralized session synchronization equipment is sent it to, target data message is sent to by centralized session synchronization equipment and is answered
Use server zone.As it can be seen that the computer program that computer readable storage medium provided in an embodiment of the present invention is stored, Neng Gou
When the corresponding session of target data message is locally not present in load-balancing device, number of targets is realized by centralized session synchronization equipment
According to the transmission of message, the load-balancing device in system for cloud computing is avoided to be required to all load-balancing devices in storage cluster
Cpu resource caused by session information occupies excessive situation, thus improve separate unit load-balancing device session management ability and
The ability of entire cluster forwarding customer flow.
The embodiment of the invention also provides another computer readable storage medium, which is cloud
Calculate network in centralized session synchronization equipment storage medium, system for cloud computing include: interchanger, load-balancing device and
Centralized session synchronization equipment is stored with computer program in computer readable storage medium, is applied to cloud computing to execute
The method and step that the message of centralized session synchronization equipment in network is sent.
Specifically, above-mentioned file transmitting method, comprising:
The target data message that desampler is sent;Wherein, target data message is by having received target data message
Load-balancing device do not find the corresponding session of target data message in the session that own local stores after, to interchanger
The target data message of transmission;
According to the session of centralized session synchronization equipment being locally stored, target data message is sent to application server
Group.
It should be noted that executing the computer program stored in above-mentioned computer readable storage medium and the report realized
Other implementations of literary sending method are set with mentioned by preceding method embodiment part, applied to centralized session synchronization
The implementation of standby file transmitting method is identical, and which is not described herein again.
The computer program that computer readable storage medium provided in an embodiment of the present invention is stored can be realized: centralization
After session synchronization equipment receives the target data message that exchange is sent, according to being locally stored for centralized session synchronization equipment
Target data message is sent to application server cluster by session.As it can be seen that computer-readable storage medium provided in an embodiment of the present invention
The computer program that matter is stored, can when the corresponding session of target data message is locally not present in load-balancing device, by
Centralized session synchronization equipment realizes the transmission of target data message, and the load-balancing device in system for cloud computing is avoided to be required to
Cpu resource caused by the session information of all load-balancing devices occupies excessive situation in storage cluster, to improve separate unit
The ability of the ability of load-balancing device session management and entire cluster forwarding customer flow.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the load-balancing device in system for cloud computing.
The embodiment of the invention also provides a kind of computer programs, when run on a computer, so that computer is held
The above-mentioned file transmitting method applied to the load-balancing device in system for cloud computing of row.
The embodiment of the invention also provides another computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the interchanger in system for cloud computing.
The embodiment of the invention also provides another computer programs, when run on a computer, so that computer
Execute the above-mentioned file transmitting method applied to the interchanger in system for cloud computing.
The embodiment of the invention also provides another computer program products comprising instruction, when it runs on computers
When, so that computer executes the above-mentioned file transmitting method applied to the centralized session synchronization equipment in system for cloud computing.
The embodiment of the invention also provides another computer programs, when run on a computer, so that computer
Execute the above-mentioned file transmitting method applied to the centralized session synchronization equipment in system for cloud computing.
It is real for device, system, electronic equipment, storage medium, the computer program product comprising instruction, computer program
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
It should be noted that the device of the embodiment of the present invention, system, electronic equipment, storage medium, the calculating comprising instruction
Machine program product and computer program are respectively the devices for applying above-mentioned file transmitting method, electronic equipment, storage medium, include
The computer program product and computer program of instruction, then all embodiments of above-mentioned file transmitting method are suitable for the dress
It sets, electronic equipment, storage medium, computer program product and computer program comprising instruction, and can reach identical or phase
As beneficial effect.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (42)
1. a kind of file transmitting method, which is characterized in that applied to the load-balancing device in system for cloud computing, the cloud computing
Network includes: interchanger, load-balancing device and centralized session synchronization equipment, which comprises
The target data message that desampler is sent;
In the session of load-balancing device being locally stored for having received the target data message, the target data is searched
The corresponding session of message;If searching failure, the target data message is sent to the interchanger, so that the interchanger
The target data message is sent to centralized session synchronization equipment so that it is described centralization session synchronization equipment according to
The session of the centralization session synchronization equipment being locally stored, is sent to application server cluster for the target data message,
Wherein, the session of the centralized session synchronization equipment being locally stored are as follows: equal from each load in the system for cloud computing
The session of weighing apparatus equipment synchronization gain.
2. the method according to claim 1, wherein the method also includes:
Control message is sent to the centralized session synchronization equipment by the interchanger, so that the centralization session is same
It walks equipment and synchronizing information is carried out according to the control message, wherein the control message is the message for carrying out synchronizing information.
3. according to the method described in claim 2, it is characterized in that, described same to the centralized session by the interchanger
It walks equipment and sends control message, comprising:
Determine that the session for meeting preset synchronous condition in session that the load-balancing device is locally stored is session to be synchronized;
The control message comprising the session to be synchronized is sent to the centralized session synchronization equipment by the interchanger.
4. according to the method described in claim 3, it is characterized in that, the preset synchronous condition includes that the first default son is synchronous
Condition and second presets sub- synchronous condition;
First presets sub- synchronous condition are as follows: the duration of session is greater than or equal to session persistence preset value;
Second presets sub- synchronous condition are as follows: the data message number forwarded by session is pre- than or equal to data message forwarding number
If value.
5. according to the method described in claim 2, it is characterized in that, described same to the centralized session by the interchanger
It walks equipment and sends control message, comprising:
Whether the state of detection target session changes, wherein the target session are as follows: has been synchronized to the centralized session
The local session of synchronizer;
If the state for detecting the target session changes, sent out by the interchanger to the centralized session synchronization equipment
Send the control message of the state comprising the target session.
6. a kind of file transmitting method, which is characterized in that described applied to the centralized session synchronization equipment in system for cloud computing
System for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, which comprises
The target data message that desampler is sent;Wherein, the target data message is by having received the target data
After the load-balancing device of message does not find the corresponding session of the target data message in the session that own local stores,
The target data message sent to the interchanger;
According to the session of centralized session synchronization equipment being locally stored, the target data message is sent to application server
Group.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The control message that desampler is sent;Wherein, the control message is the use that load-balancing device is sent to interchanger
In the message for carrying out synchronizing information;
Synchronizing information is carried out according to the control message.
8. method according to claim 6 or 7, which is characterized in that the local according to centralized session synchronization equipment
The target data message is sent to application server cluster by the session of storage, comprising:
The host CPU core of the centralization session synchronization equipment, from the session of the centralized session synchronization equipment being locally stored
In, determine corresponding first session of the target data message;
According to preset hash algorithm, Hash calculation is carried out to the attribute of first session, according to calculated result, from the collection
Selection target CPU core in the CPU core of Chinese style session synchronization equipment;
The target CPU core is dispatched, so that the target CPU core sends out the target data message according to first session
It send to application server cluster.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
The overtime initial time of first session is updated to being sent completely for the target data message by the target CPU core
Moment.
10. according to the method described in claim 9, it is characterized in that, the method also includes:
The target CPU core detects the meeting of first session according to the overtime initial time of updated first session
Talk about whether overtime duration reaches preset duration, if the session timeout duration of first session reaches preset duration, described in destruction
First session.
11. the method according to the description of claim 7 is characterized in that described carry out synchronizing information, packet according to the control message
It includes:
The host CPU core of the centralization session synchronization equipment determines corresponding second session of the control message;
According to preset hash algorithm, Hash calculation is carried out to the attribute of second session, according to calculated result, from the collection
Selection target CPU core in the CPU core of Chinese style session synchronization equipment;
It dispatches the target CPU core and synchronizing information is carried out according to second session.
12. according to the method for claim 11, which is characterized in that the method also includes:
The overtime initial time of second session is updated to synchronizing information and completes the moment by the target CPU core.
13. according to the method for claim 12, which is characterized in that the method also includes:
The target CPU core detects the meeting of second session according to the overtime initial time of updated second session
Talk about whether overtime duration reaches preset duration, if the session timeout duration of second session reaches preset duration, described in destruction
Second session.
14. a kind of file transmitting method, which is characterized in that applied to the interchanger in system for cloud computing, the system for cloud computing
It include: interchanger, load-balancing device and centralized session synchronization equipment, which comprises
Receive target data message;
Route assignment is carried out to the target data message, is determined for forwarding the load balancing of the target data message to set
It is standby, and the target data message is sent to identified load-balancing device, so that identified load-balancing device,
In the session of identified load-balancing device being locally stored, the corresponding session of the target data message is searched;
The target data message that is sent after searching conversation failure of load-balancing device determined by receiving, and by the mesh
Mark data message is sent to the centralized session synchronization equipment, so that the centralization session synchronization equipment is according to the collection
The target data message is sent to application server cluster, wherein institute by the session of Chinese style session synchronization equipment being locally stored
State the session of centralized session synchronization equipment being locally stored are as follows: same from each load-balancing device in the system for cloud computing
Walk the session obtained.
15. according to the method for claim 14, which is characterized in that the method also includes:
The control message that balancing received load equipment is sent, and the control message is sent to the centralized session synchronization and is set
It is standby, so that the centralization session synchronization equipment carries out synchronizing information according to the control message, wherein the control message
For the message for carrying out synchronizing information.
16. a kind of packet transmission device, which is characterized in that applied to the load-balancing device in system for cloud computing, the cloud meter
Calculating network includes: that interchanger, load-balancing device and centralized session synchronization equipment, described device include:
First receiving module, the target data message sent for desampler;
First searching module, for the session being locally stored in the load-balancing device for having received the target data message
In, search the corresponding session of the target data message;
First sending module is used in the corresponding conversation failure of the lookup target data message, by the target data report
Text is sent to the interchanger, so that the target data message is sent to centralized session synchronization equipment by the interchanger,
So that the session that is locally stored of the centralization session synchronization equipment according to the centralized session synchronization equipment, by institute
It states target data message and is sent to application server cluster, wherein the session of the centralization session synchronization equipment being locally stored
Are as follows: from the session of each load-balancing device synchronization gain in the system for cloud computing.
17. a kind of packet transmission device, which is characterized in that applied to the centralized session synchronization equipment in system for cloud computing, institute
Stating system for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization equipment, described device include:
9th receiving module, the target data message sent for desampler;Wherein, the target data message is by connecing
The load-balancing device for having received the target data message does not find the target data in the session that own local stores
After the corresponding session of message, the target data message of Xiang Suoshu interchanger transmission;
5th sending module, for the session being locally stored according to centralized session synchronization equipment, by the target data report
Text is sent to application server cluster.
18. device according to claim 17, which is characterized in that described device further include:
First synchronization module, the control message sent for desampler;Synchronizing information is carried out according to the control message;Its
In, the control message is the message for being used to carry out synchronizing information that load-balancing device is sent to interchanger.
19. device described in 7 or 18 according to claim 1, which is characterized in that the 5th sending module includes the 5th transmission
Module;
5th sending submodule, for dispatching the host CPU core of the centralized session synchronization equipment, from the centralized meeting
In the session that words synchronizer is locally stored, corresponding first session of the target data message is determined;It is also used to dispatch described
The host CPU core of centralized session synchronization equipment carries out Hash meter according to preset hash algorithm, to the attribute of first session
It calculates, according to calculated result, the selection target CPU core from the CPU core of the centralized session synchronization equipment;It is also used to dispatch described
The host CPU core of centralized session synchronization equipment further dispatches the target CPU core, so that the target CPU core is according to
The target data message is sent to application server cluster by the first session.
20. device according to claim 19, which is characterized in that described device further include: second clock module;
The overtime initial time of first session is updated to by the second clock module for dispatching the target CPU core
The target data message is sent completely the moment.
21. device according to claim 20, which is characterized in that
The second clock module is also used to dispatch the target CPU core and is risen according to the time-out of updated first session
Begin the moment, whether the session timeout duration for detecting first session reaches preset duration, if the session of first session is super
It is constantly long to reach preset duration, destroy first session.
22. device according to claim 18, which is characterized in that first synchronization module includes the first synchronous submodule
Block;
Described first synchronous submodule, the host CPU core for dispatching the centralized session synchronization equipment determine the control report
Corresponding second session of text;It is also used to dispatch the host CPU core of the centralized session synchronization equipment according to preset hash algorithm,
Hash calculation is carried out to the attribute of second session, according to calculated result, from the CPU core of the centralized session synchronization equipment
Middle selection target CPU core;It is also used to dispatch the host CPU core of the centralized session synchronization equipment, further dispatches the target
CPU core carries out synchronizing information according to second session.
23. device according to claim 22, which is characterized in that described device further include: third clock module;
The overtime initial time of second session is updated to by the third clock module for dispatching the target CPU core
Synchronizing information completes the moment.
24. device according to claim 23, which is characterized in that
The third clock module is also used to dispatch the target CPU core and is risen according to the time-out of updated second session
Begin the moment, whether the session timeout duration for detecting second session reaches preset duration, if the session of second session is super
It is constantly long to reach preset duration, destroy second session.
25. a kind of packet transmission device, which is characterized in that applied to the interchanger in system for cloud computing, the system for cloud computing
It include: that interchanger, load-balancing device and centralized session synchronization equipment, described device include:
Second receiving module, for receiving target data message;
First distribution module is determined for carrying out route assignment to the target data message for forwarding the target data
The load-balancing device of message, and the target data message is sent to identified load-balancing device, so that institute is really
Fixed load-balancing device searches the target data report in the session of identified load-balancing device being locally stored
The corresponding session of text;
Third receiving module, the number of targets sent after searching conversation failure for receiving identified load-balancing device
It is sent to the centralized session synchronization equipment according to message, and by the target data message, so that the centralization session
The target data message is sent to and answers according to the session of the centralized session synchronization equipment being locally stored by synchronizer
With server zone, wherein the session of the centralization session synchronization equipment being locally stored are as follows: from the system for cloud computing
The session of each load-balancing device synchronization gain.
26. a kind of transmitting system, which is characterized in that the system comprises: interchanger, load-balancing device and centralized meeting
Talk about synchronizer;Wherein,
The interchanger, for receiving target data message;Route assignment is carried out to the target data message, is determined for turning
The load-balancing device for sending out target data message described;The target data message is sent to identified load balancing to set
It is standby;
The load-balancing device, the target data message sent for receiving the interchanger;In load-balancing device
The session being locally stored in, search the corresponding session of the target data message;If failure is searched, by the target data
Message is sent to the interchanger;
The interchanger is also used to receive the number of targets that identified load-balancing device is sent after searching conversation failure
The centralized session synchronization equipment is sent to according to message, and by the target data message;
The centralization session synchronization equipment, the target data message sent for receiving the interchanger, according to described
The target data message is sent to application server cluster by the session of centralized session synchronization equipment being locally stored, wherein
The session of the centralization session synchronization equipment being locally stored are as follows: synchronize and obtain from each load-balancing device in the system
The session obtained.
27. system according to claim 26, which is characterized in that
The load-balancing device is also used to send control message to the interchanger;
The interchanger is also used to receive the control message that the load-balancing device is sent, the control message is sent out
It send to the centralized session synchronization equipment;
The centralization session synchronization equipment, is also used to receive the control message that the interchanger is sent, according to the control
Message processed carries out synchronizing information, wherein the control message is the message for carrying out synchronizing information.
28. system according to claim 27, which is characterized in that
The load-balancing device meets in the session being locally stored specifically for the determination load-balancing device preset same
The session of step condition is session to be synchronized, and Xiang Suoshu interchanger sends the control message comprising the session to be synchronized;
The interchanger, specifically for receiving the control comprising the session to be synchronized described in the load-balancing device transmission
The control message comprising the session to be synchronized is sent to the centralized session synchronization equipment by message;
The centralization session synchronization equipment, specifically for receiving described in the interchanger transmission comprising the session to be synchronized
Control message.
29. system according to claim 28, which is characterized in that the preset synchronous condition includes that the first default son is same
Step condition and second presets sub- synchronous condition;
First presets sub- synchronous condition are as follows: the duration of session is greater than or equal to session persistence preset value;
Second presets sub- synchronous condition are as follows: the data message number forwarded by session is pre- than or equal to data message forwarding number
If value.
30. system according to claim 27, which is characterized in that
Whether the load-balancing device, the state specifically for detecting target session change, wherein the target session
Are as follows: it has been synchronized to the local session of the centralized session synchronization equipment;If the state for detecting the target session changes,
The control message of the state comprising the target session is sent to the interchanger;
The interchanger, specifically for receiving the state comprising the target session described in the load-balancing device transmission
Message is controlled, the control message of the state comprising the target session is sent to the centralized session synchronization equipment;
The centralization session synchronization equipment, specifically for including the target session described in the reception interchanger transmission
The control message of state.
31. the system according to any one of claim 26-30, which is characterized in that
The centralization session synchronization equipment, specifically for dispatching the host CPU core of the centralized session synchronization equipment, from described
In the session of centralized session synchronization equipment being locally stored, corresponding first session of the target data message is determined;According to
Preset hash algorithm carries out Hash calculation to the attribute of first session, according to calculated result, from the centralized session
Selection target CPU core in the CPU core of synchronizer;The target CPU core is dispatched, so that the target CPU core is according to described
The target data message is sent to application server cluster by one session.
32. system according to claim 31, which is characterized in that
The centralization session synchronization equipment, when being also used to dispatch time-out starting of the target CPU core by first session
Be updated to the target data message quarter is sent completely the moment.
33. system according to claim 32, which is characterized in that
The centralization session synchronization equipment, is also used to dispatch the target CPU core according to updated first session
Whether overtime initial time, the session timeout duration for detecting first session reach preset duration, if first session
Session timeout duration reaches preset duration, destroys first session.
34. according to system described in claim 27-30, which is characterized in that
The centralization session synchronization equipment, the host CPU core specifically for dispatching the centralized session synchronization equipment determine institute
State corresponding second session of control message;According to preset hash algorithm, Hash calculation is carried out to the attribute of second session,
According to calculated result, the selection target CPU core from the CPU core of the centralized session synchronization equipment;Dispatch the target CPU core
Synchronizing information is carried out according to second session.
35. system according to claim 34, which is characterized in that
The centralization session synchronization equipment, when being also used to dispatch time-out starting of the target CPU core by second session
It is updated to synchronizing information quarter and completes the moment.
36. system according to claim 35, which is characterized in that
The centralization session synchronization equipment, is also used to dispatch the target CPU core according to updated second session
Whether overtime initial time, the session timeout duration for detecting second session reach preset duration, if second session
Session timeout duration reaches preset duration, destroys second session.
37. a kind of electronic equipment, which is characterized in that the electronic equipment is the load-balancing device in system for cloud computing, described
System for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization equipment, the load-balancing device include:
Processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-5.
38. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is in system for cloud computing
Load-balancing device storage medium, the system for cloud computing includes: that interchanger, load-balancing device and centralized session are same
Equipment is walked, computer program is stored in the computer readable storage medium, when the computer program is executed by processor
Realize the described in any item method and steps of claim 1-5.
39. a kind of electronic equipment, which is characterized in that the electronic equipment is that the centralized session synchronization in system for cloud computing is set
Standby, the system for cloud computing includes: interchanger, load-balancing device and centralized session synchronization equipment, the centralization session
Synchronizer includes: processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 6-13.
40. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is in system for cloud computing
Centralized session synchronization equipment storage medium, the system for cloud computing includes: interchanger, load-balancing device and centralization
Session synchronization equipment is stored with computer program in the computer readable storage medium, and the computer program is by processor
Claim 6-13 described in any item method and steps are realized when execution.
41. a kind of electronic equipment, which is characterized in that the electronic equipment is the interchanger in system for cloud computing, the cloud computing
Network includes: interchanger, load-balancing device and centralized session synchronization equipment, and the interchanger includes: processor and storage
Device;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method step of claim 14-15
Suddenly.
42. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is in system for cloud computing
Interchanger storage medium, the system for cloud computing includes: that interchanger, load-balancing device and centralized session synchronization are set
It is standby, computer program, the realization when computer program is executed by processor are stored in the computer readable storage medium
The described in any item method and steps of claim 14-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816202.7A CN109495526A (en) | 2017-09-12 | 2017-09-12 | A kind of file transmitting method, device, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816202.7A CN109495526A (en) | 2017-09-12 | 2017-09-12 | A kind of file transmitting method, device, system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109495526A true CN109495526A (en) | 2019-03-19 |
Family
ID=65687237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710816202.7A Pending CN109495526A (en) | 2017-09-12 | 2017-09-12 | A kind of file transmitting method, device, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495526A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913039A (en) * | 2019-12-03 | 2020-03-24 | 杭州圆石网络安全技术有限公司 | TCP stream drift processing method and device with separated data and control |
CN112769959A (en) * | 2021-03-04 | 2021-05-07 | 北京字节跳动网络技术有限公司 | Session synchronization method, device, first node, second node, system and medium |
CN114615355A (en) * | 2022-05-13 | 2022-06-10 | 恒生电子股份有限公司 | Message processing method and message analysis module |
CN115567536A (en) * | 2022-09-22 | 2023-01-03 | 中国联合网络通信集团有限公司 | Computing power network scheduling method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7657629B1 (en) * | 2000-09-26 | 2010-02-02 | Foundry Networks, Inc. | Global server load balancing |
CN103457869A (en) * | 2013-08-28 | 2013-12-18 | 北京星网锐捷网络技术有限公司 | Conversation maintaining method and device |
CN104243591A (en) * | 2014-09-24 | 2014-12-24 | 杭州华三通信技术有限公司 | Method and device for synchronizing session information of security cluster |
CN104380278A (en) * | 2012-06-29 | 2015-02-25 | 英特尔公司 | Device, system, and method for client-governed session persistency between one or more clients and servers of a data center |
CN106534345A (en) * | 2016-12-07 | 2017-03-22 | 东软集团股份有限公司 | Message forwarding method and device |
CN106789713A (en) * | 2017-03-13 | 2017-05-31 | 杭州迪普科技股份有限公司 | A kind of method and device of message forwarding |
-
2017
- 2017-09-12 CN CN201710816202.7A patent/CN109495526A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7657629B1 (en) * | 2000-09-26 | 2010-02-02 | Foundry Networks, Inc. | Global server load balancing |
CN104380278A (en) * | 2012-06-29 | 2015-02-25 | 英特尔公司 | Device, system, and method for client-governed session persistency between one or more clients and servers of a data center |
CN104380278B (en) * | 2012-06-29 | 2017-07-18 | 英特尔公司 | Equipment, system and method for client-side management session continuity |
CN103457869A (en) * | 2013-08-28 | 2013-12-18 | 北京星网锐捷网络技术有限公司 | Conversation maintaining method and device |
CN104243591A (en) * | 2014-09-24 | 2014-12-24 | 杭州华三通信技术有限公司 | Method and device for synchronizing session information of security cluster |
CN106534345A (en) * | 2016-12-07 | 2017-03-22 | 东软集团股份有限公司 | Message forwarding method and device |
CN106789713A (en) * | 2017-03-13 | 2017-05-31 | 杭州迪普科技股份有限公司 | A kind of method and device of message forwarding |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913039A (en) * | 2019-12-03 | 2020-03-24 | 杭州圆石网络安全技术有限公司 | TCP stream drift processing method and device with separated data and control |
CN112769959A (en) * | 2021-03-04 | 2021-05-07 | 北京字节跳动网络技术有限公司 | Session synchronization method, device, first node, second node, system and medium |
CN114615355A (en) * | 2022-05-13 | 2022-06-10 | 恒生电子股份有限公司 | Message processing method and message analysis module |
CN115567536A (en) * | 2022-09-22 | 2023-01-03 | 中国联合网络通信集团有限公司 | Computing power network scheduling method and device, electronic equipment and storage medium |
CN115567536B (en) * | 2022-09-22 | 2024-04-16 | 中国联合网络通信集团有限公司 | Computing power network scheduling method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3355553B1 (en) | Reliable load-balancer using segment routing and real-time application monitoring | |
Nguyen et al. | Decentralized and revised content-centric networking-based service deployment and discovery platform in mobile edge computing for IoT devices | |
CN107078969B (en) | Realize computer equipment, the system and method for load balancing | |
CN107026890B (en) | Message generation method based on server cluster and load balancer | |
EP4258598A1 (en) | Computing power application traffic forwarding method and apparatus | |
Shin et al. | Small-world datacenters | |
CN1146186C (en) | Virtual enclosed cluster capable of recovery | |
CN102726021B (en) | Data center network architecture flexibly | |
CN109495526A (en) | A kind of file transmitting method, device, system, electronic equipment and storage medium | |
Khan et al. | A new patient monitoring framework and Energy-aware Peering Routing Protocol (EPR) for Body Area Network communication | |
CN105453662A (en) | Neighbor discovery to support sleepy nodes | |
WO2014193940A1 (en) | Load balancing in the internet of things | |
CN103051709A (en) | Data transmission path determination method, network node and content delivery network system | |
CN106549875A (en) | A kind of conversation managing method, device and load equalizer | |
CN103516744A (en) | A data processing method, an application server and an application server cluster | |
CN103581274A (en) | Message forwarding method and device in stacking system | |
CN103828329A (en) | Systems and method for reduced power wireless communication | |
WO2022111646A1 (en) | Computing-aware session management method and communication device | |
CN103200120A (en) | Method and network device for message transmission under direct routing type | |
CN104038418A (en) | Routing method for hybrid topologic structure data center, path detection mechanism and message processing mechanism | |
CN101355521A (en) | Control method for equalizing load, communication apparatus and communication system | |
CN108650337B (en) | Server detection method, system and storage medium | |
CN105450697B (en) | A kind of more equipment are same to shield sharing method, device and server | |
CN106130867B (en) | Virtual machine communication method and device across data center | |
WO2023169374A1 (en) | Routing method and system, and node |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |