CN114124707A - Network control center multipoint hot standby method - Google Patents

Network control center multipoint hot standby method Download PDF

Info

Publication number
CN114124707A
CN114124707A CN202111386366.3A CN202111386366A CN114124707A CN 114124707 A CN114124707 A CN 114124707A CN 202111386366 A CN202111386366 A CN 202111386366A CN 114124707 A CN114124707 A CN 114124707A
Authority
CN
China
Prior art keywords
network control
control center
data
standby
summary information
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
Application number
CN202111386366.3A
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.)
CETC 54 Research Institute
Original Assignee
CETC 54 Research Institute
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 CETC 54 Research Institute filed Critical CETC 54 Research Institute
Priority to CN202111386366.3A priority Critical patent/CN114124707A/en
Publication of CN114124707A publication Critical patent/CN114124707A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network control center multipoint hot standby method, and belongs to the field of satellite communication. The method comprises the steps that a main network control center and a standby network control center periodically exchange local data abstracts, when data are judged to be inconsistent, the main network control center carries out local data snapshot, and the standby network control center imports the snapshot to complete data initial synchronization; on the basis, the standby network control center keeps a data synchronization state through state machine copying, and remote hot backup of the network control center configuration data is achieved. The method can be applied to the scene that a plurality of network control centers are deployed in different places to perform network management configuration data hot backup, does not need to depend on available software or equipment of a third party, and is wide in applicable scene and easy to implement.

Description

Network control center multipoint hot standby method
Technical Field
The invention relates to the technical field of satellite communication network management, in particular to a network control center multipoint hot standby method.
Background
The network control center software has the functions of integrated configuration, performance management, fault management, resource management and the like, and plays an important role in the satellite communication network. In order to ensure reliable operation of the satellite communication system, the network control centers are generally configured according to a master-slave configuration or a master-slave configuration, that is, a plurality of network control centers are configured in one system, so as to ensure that the system can still continue to work when a network control center is down or has other abnormalities.
The common backup methods include hot backup and cold backup, and for a network control center with a high reliability requirement, hot backup is often adopted, where hot backup refers to that, when an abnormality occurs in a main network control center, a standby network control center is automatically upgraded to the main network control center according to a predefined policy, and the difficulty lies in how to implement real-time synchronization of data.
In the prior art, data synchronization is generally realized through third-party software, the method is complex in operation, difficult to maintain and high in cost, the flexibility of data synchronization performed by using the third-party software is not high, and the performance of the system is affected due to improper setting of synchronization time.
Disclosure of Invention
The invention provides a network control center multipoint hot standby method for solving the technical problems mentioned in the background technology. The method can be applied to the scene that a plurality of network control centers are deployed in different places to perform network management configuration data hot backup, does not need to depend on available software or equipment of a third party, and is wide in applicable scene and easy to implement.
In order to achieve the purpose, the invention adopts the technical scheme that:
a network control center multipoint hot standby method comprises two stages of data initial synchronization and state machine replication;
the initial data synchronization phase comprises the following steps:
A1. the main network control center periodically sends a handshake message to each standby network control center;
A2. after receiving the handshake message of the main network control center, the standby network control center generates summary information of all local data and sends the summary information to the main network control center;
A3. after receiving the summary information of the standby network control center, the main network control center generates summary information of all local data and compares the summary information with the received summary information of the standby network control center, if the summary information of the same standby network control center received for three times continuously is not consistent with the local summary information, the step A4 is executed, otherwise, the step A1 is skipped;
A4. the main network control center generates snapshots of all local data and packages the snapshots into backup files, then transmits the backup files to the corresponding standby network control center, and the standby network control center decompresses the files and carries out filling operation, and then jumps to step A1;
the state machine replication phase comprises the following steps:
B1. each network control center maintains a log queue for storing operation logs; when the external system operates the data of the main network control center, the main network control center generates operation logs and sequentially stores the operation logs into a log queue of the main network control center;
B2. the master network control center synchronizes the operation logs to each standby network control center, and the standby network control centers sequentially store the operation logs in local log queues;
B3. and the state machines of the main and standby network control centers execute the same updating according to the same sequence in the queue, so that the consistency of the final state is ensured, and the data synchronization of the main and standby network control centers is realized.
Further, in step a2 and step A3, the specific way of generating summary information of all local data is as follows:
generating abstract information aiming at a configuration file supporting the function of the network control center and a data table for recording configuration parameters in a database, wherein the abstract information of the configuration file is recorded in a data version file; recording the latest modified time information of each configuration parameter data table in the database in a data version table;
for the configuration files, comparing the data summary information of the newly generated configuration files each time with the data summary information of the corresponding files in the data version files, if the data summary information of the newly generated configuration files is inconsistent with the data summary information of the corresponding files in the data version files, updating the data summary information of the corresponding files in the data version files, otherwise, not updating;
for the data tables, when a certain data table in the database is modified, updating the time information of the current data table of the data version table;
and generating abstract information of the data version file and abstract information of a data version table in the database, and using the two abstract information as abstract information of local data to reflect the states of all data versions of the current network control center.
The invention has the beneficial effects that:
the method can be applied to the scene that a plurality of network control centers are deployed in different places to perform network management configuration data hot backup, does not need to depend on available software or equipment of a third party, and is wide in applicable scene and easy to implement.
Drawings
FIG. 1 is a schematic diagram of a scenario of an embodiment of the present invention.
Fig. 2 is a flow chart of the initial synchronization stage of data in the embodiment of the present invention.
FIG. 3 is a flow chart illustrating a state machine replication phase according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be further described with reference to the accompanying drawings and the detailed description.
A multipoint hot standby method of a network control center comprises two stages of data initial synchronization and state machine copying.
The initial data synchronization stage is realized by exchanging data summaries through a network control center, judging data consistency, generating and filling data snapshots, and specifically comprises the following steps:
A. the main network control center periodically sends handshake messages to each standby network control center.
B. After receiving the handshake message of the main network control center, the standby network control center generates summary information of all local data and sends the summary information to the main network control center.
C. And D, after the master network control center receives the abstract information of the standby network control center, generating the abstract information of all local data and comparing the abstract information with the received abstract information of the standby network control center, if the abstract information of the same standby network control center received for three times continuously is not consistent with the local abstract information, executing the step D, and otherwise, skipping to the step A.
D. And B, after the main network control center generates snapshots of all local data and packages the snapshots into backup files, transmitting the backup files to a corresponding standby network control center, decompressing the files by the standby network control center, and jumping to the step A after the backup network control center performs filling operation.
The generation of the local data summary information in the above steps B and C includes the following steps:
A. the basic data for supporting the main functions of the network control center mainly comprise configuration files and a data table for recording configuration parameters in a database. And recording the summary information of each configuration file in the data version file, comparing the generated data summary information of the new configuration file with the data summary information of the corresponding file in the data version file each time, if the data summary information of the new configuration file is inconsistent with the data summary information of the corresponding file in the data version file, updating the data summary information of the corresponding file in the data version file, and if the data summary information of the corresponding file in the data version file is not consistent with the data summary information of the corresponding file in the data version file, not updating the data summary information.
B. The latest modified time information of each configuration parameter data table in the database is recorded in the data version table, and when a certain data table in the database is modified, the time information of the current data table of the data version table is updated.
C. And generating summary information of the data version file and summary information of a data version table in the database, wherein the summary information of the data version file and the summary information of the data version table in the database reflect the current data version state of the network control center and serve as the summary information of the local data.
The state machine replication phase is executed after the data initial synchronization phase is completed, and is realized by operation log generation, operation log synchronization and state machine update, and the method specifically comprises the following steps:
A. each network control center maintains a log queue to store a series of operation logs, and when the external system operates the data of the main network control center, the main network control center generates the operation logs and sequentially stores the operation logs in the log queue.
B. The master network control center synchronizes the operation logs to each standby network control center, and the standby network control centers sequentially store the operation logs in local log queues.
C. And the state machines of the main and standby network control centers execute the same updating according to the same sequence in the queue, so that the consistency of the final state is ensured, and the data synchronization of the main and standby network control centers is realized.
Three network control centers are taken as an example to illustrate a network control center multipoint hot standby method. As shown in fig. 1, three network control centers are respectively deployed at different locations; one main network control center is connected with two standby network control centers (numbers 1 and 2) through a ground optical fiber link.
The network control center multipoint hot standby method comprises two stages of data initial synchronization and state machine copying: data abstract exchange, data consistency judgment, data snapshot generation and data filling are carried out through a network control center to realize initial synchronization of data among the network control centers; after the initial data synchronization stage is completed, the network control centers finally realize the copying of the state machines among the network control centers through operation log generation, operation log synchronization and state machine updating, and finally realize the data synchronization of the main and standby network control centers.
As shown in fig. 2, the initial synchronization phase of data is completed by the following steps:
A. the main network control center periodically sends handshake messages to the standby network control center 1 and the standby network control center 2 through an ActiveMQ message bus.
B. After receiving the handshake message of the main network control center, the standby network control center 1 and the standby network control center 2 respectively calculate the summary information of the local data version file and the data version table in the database through the MD5 algorithm, and send the respective data summary information as handshake response message to the main network control center through the message bus.
C. After receiving the handshake response messages of the standby network control center 1 and the standby network control center 2, the main network control center calculates the summary information of the local data version file and the data version table in the database through the MD5 algorithm and compares the summary information with the data summary information in the received handshake response messages. And (3) comparing the results: the data abstract information in the handshake response message of the standby network control center 1 is inconsistent with the data abstract information of the main network control center for three consecutive times, and the subsequent step D is continuously executed; and D, the data abstract information in the handshake response message of the standby network control center 2 is consistent with the data abstract information of the main network control center, and the step A is continuously executed.
D. The main network control center generates snapshots of all local data, packages the snapshots into backup files, transmits the backup files to the standby network control center 1 based on FTP, and skips step A after the standby network control center 1 decompresses the backup files and performs filling operation.
As shown in fig. 3, the state machine replication phase is completed by:
A. each network control center maintains a log queue to store a series of operation logs, and when an external system operates the data of the main network control center on the basis of the completion of the initial synchronization stage of the data, the main network control center generates the operation logs and sequentially stores the operation logs into the log queue.
B. The operation of the network control center on the data is completed by using a message triggering mechanism, the network connector function of an ActiveMQ message bus is adopted, the operation logs of the main network control center are synchronized to the standby network control center 1 and the standby network control center 2, and the received operation logs are sequentially stored in respective log queues by the standby network control center 1 and the standby network control center 2.
C. The state machines of the main network control center, the standby network control center 1 and the standby network control center 2 execute the same update according to the same sequence in the log queue, so that the consistency of the final state is ensured, and the synchronization of data between the main network control center and the standby network control center is realized.
In a word, the method periodically exchanges local data abstracts by the main network control center and the standby network control center, when the data are judged to be inconsistent, the main network control center carries out local data snapshot, and the standby network control center imports the snapshot to complete the initial synchronization of the data; on the basis, the standby network control center keeps a data synchronization state through state machine copying, and remote hot backup of the network control center configuration data is achieved.
The method can be applied to the scene that a plurality of network control centers are deployed in different places to perform network management configuration data hot backup, does not need to depend on available software or equipment of a third party, and is wide in applicable scene and easy to implement.
Although the present invention has been described in detail with reference to the above embodiments, it will be apparent to those skilled in the art that modifications may be made to the above embodiments, or equivalent substitutions and modifications may be made to other features of the embodiments, and any modifications, equivalents, improvements, etc. within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (2)

1. A network control center multipoint hot standby method is characterized by comprising two stages of data initial synchronization and state machine replication;
the initial data synchronization phase comprises the following steps:
A1. the main network control center periodically sends a handshake message to each standby network control center;
A2. after receiving the handshake message of the main network control center, the standby network control center generates summary information of all local data and sends the summary information to the main network control center;
A3. after receiving the summary information of the standby network control center, the main network control center generates summary information of all local data and compares the summary information with the received summary information of the standby network control center, if the summary information of the same standby network control center received for three times continuously is not consistent with the local summary information, the step A4 is executed, otherwise, the step A1 is skipped;
A4. the main network control center generates snapshots of all local data and packages the snapshots into backup files, then transmits the backup files to the corresponding standby network control center, and the standby network control center decompresses the files and carries out filling operation, and then jumps to step A1;
the state machine replication phase comprises the following steps:
B1. each network control center maintains a log queue for storing operation logs; when the external system operates the data of the main network control center, the main network control center generates operation logs and sequentially stores the operation logs into a log queue of the main network control center;
B2. the master network control center synchronizes the operation logs to each standby network control center, and the standby network control centers sequentially store the operation logs in local log queues;
B3. and the state machines of the main and standby network control centers execute the same updating according to the same sequence in the queue, so that the consistency of the final state is ensured, and the data synchronization of the main and standby network control centers is realized.
2. The network control center multipoint hot standby method according to claim 1, wherein in step a2 and step A3, the specific manner of generating summary information of all local data is as follows:
generating abstract information aiming at a configuration file supporting the function of the network control center and a data table for recording configuration parameters in a database, wherein the abstract information of the configuration file is recorded in a data version file; recording the latest modified time information of each configuration parameter data table in the database in a data version table;
for the configuration files, comparing the data summary information of the newly generated configuration files each time with the data summary information of the corresponding files in the data version files, if the data summary information of the newly generated configuration files is inconsistent with the data summary information of the corresponding files in the data version files, updating the data summary information of the corresponding files in the data version files, otherwise, not updating;
for the data tables, when a certain data table in the database is modified, updating the time information of the current data table of the data version table;
and generating abstract information of the data version file and abstract information of a data version table in the database, and using the two abstract information as abstract information of local data to reflect the states of all data versions of the current network control center.
CN202111386366.3A 2021-11-22 2021-11-22 Network control center multipoint hot standby method Pending CN114124707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111386366.3A CN114124707A (en) 2021-11-22 2021-11-22 Network control center multipoint hot standby method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111386366.3A CN114124707A (en) 2021-11-22 2021-11-22 Network control center multipoint hot standby method

Publications (1)

Publication Number Publication Date
CN114124707A true CN114124707A (en) 2022-03-01

Family

ID=80439510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111386366.3A Pending CN114124707A (en) 2021-11-22 2021-11-22 Network control center multipoint hot standby method

Country Status (1)

Country Link
CN (1) CN114124707A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6539341B1 (en) * 2000-11-06 2003-03-25 3Com Corporation Method and apparatus for log information management and reporting
CN103164523A (en) * 2013-03-19 2013-06-19 华为技术有限公司 Inspection method, device and system of data consistency inspection
WO2014029755A1 (en) * 2012-08-20 2014-02-27 Siemens Aktiengesellschaft A method for exchanging a set of replicas
US20180253483A1 (en) * 2017-03-06 2018-09-06 Datastreams Corp. Apparatus and method for replicating changed-data in source database management system to target database management system in real time
WO2019091324A1 (en) * 2017-11-07 2019-05-16 阿里巴巴集团控股有限公司 Data synchronization method and device, and electronic device
US10489230B1 (en) * 2015-12-02 2019-11-26 Amazon Technologies, Inc. Chaining log operations in data replication groups
US20190391741A1 (en) * 2018-06-20 2019-12-26 Genesys Telecommunications Laboratories, Inc. System and method for a replication protocol in a real-time statistical engine
CN112187475A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for performing multi-center accounting based on trusted computing and related products
CN112187476A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for synchronizing block chain state based on trusted computing and related product
CN112988689A (en) * 2019-12-18 2021-06-18 阿里巴巴集团控股有限公司 State checking method and device, electronic equipment and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6539341B1 (en) * 2000-11-06 2003-03-25 3Com Corporation Method and apparatus for log information management and reporting
WO2014029755A1 (en) * 2012-08-20 2014-02-27 Siemens Aktiengesellschaft A method for exchanging a set of replicas
CN103164523A (en) * 2013-03-19 2013-06-19 华为技术有限公司 Inspection method, device and system of data consistency inspection
US10489230B1 (en) * 2015-12-02 2019-11-26 Amazon Technologies, Inc. Chaining log operations in data replication groups
US20180253483A1 (en) * 2017-03-06 2018-09-06 Datastreams Corp. Apparatus and method for replicating changed-data in source database management system to target database management system in real time
WO2019091324A1 (en) * 2017-11-07 2019-05-16 阿里巴巴集团控股有限公司 Data synchronization method and device, and electronic device
US20190391741A1 (en) * 2018-06-20 2019-12-26 Genesys Telecommunications Laboratories, Inc. System and method for a replication protocol in a real-time statistical engine
CN112988689A (en) * 2019-12-18 2021-06-18 阿里巴巴集团控股有限公司 State checking method and device, electronic equipment and computer readable storage medium
CN112187475A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for performing multi-center accounting based on trusted computing and related products
CN112187476A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for synchronizing block chain state based on trusted computing and related product

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
栗华军;宋顺林;: "异构数据库集成系统的研究与实现", 计算机工程与设计, no. 15 *
马刈非, 韩松: "话音VSAT网网控系统中异地热备份的研究", 计算机与网络, no. 03 *

Similar Documents

Publication Publication Date Title
US6438707B1 (en) Fault tolerant computer system
WO2017177941A1 (en) Active/standby database switching method and apparatus
CN113987064A (en) Data processing method, system and equipment
CN102945195A (en) Master-standby redundancy replication method based on SQLite databases
CN107623703B (en) Synchronization method, device and system for Global Transaction Identifier (GTID)
CN102681917A (en) Operating system (OS) and recovery method thereof
CN110138876B (en) Task deployment method, device, equipment and platform
CN110442427B (en) Virtual machine snapshot management method, device, equipment and storage medium
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN104765652B (en) A kind of data backup and data reconstruction method and device
CN103428288B (en) Based on the copies synchronized method of subregion state table and coordinator node
US20210096962A1 (en) Data backup method, device and system
US11042454B1 (en) Restoration of a data source
CN110620798B (en) Control method, system, equipment and storage medium for FTP connection
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN114124707A (en) Network control center multipoint hot standby method
CN112905676A (en) Data file importing method and device
CN111241200A (en) sSQLite database-based main and standby synchronous processing method and device
CN115017235A (en) Data synchronization method, electronic device and storage medium
CN116166470A (en) Redis cluster clone replication method and device, medium and equipment
CN110515779A (en) A kind of method of data synchronization for realizing self-regeneration
CN109995848B (en) System configuration data management method based on block chain and intelligent contract
CN109445717B (en) Data storage method and device during dual-computer backup
CN110362428A (en) The on-line automatic method and system for restoring database block
JP2012123670A (en) Replication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination