CN103117876B - The synchronous method and device of user state information - Google Patents
The synchronous method and device of user state information Download PDFInfo
- Publication number
- CN103117876B CN103117876B CN201310027555.0A CN201310027555A CN103117876B CN 103117876 B CN103117876 B CN 103117876B CN 201310027555 A CN201310027555 A CN 201310027555A CN 103117876 B CN103117876 B CN 103117876B
- Authority
- CN
- China
- Prior art keywords
- cdn
- units
- primary
- spare
- spare main
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of synchronous method of user state information and devices, wherein this method includes:Determine the role of each CDN units in equipment, wherein role includes:Primary CDN units, spare main CDN units and spare CDN units;Establish the message synchronization channel between primary CDN units and spare main CDN units;It is synchronous that the user state information between primary CDN units and spare main CDN units is carried out by message synchronization channel.Through the invention, it can be achieved that fastext takes over and disturbance switching, service reliability is improved.
Description
Technical field
The present invention relates to the communications fields, in particular to the synchronous method and device of a kind of user state information.
Background technology
In current Internet industry chain, telecom operators provide network service, ICP
(Internet Content Provider, referred to as ICP)/ Internet Service Provider(Internet Service
Provider, referred to as ISP)Application service is provided, it is completely isolated between the two.Telecom operators can not influence and control application
Service, and ICP/ISP then can not perceive and control network.And user influences the main of user experience when using application service
There are two big factors:Application system and network.Many times, the network bandwidth of user is enough, and network quality is also fine, but application system
The performance of system is insufficient, can not provide customer satisfaction system service;And it is fine in application system quality, good service can be provided to the user
When, the network bandwidth of user is insufficient, and network quality is poor.
As it can be seen that both application system and network are indispensable.It both only combines, is carried out at the same time guarantee, it could be from basic
It is upper to solve the problems, such as that customer service quality ensure.Thus, the present invention proposes a kind of content distributing network(Content
Delivery Network, referred to as CDN)With the fusion device of network, the content distribution nodes and the network equipment of CDN are carried out
Fusion, an important component as the network equipment.Fusion device, can also while providing network service to the user
Content distribution service is provided for the application of user;And by safeguarding that corresponding user content uses in the CDN units of fusion device
State machine may be implemented to be directed to specific user by the linkage of state machine and network service unit, in special time period, for
Specific content carries out the double shield of network and content.To promote user experience.
In current communication network, there is corresponding technology to realize the Hot Spare of user network connection status, it is mainly logical
Cross between two network service controlling equipment and establish corresponding synchronizing information channel, in real time the network state information of user into
Row synchronizes, and uses Virtual Router Redundacy Protocol(Virtual Router Redundancy Protocol, referred to as VRRP)
Mode carry out the heartbeat detection between host apparatus and stand-by equipment.When host apparatus breaks down, stand-by equipment can be fast
Speed detects, and realizes the switching of business, since stand-by equipment in advance synchronizes the network state information of user, Ke Yizhi
It takes over host apparatus and provides network connection service to the user, network connection is re-initiated without user, to realize network
The seamless switching of failure, user's not sensing network failure, to ensure user experience.
And level is linked in the application layer of user, corresponding mechanism is equally also required for be protected.Satisfaction is occurring
When failure, the application link of user is not interrupted, and the business for not influencing user uses.Current CDN system, application layer load balancing
For system mostly without user state machine, the mode that session status is linked only with backup user realizes backup.Meanwhile current
CDN system, using application layer load equalizer erect come application system, traffic scheduling unit and industry service unit are point
From, it is generally deployed on different servers, for relationship one in front and one in back.Load is generally disposed in such a way that two-shipper is active and standby
Balanced unit, business service unit are disposed by the way of multistage cluster.
And in the fusion device of CDN and network, it is understood that there may be more than two CDN units are not limited in two one masters
One standby mode;And CDN units contain the function of scheduling unit and business service unit.Therefore, it is not one in front and one in back, to divide
Cloth is merged in distinct device, and each CDN units are the relationships of equity.
It is same in fusion device that the architecture of fusion device determines that existing one-to-one back mechanism cannot be satisfied
Step user state information realizes the demand that fastext is taken over.Fusion device needs a kind of energy to support multiple CDN units, intelligence
Active and standby election is carried out, and carries out the synchronization of user state information on the basis of active and standby election, while can be in failure
In the case of can realize disturbance switching automatically, and active and standby election can be re-started after switching, carry out user state information
The method of re-synchronization.So as to improve the reliability of business.
Invention content
The problem that user state information synchronizes in fusion device, this hair are cannot be satisfied for back mechanism in the related technology
It is bright to provide a kind of synchronous method and device of user state information, at least to solve the above problems.
According to an aspect of the invention, there is provided a kind of synchronous method of user state information, including:It determines in equipment
The role of each CDN units, wherein the role includes:Primary CDN units, spare main CDN units and spare CDN units;It builds
Vertical message synchronization channel between the primary CDN units and the spare main CDN units;By the message synchronization channel into
The row primary CDN units are synchronous with the user state information between the spare main CDN units.
Preferably, determine that the role of each CDN units in equipment includes:It is mono- in each CDN according to default rule
It holds consultation between member;The primary CDN units, spare main CDN units and described spare are determined according to negotiation result
CDN units.
Preferably, held consultation between each CDN units according to default rule including:Each CDN is mono-
Other CDN units of each CDN units into each CDN units in member send the election mark of each CDN units
Know information, and receives the election identification information that other described CDN units are sent;According to negotiation result determine the primary CDN units,
The spare main CDN units and the spare CDN units include:Each CDN units are identified according to the election of itself to be believed
The election identification information for ceasing and receiving determines the primary CDN units, the spare main CDN units and the spare CDN
Unit.
Preferably, other CDN units of each CDN units in each CDN units into each CDN units
The election identification information of each CDN units is sent, including:Each CDN units are with multicast mode to each CDN
Other CDN units in unit send the election identification information of each CDN units.
Preferably, the election identification information includes following one:It is the priority of each CDN units, described each
The media access control of CDN units(Media Access Control, referred to as MAC)Address, each CDN units slot
Position number, the IP address of each CDN units.
Preferably, the message synchronization channel between the primary CDN units and the spare main CDN units is established, including:
Establish the connection between the primary CDN units and the spare main CDN units;Carry out the primary CDN units with it is described standby
With the negotiation of the application layer of main CDN units;The message synchronization channel is established according to the negotiation of the application layer.
Preferably, it is carried out between the primary CDN units and the spare main CDN units by the message synchronization channel
User state information synchronize, including:All users that the primary CDN units are currently safeguarded are sent to the spare main CDN
Status information;And when detecting that user state information has update, newer use is sent to the spare main CDN units
Family status information.
Preferably, after determining primary CDN units and spare main CDN units in each CDN units, further include:It establishes
First testing mechanism, detects whether the primary CDN units break down;Detecting the primary CDN units failure
In the case of, directly using the spare main CDN units as new primary CDN units, and elect new spare main CDN units.
Preferably, it elects after new spare main CDN units and further includes:In new primary CDN units and described new
Spare main CDN units between carry out the user state information synchronization.
Preferably, the primary CDN units are established with the spare main CDN units after message synchronization channel, further include:
The second testing mechanism is established, detects whether the message synchronization channel breaks down;Detecting that the message synchronization channel goes out
After showing failure and re-establishing, re-starts the user state information and synchronize.
According to another aspect of the present invention, a kind of synchronizing device of user state information is provided, including:Determine mould
Block, the role for determining each CDN units in equipment, wherein the role includes:Primary CDN units, spare main CDN are mono-
First and spare CDN units;Module is established, for establishing the message between the primary CDN units and the spare main CDN units
Synchronizing channel;Synchronization module, for carrying out the primary CDN units and the spare main CDN by the message synchronization channel
User state information between unit synchronizes.
Preferably, the determining module includes:Negotiation element is used for according to default rule in each CDN units
Between hold consultation;Determination unit, for according to negotiation result determine the primary CDN units, the spare main CDN units with
And the spare CDN units.
Preferably, the module of establishing includes:First establishing unit, for establish the primary CDN units with it is described standby
With the connection between main CDN units;Negotiation element, for carrying out answering for the primary CDN units and the spare main CDN units
With the negotiation of layer;Second establishes unit, for establishing the message synchronization channel according to the negotiation of the application layer.
Preferably, the synchronization module includes:First synchronization unit, described in being sent to the spare main CDN units
All user state informations that primary CDN units are currently safeguarded;Second synchronization unit, for detecting that user state information deposits
In update, newer user state information is sent to the spare main CDN units.
Preferably, described device further includes:First detection module, for establishing the first testing mechanism, detection is described primary
Whether CDN units break down;The determining module is additionally operable to detecting the case where primary CDN units break down
Under, using the spare main CDN units as new primary CDN units, and elect new spare main CDN units.
Preferably, the synchronization module is additionally operable to mono- in the new primary CDN units and the new spare main CDN
The user state information synchronization is carried out between member.
Preferably, described device further includes:Second detection module detects the message for establishing the second testing mechanism
Whether synchronizing channel breaks down;The synchronization module is additionally operable to lay equal stress on detecting that the message synchronization channel is broken down
After new foundation, re-starts the user state information and synchronize.
With the application of the invention, determining the role of each CDN units in equipment, primary CDN units and spare main CDN units are established
Between message synchronization channel, the user between primary CDN units and spare main CDN units is carried out by the message synchronization channel
Status information synchronizes, and realizes fastext and takes over and disturbance switching, improves equipment dependability.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the structure diagram of the synchronizing device of user state information according to the ... of the embodiment of the present invention;
Fig. 2 is the flow chart of the synchronous method of user state information according to the ... of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the network deployment of fusion device according to the ... of the embodiment of the present invention;
Fig. 4 is the schematic diagram of the internal interface of fusion device according to the ... of the embodiment of the present invention;
Fig. 5 is the logical architecture figure of CDN units according to the ... of the embodiment of the present invention;
Fig. 6 is the schematic diagram for the user state machine that CDN units according to the ... of the embodiment of the present invention are safeguarded;
Fig. 7 is the schematic diagram of the active and standby way to elect of CDN units according to the ... of the embodiment of the present invention;
Fig. 8 is the flow diagram according to the ... of the embodiment of the present invention that active and standby election is carried out according to configuration election priority;
Fig. 9 is the flow diagram that basis according to the ... of the embodiment of the present invention carries out active and standby election for slot number;
Figure 10 is the schematic diagram according to the ... of the embodiment of the present invention for establishing message synchronization channel;
Figure 11 is the schematic diagram for the state machine that user state information according to the ... of the embodiment of the present invention synchronizes;
Figure 12 is the schematic diagram of heartbeat detection according to the ... of the embodiment of the present invention;
Figure 13 is the schematic diagram of the message format of User Status message synchronization backup protocol according to the ... of the embodiment of the present invention;
Figure 14 is the protocol integrated test system message format of user state information backed up in synchronization agreement according to the ... of the embodiment of the present invention
Schematic diagram;And
Figure 15 is the business datum message format of user state information backed up in synchronization agreement according to the ... of the embodiment of the present invention
Schematic diagram.
Specific implementation mode
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
The problem that user state information synchronizes in fusion device, this hair are cannot be satisfied for back mechanism in the related technology
Bright embodiment provides a kind of synchronization scheme of user state information, realizes and carries out active and standby election between multiple CDN units, goes forward side by side
Row user state information synchronizes, and realizes the quick detection of failure, is switched fast, and quickly taking over for business improves reliability, ensure
The business experience of user.
According to embodiments of the present invention, a kind of synchronizing device of user state information is provided.
Fig. 1 is the structure diagram of the synchronizing device of user state information according to the ... of the embodiment of the present invention, as shown in Figure 1, should
Device includes mainly:Determining module 10 establishes module 20 and synchronization module 30.Wherein it is determined that module 10, for determining in equipment
The role of each CDN units, wherein role includes:Primary CDN units, spare main CDN units and spare CDN units;Establish mould
Block 20 is connected with determining module 10, for establishing the message synchronization channel between primary CDN units and spare main CDN units;
Synchronization module 30 is connected with module 20 is established, for carrying out primary CDN units and spare main CDN by message synchronization channel
User state information between unit synchronizes.
Using the technical solution of the embodiment of the present invention, the same of the user state information of CDN units in fusion device is realized
Step, and then realize fastext and take over and disturbance switching, improve service reliability.
In an embodiment of the embodiment of the present invention, determining module 10 may include:Negotiation element, for according to pre-
If rule hold consultation between each CDN units;Determination unit, for determining primary CDN units, standby according to negotiation result
With main CDN units and spare CDN units.
Further, when negotiation element is held consultation according to default rule between each CDN units, each CDN is mono-
Each CDN units in member can be into each CDN units other CDN units send the election identification informations of the CDN units,
And receive the election identification information of other CDN units transmission.Each CDN units are according to the election identification information of itself and receive
Election identification information, determine the role of each CDN units.
In an embodiment of the embodiment of the present invention, each CDN units are with multicast mode into each CDN units
Other CDN units send the election identification information of the CDN units.
In embodiments of the present invention, election identification information includes but not limited to following one:Each CDN units it is preferential
Grade, the IP address of the MAC Address of each CDN units, the slot number of each CDN units, each CDN units.
In an embodiment of the embodiment of the present invention, establishing module 20 may include:First establishing unit, for building
Vertical connection between primary CDN units and spare main CDN units;Negotiation element, for carrying out primary CDN units and spare master
The negotiation of the application layer of CDN units;Second establishes unit, for establishing message synchronization channel according to the negotiation of application layer.
In an embodiment of the embodiment of the present invention, synchronization module 30 may include:First synchronization unit, for
Spare main CDN units send all user state informations that primary CDN units are currently safeguarded;Second synchronization unit, for examining
When measuring user state information in the presence of update, newer user state information is sent to spare main CDN units.
Further, above-mentioned apparatus can also include:First detection module is connected with determining module 10, for establishing
First testing mechanism, detects whether primary CDN units break down.Determining module 10 is additionally operable to detecting primary CDN units
In the case of failure, using spare main CDN units as new primary CDN units, and new spare main CDN units are elected.
Further, synchronization module 30, be additionally operable between new primary CDN units and new spare main CDN units into
Row user state information synchronizes.
In an embodiment of the embodiment of the present invention, above-mentioned apparatus can also include:Second detection module, with foundation
Module 20 is connected, and for establishing the second testing mechanism, whether detection message synchronization channel breaks down.Synchronization module 30, also
For after detecting that message synchronization channel is broken down and re-established, re-starting user state information synchronization.
In embodiments of the present invention, above-mentioned each CDN units can be peer-to-peer, the knot having the same on hardware
Structure has identical function on software.CDN units as primary CDN units can call other CDN units to provide CDN
Service, the unified interface as the service that is provided out.In the case where primary CDN units break down, spare main CDN units are straight
Change owner CDN units are taken over, as the unified interface for the service that is provided out, other CDN units are called to provide CDN service.
According to embodiments of the present invention, correspond to above-mentioned apparatus provided in an embodiment of the present invention, additionally provide a kind of user's shape
The synchronous method of state information.
Fig. 2 is the flow chart of the synchronous method of user state information according to the ... of the embodiment of the present invention, as shown in Fig. 2, the party
Method includes step S202 to step S206.
Step S202 determines the role of each CDN units in equipment, wherein role includes:Primary CDN units, spare master
CDN units and spare CDN units.
Step S204 establishes the message synchronization channel between primary CDN units and spare main CDN units.
Step S206 carries out the User Status between primary CDN units and spare main CDN units by message synchronization channel
Synchronizing information.
Using the technical solution of the embodiment of the present invention, the same of the user state information of CDN units in fusion device is realized
Step, and then realize fastext and take over and disturbance switching, improve equipment dependability.
Each step of the embodiment of the present invention is described in detail separately below.
(One)Step S202
In embodiments of the present invention, it holds consultation between each CDN units that can be in a device, determines that each CDN is mono-
The role of member, the role of CDN units includes primary CDN units, spare main CDN units and spare CDN units.Primary CDN units
As the unified interface for being provided out CDN service, dispatches each CDN units and CDN service is provided, spare main CDN units are used for
In the case that primary CDN units break down, directly as new primary CDN units, the scheduling work to each CDN units is completed
Make.
In an embodiment of the embodiment of the present invention, can according to default rule between each CDN units into
Row is negotiated, and primary CDN units, spare main CDN units and spare CDN units are determined according to negotiation result.
Further, other CDN units of each CDN units in each CDN units into each CDN units are sent every
The election identification information of a CDN units, and the election identification information of other CDN units transmission is received, each CDN units are according to certainly
The election identification information of body and the election identification information received determine primary CDN units, spare main CDN units and spare
CDN units.
In a preferred embodiment of the embodiment of the present invention, each CDN units are with multicast mode to each CDN units
In other CDN units send the election identification informations of each CDN units.Due to, there are multiple CDN units, passing through group in equipment
The mode broadcast can improve the efficiency of interaction between CDN units, reduce complexity.
Further, election identification information includes following one:The priority of each CDN units, each CDN units
The IP address of MAC Address, the slot number of each CDN units, each CDN units.
For example, CDN units one send election negotiation message using multicast mode to other CDN units, carry in the message
Itself equipment slot number information, such as:Slot number is A.CDN units two are sent to other CDN units using multicast mode and are selected
Negotiation message is lifted, carries the equipment slot number information of itself in the message, such as:Slot number is B.CDN units three use multicast
Mode sends election negotiation message to other CDN units, carries the equipment slot number information of itself in the message, such as:Slot position
Number be C.CDN units four send election negotiation message using multicast mode to other CDN units, carry itself in the message
Equipment slot number information, such as:Slot number is D.
CDN units one extract the equipment slot number of other side in the election negotiation message received, compared with the slot number of itself,
Such as:A is more than B, and A is more than C, and A is more than D, then it is assumed that itself is primary CDN units;And message is sent to other CDN units,
It itself is primary CDN units to notice.
CDN units two extract the equipment slot number of other side in the election negotiation message received, compared with the slot number of itself,
Such as:B is less than A, and B is more than C, and B is more than D, then it is assumed that itself is spare main CDN units, and sends message to other CDN units, leads to
It itself is spare main CDN units to accuse.
CDN units three extract the equipment slot number of other side in the election negotiation message received, compared with the slot number of itself,
Such as:C is less than A, and C is more than D less than B, C, then it is assumed that itself is spare CDN units, sends message to other CDN units, notice is certainly
As spare CDN units.
CDN units four extract the equipment slot number of other side in the election negotiation message received, compared with the slot number of itself,
Such as:D is less than A, and D is less than C less than B, D, then it is assumed that itself is spare CDN units, sends message to other CDN units, notice is certainly
As spare CDN units.
Certainly, other machineries of consultation, the embodiment of the present invention can also be used to focus in practical applications, negotiated
The role of CDN units is obtained, the role of CDN includes not only primary CDN units and spare CDN units, further includes spare main CDN mono-
Member, to when primary CDN units break down, avoid existing again directly by service switching to spare main CDN units
Primary CDN units are elected in spare CDN units, to avoid service disconnection.
In an embodiment of the embodiment of the present invention, it can establish between primary CDN units and spare main CDN units
Testing mechanism when the heartbeat message of primary CDN units is not detected in spare main CDN units, determine for example, heartbeat detection
Primary CDN units break down, and spare main CDN units are carried out between other CDN units directly as new primary CDN units
Negotiate, elects new spare main CDN units.
(Two)Step S204- steps S206
In embodiments of the present invention, after each CDN units determine self-role, primary CDN units and spare can be established
Message synchronization channel between main CDN units, to carry out the synchronization of user state information.Primary CDN units can tie up itself
The user state information of shield is synchronized to spare main CDN units.When primary CDN units break down, spare main CDN units can be with
Directly as new primary CDN units, dispatches each CDN units and be provided out CDN service.
In embodiments of the present invention, the step in the message synchronization channel between primary CDN units and spare main CDN units is established
Suddenly may include:The connection between primary CDN units and spare main CDN units is established, primary CDN units and spare master are carried out
The negotiation of the application layer of CDN units establishes message synchronization channel according to the negotiation of application layer.
After determining primary CDN units and spare main CDN units, into initial phase.In initial phase, establish primary
Connection between CDN units and spare main CDN units can be that primary CDN units actively establish company with spare main CDN units
It connects, can also be that spare main CDN units actively establish connection with primary CDN units.During establishing connection, it may be used
Corresponding security authentication mechanism, for example, Message Digest Algorithm 5(MD5)Certification etc..If connection is successfully established, into
Connection status.
In a preferred embodiment of the embodiment of the present invention, in connected status, primary CDN units and spare master
Connecting detection mechanism can be established between CDN units, for example, heartbeat detection, detects the state of connection, if it find that in connection
It is disconnected, then it return back to initial phase.
It is further to carry out application layer negotiation, capability negotiation, the negotiation of various parameters in connected status.;For example, branch
The type of service held, hypertext transfer protocol(Hypertext Transfer Protocol, referred to as http protocol), point arrives
Point(Peer to Peer, referred to as P2P)Deng.If negotiate successfully, enter established state, primary CDN units with it is spare
Message synchronization Path Setup between main CDN units is completed.
Further, may include by the step of message synchronization channel progress user state information synchronization:To spare master
CDN sends all user state informations that primary CDN units are currently safeguarded;And detecting user state information in the presence of more
When new, newer user state information is sent to spare main CDN units.
In embodiments of the present invention, spare main CDN units can send batch backup request to primary CDN units, primary
After CDN units receive batch backup request, batch backup request confirmation message is sent to spare main CDN units, by user's shape
State information package is sent to spare main CDN units.If user state information is more, can repeatedly transmit.It is sent completely
Afterwards, batch backup end message is sent to spare main CDN units.
Detecting that user state information deposits in the case of an update, primary CDN units can be sent out to spare main CDN units
Send newer user state information.For example, new user reaches the standard grade, customer service completes states such as closing etc., may be used in real time
Synchronous mode is synchronized to spare main CDN units.
In a preferred embodiment of the embodiment of the present invention, testing mechanism can also be established, detects primary CDN units
With the message synchronization channel between spare main CDN units.In the case where message synchronization channel is broken down, message is re-established
Synchronizing channel carries out user state information synchronization.
Further, between primary CDN units and spare main CDN units side testing mechanism and message synchronization channel detection
Mechanism is mutual indepedent.After determining primary CDN units and spare main CDN units in each CDN units, the first detection machine is established
System, detects whether primary CDN units break down;It, directly will be spare in the case where detecting that primary CDN units break down
Main CDN units elect new spare main CDN units as new primary CDN units.Primary CDN units and spare main CDN are mono-
Member is established after message synchronization channel, and the second testing mechanism is established, and whether detection message synchronization channel breaks down;It is detecting
In the case that message synchronization channel is broken down, message synchronization channel is re-established, re-starts user state information synchronization.
Further include after the new spare main CDN units of election:In new primary CDN units and new spare main CDN units
Between carry out user state information synchronization.
In embodiments of the present invention, include multiple CDN units in equipment, communication interface is provided between CDN units.It is each
CDN units, which are used equally for dispatching each CDN units, is provided out CDN service.However, the embodiment of the present invention and being not concerned with equipment
Concrete structure, the embodiment of the present invention focus on, elected between each CDN primary CDN units, spare main CDN units with
And spare CDN units, the user state information then carried out between primary CDN units and spare CDN units synchronize.And
In the case that primary CDN units break down, directly using spare main CDN units as new primary CDN units, and elect new
Spare main CDN units, then carry out user state information between new primary CDN units and new spare main CDN units
It is synchronous.
In order to make it easy to understand, with reference to the fusion device of the embodiment of the present invention, to the said program of the embodiment of the present invention
It is described.It should be noted that the embodiment of the present invention is not limited to the fusion device.
Fig. 3 is the schematic diagram of the network deployment of fusion device according to the ... of the embodiment of the present invention, as shown in figure 3, from system
See CDN and network fusion device can distributed deployment, but need to implement unified management and tune there are one central management system
Degree, implements unified Content Management, business monitoring, network management, the parsing of DNS and the scheduling of resource and load balancing etc..
The central management system of CDN is by the way of concentrating deployment, with domain name system(Domain Name System, letter
Referred to as DNS)Server, scheduling of resource and global load balancing(Global Service Load Balance, referred to as GSLB)
Systematic unity is disposed, and realization is managed and safeguards to the CDN units in the fusion device of one's respective area CDN and network, and business is suitable
Match and the scheduling of resource.The central management system of CDN can be used as independent system deployment, can also be with fusion device
Network management system is merged, as the component part of network management system, with network management system unified plan.
Fusion device has merged CDN functions and network function, uses CDN units to be user as content distribution nodes
Content distribution service is provided, network insertion and carrying service are provided to the user using network components.
The central management system of CDN units and CDN establish management passage and service channel, and network is realized using management passage
Daily maintenance management, the monitoring etc. of equipment realizes that content issues, the interaction etc. of business information using service channel.
Online from group, CDN functions can be with core router, the business router on network(For example, broad band remote connects
Enter server(Broadband Remote Access Server, referred to as BRAS)/ business router(Service
Router, referred to as SR), interchanger and packet data serving node(Packet Data Serving Node, referred to as
PDSN)/ ggsn(Gateway General Packet Radio Service
Support Node, referred to as GGSN)Etc. equipment merged.Since BRAS/SR, PDSN/GGSN are mutual network service controllings
Point device possesses the network state information of user, recommends CDN equipment and the fusion of BRAS/SR, PDSN/GGSN equipment, to realize
The application content based on user may be implemented by the collaboration of User Status in the collaboration of CDN User Status and network user's state
With the double shield of network quality, to improve user experience.
Fig. 4 is the schematic diagram of the internal interface of fusion device according to the ... of the embodiment of the present invention, as shown in figure 4, fusion device
Including network service unit, CDN units, master control/crosspoint.Network service unit is mainly used for providing network insertion to the user
And carrying service.CDN units are mainly used for providing a user content distribution service.Master control/crosspoint, including equipment master control list
Member and crosspoint, centralized management and the high speed of control and data for equipment exchange.
To meet inside equipment the fast and efficiently fast-forwarding of information processing, the interaction of signaling and flow, need
It is deployed with corresponding internal interface.It is deployed with internal interface between CDN units and master control/crosspoint, is used for CDN units and master
The information exchange etc. of information, monitoring information, service deployment etc. is managed between control.Network service unit and master control/friendship
It changes between unit and is deployed with internal interface, for being managed information, monitoring information, business between network service unit and master control
The information exchange etc. of deployment etc..Increase corresponding internal agreement interface between CDN units and network service unit, for using
Family state, service management and monitoring, the channel etc. of flow forwarding.Also increase corresponding internal agreement interface between CDN units, use
In service management, collaboration and monitoring, the access and interaction of business etc..
Fig. 5 is the logical architecture figure of CDN units according to the ... of the embodiment of the present invention, as shown in figure 5, fusion device may include it is more
A CDN units, each CDN units are the relationships of equity, but need to be uniformly coordinated, unification offer externally service, in unified progress
The scheduling in portion.
CDN units can be logically divided into:Scheduling unit, business service unit and User Status maintenance unit.Its
In, scheduling unit contains service access unit and traffic scheduling unit;Service access unit issues external address of service, with
Family client establishes application link, and maintenance application links.
Load balance scheduling is carried out by traffic scheduling unit after the foundation of user's application link, it is selected to provide business to the user
The business service unit of processing and content distribution service.After service access unit obtains the content access request of user, using interior
Portion interacts address and is communicated with selected business service unit, obtains the content needed for user, and pass through external address of service
Content is sent to user.
Business service unit includes Service Processing Unit, storage unit, wherein and storage unit can utilize storage inside,
Network small computer system interface can also be passed through(Internet Small Computer System Interface, letter
Referred to as iSCSI interfaces), fiber channel interface(Fibre Channel, referred to as FC interfaces), optical-fibre channel based on Ethernet
Interface(Fibre Channel over Ethernet, referred to as FCoE interfaces)External memory equipment is connected, realizes the expansion of capacity
Exhibition.Business service unit uniformly provides a user business by the tissue of system, abundant conformity of business operation processor, storage device
Processing and content distribution service;By the service access unit communication of internal interaction address and scheduling unit, provide needed for user
Content.Inside business service unit, it can implement further division according to the tissue and dispatching principle of itself and adjust
Degree, to improve treatment effeciency.
User Status maintenance unit is used to safeguard the status information of user, it may include the attribute of user, the content of access are used
The application link information at family, the contents usage information of user, obtained service policy information of user etc..
Fusion device may include multiple CDN units(It can be presented as multiple CDN business boards), multiple CDN units need to unite
One coordinates, and United Dispatching and load balancing are unified externally to provide service;By unified tissue, the quick of failure can be more realized
It switches, improves reliability.
Interaction between different CDN units needs the central switching network inside by equipment.Different CDN units have
Scheduling unit needs to use unified scheduling unit due to needing to provide service to the user using unified external address of service
It is scheduled, needs to carry out active and standby election among each scheduling unit on respective independent, equity each CDN units, really
Fixed primary scheduling unit, it is unified to issue external address of service, using service access unit and the user client of primary scheduling unit
Application link is established at end, and overall scheduling and load balancing are carried out using the traffic scheduling unit of primary scheduling unit;It can basis
The attribute of user, the information such as content of access are that user selectes corresponding business service unit, and business service unit can and be led
It is located at same CDN units with scheduling unit, also can be located at different CDN units with primary scheduling unit.Unified scheduling so that
Business service unit between different CDN units can fully improve device efficiency with the calling of flexible allocation, can more provide more preferable
Redundancy backup ability, improve the reliability of equipment.
In order to realize that user's application link is not interrupted, and business is not interrupted in primary CDN cell failures, backup is needed to lead
With the user state information in CDN units.
Fig. 6 is the schematic diagram for the user state machine that CDN units according to the ... of the embodiment of the present invention are safeguarded, as shown in fig. 6, this shape
The user state machine that the network service unit of state machine and fusion device is safeguarded is different, is the state used for the content of user
Machine, specific information may include the attribute of user(Such as:Member, non-member), the content that user accesses, the application link letter of user
Breath, user content use information, the service policy information etc. of user.According to the content service condition of user, state machine may include
Following state:Open state, normal state, the content conditions of support, network guarantee state, content and the network association conditions of support,
Closed state.
Mode based on user state machine carries out the maintenance of User Status, can be more complete, safeguards user's more perfectly
Application message;State machine based on user carry out user synchronizing information and backup, it can be achieved that in primary CDN cell failures,
The seamless switching of customer service, quickly taking over for business, promotes the business experience of user.
Fig. 7 is the schematic diagram of the active and standby way to elect of CDN units according to the ... of the embodiment of the present invention, as shown in fig. 7, due to melting
Close in equipment that there may be multiple CDN units, and each CDN units be it is independent, it is reciprocity, be owned by corresponding scheduling
Unit, Service Processing Unit and User Status maintenance unit, can externally provide service, need unified external offer service, unified
When scheduling, need to carry out active and standby election.
Active and standby election is present between multiple CDN units, and there is one-to-many for the message interaction of mode of unicast and negotiation
The problem of, the mode that unicast connects entirely, in the case of more than the CDN units, interaction is complicated, and the synchronizations of data, the synchronization of signaling
Complexity is easy error.Thus, in embodiments of the present invention, by the way of multicast between the scheduling unit of each CDN units into
The active and standby election of row and negotiation.
In practical applications, specifically reserved choosing of the multicast group address as active and standby scheduling unit can be specified inside equipment
Lift dedicated multicast group.The active and standby unit electoral machinery of the embodiment of the present invention is described below.
(One)It elects priority-based
In order to realize in case of a fault, business can quickly be taken over, failure fast switching, can elect it is primary
When CDN units, while electing spare main CDN units so that in primary CDN cell failures, spare main CDN units can be straight
Connect and upgrade to primary CDN units, it is user service to take over primary CDN units, avoid the need for re-electing primary CDN units it
Afterwards, then taking over for business is carried out, improves the speed of service switching.
The synchronization of user state information is based on the active and standby election results between CDN units.It is completed in election, it is determined that primary
After CDN units and spare main CDN units, by user state information backup protocol, the status information of user from primary CDN
Unit backup is to spare main CDN units.
Realize that the advantage of active and standby election is also resided in using multicast mode, in primary CDN cell failures, spare main CDN
Unit can be automatically upgraded to primary CDN units, while triggering re-starts multicast neighbor discovery, re-elect automatically new standby
With main CDN units, the synchronization of user state information is re-started automatically, re-enters into stable state.Only remaining single a CDN
Also external service can be provided in the case of unit, except not all CDN units break down.
In order to realize unified scheduling, unified external service, firstly the need of choosing of holding consultation between different CDN units
It lifts, elects primary CDN units, provide unified access and scheduling to the user.Active and standby election between CDN units, can basis
Configuration preference level carries out;Configuration preference level may make the active and standby election between different CDN units more flexible, more controllably;It can pass through
Different priority parameters configurations is issued to CDN units, realizes the selection and control of active and standby CDN units.
Since the fusion device of CDN and network is there may be multiple CDN units, thus when negotiating active and standby CDN units, be
It is elected between mostly each CDN units, to avoid excessive unicast from interacting, negotiation packet can be used multicast mode and send and receive.
In order to realize being switched fast for business, the reliability of equipment is improved, in active and standby election, is electing primary CDN
While unit, suboptimum, spare master unit are also selected;In primary CDN cell failures, to may be used standby
Master unit is directly taken over, and realizes being switched fast for business, no longer needs to carry out to carry out business again after active and standby election to take over, can be big
Width reduces the time of service switching, improves equipment dependability.
Fig. 8 is the flow diagram according to the ... of the embodiment of the present invention that active and standby election is carried out according to configuration election priority, such as
It is specific to elect flow as follows shown in Fig. 8:
Step 1, CDN units one send election negotiation message using multicast mode to other CDN units, carry in the message
Itself election priority, such as:Priority is A;
Step 2, CDN units two send election negotiation message using multicast mode to other CDN units, carry in the message
Itself election priority, such as:Priority is B;
Step 3, CDN units three send election negotiation message using multicast mode to other CDN units, carry in the message
Itself election priority, such as:Priority is C;
Step 4, CDN units four send election negotiation message using multicast mode to other CDN units, carry in the message
Itself election priority, such as:Priority is D;
Step 5, CDN units one extract the election priority of other side in the election negotiation message received, the election with itself
Priority ratio is compared with such as:A is more than B, and A is more than C, and A is more than D;Then think itself to be primary CDN units;And it is mono- to other CDN
Member sends message, and it itself is primary CDN units to notice;
Step 6, CDN units two extract the election priority of other side in the election negotiation message received, the election with itself
Priority ratio is compared with such as:B is less than A, and B is more than C, and B is more than D, then it is assumed that itself is spare main CDN units, and to other CDN units
Message is sent, it itself is spare main CDN units to notice;
Step 7, CDN units three extract the election priority of other side in the election negotiation message received, the election with itself
Priority ratio is compared with such as:C is less than A, and C is less than B, and C is more than D, then it is assumed that itself is spare CDN units, and is sent out to other CDN units
Message is sent, it itself is spare CDN units to notice;
Step 8, CDN units four extract the election priority of other side in the election negotiation message received, the election with itself
Priority ratio is compared with such as:D is less than A, and D is less than B, and D is less than C, then it is assumed that itself is spare CDN units, and is sent out to other CDN units
Message is sent, it itself is spare CDN units to notice.
(Two)Election based on equipment slot number
In order to realize unified scheduling, unified external service, firstly the need of choosing of holding consultation between different CDN units
It lifts, elects primary CDN units, provide unified access and scheduling to the user.Active and standby election between CDN units, can basis
Equipment slot number where CDN units conducts an election;Since equipment slot number is fixed, without carrying out extra configuration, because
And it can be not necessarily to manual intervention as the way to elect of acquiescence, simply, reliably.
Since there may be multiple CDN units for the fusion device of CDN and network, thus it is more when the active and standby unit of negotiation
It is elected between a CDN units, to avoid excessive unicast from interacting, election negotiation packet can be used multicast mode and send and receive.
In order to realize being switched fast for business, the reliability of equipment is improved, in active and standby election, is electing primary CDN
While unit, suboptimum, spare master unit are also selected;In primary CDN cell failures, to may be used standby
Master unit is directly taken over, and realizes being switched fast for business, no longer needs to carry out to carry out business again after active and standby election to take over, can be big
Width reduces the time of service switching, improves equipment dependability.
Fig. 9 is the flow diagram that basis according to the ... of the embodiment of the present invention carries out active and standby election for slot number, such as Fig. 9 institutes
Show, it is specific to elect flow as follows:
Step 1, CDN units one send election negotiation message using multicast mode to other CDN units, carry in the message
Itself equipment slot number information, such as:Slot number is A;
Step 2, CDN units two send election negotiation message using multicast mode to other CDN units, carry in the message
Itself equipment slot number information, such as:Slot number is B;
Step 3, CDN units three send election negotiation message using multicast mode to other CDN units, carry in the message
Itself equipment slot number information, such as:Slot number is C;
Step 4, CDN units four send election negotiation message using multicast mode to other CDN units, carry in the message
Itself equipment slot number information, such as:Slot number is D;
Step 4, CDN units one extract the equipment slot number of other side in the election negotiation message received, the slot position with itself
Number compare, such as:A is more than B, and A is more than C, and A is more than D, then it is assumed that itself is primary CDN units;And it is sent out to other CDN units
Message is sent, it itself is primary CDN units to notice;
Step 5, CDN units two extract the equipment slot number of other side in the election negotiation message received, the slot position with itself
Number compare, such as:B is less than A, and B is more than C, and B is more than D, then it is assumed that itself is spare main CDN units, and is sent to other CDN units
Message, it itself is spare main CDN units to notice;
Step 6, CDN units three extract the equipment slot number of other side in the election negotiation message received, the slot position with itself
Number compare, such as:C is less than A, and C is less than B, and C is more than D, then it is assumed that and itself it is spare CDN units, message is sent to other CDN units,
It itself is spare CDN units to notice;
Step 7, CDN units four extract the equipment slot number of other side in the election negotiation message received, the slot position with itself
Number compare, such as:D is less than A, and D is less than B, and D is less than C, then it is assumed that and itself it is spare CDN units, message is sent to other CDN units,
It itself is spare CDN units to notice.
In addition to carrying out the election of active and standby unit above by mode, the mode of equipment slot number of configuration election priority,
Can also be by the MAC Address of CDN units, IP address, equipment home address etc. conducts an election.
After the completion of active and standby election, the user state information between primary CDN units and spare main CDN units can be carried out
It is synchronous.The each stage synchronized below to user state information is described.
Figure 10 is that the schematic diagram according to the ... of the embodiment of the present invention for establishing message synchronization channel describes use as shown in Figure 10
The state machine and flow that family status information synchronizing channel is established.
The status information synchronization of user is implemented after active and standby election.In primary CDN units and spare main CDN units
Between synchronize, the user state information that primary CDN units are safeguarded is synchronized on spare main CDN units.
After CDN units complete active and standby election, it is determined that primary CDN units and spare main CDN units.At this point, primary CDN
Unit and spare main CDN units begin setting up message synchronization channel, are used for the synchronization of user state information;Initially enter initialization
In the stage, in initial phase, primary CDN units are attempted and spare main CDN units establish the link, and link, which is successfully established, then to be entered
Connection status;During establishing the link, corresponding security authentication mechanism may be used, such as:Md5 authentication etc..
The existing connection in message synchronization channel between connected status, primary CDN units and spare main CDN units,
There is corresponding heartbeat that message, the state in detection message synchronization channel is maintained such as to find message synchronization channel disconnecting, then retract
To init state.
In connected status, the negotiation of application, the negotiation of ability, the negotiation of various parameters are further carried out;Such as:
The type of service of support, http, P2P etc.;Negotiate successfully, then enters established state, so far primary CDN units and spare CDN
The message channel of unit is successfully established.
In established state, in case of relevant configuration variation, Parameters variation etc. then return back to connected status, weight
It is new to carry out parameter negotiation.In established state, such as finds message synchronization channel disconnecting, then return back to init state.
Figure 11 is the schematic diagram for the state machine that user state information according to the ... of the embodiment of the present invention synchronizes, as shown in figure 11,
Describe the processing procedure and state machine of message synchronization.
After message synchronization Path Setup, primary CDN units and spare main CDN unit startings message synchronization process, into
Enter init state.
In init state, the main and standby relation for confirming both sides is first had to, since the synchronization of message is based on the active and standby of CDN units
Election, thus, primary CDN units active is noticed to spare main CDN units based on itself, and spare main CDN units receive notice and disappear
After breath, it itself is standby notice message to be sent to primary CDN units;So far, main and standby relation determines, both sides enter active and standby confirmation shape
State;Both sides are ready for user state information synchronization;It malfunctions as activestandby state confirms, then maintains init state.
Into after active and standby acknowledgement state, spare main CDN units initiate batch backup request to primary CDN units;Primary CDN
After unit receives batch backup request, batch backup request confirmation message is sent to spare main CDN units, and enter message synchronization
User state information is packaged to spare main CDN units and sends by state, since user state information is more, can be several times
It transmits, after being sent, batch backup end message is sent to spare main CDN units;Spare main CDN units receive primary
The batch backup request confirmation message that CDN units are sent, inbound message synchronous regime, and receive the use that primary CDN units are sent
Family status information is simultaneously handled.
Spare main CDN units receive the batch backup end message that primary CDN units are sent, and are sent to primary CDN units
Batch backup terminates confirmation message, and enters and synchronously complete state.Primary CDN units receive batch that spare main CDN units are sent
Backup end confirmation message is measured, into synchronously completing state.
Such as during message synchronization, there is exception and failure of data synchronization, then return back to active and standby acknowledgement state, again
Start synchronized process.Under the state that synchronously completes, the User Status on primary CDN units changes, such as:On new user
Line, customer service complete closed state etc., the mode of real-time synchronization can be used, be synchronized on spare main CDN units.It is same in information
Under step state, such as find that message synchronization channel link interrupts, then return back to init state;Under the state that synchronously completes, such as send out
Existing message synchronization channel link interrupts, then return back to init state.
In order to realize that the quick detection of primary CDN cell failures, business are switched fast, in primary CDN units and spare
Heartbeat detection mechanism is disposed between main CDN units, this heartbeat detection is different from the heartbeat detection in synchronizing information channel;This heartbeat
It is detected as the heartbeat detection individually disposed between primary CDN units and spare main CDN units, and the heartbeat in synchronizing information channel
Detection is only used for the detection in synchronizing information channel, avoids influencing each other.
Figure 12 is the schematic diagram of heartbeat detection according to the ... of the embodiment of the present invention, as shown in figure 12, is negotiated between CDN units
After election is completed, it is determined that primary CDN units and spare main CDN units, primary CDN units are established with spare main DN units
Heartbeat message detects, and sends heartbeat detection message according to the fixed cycle, may be set to three fixed cycles can't detect heartbeat report
Text then judges other side's failure, itself upgrades to primary CDN units, realizes the switching of business;And itself is noticed by multicast mode
It for primary CDN units, and triggers other CDN units and re-starts election, elect new spare main CDN units.
After electing new spare main CDN units in other CDN units, new primary CDN units and new spare master
Heartbeat detection mechanism is established between CDN units again.New primary CDN units and new spare main CDN units also re-establish
User Status message synchronization channel, and re-start the synchronization of user state information.Reenter stable state.
In practical applications, the message format of above-mentioned processing can be set, below to the message format of the embodiment of the present invention
It is illustrated.
Figure 13 is the schematic diagram of the message format of User Status message synchronization backup protocol according to the ... of the embodiment of the present invention, such as
Shown in Figure 13, message is divided into four fields, respectively version number, type, message length, information field.Wherein, version number, word
Segment length is 1 byte, is used for identity protocol current version number, may be defined as 0x01, indicates to be currently version one;Type, field
Length is 1 byte, is used for the type of identification message, defines two types at present:Respectively 0x01, expression message are agreement control
Message processed;0x02, expression message are business datum message;Message length, field length are 2 bytes, indicate the length of entire message
Degree;Information field, for carrying specific message information content;Information can be further defined in this field according to specific implementation
The format of content.
In backed up in synchronization protocol massages, type field 0x01, then it represents that the message is protocol integrated test system message.In agreement
The information field of control message can be segmented further, different protocol integrated test system type of messages be defined, to meet different agreement control
The demand of system.Figure 14 is the protocol integrated test system message format of user state information backed up in synchronization agreement according to the ... of the embodiment of the present invention
Schematic diagram, as shown in figure 14, the information field of protocol integrated test system message are divided into three fields, respectively type code, write down characters in advance
Section and data field.
Type code, length are 2 bytes, and for identifying specific protocol control message type, the type defined at present is such as
Under:0x01, activestandby state notice, the notice of the active and standby information of user determine main and standby relation;0x02, backup capabilities notice, for assisting
The duration of quotient's heartbeat message, interval, time-out time;The user state information backup of which type is supported in notice, such as:Http,
FTP, P2P etc.;The maximum number of user etc. of support;0x03, heartbeat message, the heartbeat for message synchronization channel between active and standby unit
Detection, the connection status in quick fault testing message synchronization channel;0x04, batch backup request, for spare main CDN units in
Primary CDN units are sent, all online user's status informations on the primary CDN units of acquisition request;0x05, batch backup knot
Beam needs repeatedly to be transmitted since the data volume of batch backup is big, thus needs after being sent completely, to spare master
CDN units send end message, to indicate that the user data of batch backup has been sent.
Reserved field, length are 2 bytes, are temporarily reserved field.Data field, for carrying specific message information,
The format of the information content can be further defined in this field according to specific implementation.
In backed up in synchronization protocol massages, type field 0x02, then it represents that the message is business datum message, in business
The information field of data message can be segmented further, define different business datum type of messages.Figure 15 is according to the present invention
The schematic diagram of the business datum message format of the user state information backed up in synchronization agreement of embodiment, as shown in figure 15, business number
It is further divided into three fields, type code, action type and data field according to message.
Wherein, type code, length are that 2 bytes can be defined as follows three kinds for identifying specific service application type
Type of service:0x01 identifies http service applications;0x02 identifies ftp business application;0x03 identifies P2P service applications.Operation
Type, length are 2 bytes, identify specific action type, for identifying the operation carried out to user state information, can be defined
Following action type:0x01, user information addition;0x02, user information are deleted;0x03, user information update;0x04, user
Information inquiry;0x05, Query Information return.Data field can be according to tool in this field for carrying specific message information
Body realizes the format for further defining the information content.
It can be seen from the above description that the present invention realizes following technique effect:Using multicast mode multiple
Active and standby election is carried out between CDN units, determines primary CDN units and spare main CDN units.Extroversion is used by primary CDN units
Family provides application link, internally carries out unified scheduling, and according to the state machine for safeguarding user using situation of user.
User Status message synchronization channel is established between primary CDN units and spare main CDN units, the status information of user is synchronized standby
Part arrives spare main CDN units, and when primary CDN cell failures, the business of user seamless can be switched fast, and not influence user's industry
It make sures use, improves user experience.Meanwhile when primary CDN cell failures, it is mono- that spare main CDN units upgrade to new primary CDN
After member, can automatic trigger in spare CDN units, re-elect out new spare main CDN units, and re-start User Status
The synchronization of information improves the reliability of business.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be with different from shown in sequence execution herein
The step of going out or describing, either they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (16)
1. a kind of synchronous method of user state information, which is characterized in that including:
Determine the role of each content distributing network CDN units in equipment, wherein the role includes:It is primary CDN units, standby
With main CDN units and spare CDN units, wherein the spare main CDN units are elected from the spare CDN units
, and the priority of spare CDN units described in the priority ratio of the spare main CDN units is high;
Establish the message synchronization channel between the primary CDN units and the spare main CDN units;
The User Status between the primary CDN units and the spare main CDN units is carried out by the message synchronization channel
Synchronizing information;
Wherein, the message synchronization channel between the primary CDN units and the spare main CDN units is established, including:Establish institute
State the connection between primary CDN units and the spare main CDN units;Carry out the primary CDN units and the spare main CDN
The negotiation of the application layer of unit;The message synchronization channel is established according to the negotiation of the application layer.
2. according to the method described in claim 1, it is characterized in that, determining that the role of each CDN units in equipment includes:
It is held consultation between each CDN units according to default rule;
The primary CDN units, the spare main CDN units and the spare CDN units are determined according to negotiation result.
3. according to the method described in claim 2, it is characterized in that,
Held consultation between each CDN units according to default rule including:Each of described each CDN units
Other CDN units of CDN units into each CDN units send the election identification information of each CDN units, and connect
Receive the election identification information that other described CDN units are sent;
Determine that the primary CDN units, the spare main CDN units and the spare CDN units include according to negotiation result:Institute
Each CDN units are stated according to the election identification information of itself and the election identification information received, determine that the primary CDN is mono-
First, the described spare main CDN units and the spare CDN units.
4. according to the method described in claim 3, it is characterized in that, each CDN units in each CDN units are to described
Other CDN units in each CDN units send the election identification information of each CDN units, including:
Each CDN units send each CDN with other CDN units of multicast mode into each CDN units
The election identification information of unit.
5. according to the method described in claim 3, it is characterized in that, the election identification information includes following one:It is described each
The slot position of the priority of a CDN units, the MAC address of each CDN units, each CDN units
Number, the IP address of each CDN units.
6. according to the method described in claim 1, it is characterized in that, carrying out the primary CDN by the message synchronization channel
User state information between unit and the spare main CDN units is synchronous, including:
All user state informations that the primary CDN units are currently safeguarded are sent to the spare main CDN;And
When detecting that user state information has update, newer user state information is sent to the spare main CDN units.
7. method according to any one of claim 1 to 6, which is characterized in that
After determining primary CDN units and spare main CDN units in each CDN units, further include:Establish the first detection machine
System, detects whether the primary CDN units break down;
In the case where detecting that the primary CDN units break down, directly using the spare main CDN units as new master
With CDN units, and elect new spare main CDN units.
8. the method according to the description of claim 7 is characterized in that further including after the spare main CDN units of election newly:
The user state information synchronization is carried out between the new primary CDN units and the new spare main CDN units.
9. method according to any one of claim 1 to 6, which is characterized in that
The primary CDN units are established with the spare main CDN units after message synchronization channel, further include:Establish the second inspection
Survey mechanism, detects whether the message synchronization channel breaks down;
After detecting that the message synchronization channel is broken down and re-established, it is same to re-start the user state information
Step.
10. a kind of synchronizing device of user state information, which is characterized in that including:
Determining module, the role for determining each CDN units in equipment, wherein the role includes:It is primary CDN units, standby
With main CDN units and spare CDN units, wherein the spare main CDN units are elected from the spare CDN units
, and the priority of spare CDN units described in the priority ratio of the spare main CDN units is high;
Module is established, for establishing the message synchronization channel between the primary CDN units and the spare main CDN units;
Synchronization module, for by the message synchronization channel carry out the primary CDN units and the spare main CDN units it
Between user state information synchronize;
Wherein, the module of establishing is additionally operable to establish the connection between the primary CDN units and the spare main CDN units;
Carry out the negotiation of the primary CDN units and the application layer of the spare main CDN units;It is established according to the negotiation of the application layer
The message synchronization channel.
11. device according to claim 10, which is characterized in that the determining module includes:
Negotiation element, for being held consultation between each CDN units according to default rule;
Determination unit, for determining the primary CDN units, spare main CDN units and described standby according to negotiation result
With CDN units.
12. device according to claim 10, which is characterized in that the module of establishing includes:
First establishing unit, for establishing the connection between the primary CDN units and the spare main CDN units;
Negotiation element, the negotiation for carrying out the primary CDN units and the application layer of the spare main CDN units;
Second establishes unit, for establishing the message synchronization channel according to the negotiation of the application layer.
13. device according to claim 10, which is characterized in that the synchronization module includes:
First synchronization unit, for sending all users that the primary CDN units are currently safeguarded to the spare main CDN units
Status information;
Second synchronization unit, for when detecting that user state information has update, being sent more to the spare main CDN units
New user state information.
14. the device according to any one of claim 11 to 13, which is characterized in that
Described device further includes:Whether first detection module detects the primary CDN units for establishing the first testing mechanism
It breaks down;
The determining module is additionally operable in the case where detecting that the primary CDN units break down, by the spare master
CDN units elect new spare main CDN units as new primary CDN units.
15. device according to claim 14, which is characterized in that the synchronization module is additionally operable to described new primary
The user state information synchronization is carried out between CDN units and the new spare main CDN units.
16. the device according to any one of claim 10 to 13, which is characterized in that
Described device further includes:Whether second detection module detects the message synchronization channel for establishing the second testing mechanism
It breaks down;
The synchronization module is additionally operable to after detecting that the message synchronization channel is broken down and re-established, re-starts
The user state information synchronizes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310027555.0A CN103117876B (en) | 2013-01-24 | 2013-01-24 | The synchronous method and device of user state information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310027555.0A CN103117876B (en) | 2013-01-24 | 2013-01-24 | The synchronous method and device of user state information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103117876A CN103117876A (en) | 2013-05-22 |
CN103117876B true CN103117876B (en) | 2018-10-26 |
Family
ID=48416155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310027555.0A Active CN103117876B (en) | 2013-01-24 | 2013-01-24 | The synchronous method and device of user state information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103117876B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200033B (en) * | 2013-03-21 | 2016-09-07 | 中兴通讯股份有限公司 | CDN and network integration system and the electoral machinery of primary, spare scheduling unit thereof |
CN104283948B (en) * | 2014-09-26 | 2018-12-07 | 东软集团股份有限公司 | Server cluster system and its implementation of load balancing |
CN104539442B (en) * | 2014-11-21 | 2018-04-20 | 华为技术有限公司 | For improving method, the network equipment and the system of reliability |
CN104486252B (en) * | 2014-12-31 | 2019-06-04 | 海尔优家智能科技(北京)有限公司 | A kind of method and device of thin-client access standard client |
CN105872614A (en) * | 2016-04-12 | 2016-08-17 | 乐视控股(北京)有限公司 | Live stream switching method and device |
CN107231436B (en) | 2017-07-14 | 2021-02-02 | 网宿科技股份有限公司 | Method and device for scheduling service |
CN107733684B (en) * | 2017-08-31 | 2021-02-09 | 北京宇航系统工程研究所 | Multi-controller computing redundancy cluster based on Loongson processor |
CN107733728B (en) * | 2017-11-30 | 2021-07-02 | 新华三技术有限公司 | Multi-machine backup method and device |
CN108600040B (en) * | 2018-03-16 | 2022-03-15 | 国电南瑞科技股份有限公司 | Distributed system node fault detection method based on high-availability detection node |
CN111224935A (en) * | 2019-11-01 | 2020-06-02 | 杭州迪普科技股份有限公司 | Synchronization method and device for user login state |
CN111464585B (en) * | 2019-12-05 | 2021-09-07 | 厦门靠谱云股份有限公司 | Multi-cloud-based high-availability CDN service system |
CN113206798B (en) * | 2021-07-05 | 2021-09-03 | 北京简网科技有限公司 | Method, device and system for processing session flow |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136730A (en) * | 2007-10-19 | 2008-03-05 | 武汉烽火网络有限责任公司 | Credible synchronization method of distributed network equipment |
CN101651553A (en) * | 2009-09-03 | 2010-02-17 | 华为技术有限公司 | User side multicast service primary and standby protecting system, method and route devices |
CN102083136A (en) * | 2009-11-30 | 2011-06-01 | 杭州华三通信技术有限公司 | Wireless network control method and wireless controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8166185B2 (en) * | 2002-03-05 | 2012-04-24 | Hewlett-Packard Development Company, L.P. | System and method for enterprise software distribution |
-
2013
- 2013-01-24 CN CN201310027555.0A patent/CN103117876B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136730A (en) * | 2007-10-19 | 2008-03-05 | 武汉烽火网络有限责任公司 | Credible synchronization method of distributed network equipment |
CN101651553A (en) * | 2009-09-03 | 2010-02-17 | 华为技术有限公司 | User side multicast service primary and standby protecting system, method and route devices |
CN102083136A (en) * | 2009-11-30 | 2011-06-01 | 杭州华三通信技术有限公司 | Wireless network control method and wireless controller |
Also Published As
Publication number | Publication date |
---|---|
CN103117876A (en) | 2013-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103117876B (en) | The synchronous method and device of user state information | |
US11902086B2 (en) | Method and system of a dynamic high-availability mode based on current wide area network connectivity | |
RU2620995C2 (en) | Method and system for distributed resilient network interconnect (drni) status update | |
US10270658B2 (en) | Zero touch configuration and synchronization of a service appliance in a network environment | |
CN104488238B (en) | The system and method controlled for cluster link aggregation in network environment | |
EP2426827B1 (en) | Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server | |
CN105453487B (en) | Method, apparatus and medium for the dual-homed deployment in data center environment | |
CN101217402B (en) | A method to enhance the reliability of the cluster and a high reliability communication node | |
CN103744809B (en) | Vehicle information management system double hot standby method based on VRRP | |
EP1982447B1 (en) | System and method for detecting and recovering from virtual switch link failures | |
US9385944B2 (en) | Communication system, path switching method and communication device | |
CN105450779B (en) | The method of one household appliance connection multiserver | |
WO2012013050A1 (en) | Method and server used for information synchronization between master equipment and standby equipment | |
WO2014176975A1 (en) | Method and system for information interaction among systems in the same end in drni | |
CN105340230A (en) | Virtual chassis topology management | |
CN103259685A (en) | Method for detecting link failures and network equipment | |
CN105763471A (en) | Link management method, device and system in virtual machine environment | |
CN106470121B (en) | Upgrade method, device and the VSU system of virtual switch unit VSU system | |
CN112769614B (en) | Automatic management method of VPN (virtual private network) on demand and intercommunication system of heterogeneous network | |
CN109982447A (en) | A kind of networking method of wireless network, system and wireless aps | |
Wang et al. | A multi-domain SDN scalability architecture implementation based on the coordinate controller | |
CN101340339A (en) | Wideband access server cluster system and apparatus | |
CN107733727B (en) | Zero configuration method, device and equipment | |
EP1712067B1 (en) | A method, apparatus and system of organizing servers | |
WO2015101100A1 (en) | Network device and service processing method in network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |