CN103068034B - A kind of method that data are synchronous and device - Google Patents

A kind of method that data are synchronous and device Download PDF

Info

Publication number
CN103068034B
CN103068034B CN201310034521.4A CN201310034521A CN103068034B CN 103068034 B CN103068034 B CN 103068034B CN 201310034521 A CN201310034521 A CN 201310034521A CN 103068034 B CN103068034 B CN 103068034B
Authority
CN
China
Prior art keywords
node
peripheral node
peripheral
subsequent use
primary
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
Application number
CN201310034521.4A
Other languages
Chinese (zh)
Other versions
CN103068034A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201310034521.4A priority Critical patent/CN103068034B/en
Publication of CN103068034A publication Critical patent/CN103068034A/en
Application granted granted Critical
Publication of CN103068034B publication Critical patent/CN103068034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of synchronous method of data and device, in order to configure standby usage relation between peripheral node, synchronization node resource data. The method comprises: the standby usage status information that peripheral node receiving center node sends; Wherein, described standby usage state is Centroid according to the standby usage relation table that comprises the corresponding relation between primary peripheral node virtual address and peripheral node virtual address for subsequent use, and mapping relations between current each virtual address and the physical address of each peripheral node are determined; When the standby usage status information that peripheral node sends according to Centroid, determine when this node is primary peripheral node the network configuration data that receiving center node sends.

Description

