CN101945002A - Method and equipment for quickly comparing data of main board with data of standby board - Google Patents
Method and equipment for quickly comparing data of main board with data of standby board Download PDFInfo
- Publication number
- CN101945002A CN101945002A CN2009101467848A CN200910146784A CN101945002A CN 101945002 A CN101945002 A CN 101945002A CN 2009101467848 A CN2009101467848 A CN 2009101467848A CN 200910146784 A CN200910146784 A CN 200910146784A CN 101945002 A CN101945002 A CN 101945002A
- Authority
- CN
- China
- Prior art keywords
- data
- identifying code
- main board
- standby plate
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Detection And Correction Of Errors (AREA)
Abstract
The invention provides a method and equipment for quickly comparing data of a main board with data of a standby board. The method comprises the following steps of: generating a verification code from the data of the main board and transmitting the data of the main board and the verification code to the standby board; comparing the verification code on the main board with content of the verification code of the standby board; and if the verification code on the main board is consistent with the content of the verification code of the standby board, judging that the data of the main board is the same as that of the standby board. By adopting the verification code, the efficiency for comparing the data can be improved, and the accuracy can be ensured.
Description
Technical field
The present invention relates to embedded system, relate in particular to a kind of method and apparatus that the data of main board and standby plate are compared fast.
Background technology
The normal reliability of using two master control borads (being called main board and standby plate) to guarantee equipment in the embedded communication equipment, can be automatically when main board breaks down or manually be switched to standby plate, guarantee that most possibly communication service do not interrupt, improve the reliability of system.For after guaranteeing to switch, standby plate can be as the main board operate as normal before switching, and the configuration data of standby plate needs and main board is consistent.For configuration data, need be synchronized to standby control board in real time from the control board of main usefulness, find in the practice in real time synchronous process, may have unreliability, data consistency that can not the main standby plate of fine assurance, therefore need to carry out data between active and standby plate relatively, to find whether data exist inconsistent.Method commonly used is data whole between more active and standby plate, this method can accurately more active and standby plate between data whether exist inconsistently, shortcoming is that data volume is bigger, efficient is relatively poor.Therefore the method that needs a kind of quick more active and standby plate data, the data of effectively carrying out fast between main standby plate compare, and find the inconsistent situation of data.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and apparatus that the data of main board and standby plate are compared fast, improves data speed and accuracy relatively between the active and standby plate.
In order to address the above problem, the invention provides a kind of method that the data of main board and standby plate are compared fast, comprising: the main board data are generated identifying code, and main board data and described identifying code are sent to standby plate; When relatively the identifying code content of identifying code on the main board and standby plate is consistent, judge that promptly the main board data are identical with the standby plate data.
Further, said method also has following characteristics:
Be divided into the main board data multinomial and distribute data item sign, every item number according to generating corresponding identifying code, and is sent to standby plate with every item number certificate and corresponding identifying code; Relatively every identifying code of main board and standby plate notifies the data item identifier of the inconsistent identifying code correspondence of comparative result to main board.
Further, said method also has following characteristics:
Every item number is comprised parity check code according to generating corresponding identifying code.
Further, said method also has following characteristics:
Every item number is also comprised cyclic check code according to following one or more generations of data according to generating corresponding identifying code: the total length of data item identifier, Data Update number of times, described parity check code and these data.
Further, said method also has following characteristics:
After main board is received new configuration data, upgrade every data and corresponding identifying code, and the identifying code after new configuration data and the renewal is synchronized to standby plate.
Further, said method also has following characteristics:
When the tension management module of main board issues quick comparison command, perhaps, standby plate is periodically when main board is initiated quick comparison of request, main board is sent to standby plate with the identifying code of every data, standby plate compares the identifying code of storing on the identifying code that receives and the standby plate item by item, and the data item identifier of the inconsistent identifying code correspondence of comparative result is notified to main board.
In order to solve the problems of the technologies described above, the present invention also provides a kind of equipment that the data of main board and standby plate are compared fast, comprises main board and standby plate, and described main board comprises identifying code generation module and data distributing module; Standby plate comprises quick comparison module; Described identifying code generation module is used for the main board data are generated identifying code, and described identifying code is sent to the data distributing module; Described data distributing module is used for main board data and described identifying code are sent to standby plate; Described quick comparison module is used for the identifying code content of identifying code on the comparison main board and standby plate when consistent, judges that promptly the main board data are identical with the standby plate data.
Further, the said equipment also has following characteristics:
Described identifying code generation module also is used for being divided into the main board data multinomial and distribute data item sign; Described data distributing module also is used for every item number certificate and corresponding identifying code are sent to standby plate; Described quick comparison module also is used for every identifying code of comparison main board and standby plate, and the data item identifier of the inconsistent identifying code correspondence of comparative result is notified to main board.
Further, the said equipment also has following characteristics:
Is parity check code to every item number according to generating corresponding identifying code; Also comprise cyclic check code: the total length of data item identifier, Data Update number of times, described parity check code and these data according to following one or more generations of data.
Further, the said equipment also has following characteristics:
Described identifying code generation module also is used for when receiving new configuration data, the every data after upgrading is generated corresponding identifying code, and described identifying code is sent to the data distributing module; Described data distributing module is used for every data after upgrading and corresponding identifying code are sent to standby plate.
The present invention can improve data efficient relatively, and can guarantee accuracy.
Description of drawings
Fig. 1 carries out the method schematic diagram that active and standby plate data compare fast in the present embodiment;
Fig. 2 carries out the method schematic diagram that active and standby plate data compare fast in the specific embodiment.
Embodiment
Use identifying code to carry out the equipment that active and standby plate data compare fast, comprise main board and standby plate, main board comprises identifying code generation module and data distributing module; Standby plate comprises quick comparison module;
Described identifying code generation module is used for being divided into the main board data multinomial and distribute data item sign, for every data generate corresponding identifying code, and described identifying code is sent to the data distributing module; Is parity check code to every item number according to generating corresponding identifying code; Also comprise cyclic check code: the total length of data item identifier, Data Update number of times, described parity check code and these data according to following one or more generations of data; Also be used for when receiving new configuration data, the every data after upgrading generated corresponding identifying code, and described identifying code is sent to the data distributing module.
Described data distributing module is used for every item number certificate and corresponding identifying code are sent to standby plate; Also be used for every data after upgrading and corresponding identifying code are sent to standby plate.
Described quick comparison module is used for every identifying code content of comparison main board and standby plate when consistent, judges that promptly the main board data are identical with the standby plate data; When relatively every identifying code content of main board and standby plate is inequality, the data item identifier of the inconsistent identifying code correspondence of comparative result is notified to main board.
As shown in Figure 1, the method that the data of main board and standby plate are compared fast may further comprise the steps:
Specific embodiment:
In the specific embodiment, the main board data are divided into multinomial, and one the checking code table.Concrete composition field is as shown in table 1:
Table 1
The main board data are divided into when multinomial, can be according to different rules.For example, according to different operational orders, different data type or the like is not listed among the present invention one by one.
Total length than an item number certificate, the bit that the parity check code that generates according to these data takies, number less (can be 4 bytes at most), a twin check sign indicating number can learn whether these data are identical when making the data comparison like this, has saved more every data consumed time and data processing amount.Cyclic check code further guarantees the accurate of check code as the secondary check code, improves data accuracy relatively.
As shown in Figure 2, the method that in the specific embodiment data of main board and standby plate is compared fast comprises:
During the main board initialization, multinomial when the content of checking the identifying code of preserving is empty according to the data on the main board are divided into, and generate identifying code respectively, be kept in the checking code table.When the content of the identifying code of check preserving be empty, recomputate the cyclic check code of every item number certificate, if the cyclic check code that calculates and preserved inconsistent, then regenerate the identifying code of every data.
When step 202, the tension management equipment of main board issued quick comparison command, perhaps, periodically when main board was initiated quick comparison of request, main board was sent to standby plate with the identifying code of every data to standby plate;
When adopting above-mentioned identifying code sheet format, main board is sent to standby plate with every item number certificate and this checking code table of having write down above-mentioned each field information of every data.
In the said method, main board also needs the renewal to identifying code on the standby plate.When the tension management equipment of main board issues new data, main board upgrades every data and corresponding identifying code after finishing data configuration, and with new configuration data and the identifying code after upgrading be synchronized to standby plate, keep the consistency of data on main board and the standby plate.
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 changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. method that the data of main board and standby plate are compared fast comprises:
The main board data are generated identifying code, and main board data and described identifying code are sent to standby plate;
When relatively the identifying code content of identifying code on the main board and standby plate is consistent, judge that promptly the main board data are identical with the standby plate data.
2. the method for claim 1 is characterized in that,
Be divided into the main board data multinomial and distribute data item sign, every item number according to generating corresponding identifying code, and is sent to standby plate with every item number certificate and corresponding identifying code;
Relatively every identifying code of main board and standby plate notifies the data item identifier of the inconsistent identifying code correspondence of comparative result to main board.
3. method as claimed in claim 2 is characterized in that,
Every item number is comprised parity check code according to generating corresponding identifying code.
4. method as claimed in claim 3 is characterized in that,
Every item number is also comprised cyclic check code according to following one or more generations of data according to generating corresponding identifying code: the total length of data item identifier, Data Update number of times, described parity check code and these data.
5. method as claimed in claim 4 is characterized in that,
After main board is received new configuration data, upgrade every data and corresponding identifying code, and the identifying code after new configuration data and the renewal is synchronized to standby plate.
6. method as claimed in claim 4 is characterized in that,
When the tension management module of main board issues quick comparison command, perhaps, standby plate is periodically when main board is initiated quick comparison of request, main board is sent to standby plate with the identifying code of every data, standby plate compares the identifying code of storing on the identifying code that receives and the standby plate item by item, and the data item identifier of the inconsistent identifying code correspondence of comparative result is notified to main board.
7. the equipment that the data of main board and standby plate are compared fast comprises main board and standby plate, it is characterized in that, described main board comprises identifying code generation module and data distributing module; Standby plate comprises quick comparison module;
Described identifying code generation module is used for the main board data are generated identifying code, and described identifying code is sent to the data distributing module;
Described data distributing module is used for main board data and described identifying code are sent to standby plate;
Described quick comparison module is used for the identifying code content of identifying code on the comparison main board and standby plate when consistent, judges that promptly the main board data are identical with the standby plate data.
8. equipment as claimed in claim 7 comprises:
Described identifying code generation module also is used for being divided into the main board data multinomial and distribute data item sign;
Described data distributing module also is used for every item number certificate and corresponding identifying code are sent to standby plate;
Described quick comparison module also is used for every identifying code of comparison main board and standby plate, and the data item identifier of the inconsistent identifying code correspondence of comparative result is notified to main board.
9. equipment as claimed in claim 8 comprises:
Is parity check code to every item number according to generating corresponding identifying code; Also comprise cyclic check code: the total length of data item identifier, Data Update number of times, described parity check code and these data according to following one or more generations of data.
10. equipment as claimed in claim 8 comprises:
Described identifying code generation module also is used for when receiving new configuration data, the every data after upgrading is generated corresponding identifying code, and described identifying code is sent to the data distributing module;
Described data distributing module is used for every data after upgrading and corresponding identifying code are sent to standby plate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101467848A CN101945002A (en) | 2009-07-03 | 2009-07-03 | Method and equipment for quickly comparing data of main board with data of standby board |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101467848A CN101945002A (en) | 2009-07-03 | 2009-07-03 | Method and equipment for quickly comparing data of main board with data of standby board |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101945002A true CN101945002A (en) | 2011-01-12 |
Family
ID=43436787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101467848A Pending CN101945002A (en) | 2009-07-03 | 2009-07-03 | Method and equipment for quickly comparing data of main board with data of standby board |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101945002A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841210A (en) * | 2014-03-21 | 2014-06-04 | 上海富欣智能交通控制有限公司 | Adjustable main system and spare system data synchronization method |
CN104360916A (en) * | 2014-11-20 | 2015-02-18 | 上海富欣智能交通控制有限公司 | Main and spare synchronization method based on data synchronization |
CN105069161A (en) * | 2015-08-26 | 2015-11-18 | 浪潮软件股份有限公司 | Data interaction method and data interaction device |
CN105656670A (en) * | 2015-12-31 | 2016-06-08 | 北京航管软件技术有限公司 | Multi-control-card circuit switching device and control method thereof |
CN112073844A (en) * | 2020-08-28 | 2020-12-11 | 烽火通信科技股份有限公司 | Transmission equipment configuration verification synchronization method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816039A (en) * | 2005-02-01 | 2006-08-09 | 华为技术有限公司 | Method for checking data coherence and data synchronization, and distribution type system |
CN1933417A (en) * | 2005-09-12 | 2007-03-21 | 中兴通讯股份有限公司 | Master control board data thermal backup system and method thereof |
-
2009
- 2009-07-03 CN CN2009101467848A patent/CN101945002A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816039A (en) * | 2005-02-01 | 2006-08-09 | 华为技术有限公司 | Method for checking data coherence and data synchronization, and distribution type system |
CN1933417A (en) * | 2005-09-12 | 2007-03-21 | 中兴通讯股份有限公司 | Master control board data thermal backup system and method thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841210A (en) * | 2014-03-21 | 2014-06-04 | 上海富欣智能交通控制有限公司 | Adjustable main system and spare system data synchronization method |
CN103841210B (en) * | 2014-03-21 | 2017-03-15 | 上海富欣智能交通控制有限公司 | It is method of data synchronization that adjustable main is standby |
CN104360916A (en) * | 2014-11-20 | 2015-02-18 | 上海富欣智能交通控制有限公司 | Main and spare synchronization method based on data synchronization |
CN104360916B (en) * | 2014-11-20 | 2018-01-09 | 上海富欣智能交通控制有限公司 | Main standby synchronous method based on data syn-chronization |
CN105069161A (en) * | 2015-08-26 | 2015-11-18 | 浪潮软件股份有限公司 | Data interaction method and data interaction device |
CN105656670A (en) * | 2015-12-31 | 2016-06-08 | 北京航管软件技术有限公司 | Multi-control-card circuit switching device and control method thereof |
CN105656670B (en) * | 2015-12-31 | 2019-08-23 | 北京航管软件技术有限公司 | More control card circuit switching devices and its control method |
CN112073844A (en) * | 2020-08-28 | 2020-12-11 | 烽火通信科技股份有限公司 | Transmission equipment configuration verification synchronization method and system |
CN112073844B (en) * | 2020-08-28 | 2022-08-12 | 烽火通信科技股份有限公司 | Transmission equipment configuration verification synchronization method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202798798U (en) | High availability system based on cloud computing technology | |
WO2019144553A1 (en) | Data storage method and apparatus, and storage medium | |
CN103164523A (en) | Inspection method, device and system of data consistency inspection | |
CN103473152B (en) | A kind of active and standby management module backup of blade server and update method | |
CN108763405B (en) | Service data migration method, device and system and readable storage medium | |
CN101945002A (en) | Method and equipment for quickly comparing data of main board with data of standby board | |
CN111913667B (en) | OSD blocking detection method, system, terminal and storage medium based on Ceph | |
CN103177077B (en) | The storage of a kind of APK file and output intent | |
CN104468521A (en) | Online migration method, device and system | |
CN108804039A (en) | Adaptive data restore flow control method, device, electronic equipment and storage medium | |
JP2021524104A (en) | Master / Standby Container System Switching | |
CN102402441A (en) | System and method for configuring multiple computers | |
CN102035683A (en) | Control method and system for switching of main board and standby board | |
CN103778149A (en) | Document system and document storage managing method thereof | |
CN102497288A (en) | Dual-server backup method and dual system implementation device | |
CN102833281A (en) | Method, device and system for realizing distributed automatically-increasing counting | |
CN101119188B (en) | Single board updating method for implementing uninterruptive service | |
CN113791917A (en) | Method, device and system for processing delay message | |
CN100465913C (en) | Configuration of recovery device and method thereof | |
CN105337731A (en) | Improvement of code equipment and data synchronizing method and system after improvement | |
CN103491115A (en) | Resource dispatching method, resource dispatching device and resource dispatching system | |
WO2017000586A1 (en) | Method and device for upgrading virtual network element, and computer storage medium | |
CN112749147A (en) | Method and device for merging and migrating data tables in database | |
CN101170584B (en) | Distributed system and data configuration method in the system | |
CN105512091A (en) | Memory allocation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110112 |