CN101193001A - Method for judging the master/slave computer consistent via static data or dynamic data - Google Patents

Method for judging the master/slave computer consistent via static data or dynamic data Download PDF

Info

Publication number
CN101193001A
CN101193001A CNA2006101456695A CN200610145669A CN101193001A CN 101193001 A CN101193001 A CN 101193001A CN A2006101456695 A CNA2006101456695 A CN A2006101456695A CN 200610145669 A CN200610145669 A CN 200610145669A CN 101193001 A CN101193001 A CN 101193001A
Authority
CN
China
Prior art keywords
data
standby
active
master
dynamic
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.)
Withdrawn
Application number
CNA2006101456695A
Other languages
Chinese (zh)
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 CNA2006101456695A priority Critical patent/CN101193001A/en
Publication of CN101193001A publication Critical patent/CN101193001A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

The invention discloses a primary and secondary workstation consistency judging method by detecting the static data and the dynamic data. The steps are as follows: starting the static data or dynamic data consistency detection; suspending the static data or dynamic data primary and secondary synchronization; the primary workstation collects static data or dynamic data, calculates the calibration value and sends the calibration data to the secondary workstation; the secondary workstation receives the calibration data, collects data according to data types, calculates the calibration value and compares the result with the calibration value of the primary workstation; if the two calibration values are equal, the primary and secondary data are considered as the same; if the two calibration values are different, the primary and secondary data are considered to be not consistent and the secondary workstation sends the consistency detection result to the primary workstation; the primary and secondary synchronization is restored. The invention can detect the synchronization of the primary and secondary workstation dynamically at real time. When the primary and secondary data are not consistent, the inconsistency can be warned and recorded in time and the primary and secondary data consistency can be restored automatically, which is convenient for locating the inconsistency fault and shortening the fault location time.

Description

Judge the conforming method of active and standby machine by the detection of static data or dynamic data
Technical field
The present invention relates to a kind of communication technology, specifically, relate to a kind of detection and judge the conforming method of active and standby machine by static data or dynamic data.
Background technology
In embedded communication equipment, in order to improve the reliability and security of system, the active and standby working method of master control borad often is provided, in the system of active and standby working method, under the normal condition, a master control borad is in normal operating state (being called main frame), another master control borad then is in stand-by state (being called standby host), satisfying under the situation of certain condition, originally the master control borad that was in stand-by state will transfer to be led with state (this process becomes masterslave switchover), thus the normal stable operation of assurance system.Before masterslave switchover took place, standby host kept data and the state consistent with main frame as far as possible, otherwise behind the masterslave switchover, system is easy to break down, and the very difficult location of this fault.In the process of handling test failure, engineering failure, often run into such problem, after through repeatedly analysis, test, finds that master/slave data was inconsistent after such fault was owing to the generation masterslave switchover to cause.
Embedded communication system adopts active and standby working method, and so active and standby working method helps to improve the stability of system.But in actual applications, active and standby control logic realizes complicated, active and standby function often more easily breaks down, and the fault relevant with active and standby function located, is difficult to resolve and determines than difficult, especially when masterslave switchover takes place, standby host is the correctly data and the state of master synchronization not, and causing switching the back system can't operate as normal even fault such as service disconnection.If can find in time and point out master/slave data inconsistent, not only can shorten the cycle that solves similar problem, and can just pinpoint the problems at the stage of testing oneself, test phase.
Summary of the invention
Technical problem solved by the invention provides a kind of detection by static data or dynamic data and judges the conforming method of active and standby machine, can in time alarm when master/slave data is inconsistent, and master/slave data can be synchronous again.
Technical scheme is as follows:
Judge the conforming method of active and standby machine by the detection of static data or dynamic data, step is as follows:
(1) consistency detection of startup static data or dynamic data;
(2) suspend to static data or dynamic data active and standby synchronously;
(3) main frame is collected static data or dynamic data, and the calculation check value sends to standby host with checking data;
(4) after standby host receives checking data, collect data according to data type, the calculation check value, and compare with the check value of main frame; If equate then think the master/slave data unanimity, if unequal then think that master/slave data is inconsistent, and standby host sends to main frame with the result of consistency detection;
(5) recover active and standby synchronous.
Further, in the step (1), start master/slave data consistency according to the size of traffic carrying capacity and detect, perhaps start master/slave data consistency and detect by the webmaster manual activation.
Further, step (1) further comprises: the data that need be consistent between active and standby are classified.
Further, in the step (2),, forbid that configuration changes for static data; For dynamic data, main frame stops to standby host synchronous dynamic data.
Further, in the step (3), described checking data comprises data type or check value.
Further, in the step (4), when master/slave data was inconsistent, main frame was alarmed or synchrodata arrives standby host.
The present invention can be in real time, dynamically to the detecting synchronously of active and standby machine, when master/slave data is inconsistent, can in time alarm, and recover the unanimity of master/slave data automatically.And the present invention can write down the inconsistent alarm of master/slave data, is convenient to inconsistent fault is positioned, and shortens fault location time.
Description of drawings
Fig. 1 is the flow chart of the preferred embodiment of the present invention.
Embodiment
The inventive method is to realize master/slave data consistency by synchrodata between the active and standby machine.
With reference to the accompanying drawings, the preferred embodiments of the present invention are described in detail.
As shown in Figure 1, judge that by the detection of static data or dynamic data the conforming method step of active and standby machine is as follows:
Step S101: the data that need be consistent between active and standby are classified.
The data that need be consistent between active and standby are done classification, every type data are done consistency detection independently, make to help to reduce the complexity of master/slave data consistency detection property like this, and can provide more detailed master/slave data inconsistent reason.
In the present embodiment, data are divided into static data and dynamic data.Data are put in the static data assignment, must deposits, otherwise can influence the function of system.Dynamic data refers to can be by static data data that generate, that produced by service operation.
Static data is difficult for changing, and generally just change in configuration variation, and dynamic data changes frequently, constantly changes in the service operation process.Not labile static data and labile dynamic data are distinguished, help to reduce the complexity of master/slave data consistency detection property, and can provide more detailed master/slave data inconsistent reason.
According to the systemic-function demand, static data and dynamic data can further segment type respectively.
Step S102: the consistency detection of host-initiated master/slave data.
Main frame triggers under certain condition, starts the consistency detection of the type master/slave data.The user can set the condition of triggering as required, for example traffic carrying capacity can be set at trigger condition, according to the size triggering consistency detection of traffic carrying capacity.The size of this business that provides as the client of equipment is provided traffic carrying capacity, as the traffic carrying capacity of the traffic carrying capacity of making a phone call, online.
The consistency detection of master/slave data should avoid influencing the operation of regular traffic as far as possible, so the startup of consistency detection should just trigger under certain condition.The consistency detection of master/slave data should reduce the influence to regular traffic as far as possible, should just trigger startup under the less condition of traffic carrying capacity as far as possible.
In the present embodiment, the condition of triggering is as follows:
(1) for the consistency detection of static data, when traffic carrying capacity is less, triggers automatically, for example triggered less than 20% o'clock in the CPU occupation rate.
(2) for the consistency detection of dynamic data, fixed point triggers under the less condition of traffic carrying capacity, for example triggers during zero point every day.
(3) consistency detection of the consistency detection of static data and dynamic data can manually trigger by webmaster, detects the consistency of master/slave data immediately.
Step S103: after starting the consistency detection of master/slave data, the main frame time-out is active and standby synchronous to data.
Main frame is the detection starting point that assurance and standby host are consistent after the consistency detection that starts the type master/slave data, and main frame should suspend the active and standby synchronous of the type data.
For static data, it is unique approach that causes static data to change that configuration changes, and therefore in the process of doing the static data consistency detection, forbids that configuration changes.
For dynamic data, mainly be that service operation causes dynamic data to change, because can not forbid professional operation, in the process of doing the dynamic data consistency detection, main frame stops to standby host synchronous dynamic data, after consistency detection is finished, again with all dynamic datas to standby host synchronously once.
Step S104: main frame carries out the operation of consistency detection.
At the type data, main frame is collected data and calculation check value, and checking data (comprising data type, check value) is sent to standby host.
To the consistency detection of static data and dynamic data, main frame is collected static data and dynamic data respectively, calculates the CRC check value respectively, and checking data (comprising data type, CRC check value) is sent to standby host.
Step S105: standby host carries out the operation of consistency detection.
Standby host receives checking data, collects data according to data type, calculates the CRC check value equally, and compares with the CRC check value of main frame, if equate then think the master/slave data unanimity, otherwise thinks that master/slave data is inconsistent.Standby host sends to main frame with result's (comprising data type, active and standby whether consistent) of consistency detection.
Step S106: main frame is judged the consistency of master/slave data.
When master/slave data is consistent, execution in step S108; When master/slave data is inconsistent, execution in step S107.
Step S107: the main frame alarm, synchrodata is to standby host again.
Main frame is received the consistency detection result of standby host, if master/slave data is inconsistent, treatment measures comprise:
(1) alert to the webmaster report.
The inconsistent alarm of master/slave data has been arranged, before fault location, can check the current inconsistent alarm of master/slave data that whether has earlier, check whether the inconsistent alarm of master/slave data is arranged in the history alarm, if the inconsistent alarm of master/slave data is arranged, can check the master/slave data stationary problem earlier emphatically, to shorten fault location time.
(2) synchrodata again.
Standby host is again to main frame synchrodata again, and according to configuration, synchrodata also can continue to keep on-the-spot again.
Step S108: recover active and standby synchronous.
Main frame recovers the active and standby synchronous of related data, allows the active and standby synchronous of the type data again.

Claims (6)

1. the conforming method of active and standby machine is judged in the detection by static data or dynamic data, and step is as follows:
(1) consistency detection of startup static data or dynamic data;
(2) suspend to static data or dynamic data active and standby synchronously;
(3) main frame is collected static data or dynamic data, and the calculation check value sends to standby host with checking data;
(4) after standby host receives checking data, collect data according to data type, the calculation check value, and compare with the check value of main frame; If equate then think the master/slave data unanimity, if unequal then think that master/slave data is inconsistent, and standby host sends to main frame with the result of consistency detection;
(5) recover active and standby synchronous.
2. the conforming method of active and standby machine is judged in the detection by static data or dynamic data according to claim 1, it is characterized in that, in the step (1), size according to traffic carrying capacity starts the master/slave data consistency detection, perhaps starts master/slave data consistency by the webmaster manual activation and detects.
3. the conforming method of active and standby machine is judged in the detection by static data or dynamic data according to claim 1, it is characterized in that, step (1) further comprises: the data that need be consistent between active and standby are classified.
4. the conforming method of active and standby machine is judged in the detection by static data or dynamic data according to claim 1, it is characterized in that, in the step (2), for static data, forbids that configuration changes; For dynamic data, main frame stops to standby host synchronous dynamic data.
5. the conforming method of active and standby machine is judged in the detection by static data or dynamic data according to claim 1, it is characterized in that, in the step (3), described checking data comprises data type or check value.
6. the conforming method of active and standby machine is judged in the detection by static data or dynamic data according to claim 1, it is characterized in that, in the step (4), when master/slave data was inconsistent, main frame was alarmed or synchrodata arrives standby host.
CNA2006101456695A 2006-11-23 2006-11-23 Method for judging the master/slave computer consistent via static data or dynamic data Withdrawn CN101193001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101456695A CN101193001A (en) 2006-11-23 2006-11-23 Method for judging the master/slave computer consistent via static data or dynamic data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101456695A CN101193001A (en) 2006-11-23 2006-11-23 Method for judging the master/slave computer consistent via static data or dynamic data

Publications (1)

Publication Number Publication Date
CN101193001A true CN101193001A (en) 2008-06-04

Family

ID=39487768

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101456695A Withdrawn CN101193001A (en) 2006-11-23 2006-11-23 Method for judging the master/slave computer consistent via static data or dynamic data

Country Status (1)

