A method and device for information synchronization
A technology for synchronizing information and synchronizing messages, applied in the field of communication, can solve problems such as out-of-order synchronization and synchronization of synchronization messages, and achieve the effect of avoiding inaccurate synchronization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] figure 2 A schematic flowchart of an information synchronization method is provided. The schematic flowchart shows an information synchronization method, and the method can be applied to any controller in the controller cluster. In order to better describe the information synchronization method provided in this embodiment, this embodiment uses figure 1 The network architecture shown is taken as an example to illustrate the method. Specifically, with figure 1 The Device B is the first network device, the first controller is the controller 3, the second controller is the controller 2, and the leader controller is the controller 1 as an example for description. The controller 1 is used as an example for any controller in this embodiment, but it should be understood that any controller here is not limited to the leader controller.
[0065] like figure 1 and figure 2 As shown, the information synchronization method specifically includes:
[0066] Step 201: Receive a ...
Embodiment 2
[0083] This embodiment describes how the term information is synchronized in the controllers in the cluster. In the method provided in this embodiment, the leader controller in the cluster first updates the term information of the controller as an example for description. image 3 A schematic flowchart of the information synchronization method provided in this embodiment is shown. This embodiment is described by taking the third controller as controller 3 and the third network device as Device B as an example. like figure 1 and image 3 As shown, the information synchronization method provided by this embodiment includes:
[0084] Step 301, if the leader controller 1 detects that the communication between the third controller in the cluster and the third network device managed by the third controller is disconnected, it elects a new controller for the third network device .
[0085] When controller 1 detects that the communication between controller 3, which originally man...
Embodiment 3
[0094] Corresponding to Embodiment 2, on the basis of Embodiment 1, any controller in Embodiment 1 may perform the following steps:
[0095] Step 209: Receive an election message sent by the leader controller in the cluster to be elected as the new controller of the third network device, where the election message carries the identifier of the third network device managed by any of the controllers and any The term information of the controller as the master device that manages network devices.
[0096] After the leader controller updates the tenure information that manages the third network device Device B, it will synchronize the above tenure information to other controllers in the cluster. Specifically, the tenure information can be carried in the election packet. The election packet is: The leader controller is used to elect a new master controller for network devices, and to synchronize the election result message to the cluster. The election message can be implemented usi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


