An SDN cluster escape method, device and storage medium based on Openstack

By deploying an SDN controller cluster in the cloud platform and configuring nodes to connect to the network, detecting and replacing faulty nodes, the stability problem of the SDN controller in the event of network failure is solved, the deployment of new nodes in the cloud platform is realized, and the data center is ensured Network stability and security.

CN115550220BActive Publication Date: 2024-09-03INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202211154940.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2024-09-03
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

In data centers that use SDN and cloud computing platform solutions, it is difficult for the SDN controller to repair or regulate network failures, which affects the stability of the data center network. How to improve the stability of the SDN cluster has become an urgent problem to be solved.

Method used

By deploying an SDN controller cluster in the cloud platform and configuring the node connection network, including the heartbeat detection network and cluster management network, the SDN controller master node detects the connection status of the slave nodes. After determining the faulty node, it constructs a virtual machine creation instruction and Create a new virtual machine on the OpenStack cloud computing management platform, synchronize data from the node, and add it to the SDN controller cluster to ensure stable cluster status.

Benefits of technology

When a network failure or node crashes, it can be detected in time and deployed through new nodes. Relying on the virtual machine management features of the cloud platform, it ensures the stable status of the SDN controller cluster, ensures the security of current business data, and enhances network stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550220B
    Figure CN115550220B
Patent Text Reader

Abstract

The present application discloses an SDN cluster escape method, device and storage medium based on Openstack. The method includes: deploying an SDN controller cluster in a cloud platform, and configuring a node connection network for the SDN controller cluster; when the SDN controller cluster is working, the SDN controller master node detects the connection status of the SDN controller slave node through the node connection network to determine whether a faulty node occurs; when it is determined that a faulty node occurs, the SDN controller master node constructs a virtual machine creation instruction and sends it to the OpenStack cloud computing management platform so that the OpenStack cloud computing management platform creates a virtual machine to be applied; after creating the virtual machine to be applied, the SDN controller master node executes a node creation program for the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data with the newly added SDN controller slave node so that the newly added SDN controller slave node joins the SDN controller cluster. The present application improves the stability of the SDN cluster through the above method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of SDN (Software Defined Network), and in particular to an Openstack-based SDN cluster escape method, device and storage medium. Background Art

[0002] As the relevance of various industries to the Internet has gradually increased in recent years, more and more companies have chosen to move their businesses to the cloud and build private cloud environments locally, ensuring the utilization of their own data center resources while reducing the security risks of placing core businesses in the public cloud. At the same time, with the introduction of the cloud, many manufacturers will deploy SDN (software-defined network) controllers in data center networking. Through the collaboration of SDN controllers and private cloud platforms, the automated operation and maintenance and regulation of data center networks can be achieved, saving manpower and practical costs, and certainly reducing the technical requirements for operation and maintenance personnel.

[0003] Software-based SDN controllers can be deployed inside the cloud platform to save server resources. They also make use of the characteristics of virtual machine drift on the cloud platform to make themselves safer and more reliable than physical server deployment. However, if the cloud platform network fails and affects the management network, it is difficult for the SDN controller to repair or regulate the network. At this time, the operation and maintenance personnel cannot use the information obtained by the SDN controller to perform network troubleshooting, which affects the stability of the data center network. Therefore, for data centers that use SDN in conjunction with cloud computing platform solutions, how to improve the stability of the SDN cluster has become an urgent problem to be solved. Summary of the invention

[0004] The embodiments of the present application provide an Openstack-based SDN cluster escape method, device, and storage medium to solve the following technical problem: How to improve the stability of the SDN cluster for a data center that adopts an SDN combined with a cloud computing platform solution.

[0005] In a first aspect, an embodiment of the present application provides an Openstack-based SDN cluster escape method, characterized in that the method comprises: deploying an SDN controller cluster in a cloud platform, and configuring a node connection network for the SDN controller cluster; wherein the SDN controller cluster comprises an SDN controller master node and a plurality of SDN controller slave nodes; the node connection network is used to realize the connection of a plurality of SDN controller slave nodes with the SDN controller master node, and comprises: a heartbeat detection network and a cluster management network; when the SDN controller cluster is working, the SDN controller master node detects the connection status of a plurality of SDN controller slave nodes through the node connection network to determine the connection status of a plurality of SDN controller slave nodes Whether there is a faulty node among the N controller slave nodes; when it is determined that there are faulty nodes among several SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; after the OpenStack cloud computing management platform creates the virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data with the newly added SDN controller slave node, so that the newly added SDN controller slave node joins the SDN controller cluster.

