WO2017016196A1 - Méthode, appareil et système de synchronisation de données - Google Patents
Méthode, appareil et système de synchronisation de données Download PDFInfo
- Publication number
- WO2017016196A1 WO2017016196A1 PCT/CN2016/070431 CN2016070431W WO2017016196A1 WO 2017016196 A1 WO2017016196 A1 WO 2017016196A1 CN 2016070431 W CN2016070431 W CN 2016070431W WO 2017016196 A1 WO2017016196 A1 WO 2017016196A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- control unit
- main control
- state
- standby
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0846—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
Definitions
- the present invention relates to the field of communications, and in particular to a method, device and system for synchronizing data.
- the Synchronous Digital Hierarchy (SDH) device In the Synchronous Digital Hierarchy (SDH) device, the Dense Wavelength Division Multiplexing (DWDM) device, the Packet Transport Network (PTN) device, and the network control protocol ( The Network Control Protocol (NCP) device and the Optical Transport Network (OTN) device have high real-time and reliability requirements for the services carried by the main control unit.
- the main control unit often has one or more standby main control units, that is, the synchronization of the configuration data includes two contents: data synchronization between the main control unit and the standby main control unit, and the synchronization is a copy and backup operation.
- the main control unit synchronizes with the data of the business processing unit, and this synchronization is an action of issuing and responding.
- the two data synchronizations are independently operated. Although the processing is simple, the effect is often poor. For example, when the main control unit sends data, if the main control unit fails, the data configuration of the main control is not synchronized successfully, and the standby main control unit does not have this data. The data is abnormal, causing the device to run abnormally, or even causing service interruption and failure to recover. These problems caused by data inconsistency are often very complicated and difficult to locate and eliminate, which will greatly increase the manpower and material resources of equipment maintenance and cause waste of resources.
- the present invention provides a method, apparatus and system for synchronizing data to at least solve the problem of abnormal faults caused by data out of synchronization in the related art.
- a data synchronization method including:
- the main control unit receives the application status data sent by the service processing unit, the main control unit modifies the application status data into unsynchronized status data, and the main control unit synchronizes the unsynchronized status data. Giving the business processing unit;
- the main control unit modifies the unsynchronized state data to be synchronizing state data, and the main control unit synchronizes the synchronizing state data to the standby main control unit;
- the primary control unit receives an acknowledgement message, the acknowledgement message includes a confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the
- the data in the synchronized state is the data in the synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing list yuan.
- the active main control unit receives an active/standby switching event, and sends the active/standby switching event to the service processing unit.
- the primary control unit receives a synchronization completion event sent by the service processing unit.
- the active main control unit receives an active/standby switching event, and sends the active/standby switching event to the service processing unit.
- the main control unit receives the synchronization state data, wherein the synchronization state data is the service processing unit. Modifying the unsynchronized state data or the application state data;
- the main control unit modifies the synchronization status data to unsynchronized status data, and the main control unit sends the unsynchronized status data to the standby main control unit;
- the primary control unit receives an acknowledgement message, the acknowledgement message includes a confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the
- the data of the unsynchronized state is data of the synchronized state
- the main control unit synchronizes the data of the synchronized state to the service processing unit.
- a data synchronization method including:
- the main control unit receives an online event of the standby main control unit, the main control unit modifies the unsynchronized status data to the synchronized state, and the main control unit sends the synchronizing status data to the standby Main control unit
- the primary control unit receives an acknowledgement message, the acknowledgement message includes a confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the
- the data in the synchronized state is the data in the synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the method includes:
- the active main control unit sends a synchronization completion event to the standby main control unit, and the standby main control unit deletes the local non-synchronized state data.
- a data synchronization apparatus including:
- the first receiving module is configured to receive, by the main control unit, application status data sent by the service processing unit, where the main control unit modifies the application status data into unsynchronized status data, and the main control unit
- the unsynchronized state data is synchronized to the service processing unit
- a first modifying module configured to: the primary control unit modifies the unsynchronized state data to be synchronized state data, and the primary MME synchronizes the synchronized state data to the standby MME;
- a first confirmation module configured to receive, by the primary control unit, an acknowledgement message, where the confirmation message includes a confirmation content that the standby control unit modifies the synchronized state data to the synchronized state data, the primary Synchronizing the synchronized state data to the service processing unit with a master unit.
- the first switching module is configured to receive the active/standby switching event by the active main control unit, and send the active/standby switching event to the service processing unit.
- the second receiving module is configured to receive, when the data states in the service processing unit are in a synchronized state, the primary control unit receives a synchronization completion event sent by the service processing unit.
- the second switching module is configured to receive the active/standby switching event by the active main control unit, and send the active/standby switching event to the service processing unit.
- a third receiving module configured to: when the service processing unit includes the unsynchronized state data or the application state data, the main control unit receives the synchronization state data, where the synchronization state is Data is that the service processing unit modifies the unsynchronized state data or the application state data;
- a second modification module configured to: the main control unit modifies the synchronization status data into unsynchronized status data, and the main control unit sends the unsynchronized status data to the standby main control unit;
- a second confirmation module configured to receive, by the main control unit, an acknowledgement message, where the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data to the synchronized state data, the main The data of the unsynchronized state is modified by the main control unit to be the data of the synchronized state, and the main control unit synchronizes the data of the synchronized state to the service processing unit.
- a data synchronization apparatus including:
- a third modification module configured to receive an online event of the standby main control unit, wherein the main control unit modifies the unsynchronized state data to the synchronization state, and the main control unit sends the ongoing Synchronizing status data to the standby master unit;
- a third confirmation module configured to receive, by the main control unit, an acknowledgement message, where the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data to the synchronized state data, the main The data of the synchronization state is modified by the main control unit to be synchronized data, and the main control unit synchronizes the data of the synchronized state to the service processing unit.
- the apparatus comprises:
- the primary control unit is configured to send a synchronization completion event to the standby main control unit, and the standby main control unit deletes the local non-synchronized state data.
- a data synchronization system including: an active main control unit, a standby main control unit, and a service processing unit;
- the main control unit receives application status data sent by the service processing unit, and the main control unit The application status data is modified to the unsynchronized status data, and the main control unit synchronizes the unsynchronized status data to the service processing unit;
- the main control unit modifies the unsynchronized state data to be synchronizing state data, and the main control unit synchronizes the synchronizing state data to the standby main control unit;
- the primary control unit receives an acknowledgement message, the acknowledgement message includes a confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the
- the data in the synchronized state is the data in the synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the main control unit receives the application status data sent by the service processing unit, and the main control unit modifies the application status data into unsynchronized status data, and the main control unit unsynchronizes the status data. Synchronizing to the service processing unit; the main control unit modifies the unsynchronized status data to the synchronization status data, and the main control unit synchronizes the synchronization status data to the standby main control unit; the main control unit Receiving a confirmation message, the confirmation message includes the confirmation content that the standby main control unit modifies the synchronization state data to the synchronization state data, and the main control unit modifies the data in the synchronization state to be the synchronized state data, where The main control unit synchronizes the synchronized state data to the service processing unit, solves the problem of abnormal failure caused by data non-synchronization, realizes consistency of data of each unit, and saves maintenance cost.
- FIG. 1 is a flow chart 1 of a data synchronization method according to an embodiment of the present invention.
- FIG. 2 is a second flowchart of a data synchronization method according to an embodiment of the present invention.
- FIG. 3 is a structural block diagram 1 of a data synchronization apparatus according to an embodiment of the present invention.
- FIG. 4 is a structural block diagram 2 of a data synchronization apparatus according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a normal data synchronization process according to a preferred embodiment of the present invention.
- FIG. 6 is a schematic diagram of an active/standby switching process according to a preferred embodiment of the present invention.
- FIG. 7 is a schematic diagram of an active/standby switchover process in a normal data synchronization process performed by an active/standby NCP according to a preferred embodiment of the present invention
- FIG. 8 is a schematic diagram of a flow of data batch synchronization by inserting a standby NCP according to a preferred embodiment of the present invention.
- FIG. 9 is a schematic diagram of an active/standby switchover process occurring during data synchronization between an active and standby device according to a preferred embodiment of the present invention.
- FIG. 1 is a flowchart 1 of a data synchronization method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
- Step S102 the main control unit receives the application status data sent by the service processing unit, and the main control unit modifies the application status data into unsynchronized status data, and the main control unit synchronizes the unsynchronized status data to The business processing unit;
- Step S104 the main control unit modifies the unsynchronized state data into the synchronization state data, and the main control unit synchronizes the synchronization state data to the standby main control unit;
- Step S106 the main control unit receives an acknowledgement message, the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data, and the main control unit modifies the synchronization state.
- the data is data in a synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the main control unit receives the application status data sent by the service processing unit, and the main control unit modifies the application status data into unsynchronized status data, and the main control unit synchronizes the unsynchronized status data.
- Sending to the service processing unit the main control unit modifies the unsynchronized state data to the synchronization state data, and the main control unit synchronizes the synchronization state data to the standby main control unit, and the main control unit receives a confirmation message, the confirmation message includes the confirmation content that the standby main control unit modifies the synchronization state data to the synchronization state data, and the main control unit modifies the data of the synchronization state to be synchronized data, the main The main control unit synchronizes the synchronized state data to the service processing unit, solves the problem of abnormal fault caused by data unsynchronization, realizes consistency of data of each unit, and saves maintenance cost.
- the active main control unit receives the active/standby switchover event, and sends the active/standby switchover event to the service processing unit. If the data states in the service processing unit are all synchronized, the The active master unit receives the synchronization completion event sent by the service processing unit.
- the main control unit receives the active/standby switching event, and sends the active/standby switching event to the service processing unit, where the service processing unit includes the unsynchronized status data or the application status data.
- the main control unit receives the synchronization status data, wherein the synchronization status data is that the service processing unit modifies the unsynchronized status data or the application status data, and the main control unit synchronizes the status.
- the data is modified to the unsynchronized state data, and the main control unit sends the unsynchronized status data to the standby main control unit, and the main control unit receives the confirmation message, and the confirmation message includes the standby main control unit to be synchronizing
- the status data modifies the confirmation content of the synchronized state data
- the main control unit modifies the data of the unsynchronized state to be the data of the synchronized state
- the main control unit synchronizes the data of the synchronized state to the service processing unit. .
- FIG. 2 is a data synchronization method according to an embodiment of the present invention.
- Flowchart 2 as shown in Figure 2, the process includes the following steps:
- Step S202 the main control unit receives an online event of the standby main control unit, and the main control unit modifies the unsynchronized state data to the synchronization state, and the main control unit sends the synchronization status data to the standby main unit.
- Step S204 the main control unit receives an acknowledgement message, the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data to the synchronized state data, and the main control unit modifies the synchronization state.
- the data is data in a synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the main control unit receives the standby main control unit online event, the main control unit changes the unsynchronized status data to the synchronized state, and the main control unit sends the synchronous status data to the standby.
- a main control unit after the main control unit receives the confirmation that the standby main control unit modifies the synchronization status data to the synchronized status data, the main control unit modifies the data in the synchronization status to be synchronized Data, the main control unit synchronizes the synchronized state data to the service processing unit, solves the problem of abnormal failure caused by data non-synchronization, realizes consistency of data of each unit, and saves maintenance cost.
- the method includes: the primary control unit sends a synchronization completion event to the standby primary control unit, the standby The master unit deletes the local non-synchronized status data.
- a data synchronization device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 3 is a structural block diagram 1 of a data synchronization apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
- the first receiving module 32 is configured to receive, by the main control unit, the application status data sent by the service processing unit, where the main control unit modifies the application status data to the unsynchronized status data, and the main control unit Synchronizing state data to the service processing unit;
- the first modifying module 34 is configured to modify, by the main control unit, the unsynchronized state data to be synchronizing state data, and the main controlling unit synchronizes the synchronizing state data to the standby main control unit;
- the first confirmation module 36 is configured to receive, by the main control unit, an acknowledgement message, where the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data to the synchronized state data, and the main control unit modifies The data in the synchronized state is data in a synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the device further includes: a first switching module, configured to: the primary control unit receives an active/standby switching event, and sends the active/standby switching event to the service processing unit;
- the second receiving module is configured to receive, when the data state in the service processing unit is the synchronized state, the primary control unit receives the synchronization completion event sent by the service processing unit.
- the device further includes: a second switching module, configured to: the primary control unit receives an active/standby switching event, and sends the active/standby switching event to the service processing unit;
- a third receiving module configured to receive, in the case that the service processing unit includes the unsynchronized state data or the application status data, the primary control unit receives the synchronization status data, where the synchronization status data is the service processing The unit modifies the unsynchronized status data or the application status data;
- a second modification module configured to: the main control unit modifies the synchronization status data to the unsynchronized status data, and the main control unit sends the unsynchronized status data to the standby main control unit;
- a second confirmation module configured to receive, by the main control unit, an acknowledgement message, where the confirmation message includes the confirmation content that the standby control unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the
- the data of the unsynchronized state is the data of the synchronized state
- the main control unit synchronizes the data of the synchronized state to the service processing unit.
- FIG. 4 is a structural block diagram 2 of a data synchronization apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
- the third modification module 42 is configured to receive an online event of the standby main control unit, wherein the main control unit modifies the unsynchronized state data to the synchronization state, and the main control unit sends the synchronization status. Data to the standby master unit;
- the third confirmation module 44 is configured to receive, by the main control unit, an acknowledgement message, where the confirmation message includes the confirmation content that the standby main control unit modifies the synchronized state data to the synchronized state data, and the main control unit modifies The data in the synchronized state is data in a synchronized state, and the master control unit synchronizes the data of the synchronized state to the service processing unit.
- the device further includes:
- the module is deleted, and the main control unit sends a synchronization completion event to the standby main control unit, and the standby main control unit deletes the local non-synchronized state data.
- a data synchronization system including: an active main control unit, a standby main control unit, and a service processing unit;
- the main control unit receives the application status data sent by the service processing unit, and the main control unit modifies the application status data into unsynchronized status data, and the main control unit synchronizes the unsynchronized status data to the Business processing unit;
- the master control unit modifies the unsynchronized state data to the synchronization state data, and the master control unit synchronizes the synchronization state data to the standby master unit;
- the master control unit receives an acknowledgement message, the acknowledgement message includes the confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the data in the synchronized state to be The data of the synchronization state, the main control unit synchronizes the data of the synchronized state to the service processing unit.
- the preferred embodiment provides a data synchronization mechanism for implementing an active main control unit, a standby main control unit, and a service processing list.
- Meta (could exist multiple) data consistency, wherein the main control unit, the standby main control unit, and the service processing unit and the main control unit, the standby main control unit, and the service processing unit in the above embodiments function and function The same, avoid a series of problems caused by data inconsistency.
- the method in the preferred embodiment divides the main control unit into three states: "active state”, “standby state”, “active/standby state”, and "data recovery state”.
- the “active state” means that only the main control unit has no standby main control unit; the “standby state” indicates that there are both the main control unit and the standby main control unit, and the unit is the standby main control unit; "It means that there are both the main control unit and the standby main control unit.
- This unit is the main control unit.
- the data recovery state passes the active/standby switchover, the main control unit and the service processing unit perform a transient state of data recovery. There is no case where there is only a standby master unit and no master master unit. Status negotiation can be performed between the master units in any way.
- the preferred embodiment divides the data to be synchronized into "application status”, "unsynchronized status”, “synchronizing status”, and “synchronized status”, "application status”, “unsynchronized status”, “data”
- the "synchronizing state” and the "synchronized state” are the same as the application state data in the above embodiment, the unsynchronized state data, the synchronizing state data, and the functions and functions of the synchronized state data.
- the data After receiving the application data event of the service processing unit, the data is set to the "unsynchronized state" and saved to the local service and sent to the service processing unit.
- the data sent to the service processing unit carries the status of "unsynchronized status".
- the data sent by the main control unit to the service processing unit can carry not only status information, but also other information, such as unique identification information of the data.
- the standby master unit is the master unit in the "standby state", and handles the following events:
- the main control unit is in the "data recovery state" steps:
- the service processing unit needs to process the service configuration and synchronize the service data to the main control unit as needed. How the service processing unit handles the service configuration is not within the scope of the present invention.
- the service processing unit only communicates with the active main control unit and does not communicate with the standby main control unit.
- the business processing unit handles the following events:
- each unit can perform active/standby switchover at any time. After the active/standby switchover, the new standby master control unit does not need to be restarted, and continuous active/standby switchover can be performed.
- the main control unit is an NCP and the service processing unit is a line card.
- NCP NCP
- the service processing unit is a line card.
- FIG. 5 is a schematic diagram of a normal data synchronization process according to a preferred embodiment of the present invention, as shown in FIG.
- step 1 the line card sends data 1 to the main NCP, and the data 1 is "application status" on the line card.
- Step 2 After receiving the data of the line card, the primary NCP saves to the local area and synchronizes to the line card, and the data 1 is “unsynchronized state” on the primary NCP.
- Step 3 After receiving the data of the primary NCP, the standby NCP saves it to the local area and sends a confirmation to the primary NCP.
- the data 1 is in the "synchronized state" on the standby NCP.
- Step 4 After receiving the confirmation of the standby NCP, the primary NCP modifies the local data to the “synchronized state” and sends it to the line card.
- Step 5 After receiving the data of the primary NCP, the line card modifies the local data to “synchronized state”.
- FIG. 6 is a schematic diagram of performing an active/standby switching process according to a preferred embodiment of the present invention, as shown in FIG. 6.
- Step 1 The master NCP receives the active/standby switchover event and modifies the board as the “standby state”.
- Step 2 The standby NCP receives the active/standby switchover event, and the board is modified to “data recovery state”, and then the active/standby switchover event is sent to the line card.
- Step 3 The line card receives the active/standby switchover event, and changes all the data of the “unsynchronized state” and the “application state” to the “synchronizing state”. In this scenario, all data is "synchronized” and a synchronization completion event is sent to the primary NCP.
- FIG. 7 is a preferred implementation in accordance with the present invention
- the master/slave NCP performs the active/standby switchover process during normal data synchronization, as shown in Figure 7.
- the line card has data 1 and data 2, data 1 is “synchronized state", and data 2 is "unsynchronized state”.
- the primary NCP has data 1 and data 2, data 1 is “synchronized state", and data 2 is "unsynchronized state”.
- the standby NCP has data 1, and the data 1 is "synchronized state”. When the primary NCP has not synchronized data 2 to the standby NCP, the active/standby switchover occurs.
- step 1 the primary NCP receives the active/standby switchover event and changes the board to the "standby state”.
- the standby NCP receives the active/standby switchover event and changes the board to the data recovery state to send the active/standby switchover event to the line card.
- Step 3 After receiving the active/standby switchover event, the line card changes the data 2 to “synchronizing state” and sends data 2 to the primary NCP.
- Step 4 The master NCP receives the data 2 of the line card, saves the data 2 to the local, sets the status to "unsynchronized state", and sends data 2 to the standby NCP.
- step 5 the standby NCP receives the data 2 of the primary NCP, changes the data 2 to the "synchronized state", and returns the data 2 to confirm.
- step 6 the main NCP receives the data 2 confirmation, and the data 2 is modified to the "synchronized state", and the data 2 is sent back to the line card.
- Step 7 The line card receives the main NCP data 2, and the data 2 is modified to the “synchronized state”, and the synchronization completion event is sent to the main NCP.
- step 8 the primary NCP receives the synchronization completion event and sends a synchronization completion event to the standby NCP.
- step IX the standby NCP receives the synchronization completion event and does nothing.
- FIG. 8 is a schematic diagram of a flow of data batch synchronization by inserting a standby NCP according to a preferred embodiment of the present invention, as shown in FIG. 8.
- Step 1 The primary NCP receives the standby NCP online event, sets the data 1 to the “synchronizing state”, and modifies the board to the “active/standby state” to synchronize data 1 with the standby NCP.
- the standby NCP receives the data 1 and saves it to the local state.
- the status is “synchronized state”, and the data is acknowledged to the primary NCP.
- step 3 the primary NCP receives the data 1 acknowledgment, and modifies the data 1 to the "synchronized state", and sends a synchronization completion event to the standby NCP and the primary NCP.
- Step 4 The standby NCP receives the synchronization completion event, and deletes all data that is not “synchronized state”. At this time, no data needs to be deleted.
- step 5 the line card receives the synchronization completion event, and the data 1 is modified to the “synchronized state”.
- FIG. 9 is a schematic diagram of an active/standby switchover process performed during data synchronization between the active and standby devices according to a preferred embodiment of the present invention, as shown in FIG. 9.
- the line card has data 1, the status is "synchronized state", data 2, the status is "unsynchronized state”; the main NCP has data 1, the status is "synchronized state”, the data 2 is "unsynchronized state”; the standby NCP There are data 1 and data 2, and the status is "synchronized state”.
- the master/slave switchover occurs when the standby NCP has not sent data 2 to the master NCP for confirmation.
- Step 1 The master NCP receives the active/standby switchover event and sets the board to the standby state.
- Step 2 The standby NCP receives the active/standby switchover event, and sets the board to the data recovery state to send the active/standby switchover event to the line card.
- Step 3 The line card receives the active/standby switchover event, and sets the data 2 to “synchronizing state” to send data 2 to the primary NCP.
- Step 4 The primary NCP receives the data 2, and the data 2 is modified to the "unsynchronized state", and the data 2 is synchronized to the standby NCP.
- step 5 the standby NCP receives the data 2, sets the data 2 to the "synchronized state", and sends a data 2 confirmation to the primary NCP.
- step 6 the master NCP receives the data 2 acknowledgment, and modifies the data 2 to the "synchronized state", and sends the data 2 to the line card.
- Step 7 The line card receives the data 2, and the data 2 is modified to the "synchronized state", and the synchronization completion is sent to the main NCP.
- step 8 the primary NCP receives the synchronization completion and sends a synchronization completion event to the standby NCP.
- Step 9 The standby NCP receives the synchronization completion event and does not process it.
- the preferred embodiment avoids abnormal faults caused by data synchronization through a double acknowledgement mechanism, and can fundamentally ensure that data of the master unit, the standby master unit, and the service processing unit (possibly multiple) are consistent at any time. State. This avoids a series of problems caused by data inconsistency.
- Embodiments of the present invention also provide a storage medium.
- the storage medium may be configured to store program code for performing the method steps of the above embodiment:
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- the processor executes the method of the above embodiment according to the stored program code in the storage medium.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the main control unit receives the application status data sent by the service processing unit, and the main control unit modifies the application status data to the unsynchronized status data, and the main control unit
- the unit synchronizes the unsynchronized state data to the service processing unit;
- the master control unit modifies the unsynchronized state data to the synchronization state data, and the master control unit synchronizes the synchronization state data to the standby master unit
- the master control unit receives the confirmation message, the confirmation message includes the confirmation content that the standby master unit modifies the synchronized state data to the synchronized state data, and the master control unit modifies the data in the synchronization state to
- the main control unit synchronizes the data of the synchronized state to the service processing unit, solves the problem of abnormal fault caused by data unsynchronization, realizes consistency of data of each unit, and saves maintenance cost. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Hardware Redundancy (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
La présente invention concerne un procédé, un appareil et un système de synchronisation de données. Une unité de commande maître primaire reçoit des données d'état d'application envoyées par une unité de traitement de service, l'unité de commande maître primaire modifie les données d'état de l'application en des données d'état non-synchronisées, et l'unité de commande maître primaire synchronise les données d'état non synchronisées avec l'unité de traitement de service ; l'unité de commande maître primaire modifie les données d'état non-synchronisées en données d'état de synchronisation, et l'unité de commande maître primaire synchronise les données d'état de synchronisation avec une unité de commande maître de secours ; et l'unité de commande maître primaire reçoit un message d'accusé de réception, le message d'accusé de réception comprenant un contenu d'accusé de réception indiquant que l'unité de commande maître de secours modifie les données d'état de synchronisation en données d'état synchronisées, l'unité de commande maître primaire modifie les données d'état de synchronisation en données d'état synchronisées, et l'unité de commande maître primaire synchronise les données d'état synchronisées avec l'unité de traitement de service. Le problème de défaillance anormale provoquée par une non-synchronisation des données est résolu, la cohérence de toutes les données unitaires est obtenue, et le coût de maintenance est réduit.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510448471.3 | 2015-07-27 | ||
| CN201510448471.3A CN106657168A (zh) | 2015-07-27 | 2015-07-27 | 同步数据方法、装置及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017016196A1 true WO2017016196A1 (fr) | 2017-02-02 |
Family
ID=57883985
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/070431 Ceased WO2017016196A1 (fr) | 2015-07-27 | 2016-01-07 | Méthode, appareil et système de synchronisation de données |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106657168A (fr) |
| WO (1) | WO2017016196A1 (fr) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112612654A (zh) * | 2021-01-08 | 2021-04-06 | 成都民航空管科技发展有限公司 | 空管自动化系统多机主备切换方法及冗余服务系统 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113806143B (zh) * | 2018-05-11 | 2024-04-26 | 创新先进技术有限公司 | 一种异地容灾方法、系统和电子设备 |
| CN110224849A (zh) * | 2019-04-18 | 2019-09-10 | 广州市高科通信技术股份有限公司 | 一种防止ptn设备数据丢失的方法、系统及存储介质 |
| CN111654384A (zh) * | 2019-09-27 | 2020-09-11 | 中兴通讯股份有限公司 | 一种主备切换方法、bras设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070300026A1 (en) * | 2006-06-23 | 2007-12-27 | Kwok-Yan Leung | Synchronous backup device and method used for storage device |
| JP2008140289A (ja) * | 2006-12-05 | 2008-06-19 | Toshiba Corp | ストレージ装置 |
| CN102075580A (zh) * | 2011-01-20 | 2011-05-25 | 迈普通信技术股份有限公司 | 分布式网络设备中同步数据的存储方法及系统 |
| CN103077242A (zh) * | 2013-01-11 | 2013-05-01 | 北京佳讯飞鸿电气股份有限公司 | 一种实现数据库服务器双机热备的方法 |
| CN104253707A (zh) * | 2013-06-28 | 2014-12-31 | 上海斐讯数据通信技术有限公司 | 一种主备盘组播业务同步方法 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7039661B1 (en) * | 2003-12-29 | 2006-05-02 | Veritas Operating Corporation | Coordinated dirty block tracking |
| ATE339731T1 (de) * | 2004-02-10 | 2006-10-15 | Research In Motion Ltd | Gerät und methode zur unterstützung der initiierung der synchronisierung von durch eine funkschnittstelle verbundenen datenbankenkopien. |
| CN101075861A (zh) * | 2007-06-28 | 2007-11-21 | 中兴通讯股份有限公司 | 一种实现主备板热备份和主备倒换的方法 |
| CN102510408B (zh) * | 2011-11-30 | 2015-01-14 | 武汉烽火网络有限责任公司 | 实现tcp应用主备热倒换的方法 |
| CN103188065B (zh) * | 2011-12-30 | 2016-08-17 | 北京新媒传信科技有限公司 | 一种业务服务中数据同步的方法和系统 |
| CN103902405B (zh) * | 2012-12-28 | 2017-02-08 | 杭州宏杉科技有限公司 | 一种准连续性数据复制方法及装置 |
-
2015
- 2015-07-27 CN CN201510448471.3A patent/CN106657168A/zh not_active Withdrawn
-
2016
- 2016-01-07 WO PCT/CN2016/070431 patent/WO2017016196A1/fr not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070300026A1 (en) * | 2006-06-23 | 2007-12-27 | Kwok-Yan Leung | Synchronous backup device and method used for storage device |
| JP2008140289A (ja) * | 2006-12-05 | 2008-06-19 | Toshiba Corp | ストレージ装置 |
| CN102075580A (zh) * | 2011-01-20 | 2011-05-25 | 迈普通信技术股份有限公司 | 分布式网络设备中同步数据的存储方法及系统 |
| CN103077242A (zh) * | 2013-01-11 | 2013-05-01 | 北京佳讯飞鸿电气股份有限公司 | 一种实现数据库服务器双机热备的方法 |
| CN104253707A (zh) * | 2013-06-28 | 2014-12-31 | 上海斐讯数据通信技术有限公司 | 一种主备盘组播业务同步方法 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112612654A (zh) * | 2021-01-08 | 2021-04-06 | 成都民航空管科技发展有限公司 | 空管自动化系统多机主备切换方法及冗余服务系统 |
| CN112612654B (zh) * | 2021-01-08 | 2024-03-29 | 成都民航空管科技发展有限公司 | 空管自动化系统多机主备切换方法及冗余服务系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106657168A (zh) | 2017-05-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103744809B (zh) | 基于vrrp的车辆信息管理系统双机热备方法 | |
| CN106331098B (zh) | 一种服务器集群系统 | |
| CN110601903B (zh) | 一种基于消息队列中间件的数据处理方法及装置 | |
| WO2018049983A1 (fr) | Procédé et système de synchronisation de données, et procédé et dispositif d'acquisition de synchronisation | |
| CN107231400B (zh) | 一种数据的同步方法和装置 | |
| CN105354108A (zh) | 一种数据备份方法及节点 | |
| CN102231677A (zh) | Iptv系统中一种基于双中心容灾的切换方法及其装置 | |
| WO2017016196A1 (fr) | Méthode, appareil et système de synchronisation de données | |
| CN106341251A (zh) | 基于双主控的主备倒换方法及装置 | |
| CN104010034A (zh) | 一种高可用集群关于组依赖的管理方法 | |
| WO2021057438A1 (fr) | Procédé et appareil de commutation principale / de réserve, dispositif bras, et support d'enregistrement | |
| CN105591801B (zh) | 一种虚拟网络功能vnf故障处理方法及vnf管理设备 | |
| CN105956207A (zh) | 一种基于binlog的可配置的mysql数据库实时同步方法 | |
| CN107046474A (zh) | 一种服务集群 | |
| CN116414915A (zh) | 分布式数据库集群的管控方法、装置和数据库管控平台 | |
| CN105790985B (zh) | 数据倒换的方法、第一设备、第二设备及系统 | |
| CN113779038B (zh) | 多数据源数据同步方法 | |
| JP5449229B2 (ja) | 呼救済システム及び呼救済方法 | |
| CN111241200B (zh) | 基于SQLite数据库的主备同步处理方法及装置 | |
| CN113794765A (zh) | 基于文件传输的网闸负载均衡方法及装置 | |
| CN108984346B (zh) | 一种生产数据容灾的方法、系统及存储介质 | |
| CN108881452B (zh) | 一种数据同步的方法、装置及存储介质 | |
| CN111083074A (zh) | 主备双ospf状态机的高可用性方法和系统 | |
| CN114584459B (zh) | 一种实现容器云平台主备高可用的方法 | |
| CN113051342B (zh) | 一种轻量化双机切换的方法及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16829567 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16829567 Country of ref document: EP Kind code of ref document: A1 |