OVN-based cross-region distributed SDN control device and method
Technical Field
The invention belongs to the technical field of open source software defined network control, and particularly relates to a cross-regional distributed SDN control device and method based on y.
Background
OVN (Open Virtual Network) is an Open source Software Defined Network (SDN) controller solution based on Virtual switch OVS (Open vSwitch). In practical application, a single OVN can still cope with medium and small scale private clouds at present, but is full of challenges when facing public cloud applications. The reason is that the current single OVN can only support less than 1000 server nodes, one region data center server of a public cloud can reach tens of thousands, one public cloud comprises dozens of hundreds of regions, and a multi-region (region) server can reach hundreds of thousands. Meanwhile, in the existing OVN scheme, a central control node is needed to send control information to each computing node, and the scheme is also unacceptable for a multi-region decentralized distributed scene, and a new method is needed to meet the requirements.
Therefore, how to provide a control method suitable for a large-scale data center scenario and a distributed scenario becomes a technical problem to be solved urgently.
Disclosure of Invention
In view of this, in order to solve the problem of communication tunnel ID assignment in the OVN original technology in the multi-region scenario and the problem of application in the large-scale data center scenario, the present invention provides an optimized OVN architecture, and provides an OVN-based cross-region distributed SDN control apparatus and method.
In one aspect, the present invention provides an OVN-based cross-domain distributed SDN control apparatus, including:
the OVN cross-region controller is used for connecting the interconnection controllers of different regions, pulling data from a remote region and writing the data into the OVN same-region interconnection controller of the local region, and synchronizing data table items in a cross-region manner;
and the OVN same-region in-connection controllers are used for synchronizing the data tables associated with all OVN controllers to all OVN central controllers and distributing the ID of the whole local tunnel in a cross-region scene.
The OVN central controller is used for transmitting the control information to the calculation server and the gateway server;
the system comprises a plurality of computing servers and a plurality of gateway servers, wherein the computing servers and the gateway servers are respectively internally provided with an OVN host controller, and the OVN servers are used for converting OVN data table items into openflow flow tables and issuing the openflow tables to a virtual switch;
in a cross-region multi-available-area scene, a plurality of cross-region distributed SDN control devices based on OVN are applied in a combined mode, and communication among cross-region virtual private networks is achieved.
Furthermore, in a cross-region and multi-availability-region scene, the remote OVN cross-region controller is used for synchronizing the data table items needing to be synchronized to the remote OVN in-region and in-region controller by detecting the change of the forwarding logic switch in the local OVN in-region and in-region controller.
Further, the data table items in the cross-region distributed SDN control device based on the OVN comprise available area information, gateway information and port binding information.
Furthermore, in the cross-region distributed SDN control device based on the OVN, in a cross-region multi-availability-region scene, the home-end OVN same-region in-connection controller is used for receiving a creation request sent by a cloud management platform calling interface, creating a forwarding logic switching machine, and distributing a globally unique tunnel ID as the tunnel ID of the forwarding logic switching machine in a region slicing mode.
Furthermore, the OVN same-region in-line controller of the cross-region distributed SDN control device based on the OVN is used for issuing the data table items to the respective OVN central controllers.
Furthermore, the OVN cross-region controller of the cross-region distributed SDN control device based on the OVN can be directly connected with the same region in-region controller of the OVN through the route to achieve synchronization of the data table among the OVN control devices of each region.
Furthermore, in the cross-region distributed SDN control device based on the OVN, the service data is encapsulated by using a tunnel protocol and cross-region communication is realized through an internal connection gateway.
On the other hand, the invention also provides a cross-region distributed SDN control method based on the OVN, which comprises the following steps:
s1: the cloud management platform calls an interface to send a request for creating a forwarding logic switch to the home-end OVN cross-regional controller and the home-end OVN same-regional in-controller;
s2: after receiving the creation request of the step S1, the database of the controller in the same region of the home terminal OVN creates a forwarding logic switching machine;
s3: the remote OVN cross-regional controller synchronizes the data table items to be synchronized to the remote OVN in-region controller by detecting the change of the forwarding logic switch in the local OVN in-region controller;
s4: the local-end OVN same-region internal-connection controller and the remote-end OVN same-region internal-connection controller respectively issue the data table items to respective OVN central controllers;
s5: and the home-end OVN central controller and the remote-end OVN central controller respectively issue the data table items to the calculation server and the gateway server, and the OVN host controller converts the data table items into openflow flow tables and issues the openflow tables to the virtual switch.
Further, step S2 of the OVN-based cross-region distributed SDN control method of the present invention includes: and after the local-end OVN same-region in-connection controller receives the creation request of the step S1, distributing a globally unique tunnel ID as the tunnel ID of the forwarding logic switch in a region slicing mode.
The cross-region distributed SDN control device and method based on the OVN have the following beneficial effects:
1. by means of the multi-layer architecture design, the cluster scale of tens of thousands of devices can be supported, the problem of capacity expansion of the OVN in a large-scale scene is solved, and the requirement of the large-scale application scene is met.
2. Control information is not required to be issued by a central node among multiple regions, and automatic synchronization is performed by OVNs of each region across region controllers, so that high availability of a certain region is not depended, ultrahigh availability of a distributed cross-region SDN is achieved, and application to a multi-region non-central scene is supported.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an architecture diagram of an OVN-based cross-regional distributed SDN control device according to an exemplary first embodiment of the present invention.
Fig. 2 is an architecture diagram of an OVN-based cross-regional distributed SDN control device applied to a cross-regional multi-available-zone scene according to an exemplary first embodiment of the present invention.
Fig. 3 is a flowchart of an OVN-based cross-regional distributed SDN control method according to a second embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be noted that, in the case of no conflict, the features in the following embodiments and examples may be combined with each other; moreover, all other embodiments that can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort fall within the scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
Fig. 1 is an architecture diagram of an OVN-based cross-regional distributed SDN control device according to an exemplary first embodiment of the present invention, as shown in fig. 1, the device of this embodiment includes:
the OVN cross-region controller is used for connecting the interconnection controllers of different regions, pulling data from a remote region and writing the data into the OVN same-region interconnection controller of the local region, and synchronizing data table items in a cross-region manner;
and the OVN same-region in-connection controllers are used for synchronizing the data tables associated with all OVN controllers to all OVN central controllers and distributing the ID of the whole local tunnel in a cross-region scene.
The OVN central controller is used for transmitting the control information to the calculation server and the gateway server;
the system comprises a plurality of computing servers and a plurality of gateway servers, wherein the computing servers and the gateway servers are respectively internally provided with an OVN host controller, and the OVN servers are used for converting OVN data table items into openflow flow tables and issuing the openflow tables to a virtual switch;
as shown in fig. 2, in a cross-region (a region and B region) multi-available-region scenario, the cross-region distributed SDN control device based on the OVN according to this embodiment may be applied in a combined manner, so as to implement communication between cross-region virtual private networks.
In a cross-region and multi-available-region scenario, the remote OVN cross-region controller of the cross-region distributed SDN control device based on the OVN of this embodiment is configured to synchronize a data entry to be synchronized to the remote OVN intra-region and intra-region controller by detecting a change of an internal forwarding logic switch of the local OVN intra-region and intra-region controller, where the data entry includes available-region information, gateway information, and port binding information.
In a cross-region multi-available-area scene, the home-end OVN in-region in-zone controller of the cross-region distributed SDN control device based on the OVN in this embodiment is configured to receive a creation request sent by a cloud management platform calling interface, create a forwarding logic switch machine, and allocate a globally unique tunnel ID as a tunnel ID of the forwarding logic switch in a region slicing manner.
In this embodiment, the OVN same-region in-connection controller of the cross-region distributed SDN control device based on the OVN is configured to issue the data table entry to the respective OVN central controller.
In this embodiment, an OVN cross-region controller of an OVN-based cross-region distributed SDN control device and an OVN in-region in-connection controller can directly connect to achieve synchronization of a data table between all-region OVN control devices through a route.
In the cross-region distributed SDN control device based on the OVN, service data is encapsulated by using a tunneling protocol and cross-region communication is realized through an inter-connected gateway in the embodiment.
In this embodiment, the OVN central controller of the cross-region distributed SDN control device based on the OVN encapsulates functions such as a logic switch and a logic router.
In practical application, the across-region distributed SDN control device based on the OVN of this embodiment may be applied to a single-available-area scenario, and at this time, only the OVN central controller, a plurality of computing services respectively embedded with the OVN host controller, and the gateway server need to be applied. The cross-region distributed SDN control device based on the OVN of this embodiment may be applied to communication between cross-available-region subnets, and at this time, only the OVN central controller, the OVN in-region controller, and a plurality of computing services and gateway servers respectively incorporating the OVN host controller need to be applied.
Fig. 3 is a flowchart of an OVN-based cross-regional distributed SDN control method according to an exemplary third embodiment of the present invention, and as shown in fig. 3, the method of the embodiment includes:
s1: the cloud management platform calls an interface to send a request for creating a forwarding logic switch to a local-end OVN same-region in-connection controller;
s2: after receiving the creation request of the step S1, the database of the controller in the same region of the home terminal OVN creates a forwarding logic switching machine;
s3: the remote OVN cross-region controller synchronizes the data table items to be synchronized to the remote OVN in-region controller by detecting the change of the internal forwarding logic switch of the local OVN in-region controller;
s4: the local-end OVN same-region in-line controller and the remote-end OVN same-region in-line controller respectively issue the data table items to respective OVN central controllers;
s5: and the home-end OVN central controller and the remote-end OVN central controller respectively issue the data table items to the calculation server and the gateway server, and the OVN host controller converts the data table items into openflow flow tables and issues the openflow tables to the virtual switch.
Step S2 of the method of this embodiment includes: and after the local-end OVN same-region in-connection controller receives the creation request of the step S1, distributing a globally unique tunnel ID as the tunnel ID of the forwarding logic switch in a region slicing mode.
In the practical application of the method, the air conditioner,
the above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.