[0006] In one implementation of the present application, an SDN controller cluster is deployed in a cloud platform, and a node connection network is configured for the SDN controller cluster, specifically including: creating a master virtual machine and several slave virtual machines based on preset virtual machine creation rules, and installing SDN applications in the master virtual machine and the several slave virtual machines to obtain an SDN controller cluster; configuring a cluster management network of the SDN controller cluster so that the SDN controller cluster can access the management network of the cloud platform, and enable several SDN controller slave nodes to be connected to the SDN controller master node through the cluster management network; configuring a heartbeat detection network, and enable several SDN controller slave nodes to be connected to the SDN controller master node through the heartbeat detection network.

[0007] In one implementation of the present application, the SDN controller master node performs connection status detection on several SDN controller slave nodes through a node connection network, specifically including: the SDN controller master node sends periodic icmp messages to each SDN controller slave node in the SDN controller cluster through a heartbeat detection network, and confirms the connection status of the target SDN controller slave node based on whether a reply message returned by the corresponding target SDN controller slave node is received; if the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after a first preset time interval, the SDN controller master node marks the target SDN controller slave node as disconnected , and maintains sending periodic icmp messages to the target SDN controller slave node; when the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the second preset time interval, the SDN controller master node marks the target SDN controller slave node as a check state, and sends periodic icmp messages to the target SDN controller slave node through the cluster management network; when the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the third preset time interval, the SDN controller master node marks the target SDN controller slave node as an offline state, and determines that the target SDN controller slave node is a faulty node.

[0008] In one implementation of the present application, the SDN controller master node constructs a virtual machine creation instruction, specifically including: reading the upper limit number of escape virtual machines that can be constructed and the number of escape virtual machines that have been constructed in a preset fault escape resource pool; wherein the fault escape resource pool is used to provide configuration information for constructing virtual machines; when it is determined that the upper limit number of escape virtual machines that can be constructed is greater than the number of escape virtual machines that have been constructed, based on a preset configuration information generation rule, generating to-be-configured information of the virtual machine to be applied; wherein the to-be-configured information includes at least: a management network address, a heartbeat detection network address; based on the to-be-configured information of the virtual machine to be applied, constructing a virtual machine creation instruction.

[0009] In one implementation of the present application, after the OpenStack cloud computing management platform creates a virtual machine to be applied based on a virtual machine creation instruction, the method also includes: the SDN controller master node adds the virtual machine to be applied to the cluster management network based on the management network address, and adds the virtual machine to be applied to the heartbeat detection network based on the heartbeat detection network address; the SDN controller master node sends periodic icmp messages to the virtual machine to be applied through the cluster management network, and when a reply message returned by the virtual machine to be applied is received within a fourth preset time interval, the SDN controller master node marks the virtual machine to be applied as available, and sends periodic icmp messages to the virtual machine to be applied through the heartbeat detection network; when a reply message returned by the virtual machine to be applied is received within a fifth preset time interval, the virtual machine to be applied is marked as deployed.

[0010] In one implementation of the present application, the method also includes: when no reply message returned by the virtual machine to be applied is received within the fourth preset time interval or the fifth time interval, the SDN controller master node marks the virtual machine to be applied as a node application failure, and re-creates the virtual machine to be applied on the OpenStack cloud computing management platform; in the event of a re-creation failure, continue to retry the creation until the number of escape virtual machines that have been built reaches the upper limit of the number of escape virtual machines that can be built.

[0011] In one implementation of the present application, after marking the virtual machine to be applied as being in a deployed state, the method further includes: the SDN controller master node disabling access rights to the faulty node based on a preset escape rule; and sending instructions to delete information related to the faulty node to other SDN controller slave nodes through a cluster management network.

[0012] In one implementation of the present application, the SDN controller master node executes a node creation program for the virtual machine to be applied, specifically including: based on a preset first data transmission mode, the SDN controller master node sends the SDN application to the virtual machine to be applied through the cluster management network; after the SDN application transmission is completed, based on a preset second data transmission mode, the SDN controller master node sends a deployment instruction to the virtual machine to be applied through the cluster management network; the virtual machine to be applied installs the SDN application based on the deployment instruction to obtain a newly added SDN controller slave node, and sends a deployment completion confirmation message to the SDN controller master node.

[0013] In the second aspect, an embodiment of the present application also provides an SDN cluster escape device based on Openstack, characterized in that the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can: deploy an SDN controller cluster in the cloud platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and several SDN controller slave nodes; the node connection network is used to realize the connection between several SDN controller slave nodes and the SDN controller master node, including: a heartbeat detection network and a cluster management network; when the SDN controller cluster is working, the SDN controller master node Through the node connection network, the connection status of several SDN controller slave nodes is detected to determine whether there is a faulty node among the several SDN controller slave nodes; when it is determined that there is a faulty node among the several SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; after the OpenStack cloud computing management platform creates the virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data with the newly added SDN controller slave node, so that the newly added SDN controller slave node joins the SDN controller cluster.

[0014] In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for SDN cluster escape based on Openstack, storing computer executable instructions, characterized in that the computer executable instructions are configured to: deploy an SDN controller cluster in a cloud platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and a plurality of SDN controller slave nodes; the node connection network is used to connect a plurality of SDN controller slave nodes to the SDN controller master node, including: a heartbeat detection network and a cluster management network; when the SDN controller cluster is working, the SDN controller master node performs heartbeat detection on a plurality of SDN controller slave nodes through the node connection network A connection status detection is performed to determine whether there is a faulty node among several SDN controller slave nodes; when it is determined that there is a faulty node among several SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; after the OpenStack cloud computing management platform creates the virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data with the newly added SDN controller slave node, so that the newly added SDN controller slave node joins the SDN controller cluster.

[0015] An Openstack-based SDN cluster escape method, device, and storage medium provided in the embodiments of the present application can detect SDN controller cluster abnormalities in a timely manner in scenarios such as network failures or node crashes, and attempt to deploy new nodes in cloud platform computing nodes in a normal state by creating new nodes on the cloud platform and relying on the cloud platform virtual machine management characteristics, so as to ensure the stability of the SDN controller cluster state and the security of current business data as much as possible, so that the SDN controller cluster can still regulate the data center network in risk scenarios and enhance network stability and reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A flow chart of an SDN cluster escape method based on Openstack provided in an embodiment of the present application;

[0018] Figure 2A schematic diagram of the internal structure of an Openstack-based SDN cluster escape device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] The embodiments of the present application provide an Openstack-based SDN cluster escape method, device, and storage medium to solve the following technical problem: How to improve the stability of the SDN cluster for a data center that adopts an SDN combined with a cloud computing platform solution.

[0021] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0022] Figure 1 A flow chart of an Openstack-based SDN cluster escape method provided in an embodiment of the present application. Figure 1 As shown, an Openstack-based SDN cluster escape method provided in an embodiment of the present application specifically includes the following steps:

[0023] Step 101: deploy an SDN controller cluster in a cloud platform, and configure a node connection network for the SDN controller cluster.

[0024] First of all, it should be noted that the SDN controller cluster of the embodiment of the present application includes an SDN controller master node and several SDN controller slave nodes; the node connection network is used to connect several SDN controller slave nodes with the SDN controller master node, including: a heartbeat detection network and a cluster management network.

[0025] It is understandable that before deploying the SDN controller cluster in the cloud platform, the cloud platform and data center should have been deployed. The deployed cloud platform and data center should have the online conditions required for the business production environment, that is, a complete management network.

[0026] In one embodiment of the present application, an SDN controller cluster is deployed in a cloud platform, and a node connection network is configured for the SDN controller cluster, specifically including: creating a master virtual machine and several slave virtual machines based on preset virtual machine creation rules, and installing SDN applications in the master virtual machine and the several slave virtual machines to obtain an SDN controller cluster.

[0027] It is understandable that the configuration of a virtual machine requires configuration of its specifications, and the specification types include at least parameters such as CPU, memory, hard disk, etc. The present application does not limit the specifications of the master virtual machine and the multiple slave virtual machines, and the specifications of the master virtual machine and the slave virtual machines can be the same or different. Therefore, the embodiments of the present application are based on preset virtual machine creation rules, which are not limited by the present application. The master virtual machine and the multiple slave virtual machines can be created according to the corresponding creation rules determined according to the needs.

[0028] Furthermore, management network addresses are allocated to the master virtual machine and several slave virtual machines to configure the cluster management network of the SDN controller cluster, so that the SDN controller cluster can access the management network of the cloud platform, and enable several SDN controller slave nodes to connect to the SDN controller master node through the cluster management network; heartbeat detection network addresses are allocated to the master virtual machine and several slave virtual machines to configure the heartbeat detection network, and enable several SDN controller slave nodes to connect to the SDN controller master node through the heartbeat detection network.

[0029] It is understandable that the SDN controller is responsible for controlling various forwarding rules. Therefore, after deploying the SDN controller cluster, it is also necessary to manage various devices in the network such as servers, switches, firewalls, etc.

[0030] Specifically, the management information of various network devices, including the management network IP, management username and password, SNMP-related configuration, etc. of various devices reachable by the SDN controller, can be verified through SSH or SNMP. After the verification information is correct, the device information is saved in the SDN controller cluster's own database. In the subsequent use process, the SDN controller will control the network according to the acquired device management information, and perform status monitoring, configuration management and other operations on the equipment.

[0031] In one embodiment of the present application, it is also necessary to configure a fault escape resource pool that can provide configuration information for building a virtual machine when a faulty node is detected. The fault escape resource pool should include the upper limit of the number of escape virtual machines that can be built (the maximum number of nodes allowed to be newly built), the specifications of the newly built nodes (CPU, memory, hard disk and other parameter selections for applying to create nodes), the newly built node management network pool (used to provide management network addresses), the newly built node heartbeat detection network pool (used to provide heartbeat detection network addresses), the newly built node username and password, the newly built node protocol type and other information. After the configuration is completed, when the fault escape mechanism is triggered, the SDN controller master node will construct the virtual machine creation instruction based on the above information in the fault escape resource pool.

[0032] Step 102: When the SDN controller cluster is running, the SDN controller master node detects the connection status of several SDN controller slave nodes through the node connection network to determine whether there is a faulty node among the several SDN controller slave nodes.

[0033] In one embodiment of the present application, when the SDN controller cluster is running, the SDN controller master node is the source, and sends periodic icmp messages to several SDN controller slave nodes in the cluster through the node connection network, and confirms the current network connection status of the SDN controller slave node based on whether a reply message is received. To ensure the accuracy of the heartbeat detection, the embodiment of the present application uses two different networks, the management network and the heartbeat detection network, for simultaneous detection.

[0034] Specifically, the SDN controller master node sends periodic icmp messages to each SDN controller slave node in the SDN controller cluster through the heartbeat detection network, and confirms the connection status of the target SDN controller slave node based on whether a reply message returned by the corresponding target SDN controller slave node is received.

[0035] Furthermore, when the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the first preset time interval, the SDN controller master node marks the target SDN controller slave node as disconnected and continues to send periodic icmp messages to the target SDN controller slave node.

[0036] Furthermore, when the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the second preset time interval, the SDN controller master node marks the target SDN controller slave node as a checking state and sends periodic icmp messages to the target SDN controller slave node through the cluster management network.

[0037] Further, when the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the third preset time interval, the SDN controller master node marks the target SDN controller slave node as offline and determines that the target SDN controller slave node is a faulty node.

[0038] For example: the SDN controller master node periodically sends a group of 10 icmp messages with an interval of 3 seconds at a cycle of 30 seconds to verify whether the network status from the SDN controller master node to the SDN controller slave node is normal. If for a certain SDN controller slave node, no reply message is received from the node within a cycle of icmp messages, the SDN controller master node will mark the node as disconnected. For the SDN controller slave node in the disconnected state, the SDN controller master node will continue to send icmp messages. If no reply message is received from the node within ten cycles, i.e., a total of 300 seconds, the node is marked as checking state. For the SDN controller slave node in the checking state, the SDN controller master node will switch to sending icmp messages to its management network address, and similarly, by periodically sending a group of 10 icmp messages with an interval of 3 seconds at a cycle of 30 seconds, if no reply message is received from the node by the management network within ten cycles, i.e., a total of 300 seconds, the node is marked as offline and determined to be a faulty node.

[0039] Step 103: When it is determined that a faulty node appears among several SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction.

[0040] In one embodiment of the present application, when it is determined that a faulty node appears in several SDN controller slave nodes, an escape mechanism is triggered, and the SDN controller master node constructs a virtual machine creation instruction and sends the virtual machine creation instruction to the OpenStack cloud computing management platform in the form of a command line.

[0041] In one embodiment of the present application, the SDN controller master node constructs a virtual machine creation instruction, which specifically includes: reading the upper limit number of escape virtual machines that can be constructed and the number of escape virtual machines that have been constructed in a preset fault escape resource pool; when it is determined that the upper limit number of escape virtual machines that can be constructed is greater than the number of escape virtual machines that have been constructed, generating to-be-configured information of the virtual machine to be applied based on a preset configuration information generation rule; wherein the to-be-configured information includes at least: a management network address, a heartbeat detection network address; and constructing a virtual machine creation instruction based on the to-be-configured information of the virtual machine to be applied.

[0042] In one embodiment of the present application, after the OpenStack cloud computing management platform creates a virtual machine to be applied based on a virtual machine creation instruction, the SDN controller master node adds the virtual machine to be applied to the cluster management network based on the management network address, and adds the virtual machine to be applied to the heartbeat detection network based on the heartbeat detection network address.

[0043] Furthermore, the SDN controller master node sends periodic icmp messages to the virtual machine to be applied through the cluster management network, and when receiving a reply message returned by the virtual machine to be applied within a fourth preset time interval, marks the virtual machine to be applied as available, and sends periodic icmp messages to the virtual machine to be applied through the heartbeat detection network.

[0044] Further, when a reply message returned by the to-be-applied virtual machine is received within a fifth preset time interval, the to-be-applied virtual machine is marked as being in a deployed state.

[0045] In one embodiment of the present application, if no reply message returned by the virtual machine to be applied is received within the fourth preset time interval or the fifth time interval, the SDN controller master node marks the virtual machine to be applied as a node application failure, and re-creates the virtual machine to be applied on the OpenStack cloud computing management platform; if the re-creation fails, continue to retry the creation until the number of escape virtual machines that have been built reaches the upper limit of the number of escape virtual machines that can be built.

[0046] In one embodiment of the present application, after marking the virtual machine to be applied as deployed, the SDN controller master node will also disable the access rights of the faulty node by means of preset ACL rules or configuring the system firewall; in addition, the SDN controller master node will also send instructions to delete information related to the faulty node to other SDN controller slave nodes through the cluster management network, so as to remove the faulty node from the SDN controller cluster and ensure that the faulty node cannot issue commands to the current data center equipment.

[0047] Step 104: After the virtual machine to be applied is created on the OpenStack cloud computing management platform, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data with the newly added SDN controller slave node so that the newly added SDN controller slave node joins the SDN controller cluster.

[0048] In one embodiment of the present application, after the OpenStack cloud computing management platform creates a virtual machine to be applied, the SDN controller master node executes a node creation program for the virtual machine to be applied.

[0049] Specifically, based on the preset first data transmission mode, the SDN controller master node sends the SDN application to the virtual machine to be applied through the cluster management network. Optionally, the first data transmission mode includes: SCP or FTP mode,

[0050] Further, after the SDN application transmission is completed, based on the preset second data transmission mode, the SDN controller master node sends a deployment instruction to the virtual machine to be applied through the cluster management network. Optionally, the second data transmission mode includes: ssh mode.

[0051] Furthermore, the virtual machine to be applied installs the SDN application based on the deployment instruction to obtain a newly added SDN controller slave node, and sends deployment completion confirmation information to the SDN controller master node.

[0052] Furthermore, after receiving the deployment completion confirmation information, the SDN controller master node marks the newly added SDN controller slave node as being in an online state.

[0053] In one embodiment of the present application, after the newly added SDN controller slave node is obtained, data synchronization is performed on the newly added SDN controller slave node, so that the newly added SDN controller slave node joins the SDN controller cluster.

[0054] In one embodiment of the present application, each SDN controller slave node in the SDN controller cluster can also monitor its own program status. When a scenario such as a memory leak occurs, each SDN controller slave node will send an alarm message to the SDN controller master node and actively trigger a fault escape mechanism. At this time, the SDN controller master node will directly enter the new node creation step, remove the SDN controller slave node that issued the alarm message from the SDN controller cluster, and adjust the device access rights in the environment.

[0055] Through the above-mentioned method, the embodiment of the present application can detect SDN controller cluster abnormalities in time in scenarios such as network failure or node crash, and try to deploy the newly created nodes in normal cloud platform computing nodes by creating new nodes on the cloud platform relying on the cloud platform virtual machine management characteristics, so as to ensure the stability of the SDN controller cluster state and the security of current business data as much as possible, so that the SDN controller cluster can still regulate the data center network in risk scenarios and enhance network stability and reliability.

[0056] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides an SDN cluster escape device based on Openstack, whose structure is as follows Figure 2 shown.

[0057] Figure 2 The internal structure diagram of an Openstack-based SDN cluster escape device provided in the embodiment of the present application is as follows. Figure 2 As shown, the device includes:

[0058] at least one processor 201;

[0059] and, a memory 202 communicatively connected to the at least one processor;

[0060] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0061] Deploy an SDN controller cluster in the cloud platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and several SDN controller slave nodes; the node connection network is used to connect several SDN controller slave nodes with the SDN controller master node, including: a heartbeat detection network and a cluster management network;

[0062] When the SDN controller cluster is running, the SDN controller master node detects the connection status of several SDN controller slave nodes through the node connection network to determine whether there is a faulty node among the several SDN controller slave nodes;

[0063] When it is determined that a faulty node occurs in several slave nodes of the SDN controller, the master node of the SDN controller constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction;

[0064] After the OpenStack cloud computing management platform creates the virtual machine to be applied, the SDN controller master node executes the node creation program for the virtual machine to be applied to obtain the newly added SDN controller slave node, and synchronizes the data of the newly added SDN controller slave node to enable the newly added SDN controller slave node to join the SDN controller cluster.

[0065] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for escaping an Openstack-based SDN cluster stores computer executable instructions, wherein the computer executable instructions are set to:

[0066] Deploy an SDN controller cluster in the cloud platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and several SDN controller slave nodes; the node connection network is used to connect several SDN controller slave nodes with the SDN controller master node, including: a heartbeat detection network and a cluster management network;

[0067] When the SDN controller cluster is running, the SDN controller master node detects the connection status of several SDN controller slave nodes through the node connection network to determine whether there is a faulty node among the several SDN controller slave nodes;

[0068] When it is determined that a faulty node occurs in several slave nodes of the SDN controller, the master node of the SDN controller constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction;

[0069] After the OpenStack cloud computing management platform creates the virtual machine to be applied, the SDN controller master node executes the node creation program for the virtual machine to be applied to obtain the newly added SDN controller slave node, and synchronizes the data of the newly added SDN controller slave node to enable the newly added SDN controller slave node to join the SDN controller cluster.

[0070] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0071] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

[0072] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0073] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0077] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0078] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0079] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0080] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An Openstack-based SDN cluster escape method, characterized in that: The method comprises: Deploy an SDN controller cluster in an OpenStack cloud computing management platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and a plurality of SDN controller slave nodes; the node connection network is used to connect the plurality of SDN controller slave nodes with the SDN controller master node, and includes: a heartbeat detection network and a cluster management network; When the SDN controller cluster is in operation, the SDN controller master node connects to the network through the node and performs connection status detection on the plurality of SDN controller slave nodes to determine whether a faulty node appears in the plurality of SDN controller slave nodes; When it is determined that a faulty node appears in the plurality of SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; After the OpenStack cloud computing management platform creates a virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data on the newly added SDN controller slave node to enable the newly added SDN controller slave node to join the SDN controller cluster; After marking the to-be-applied virtual machine as being in a deployment state, the method further includes: The SDN controller master node disables the access rights of the faulty node based on a preset escape rule; and Sending an instruction to delete the relevant information of the faulty node to other SDN controller slave nodes through the cluster management network; The SDN controller master node executes a node creation program on the virtual machine to be applied, specifically including: Based on a preset first data transmission mode, the SDN controller master node sends the SDN application to the virtual machine to be applied through the cluster management network; After the SDN application is transmitted, based on a preset second data transmission mode, the SDN controller master node sends a deployment instruction to the virtual machine to be applied through the cluster management network; The to-be-applied virtual machine installs the SDN application based on the deployment instruction to obtain a newly added SDN controller slave node, and sends deployment completion confirmation information to the SDN controller master node.

2. According to the Openstack-based SDN cluster escape method of claim 1, it is characterized in that: Deploy an SDN controller cluster in the OpenStack cloud computing management platform, and configure a node connection network for the SDN controller cluster, specifically including: Based on a preset virtual machine creation rule, a master virtual machine and several slave virtual machines are created, and an SDN application is installed in the master virtual machine and the several slave virtual machines to obtain an SDN controller cluster; Configuring a cluster management network of the SDN controller cluster so that the SDN controller cluster is connected to the management network of the OpenStack cloud computing management platform, and connecting the plurality of SDN controller slave nodes to the SDN controller master node through the cluster management network; A heartbeat detection network is configured, and the plurality of SDN controller slave nodes are connected to the SDN controller master node through the heartbeat detection network.

3. According to the Openstack-based SDN cluster escape method of claim 1, it is characterized in that: The SDN controller master node connects to the network through the node and performs connection status detection on the plurality of SDN controller slave nodes, specifically including: The SDN controller master node sends periodic icmp messages to each SDN controller slave node in the SDN controller cluster through the heartbeat detection network, and confirms the connection status of the target SDN controller slave node according to whether a reply message returned by the corresponding target SDN controller slave node is received; When the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the first preset time interval, the SDN controller master node marks the target SDN controller slave node as disconnected, and continues to send periodic icmp messages to the target SDN controller slave node; If the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after the second preset time interval, the SDN controller master node marks the target SDN controller slave node as a check state, and sends a periodic icmp message to the target SDN controller slave node through the cluster management network; When the SDN controller master node still does not receive a reply message returned by the target SDN controller slave node after a third preset time interval, the SDN controller master node marks the target SDN controller slave node as offline and determines that the target SDN controller slave node is a faulty node.

4. According to the Openstack-based SDN cluster escape method of claim 1, it is characterized in that: The SDN controller master node constructs a virtual machine creation instruction, specifically including: Reading the upper limit of the number of escape virtual machines that can be constructed and the number of escape virtual machines that have been constructed in a preset fault escape resource pool; wherein the fault escape resource pool is used to provide configuration information for constructing virtual machines; In the case where it is determined that the upper limit number of escape virtual machines that can be constructed is greater than the number of escape virtual machines that have been constructed, generating the to-be-configured information of the to-be-applied virtual machine based on a preset configuration information generation rule; wherein the to-be-configured information at least includes: a management network address and a heartbeat detection network address; The virtual machine creation instruction is constructed based on the to-be-configured information of the to-be-applied virtual machine.

5. According to the Openstack-based SDN cluster escape method of claim 4, it is characterized in that: After the OpenStack cloud computing management platform creates the virtual machine to be applied based on the virtual machine creation instruction, the method further includes: The SDN controller master node adds the virtual machine to be applied to the cluster management network based on the management network address, and adds the virtual machine to be applied to the heartbeat detection network based on the heartbeat detection network address; The SDN controller master node sends a periodic icmp message to the virtual machine to be applied through the cluster management network, and when receiving a reply message returned by the virtual machine to be applied within a fourth preset time interval, marks the virtual machine to be applied as available, and sends a periodic icmp message to the virtual machine to be applied through the heartbeat detection network; When a reply message returned by the to-be-applied virtual machine is received within a fifth preset time interval, the to-be-applied virtual machine is marked as being in a deployed state.

6. The Openstack-based SDN cluster escape method according to claim 5, characterized in that: The method further comprises: If no reply message returned by the to-be-applied virtual machine is received within the fourth preset time interval or the fifth time interval, the SDN controller master node marks the to-be-applied virtual machine as a node application failure, and re-enables the OpenStack cloud computing management platform to create the to-be-applied virtual machine; If the re-creation fails, continue to retry the creation until the number of built escape VMs reaches the upper limit of the number of escape VMs that can be built.

7. An Openstack-based SDN cluster escape device, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Deploy an SDN controller cluster in an OpenStack cloud computing management platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and a plurality of SDN controller slave nodes; the node connection network is used to connect the plurality of SDN controller slave nodes with the SDN controller master node, and includes: a heartbeat detection network and a cluster management network; When the SDN controller cluster is in operation, the SDN controller master node connects to the network through the node and performs connection status detection on the plurality of SDN controller slave nodes to determine whether a faulty node appears in the plurality of SDN controller slave nodes; When it is determined that a faulty node appears in the plurality of SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; After the OpenStack cloud computing management platform creates a virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data on the newly added SDN controller slave node to enable the newly added SDN controller slave node to join the SDN controller cluster; After marking the virtual machine to be applied as being in a deployment state, the method further includes: The SDN controller master node disables the access rights of the faulty node based on a preset escape rule; and Sending an instruction to delete the relevant information of the faulty node to other SDN controller slave nodes through the cluster management network; The SDN controller master node executes a node creation program on the virtual machine to be applied, specifically including: Based on a preset first data transmission mode, the SDN controller master node sends the SDN application to the virtual machine to be applied through the cluster management network; After the SDN application is transmitted, based on a preset second data transmission mode, the SDN controller master node sends a deployment instruction to the virtual machine to be applied through the cluster management network; The to-be-applied virtual machine installs the SDN application based on the deployment instruction to obtain a newly added SDN controller slave node, and sends deployment completion confirmation information to the SDN controller master node.

8. A non-volatile computer storage medium for SDN cluster escape based on Openstack, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Deploy an SDN controller cluster in an OpenStack cloud computing management platform, and configure a node connection network for the SDN controller cluster; wherein the SDN controller cluster includes an SDN controller master node and a plurality of SDN controller slave nodes; the node connection network is used to connect the plurality of SDN controller slave nodes with the SDN controller master node, and includes: a heartbeat detection network and a cluster management network; When the SDN controller cluster is in operation, the SDN controller master node connects to the network through the node and performs connection status detection on the plurality of SDN controller slave nodes to determine whether a faulty node appears in the plurality of SDN controller slave nodes; When it is determined that a faulty node appears in the plurality of SDN controller slave nodes, the SDN controller master node constructs a virtual machine creation instruction, and sends the virtual machine creation instruction to the OpenStack cloud computing management platform, so that the OpenStack cloud computing management platform creates a virtual machine to be applied based on the virtual machine creation instruction; After the OpenStack cloud computing management platform creates a virtual machine to be applied, the SDN controller master node executes a node creation program on the virtual machine to be applied to obtain a newly added SDN controller slave node, and synchronizes data on the newly added SDN controller slave node to enable the newly added SDN controller slave node to join the SDN controller cluster; After marking the virtual machine to be applied as being in a deployment state, the method further includes: The SDN controller master node disables the access rights of the faulty node based on a preset escape rule; and Sending an instruction to delete the relevant information of the faulty node to other SDN controller slave nodes through the cluster management network; The SDN controller master node executes a node creation program on the virtual machine to be applied, specifically including: Based on a preset first data transmission mode, the SDN controller master node sends the SDN application to the virtual machine to be applied through the cluster management network; After the SDN application is transmitted, based on a preset second data transmission mode, the SDN controller master node sends a deployment instruction to the virtual machine to be applied through the cluster management network; The to-be-applied virtual machine installs the SDN application based on the deployment instruction to obtain a newly added SDN controller slave node, and sends deployment completion confirmation information to the SDN controller master node.

Citation Information

Patent Citations

  • High availability access system and high availability fault switching method

    CN105610614A

  • SDN-based Kubernetes network management system and method

    CN107947961A

  • High availability realization method and system of virtual load balancer and electronic equipment

    CN113709220A

  • Container group POD reconstruction method based on container cluster service and related equipment

    CN113872997A

  • Capacity-Aware Heuristic Approach for Placing Software-Defined Networking (SDN) Switches in Hybrid SDN Networks for Single Link / Node Failure

    US20160226701A1