Country Link
CN (1) CN101193001A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158359A (en) * 2011-04-01 2011-08-17 中兴通讯股份有限公司 Single-board fault location device and method
CN103093130A (en) * 2013-01-09 2013-05-08 杭州华三通信技术有限公司 Hardware binding information encryption method and network device
CN104426923A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Data synchronization method and apparatus
CN104965769A (en) * 2014-07-28 2015-10-07 浙江大华技术股份有限公司 System, method and apparatus for on-line detecting consistency of memory data between primary and standby servers
CN106649814A (en) * 2016-12-29 2017-05-10 国网江苏省电力公司南京供电公司 Method for consistency checking of distribution automation cross-domain database
WO2019095952A1 (en) * 2017-11-15 2019-05-23 电信科学技术研究院有限公司 Synchronization method and apparatus
CN111147449A (en) * 2019-12-09 2020-05-12 杭州迪普科技股份有限公司 Method, device, system, equipment and medium for testing packet filtering strategy
CN112988689A (en) * 2019-12-18 2021-06-18 阿里巴巴集团控股有限公司 State checking method and device, electronic equipment and computer readable storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158359A (en) * 2011-04-01 2011-08-17 中兴通讯股份有限公司 Single-board fault location device and method
CN102158359B (en) * 2011-04-01 2015-05-20 中兴通讯股份有限公司 Single-board fault location device and method
CN103093130A (en) * 2013-01-09 2013-05-08 杭州华三通信技术有限公司 Hardware binding information encryption method and network device
CN103093130B (en) * 2013-01-09 2016-05-11 杭州华三通信技术有限公司 A kind of hardware binding information ciphering method and the network equipment
CN104426923A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Data synchronization method and apparatus
CN104965769A (en) * 2014-07-28 2015-10-07 浙江大华技术股份有限公司 System, method and apparatus for on-line detecting consistency of memory data between primary and standby servers
CN106649814A (en) * 2016-12-29 2017-05-10 国网江苏省电力公司南京供电公司 Method for consistency checking of distribution automation cross-domain database
WO2019095952A1 (en) * 2017-11-15 2019-05-23 电信科学技术研究院有限公司 Synchronization method and apparatus
TWI700949B (en) * 2017-11-15 2020-08-01 大陸商電信科學技術研究院有限公司 Method and device for synchronization
US11212045B2 (en) 2017-11-15 2021-12-28 Datang Mobile Communications Equipment Co., Ltd. Synchronization method and apparatus
CN111147449A (en) * 2019-12-09 2020-05-12 杭州迪普科技股份有限公司 Method, device, system, equipment and medium for testing packet filtering strategy
CN112988689A (en) * 2019-12-18 2021-06-18 阿里巴巴集团控股有限公司 State checking method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101193001A (en) Method for judging the master/slave computer consistent via static data or dynamic data
CN101192971B (en) Detection method for master/slave data consistency
TWI608419B (en) Method for pre-testing software compatibility and system thereof
CN106202075B (en) Method and device for switching between main database and standby database
CN108243031B (en) Method and device for realizing dual-computer hot standby
CN109032320B (en) Battery backup unit testing method and related equipment
CN101237355B (en) Service monitoring method, and network monitoring device
CN101192972A (en) Detection method for master/slave data consistency
CN110209497B (en) Method and system for dynamically expanding and shrinking host resource
US7979238B2 (en) System, method and computer program product for evaluating a test of an alternative system
CN106294030A (en) Storage redundancy approach based on server virtualization system and device
CN111124785A (en) Hard disk fault checking method, device, equipment and storage medium
CN100377105C (en) Automatic alarm testing method
CN111447333B (en) TDM bus fault detection method, device, equipment and readable storage medium
CN110569303B (en) MySQL application layer high-availability system and method suitable for various cloud environments
CN102521116A (en) Fault monitoring software
CN113849350A (en) Ring-shaped two-place three-center topology switching method, device, system and medium
CN101605052B (en) Method and system for acquiring in-place information of extended sub-frame by main sub-frame of SDH equipment
CN113704029A (en) Node availability management and control method, node, cluster, device and medium
CN106776169A (en) A kind of method and device of the PSU of testing service device
CN101820360A (en) Alarm platform and method for implementing alarm thereof
CN115333044B (en) Instant standby method and system based on intelligent substation chip protection device
CN111352789B (en) Alternating current circulation test method and device for server and storage medium
CN117395263B (en) Data synchronization method, device, equipment and storage medium
CN107092690A (en) A kind of ossified detection method and device of database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication