Disclosure of Invention
The embodiment of the invention provides a two-layer intercommunication method and device for an SDN data center, which are used for at least solving the problem of high difficulty in realizing two-layer interconnection between SDN centers in related technologies.
According to an embodiment of the present invention, a two-layer interworking method for an SDN data center is provided, including: an SDN controller of the SDN data center receives DCI configuration information; the SDN controller creates a DCI network among a plurality of SDN data centers according to the DCI configuration information, wherein each SDN data center is connected with other SDN data centers through traditional equipment, and an Ethernet virtual private network BGP EVPN and/or a virtual private local area network service VPLS with a border gateway protocol run among the traditional equipment.
Optionally, the DCI configuration information includes at least one of: VPLS configuration information, L2 interface setup information, BGP EVPN configuration information.
Optionally, the SDN controller creates a DCI network between a plurality of SDN data centers according to the DCI configuration information, where the DCI network includes at least one of: the SDN controller sends VPLS configuration information to legacy equipment, wherein the VPLS configuration information is used for indicating the legacy equipment to establish a VPLS instance; the SDN controller respectively establishes an L2 interface on SDN data center gateway equipment GW and traditional equipment according to the L2 interface establishment information; and the SDN controller issues BGP EVPN configuration information to the traditional equipment, wherein the BGP EVPN configuration information is used for indicating the traditional equipment to establish BGP EVPN.
Optionally, after the SDN controller establishes an L2 interface on an SDN data center gateway device GW and a legacy device, respectively, the method includes: the SDN controller binds an L2 interface of the GW to a subnet connected with the GW and in the same SDN data center, and uses an L2 interface of the legacy device as an AC access of the VPLS instance.
Optionally, the L2 interface of the GW and the L2 interface of the legacy device have the same Vlan ID.
According to another embodiment of the present invention, a two-layer interworking apparatus of an SDN data center is provided, including: a receiving module, configured to receive DCI configuration information; and the creating module is used for creating the DCI network among the SDN data centers according to the DCI configuration information, wherein each SDN data center is connected with other SDN data centers through traditional equipment, and an Ethernet virtual private network BGP EVPN and/or a virtual private local area network service VPLS with a border gateway protocol run among the traditional equipment.
Optionally, the DCI configuration information includes at least one of: VPLS configuration information, L2 interface setup information, BGP EVPN configuration information.
Optionally, the creating module is further configured to perform at least one of the following functions: the creation module is further configured to send VPLS configuration information to legacy equipment, where the VPLS configuration information is used to instruct the legacy equipment to establish a VPLS instance; the creating module is further configured to respectively create an L2 interface on an SDN data center gateway device GW and a legacy device according to the L2 interface creation information; the creating module is further configured to send BGP EVPN configuration information to the legacy device, where the BGP EVPN configuration information is used to instruct the legacy device to establish a BGP EVPN.
Optionally, after establishing an L2 interface on an SDN data center gateway device GW and a legacy device, respectively, the creating module is further configured to bind an L2 interface of the GW to a subnet connected to the GW and located in the same SDN data center, and use an L2 interface of the legacy device as an AC access of the VPLS instance.
Optionally, the L2 interface of the GW and the L2 interface of the legacy device have the same Vlan ID.
According to still another embodiment of the present invention, there is also provided a storage medium configured to store program code for performing the steps of: an SDN controller of the SDN data center receives DCI configuration information; the SDN controller creates a DCI network among a plurality of SDN data centers according to the DCI configuration information, wherein each SDN data center is connected with other SDN data centers through traditional equipment, and an Ethernet virtual private network BGP EVPN and/or a virtual private local area network service VPLS with a border gateway protocol run among the traditional equipment.
According to yet another embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program, when executed, controls an apparatus on which the storage medium is located to perform the method recited in any one of claims 1 to 5.
According to yet another embodiment of the present invention, there is also provided a processor for executing a program, wherein the program executes to perform the method of any of the above claims 1 to 5.
According to the invention, a DCI network is established among a plurality of SDN data centers by an SDN controller of the SDN data center according to the received DCI configuration information, in the network, the SDN data centers are connected through traditional equipment, the traditional equipment is relative to the SDN equipment, BGP EVPN and/or VPLS can be operated on the traditional equipment, and by adopting the technical scheme, the problem of high difficulty in realizing two-layer interconnection among the SDN data centers in the related technology is solved, and the two-layer interconnection among the SDN data centers is convenient to realize.
Detailed Description
Example one
The technical solution in this embodiment of the present application may be implemented in an SDN network, where the network architecture may include a plurality of SDN data centers, and each data center includes an SDN device, an SDN switch, a network manager of the data center, and a legacy device connected to the plurality of SDN data centers.
In this embodiment, a two-layer interworking method of an SDN data center operating in the above network architecture is provided, and fig. 1 is a flowchart of the two-layer interworking method of the SDN data center according to the embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, an SDN controller of a Software Defined Network (SDN) data center receives DCI configuration information;
step S104, the SDN controller creates a DCI network among multiple SDN data centers according to the DCI configuration information, where each SDN data center is connected to other SDN data centers through legacy devices, and an ethernet virtual private network BGP EVPN and/or a virtual private local area network service VPLS of a border gateway protocol run between the legacy devices.
Through the steps, the SDN controller of the SDN data center establishes the DCI network among the SDN data centers according to the received DCI configuration information, in the network, the SDN data centers are connected through the traditional equipment, the traditional equipment is relative to the SDN equipment, BGP EVPN and/or VPLS can be operated on the traditional equipment, by adopting the technical scheme, the problem that two-layer interconnection difficulty among the SDN data centers in the related technology is high is solved, and the two-layer interconnection among the SDN data centers is convenient to realize.
Optionally, the DCI configuration information includes at least one of: VPLS configuration information, L2 interface setup information, BGP EVPN configuration information.
Optionally, the SDN controller sends VPLS configuration information to the legacy device, where the VPLS configuration information is used to instruct the legacy device to establish a VPLS instance; the SDN controller respectively establishes an L2 interface on SDN data center gateway equipment GW and traditional equipment according to the L2 interface establishment information; and the SDN controller issues BGP EVPN configuration information to the traditional equipment, wherein the BGP EVPN configuration information is used for indicating the traditional equipment to establish BGP EVPN.
Optionally, after the SDN controller establishes L2 interfaces on an SDN data center gateway device GW and a legacy device, respectively, the SDN controller binds an L2 interface of the GW to a subnet connected to the GW and in the same SDN data center, and uses an L2 interface of the legacy device as an AC access of the VPLS instance.
Optionally, the L2 interface of the GW and the L2 interface of the legacy device have the same Vlan ID.
The following detailed description is given with reference to the preferred embodiments of the present preferred embodiment.
The preferred embodiment provides a solution for two-layer interworking of a data center, and a VXLAN encapsulation technology of MAC In UDP is adopted. The SDN controller realizes the unified arrangement of the gateway equipment and the traditional equipment, and the spread of the host information in different data centers is completed by utilizing the BGP EVPN capability and the VPLS capability which are already possessed by the traditional equipment. The preferred embodiment does not require an SDN controller to support BGP EVPN capability, and makes the large two-layer interworking deployment of the data center more flexible.
The preferred embodiment provides a device and a system for two-layer interconnection of an SDN data center. By introducing the traditional equipment at the data center GW side, and utilizing the Border Gateway Protocol Ethernet Virtual Private network bgvpn (where Border Gateway Protocol is abbreviated as BGP and Ethernet Virtual Private Netwok is abbreviated as VPLS) capability and Virtual Private Lan Service (VPLS) capability of the traditional equipment, two-layer interconnection and interworking of the SDN data center are achieved.
The preferred embodiment mainly includes a Data Center Interconnection (DCI) network management module, a VPLS management module, an L2 interface management module, and a BGP configuration management module (such as the modules described in fig. 3, fig. 4, and fig. 5 in the subsequent description).
The DCI network management module is responsible for receiving and processing DCI network creation and deletion requests of users. Informing a VPLS management module to generate VPLS configuration on the traditional equipment; the L2 interface management module is notified to create a bridging interface between the data center gateway device GW and the legacy device.
The BGP configuration management module receives and processes the configuration information related to the BGP EVPN, the BGP management module issues the BGP EVPN configuration information to the traditional equipment, and the traditional equipment completes the establishment of the BGP EVPN.
When receiving DCI network creation, the L2 interface management module creates L2 interfaces on a data center gateway device GW and a legacy device, respectively, and binds an L2 interface on the GW to a network where a subnet1 is located, where an L2 interface on the legacy device is used as an AC access of a VPLS instance (as shown in subsequent steps in fig. 3).
According to the scheme of the preferred embodiment, the traditional equipment is introduced to the data center gateway equipment side, the SDN controller is responsible for unified arrangement of the data center gateway equipment and the traditional equipment, BGP EVPN capability and VPLS capability of the traditional equipment are fully utilized, and two-layer intercommunication of the data center is achieved. The method and the device solve the problem that the capacity of the SDN data center two-layer intercommunication SDN controller is limited, and provide a scheme easy to deploy for migration of the virtual host across the SDN data center.
The following are specific embodiments of the preferred embodiment
Fig. 2 is a diagram of a basic two-layer interworking data center networking according to a preferred embodiment of the present invention, and as shown in fig. 2, an SDN controller is responsible for arranging switch switches, data center gateways gw (gateway) and legacy devices. BGP EVPN and VPLS run between legacy device 1 and legacy device 2, and subnet1 and subnet2 belong to the same tenant. Within subnet1, virtual machines VM1, VM2 are in data center 1, and virtual machines VM3, VM4 are in data center 2. Virtual machine VM5 within subnet2 is at data center 2. Virtual machine VM1 and VM3 in subnet1 are capable of interworking.
Detailed description of the preferred embodiment 1
The embodiment provides a method for interworking an SDN data center, which is applied to a networking diagram shown in fig. 2, and the method includes the following steps:
step 101, in the networking shown in fig. 2, a VXLAN tunnel is established in advance between the switch1 of the data center 1 and the gateway device GW 1. VXLAN tunnels are pre-established between switches switch2 and GW2, switch3 and GW2 of data center 2.
Step 102, in the networking shown in fig. 2, a DCI network is created on the controller of data center 1 and the controller of data center 2.
Step 103, fig. 3 is a connection diagram of a gateway GW and a legacy device in a data center according to the preferred embodiment, and as shown in fig. 3, the gateway device and the legacy device are bridged by an L2 interface uniformly programmed by an SDN controller. In step three, the controller generates VPLS configuration information and issues the configuration information to the legacy device.
Step 104, as shown in fig. 3, the controller creates an L2 interface (svi1) on gateway device GW1, and creates an L2 interface (svi2) on legacy device 1. The svi1 interface and the svi2 interface have the same vlan id, and the controller is responsible for the unified management of the vlan id.
Step 105, as shown in fig. 4, when a user deploys a DCI network, the controller needs to issue a relevant Openflow flow table to a data center gateway GW, that is, the DCI network management module issues the relevant Openflow flow table to the GW through the L2 interface management module. In step 105, the svi1 interface on gateway device GW1 is bound into the same network as virtual machine VM 1; the svi2 interface on the legacy device is used as the AC access interface of the VPLS instance.
Step 106, fig. 5 is an interaction flowchart of the SDN controller and the legacy device according to the preferred embodiment, and as shown in fig. 5, when the user deploys the DCI network, the controller issues the relevant configuration to the legacy device through Netconf. In step six, the controller completes configuration related to the BGP EVPN and issues the configuration to the legacy device through Netconf.
Step 107, as shown in fig. 3, the data center 2 is configured in the same manner as steps 101 to 106.
Step 108, as shown in fig. 2, BGP EVPN neighbors are established between the traditional devices of the data center, and a Virtual Extensible local area network (VXLAN) tunnel is automatically established.
Step 109, as shown in fig. 2, when the virtual machine VM1 goes online, the SDN controller learns the information MAC1 of the virtual machine, and issues the information of the VM1 to the gateway device GW1 in an Openflow flow table manner.
Step 110, as shown in fig. 2, when the VM3 goes online, the SDN controller learns the information MAC2 of the virtual machine, and issues the location information of the VM1 to the gateway device GW2 in an Openflow flow table manner.
Therefore, the SDN controller completes the processes of on-line of the host and sending GW to the host flow table.
Detailed description of the preferred embodiment 2
The embodiment provides a data forwarding method for two-layer interconnection of an SDN data center, which is applied to a networking diagram shown in fig. 2 and includes the following steps:
step 201, in the networking shown in fig. 2, a processing flow of an Address Resolution Protocol (ARP) request message on the switch1 is as follows: since the VM1 and the VM2 belong to the same network segment, the VM1 directly requests the ARP of the VM2, the switch1 sends the ARP request message to the controller after receiving the ARP request message, and the SDN controller does not have the ARP corresponding to the VM2, and broadcasts the ARP request in the network where the VM1 is located.
Step 202, as shown in fig. 3, the processing flow of the ARP request message on GW1 is as follows: after receiving the ARP request message, the gateway device GW1 broadcasts the ARP request message on the network in which the host VM2 is located, and the broadcast message is sent from the L2 interface svi 2.
Step 203, as shown in fig. 3, the processing flow of the ARP request message on the legacy device 1 is as follows: the legacy device 1 receives the ARP request message from the svi2 interface, learns the source MAC (MAC1) in the message, and then sends a broadcast message to the legacy device 2. After legacy device 1 completes MAC1 learning of VM1, MAC1 is advertised to legacy device 2 through BGP EVPN.
Step 204, in the networking shown in fig. 2, the processing flow of the ARP request message on the conventional device 2 is as follows: after receiving the MAC1 forwarding table, the BGP EVPN stores the MAC1 forwarding table to the local. The legacy device 2 receives the ARP request message, and sends the ARP request message to the GW2 from the L2 interface.
Step 205, in the networking shown in fig. 2, the processing flow of the ARP request message on the GW2 is as follows: GW2 receives the ARP request message, and sends the message to the controller, and the SDN controller completes the source MAC (MAC1) learning and ARP response in the message.
Step 206, in the networking shown in fig. 2, the processing flow of the ARP reply message on the conventional device 2 is as follows: the legacy device 2 receives the ARP reply message, learns the source MAC address (MAC2), and notifies the MAC2 to the legacy device 1 through the BGP EVPN. And searching a MAC1 forwarding table, and sending an ARP response message to the traditional equipment 1.
Step 207, in the networking shown in fig. 2, the processing flow of the ARP reply message on the conventional device 1 is as follows: the legacy device 1 receives the ARP reply message, looks up the MAC table, and sends the message from the svi2 interface to the gateway device GW 1.
Step 208, in the networking shown in fig. 2, the processing flow of the ARP reply message in the gateway device GW 1: GW1 receives the ARP reply message, and sends the message to the controller, and the controller learns the source MAC (MAC 2). The controller sends the flow table of the MAC2 and the ARP reply message to the switch1 and sends the message to the switch 1.
Step 209, in the networking shown in fig. 2, the processing flow of the ARP reply message in the gateway device switch1 is as follows: the ARP reply message received by the switch1 is sent to the VM 1.
In step 210, in the networking shown in fig. 2, VM1 learns the MAC address (MAC2) of VM 2.
To this end, the two-tier forwarding path from VM1 to VM2 was successfully established, VM1 and VM2 were able to access each other, and VM1 and VM2 were also able to migrate in data center 1 and data center 2.
To sum up, the SDN data center two-tier interconnection apparatus and system according to the preferred embodiment. Traditional equipment is introduced to a data center gateway equipment side, an SDN controller is responsible for unified arrangement of the data center gateway equipment and the traditional equipment, BGP EVPN capability and VPLS capability of the traditional equipment are fully utilized, and two-layer interconnection and intercommunication of a data center are achieved. The method and the device solve the problem that the capacity of the SDN data center two-layer intercommunication SDN controller is limited, and provide a scheme easy to deploy for migration of the virtual host across the SDN data center.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example two
In this embodiment, a two-layer interworking device of an SDN data center is further provided, and the device is used for implementing the above embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a structural diagram of a two-layer interworking apparatus of an SDN data center according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
a receiving module 62, configured to receive DCI configuration information;
a creating module 64, connected to the receiving module 62, for creating a DCI network among a plurality of SDN data centers according to the DCI configuration information, wherein each SDN data center is connected with other SDN data centers through legacy devices, and an ethernet virtual private network BGP EVPN and/or a virtual private local area network service VPLS of a border gateway protocol run between the legacy devices.
Optionally, the DCI configuration information includes at least one of: VPLS configuration information, L2 interface setup information, BGP EVPN configuration information.
Optionally, the creating module 64 is further configured to perform at least one of the following functions: the creating module 64 is further configured to send VPLS configuration information to the legacy device, where the VPLS configuration information is used to instruct the legacy device to establish a VPLS instance; the creating module 64 is further configured to respectively create an L2 interface on the SDN data center gateway device GW and the legacy device according to the L2 interface creation information; the creating module 64 is further configured to send BGP EVPN configuration information to the legacy device, where the BGP EVPN configuration information is used to instruct the legacy device to establish a BGP EVPN.
Optionally, after the L2 interfaces are respectively established on the SDN data center gateway device GW and the legacy device, the creating module 64 is further configured to bind the L2 interface of the GW to a subnet connected to the GW and located in the same SDN data center, and use the L2 interface of the legacy device as the AC access of the VPLS instance.
Optionally, the L2 interface of the GW and the L2 interface of the legacy device have the same Vlan ID.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
EXAMPLE III
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, an SDN controller of the SDN data center receives DCI configuration information of data center interconnection;
and S2, the SDN controller creates a DCI network among a plurality of SDN data centers according to the DCI configuration information, wherein each SDN data center is connected with other SDN data centers through traditional equipment, and Ethernet virtual private network (BGP) EVPN and/or virtual private local area network (VPLS) services of a border gateway protocol run among the traditional equipment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor executes the method steps in the above embodiments according to program codes stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.