A multiplexed secure SDN control system and control method thereof
By setting up multiple security management modules and configuration modules in the SDN controller cluster, automatic switching in the SDN network when the controller and switch connection fails, solving the SDN network stability and security issues and improving data Accuracy and reliability of transmission.
Patent Information
- Application Number
- CN202110367085.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-04-06
AI Technical Summary
The SDN network is easily paralyzed when the controller and the switch lose contact, resulting in network instability. The existing multi-controller technology cannot effectively switch the new main connection when the main connection fails, affecting network security and reliability.
Design a multiplexed secure SDN control system, by setting up N controllers in the SDN controller cluster, one of which is the first controller and the remainder is the second controller, and command comparison is used to use the security management module and the security configuration module. Synchronize with data, elect a new master controller to ensure network stability.
Improves the accuracy and security of SDN network data transmission, ensuring that the new main controller can be switched when the controller is too high or the connection fails, and avoids network paralysis.
Smart Images

Figure CN113098720B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of SDN network communication security, and in particular to a multiplexed secure SDN control system and a control method thereof. Background Art
[0002] Software Defined Network (SDN) integrates the control planes of multiple network devices into a single controller, making the controller the decision maker in the entire network and realizing centralized control of network device traffic. The advantage of this is that the SDN controller controls the resources of the entire network, which is conducive to the centralized scheduling and allocation of network resources and promotes network automation management. However, when developers build SDN products, they do not pay enough attention to the security of SDN networks. When the SDN controller loses contact with the SDN switch for some reason, the entire SDN network will be paralyzed. This failure is unacceptable in some situations.
[0003] In order to solve the problem of poor security of a single controller, most SDN network providers use multi-controller technology, that is, to build an SDN controller cluster, and the SDN switch establishes a primary connection with one SDN controller in the SDN controller cluster, and establishes a secondary connection with at least one other SDN controller in the SDN controller cluster. The advantage of multi-controller technology is that in the event of failure of the primary connection, the SDN switch can select a new primary connection in the SDN secondary controller. Summary of the invention
[0004] The purpose of the invention is to provide a multiplexed secure SDN control system and a control method thereof, which can improve the accuracy of commands issued by the controller, and at the same time, when the SDN controller is not suitable for continuing to perform the control function, such as when the SDN controller is overloaded or the connection with the SDN switch fails, a new main controller can be selected in the SDN controller cluster to ensure the security and reliability of the entire SDN network.
[0005] In order to achieve the above purpose, the present invention adopts the following technical solutions:
[0006] A multiplexed secure SDN control system includes an SDN switch and an SDN controller cluster, wherein the SDN controller cluster is provided with N controllers, one of which is a first controller, and the remaining N-1 controllers are second controllers; the first controller and the SDN switch have a first connection relationship, and the second controller and the SDN switch have a second connection relationship; the SDN switch sends commands to the first controller and the second controller, the second controller sends feedback information to the first controller, and the first controller sends feedback information to the SDN switch.
[0007] The first controller and the second controller are provided with a security management module, and the SDN switch is provided with a security configuration module.
[0008] The safety management module comprises: a communication unit, an instruction comparison unit, a recording unit, an election unit and a data synchronization unit; the safety configuration module comprises: a connection unit and an adjustment unit.
[0009] The control method of the multiplexed secure SDN control system comprises the following steps:
[0010] 1) The SDN switch establishes a first connection with a controller in the SDN controller cluster, and this controller is the first controller; the remaining controllers are the second controllers, and the SDN switch establishes a second connection with the second controller;
[0011] 2) The SDN switch sends commands to all controllers in the SDN controller cluster;
[0012] 3) The first controller receives the command sent by the SDN switch and generates a first feedback command; the second controller receives the command sent by the SDN switch and generates a second feedback command;
[0013] 4) The second controller sends the generated second feedback command to the first controller; the first controller processes the first feedback command and the second feedback command to obtain an optimal feedback command, and sends the optimal feedback command as a final feedback command to the SDN switch;
[0014] 5) After the SDN switch and the SDN controller cluster interact with each other for multiple times, the SDN controller cluster replaces the first controller for the SDN switch under a preset scenario.
[0015] The security management module in the first controller stores the first feedback command and all the second feedback commands. The security management module compares the first feedback command and all the second feedback commands and selects the feedback command with the highest consistency as the optimal feedback command. After obtaining the optimal feedback command, the security management module in the first controller sends the optimal feedback command back to the second controller. The second controller deletes the second feedback command formed previously and uses the optimal feedback command as the feedback command for the SDN switch for recording.
[0016] The instruction comparison unit in the first controller compares the received first feedback command and the second feedback command for instruction consistency, obtains the optimal feedback command as the controller command sent to the SDN switch; the recording unit records the adoption of the first feedback command of the first controller and the second feedback command of the second controller: if adopted, the corresponding controller counter records the value +1; if not adopted, the corresponding controller counter records the value +0.
[0017] In the election unit, after the SDN switch and the SDN controller cluster interact with each other for multiple times, the election unit prepares for replacing the first controller of the SDN switch under a preset scenario according to the counter record of the recording unit, and selects a new first controller for the SDN switch when the first controller of the SDN switch fails or the first controller is not suitable for continuing to perform the control function.
[0018] The data synchronization unit is used to synchronize the database of the controller cluster after each command interaction between the SDN switch and the SDN controller cluster; through database synchronization, the feedback commands and configuration commands of each controller in the SDN controller cluster to the SDN switch are made consistent; after replacing the first controller, the database data is consistent with the original first controller database, and the information about the first controller and the second controller of the controller cluster is updated.
[0019] The connection unit is used to send command requests to all controllers in the SDN controller cluster.
[0020] The adjustment unit is used to execute the first controller replacement command.
[0021] Beneficial effects of the present invention:
[0022] The present invention provides a multiplexed secure SDN control system and a control method thereof. The SDN switch establishes a first connection with a certain controller in the SDN controller cluster and a second connection with the remaining controllers; the SDN switch sends commands to all controllers in the cluster and receives a unique controller instruction returned by the controller cluster; the SDN controller cluster gives feedback to the request command sent by the switch, collects the feedback command in the first controller for consistency comparison, obtains a unique command and feeds it back to the switch; after multiple command interactions, the SDN controller cluster prepares to replace the first controller of the SDN switch and replaces the first controller for the SDN switch under a preset scenario. The accuracy and security of SDN network data transmission are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a flowchart of the overall implementation of the secure SDN controller according to an embodiment of the present invention.
[0024] Figure 2 This is a functional diagram of the SDN controller security management module according to Example 1 of the present invention.
[0025] Figure 3 This is a functional diagram of the SDN switch security configuration module according to Embodiment 1 of the present invention.
[0026] Figure 4 This is a schematic diagram of command interaction between an SDN switch and an SDN controller cluster in Example 1 of the present invention.
[0027] Figure 5 This is a schematic diagram of updating the SDN controller database according to Embodiment 1 of the present invention.
[0028] Figure 6 This is a functional diagram of an instruction comparison unit of an SDN controller security management module in Example 1 of the present invention. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0030] Example 1: Figure 1 As shown in the figure, the overall implementation process of the secure SDN controller is described as follows:
[0031] The SDN switch establishes a connection with the SDN controller cluster, establishes the first connection with the SDN controller C0, establishes the second connection with the SDN controller C1, and establishes the second connection with the SDN controller C2. It should be noted that the SDN controller that establishes the first connection relationship with the SDN switch is called the first controller, and the SDN controller that establishes the second connection relationship with the SDN switch is called the second controller; the first controller can receive the SDN switch command request and is responsible for sending commands to the SDN switch and configuring the SDN switch, the second controller can receive the SDN switch command request and send the corresponding request feedback command to the first controller; the SDN controller cluster has one and only one first controller, and the remaining controllers are second controllers.
[0032] In one command interaction, the SDN switch sends a command request to the controller cluster and receives a unique controller instruction returned by the controller cluster; in multiple command interactions, the SDN controller cluster prepares to replace the first SDN controller and replaces the first controller for the SDN switch under a preset scenario.
[0033] Specific:
[0034] The SDN switch sends a command request to the SDN controller cluster. The SDN No. 1 controller obtains the final feedback command through the security management module and replies to the SDN switch.
[0035] Optionally, for an SDN controller cluster, the feedback command generated by the first controller after receiving the SDN switch command request is called the first feedback command, and the feedback command generated by the second controller after receiving the SDN switch command request is called the second feedback command; for an SDN controller cluster, the command with the highest consistency selected by the security configuration module of the first controller and sent to the SDN switch is called the final feedback command.
[0036] The SDN first controller security management module records the number of times each controller's feedback command is adopted, in preparation for the SDN switch to replace the first controller.
[0037] Optionally, the security management module recording unit records the number of times each controller feedback command is adopted, and the number of times adopted is called a counter record.
[0038] The SDN controller cluster replaces the first controller for the SDN switch, and this function is implemented by the first controller security management module election unit. It should be noted that there are two scenarios for replacing the first controller: active replacement and passive replacement.
[0039] Optionally, active replacement is applicable to the situation where the election unit of the SDN first controller security management module determines that it does not meet the requirements to continue to play the role of the first controller based on the counter record, and passive replacement is applicable to the situation where the connection between the SDN switch and the SDN first controller fails.
[0040] like Figure 2 , which is a functional schematic diagram of a security management module of an SDN controller according to an embodiment of the present invention, wherein the security management module is composed of a communication unit, an instruction comparison unit, a recording unit, an election unit, and a data synchronization unit.
[0041] Optionally, the communication unit is used for communication between controllers. After receiving the second feedback command sent by the second controller, the first feedback command and the second feedback command are passed to the instruction comparison unit. The communication unit obtains the final feedback command, counter record and election result, and passes them to the data synchronization unit and sends them to other controllers at the same time.
[0042] Optionally, the instruction comparison unit is used to compare the consistency of feedback commands of all controllers transmitted by the communication unit, and the feedback command with the highest consistency is used as the final feedback command, and the final feedback command is transmitted to the recording unit and the communication unit.
[0043] Optionally, a recording unit is used to record the adoption of feedback commands from all controllers in the controller cluster, generate counter records, and pass them to the communication unit and the election unit.
[0044] Optionally, the election unit is used to select a new first controller for the SDN switch according to the counter record when the first controller of the SDN switch fails or the first controller is not suitable for continuing to perform the control function, including two scenarios: active replacement and passive replacement. Active replacement, the scenario where the SDN first controller is overloaded or otherwise not suitable for continuing to perform the control function; passive replacement, the scenario where the connection between the SDN first controller and the SDN switch fails. Specifically, after the counter record reaches the preset value, the election unit presets the controller with the most adopted feedback commands according to the counter record as the candidate first controller, and the election unit presets the controller with the second most adopted feedback commands as the candidate second controller. If the number of adopted times is the same, the superiority and inferiority are randomly determined. In the active replacement scenario, if the candidate first controller is the original first controller, the command to replace the first controller is executed, and the candidate second controller becomes the first controller of the SDN switch; if the candidate first controller is not the original first controller, the command to replace the first controller is executed, and the candidate first controller becomes the first controller of the SDN switch. In the passive scenario, if the candidate first controller is the original first controller, the candidate second controller becomes the first controller of the SDN switch; if the candidate first controller is not the original first controller, the candidate first controller becomes the first controller of the SDN switch.
[0045] Optionally, a data synchronization unit is used to synchronize the databases of each controller of the controller cluster after each command interaction between the SDN switch and the SDN controller cluster. Database synchronization ensures that each controller of the SDN controller cluster provides consistent feedback commands and configuration information to the SDN switch. After replacing the first controller, the database data is consistent with the original first controller database, and the information about the first and second controllers of the controller cluster is updated.
[0046] like Figure 3 , which is a functional schematic diagram of a security configuration module of an SDN switch according to an embodiment of the present invention, including a connection unit and an adjustment unit.
[0047] Optionally, the connection unit is used to send command requests to all switches in the SDN controller cluster, and receive the final feedback command and other general configuration commands returned by the first controller of the controller cluster.
[0048] Optionally, the adjustment unit is used to execute the command to replace the first controller, including two scenarios: active replacement and passive replacement. It should be noted that in the active replacement scenario, the load of the SDN first controller is too high or other scenarios are not suitable for continuing to execute control functions. A candidate first controller or a candidate second controller is selected in the SDN controller cluster as the new first controller, and the command to replace the first controller is sent to the SDN switch, and the SDN switch executes the corresponding command; in the passive replacement scenario, the connection between the SDN switch and the SDN first controller fails, and the first candidate controller or the second controller in the SDN controller cluster automatically becomes the SDN first controller and establishes a connection with the SDN switch.
[0049] Optionally, after replacing the first controller, the SDN switch sends update information to the controller cluster, and the controller cluster database is synchronously updated.
[0050] like Figure 4 As shown, it is a schematic diagram of the command interaction between the SDN switch and the SDN controller cluster according to an embodiment of the present invention. The SDN switch establishes a first connection with the SDN controller C0, a second connection with the SDN controller C1, and a second connection with the SDN controller C2. The specific description is as follows:
[0051] The SDN switch sends command requests to all controllers in the SDN controller cluster.
[0052] The second controller sends the generated second feedback command to the first controller.
[0053] The first controller security management module compares all first feedback commands with the second feedback commands for consistency, obtains the final feedback command, replies to the SDN switch, and sends it to all second controllers at the same time.
[0054] like Figure 5 As shown, it is a schematic diagram of updating the SDN controller database according to an embodiment of the present invention. There are two scenarios for updating the database: updating the database by a command interaction between the SDN switch and the SDN controller cluster and updating the database by replacing the first controller by the SDN switch. The specific descriptions are as follows:
[0055] Scenario 1: The SDN switch and the SDN controller cluster interact with each other once to update the database. After the final feedback command is replied to the SDN switch, the data synchronization unit of the SDN controller security management module receives the regular update data, the final feedback command and the counter record, and updates the database. Scenario 2: After the SDN switch and the SDN controller cluster interact with each other for multiple times, the SDN switch replaces the first controller in a predetermined scenario. The data synchronization unit of the SDN controller security management module receives the regular update data, the final feedback command, the counter record and the update information of the first controller, and updates the database.
[0056] like Figure 6 As shown, it is a schematic diagram of the instruction comparison unit of the SDN controller security management module according to an embodiment of the present invention. The core structure of the instruction comparison unit is a comparator. The specific function is to compare the consistency of all the controller feedback commands collected together through a built-in algorithm, and the feedback command with the most consistent times is output as the comparison result and recorded as the final feedback command. It should be noted that if there are two feedback commands with the most consistent times, one is randomly selected as the comparison result output.
[0057] In summary, the present invention provides a multiplexed secure SDN controller method, which is described as follows: the SDN switch establishes a first connection with a certain controller in the SDN controller cluster, and establishes a second connection with the remaining controllers; the SDN switch sends commands to all controllers in the cluster, and receives a unique controller instruction returned by the controller cluster; the SDN controller cluster responds to the request command sent by the controller, collects the feedback command in the first controller for consistency comparison, and obtains a unique command to feedback to the switch; after multiple command interactions, the SDN controller cluster prepares to replace the first controller of the SDN switch, and replaces the first controller for the SDN switch under a preset scenario. The accuracy and security of SDN network data transmission are greatly improved.
Claims
1. A control method for a multiplexed secure SDN control system, characterized in that: The steps are: 1) The SDN switch establishes the first connection with a controller in the SDN controller cluster. This controller is the first controller. The remaining controllers are the second controllers. The SDN switch establishes the second connection with the second controller. 2) The SDN switch sends commands to all controllers in the SDN controller cluster; 3) The first controller receives the command sent by the SDN switch and generates a first feedback command; the second controller receives the command sent by the SDN switch and generates a second feedback command; 4) The second controller sends the generated second feedback command to the first controller; the first controller processes the first feedback command and the second feedback command to obtain the optimal feedback command, and sends the optimal feedback command as the final feedback command to the SDN switch; 5) After the SDN switch interacts with the SDN controller cluster for multiple times, the SDN controller cluster replaces the first controller for the SDN switch under a preset scenario.
2. The control method of the multiplexed secure SDN control system according to claim 1, characterized in that: The security management module in the first controller stores the first feedback command and all the second feedback commands. The security management module compares the first feedback command and all the second feedback commands and selects the feedback command with the highest consistency as the optimal feedback command. After obtaining the optimal feedback command, the security management module in the first controller sends the optimal feedback command back to the second controller. The second controller deletes the second feedback command formed previously and uses the optimal feedback command as the feedback command for the SDN switch for recording.
3. The control method of the multiplexed secure SDN control system according to claim 1, characterized in that: The instruction comparison unit in the first controller compares the received first feedback command and the second feedback command for instruction consistency, obtains the optimal feedback command as the controller command sent to the SDN switch; the recording unit of the first controller records the first feedback command of the first controller, and the recording unit of the second controller records the adoption of the second feedback command of the second controller: if adopted, the corresponding controller counter records a value of +1; if not adopted, the corresponding controller counter records a value of +0.
4. The control method of the multiplexed secure SDN control system according to claim 1, characterized in that: After the SDN switch interacts with the SDN controller cluster for multiple times, the election unit prepares for replacing the first controller of the SDN switch under a preset scenario according to the counter record of the recording unit, and selects a new first controller for the SDN switch when the first controller of the SDN switch fails or the first controller is not suitable for continuing to perform the control function.
5. The control method of the multiplexed secure SDN control system according to claim 1, characterized in that: The SDN switch synchronizes the database of the controller cluster each time after interacting with the SDN controller cluster command; through database synchronization, the feedback commands and configuration commands of each controller in the SDN controller cluster to the SDN switch are consistent; After replacing the first controller, the database data is consistent with the original first controller database, and the information about the first controller and the second controller of the controller cluster is updated.
6. A multiplexed secure SDN control system for implementing the control method of claim 1, characterized in that: The invention comprises an SDN switch and an SDN controller cluster, wherein N controllers are arranged in the SDN controller cluster, one of which is the first controller, and the remaining N-1 controllers are all second controllers; the first controller and the SDN switch have a first connection relationship, and the second controller and the SDN switch have a second connection relationship; the SDN switch sends commands to the first controller and the second controller, the second controller sends feedback information to the first controller, and the first controller sends feedback information to the SDN switch.
7. The multiplexed secure SDN control system according to claim 6, characterized in that: The first controller and the second controller are provided with a security management module, and the SDN switch is provided with a security configuration module.
8. The multiplexed secure SDN control system according to claim 7, characterized in that: The safety management module comprises: a communication unit, an instruction comparison unit, a recording unit, an election unit and a data synchronization unit; the safety configuration module comprises: a connection unit and an adjustment unit.
9. The multiplexed secure SDN control system according to claim 8, characterized in that: The connection unit is used to send command requests to all controllers in the SDN controller cluster.
10. The multiplexed secure SDN control system according to claim 8, characterized in that: The adjustment unit is used to execute the first controller replacement command.
