CN100512037C - Method of data synchronization in main stock redundance system - Google Patents

Method of data synchronization in main stock redundance system Download PDF

Info

Publication number
CN100512037C
CN100512037C CNB021118981A CN02111898A CN100512037C CN 100512037 C CN100512037 C CN 100512037C CN B021118981 A CNB021118981 A CN B021118981A CN 02111898 A CN02111898 A CN 02111898A CN 100512037 C CN100512037 C CN 100512037C
Authority
CN
China
Prior art keywords
data
node
memory
region
synchronization
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.)
Expired - Lifetime
Application number
CNB021118981A
Other languages
Chinese (zh)
Other versions
CN1462116A (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 CNB021118981A priority Critical patent/CN100512037C/en
Publication of CN1462116A publication Critical patent/CN1462116A/en
Application granted granted Critical
Publication of CN100512037C publication Critical patent/CN100512037C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

A data synchronizing method in the redundant master-standby system includes such steps as triggering synchronization of master and stand-by nodes, polling each object in each module in master node by data acquisition function to obtain the data to be synchronized, arranging all data in a defined memory area, compressing, transmitting them to stand-by node, receiving them by stand-by node, and executing the reverse process of above said steps. It can increase the communication efficiency and reliability between master and stand-by modes.

Description

The method of data sync in a kind of main stock redundance system
Technical field:
The present invention relates to the method for a kind of data sync in the communication field main stock redundance system, especially in the communication field based on the method for a kind of data sync of the main stock redundance system of IP technology.
Background technology:
The carrier-class communication apparatus requires equipment to have very high reliability usually, and redundancy is to improve a kind of basic skills of reliability.In the redundant system, the node that is in core status is generally adopted 1+1 backup or N+1 backup, in case when the master who is working broke down with node, secondary node can the main status that becomes main usefulness with the work of node of very fast adapter.In master-slave conversion system, data product particularly, relate to more dynamic data and configuration data etc., system often needs to design special database and is used for safeguarding these data, want to realize seamlessly transitting of customer service, not switching of primary, spare node can be impacted the normal service operation of equipment, must relate to primary, spare data between nodes consistency problem, should realize that promptly primary, spare data between nodes is synchronous.Application number is 6,188,695 United States Patent (USP) " System andmethod formulti-node data synchronization " is that Ericsson submitted to USPO on December 18th, 1997, this patent has proposed the solution of data sync between a kind of multinode, need data in synchronization unified distribution index (index) with index manager (index manager) to all, introduce a kind of symbol expression way that defines with the unified expression of various types of index, each index value all distributes four bytes of memory unit, index and address data memory and transfer of data function (DTF) are associated, when carrying out data sync, the information that needs are synchronous passes to DTF, and the DTF that is sent to secondary node then recovers.This method is fit to upgrading for relative static data and relatively fixing the synchronous of dynamic data, but in data sync based on the IP technology, also there is a large amount of dynamic datas, as routing table data etc., if this said method that adopts synchronously realizes that indexing corresponding data by index needs often to upgrade, the operation to data all needs to revise corresponding index at every turn, operating efficiency is lower, expends more system resources.
Summary of the invention:
Technical problem to be solved by this invention is: for the main stock redundance system based on the IP technology provides a kind of high-efficiency reliable method of data synchronization.
Method of the present invention, its step comprises:
1, behind system's electrifying startup, main with all allocating region of memory A and region of memory B on node and the secondary node separately in advance, and the registration function of calling data simultaneous module respectively and providing will need data in synchronization to register;
2, active and standby during with the node triggering synchronous, main with the data of node by the object in each protocol module of data simultaneous module poll, obtaining needs data in synchronization, deposits among the region of memory A of secondary node, and by compression algorithm data compression is used among the region of memory B of node to main;
3, the master is sent to secondary node with node with data sync among its region of memory B, after secondary node receives synchrodata, described data in synchronization is copied among the region of memory B of secondary node;
4, secondary node is by decompression algorithm, with the data decompression that compresses among its region of memory B in the region of memory A of secondary node;
5, secondary node is provided with data in synchronization according to the data among the region of memory A, and jump procedure 2 is carried out the active and standby data sync with node of following one-period.
In the described step 1, it is active and standby that to need data in synchronization with node registration be by calling the registration function that data simultaneous module provides, to need data in synchronization to register, the module name of each protocol module records in the module registration table, needs data in synchronization to record in the object registry.
In the described step 5, it specifically is that the data simultaneous module of secondary node reads the data among its region of memory A successively that secondary node is provided with data in synchronization according to the data among its region of memory A, earlier search the module registration table according to the module name of each protocol module, find the object registry of module name correspondence, again according to the object name of registering in the object registry, object indexing and processing function setup data in synchronization.
The master adopts the sliding window protocol subpackage that data sync among its region of memory B is sent to secondary node with node in the described step 3.
Adopt the method for data sync in the main stock redundance system provided by the invention, for a large amount of dynamic data that exists synchronously the time in the IP technology, guaranteed the consistency that associated data transmits, therefore, system can realize level and smooth transition in the reversed process of primary, spare node.
Description of drawings:
The present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is the structure chart of using always based on the main stock redundance system of IP technology;
Fig. 2 is a method flow diagram of the present invention;
Fig. 3 is the structural representation of region of memory A that is used to deposit the data of pressing the consolidation form tissue of uncompressed among the present invention;
Fig. 4 is the structural representation that is used to deposit the region of memory B of the data after the compression among the present invention.
Embodiment:
Fig. 1 is the structure chart of using always based on the main stock redundance system of IP technology; Mainly form by primary, spare node and some service boards.There is a data channel to be used for transfer of data and information interaction between the primary, spare node, when masterslave switchover takes place, cut off former master on the hardware circuit and be connected with each service board, set up former standby (existing main using) node and be connected with each service board with (existing standby) node.Main stock redundance system based on the IP technology of the present invention generally all is made up of primary, spare node and some service boards.Main with the exchange channels that has data sync between node and the secondary node, in order to guarantee when the masterslave switchover, the secondary node former main operating state with node that can farthest continue continues operation, needs to guarantee main with the periodic data synchronization process between node and the secondary node.
Fig. 2 is a method flow diagram of the present invention, and the master moves different branches with node respectively with secondary node.Behind system's electrifying startup, the data simultaneous module of primary, spare node execution in step 201 and step 301 is respectively allocated two region of memorys in advance, wherein regional A is used to deposit the data of pressing the consolidation form tissue of uncompressed, and area B is used to deposit the data after the compression.Then each protocol module of primary, spare node respectively execution in step 202 and step 302 registration function calling data simultaneous module and provide will need data in synchronization to register, module name records in the module registration table, needs data in synchronization to record in the object registry in the module.
Table 1 is the structure list of the module registration table that uses in the algorithm flow of the present invention, and each protocol module has individual module name, can index the object registry of this module correspondence by module name.
Table 1
When carrying out data sync between the primary, spare node, main data simultaneous module execution in step 203 with node: obtaining each protocol module successively by module registration table and object registry needs data in synchronization, and data are arranged among the region of memory A by consolidation form.
After more than all being needed data in synchronization to be aligned to region of memory A as stated above, main data simultaneous module execution in step 204 with node with the data compression among the region of memory A to region of memory B, a packed data, header does not compress.Execution in step 205 adopts sliding window protocol that the synchrodata subpackage is sent to secondary node then.
The data simultaneous module execution in step 303 of secondary node receives the main synchrodata that sends over node, if receive, then execution in step 304 with the synchronous data copy that receives in region of memory B.Execution in step 305 to region of memory A, and is utilized the correctness of header checking data with the data decompression among the region of memory B then.Then, the data simultaneous module execution in step 306 of secondary node is obtained the synchrodata of each protocol module successively from region of memory A, search the module registration table according to module name, find the object registry of module name correspondence, according to the data of the object name of registering in the object registry, object indexing and processing function setup protocol module.
Object name Data type Type length Index Handle function pointer
The object name of object 1 The data type of object 1 The type length of object 1 The index of object 1 The processing function pointer of object 1
The object name of object 2 The data type of object 2 The type length of object 2 The index of object 2 The processing function pointer of object 2
The object name of object n The data type of object n The type length of object n The index of object n The processing function pointer of object n
Table 2
Table 2 is structure charts of the object registry that uses in the algorithm flow of the present invention, comprises object name (title that promptly needs data in synchronization), data type, type length, index and processing function pointer.Wherein, handling function is provided by each protocol module, and being used to obtain or being provided with needs data in synchronization.
Fig. 3 is the structural representation of region of memory A that is used to deposit the data of pressing the consolidation form tissue of uncompressed among the present invention.At first deposit a header, be used to write down the total length of all non-compression synchrodatas, data length and the CRC check byte after the compression; Depositing each protocol module then successively needs data in synchronization, and the deposit method of each module data is as follows: at first storage module type code, module name length and module name; And then deposit the various data in synchronization that need then.Synchrodata deposit employing unified format, i.e. object type sign, object data length and object data.Object data then is made up of the actual value of object name, object indexing and object, and form is as follows:
" object name n object indexing l n object indexing 2... n object indexing m t the actual value of object "
Wherein, " n " and " t " is separator, and " n " is used to separate object name with object indexing or separate different object indexings; " t " is used for the actual value of cutting object index and object.Each object indexing is unified to be deposited with 4 bytes.All data in synchronization that need can convert this unified presentation format to.
Fig. 4 is the structural representation that is used to deposit the region of memory B of the data after the compression among the present invention.At first deposit header, form is with the header of region of memory A, i.e. data length and cyclic redundancy check (CRC) (CRC check) byte after the total length of all non-compression synchrodatas, the compression; All that deposit then through overcompression need data in synchronization.
Through above-mentioned steps, realized that primary, spare data between nodes is synchronous.The data simultaneous module of primary, spare node is carried out from step 203 and step 303 respectively periodically then, realizes carrying out periodically between the primary, spare node data sync.
The invention discloses the synchronous method of data in a kind of main stock redundance system. The invention has the advantages that with all need synchronous the data unified data format represent, be stored in region of memory, realized like this all are needed the unified management of synchronous data, thereby overcome traditional by each module synchronous uniformity that is difficult to guarantee associated data of bringing of the data of oneself respectively; Improved the communication efficiency of primary, spare node by carrying out compression algorithm; Adopt ripe sliding window protocol subpackage to transmit the reliability that synchrodata guarantees communication between the primary, spare node; Guaranteed synchronously the synchronous instant and reliability of data between the primary, spare node by periodic data.

Claims (2)

1, the method for data synchronization in a kind of main stock redundance system is characterized in that may further comprise the steps:
Step 1, main with all allocating region of memory A and region of memory B on node and the secondary node separately in advance behind system's electrifying startup, and the registration function of calling data simultaneous module respectively and providing will need data in synchronization to register;
Step 2, active and standby during with the node triggering synchronous, main with the data of node by the object in each protocol module of data simultaneous module poll, obtaining needs data in synchronization, deposit among the main region of memory A of node of using, and data compression is used among the region of memory B of node to main by compression algorithm;
Step 3 main is sent to secondary node with node with data sync among its region of memory B, after secondary node receives described data in synchronization, with synchronous data copy in the region of memory B of secondary node;
Step 4: secondary node is by decompression algorithm, with the data decompression that compresses among its region of memory B in the region of memory A of secondary node;
Step 5: secondary node is provided with data in synchronization according to the data among the region of memory A, and jump procedure 2 is carried out the active and standby data sync with node of following one-period;
Wherein, the active and standby registration with node needs data in synchronization, specifically is by calling the registration function that data simultaneous module provides, will needing data in synchronization to register, the module name of each protocol module records in the module registration table, needs data in synchronization to record in the object registry; Secondary node is provided with data in synchronization according to the data among its region of memory A, specifically be that data simultaneous module by secondary node reads the data among its region of memory A successively, earlier search the module registration table according to the module name of each protocol module, find the object registry of module name correspondence, again according to the object name of registering in the object registry, object indexing and processing function setup data in synchronization.
2, the method for data synchronization in a kind of main stock redundance system according to claim 1 is characterized in that, the master adopts the sliding window protocol subpackage that data sync among its region of memory B is sent to secondary node with node in the described step 3.
CNB021118981A 2002-05-28 2002-05-28 Method of data synchronization in main stock redundance system Expired - Lifetime CN100512037C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021118981A CN100512037C (en) 2002-05-28 2002-05-28 Method of data synchronization in main stock redundance system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021118981A CN100512037C (en) 2002-05-28 2002-05-28 Method of data synchronization in main stock redundance system

Publications (2)

Publication Number Publication Date
CN1462116A CN1462116A (en) 2003-12-17
CN100512037C true CN100512037C (en) 2009-07-08

Family

ID=29741945

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021118981A Expired - Lifetime CN100512037C (en) 2002-05-28 2002-05-28 Method of data synchronization in main stock redundance system

Country Status (1)

Country Link
CN (1) CN100512037C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442708C (en) * 2005-06-17 2008-12-10 上海华为技术有限公司 Method and system for active/standby backup
CN102064932A (en) * 2010-12-30 2011-05-18 上海顶竹通讯技术有限公司 Method and device for synchronizing data between different equipment
CN103279269B (en) * 2013-05-31 2016-03-02 华为技术有限公司 Data interactive method between a kind of application program and device, terminal device
CN104092563B (en) * 2014-06-13 2017-10-27 新华三技术有限公司 The transmission method and equipment of a kind of service configuration information
CN105892954A (en) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 Data storage method and device based on multiple copies
CN111831490B (en) * 2020-06-30 2023-11-10 中国船舶集团有限公司第七一六研究所 Method and system for synchronizing memories between redundant main and standby nodes
CN113055539B (en) * 2021-03-09 2022-07-05 南京莱斯电子设备有限公司 Communication system based on VoIP dual-redundancy exchange server

Also Published As

Publication number Publication date
CN1462116A (en) 2003-12-17

Similar Documents

Publication Publication Date Title
CN101102577B (en) Incremental synchronization method for data in tables of frontground and background database of wireless communication base station system
CN102693324B (en) Distributed database synchronization system, synchronization method and node management method
CN101907879B (en) Industrial control network redundancy fault-tolerant system
CN102880475A (en) Real-time event handling system and method based on cloud computing in computer software system
CN1937536A (en) Network management topological data synchronous refreshing method and system
JP3562419B2 (en) Electronic exchange
CN100388805C (en) Data disaster tolerance method for attaching location registor
CN102609479A (en) Memory database node copying method
CN105760519A (en) Cluster file system and file lock allocation method thereof
CN100512037C (en) Method of data synchronization in main stock redundance system
CN101043281B (en) Wavelength-division multiplex network synchronous digital hierarchy optical channel performance detecting device
CN101127640B (en) A method for improving data synchronization efficiency via the incremental mode
CN102957546A (en) Method, device and system for processing configuration
CN105005515B (en) A kind of LAN free standby systems
CN100426875C (en) Main and spare internal memory data processing method
RU2248101C1 (en) Method for code-independent transfer of administrative information of optical synchronous digital hierarchical devices of different manufacturers
CN114564458B (en) Method, device, equipment and storage medium for synchronizing data among clusters
CN101001108A (en) Integrated plate device of multi-service configuration desk system
CN1992640B (en) Data synchronization method of muti-service access unit based on switchboard background
CN110935168B (en) Distributed ID generation method, device and equipment for global uniform architecture
JP2013065259A (en) Data transfer system, transfer origin system, transfer destination system, and program
CN1447606A (en) Redundant disaster method for realizing adscription of location registers throuth mobile communication operating system
CN100433880C (en) Method for carrying out active-standby increment backup protection on data area resource facing object
CN112202620A (en) Network topology structure generation method and system
CN101207451B (en) System and method for synchronous clock of multiple-unit high-capacity transmission 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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20090708