A kind of method that data are synchronous and device
Technical field
The present invention relates to moving communicating field, relate in particular to a kind of synchronous method of data and device.
Background technology
Telecommunication apparatus system is worked by the applicating cooperation distributing on multiple nodes and each node, when in system certainWhen the hardware fault of node or software subsystem fault, will certainly have influence on the normal operation of whole system. CauseThis, require device systems that Hot Spare mechanism is provided on keystone resources. In traditional form, keystone resources is adopted mostlyUse 1+1 backup pattern.
In existing equipment, mostly adopt the active and standby working method of 1+1, primary node is in real time by configuration data and moneySource status data is synchronized on secondary node, when primary node failure or receive the pressure masterslave switchover life of webmasterWhile order, secondary node can be upgraded to primary in real time, and ensures that secondary node rises the business having accessed before master and do not interrupt,Configuration data and resource status after standby liter is main on secondary node are consistent with Centroid.
Along with the continuous increase of telecommunication apparatus supporting business amount and the required configuration data of business, traditional 1+1 is standbyPart pattern cannot meet the demand of telecommunication apparatus keystone resources load balancing.
Summary of the invention
The embodiment of the present invention provides a kind of synchronous method of data and device, in order to configure peripheral nodeBetween standby usage relation, synchronization node resource data.
A kind of synchronous method of data that the embodiment of the present invention provides comprises:
The standby usage status information that peripheral node receiving center node sends; Wherein, described standby usage state isCentroid is according to comprising right between primary peripheral node virtual address and peripheral node virtual address for subsequent useThe standby usage relation table that should be related to, and the physical address of current each virtual address and each peripheral node itBetween mapping relations determine;
When the standby usage status information that peripheral node sends according to Centroid, determine that this node is primary peripheryWhen node, the network configuration data that receiving center node sends.
The synchronous method of another kind of data that the embodiment of the present invention provides comprises:
Centroid is definite to be comprised between primary peripheral node virtual address and peripheral node virtual address for subsequent useThe standby usage relation table of corresponding relation; And, determine current each virtual address and each peripheral nodeMapping relations between physical address;
Centroid, according to described standby usage relation table and described mapping relations, is determined primary peripheral node;
Centroid sends network configuration data to primary peripheral node.
A kind of peripheral node equipment that the embodiment of the present invention provides comprises:
Standby usage status information receiving element, the standby usage status information sending for receiving center node; ItsIn, described standby usage state is that Centroid is according to comprising primary peripheral node virtual address and peripheral joint for subsequent useThe standby usage relation table of the corresponding relation of point between virtual address, and outside current each virtual address and eachEnclose that mapping relations between the physical address of node determine;
Network configuration data the first receiving element, for the standby usage state letter when sending according to CentroidBreath, determines when this node is primary peripheral node, the network configuration data that receiving center node sends.
A kind of central node equipment that the embodiment of the present invention provides comprises:
Standby usage Relation acquisition unit, comprises primary peripheral node virtual address and peripheral joint for subsequent use for determiningThe standby usage relation table of the corresponding relation between some virtual address; And, determine current each virtual address andMapping relations between the physical address of each peripheral node;
Primary peripheral node determining unit, for according to described standby usage relation table and described mapping relations,Determine primary peripheral node;
Network configuration data transmitting element, for sending network configuration data to primary peripheral node.
As seen through the above technical solutions, the standby usage shape that in the present invention, peripheral node receiving center node sendsState information; Wherein, described standby usage state be Centroid according to comprise primary peripheral node virtual address andThe standby usage relation table of the corresponding relation between peripheral node virtual address for subsequent use, and current each virtuallyMapping relations between location and the physical address of each peripheral node are determined; When peripheral node is according to centromereThe standby usage status information that point sends, determines when this node is primary peripheral node, and receiving center node sendsNetwork configuration data. By standby usage relation table and mapping relations, can configure flexibly main and standby relation jointPoint; And the network configuration data being sent by primary peripheral node receiving center node, simplify network configurationThe transfer process of data; This programme is used for realizing N+M back mechanism, in the configuration of standby usage relation and dataWhen synchronous, there is higher efficiency.
Brief description of the drawings
The N+M backup model schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the synchronous method of a kind of data that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the synchronous method of another kind of data that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the synchronous method of a kind of static data that Fig. 4 provides for the specific embodiment of the invention;
The model schematic diagram of the synchronous method of a kind of static data that Fig. 5 provides for the specific embodiment of the invention;
The alternate model signal of the synchronous method of a kind of static data that Fig. 6 provides for the specific embodiment of the inventionFigure;
The model schematic diagram of the method for a kind of dynamic data synchronization that Fig. 7 provides for the specific embodiment of the invention;
The schematic flow sheet of the method for a kind of dynamic data synchronization that Fig. 8 provides for the specific embodiment of the invention;
The model schematic diagram that Fig. 9 switches for a kind of standby usage that the specific embodiment of the invention provides;
The structural representation of a kind of peripheral node equipment that Figure 10 provides for the embodiment of the present invention;
Another structural representation of a kind of peripheral node equipment that Figure 11 provides for the embodiment of the present invention;
Another structural representation of a kind of peripheral node equipment that Figure 12 provides for the embodiment of the present invention;
The structural representation of a kind of central node equipment that Figure 13 provides for the embodiment of the present invention;
Another structural representation of a kind of central node equipment that Figure 14 provides for the embodiment of the present invention;
Another structural representation of a kind of central node equipment that Figure 15 provides for the embodiment of the present invention;
Another structural representation of a kind of central node equipment that Figure 16 provides for the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention provides a kind of synchronous method of data and device, main in order to configure between peripheral nodeStandby, synchronization node resource data.
In the embodiment of the present invention, the configuration of peripheral node adopts N+M backup design, and has adopted x group n+mThe model of backup group, is divided into multiple little backup groups, N, M, n, m, x by N+M backup groupIt is all integer. N primary peripheral node is divided into x and organizes primary peripheral node group, each group of interior primary peripheryNumber of nodes is n, and the quantity of every group of n can be different, and corresponding M peripheral node for subsequent use is also divided into x with itIndividual peripheral node group for subsequent use, every group of interior peripheral node quantity for subsequent use is m, the quantity of every group of m can be different.For the primary peripheral node and the peripheral node for subsequent use that have in a backup group of standby usage relation, need to realizeIn group, the data of n primary peripheral node back up on m peripheral node for subsequent use, for same group simultaneouslyThe Backup Data of storing on interior peripheral node for subsequent use is consistent. If certain primary peripheral node fault or he sends outStranger is when switching, and the peripheral node for subsequent use in is on the same group preferred secondary node, preferentially corresponding for replacingPrimary peripheral node. And when all peripheral nodes for subsequent use in this N+M group are all when fault, select less preferred groupIn peripheral node for subsequent use replace this primary peripheral node. Backup relationship model figure as shown in Figure 1.
For N+M backup functionality, the present invention has designed N+M standby usage relation table, wherein deposits N+M standbyThe node of part switches and node standby usage relation, and N is primary peripheral node number, and M is peripheral node number for subsequent use,The each peripheral node of N+M all represents with logical address (virtual address). Primary peripheral node number be necessarily greater than orEqual peripheral node number for subsequent use. Do not allow to occur that certain peripheral node for subsequent use does not belong to any primary peripheral nodeThe configuration of preferred secondary node, that is: peripheral node for subsequent use must be the joint preferred for subsequent use of a backup groupPoint occurs; The preferred secondary node list collection that in same backup group, primary peripheral node is corresponding should equate.In addition, according to backup relationship model, whole peripheral nodes are divided into multiple for subsequent use group by standby usage relation table,Between peripheral node in each for subsequent use group, there is standby usage relation.
The node main and standby relation of N+M type is carried out ruling by Centroid, when system initialization, at centerOn node, need to build the physical address of N+M type peripheral node and the correspondence table of logical address. And,When initialization, the structure of this correspondence table relies on static configuration relation and determines. Centroid is received N+M typeAfter message with don't-know state registration after peripheral node starts, the configuration of inquiry standby usage relation table and corresponding table,Determine the active and standby type of this peripheral node, if primary peripheral node returns and succeeds in registration, and to indicate be mainWith state; If peripheral node for subsequent use and can register time obtains master corresponding to current peripheral node for subsequent useBy the information of peripheral node, notifying this peripheral node is stand-by state, and indicates the master that this peripheral node is correspondingBy the information of peripheral node.
It is synchronous that N+M backup need to be carried out data, the synchronous guarantee standby system of each node data normalOperation.
Referring to Fig. 2, a kind of synchronous method of data that the embodiment of the present invention provides comprises:
The standby usage status information that S201, peripheral node receiving center node send; Wherein, described standby usageState be Centroid according to comprise primary peripheral node virtual address and peripheral node virtual address for subsequent use itBetween the standby usage relation table of corresponding relation, and the physics of current each virtual address and each peripheral nodeMapping relations between address are determined;
S202, when peripheral node according to Centroid send standby usage status information, determine that this node is mainWhile using peripheral node, the network configuration data that receiving center node sends.
Preferably, the method also comprises: when peripheral node is according to the standby usage status information of Centroid transmission,Determine when this node is peripheral node for subsequent use primary peripheral joint corresponding to this node that receiving center node sendsThe information of point; The primary peripheral node corresponding to this node sends network configuration data synchronization request; Receive thisThe network configuration data that the primary peripheral node that node is corresponding sends.
The embodiment of the present invention adopts the secondary method of synchronization, and the network configuration data of primary peripheral node is from centerNodes obtains, and the network configuration data of peripheral node for subsequent use is from this pre-configured peripheral node correspondence for subsequent usePrimary peripheral node place obtain; Efficiency and the performance of Backup Data transmission are promoted.
Preferably, when network configuration data that described receiving center node sends, also receive described standby usage and closeThe information of system's table and described mapping relations.
Preferably, described primary peripheral node is sent out the information of described standby usage relation table and described mapping relationsGive corresponding peripheral node for subsequent use; Or, this node that peripheral node for subsequent use sends at receiving center nodeThe information of corresponding primary peripheral node simultaneously, receives the letter of described standby usage relation table and described mapping relationsBreath.
Preferably, the method also comprises: in the time that peripheral node receives the switching instruction of Centroid transmission,Virtual address corresponding to target peripheral node that virtual address corresponding this node is switched with this node exchanged.While switching, standby usage relation table does not need variation, in standby usage relation table between each virtual addressRelation does not change, and only adjusts the mapping relations between physical address and virtual address, just can reach peripheral jointThe effect of switching between point, has promoted switching efficiency. For example: in the time of a certain primary peripheral node fault,This primary peripheral node and peripheral node for subsequent use corresponding to this primary peripheral node are sent out receiving CentroidThe standby usage of sending is switched after instruction, separately virtual address corresponding this node is exchanged, and redefines this sectionThe standby usage state of point; Other node also exchanges accordingly, between the node that adjustment and generation are exchangedStandby usage relation. The method has been simplified the maintenance process of standby usage relation while switching.
Preferably, the method also comprises: the network after the renewal that primary peripheral node receiving center node sendsConfiguration data; According to described standby usage relation table and described mapping relations, judge whether this node has correspondingPeripheral node for subsequent use, if had, determines the peripheral node for subsequent use that this node is corresponding, and corresponding to this nodePeripheral node for subsequent use sends the network configuration data after described renewal. In part situation, network configuration data meetingThe Network Management Equipment being connected by Centroid is adjusted, and now can cause the network configuration data of the each node of networkUpgrade, still can keep the secondary method of synchronization but upgrade.
Preferably, the method also comprises: primary peripheral node is sent to operating this node status dataThe peripheral node whole for subsequent use of this node place backup group; Wherein, peripheral node is according to described standby usage relationTable and described mapping relations are determined the peripheral node whole for subsequent use of this node place backup group. Primary peripheral nodeIn the process that service is provided, for reflect the information such as node state or node transmission state dynamic table orDynamic field can change, and the status data changing is that dynamic data needs instantaneous transmission to backup groupInterior peripheral node whole for subsequent use; Because the dynamic data of each primary peripheral node is not identical, therefore everyIndividual primary peripheral node all needs the dynamic data of this node to be sent to the periphery whole for subsequent use in backup groupNode. And the information of primary peripheral node corresponding to this node that receiving center node noted earlier sends isPeripheral node for subsequent use receives data from the primary peripheral node in the backup group of specifying, and is that man-to-man data passDefeated.
Preferably, described operating this node status data is sent to the whole of this node place backup groupPeripheral node for subsequent use, comprising: whether the peripheral node arbitrary for subsequent use that judges this node place backup group passesDefeated network configuration data; When definite this peripheral node for subsequent use is during just at transmission network configuration data, wait for networkAfter configuration data end of transmission, to this peripheral node status data for subsequent use.
Referring to Fig. 3, the synchronous method of another kind of data that the embodiment of the present invention provides comprises:
S301, definite primary peripheral node virtual address and the peripheral node virtual address for subsequent use of comprising of CentroidBetween the standby usage relation table of corresponding relation; And, determine current each virtual address and each peripheral jointMapping relations between the physical address of point;
S302, Centroid, according to described standby usage relation table and described mapping relations, are determined primary peripheryNode;
S303, Centroid send network configuration data to primary peripheral node.
Preferably, after described definite primary peripheral node, send network configuration data to primary peripheral nodeBefore, the method also comprises: the standby usage state that sends this peripheral node to determined primary peripheral nodeInformation.
Preferably, the method also comprises: Centroid closes according to described standby usage relation table and described mappingSystem, determines peripheral node for subsequent use, and primary peripheral node corresponding to peripheral node for subsequent use; To periphery for subsequent useNode sends the information of the primary peripheral node that this peripheral node for subsequent use is corresponding.
Preferably, the method also comprises: in the time that Centroid has network configuration data to upgrade, to primary peripheryNode sends the network configuration data after upgrading.
Preferably, described while sending network configuration data to primary peripheral node, also send out to primary peripheral nodeSend the information of described standby usage relation table and described mapping relations.
Preferably, the method also comprises: in the time needing to switch between definite peripheral node, needs are enteredThe virtual address that the capable peripheral node switching is corresponding is corresponding with the target peripheral node that this peripheral node switchesVirtual address exchange; The standby usage state that comprises the mapping relations after exchange is switched to instruction and send to peripheryNode.
In the embodiment of the present invention, peripheral node includes but not limited to server, the forms such as industrial computer, veneerNeed the equipment of the core network of backup; Peripheral node can be both equipment independently, as server; Also can beVeneer, each veneer centralized configuration is on backboard. Taking the peripheral node of veneer form as example, provide this belowBright specific embodiment.
Specific embodiment 1: see table 1, the backup relation table providing for specific embodiments of the invention.
In backup relation table, ucModule, usGroup, ucSGroup represent primary in N+M backup groupVeneer is the logical address of mainboard, ausBakGroup1List/aucBakSGroup1List,ausBakGroup2List/aucBakSGroup2List、ausBakGroup3List/aucBakSGroup3ListRepresent that respectively the standby board in N+M backup group is the logical address list of slave board, wherein,AusBakGroup1List/aucBakSGroup1List is preferred backup group list. If in current backup groupMain board failure, the slave board in preferred backup group is replaced and is risen master. If the veneer in current preferred backup group allFault, selects normal slave board in backup list 2 and backup list 3 to replace liter master successively.
Table 1
Specific embodiment 2: in communication equipment, the data in each peripheral single board need to Centroid onData are consistent, and also will keep data consistent between active and standby peripheral single board. In order to ensure data on each veneerValidity and uniformity, need to synchronously ensure by the data of database subsystem, wherein, databaseThe structural design of subsystem is distributed processing mode, and database relation collection is distributed on each modal processor.Synchronously specifically comprising of database subsystem: the synchronous and dynamic data synchronization of static data.
Static data is the configuration data being sent by Centroid, in the time that peripheral single board initialization powers on, needsThe data of synchronous Centroid are to each peripheral single board. Static data in peripheral primary Board Power up process is synchronousProcess is as follows: in the time that peripheral single board initialization powers on, the static data synchronization module on peripheral primary veneer is receivedThe thread activation request message sending to Centroid, then initiates static data taking Centroid as synchronisation sourceSynchronizing process, completes whole table synchronous.
Referring to Fig. 4, the static data synchronizing process in peripheral standby board power up is as follows:
S401, peripheral standby board are received after thread activation request message, send out message to data on CentroidThe active and standby synchronized transmission thread of storehouse subsystem obtains partner's plate information of this slave board, and obtains in backup groupThe address of all primary single board list, standby board list, current slave board corresponding mainboard in backup group etc.
Due in N+M backup group, mainboard is counted N and is more than or equal to slave board and counts M. Therefore no matter be N==MOr N > M, in slave board list M the subscript of each slave board can be in mainboard list N unique correspondence that findsThe subscript of mainboard; Find mainboard corresponding to subscript to find the ground of current slave board corresponding mainboard in backup groupLocation.
S402, standby board be using this primary veneer as synchronisation source, and initiate active and standby synchronization request message to it,Carry out master/slave data synchronous, as shown in Figure 5.
In like manner, if in system running, revise after configuration data by webmaster, primary veneer with inIt is synchronous that heart node is that synchronisation source carries out static data successively; After primary veneer synchronous completes, can be at N+M(querying method is also by looking in backup relation table, to inquire about the current standby board address that this primary veneer is correspondingAsk target slave board ground under standby list corresponding to subscript in the primary list of current mainboard place N+M backup groupLocation), and send active and standby static data synchronization message, specifically see schematic diagram 6.
Synchronously realizing by means of dynamic data synchronization between peripheral single board of the dynamic data of N+M backup,When mainboard is synchronous to slave board, be not to be just synchronized to a slave board, but each mainboard need to sameAll slave board synchrodatas in group, because the dynamic data of each mainboard distributes, possibility is inconsistent, but slave boardOn dynamic data be on the same group in the complete or collected works of dynamic data of all mainboards; Mainboard is to slave board synchrodataTime, need to know the static data synchronous regime of interior all slave boards on the same group, therefore, need to back up at N+MThe static data synchronous regime list of all slave boards in safeguarding on the same group on each mainboard in group, this list is by quietState synchronization module is safeguarded, and is provided the static data of certain slave board of inquiry synchronous to dynamic data synchronization moduleThe function of state. Fig. 7 is the schematic diagram of active and standby dynamic data synchronization. Referring to Fig. 8, dynamic data synchronization mistakeJourney is as follows:
In S801, backup group, mainboard is safeguarded the synchronous regime of slave board, on the same group in the static data of all slave boardsSynchronous regime; Specifically comprise the processing of following situation:
Mainboard is received powering on when Indication message of slave board, and it is in synchronizing process that slave board synchronous regime is set;
After mainboard receives that the whole table of slave board responds with EOS, the synchronous regime that slave board is set is synchronous normal knotBundle;
When in active and standby plate synchronizing process, because slave board problem causes, after active and standby synchronization failure, the same of slave board being setStep state is synchronous for not carrying out; When because mainboard problem causes active and standby synchronization failure, slave board can be to allIt is synchronous for not carrying out that mainboard is sent out its synchronous regime of information updating;
In the time that mainboard receives that the slave board state variation Indication message of system management and the state of slave board are fault,Slave board synchronous regime is set synchronous for not carrying out;
In the time that mainboard receives that the standby liter of system management has been led Indication message, first slave board synchronous regime is set toNot synchronous, then send out request message and obtain the synchronous regime of slave board to the receiving thread of standby board.
S802, determine dynamic data synchronization mode according to slave board synchronous regime;
If it is synchronous that slave board is carrying out static data, buffer memory sends synchronization request message; If slave boardSynchronous regime is synchronous normal termination, sends immediately synchronization request message. Specific as follows:
If object veneer is in static synchronous process, start timer and wait for that static synchronous process finishes,After finishing, static synchronous sends again synchronization message synchronous dynamic data. If timer expiry static synchronous does not also haveHave, in max-timeout sending times, reset timer, waited for always. If expired timesReach max-timeout sending times, think and abandon message misprint by synchronization failure, then send out to webmasterSend alert message. This situation only just may occur in the time that Board Power up initializes.
Otherwise, send at once synchronization request message.
Consider that veneer is fed back to malfunction to other node, therefore fault shape during the initialization startingState need to be carried out following specified otherwise:
Object veneer is malfunction and not in static data synchronizing process, is divided into two kinds of situations: a)Real down state, all message that sends to this veneer is all dropped; B) static synchronous completes,But now activating other threads, so the transient state in single board default now can send same at onceStep request message.
Specific embodiment 3: configured the logical address of mainboard and slave board in backup relation table, this logical addressBe virtual, only have the physical address that logical address is mapped to peripheral single board, could be by backup relation tableThe relation of veneer correspond in real veneer; When system initialization, these mapping relations are entered by CentroidRow configuration. Backup relation table and mapping relations can send to whole peripheral nodes.
When active and standby switching has occurred the peripheral single board of N+M configuration in running, need to be by active and standby switchingThe logical address of veneer and the mapping relations of physical address exchange, switching principle is: rise main physicsVeneer uses and is configured to primary logical address, falls standby Physical board use and is configured to logically for subsequent useLocation, thus ensure after active and standby switching normal according to new logical address communication between system. Veneer is according to exchangeAfter mapping relations determine the main and standby relation between this plate and other plate.
Referring to Fig. 9, taking 2+1 backup relation as example, mainboard A1 and slave board B1 are switching front and back, each veneerLogical address between relation do not change, be only to have changed physical address corresponding to logical address.
When the mainboard in N+M backup group is received having led after Indication message for rising of system management, if sentencedDisconnected current single board is N+M type of backup, needs to inquire about backup relation table, thereby obtains current mainboard pairThe slave board list of answering, and send a request message and obtain the synchronous shape of slave board to all normal slave board gettingState, upgrades the list of slave board synchronous regime; Thereby for dynamic data synchronization provides corresponding query interface. Be S801In: " the standby liter of receiving system management when mainboard led after Indication message, first slave board synchronous regime arrangedFor not synchronous, then send out request message and obtain the synchronous regime of slave board to the receiving thread of standby board. "
Referring to Figure 10, a kind of peripheral node equipment that the embodiment of the present invention provides comprises:
Standby usage status information receiving element 1001, the standby usage state sending for receiving center node letterBreath; Wherein, described standby usage state is that Centroid is according to comprising primary peripheral node virtual address and for subsequent useThe standby usage relation table of the corresponding relation between peripheral node virtual address, and current each virtual address andMapping relations between the physical address of each peripheral node are determined;
Network configuration data the first receiving element 1002, for the standby usage state when sending according to CentroidInformation, determines when this node is primary peripheral node, the network configuration data that receiving center node sends.
Referring to Figure 11, preferably, this equipment also comprises:
Standby usage is related to receiving element 1003, for the standby usage status information when sending according to Centroid,Determine when this node is peripheral node for subsequent use primary peripheral joint corresponding to this node that receiving center node sendsThe information of point;
Network configuration data synchronization request unit 1004, for sending to primary peripheral node corresponding to this nodeNetwork configuration data synchronization request;
Network configuration data the second receiving element 1005, sends out for receiving the primary peripheral node that this node is correspondingThe network configuration data of sending.
Preferably, when network configuration data that described receiving center node sends, also receive described standby usage and closeThe information of system's table and described mapping relations.
Preferably, this equipment also comprises:
Switch unit, when instruction for receive the switching of Centroid transmission when peripheral node, by this nodeThe corresponding virtual address virtual address corresponding with the target peripheral node that this node switches exchanged.
Referring to Figure 12, preferably, for the equipment that is defined as primary peripheral node, this equipment also comprises:
Network configuration data the 3rd receiving element 1006, the network after the renewal sending for receiving center nodeConfiguration data;
Network configuration data transmitting element 1007, for closing according to described standby usage relation table and described mappingSystem, judges whether this node has corresponding peripheral node for subsequent use, if had, determines corresponding for subsequent use of this nodePeripheral node, and send the network configuration data after described renewal to peripheral node for subsequent use corresponding to this node.
Preferably, for the equipment that is defined as primary peripheral node, this equipment also comprises:
Status data lock unit, standby for operating this node status data is sent to this node placeThe peripheral node whole for subsequent use of part group;
Wherein, peripheral node determines that according to described standby usage relation table and described mapping relations this node place is standbyThe peripheral node whole for subsequent use of part group.
Preferably, described status data lock unit, specifically for: judge appointing of this node place backup groupWhether one peripheral node for subsequent use is just at transmission network configuration data; When definite this peripheral node for subsequent use transmitsWhen network configuration data, wait for after network configuration data end of transmission, send state to this peripheral node for subsequent useData.
Referring to Figure 13, a kind of central node equipment that the embodiment of the present invention provides comprises:
Standby usage Relation acquisition unit 1301, for determine comprise primary peripheral node virtual address and for subsequent use outsideEnclose the standby usage relation table of the corresponding relation between node virtual address; And, determine current each virtuallyMapping relations between location and the physical address of each peripheral node;
Primary peripheral node determining unit 1302, for closing according to described standby usage relation table and described mappingSystem, determines primary peripheral node;
Network configuration data transmitting element 1303, for sending network configuration data to primary peripheral node.
Referring to Figure 14, preferably, this equipment also comprises standby usage state transmitting element 1304, for leadingAfter determining primary peripheral node by peripheral node determining unit, network configuration data transmitting element is outside primaryBefore enclosing node transmission network configuration data, send the master of this peripheral node to determined primary peripheral nodeStand-by state information.
Referring to Figure 15, preferably, this equipment also comprises:
Peripheral node determining unit 1305 for subsequent use, for closing according to described standby usage relation table and described mappingSystem, determines peripheral node for subsequent use, and primary peripheral node corresponding to peripheral node for subsequent use;
Standby usage is related to transmitting element 1306, for send this peripheral node correspondence for subsequent use to peripheral node for subsequent useThe information of primary peripheral node.
Preferably, this equipment also comprises: network configuration data updating block, and for having network when CentroidWhen configuration data upgrades, send the network configuration data after upgrading to primary peripheral node.
Preferably, described network configuration data transmitting element sends network configuration data to primary peripheral nodeTime, also send the information of described standby usage relation table and described mapping relations to primary peripheral node.
Referring to Figure 16, preferably, this equipment also comprises:
Switch unit 1307, in the time needing to switch between definite peripheral node, cuts needsVoid corresponding to target peripheral node that the virtual address corresponding to one peripheral node of changing switched with this peripheral nodePlan address exchanges;
Indicating member 1308, sends for the standby usage state that comprises the mapping relations after exchange is switched to instructionGive peripheral node.
In sum, the embodiment of the present invention provides a kind of synchronous method of data and device, outside configuringEnclose standby usage relation between node, synchronization node resource data. The method that data provided by the invention are synchronous and dressPut, can configure flexibly N+M main and standby relation node, when node initializing, can work as prosthomere by inquiringThe active/standby mode when role of point in N+M backup relation table decides this node to start. Active and standby nodeInitialize the uniformity that can ensure by the secondary method of synchronization each internodal data after starting. Compare 1+1 standbyThe model of part relation, N+M backup relation model can be realized the resource backup of multiple secondary nodes, fromAnd ensure the complete, reliable, consistent of resource data between load sharing and the node of service resources. In addition N+M,It is more excellent in the synchronous efficiency of data and aspect of performance that data back up method is compared 1+1 backup method.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or meterCalculation machine program product. Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or knotClose the form of the embodiment of software and hardware aspect. And the present invention can adopt at one or more wherein bagsThe computer-usable storage medium that contains computer usable program code (include but not limited to magnetic disc store andOptical memory etc.) form of the upper computer program of implementing.
The present invention is that reference is according to the method for the embodiment of the present invention, equipment (system) and computer program productThe flow chart of product and/or block diagram are described. Should understand can be by computer program instructions realization flow figure and/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/Or the combination of square frame. Can provide these computer program instructions to all-purpose computer, special-purpose computer, embeddingThe processor of formula processor or other programmable data processing device, to produce a machine, makes by calculatingThe instruction that the processor of machine or other programmable data processing device is carried out produces for realizing at flow chart oneThe device of the function of specifying in square frame of individual flow process or multiple flow process and/or block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or other programmable data processing are establishedIn the standby computer-readable memory with ad hoc fashion work, make to be stored in this computer-readable memoryInstruction produce and comprise the manufacture of command device, this command device is realized in flow process or multiple of flow chartThe function of specifying in square frame of flow process and/or block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makeMust on computer or other programmable devices, carry out sequence of operations step to produce computer implemented placeReason, thus the instruction of carrying out on computer or other programmable devices is provided for realizing one of flow chartThe step of the function of specifying in square frame of flow process or multiple flow process and/or block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various changes and modification and not depart from this present inventionBright spirit and scope. Like this, if of the present invention these amendment and modification belong to the claims in the present invention andWithin the scope of its equivalent technologies, the present invention be also intended to comprise these change and modification interior.

