SDN Forwarder Lock Mechanism for Multi-Controller Data Consistency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In software-defined networking (SDN) multi-head management scenarios, data inconsistency between management devices and forwarders leads to inefficient and complex data synchronization, affecting communication reliability due to conflicting data from multiple management devices.
Innovation Solution
A data processing method where a management device locks the forwarder to ensure exclusive control, performs difference comparison, and synchronizes data using a preset synchronization manner to maintain consistency, thereby improving communication efficiency and reliability.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple management devices control a forwarder simultaneously, then management flexibility is improved, but data consistency deteriorates due to conflicting data from different management devices
Solution Approach 1:
The patent applies preliminary action by having the first management device send a lock instruction to the forwarder before performing data synchronization. This pre-locking mechanism ensures that no other management devices can modify the forwarder's data during the synchronization process, preventing data conflicts while maintaining multi-head management capability. The lock is released after synchronization completes, allowing flexible switching between management devices.
2Productivity
If data synchronization is performed without locking, then communication efficiency is improved, but data consistency deteriorates due to potential data conflicts
Solution Approach 1:
The lock instruction is sent as a preliminary action before data synchronization begins. This ensures the forwarder is locked exclusively to the first management device before any data operations occur, preventing conflicts while enabling efficient synchronization without repeated conflict resolution overhead.
Solution Approach 2:
The lock mechanism acts as an intermediary that mediates between multiple management devices and the forwarder. It coordinates access by granting exclusive rights to one management device at a time, ensuring data consistency while allowing multiple devices to ultimately control the forwarder through sequential access.
3Reliability
If locking is performed before data synchronization, then data consistency is improved, but communication efficiency deteriorates due to exclusive control requirements
Solution Approach 1:
The lock is acquired as a preliminary action that enables subsequent efficient data synchronization. By establishing exclusive control before data operations begin, the system avoids repeated conflict detection and resolution during synchronization, actually improving overall communication efficiency despite the initial locking overhead.
Solution Approach 2:
The lock maintains continuous exclusive access during the entire data synchronization process, allowing uninterrupted data operations without pause for conflict resolution. This continuous useful action ensures data consistency while completing synchronization efficiently in one continuous operation rather than through multiple interrupted attempts.
Data Source
Figure 1~2
Figure 3
Figure 4
AI summary
This application provides a data processing method and a related device, to keep data consistency between a management device and a forwarder in a multi-head management scenario, so that the data consistency between the management device and the forwarder can be implemented more efficiently and flexibly, and reliability of communication between the management device and the forwarder is improved. The method includes: sending, by a first management device in the plurality of management devices, a lock instruction to the forwarder, where the lock instruction is used to instruct the forwarder to switch to a locked state, and the locked state is a state in which the forwarder is controlled only by the first management device; performing, by the first management device, difference comparison between target data of the first management device and corresponding data that is on the forwarder and that corresponds to the target data to obtain a comparison result; and synchronizing, by the first management device, the target data with the corresponding data if the first management device determines, by using the comparison result, that the target data and the corresponding data do not match, so that the target data matches the corresponding data.