CN1264304C - Real-time synchronizing method for data in both main and spare board in communication system - Google Patents
Real-time synchronizing method for data in both main and spare board in communication system Download PDFInfo
- Publication number
- CN1264304C CN1264304C CN 02103019 CN02103019A CN1264304C CN 1264304 C CN1264304 C CN 1264304C CN 02103019 CN02103019 CN 02103019 CN 02103019 A CN02103019 A CN 02103019A CN 1264304 C CN1264304 C CN 1264304C
- Authority
- CN
- China
- Prior art keywords
- data
- buffering area
- mainboard
- real
- record
- 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 - Fee Related
Links
Landscapes
- Hardware Redundancy (AREA)
Abstract
The present invention discloses a method for realizing data real-time synchronization of a main board and a spare board in a communication system. Two data buffering areas are respectively arranged in the main board and the spare board. When the data of the main board is revised, the date revised by the main board is written in a buffering area of the main board, and the buffering area can process the data. When the data of the buffering area reaches a certain quantity, a real-time synchronization course of the main board can read the data from the buffering area and send the data to a real-time synchronization course of the spare board. A data bank of the spare board is updated, and an operation result is fed back to the main board. If the operation result is simultaneously succeeded, relevant data in the buffering area is deleted. Otherwise, the date is resent until the record in the buffering area is cleared up. Compared with the original system, after the method of the present invention is adopted, the main/spare switching time is greatly reduced, and the main/spare switching time of 100000 users is lowered from the original 22 seconds to 10 seconds. Disconnection rate during the switch is lowered from the original 8% to 4%, the stability of the system is improved, and higher connection quality is ensured.
Description
Technical field
The present invention relates in the communication system database data and upgrade, when especially system adopts Hot Spare, the method for the real time data synchronization in mainboard and the slave board database.
Background technology:
In order to improve the stability of system, important veneer in the communication system all adopts the 1+1 hot backup mode, slave board starts operation when mainboard breaks down, replace mainboard to finish original function, guarantee communication free of discontinuities is carried out, but so also bring problem: the variation of communication data only is reflected in the mainboard usually, and the data in the slave board can not get upgrading timely, and renewal can only be undertaken by manual.Therefore, when active and standby plate is switched or mainboard when breaking down, though mainboard can be given slave board with data sync before out of service, but, because mainboard and slave board did not carry out Data Update before switching, and slave board need carry out veneer all data that mainboard upgraded since upgrading last time synchronously, if data updated is more, will cause the data sync overlong time, at this moment the data of mainboard also are not synchronized to the database of slave board fully, mainboard is just out of service, thereby causes the data of slave board and mainboard inconsistent.Perhaps, variation has taken place again in the mainboard data in the time of synchronously, and so, slave board user data and mainboard user data will there are differences.And slave board omitted should data updated, will make user's communication disruption, the stable operation of system can not get ensureing.
The existing method that operates in Data Update in the backup veneer is directly synchronously, promptly directly sends to slave board when the mainboard data change, and slave board is received after the data whether success of notice mainboard operation, if failure then repeat to send data, till success.The shortcoming of this scheme is that the data traffic volume is little, can only send 1 record at every turn, if the mainboard data are capped, so original modification is just lost, and can't be synchronized to slave board, and therefore, this method needs perfect.
Summary of the invention:
The technical assignment that the present invention will solve is when overcoming existing communication system employing Hot Spare mode, active and standby plate must just carry out the shortcoming of data sync when masterslave switchover, and the problem of the certain customers' loss of data that brings thus, the real-time synchronous method of master/slave data in the communication system is proposed.
The solution that the present invention proposes comprises:
(1) data buffer zone respectively is set in active and standby plate;
(2) when the mainboard data modification, in its buffering area, write the data that mainboard was revised;
(3) buffering area is handled data;
(4) reach one regularly when buffer area data volume, the real-time synchronized process of mainboard read data and send to the real-time synchronized process of slave board from buffering area;
(5) upgrade the slave board database, and operating result is returned to mainboard;
(6) if operating result is synchronous success, corresponding data in the delete buffer then, otherwise resend data;
(7) (2)-(6) are carried out in circulation, and the data record in buffering area is empty.
In the aforesaid method, if system take place active and standby synchronously, AM/BAM is synchronously or during masterslave switchover, stops execution in step (3)-(7), receives the message that associative operation finishes until mainboard.
Aforesaid method, the described buffering area of step (1) is divided into data field and logo area, and the data field is used for the record of memory modify, and logo area is used to store the type that is modified record, comprises insertion, deletion etc.
Aforesaid method, step (3) comprising: if the data that mainboard is revised are that then system handles these modifications in buffering area one by one according to certain rule, and keeps the data that obtain at last at buffering area at the record with delegation number.
Adopt the method for the invention realize between active and standby plate in real time synchronously after, compare with original system, the time of masterslave switchover significantly reduces, the time of 100000 user's masterslave switchovers was reduced to 10 seconds from original 22 seconds, cutting off rate is reduced to 4% from original 8% when switching, improve the stability of system, ensured higher speech quality.
Embodiment:
Below in conjunction with embodiment the enforcement of technical scheme is described in further detail:
For the important veneer in the communication equipment, all is now the mode that adopts Hot Spare basically, break down when maybe needing to detect with the mainboard of safeguard work, standby veneer can replace its work, can not cause the work of communication system to interrupt.The present invention is in order to realize adopting in the communication system veneer of Hot Spare mode, the real-time synchronous problem of mainboard and slave board.
At first, after mainboard and slave board power on, a buffering area is set respectively on active and standby plate, the purpose that buffering area is set has 2 points: the one, when active and standby plate link is obstructed, deposit the data that mainboard is collected, and another is to provide backtrack mechanism for synchronous unsuccessful record.In real-time synchronizing process of the present invention, though all be provided with buffering area on the active and standby plate, but the buffering area that only is in the veneer of mainboard service position just carries out work, the purpose of Chu Liing is to reduce the time of switching like this, because if inborn ability is equipped with the plate buffering area when system's generation masterslave switchover, the time of switching will be increased, also losing of data might be caused.In addition, set up the memory consumption that buffering area brings in order to reduce, buffering area is divided into data field and logo area two parts, and the former is used to fill in the row number and the major key of record, and the latter is used to fill in the operation to record.Being recorded in and having only 1 in the data field of colleague number mutually, the modification to record as deletion, insertion etc., fills in the logo area.
Need data in synchronization at first to be placed in the buffering area, the packaged transmission of the data in buffering area can make the data traffic volume less like this, can not take too many internal memory.Data still are kept at after transmission in the buffering area, beam back synchronous successful respond up to slave board and just delete, and have solved the problem that data repeat to send.Simultaneously, for the data sync that mainboard will be changed in the shortest time arrives slave board, the present invention also uses real-time synchronized process read-write buffering area, and this process does not stop to check data what and the packing transmission of buffering area, is empty up to buffering area.If system's generation is active and standby synchronously, AM/BAM is synchronous or masterslave switchover, will stop in real time synchronously, receive the message of above-mentioned process end until mainboard.
Be example synchronously in the real-time synchronizing process AM/BAM to take place below, this method be described:
1, during the mainboard database change to the buffering area write data.
2, buffering area is handled data, suppose to delete in the mainboard database 1 record that keyword is A, capable number is 10, inserting keyword then is 1 record of B, just in time also be to be inserted into the 10th row, then carry out following processing: the keyword of deleted record is write in the key field in buffered data district with capable number, dispose mark " deletion " at the 10th element of logo area simultaneously; Search buffering area then, find that to have row number be 10 record, revise being labeled as " deletion " " insertion " at the 10th element place of logo area.
3, when the record in the buffering area is accumulated to some, synchronized process is packed and is sent to slave board in real time, waits for the slave board return messages.
4, when mainboard is received slave board confirmation of synchronization message, mainboard deletion is successful record number synchronously, and the synchronous successful record that will be accumulated to some resends
5, repeat this process, be sky up to buffering.
If 6 before step 5, backstage notice mainboard AM/BAM begins synchronously, and then the real-time synchronized process of mainboard stops to send data to the real-time synchronized process of slave board, but still can carry out the operation of step 1 and step 2, up to the same EOS of AM/BAM, just recover the step 3-step 5 of back.
The present invention has realized that by the real-time synchronized process of automatic operation with at the buffering area of opening up on the mainboard data variation arrives the in time synchronous of slave board on the mainboard, the accuracy height, it is few to take resource, implement simple, do not need to add extra hardware device, only needing the free time of CPU and the cutting off rate that a spot of internal memory just can reduce masterslave switchover time and user, is not only practicality but also simple good method.
Claims (4)
1, the method for active and standby plate real time data synchronization in the communication system is characterized in that comprising:
(1) data buffer zone respectively is set in active and standby plate;
(2) when the mainboard data modification, in its buffering area, write the data that mainboard was revised;
(3) buffering area is handled data;
(4) reach one regularly when buffer area data volume, the real-time synchronized process of mainboard read data and send to the real-time synchronized process of slave board from buffering area;
(5) upgrade the slave board database, and operating result is returned to mainboard;
(6) if operating result is synchronous success, corresponding data in the delete buffer then, otherwise resend data;
(7) (2)-(6) are carried out in circulation, and the data record in buffering area is empty.
2, the method for claim 1 is characterized in that, if system take place active and standby synchronously, AM/BAM is synchronously or during masterslave switchover, stops execution in step (3)-(7), receives the message that associative operation finishes until mainboard.
3, method as claimed in claim 1 or 2 is characterized in that, the buffering area in the described step (1) is divided into data field and logo area, the record that data area stores is revised, and the logo area storage is modified the type of record, comprises insertion, deletion.
4, method as claimed in claim 1 or 2, it is characterized in that, described step (3) comprising: if the data that mainboard is revised are that then system handles these modifications in buffering area one by one according to certain rule, and keeps the data that obtain at last at buffering area at the record with delegation number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02103019 CN1264304C (en) | 2002-02-04 | 2002-02-04 | Real-time synchronizing method for data in both main and spare board in communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02103019 CN1264304C (en) | 2002-02-04 | 2002-02-04 | Real-time synchronizing method for data in both main and spare board in communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1437348A CN1437348A (en) | 2003-08-20 |
CN1264304C true CN1264304C (en) | 2006-07-12 |
Family
ID=27627720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02103019 Expired - Fee Related CN1264304C (en) | 2002-02-04 | 2002-02-04 | Real-time synchronizing method for data in both main and spare board in communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1264304C (en) |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100407636C (en) * | 2003-10-14 | 2008-07-30 | 华为技术有限公司 | Method for improving accessibility of communication equipment |
CN100368998C (en) * | 2004-07-23 | 2008-02-13 | 中兴通讯股份有限公司 | Multiple data base data syne method |
CN100426692C (en) * | 2004-11-15 | 2008-10-15 | 中兴通讯股份有限公司 | Communication device host-standby switching protocol processing software synchronizing method |
CN100397803C (en) * | 2005-02-01 | 2008-06-25 | 北京北方烽火科技有限公司 | N+1 duplicates data real-time synchronising method |
CN100369038C (en) * | 2005-02-24 | 2008-02-13 | 中兴通讯股份有限公司 | Method for implementing realtime database routine operation |
CN100433880C (en) * | 2005-05-17 | 2008-11-12 | 中兴通讯股份有限公司 | Method for carrying out active-standby increment backup protection on data area resource facing object |
CN100409619C (en) * | 2005-07-13 | 2008-08-06 | 武汉烽火网络有限责任公司 | Data network equipment and its management controlling method |
CN100463444C (en) * | 2005-07-20 | 2009-02-18 | 中兴通讯股份有限公司 | Method for main and spare synchronization of call data |
CN100440799C (en) | 2005-09-06 | 2008-12-03 | 华为技术有限公司 | Main/standby board back-up in access-in apparatus and rearranging method therefor |
CN101056330B (en) * | 2006-04-12 | 2011-05-04 | 鸿富锦精密工业(深圳)有限公司 | Network device and synchronization method of the user status information |
CN100466545C (en) * | 2006-04-14 | 2009-03-04 | 中兴通讯股份有限公司 | Data synchronization method between the main board and spare board in the communication system |
CN101114892A (en) * | 2006-07-28 | 2008-01-30 | 华为技术有限公司 | Packet backup method |
CN101155061B (en) * | 2006-09-28 | 2010-05-12 | 中兴通讯股份有限公司 | Master/standby control method |
CN101286862B (en) * | 2007-04-09 | 2012-07-04 | 中兴通讯股份有限公司 | Method for synchronizing and switching multicast service between main and standby in access device |
CN100449548C (en) * | 2007-04-11 | 2009-01-07 | 华为技术有限公司 | Method and system for synchronizing data base |
CN101102219B (en) * | 2007-07-30 | 2010-06-23 | 华为技术有限公司 | Software update system and software update method |
CN101394641B (en) * | 2007-09-18 | 2011-09-21 | 中兴通讯股份有限公司 | Main standby machine switching method oriented to user data |
CN101197657B (en) * | 2007-11-12 | 2011-05-25 | 中兴通讯股份有限公司 | Data synchronization method of distributed system single panel |
CN101446972B (en) * | 2008-12-12 | 2013-03-20 | 中兴通讯股份有限公司 | Method and system for dynamic data synchronization |
CN102184183B (en) * | 2011-03-31 | 2013-04-17 | 迈普通信技术股份有限公司 | Data synchronization method for distributed database |
CN102801543B (en) * | 2011-05-24 | 2015-12-16 | 中国银联股份有限公司 | A kind of method of dynamic data synchronization between dual-active system |
CN103684839B (en) * | 2012-09-26 | 2018-05-18 | 中国移动通信集团四川有限公司 | It is a kind of for the data transmission method of two-node cluster hot backup, system and server |
CN106411546B (en) * | 2015-07-29 | 2020-03-17 | 中兴通讯股份有限公司 | Pseudo wire dual-homing protection control method and communication equipment |
CN109547532A (en) * | 2018-10-25 | 2019-03-29 | 交控科技股份有限公司 | A kind of method of data synchronization in multiserver redundant system between each server |
CN111478947B (en) * | 2020-03-20 | 2023-02-17 | 珠海高凌信息科技股份有限公司 | Method and system for real-time synchronization of main control board and standby control board |
CN113608921B (en) * | 2021-06-25 | 2024-01-16 | 天津津航计算技术研究所 | Key consistent response control method for anti-blocking dual-machine hot backup system |
-
2002
- 2002-02-04 CN CN 02103019 patent/CN1264304C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1437348A (en) | 2003-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1264304C (en) | Real-time synchronizing method for data in both main and spare board in communication system | |
US6941327B2 (en) | Apparatus and method for database synchronization in a duplex system | |
CN102955720B (en) | A kind of method improving ext file system stability | |
US7565572B2 (en) | Method for rolling back from snapshot with log | |
CN101102577B (en) | Incremental synchronization method for data in tables of frontground and background database of wireless communication base station system | |
JP4792505B2 (en) | Data synchronization processing method, client, server, and data synchronization system between client and server | |
CN102012933B (en) | Distributed file system and method for storing data and providing services by utilizing same | |
EP0722236B1 (en) | System and method for fault tolerant key management | |
CN101187948A (en) | A continuous data protection system and its realization method | |
CN101369283A (en) | Data synchronization method and system for internal memory database physical data base | |
CN1286288C (en) | Method of internal data base main-spare synchronous | |
CN101414946B (en) | Method and medium server for remote data backup | |
CN1180569C (en) | Method for setting backup attaching position register | |
CN101118509A (en) | Process, device and system for EMS memory data-base remote disaster tolerance | |
CN103544081B (en) | The management method of double base data server and device | |
CN1126054C (en) | Protocol for synchronizing parallel processors in mobile communiacation system | |
CN1275476C (en) | Clustering system for utilizing sharing internal memory in mobile communiation system and realizing method thereof | |
CN102982033B (en) | The storage method and system of small documents | |
CN1984120B (en) | Method for assuring bill document and primary data consistence during the process of dual system switch | |
CN1725658A (en) | Real-time data base main standby synchronous method | |
CN1426244A (en) | Main and spare internal memory data processing method | |
US20030032425A1 (en) | Schema change method of dual system | |
CN116226093B (en) | Real-time database system based on dual-activity high-availability architecture | |
CN112416656A (en) | Data offline storage method for station application server | |
CN113127435A (en) | Intelligent synchronization method and system for files of main and standby systems |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060712 Termination date: 20140204 |