CN100413261C - Method and system for data recovery - Google Patents

Method and system for data recovery Download PDF

Info

Publication number
CN100413261C
CN100413261C CNB2006100326270A CN200610032627A CN100413261C CN 100413261 C CN100413261 C CN 100413261C CN B2006100326270 A CNB2006100326270 A CN B2006100326270A CN 200610032627 A CN200610032627 A CN 200610032627A CN 100413261 C CN100413261 C CN 100413261C
Authority
CN
China
Prior art keywords
module
application
application module
detection
data
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
Application number
CNB2006100326270A
Other languages
Chinese (zh)
Other versions
CN1870533A (en
Inventor
古鲁浦斯
可斯日尼
浦莎斯璀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100326270A priority Critical patent/CN100413261C/en
Publication of CN1870533A publication Critical patent/CN1870533A/en
Application granted granted Critical
Publication of CN100413261C publication Critical patent/CN100413261C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

本发明提供了一种数据恢复的方法,该方法应用于包含有热备份模块及至少一个应用模块的系统中,包括步骤:热备份模块发送第一检测消息到所述每一应用模块;每个应用模块接收所述第一检测消息,并根据所述第一检测消息使该应用模块内部的信息一致,然后发送第一响应消息到所述热备份模块;所述热备份模块接收所述第一响应信息后,发送第二检测消息;所述每个应用模块接收所述第二检测消息,并根据所述的第二检测消息使各应用模块间的信息一致;同时本发明还提供一种数据恢复的系统。使用本发明的方法和系统,保证每一应用模块的模块内和模块间的数据一致,提高通信系统的可靠性,保证通信业务的正常运行。

The present invention provides a method for data recovery, which is applied to a system including a hot backup module and at least one application module, comprising steps: the hot backup module sends a first detection message to each application module; each The application module receives the first detection message, and makes the internal information of the application module consistent according to the first detection message, and then sends a first response message to the hot backup module; the hot backup module receives the first After responding to the information, send a second detection message; each application module receives the second detection message, and makes the information between the application modules consistent according to the second detection message; meanwhile, the present invention also provides a data Recovered system. Using the method and system of the present invention ensures that the data within and between modules of each application module is consistent, improves the reliability of the communication system, and ensures the normal operation of communication services.

Description

数据恢复的方法和系统 Method and system for data recovery

技术领域 technical field

本发明涉及数据通信领域中的恢复技术,具体地说,涉及一种数据恢复的方法和系统。The invention relates to recovery technology in the field of data communication, in particular to a data recovery method and system.

背景技术 Background technique

主用板是路由器的控制中心,CPU和存储器就在主用板中。主用板负责整个路由器的管理和控制,IP路由协议在主用板上运行。主用板直接接收来自网管中心的指令,并下发到各接口板执行指令,同时各接口板把运行状态和统计数据传送到主用板,由主用板进行必要的处理,需要时发给网管中心。网络管理员配置的静态路由以及通过运行路由协议生成的动态路由主用板进行管理,并下发到各接口板,使各接口板可以独立地进行数据包的转发工作。The main board is the control center of the router, and the CPU and memory are on the main board. The main board is responsible for the management and control of the entire router, and the IP routing protocol runs on the main board. The main board directly receives the instructions from the network management center, and sends them to the interface boards to execute the instructions. At the same time, each interface board transmits the running status and statistical data to the main board, and the main board performs necessary processing and sends them to the main board when necessary. Network management center. The static route configured by the network administrator and the dynamic route generated by running the routing protocol are managed by the master board and delivered to each interface board, so that each interface board can independently forward data packets.

主用板的作用举足轻重,一旦它发生故障,整个路由器将不能正常工作。对于电信网的核心网络设备来说,无论系统任何一个部分出现故障时总能在客户需要时及时提供服务,其要求可用率达到99.999%,即1年的停机时间不能超过5min,增加系统的可用性就表现出尤为重要。The role of the main board is very important. Once it fails, the entire router will not work properly. For the core network equipment of the telecommunication network, no matter any part of the system fails, it can always provide services in time when customers need it. It requires an availability rate of 99.999%, that is, the downtime of one year cannot exceed 5 minutes, increasing the availability of the system appears to be particularly important.

冗余是增加系统可用性的一个关键技术。路由器通过配备两个路由处理器板来提供高可用性,其中一个为主路由处理器,叫做主用板,处于活动状态;另一个的备份路由处理器,叫备用板,处于被动状态。Redundancy is a key technology to increase system availability. A router provides high availability by being equipped with two route processor boards, one of which is the main route processor, called the active board, and is active; the other is the backup route processor, called the standby board, which is in the passive state.

在备用板被插入或主用板上数据更新时,在主用板中运行的模块(软件程序,路由协议等)将数据备份到备用板上,保证主用板上的数据与被控板上的数据保持一致。在正常的工作过程中,主备板周期性地交换握手信号,如果主用板由于硬件或软件错误发生故障,备用板收不到主用板的握手信号,则会启动倒换流程,备用板接替主用板工作,成为主用板,而原先的主用板成为备用板,保证路由器的正常运行。When the standby board is inserted or the data on the main board is updated, the modules (software programs, routing protocols, etc.) running on the main board will back up the data to the standby board to ensure that the data on the main data remains consistent. In the normal working process, the master and slave boards exchange handshake signals periodically. If the master board fails due to hardware or software errors and the slave board cannot receive the handshake signal from the master board, the switchover process will be started and the slave board will take over. The main board works and becomes the main board, and the original main board becomes the standby board to ensure the normal operation of the router.

主备板组成如图1所示:The composition of the main and standby boards is shown in Figure 1:

主用板中的应用模块1、应用模块2、应用模块3:提供需要备份到备用板应用模块的数据;Application module 1, application module 2, and application module 3 in the main board: provide data that needs to be backed up to the application module of the backup board;

备用板中的应用模块1、应用模块2、应用模块3:接收主用板中的备份数据并将其存储到备用板的相应应用中模块中;Application module 1, application module 2, and application module 3 in the standby board: receive the backup data in the main board and store it in the corresponding application module of the standby board;

热备份模块:协调主用板到备用板数据备份的模块,并在主用板故障时将备用板切换到主动状态。Hot backup module: A module that coordinates data backup from the active board to the standby board, and switches the standby board to the active state when the active board fails.

主备板在备份过程中发生故障,新主用板中的备份数据不完整,进而导致备用板中的数据不一致,即:应用模块内部备份的运行的数据和正常运行时需要使用的数据不一致;The main and standby boards fail during the backup process, and the backup data in the new main board is incomplete, resulting in inconsistent data in the standby board, that is, the running data backed up inside the application module is inconsistent with the data that needs to be used during normal operation;

如果新主用板在当前状态下运行,从而导致有些应用模块中的内部数据不一致;If the new main board is running in the current state, resulting in inconsistent internal data in some application modules;

同时具有依赖关系的应用模块,由于被依赖模块的数据不一致,导致应用模块间关联的数据不一致。For application modules that have dependencies at the same time, due to the inconsistency of the data of the dependent modules, the data associated between the application modules is inconsistent.

例如在备用板上接口管理模块和路由模块(应用模块)正常运行时,接口管理模块获取路由模块的相关信息,当主用板出现问题时,主备板切换的时候,备用板的路由模块获取备份的数据出现问题的时候,路由模块上的数据和正常运行需要的数据不一致,从而接口管理模块上获取的数据不正确,即和正常所需的数据不一致。For example, when the interface management module and the routing module (application module) on the standby board are running normally, the interface management module obtains the relevant information of the routing module. When there is a problem with the data, the data on the routing module is inconsistent with the data required for normal operation, so the data obtained on the interface management module is incorrect, that is, inconsistent with the data required for normal operation.

从而导致整个系统不能恢复正常运行。As a result, the entire system cannot resume normal operation.

发明内容 Contents of the invention

本发明的目的在于提供一种数据恢复的方法和系统,避免在主用板出现故障的时候,备用板切换为新的主用板时,保证备用板的每一个应用模块内部和应用模块间数据的一致,提高通信系统的可靠性。The purpose of the present invention is to provide a method and system for data recovery, to avoid when the main board fails, when the backup board is switched to a new main board, to ensure the internal and inter-application data of each application module of the backup board. Consistent, improve the reliability of the communication system.

一种数据恢复的方法,该方法应用于包含有热备份模块及至少一个应用模块的系统中,包括步骤:A method for data recovery, which is applied to a system including a hot backup module and at least one application module, comprising steps:

热备份模块发送第一检测消息到所述每一应用模块;The hot backup module sends a first detection message to each application module;

每个应用模块接收所述第一检测消息,并根据所述第一检测消息使该应用模块内部的信息一致,然后发送第一响应消息到所述热备份模块;Each application module receives the first detection message, and makes the internal information of the application module consistent according to the first detection message, and then sends a first response message to the hot backup module;

所述热备份模块接收所述第一响应信息后,发送第二检测消息;After the hot backup module receives the first response information, it sends a second detection message;

所述每个应用模块接收所述第二检测消息,并根据所述的第二检测消息使各应用模块间的信息一致。Each application module receives the second detection message, and makes the information among the application modules consistent according to the second detection message.

所述热备份模块发送第一检测消息具体为:The first detection message sent by the hot backup module is specifically:

所述热备份模块获取所述应用模块的优先级,并按照应用模块优先级由高到低的顺序向所述每个应用模块下发第一检测消息。The hot backup module obtains the priority of the application modules, and sends the first detection message to each of the application modules according to the order of priority of the application modules from high to low.

根据所述第一检测消息使该应用模块内部的信息一致具体为:执行内部信息一致性检测为对应用模块内部具有依赖关系的数据进行一致性检测,并修改不一致的信息。Making the internal information of the application module consistent according to the first detection message specifically includes: performing internal information consistency detection to perform consistency detection on data with dependencies inside the application module, and modifying inconsistent information.

所述修改不一致的信息具体为:把具有依赖关系的不一致数据恢复为默认的安全值或初始化为零。The modifying the inconsistent information specifically includes: restoring the inconsistent data with dependencies to a default safe value or initializing it to zero.

所述发送第二检测消息具体为:The sending of the second detection message is specifically:

所述热备份模块按照所述应用模块的优先级依次下发第二检测消息到所述每个应用模块。The hot backup module sequentially sends the second detection message to each application module according to the priority of the application module.

所述根据所述的第二检测消息使各应用模块间的信息一致具体为:对应用模块之间的具有依赖关系的数据进行检测,并修改所述应用模块间不一致的信息。The making the information consistent between the application modules according to the second detection message specifically includes: detecting the data with dependencies between the application modules, and modifying the inconsistent information between the application modules.

所述修改所述应用模块间不一致的信息具体为:The modification of the inconsistent information between the application modules is specifically:

在该应用模块的被依赖应用模块完成内部一致性修改后,执行依赖的应用模块和被依赖的应用模块之间的数据同步操作。After the dependent application module of the application module completes internal consistency modification, a data synchronization operation between the dependent application module and the dependent application module is performed.

所述根据所述的第二检测消息使各应用模块间的信息一致之后还包括:After making the information between the application modules consistent according to the second detection message, it also includes:

所述应用模块发送第二响应信息到所述热备份模块。The application module sends second response information to the hot backup module.

一种数据恢复的系统,包括:一热备份模块、与所述热备份模块相连的至少一个应用模块,A data recovery system, comprising: a hot backup module, at least one application module connected to the hot backup module,

所述热备份模块进一步包括有消息收发单元:用于发送第一、第二检测消息至所述每个应用模块,并接收所述每个应用模块的响应信息;The hot backup module further includes a message transceiving unit: used to send the first and second detection messages to each application module, and receive the response information of each application module;

所述每个应用模块:接收所述第一、第二检测消息;执行内部信息一致性检测,并使每个应用模块内部信息一致,发送第一响应信息到所述热备份模块;执行应用模块间一致性检测,并使所述每个应用模块间的信息一致。Each application module: receiving the first and second detection messages; performing internal information consistency detection, and making the internal information of each application module consistent, sending the first response information to the hot backup module; executing the application module Inter-consistency detection, and make the information between each of the application modules consistent.

所述每个应用模块包括:Each of the application modules includes:

模块内部检测单元:接收所述第一检测消息,对应用模块内部具有依赖关系的数据进行一致性检测,把具有依赖关系的数据恢复为默认的安全值或初始化为零;Module internal detection unit: receiving the first detection message, performing consistency detection on the data with dependencies inside the application module, and restoring the data with dependencies to default security values or initializing them to zero;

模块间检测单元:接收所述第二检测消息,对应用模块间具有依赖关系的数据进行一致性检测,使应用模块间的数据一致。An inter-module detection unit: receiving the second detection message, and performing a consistency detection on the data having a dependency relationship between the application modules, so as to make the data between the application modules consistent.

所述每个应用模块还包括:Each of the application modules also includes:

注册单元:向热备份模块注册所述每个应用模块的优先级。Registration unit: register the priority of each application module with the hot backup module.

所述消息收发单元包括:The messaging unit includes:

消息顺序发送单元:获取所述每个应用模块的优先级,按照优先级由高到低的顺序向所述每个应用模块发送第一或第二检测消息。A message order sending unit: acquire the priority of each application module, and send the first or second detection message to each application module in order of priority from high to low.

所述应用模块还包括:The application modules also include:

响应单元:发送第一、第二响应消息到热备份模块间检测模块。Response unit: sending the first and second response messages to the hot backup inter-module detection module.

本发明中,保证每一应用模块的模块内和模块间的数据一致,提高通信系统的可靠性,保证通信业务的正常运行。In the present invention, the consistency of data within and among modules of each application module is guaranteed, the reliability of the communication system is improved, and the normal operation of communication services is ensured.

附图说明 Description of drawings

图1为现有技术中主备板的组成。Fig. 1 shows the composition of main and standby boards in the prior art.

图2为本发明实施例的方法流程图。Fig. 2 is a flow chart of the method of the embodiment of the present invention.

图3为本发明实施例的系统的结构图。Fig. 3 is a structural diagram of the system of the embodiment of the present invention.

图4为本发明实施例中应用模块结构图。Fig. 4 is a structural diagram of an application module in an embodiment of the present invention.

图5为本发明实施例中热备份模块结构图。Fig. 5 is a structural diagram of the hot backup module in the embodiment of the present invention.

图6为本发明实施例中具体的一次实施过程。Fig. 6 is a specific implementation process in the embodiment of the present invention.

具体实施方式 Detailed ways

本发明提供一种数据恢复的方法和系统,在硬件上设置主用板和备用板,主备板上都包括:多个应用模块和一热备份模块,本发明的核心思想为:在主备板切换时,备用板升为主用板,新的主用板热备份模块发送检测消息,通知每一应用模块进行应用模块内部和应用模块间的数据一致性检测,修改每一应用模块内部和模块间不一致的信息。The present invention provides a method and system for data recovery. The main board and the standby board are set on the hardware. Both the main board and the standby board include: a plurality of application modules and a hot backup module. When the board is switched, the standby board is upgraded to the main board, and the hot backup module of the new main board sends a detection message to notify each application module to perform data consistency detection within the application module and between application modules, and to modify the internal and external data of each application module. Inconsistent information between modules.

下面结合附图详细说明本发明,本发明中的方法的具体步骤如图2所示,包括步骤:Describe the present invention in detail below in conjunction with accompanying drawing, the concrete steps of method among the present invention are as shown in Figure 2, comprise steps:

步骤201:热备份模块发送第一检测消息。Step 201: The hot backup module sends a first detection message.

每一应用模块向所述热备份模块注册其优先级,并按照每一应用模块优先级由高到低的顺序向所述应用模块下发第一检测消息。Each application module registers its priority with the hot backup module, and sends a first detection message to the application module in descending order of the priority of each application module.

每一应用模块的优先级为根据应用模块的数据依赖性预先设定的,例如在数据传输操作中,应用模块1的数据从应用模块2中得到的,应用模块1的优先级低于应用模块2的优先级。The priority of each application module is preset according to the data dependency of the application module. For example, in the data transmission operation, the data of application module 1 is obtained from application module 2, and the priority of application module 1 is lower than that of application module 2 priority.

步骤202:每一应用模块检测模块内部信息一致性,修改每一应用模块内部不一致信息。Step 202: Each application module detects the consistency of the internal information of the module, and modifies the inconsistent information within each application module.

内部数据不一致性为在数据备份时,应用模块内部处理单元具有依赖关系由于故障,导致内部数据不一致;例如应用模块的内部中第一数据处理单元需要使用第二数据处理单元处理完输出的数据,从而形成第一数据处理单元依赖与第二数据处理单元;当第二数据处理单元出现故障时,导致第一数据处理单元运行不正常,从而导致应用模块内部数据不一致。Internal data inconsistency means that when data is backed up, the internal processing unit of the application module has a dependency relationship due to a failure, resulting in internal data inconsistency; for example, the first data processing unit in the application module needs to use the second data processing unit to process the output data. Thus, the first data processing unit is dependent on the second data processing unit; when the second data processing unit fails, the first data processing unit does not operate normally, resulting in inconsistent data within the application module.

每一应用模块接收第一检测消息,按照应用模块接收到第一检测消息的顺序,依次对应用模块内部具有依赖关系的数据进行一致性检测,并把模块内部具有依赖关系的不一致数据恢复为默认的安全值或初始化为零。Each application module receives the first detection message, and according to the order in which the application modules receive the first detection message, sequentially checks the consistency of the data with dependencies inside the application module, and restores the inconsistent data with dependencies inside the module to the default Safe value or initialized to zero.

默认安全值为发生故障前一次的实现完整热备份所存储的安全数值。The default safe value is the safe value stored in the previous implementation of a full hot backup before the failure occurred.

步骤203、每一应用模块发送响应信息到热备份模块。Step 203, each application module sends a response message to the hot backup module.

每一应用模块发送响应信息通知热备份模块完成模块内部不一致的数据修改。Each application module sends a response message to notify the hot backup module to complete the inconsistent data modification inside the module.

步骤204、热备份模块发送第二检测信息。Step 204, the hot backup module sends the second detection information.

热备份模块按照应用模块注册的优先级依次下发第二检测消息到所述每一应用模块。The hot backup module sequentially sends the second detection message to each application module according to the priority registered by the application module.

步骤205、每一应用模块检测模块间信息,修改应用模块间不一致信息。Step 205, each application module detects inter-module information, and modifies inconsistent information between application modules.

具有数据依赖关系的应用模块,第一应用模块必须等待所依赖的第二应用模块完成内部一致性修改后,执行第一应用模块和第二应用模块之间的数据同步操作,达到第一应用模块与第二应用模块数据的一致性。For application modules with data dependencies, the first application module must wait for the dependent second application module to complete the internal consistency modification, and then execute the data synchronization operation between the first application module and the second application module to reach the first application module. Consistency with the second application module data.

在执行了以上的步骤之后还包括:After performing the above steps also include:

所述应用模块发送响应信息到热备份模块,通知热备份模块完成对模块之间数据一致恢复。The application module sends a response message to the hot backup module, notifying the hot backup module to complete the consistent recovery of data between modules.

一种数据恢复的系统,如图3所示,包括:一热备份模块、与所述热备份模块相连的至少一个应用模块:A system for data recovery, as shown in Figure 3, includes: a hot backup module, at least one application module connected to the hot backup module:

所述热备份模块进一步包括有消息收发单元:用于发送第一、第二检测消息至所述每个应用模块,并接收所述每个应用模块的响应信息;The hot backup module further includes a message transceiving unit: used to send the first and second detection messages to each application module, and receive the response information of each application module;

所述每个应用模块:接收所述第一、第二检测消息;执行内部信息一致性检测,并使每个应用模块内部信息一致,发送第一响应信息到所述热备份模块;执行应用模块间一致性检测,并使所述每个应用模块间的信息一致。Each application module: receiving the first and second detection messages; performing internal information consistency detection, and making the internal information of each application module consistent, sending the first response information to the hot backup module; executing the application module Inter-consistency detection, and make the information between each of the application modules consistent.

所述应用模块如图4所示,包括:Described application module is as shown in Figure 4, comprises:

模块内部检测单元:接收第一检测消息,对应用模块内部具有依赖关系的数据进行一致性检测,把具有依赖关系的数据恢复为默认的安全值或初始化为零;Module internal detection unit: receives the first detection message, performs consistency detection on the data with dependencies inside the application module, and restores the data with dependencies to default security values or initializes them to zero;

模块间检测单元:接收第二检测消息,对应用模块间具有依赖关系的数据进行一致性检测,使应用模块之间的数据一致;The inter-module detection unit: receives the second detection message, and performs consistency detection on the data with dependencies between the application modules, so that the data between the application modules are consistent;

注册单元:向热备份模块注册每个应用模块的优先级。响应单元:发送第一、第二响应消息到热备份模块。Registration unit: register the priority of each application module with the hot backup module. Response unit: sending the first and second response messages to the hot backup module.

所述热备份模块如图5所示,包括:The hot backup module is as shown in Figure 5, including:

消息顺序发送单元:获取每个应用模块的优先级,按照优先级由高到低的顺序向所述每个应用模块发送第一或第二检测消息。Message sequence sending unit: acquire the priority of each application module, and send the first or second detection message to each application module in descending order of priority.

响应信息接收单元:接收应用模块发送过来的第一、第二响应信息。Response information receiving unit: receiving the first and second response information sent by the application module.

一种数据恢复的方法,具体实施过程中包括的模块如图6所示:三个应用模块:应用模块1、应用模块2、应用模块3;一个热备份模块。A data recovery method, the modules included in the specific implementation process are shown in Figure 6: three application modules: application module 1, application module 2, application module 3; a hot backup module.

应用模块3传输数据到应用模2,而应用模块2传输数据到应用模块1,应用模块1依赖于应用模块2,应用模块2依赖于应用模块3,因此应用模块3的优先级最高,应用模块2的优先级次之,应用模块3的优先级最低。Application module 3 transmits data to application module 2, and application module 2 transmits data to application module 1. Application module 1 depends on application module 2, and application module 2 depends on application module 3. Therefore, application module 3 has the highest priority. 2 has the second priority, and application module 3 has the lowest priority.

具体步骤如下所示:The specific steps are as follows:

步骤701、热备份模块向三个应用模块发送模块内检测消息。Step 701, the hot backup module sends an in-module detection message to the three application modules.

热备份模块获取三个应用模块的优先级,首先向应用模块3发送模块内检测消息,然后向应用模块2发送模块检测消息,最后向应用模块1发送模块内检测消息。The hot backup module acquires the priorities of the three application modules, firstly sends an in-module detection message to application module 3, then sends a module detection message to application module 2, and finally sends an in-module detection message to application module 1.

702、应用模块1,应用模块2和应用模块3检测模块内信息,修改不一致信息。702. The application module 1, the application module 2, and the application module 3 detect information in the modules, and modify inconsistent information.

应用模块1,应用模块2,应用模块3按照收到模块内检测信息顺序,依次检测模块内一致性,如果应用模块内部信息不一致,就把应用模块的内部数据初始化为零或恢复为设定的安全值。Application module 1, application module 2, and application module 3 check the consistency within the modules in sequence according to the sequence of received detection information in the modules. If the internal information of the application modules is inconsistent, initialize the internal data of the application module to zero or restore it to the set value. safe value.

步骤703、应用模块1、应用模块2和应用模块3分别发送响应信息到应用模块。Step 703, the application module 1, the application module 2 and the application module 3 respectively send response information to the application modules.

步骤704、热备份模块在接收到应用模块1,应用模块2和应用模块3响应信息后,按照优先级向依次应用模块3,应用模块2,应用模块2发送模块间检测消息。Step 704 , after receiving the response information from application module 1 , application module 2 and application module 3 , the hot backup module sends inter-module detection messages to application module 3 , application module 2 and application module 2 in sequence according to priority.

步骤705、应用模块根据其依赖关系,执行应用模块间的一致性检测,修改模块间不一致性信息。Step 705 , the application modules perform consistency detection among application modules according to their dependencies, and modify inconsistency information among the modules.

应用模块3接收到模块间检测消息,检测到应用模块3没有依赖关系,完成对模块3的模块间检测。The application module 3 receives the inter-module detection message, detects that the application module 3 has no dependency relationship, and completes the inter-module detection of the module 3 .

应用模块2接收到模块间检测消息,检测到应用模块2的数据依赖应用模块3的数据,应用模块2根据应用模块3的数据执行数据同步,实现应用模块2的数据一致性。The application module 2 receives the inter-module detection message, detects that the data of the application module 2 depends on the data of the application module 3, and the application module 2 performs data synchronization according to the data of the application module 3, so as to realize the data consistency of the application module 2.

应用模块1接收到模块间检测消息,检测到应用模块1的数据依赖应用模块2的数据,应用模块1根据应用模块2的数据执行数据同步,实现应用模块1的数据一致性。Application module 1 receives the inter-module detection message and detects that the data of application module 1 depends on the data of application module 2, and application module 1 performs data synchronization according to the data of application module 2 to achieve data consistency of application module 1.

由以上的步骤完成了三个应用模块的模块间和模块内的数据的一致过程。Through the above steps, the consistent process of the data between the modules and within the modules of the three application modules is completed.

本发明的效果是:在主用板发生死机或复位等情况时,备用板升为新的主用板,此时保证备用板的每一应用模块的模块内和模块间的数据一致,保证了通信系统中的数据一致,并保证通信业务正常运行,提高通信系统的可靠性。The effect of the present invention is: when the master board crashes or resets, etc., the backup board is upgraded to a new master board, and at this time, it is ensured that the data in and between modules of each application module of the backup board are consistent, ensuring The data in the communication system is consistent, and the normal operation of the communication business is guaranteed, and the reliability of the communication system is improved.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (13)

1. 一种数据恢复的方法,该方法应用于包含有热备份模块及至少一个应用模块的系统中,其特征在于,包括步骤:1. A method for data recovery, the method is applied to a system that includes a hot backup module and at least one application module, it is characterized in that, comprising steps: 热备份模块发送第一检测消息到所述每一应用模块;The hot backup module sends a first detection message to each application module; 每个应用模块接收所述第一检测消息,并根据所述第一检测消息使该应用模块内部的信息一致,然后发送第一响应消息到所述热备份模块;Each application module receives the first detection message, and makes the internal information of the application module consistent according to the first detection message, and then sends a first response message to the hot backup module; 所述热备份模块接收所述第一响应信息后,发送第二检测消息;After the hot backup module receives the first response information, it sends a second detection message; 所述每个应用模块接收所述第二检测消息,并根据所述的第二检测消息使各应用模块间的信息一致。Each application module receives the second detection message, and makes the information among the application modules consistent according to the second detection message. 2. 根据权利要求1所述的方法,其特征在于,所述热备份模块发送第一检测消息具体为:2. The method according to claim 1, wherein the first detection message sent by the hot backup module is specifically: 所述热备份模块获取所述应用模块的优先级,并按照应用模块优先级由高到低的顺序向所述每个应用模块下发第一检测消息。The hot backup module obtains the priority of the application modules, and sends the first detection message to each of the application modules according to the order of priority of the application modules from high to low. 3. 根据权利要求1所述的方法,其特征在于,根据所述第一检测消息使该应用模块内部的信息一致具体为:执行内部信息一致性检测为对应用模块内部具有依赖关系的数据进行一致性检测,并修改不一致的信息。3. The method according to claim 1, characterized in that, making the information inside the application module consistent according to the first detection message is specifically: performing internal information consistency detection is to perform the data that has a dependency relationship inside the application module Consistency detection, and modify inconsistent information. 4. 根据权利要求3所述的方法,其特征在于,所述修改不一致的信息具体为:把具有依赖关系的不一致数据恢复为默认的安全值或初始化为零。4. The method according to claim 3, wherein the modifying the inconsistent information specifically includes: restoring the inconsistent data with dependencies to a default safe value or initializing it to zero. 5. 根据权利要求1所述的方法,其特征在于,所述发送第二检测消息具体为:5. The method according to claim 1, wherein the sending of the second detection message is specifically: 所述热备份模块按照所述应用模块的优先级依次下发第二检测消息到所述每个应用模块。The hot backup module sequentially sends the second detection message to each application module according to the priority of the application module. 6. 根据权利要求1所述的方法,其特征在于,所述根据所述的第二检测消息使各应用模块间的信息一致具体为:对应用模块之间的具有依赖关系的数据进行检测,并修改所述应用模块间不一致的信息。6. The method according to claim 1, wherein said making the information consistent between the application modules according to the second detection message is specifically: detecting the data with dependencies between the application modules, And modify the inconsistent information among the application modules. 7. 根据权利要求6所述的方法,其特征在于,所述修改所述应用模块间不一致的信息具体为:7. The method according to claim 6, wherein the modifying the inconsistent information between the application modules is specifically: 在该应用模块所依赖的应用模块完成内部一致性修改后,执行该应用模块和其所依赖的应用模块之间的数据同步操作。After the application module that the application module depends on completes internal consistency modification, the data synchronization operation between the application module and the application module it depends on is performed. 8. 根据权利要求1所述的方法,其特征在于,所述根据所述的第二检测消息使各应用模块间的信息一致之后还包括:8. The method according to claim 1, characterized in that, after making the information between the application modules consistent according to the second detection message, it also includes: 所述应用模块发送第二响应信息到所述热备份模块。The application module sends second response information to the hot backup module. 9. 一种数据恢复的系统,包括:一热备份模块、与所述热备份模块相连的至少一个应用模块,其特征在于,9. A system for data recovery, comprising: a hot backup module, at least one application module connected to the hot backup module, characterized in that, 所述热备份模块进一步包括有消息收发单元:用于发送第一、第二检测消息至所述的每个应用模块,并接收所述每个应用模块的响应信息;The hot backup module further includes a message sending and receiving unit: used to send the first and second detection messages to each of the application modules, and receive the response information of each of the application modules; 所述每个应用模块:接收所述第一、第二检测消息;执行内部信息一致性检测,并使每个应用模块内部信息一致,发送第一响应信息到所述热备份模块;执行应用模块间一致性检测,并使所述每个应用模块间的信息一致。Each application module: receiving the first and second detection messages; performing internal information consistency detection, and making the internal information of each application module consistent, sending the first response information to the hot backup module; executing the application module Inter-consistency detection, and make the information between each of the application modules consistent. 10. 根据权利要求9所述的系统,其特征在于,所述每个应用模块包括:10. The system according to claim 9, wherein each application module comprises: 模块内部检测单元:接收所述第一检测消息,对应用模块内部具有依赖关系的数据进行一致性检测,把具有依赖关系的数据恢复为默认的安全值或初始化为零;Module internal detection unit: receiving the first detection message, performing consistency detection on the data with dependencies inside the application module, and restoring the data with dependencies to default security values or initializing them to zero; 模块间检测单元:接收所述第二检测消息,对应用模块间具有依赖关系的数据进行一致性检测,使应用模块间的数据一致。An inter-module detection unit: receiving the second detection message, and performing a consistency detection on the data having a dependency relationship between the application modules, so as to make the data between the application modules consistent. 11. 根据权利要求9所述的系统,其特征在于,所述应用模块还包括:11. system according to claim 9, is characterized in that, described application module also comprises: 注册单元:向热备份模块注册所述应用模块的优先级。Registration unit: register the priority of the application module with the hot backup module. 12. 根据权利要求11所述的系统,其特征在于,所述消息收发单元包括:12. The system according to claim 11, wherein the messaging unit comprises: 消息顺序发送单元:获取所述每个应用模块的优先级,按照优先级由高到低的顺序向所述每个应用模块发送第一或第二检测消息。A message order sending unit: acquire the priority of each application module, and send the first or second detection message to each application module in order of priority from high to low. 13. 根据权利要求9所述的系统,其特征在于,所述应用模块还包括:13. The system according to claim 9, wherein the application module further comprises: 响应单元:发送第一、第二响应消息到热备份模块。Response unit: sending the first and second response messages to the hot backup module.
CNB2006100326270A 2006-01-04 2006-01-04 Method and system for data recovery Expired - Fee Related CN100413261C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100326270A CN100413261C (en) 2006-01-04 2006-01-04 Method and system for data recovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100326270A CN100413261C (en) 2006-01-04 2006-01-04 Method and system for data recovery

Publications (2)

Publication Number Publication Date
CN1870533A CN1870533A (en) 2006-11-29
CN100413261C true CN100413261C (en) 2008-08-20

Family

ID=37444090

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100326270A Expired - Fee Related CN100413261C (en) 2006-01-04 2006-01-04 Method and system for data recovery

Country Status (1)

Country Link
CN (1) CN100413261C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123506B (en) * 2007-09-24 2011-07-20 北京飞天诚信科技有限公司 Sensitive information monitoring and automatic recovery system and method
CN101404594B (en) * 2008-07-10 2010-12-15 北京星网锐捷网络技术有限公司 Hot backup performance test method and apparatus, communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1213651A2 (en) * 2000-11-12 2002-06-12 Lightscape Networks Ltd. Data mirroring restoration in a distributed system
US20030028554A1 (en) * 2001-06-15 2003-02-06 Oskari Koskimies Selecting data for synchronization
CN1571369A (en) * 2003-07-16 2005-01-26 华为技术有限公司 Method for ensuring consistency between controlled users of snooping network side and snooping triggering side
CN1642030A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing network management duoble computer disaster-tolerance back-up

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1213651A2 (en) * 2000-11-12 2002-06-12 Lightscape Networks Ltd. Data mirroring restoration in a distributed system
US20030028554A1 (en) * 2001-06-15 2003-02-06 Oskari Koskimies Selecting data for synchronization
CN1571369A (en) * 2003-07-16 2005-01-26 华为技术有限公司 Method for ensuring consistency between controlled users of snooping network side and snooping triggering side
CN1642030A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing network management duoble computer disaster-tolerance back-up

Also Published As

Publication number Publication date
CN1870533A (en) 2006-11-29

Similar Documents

Publication Publication Date Title
RU2606053C2 (en) Method of controlling change in state interconnection node
CN106330475B (en) A method and device for managing active and standby nodes in a communication system and a high-availability cluster
US20030101367A1 (en) Critical adapter local error handling
US20130238943A1 (en) Method and system for providing high availability to computer applications
CN112100005A (en) Redis copy set implementation method and device
WO2022155919A1 (en) Fault handling method and apparatus, and system
CN108027723B (en) Optical line terminal and method for upgrading master and slave equipment thereof
EP3210367A1 (en) System and method for disaster recovery of cloud applications
CN112235136B (en) A network file system backup method, system, terminal and storage medium
CN102013997B (en) Backup method and system for dual-computer data in telecom network management system
CN107203443A (en) A kind of method and apparatus of the virtual machine High Availabitity based on KVM virtualization
CN105095008A (en) Distributed task fault redundancy method suitable for cluster system
CN106407045A (en) Data disaster recovery method and system, and server virtualization system
CN105389231A (en) Database dual-computer backup method and system
CN102045187A (en) Method and equipment for realizing HA (high-availability) system with checkpoints
CN112052127A (en) Data synchronization method and device for dual-computer hot standby environment
US11954509B2 (en) Service continuation system and service continuation method between active and standby virtual servers
CN101631044B (en) Method and system for smooth upgrade of communication equipment
CN111585835A (en) Control method and device for out-of-band management system and storage medium
CN100413261C (en) Method and system for data recovery
CN107181608B (en) A method and operation and maintenance management system for restoring service and improving performance
JP2015114952A (en) Network system, monitoring control unit, and software verification method
CN107885574A (en) A kind of dispositions method of virtual machine, service node, control device and control node
CN116540940A (en) Storage cluster management and control method, device, equipment and storage medium
CN102916793B (en) High-reliable implementation method and system for network communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080820

Termination date: 20180104

CF01 Termination of patent right due to non-payment of annual fee