Claims (14)

1. the synchronous method of data, is characterized in that, the method comprises:
The standby usage status information that peripheral node receiving center node sends; Wherein, described standby usage state isCentroid is according to comprising right between primary peripheral node virtual address and peripheral node virtual address for subsequent useThe standby usage relation table that should be related to, and the physical address of current each virtual address and each peripheral node itBetween mapping relations determine;
When the standby usage status information that peripheral node sends according to Centroid, determine that this node is primary peripheryWhen node, network configuration data and described standby usage relation table and described mapping that receiving center node sendsThe information of relation;
In the time that peripheral node receives the switching instruction of Centroid transmission, by virtual address corresponding this nodeVirtual address corresponding to target peripheral node of switching with this node exchanged;
Wherein, primary peripheral node number is more than or equal to peripheral node number for subsequent use;
Wherein, the method also comprises:
When the standby usage status information that peripheral node sends according to Centroid, determine that this node is periphery for subsequent useWhen node, the information of the primary peripheral node that this node of receiving center node transmission is corresponding;
The primary peripheral node corresponding to this node sends network configuration data synchronization request;
Receive the network configuration data of the primary peripheral node transmission that this node is corresponding.
2. the method for claim 1, is characterized in that, the method also comprises:
Network configuration data after the renewal that peripheral node receiving center node sends;
According to described standby usage relation table and described mapping relations, judge this node whether have corresponding for subsequent use outsideEnclose node, if had, determine the peripheral node for subsequent use that this node is corresponding, and outside corresponding for subsequent use of this nodeEnclose node and send the network configuration data after described renewal.
3. the method for claim 1, is characterized in that, the method also comprises:
Operating this node status data is sent to the whole standby of this node place backup group by peripheral nodeWith peripheral node;
Wherein, peripheral node determines that according to described standby usage relation table and described mapping relations this node place is standbyThe peripheral node whole for subsequent use of part group.
4. method as claimed in claim 3, is characterized in that, described by operating this node stateData are sent to the peripheral node whole for subsequent use of this node place backup group, comprising:
Judge that whether the peripheral node arbitrary for subsequent use of this node place backup group is just at transmission network configuration data;
When definite this peripheral node for subsequent use is during just at transmission network configuration data, wait for network configuration data transmissionAfter, to this peripheral node status data for subsequent use.
5. the synchronous method of data, is characterized in that, the method comprises:
Centroid is definite to be comprised between primary peripheral node virtual address and peripheral node virtual address for subsequent useThe standby usage relation table of corresponding relation; And, determine current each virtual address and each peripheral nodeMapping relations between physical address;
Centroid, according to described standby usage relation table and described mapping relations, is determined primary peripheral node;
Centroid sends network configuration data and described standby usage relation table and institute to primary peripheral nodeState the information of mapping relations;
In the time needing to switch between definite peripheral node, the peripheral node correspondence that needs are switchedVirtual address corresponding to target peripheral node switched with this peripheral node of virtual address exchange;
The switching instruction that comprises the mapping relations after exchange is sent to peripheral node;
Wherein, primary peripheral node number is more than or equal to peripheral node number for subsequent use;
Wherein, the method also comprises:
Centroid, according to described standby usage relation table and described mapping relations, is determined peripheral node for subsequent use,And primary peripheral node corresponding to peripheral node for subsequent use;
Send the information of the primary peripheral node that this peripheral node for subsequent use is corresponding to peripheral node for subsequent use, make standbySend network configuration data synchronization request, Yi Jijie to primary peripheral node corresponding to this node with peripheral nodeReceive the network configuration data of the primary peripheral node transmission that this node is corresponding.
6. method as claimed in claim 5, is characterized in that, after described definite primary peripheral node,Before sending network configuration data to primary peripheral node, the method also comprises:
Send the standby usage status information of this peripheral node to determined primary peripheral node.
7. method as claimed in claim 5, is characterized in that, the method also comprises:
In the time that Centroid has network configuration data to upgrade, the network sending after upgrading to primary peripheral node is joinedPut data.
8. a peripheral node equipment, is characterized in that, this equipment comprises:
Standby usage status information receiving element, the standby usage status information sending for receiving center node; ItsIn, described standby usage state is that Centroid is according to comprising primary peripheral node virtual address and peripheral joint for subsequent useThe standby usage relation table of the corresponding relation of point between virtual address, and outside current each virtual address and eachEnclose that mapping relations between the physical address of node determine;
Network configuration data the first receiving element, for the standby usage state letter when sending according to CentroidBreath, determines when this node is primary peripheral node, network configuration data and institute that receiving center node sendsState the information of standby usage relation table and described mapping relations;
Exchange unit, when instruction for receive the switching of Centroid transmission when peripheral node, by this nodeThe corresponding virtual address virtual address corresponding with the target peripheral node that this node switches exchanged;
Wherein, primary peripheral node number is more than or equal to peripheral node number for subsequent use;
Wherein, this equipment also comprises:
Standby usage is related to receiving element, for the standby usage status information when sending according to Centroid, determinesWhen this node is peripheral node for subsequent use, the primary peripheral node that this node of receiving center node transmission is correspondingInformation;
Network configuration data synchronization request unit, for sending network to primary peripheral node corresponding to this nodeConfiguration data synchronization request;
Network configuration data the second receiving element, for receiving, primary peripheral node that this node is corresponding sendsNetwork configuration data.
9. equipment as claimed in claim 8, is characterized in that, this equipment also comprises:
Network configuration data the 3rd receiving element, the network configuration after the renewal sending for receiving center nodeData;
Network configuration data transmitting element, for according to described standby usage relation table and described mapping relations, sentencesWhether disconnected this node has corresponding peripheral node for subsequent use, if had, determines for subsequent use peripheral joint that this node is correspondingPoint, and send the network configuration data after described renewal to peripheral node for subsequent use corresponding to this node.
10. equipment as claimed in claim 8, is characterized in that, this equipment also comprises:
Status data lock unit, standby for operating this node status data is sent to this node placeThe peripheral node whole for subsequent use of part group;
Wherein, peripheral node determines that according to described standby usage relation table and described mapping relations this node place is standbyThe peripheral node whole for subsequent use of part group.
11. equipment as claimed in claim 10, is characterized in that, described status data lock unit,Specifically for:
Judge that whether the peripheral node arbitrary for subsequent use of this node place backup group is just at transmission network configuration data;
When definite this peripheral node for subsequent use is during just at transmission network configuration data, wait for network configuration data transmissionAfter, to this peripheral node status data for subsequent use.
12. 1 kinds of central node equipment, is characterized in that, this equipment comprises:
Standby usage Relation acquisition unit, comprises primary peripheral node virtual address and peripheral joint for subsequent use for determiningThe standby usage relation table of the corresponding relation between some virtual address; And, determine current each virtual address andMapping relations between the physical address of each peripheral node;
Primary peripheral node determining unit, for according to described standby usage relation table and described mapping relations,Determine primary peripheral node;
Network configuration data transmitting element, for send to primary peripheral node network configuration data and described inThe information of standby usage relation table and described mapping relations;
Switch unit, in the time needing to switch between definite peripheral node, switches needsThe virtual address that one peripheral node is corresponding is corresponding virtually with the target peripheral node that this peripheral node switchesLocation exchanges;
Indicating member, for sending to peripheral node by the switching instruction that comprises the mapping relations after exchange;
Wherein, primary peripheral node number is more than or equal to peripheral node number for subsequent use;
Wherein, this equipment also comprises:
Peripheral node determining unit for subsequent use, for according to described standby usage relation table and described mapping relations,Determine peripheral node for subsequent use, and primary peripheral node corresponding to peripheral node for subsequent use;
Standby usage is related to transmitting element, for sending to peripheral node for subsequent use the master that this peripheral node for subsequent use is correspondingBy the information of peripheral node, described peripheral node for subsequent use is sent to primary peripheral node corresponding to this nodeNetwork configuration data synchronization request, and receive the network configuration that primary peripheral node that this node is corresponding sendsData.
13. equipment as claimed in claim 12, is characterized in that, this equipment also comprises standby usage stateTransmitting element, for after primary peripheral node determining unit is determined primary peripheral node, network configuration numberBefore sending network configuration data according to transmitting element to primary peripheral node, to determined primary peripheral nodeSend the standby usage status information of this peripheral node.
14. equipment as claimed in claim 12, is characterized in that, this equipment also comprises:
Network configuration data updating block, for have when Centroid network configuration data upgrade time, to primaryPeripheral node sends the network configuration data after upgrading.
CN201310034521.4A 2013-01-29 2013-01-29 A kind of method that data are synchronous and device Active CN103068034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310034521.4A CN103068034B (en) 2013-01-29 2013-01-29 A kind of method that data are synchronous and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310034521.4A CN103068034B (en) 2013-01-29 2013-01-29 A kind of method that data are synchronous and device

Publications (2)

Publication Number Publication Date
CN103068034A CN103068034A (en) 2013-04-24
CN103068034B true CN103068034B (en) 2016-05-11

Family

ID=48110451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310034521.4A Active CN103068034B (en) 2013-01-29 2013-01-29 A kind of method that data are synchronous and device

Country Status (1)

Country Link
CN (1) CN103068034B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425769B (en) * 2013-08-08 2016-08-10 国电南瑞科技股份有限公司 A kind of multi-source many purposes method of data synchronization based on synchronized relation data bivariate table
CN103793533B (en) * 2014-02-27 2017-12-08 大唐移动通信设备有限公司 A kind of Distributed Data Synchronization method and apparatus
WO2020199212A1 (en) * 2019-04-04 2020-10-08 华为技术有限公司 Communication method and apparatus
CN110361979B (en) * 2019-07-19 2022-08-16 北京交大思诺科技股份有限公司 Safety computer platform in railway signal field
CN114513402B (en) * 2020-10-23 2023-11-10 大唐移动通信设备有限公司 High availability implementation method, device and storage medium of network equipment
CN115622891A (en) * 2021-06-29 2023-01-17 华为技术有限公司 Communication method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722628A (en) * 2004-07-13 2006-01-18 华为技术有限公司 Method and system for equipment switching in communication system
CN101047487A (en) * 2007-04-24 2007-10-03 中控科技集团有限公司 Method and system for solving equipment redundant in industrial control network
CN101132314A (en) * 2007-09-21 2008-02-27 中兴通讯股份有限公司 Method for implementing redundancy backup
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722628A (en) * 2004-07-13 2006-01-18 华为技术有限公司 Method and system for equipment switching in communication system
CN101047487A (en) * 2007-04-24 2007-10-03 中控科技集团有限公司 Method and system for solving equipment redundant in industrial control network
CN101132314A (en) * 2007-09-21 2008-02-27 中兴通讯股份有限公司 Method for implementing redundancy backup
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server

Also Published As

Publication number Publication date
CN103068034A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103068034B (en) A kind of method that data are synchronous and device
EP3588853A1 (en) Disaster recovery deployment method, device and system
CN102075580B (en) Method and system for storing synchronous data in distributive network equipment
CN102843259A (en) Middleware self-management hot backup method and middleware self-management hot backup system in cluster
CN112416969B (en) Parallel task scheduling system in distributed database
WO2015157896A1 (en) Disaster recovery scheme configuration method and apparatus in cloud computing architecture
CN104468521A (en) Online migration method, device and system
CN101150439A (en) A method, system and device for realizing master/slave switching
US20130205011A1 (en) Service providing system
CN105095317A (en) Distributive database service management system
US20200233712A1 (en) Data Processing Method, Apparatus, Storage Medium, Processor, and System
CN111404730B (en) State synchronization method and device of virtual router, electronic equipment and storage medium
CN101167307A (en) Dynamically self-adaptive distributed resource management system and method
CN110661865A (en) Network communication method and network communication architecture
CN100512474C (en) Automatic synchronization method for master-slave board storage version of the communication system
CN114265753A (en) Management method and management system of message queue and electronic equipment
CN104394018A (en) Communication device and active-standby system data online exchange method for hot master control panel backup
CN102708063B (en) disk space management method and device
CN104123183A (en) Cluster assignment dispatching method and device
CN112087506B (en) Cluster node management method and device and computer storage medium
CN100492297C (en) Control method for implementing distribution type apparatus
EP3056988A1 (en) Method, apparatus and system for home management device virtualization
CN104065499A (en) Main control board, main/standby system and information backup method and device
CN102983997A (en) Method and device for migrating master services
CN103634877A (en) Management method for AP (access point) in AC (access controller)-free network and AP equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant