CN103117876A - User state information synchronizing method and device - Google Patents

User state information synchronizing method and device Download PDF

Info

Publication number
CN103117876A
CN103117876A CN2013100275550A CN201310027555A CN103117876A CN 103117876 A CN103117876 A CN 103117876A CN 2013100275550 A CN2013100275550 A CN 2013100275550A CN 201310027555 A CN201310027555 A CN 201310027555A CN 103117876 A CN103117876 A CN 103117876A
Authority
CN
China
Prior art keywords
unit
cdn
subsequent use
primary
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.)
Granted
Application number
CN2013100275550A
Other languages
Chinese (zh)
Other versions
CN103117876B (en
Inventor
黄孙亮
陈建业
吴萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310027555.0A priority Critical patent/CN103117876B/en
Publication of CN103117876A publication Critical patent/CN103117876A/en
Application granted granted Critical
Publication of CN103117876B publication Critical patent/CN103117876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses user state information synchronizing method and device. The user state information synchronizing method includes steps of determining roles of various CDN (content delivery network) units including a mainly-used CDN unit, a standby main CDN unit and a standby CDN unit in equipment, establishing an information synchronizing channel between the mainly-used CDN unit and the standby main CDN unit; and synchronizing user state information between the mainly-used CDN unit and the standby main CDN unit via the information synchronizing channel. By the user state information synchronizing method and device, quick service alternation and fault rearrangement can be realized, and service reliability is improved.

Description

The method for synchronous of user state information and device
Technical field
The present invention relates to the communications field, in particular to a kind of method for synchronous and device of user state information.
Background technology
In current Internet industry chain, telecom operators provide services on the Internet, ICP (Internet Content Provider, referred to as ICP)/(the Internet Service Provider of ISP, referred to as ISP) application service is provided, isolate fully between the two.Telecom operators can't affect and control application service, and ICP/ISP then can't perception and control network.And the user affects the two large factors that mainly contain that the user experiences: application system and network when using application service.Many times, user's the network bandwidth is enough, and network quality is also fine, but the performance of application system is not enough, and customer satisfaction system service can't be provided; And fine in the application system quality, when can be the user and offering high-quality service, user's the network bandwidth is not enough, and network quality is poor.
As seen, application system and network are indispensable.Only have both combinations, ensure simultaneously, could fundamentally solve the problem that the customer service quality can't ensure.Thereby, the present invention proposes the fusion device of a kind of content distributing network (Content Delivery Network is referred to as CDN) and network, the content distribution nodes of CDN and the network equipment are merged, as an important component part of the network equipment.Fusion device also can provide content distribution service for user's application when providing services on the Internet for the user; And by safeguarding that in the CDN unit of fusion device corresponding user content uses state machine, the interlock by state machine and Network unit can realize for the specific user, at special time period, for certain content, carries out the double shield of network and content.Thereby promoting the user experiences.
In present communication network, there is corresponding technology to realize the Hot Spare of user network connection status, mainly be by between two network service controlling equipment, setting up corresponding information synchronization passage, in real time user's network state information is carried out synchronously, and the mode that adopts Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol is referred to as VRRP) is carried out the heartbeat detection between host apparatus and the stand-by equipment.When host apparatus breaks down, stand-by equipment can fast detecting arrive, and the professional switching of realization, because stand-by equipment is synchronous user's network state information in advance, can directly take over host apparatus and provide network connection service for the user, need not the user and again initiate network connection, thereby realize the seamless switching of network failure, the user is the sensing network fault not, thereby has ensured user's experience.
And link aspect in user's application layer, equally also need to have corresponding mechanism to protect.Satisfy when breaking down, user's application link is not interrupted, and the business that does not affect the user is used.Present CDN system, application layer SiteServer LBS do not have user state machine mostly, and the mode that only adopts the backup user to link session status realizes backup.Simultaneously, present CDN system, the application system that adopts the application layer load equalizer to build, its professional scheduling unit separates with the industry service unit, generally is deployed on the different servers, is tandem relation.The general active and standby mode of two-shipper that adopts is disposed Load Balance Unit, and the business service unit adopts the mode of multistage cluster to dispose.
And in the fusion device of CDN and network, may exist more than two CDN unit, be not limited in the standby mode of two one masters one; And the CDN unit has comprised the function of scheduling unit and business service unit.Therefore, be not one in front and one in back, be distributed in the distinct device, but merge, each CDN unit is the relation of equity.
The architecture of fusion device has determined that existing man-to-man back mechanism can't satisfy the demand that simultaneous user's state information, realization fastext are taken in fusion device.Fusion device needs a kind of energy to support a plurality of CDN unit, intelligence is carried out active and standby election, and carry out on the basis of active and standby election user state information synchronously, simultaneously can in situation about breaking down, can automatically realize disturbance switching, and after switching, can re-start active and standby election, carry out the method for the re-synchronization of user state information.Thereby can improve professional reliability.
Summary of the invention
Can't satisfy the synchronous problem of user state information in the fusion device for the back mechanism in the correlation technique, the invention provides a kind of method for synchronous and device of user state information, to address the above problem at least.
According to an aspect of the present invention, provide a kind of method for synchronous of user state information, having comprised: determine the role of each CDN unit in the equipment, wherein, described role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit; Set up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit; Synchronous by the user state information that described message synchronization passage carries out between described primary CDN unit and the described main CDN for subsequent use unit.
Preferably, the role who determines each CDN unit in the equipment comprises: hold consultation between described each CDN unit according to default rule; Determine described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit according to negotiation result.
Preferably, hold consultation between described each CDN unit according to default rule and to comprise: each the CDN unit in described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit, and receives the election identification information that described other CDN unit send; Determine that according to negotiation result described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit comprise: described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit are determined according to the election identification information of self and the election identification information that receives in described each CDN unit.
Preferably, each CDN unit in described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit, comprising: described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit with multicast mode.
Preferably, it is one of following that described election identification information comprises: the media access control of the priority of described each CDN unit, described each CDN unit (Media Access Control is referred to as MAC) address, the slot number of described each CDN unit, the IP address of described each CDN unit.
Preferably, set up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit, comprising: set up being connected between described primary CDN unit and the described main CDN for subsequent use unit; Carry out the negotiation of the application layer of described primary CDN unit and described main CDN for subsequent use unit; Set up described message synchronization passage according to the negotiation of described application layer.
Preferably, synchronous by the user state information that described message synchronization passage carries out between described primary CDN unit and the described main CDN for subsequent use unit, comprising: all user state informations that send the described current maintenance in primary CDN unit to described main CDN for subsequent use; And, when detecting user state information existence renewal, send the user state information that upgrades to described main CDN for subsequent use unit.
Preferably, in each CDN unit, determine also to comprise: set up the first testing mechanism, detect described primary CDN unit and whether break down after primary CDN unit and the main CDN for subsequent use unit; Detecting in the situation about breaking down described primary CDN unit, directly with described main CDN for subsequent use unit as new primary CDN unit, and elect new for subsequent use main CDN unit.
Preferably, also comprise after the new for subsequent use main CDN unit of election: it is synchronous to carry out described user state information between described new primary CDN unit and described new for subsequent use main CDN unit.
Preferably, whether described primary CDN unit and described main CDN for subsequent use unit are set up after the message synchronization passage, also comprise: set up the second testing mechanism, detect described message synchronization passage and break down; After detecting described message synchronization passage and breaking down and rebulid, it is synchronous to re-start described user state information.
According to another aspect of the present invention, a kind of synchronizer of user state information is provided, has comprised: determination module, for the role who determines each CDN unit of equipment, wherein, described role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit; Set up module, be used for setting up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit; Synchronization module, synchronous for the user state information that is undertaken between described primary CDN unit and the described main CDN for subsequent use unit by described message synchronization passage.
Preferably, described determination module comprises: negotiation element is used for holding consultation between described each CDN unit according to default rule; Determining unit is used for determining described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit according to negotiation result.
Preferably, the described module of setting up comprises: first sets up the unit, is used for setting up being connected between described primary CDN unit and the described main CDN for subsequent use unit; Negotiation element is for the negotiation of the application layer of carrying out described primary CDN unit and described main CDN for subsequent use unit; Second sets up the unit, is used for setting up described message synchronization passage according to the negotiation of described application layer.
Preferably, described synchronization module comprises: the first lock unit, for all user state informations that send the described current maintenance in primary CDN unit to described main CDN for subsequent use unit; The second lock unit is used for sending the user state information that upgrades to described main CDN for subsequent use unit when detecting user state information existence renewal.
Preferably, described device also comprises: first detection module, be used for setting up the first testing mechanism, and detect described primary CDN unit and whether break down; Described determination module also is used for detecting in the situation about breaking down described primary CDN unit, and new for subsequent use main CDN unit as new primary CDN unit, and is elected in described main CDN for subsequent use unit.
Preferably, described synchronization module, also synchronous between described new primary CDN unit and described new for subsequent use main CDN unit, carrying out described user state information.
Preferably, described device also comprises: the second detection module, be used for setting up the second testing mechanism, and detect described message synchronization passage and whether break down; Described synchronization module also is used for after detecting described message synchronization passage and breaking down and rebulid, and it is synchronous to re-start described user state information.
Use the present invention, determine the role of each CDN unit in the equipment, set up the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit, synchronous by the user state information that this message synchronization passage carries out between primary CDN unit and the main CDN for subsequent use unit, realized that fastext is taken over and disturbance switching, improved equipment dependability.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart according to the synchronizer of the user state information of the embodiment of the invention;
Fig. 2 is the flow chart according to the method for synchronous of the user state information of the embodiment of the invention;
Fig. 3 is the schematic diagram according to the network design of the fusion device of the embodiment of the invention;
Fig. 4 is the schematic diagram according to the internal interface of the fusion device of the embodiment of the invention;
Fig. 5 is the logical architecture figure according to the CDN unit of the embodiment of the invention;
Fig. 6 is the schematic diagram according to the user state machine of the CDN unit maintenance of the embodiment of the invention;
Fig. 7 is the schematic diagram according to the active and standby way to elect of the CDN unit of the embodiment of the invention;
Fig. 8 is the schematic flow sheet that carries out active and standby election according to configuration election priority according to the embodiment of the invention;
Fig. 9 is the schematic flow sheet that carries out active and standby election according to the standby slot number of the basis of the embodiment of the invention;
Figure 10 is the schematic diagram of setting up the message synchronization passage according to the embodiment of the invention;
Figure 11 is the schematic diagram according to the synchronous state machine of the user state information of the embodiment of the invention;
Figure 12 is the schematic diagram according to the heartbeat detection of the embodiment of the invention;
Figure 13 is the schematic diagram according to the message format of the User Status message synchronization backup protocol of the embodiment of the invention;
Figure 14 is the schematic diagram according to the agreement control message format of the user state information backed up in synchronization agreement of the embodiment of the invention; And
Figure 15 is the schematic diagram according to the business datum message format of the user state information backed up in synchronization agreement of the embodiment of the invention.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Can't satisfy the synchronous problem of user state information in the fusion device for the back mechanism in the correlation technique, the embodiment of the invention provides a kind of synchronization scenario of user state information, realize carrying out active and standby election between a plurality of CDN unit, and it is synchronous to carry out user state information, realize the fast detecting of fault, switch fast that professional takes over fast, improve reliability, ensure user's business experience.
According to the embodiment of the invention, provide a kind of synchronizer of user state information.
Fig. 1 is the structured flowchart according to the synchronizer of the user state information of the embodiment of the invention, and as shown in Figure 1, this device mainly comprises: determination module 10, set up module 20 and synchronization module 30.Wherein, determination module 10, for the role who determines each CDN unit of equipment, wherein, the role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit; Set up module 20, be connected with determination module 10, be used for setting up the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit; Synchronization module 30 and is set up module 20 and is connected, and it is synchronous to be used for the user state information that undertaken between primary CDN unit and the main CDN for subsequent use unit by the message synchronization passage.
Use the technical scheme of the embodiment of the invention, realized CDN unit in the fusion device user state information synchronously, and then realized that fastext is taken over and disturbance switching, improved service reliability.
In an execution mode of the embodiment of the invention, determination module 10 can comprise: negotiation element is used for holding consultation between each CDN unit according to default rule; Determining unit is used for determining primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit according to negotiation result.
Further, when negotiation element is held consultation between each CDN unit according to default rule, each CDN unit in each CDN unit can send the election identification information of this CDN unit to other CDN unit in each CDN unit, and receives the election identification information that other CDN unit send.The role of each CDN unit is determined according to the election identification information of self and the election identification information that receives in each CDN unit.
In an execution mode of the embodiment of the invention, each CDN unit sends the election identification information of this CDN unit to other CDN unit in each CDN unit with multicast mode.
In embodiments of the present invention, the election identification information includes but not limited to one of following: the IP address of the MAC Address of the priority of each CDN unit, each CDN unit, the slot number of each CDN unit, each CDN unit.
In an execution mode of the embodiment of the invention, setting up module 20 can comprise: first sets up the unit, is used for setting up being connected between primary CDN unit and the main CDN for subsequent use unit; Negotiation element is for the negotiation of the application layer of carrying out primary CDN unit and main CDN for subsequent use unit; Second sets up the unit, is used for setting up the message synchronization passage according to the negotiation of application layer.
In an execution mode of the embodiment of the invention, synchronization module 30 can comprise: the first lock unit, for all user state informations that send the current maintenance in primary CDN unit to main CDN for subsequent use unit; The second lock unit is used for sending the user state information that upgrades to main CDN for subsequent use unit when detecting user state information existence renewal.
Further, said apparatus can also comprise: first detection module, be connected with determination module 10, and be used for setting up the first testing mechanism, detect primary CDN unit and whether break down.Determination module 10 also is used for detecting in the situation about breaking down primary CDN unit, and new for subsequent use main CDN unit as new primary CDN unit, and is elected in main CDN for subsequent use unit.
Further, synchronization module 30, it is synchronous also to be used for carrying out between new primary CDN unit and new for subsequent use main CDN unit user state information.
In an execution mode of the embodiment of the invention, said apparatus can also comprise: the second detection module, and set up module 20 and be connected, and be used for setting up the second testing mechanism, whether the detect-message synchronizing channel breaks down.Synchronization module 30 also is used for after detecting the message synchronization passage and breaking down and rebulid, and it is synchronous to re-start user state information.
In embodiments of the present invention, above-mentioned each CDN unit can be peer-to-peer, has identical structure at hardware, possesses identical function at software.Can call other CDN unit as the CDN unit of primary CDN unit the CDN service is provided, as the unified interface that service outwards is provided.In the situation about breaking down in primary CDN unit, main CDN for subsequent use directly replaces primary CDN unit in the unit, as the unified interface that service outwards is provided, calls other CDN unit the CDN service is provided.
According to the embodiment of the invention, corresponding to the said apparatus that the embodiment of the invention provides, also provide a kind of method for synchronous of user state information.
Fig. 2 is the flow chart according to the method for synchronous of the user state information of the embodiment of the invention, and as shown in Figure 2, the method comprising the steps of S202 is to step S206.
Step S202 determines the role of each CDN unit in the equipment, and wherein, the role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit.
Step S204 sets up the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit.
Step S206, synchronous by the user state information that the message synchronization passage carries out between primary CDN unit and the main CDN for subsequent use unit.
Use the technical scheme of the embodiment of the invention, realized CDN unit in the fusion device user state information synchronously, and then realized that fastext is taken over and disturbance switching, improved equipment dependability.
The below is described in detail each step of the embodiment of the invention respectively.
(1) step S202
In embodiments of the present invention, can hold consultation between each CDN unit in equipment, determine the role of each CDN unit, the role of CDN unit comprises primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit.Primary CDN unit is as the CDN unified interface of service outwards is provided, dispatch each CDN unit the CDN service is provided, in the situation that main CDN for subsequent use unit is used for breaking down in primary CDN unit, directly as new primary CDN unit, finish the traffic control to each CDN unit.
In an execution mode of the embodiment of the invention, can between each CDN unit, hold consultation according to default rule, determine primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit according to negotiation result.
Further, each CDN unit in each CDN unit sends the election identification information of each CDN unit to other CDN unit in each CDN unit, and receive the election identification information that other CDN unit send, primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit are determined according to the election identification information of self and the election identification information that receives in each CDN unit.
In a preferred implementation of the embodiment of the invention, each CDN unit sends the election identification information of each CDN unit to other CDN unit in each CDN unit with multicast mode.Owing to have a plurality of CDN unit in the equipment, by the mode of multicast, can improve efficient mutual between the CDN unit, reduce complexity.
Further, the election identification information comprises one of following: the IP address of the MAC Address of the priority of each CDN unit, each CDN unit, the slot number of each CDN unit, each CDN unit.
For example, CDN unit one adopts multicast mode to send the election negotiation message to other CDN unit, has carried the equipment slots item information of self in message, as: slot number is A.CDN unit two adopts multicast mode to send the election negotiation message to other CDN unit, has carried the equipment slots item information of self in message, as: slot number is B.CDN unit three adopts multicast mode to send the election negotiation message to other CDN unit, has carried the equipment slots item information of self in message, as: slot number is C.CDN unit four adopts multicast mode to send the election negotiation message to other CDN unit, has carried the equipment slots item information of self in message, as: slot number is D.
CDN unit one extracts the equipment slots item of the other side in the election negotiation message of receiving, with self slot number relatively, greater than B, and A is greater than C such as: A, and A is greater than D, then thinks from as primary CDN unit; And to other CDN unit transmission message, announcement is certainly as primary CDN unit.
CDN unit two extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: B is less than A, B is greater than C, and B then thinks certainly as main CDN for subsequent use unit greater than D, and to other CDN unit transmission message, announcement is certainly as main CDN for subsequent use unit.
CDN unit three extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: C is less than A, C is less than B, and C then thinks certainly as CDN for subsequent use unit greater than D, send message to other CDN unit, announcement is certainly as CDN for subsequent use unit.
CDN unit four extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: D is less than A, D is less than B, and D then thinks certainly as CDN for subsequent use unit less than C, send message to other CDN unit, announcement is certainly as CDN for subsequent use unit.
Certainly, can also adopt in actual applications other machinery of consultation, focusing on of the embodiment of the invention, negotiation obtains the role of CDN unit, and the role of CDN not only comprises primary CDN unit and CDN for subsequent use unit, also comprises main CDN for subsequent use unit, thereby when breaking down in primary CDN unit, can directly business be switched on the main CDN for subsequent use unit, avoid the again primary CDN of election unit in CDN for subsequent use unit, thereby avoid service disconnection.
In an execution mode of the embodiment of the invention, can set up the testing mechanism between primary CDN unit and the main CDN for subsequent use unit, for example, heartbeat detection, when main CDN for subsequent use unit does not detect the heartbeat message of primary CDN unit, determine that primary CDN unit breaks down, main CDN for subsequent use unit is directly as new primary CDN unit, hold consultation for subsequent use main CDN unit that election makes new advances between other CDN unit.
(2) step S204-step S206
In embodiments of the present invention, after self-role is determined in each CDN unit, can set up the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit, to carry out the synchronous of user state information.Primary CDN unit can be synchronized to the user state information of self maintained main CDN for subsequent use unit.When primary CDN unit broke down, main CDN for subsequent use unit can directly as new primary CDN unit, be dispatched each CDN unit the CDN service outwards is provided.
In embodiments of the present invention, the step of setting up the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit can comprise: set up being connected between primary CDN unit and the main CDN for subsequent use unit, carry out the negotiation of the application layer of primary CDN unit and main CDN for subsequent use unit, set up the message synchronization passage according to the negotiation of application layer.
After determining primary CDN unit and main CDN for subsequent use unit, enter initial phase.At initial phase, set up the connection between primary CDN unit and the main CDN for subsequent use unit, can be that primary CDN unit initiatively connects with main CDN for subsequent use unit, also can be main CDN for subsequent use unit initiatively connects with primary CDN unit.In the process that connects, can adopt corresponding security authentication mechanism, for example, Message Digest Algorithm 5 (MD5) authentication etc.Be successfully established if connect, enter connection status.
In a preferred implementation of the embodiment of the invention, in connection status, testing mechanism can connect between primary CDN unit and the main CDN for subsequent use unit, for example, heartbeat detection detects the state that connects, if the discovery disconnecting then return back to initial phase.
In connection status, further carry out application layer and consult capability negotiation, the negotiation of various parameters.For example, the type of service of support, HTML (Hypertext Markup Language) (Hypertext Transfer Protocol is referred to as http protocol), point-to-point (Peer to Peer is referred to as P2P) etc.If consult successfully, then enter established state, the message synchronization Path Setup between primary CDN unit and the main CDN for subsequent use unit is finished.
Further, carrying out the synchronous step of user state information by the message synchronization passage can comprise: all user state informations that send the current maintenance in primary CDN unit to main CDN for subsequent use; And, when detecting user state information existence renewal, send the user state information that upgrades to main CDN for subsequent use unit.
In embodiments of the present invention, main CDN for subsequent use unit can send to primary CDN unit the batch backup request, after primary CDN unit receives the batch backup request, send batch backup request acknowledge message to main CDN for subsequent use unit, the user state information packing is sent to main CDN for subsequent use unit.If user state information is more, the transmission of can repeatedly packing.After being sent completely, send the batch backup end to main CDN for subsequent use unit.
Exist more under the news detecting user state information, primary CDN unit can send to main CDN for subsequent use unit the user state information that upgrades.For example, New Consumers is reached the standard grade, customer service is finished state such as close etc., can adopt the mode of real-time synchronization, is synchronized to main CDN for subsequent use unit.
In a preferred implementation of the embodiment of the invention, can also set up testing mechanism, detect the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit.In the situation that the message synchronization passage breaks down, rebulid the message synchronization passage, it is synchronous to carry out user state information.
Further, the testing mechanism of side testing mechanism and message synchronization passage is separate between primary CDN unit and the main CDN for subsequent use unit.In each CDN unit, determine to set up the first testing mechanism after primary CDN unit and the main CDN for subsequent use unit, detect primary CDN unit and whether break down; Detecting in the situation about breaking down primary CDN unit, directly with main CDN for subsequent use unit as new primary CDN unit, and elect new for subsequent use main CDN unit.Primary CDN unit and main CDN for subsequent use unit are set up after the message synchronization passage, set up the second testing mechanism, and whether the detect-message synchronizing channel breaks down; Detecting in the situation that the message synchronization passage breaks down, rebulid the message synchronization passage, it is synchronous to re-start user state information.
Elect and also comprise after the new for subsequent use main CDN unit: it is synchronous to carry out user state information between new primary CDN unit and new for subsequent use main CDN unit.
In embodiments of the present invention, comprise a plurality of CDN unit in the equipment, CDN is provided with communication interface between the unit.Each CDN unit all can be used for dispatching each CDN unit outwards provides the CDN service.Yet, the embodiment of the invention is not paid close attention to the concrete structure of equipment, the embodiment of the invention focuses on, and elects primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit between each CDN, and the user state information that then carries out between primary CDN unit and the CDN for subsequent use unit is synchronous.And, in the situation about breaking down in primary CDN unit, directly with main CDN for subsequent use unit as new primary CDN unit, and for subsequent use main CDN unit that makes new advances of election, it is synchronous then to carry out user state information between new primary CDN unit and new for subsequent use main CDN unit.
For the ease of understanding, below in conjunction with the fusion device of the embodiment of the invention, the such scheme of the embodiment of the invention is described.Need to prove that the embodiment of the invention is not limited to this fusion device.
Fig. 3 is the schematic diagram according to the network design of the fusion device of the embodiment of the invention, as shown in Figure 3, but the fusion device distributed deployment from the CDN of system and network, but need to there be a central management system to implement unified management and scheduling, implement 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 adopts the mode of disposing of concentrating, with domain name system (Domain Name System, referred to as DNS) server, scheduling of resource and GSLB (Global Service Load Balance, referred to as GSLB) the systematic unity deployment, realization manages and safeguards that business is adaptive, and the scheduling of resource to the CDN unit in the fusion device of one's respective area CDN and network.The central management system of CDN can be used as independently system's deployment, also can merge with the network management system of fusion device, as the part of network management system, with the network management system unified plan.
Fusion device has merged CDN function and network function, and adopting the CDN unit is as content distribution nodes, and for the user provides content distribution service, the Adoption Network parts provide network insertion and carrying service for the user.
The central management system of CDN unit and CDN is set up management channels and service channel, adopts management channels to realize the regular maintenance management of network, and the monitoring of equipment etc. adopt service channel to realize issuing of content, business information mutual etc.
From networking, the CDN function can with network on core router, business router (for example, Broadband Remote Access Server (Broadband Remote Access Server, referred to as BRAS)/business router (Service Router, referred to as SR), switch and packet data serving node (Packet Data Serving Node, referred to as PDSN)/equipment such as ggsn (Gateway General Packet Radio Service Support Node is referred to as GGSN) merge.Because BRAS/SR, PDSN/GGSN is mutual network service controlling point device, the network state information that has the user, recommend CDN equipment and BRAS/SR, PDSN/GGSN equipment merges, thereby realize the collaborative of CDN User Status and network user's state, by the collaborative double shield that can realize based on user's application content and network quality of User Status, experience thereby improve the user.
Fig. 4 is the schematic diagram according to the internal interface of the fusion device of the embodiment of the invention, and as shown in Figure 4, fusion device comprises the Network unit, CDN unit, master control/crosspoint.The Network unit is mainly used in providing network insertion and carrying service for the user.The CDN unit is mainly used in providing content distribution service to the user.Master control/crosspoint comprises equipment main control unit and crosspoint, is used for the centralized management of equipment and the high speed exchange of control and data.
For satisfying the mutual of fast and efficiently information processing of device interior, signaling, and the fast-forwarding of flow, need to be deployed with corresponding internal interface.Be deployed with internal interface between CDN unit and the master control/crosspoint, be used for managing between CDN unit and the master control information interaction of the aspects such as information, monitor message, service deployment etc.Be deployed with internal interface between Network unit and the master control/crosspoint, be used for managing between Network unit and the master control information interaction of the aspects such as information, monitor message, service deployment etc.Increase corresponding internal agreement interface between CDN unit and the Network unit, be used for User Status, service management and monitoring, the passage of traffic forwarding etc.Also increase corresponding internal agreement interface between the CDN unit, be used for service management, collaborative and monitoring, professional access and mutual etc.
Fig. 5 is the logical architecture figure according to the CDN unit of the embodiment of the invention, and as shown in Figure 5, fusion device can comprise a plurality of CDN unit, and each CDN unit is the relation of equity, but need to unifiedly coordinate, and unification provides external service, the unified scheduling of carrying out inside.
The CDN unit is from being divided in logic: scheduling unit, business service unit and User Status maintenance unit.Wherein, scheduling unit has comprised service access unit and professional scheduling unit; External address of service is issued in the service access unit, sets up application link with subscription client, and the maintenance application link.
User's application link is carried out load balance scheduling by professional scheduling unit after setting up, and is chosen to be the business service unit that the user provides Business Processing and content distribution service.After the service access unit obtains user's access to content request, adopt inner mutual address to communicate with the business service unit of selecting, obtain the required content of user, and send content by external address of service to the user.
The business service unit comprises Service Processing Unit, memory cell, wherein, memory cell can be utilized storage inside, also can pass through network small computer system interface (Internet Small Computer System Interface, referred to as the iSCSI interface), fiber channel interface (Fibre Channel, referred to as the FC interface), based on fiber channel interface (the Fibre Channel over Ethernet of Ethernet, referred to as the FCoE interface) connect External memory equipment, realize the expansion of capacity.The business service unit is by the tissue of system, abundant conformity of business operation processor, and memory device unifiedly provides Business Processing and content distribution service to the user; By the service access unit communication of mutual address, inside and scheduling unit, provide the user required content.Inner in the business service unit, can according to tissue and the dispatching principle of self, implement further to divide and scheduling, to improve treatment effeciency.
The User Status maintenance unit is used for maintenance customer's state information, can comprise user's attribute, the content of access, user's application link information, user's contents usage information, the resulting service strategy information of user etc.
Fusion device can comprise a plurality of CDN unit (can be presented as the professional integrated circuit board of a plurality of CDN), and a plurality of CDN need to unify the unit to coordinate, United Dispatching and load balancing, and unification externally provides service; By unified tissue, more can realize switching fast of fault, improve reliability.
The mutual central switching network that needs through device interior between the different CDN unit.All there is scheduling unit different CDN unit, owing to need to adopt unified external address of service to provide service for the user, need to adopt unified scheduling unit to dispatch, need among each scheduling unit on each independent, reciprocity separately CDN unit, carry out active and standby election, determine primary scheduling unit, the external address of service of unified issue, adopt service access unit and the subscription client of primary scheduling unit to set up application link, adopt the professional scheduling unit of primary scheduling unit totally to dispatch and load balancing; Can be according to user's attribute, the information such as the content of access are the selected corresponding business service unit of user, the business service unit can be positioned at same CDN unit with primary scheduling unit, also can be positioned at different CDN unit with primary scheduling unit.Unified scheduling so that calling that the business service unit between the different CDN unit can flexible allocation fully improves device efficiency, more can provide better redundancy backup ability, improves the reliability of equipment.
When being implemented in primary CDN cell failure, user's application link is not interrupted, and business is not interrupted, and needs the user state information in the primary CDN of the backup unit.
Fig. 6 is the schematic diagram according to the user state machine of the CDN unit maintenance of the embodiment of the invention, as shown in Figure 6, the user state machine that the Network unit of this state machine and fusion device is safeguarded is different, it is the state machine that uses for user's content, concrete information can comprise user's attribute (as: member, non-member), the content of user's access, user's application link information, user content uses information, user's service strategy information etc.According to user's content operating position, state machine can comprise following state: opening, normal state, the content conditions of support, network guarantee state, content and network joint protection state, closed condition.
Carry out the maintenance of User Status based on the mode of user state machine, can be more complete, more perfect ground maintenance customer's application message; Carry out user's information synchronization and backup based on user's state machine, in the time of can being implemented in primary CDN cell failure, the seamless switching of customer service, professional takes over fast, promotes user's business experience.
Fig. 7 is the schematic diagram according to the active and standby way to elect of the CDN unit of the embodiment of the invention, as shown in Figure 7, owing to may exist a plurality of CDN unit on the fusion device, and each CDN unit is independently, equity, all have corresponding scheduling unit, Service Processing Unit and User Status maintenance unit, service can externally be provided, need unification that service externally is provided, during United Dispatching, need to carry out active and standby election.
Active and standby election is present between a plurality of CDN unit, and the message interaction of mode of unicast and negotiation exist the problem of one-to-many, the full mode that connects of clean culture, in the many situations in CDN unit, mutual complicated, and data synchronously, the synchronous complexity of signaling, make mistakes easily.Thereby, in embodiments of the present invention, adopt the mode of multicast between the scheduling unit of each CDN unit, to carry out active and standby election and negotiation.
In actual applications, can specify the specific multicast group address of reserving as the election dedicated multicast group of active and standby scheduling unit at device interior.The below is described the active and standby unit electoral machinery of the embodiment of the invention.
(1) election of Priority-based
In order to be implemented under the failure condition, business can be taken over fast, failure fast switching can when electing primary CDN unit, elect main CDN for subsequent use unit simultaneously, so that when primary CDN cell failure, main CDN for subsequent use unit can directly upgrade to primary CDN unit, takes over primary CDN unit for user's service, avoids re-electing after the primary CDN unit, carry out again professional taking over, improve the professional speed of switching.
User state information synchronously based on the active and standby election results between the CDN unit.Finish in election, determined after primary CDN unit and the main CDN for subsequent use unit, by the user state information backup protocol, user's state information from primary CDN unit backup to main CDN for subsequent use unit.
Adopt multicast mode to realize that the advantage of active and standby election also is, when primary CDN cell failure, main CDN for subsequent use unit can be automatically upgraded to primary CDN unit, trigger simultaneously and re-start the multicast neighbor discovery, automatically re-elect new for subsequent use main CDN unit, automatically re-start the synchronous of user state information, reenter stable state.In the situation that only remains single CDN unit, also can provide external service, unless all the CDN unit all breaks down.
In order to realize unified scheduling, unified external service at first needs the election of holding consultation between the different CDN unit, elects primary CDN unit, for the user provides unified access and scheduling.Active and standby election between the CDN unit can be carried out according to the configuration preference level; The configuration preference level can be so that the active and standby election between the different CDN unit be more flexible, more controlled; Can by issue different priority parameters configurations to the CDN unit, realize selection and the control of active and standby CDN unit.
Because may there be a plurality of CDN unit in the fusion device of CDN and network, thereby when consulting active and standby CDN unit, be to elect between many each CDN unit, mutual for avoiding too much clean culture, negotiation packet can adopt the multicast mode sending and receiving.
In order to realize professional quick switching, improve the reliability of equipment, when active and standby election, when electing primary CDN unit, also select a suboptimum, master unit for subsequent use; So that when primary CDN cell failure, can adopt master unit for subsequent use directly to take over, realize professional quick switching, need not to carry out again to carry out again business after the active and standby election and take over, can significantly dwindle the professional time of switching, improve equipment dependability.
Fig. 8 is the schematic flow sheet that carries out active and standby election according to configuration election priority according to the embodiment of the invention, and as shown in Figure 8, concrete election flow process is as follows:
Step 1, CDN unit one adopt multicast mode to send the election negotiation message to other CDN unit, have carried the election priority of self in message, as: priority is A;
Step 2, CDN unit two adopt multicast mode to send the election negotiation message to other CDN unit, have carried the election priority of self in message, as: priority is B;
Step 3, CDN unit three adopt multicast mode to send the election negotiation message to other CDN unit, have carried the election priority of self in message, as: priority is C;
Step 4, CDN unit four adopt multicast mode to send the election negotiation message to other CDN unit, have carried the election priority of self in message, as: priority is D;
Step 5, CDN unit one extracts the election priority of the other side in the election negotiation message of receiving, with self the election priority ratio, greater than B, and A is greater than C such as: A, and A is greater than D; Then think certainly as primary CDN unit; And to other CDN unit transmission message, announcement is certainly as primary CDN unit;
Step 6, CDN unit two extracts the election priority of the other side in the election negotiation message of receiving, with self the election priority ratio, as: B is less than A, and B is greater than C, and B is greater than D, then think certainly as main CDN for subsequent use unit, and send message to other CDN unit, announcement is certainly as main CDN for subsequent use unit;
Step 7, CDN unit three extracts the election priority of the other side in the election negotiation message of receiving, with self the election priority ratio, as: C is less than A, and C is less than B, and C is greater than D, then think certainly as CDN for subsequent use unit, and send message to other CDN unit, announcement is certainly as CDN for subsequent use unit;
Step 8, CDN unit four extracts the election priority of the other side in the election negotiation message of receiving, with self the election priority ratio, as: D is less than A, and D is less than B, and D is less than C, then think certainly as CDN for subsequent use unit, and send message to other CDN unit, announcement is certainly as CDN for subsequent use unit.
(2) based on the election of equipment slots item
In order to realize unified scheduling, unified external service at first needs the election of holding consultation between the different CDN unit, elects primary CDN unit, for the user provides unified access and scheduling.Active and standby election between the CDN unit can conduct an election according to the equipment slots item at place, CDN unit; Because the equipment slots item need not to carry out unnecessary configuration, thereby can be used as the way to elect of acquiescence for what fix, need not manual intervention, simple, reliable.
Because may there be a plurality of CDN unit in the fusion device of CDN and network, thereby when consulting active and standby unit, be to elect between a plurality of CDN unit, mutual for avoiding too much clean culture, the election negotiation packet can adopt the multicast mode sending and receiving.
In order to realize professional quick switching, improve the reliability of equipment, when active and standby election, when electing primary CDN unit, also select a suboptimum, master unit for subsequent use; So that when primary CDN cell failure, can adopt master unit for subsequent use directly to take over, realize professional quick switching, need not to carry out again to carry out again business after the active and standby election and take over, can significantly dwindle the professional time of switching, improve equipment dependability.
Fig. 9 is the schematic flow sheet that carries out active and standby election according to the standby slot number of the basis of the embodiment of the invention, and as shown in Figure 9, concrete election flow process is as follows:
Step 1, CDN unit one adopt multicast mode to send the election negotiation message to other CDN unit, have carried the equipment slots item information of self in message, as: slot number is A;
Step 2, CDN unit two adopt multicast mode to send the election negotiation message to other CDN unit, have carried the equipment slots item information of self in message, as: slot number is B;
Step 3, CDN unit three adopt multicast mode to send the election negotiation message to other CDN unit, have carried the equipment slots item information of self in message, as: slot number is C;
Step 4, CDN unit four adopt multicast mode to send the election negotiation message to other CDN unit, have carried the equipment slots item information of self in message, as: slot number is D;
Step 4, CDN unit one extracts the equipment slots item of the other side in the election negotiation message of receiving, with self slot number relatively, greater than B, and A is greater than C such as: A, and A is greater than D, then thinks from as primary CDN unit; And to other CDN unit transmission message, announcement is certainly as primary CDN unit;
Step 5, CDN unit two extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: B is less than A, and B is greater than C, and B is greater than D, then think certainly as main CDN for subsequent use unit, and send message to other CDN unit, announcement is certainly as main CDN for subsequent use unit;
Step 6, CDN unit three extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: C is less than A, and C is less than B, and C is greater than D, think then that from as CDN for subsequent use unit send message to other CDN unit, announcement is certainly as CDN for subsequent use unit;
Step 7, CDN unit four extracts the equipment slots item of the other side in the election negotiation message of receiving, with the slot number comparison of self, as: D is less than A, and D is less than B, and D is less than C, think then that from as CDN for subsequent use unit send message to other CDN unit, announcement is certainly as CDN for subsequent use unit.
Except above mode by configuration election priority, the mode of equipment slots item are carried out the election of active and standby unit, can also be by the MAC Address of CDN unit, the IP address, device interior address etc. conducts an election.
After active and standby election was finished, the user state information that can carry out between primary CDN unit and the main CDN for subsequent use unit was synchronous.The below is described the synchronous stages of user state information.
Figure 10 is the schematic diagram of setting up the message synchronization passage according to the embodiment of the invention, as shown in figure 10, has described state machine and flow process that the user state information synchronizing channel is set up.
User's state information is implemented after active and standby election synchronously.Carry out between primary CDN unit and main CDN for subsequent use unit synchronously, the user state information that primary CDN unit is safeguarded is synchronized on the main CDN for subsequent use unit.
After active and standby election is finished in the CDN unit, primary CDN unit and main CDN for subsequent use unit have been determined.At this moment, primary CDN unit and main CDN for subsequent use unit begin to set up the message synchronization passage, are used for the synchronous of user state information; Begin to enter initial phase, at initial phase, primary CDN unit is attempted and link is set up in main CDN for subsequent use unit, and link is successfully established and then enters connection status; In the process of setting up link, can adopt corresponding security authentication mechanism, such as: md5 authentication etc.
In connection status, the connection that the message synchronization passage between primary CDN unit and the main CDN for subsequent use unit exists has corresponding heartbeat to keep message, and the state of detect-message synchronizing channel as finding message synchronization passage disconnecting, then return back to init state.
In connection status, further carry out the negotiation of application, the negotiation of ability, the negotiation of various parameters; Such as: the type of service of support, http, P2P etc.; Consult successfully, then enter established state, so far the message channel of primary CDN unit and CDN for subsequent use unit is successfully established.
In established state, if relevant configuration variation occurs, parameter variation etc. then return back to connection status, re-start parameter negotiation.In established state, as finding message synchronization passage disconnecting, then return back to init state.
Figure 11 is the schematic diagram according to the synchronous state machine of the user state information of the embodiment of the invention, as shown in figure 11, has described processing procedure and the state machine of message synchronization.
After the message synchronization Path Setup, primary CDN unit and main CDN unit starting message synchronization process for subsequent use enter init state.
In init state, at first to confirm both sides' main and standby relation, because the synchronous active and standby election based on the CDN unit of message, thereby, primary CDN unit is initiatively announced certainly as the master to main CDN for subsequent use unit, after main CDN for subsequent use receives notice message in the unit, send certainly as standby notice message to primary CDN unit; So far, main and standby relation determines that both sides enter active and standby acknowledgement state; It is synchronous that both sides prepare to carry out user state information; Confirm to make mistakes such as activestandby state, then maintain init state.
After entering active and standby acknowledgement state, the batch backup request is initiated in main CDN for subsequent use unit to primary CDN unit; After primary CDN receives the batch backup request in the unit, send batch backup request acknowledge message to main CDN for subsequent use unit, and enter message synchronization state, the user state information packing is sent to main CDN for subsequent use unit, because user state information is more, therefore, the transmission of can packing several times, after being sent, send the batch backup end to main CDN for subsequent use unit; Main CDN for subsequent use receives the unit batch backup request acknowledge message of sending primary CDN unit, enters message synchronization state, and the user state information of accepting to send primary CDN unit is also processed.
Main CDN for subsequent use receives the batch backup end that primary CDN unit is sent in the unit, sends batch backup to primary CDN unit and finishes acknowledge message, and enter synchronous completion status.Primary CDN receives the unit that the batch backup of sending main CDN for subsequent use unit finishes acknowledge message, enters synchronous completion status.
As in the process of message synchronization, unusual and failure of data synchronization appear, then return back to active and standby acknowledgement state, restart synchronized process.Under synchronous completion status, changing appears in the User Status on the primary CDN unit, as: New Consumers is reached the standard grade, and customer service is finished closed condition etc., can adopt the mode of real-time synchronization, is synchronized on the main CDN for subsequent use unit.Under the information synchronization state, as finding message synchronization passage link interruption, then return back to init state; Under synchronous completion status, as finding message synchronization passage link interruption, then return back to init state.
In order to realize the fast detecting of primary CDN cell failure, heartbeat detection mechanism is disposed in professional quick switching between primary CDN unit and main CDN for subsequent use unit, and this heartbeat detection is different from the heartbeat detection in the information synchronization passage; This heartbeat detection is the heartbeat detection of disposing separately between primary CDN unit and the main CDN for subsequent use unit, and the heartbeat detection in the information synchronization passage only is used for the detection of information synchronization passage, avoids influencing each other.
Figure 12 is the schematic diagram according to the heartbeat detection of the embodiment of the invention, as shown in figure 12, after the negotiation election is finished between the CDN unit, determined primary CDN unit and main CDN for subsequent use unit, primary CDN unit is namely set up heartbeat message with main DN for subsequent use unit and is detected, according to fixed cycle transmission heartbeat detection message, can be set as three fixed cycles can't detect heartbeat message, then judge the other side's fault, self upgrade to primary CDN unit, realize professional switching; And by multicast mode announcement from as primary CDN unit, and trigger other CDN unit and re-start election, elect new for subsequent use main CDN unit.
After for subsequent use main CDN unit that the election of other CDN unit makes new advances, again set up heartbeat detection mechanism between new primary CDN unit and the new for subsequent use main CDN unit.New primary CDN unit and new for subsequent use main CDN unit also rebulid User Status message synchronization passage, and re-start the synchronous of user state information.Reenter stable state.
In actual applications, the message format of above-mentioned processing can be set, the below is illustrated the message format of the embodiment of the invention.
Figure 13 is the schematic diagram according to the message format of the User Status message synchronization backup protocol of the embodiment of the invention, and as shown in figure 13, message is divided into four fields, is respectively version number, type, message length, information field.Wherein, version number, field length is 1 byte, is used for identity protocol current version number, may be defined as 0x01, represents that current is version one; Type, field length are 1 byte, are used for the type of sign message, have defined at present two types: be respectively 0x01, the expression message is agreement control message; 0x02, the expression message is the business datum message; Message length, field length is 2 bytes, represents the length of whole message; Information field is used for carrying concrete message information content; In this field, can further define according to specific implementation the form of the information content.
In the backed up in synchronization protocol massages, type field is 0x01, represents that then this message is agreement control message.Information field at agreement control message can further segment, and defines different agreement control type of messages, to satisfy the demand of different agreement control.Figure 14 is the schematic diagram according to the agreement control message format of the user state information backed up in synchronization agreement of the embodiment of the invention, and as shown in figure 14, the information field of agreement control message is divided into three fields, is respectively type code, reserved field and data field.
Type code, length are 2 bytes, are used for identifying concrete agreement control message type, and the type of definition is as follows at present: 0x01, and the activestandby state announcement, main and standby relation is determined in the announcement of the active and standby information of user; 0x02, the backup capabilities announcement is for the duration of consulting heartbeat message, interval, time-out time; The user state information backup of which type is supported in announcement, as: http, FTP, P2P etc.; The maximum number of user of supporting etc.; 0x03, heartbeat message is for the heartbeat detection of message synchronization passage between the active and standby unit, the connection status of quick fault testing message synchronization passage; 0x04, the batch backup request is used for main CDN for subsequent use unit and sends all the online user's state informations on the primary CDN of the acquisition request unit in primary CDN unit; 0x05, batch backup finishes, because the data volume of batch backup is large, the transmission of need to repeatedly packing, thereby need to after being sent completely, send end message to main CDN for subsequent use unit, be sent with the user data that represents batch backup.
Reserved field, length are 2 bytes, are reserved field temporarily.Data field is used for carrying concrete message information, can further define according to specific implementation the form of the information content in this field.
In the backed up in synchronization protocol massages, type field is 0x02, represents that then this message is the business datum message, can further segment at the information field of business datum message, defines different business datum type of messages.Figure 15 is the schematic diagram according to the business datum message format of the user state information backed up in synchronization agreement of the embodiment of the invention, and as shown in figure 15, business datum message Further Division is three fields, type code, action type and data fields.
Wherein, type code, length is 2 bytes, is used for identifying concrete service application type, can be defined as follows three kinds of type of service: 0x01, sign http service application; 0x02, the sign ftp business is used; 0x03, sign P2P service application.Action type, length are 2 bytes, identify concrete action type, are used for sign to the operation that user state information carries out, and can be defined as follows action type: 0x01, and user profile is added; 0x02, the user profile deletion; 0x03, user profile is upgraded; 0x04, the user profile inquiry; 0x05, Query Information returns.Data field is used for carrying concrete message information, can further define according to specific implementation the form of the information content in this field.
As can be seen from the above description, the present invention has realized following technique effect: adopt multicast mode to carry out active and standby election between a plurality of CDN unit, determine primary CDN unit and main CDN for subsequent use unit.Provide application link by primary CDN unit to export-oriented user, internally carry out unified scheduling, and according to user's application operating position maintenance customer's state machine.Between primary CDN unit and main CDN for subsequent use unit, set up User Status message synchronization passage, to main CDN for subsequent use unit, when primary CDN cell failure, user's business can seamless quick switching with user's state information backed up in synchronization, do not affect customer service and use, improve the user and experience.Simultaneously, when primary CDN cell failure, after main CDN for subsequent use unit upgrades to new primary CDN unit, can automatically trigger in CDN for subsequent use unit, re-elect for subsequent use main CDN unit that makes new advances, and re-start the synchronous of user state information, promoted professional reliability.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. the method for synchronous of a user state information is characterized in that, comprising:
Determine the role of each content distributing network CDN unit in the equipment, wherein, described role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit;
Set up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit;
Synchronous by the user state information that described message synchronization passage carries out between described primary CDN unit and the described main CDN for subsequent use unit.
2. method according to claim 1 is characterized in that, determines that the role of each CDN unit in the equipment comprises:
Hold consultation between described each CDN unit according to default rule;
Determine described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit according to negotiation result.
3. method according to claim 2 is characterized in that,
Hold consultation between described each CDN unit according to default rule and to comprise: each the CDN unit in described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit, and receives the election identification information that described other CDN unit send;
Determine that according to negotiation result described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit comprise: described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit are determined according to the election identification information of self and the election identification information that receives in described each CDN unit.
4. method according to claim 3 is characterized in that, each the CDN unit in described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit, comprising:
Described each CDN unit sends the election identification information of described each CDN unit to other CDN unit in described each CDN unit with multicast mode.
5. method according to claim 3, it is characterized in that it is one of following that described election identification information comprises: the IP address of the media access control MAC address of the priority of described each CDN unit, described each CDN unit, the slot number of described each CDN unit, described each CDN unit.
6. method according to claim 1 is characterized in that, sets up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit, comprising:
Set up being connected between described primary CDN unit and the described main CDN for subsequent use unit;
Carry out the negotiation of the application layer of described primary CDN unit and described main CDN for subsequent use unit;
Set up described message synchronization passage according to the negotiation of described application layer.
7. method according to claim 1 is characterized in that, and is synchronous by the user state information that described message synchronization passage carries out between described primary CDN unit and the described main CDN for subsequent use unit, comprising:
Send all user state informations of the described current maintenance in primary CDN unit to described main CDN for subsequent use; And
When detecting user state information existence renewal, send the user state information that upgrades to described main CDN for subsequent use unit.
8. each described method in 7 according to claim 1 is characterized in that,
In each CDN unit, determine also to comprise: set up the first testing mechanism, detect described primary CDN unit and whether break down after primary CDN unit and the main CDN for subsequent use unit;
Detecting in the situation about breaking down described primary CDN unit, directly with described main CDN for subsequent use unit as new primary CDN unit, and elect new for subsequent use main CDN unit.
9. method according to claim 8 is characterized in that, elects new for subsequent use main CDN unit also to comprise afterwards:
It is synchronous to carry out described user state information between described new primary CDN unit and described new for subsequent use main CDN unit.
10.. each described method in 7 is characterized in that according to claim 1,
Whether described primary CDN unit and described main CDN for subsequent use unit are set up after the message synchronization passage, also comprise: set up the second testing mechanism, detect described message synchronization passage and break down;
After detecting described message synchronization passage and breaking down and rebulid, it is synchronous to re-start described user state information.
11.. the synchronizer of a user state information is characterized in that, comprising:
Determination module, for the role who determines each CDN unit of equipment, wherein, described role comprises: primary CDN unit, main CDN unit for subsequent use and CDN for subsequent use unit;
Set up module, be used for setting up the message synchronization passage between described primary CDN unit and the described main CDN for subsequent use unit;
Synchronization module, synchronous for the user state information that is undertaken between described primary CDN unit and the described main CDN for subsequent use unit by described message synchronization passage.
12. device according to claim 11 is characterized in that, described determination module comprises:
Negotiation element is used for holding consultation between described each CDN unit according to default rule;
Determining unit is used for determining described primary CDN unit, described main CDN unit for subsequent use and described CDN for subsequent use unit according to negotiation result.
13. device according to claim 11 is characterized in that, the described module of setting up comprises:
First sets up the unit, is used for setting up being connected between described primary CDN unit and the described main CDN for subsequent use unit;
Negotiation element is for the negotiation of the application layer of carrying out described primary CDN unit and described main CDN for subsequent use unit;
Second sets up the unit, is used for setting up described message synchronization passage according to the negotiation of described application layer.
14. device according to claim 11 is characterized in that, described synchronization module comprises:
The first lock unit is for all user state informations that send the described current maintenance in primary CDN unit to described main CDN for subsequent use unit;
The second lock unit is used for sending the user state information that upgrades to described main CDN for subsequent use unit when detecting user state information existence renewal.
15. each described device in 14 is characterized in that according to claim 11,
Described device also comprises: first detection module, be used for setting up the first testing mechanism, and detect described primary CDN unit and whether break down;
Described determination module also is used for detecting in the situation about breaking down described primary CDN unit, and new for subsequent use main CDN unit as new primary CDN unit, and is elected in described main CDN for subsequent use unit.
16. device according to claim 15 is characterized in that, described synchronization module is also synchronous for carry out described user state information between described new primary CDN unit and described new for subsequent use main CDN unit.
17. each described device in 14 is characterized in that according to claim 11,
Described device also comprises: the second detection module, be used for setting up the second testing mechanism, and detect described message synchronization passage and whether break down;
Described synchronization module also is used for after detecting described message synchronization passage and breaking down and rebulid, and it is synchronous to re-start described user state information.
CN201310027555.0A 2013-01-24 2013-01-24 The synchronous method and device of user state information Active CN103117876B (en)

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 true CN103117876A (en) 2013-05-22
CN103117876B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014146541A1 (en) * 2013-03-21 2014-09-25 中兴通讯股份有限公司 Cdn and network convergence system, scheduling module selection method and computer storage medium
CN104283948A (en) * 2014-09-26 2015-01-14 东软集团股份有限公司 Server cluster system and load balancing implementation method thereof
CN104486252A (en) * 2014-12-31 2015-04-01 北京海尔广科数字技术有限公司 Method and device for thin clients to have access to standard clients
CN104539442A (en) * 2014-11-21 2015-04-22 华为技术有限公司 Method, network equipment and system for enhancing reliability
CN105872614A (en) * 2016-04-12 2016-08-17 乐视控股(北京)有限公司 Live stream switching method and device
CN107231436A (en) * 2017-07-14 2017-10-03 网宿科技股份有限公司 A kind of method and apparatus for carrying out traffic scheduling
CN107733728A (en) * 2017-11-30 2018-02-23 新华三技术有限公司 Multi-computer back-up method and apparatus
CN107733684A (en) * 2017-08-31 2018-02-23 北京宇航系统工程研究所 A kind of multi-controller computing redundancy cluster based on Loongson processor
CN108600040A (en) * 2018-03-16 2018-09-28 国电南瑞科技股份有限公司 A kind of distributed system node failure detection method based on High Availabitity detection node
CN111224935A (en) * 2019-11-01 2020-06-02 杭州迪普科技股份有限公司 Synchronization method and device for user login state
CN111464585A (en) * 2019-12-05 2020-07-28 厦门靠谱云股份有限公司 Multi-cloud-based high-availability CDN service mechanism
CN113206798A (en) * 2021-07-05 2021-08-03 北京简网科技有限公司 Method, device and system for processing session flow

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144298A1 (en) * 2002-03-05 2005-06-30 Samuel Subodh A. System and method for enterprise software distribution
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144298A1 (en) * 2002-03-05 2005-06-30 Samuel Subodh A. System and method for enterprise software distribution
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

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014146541A1 (en) * 2013-03-21 2014-09-25 中兴通讯股份有限公司 Cdn and network convergence system, scheduling module selection method and computer storage medium
CN104283948A (en) * 2014-09-26 2015-01-14 东软集团股份有限公司 Server cluster system and load balancing implementation method 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
CN104539442A (en) * 2014-11-21 2015-04-22 华为技术有限公司 Method, network equipment and system for enhancing reliability
CN104486252A (en) * 2014-12-31 2015-04-01 北京海尔广科数字技术有限公司 Method and device for thin clients to have access to standard clients
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
CN107231436A (en) * 2017-07-14 2017-10-03 网宿科技股份有限公司 A kind of method and apparatus for carrying out traffic scheduling
US11128684B2 (en) 2017-07-14 2021-09-21 Wangsu Science & Technology Co., Ltd. Method and apparatus for scheduling service
CN107733684A (en) * 2017-08-31 2018-02-23 北京宇航系统工程研究所 A kind of multi-controller computing redundancy cluster based on Loongson processor
CN107733684B (en) * 2017-08-31 2021-02-09 北京宇航系统工程研究所 Multi-controller computing redundancy cluster based on Loongson processor
CN107733728A (en) * 2017-11-30 2018-02-23 新华三技术有限公司 Multi-computer back-up method and apparatus
CN108600040A (en) * 2018-03-16 2018-09-28 国电南瑞科技股份有限公司 A kind of distributed system node failure detection method based on High Availabitity detection node
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
CN111464585A (en) * 2019-12-05 2020-07-28 厦门靠谱云股份有限公司 Multi-cloud-based high-availability CDN service mechanism
CN113206798A (en) * 2021-07-05 2021-08-03 北京简网科技有限公司 Method, device and system for processing session flow
CN113206798B (en) * 2021-07-05 2021-09-03 北京简网科技有限公司 Method, device and system for processing session flow

Also Published As

Publication number Publication date
CN103117876B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN103117876A (en) User state information synchronizing method and device
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
CN101217402B (en) A method to enhance the reliability of the cluster and a high reliability communication node
US9722875B2 (en) Master device, slave device, and methods thereof
KR102108595B1 (en) Physical security system having multiple server nodes
CN103532741B (en) A kind of access level network topology management method and system
CN102946551B (en) Fusion device, system and method for realizing IPTV service
EP2913978A1 (en) Business scheduling method and apparatus and convergence device
EP3507951B1 (en) Bandwidth management in a non-blocking network fabric
CN104025552A (en) Synchronization of traffic multiplexing in link aggregation
CN103780510B (en) Method and device for negotiating flow path in link aggregation group
CN109698757A (en) Switch master/slave device, the method for restoring user data, server and the network equipment
WO2012013050A1 (en) Method and server used for information synchronization between master equipment and standby equipment
CN104506372B (en) A kind of method and system for realizing active/standby server switching
WO2020177254A1 (en) Networking method and system for wireless network, and wireless ap
US10411911B2 (en) Network as service service cross-domain orchestration method, orchestration device, and control device
CN102142978B (en) Data backup transmission processing method, device and system
CN102882989A (en) Method and device for distributing internet protocol (IP) address to multi-network video recorder (NVR) by monitoring network
CN100521603C (en) Method for realizing high-usability of network security equipment under cluster mode
CN115567486A (en) Lease synchronization method, device, equipment and medium in MLAG environment
CN101340339A (en) Wideband access server cluster system and apparatus
CN102215378B (en) A kind of multimedia sensing network system of dynamic group net
EP1712067B1 (en) A method, apparatus and system of organizing servers
CN110063050B (en) Service scheduling method and system
KR20200072941A (en) Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection

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