Communication system, method, device and storage medium for heterogeneous virtual network

By encapsulating and decapsulating virtual routers at the overlay network level, traffic is transmitted directly in the overlay network, which solves the problems of low communication efficiency and high CPU resource consumption between heterogeneous virtual networks, and achieves efficient communication and simplified network structure. .

CN116170373BActive Publication Date: 2024-10-18CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310146919.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-10-18
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

In the existing technology, communication between heterogeneous virtual networks requires the use of an underlay network, which results in low efficiency and high CPU resource consumption, and increases the workload complexity of the virtual network.

Method used

By realizing communication between heterogeneous virtual networks at the overlay network level, the virtual router configuration module is used to encapsulate and decapsulate the first virtual router and the second virtual router, and directly transmit traffic in the overlay network to avoid using the underlay network.

Benefits of technology

It improves the communication efficiency between heterogeneous virtual networks, reduces the consumption of CPU resources, simplifies network complexity, and realizes communication between the first device control system and the second device control system on a unified network plane.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170373B_ABST
    Figure CN116170373B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a communication system, method, device and storage medium of a heterogeneous virtual network, and the communication system includes: a control module is used to call a virtual router configuration module to configure a first virtual router according to the communication requirements of a first device control system; the virtual router configuration module is used to configure routing information into a routing table of the first virtual router; the first virtual router is used to send the encapsulated traffic of the first target device to the first host according to the routing table; the first host is used to send the encapsulated traffic of the first target device to the second host; the second host is used to send the encapsulated traffic of the first target device to the second virtual router; the second virtual router is used to send the decapsulated traffic of the first target device to the second target device. According to the communication system of the embodiment of the present application, communication between heterogeneous virtual networks can be achieved without the help of an underlay network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a communication system, method, device and storage medium for a heterogeneous virtual network. Background Art

[0002] As the foundation of cloud computing network, Virtual Private Cloud (VPC) can provide users with user-defined private networks and logically isolate them. With the increasing maturity of data centers and cloud computing, it is becoming more and more common to have both the OpenStack cloud computing management platform for managing virtual machines and the Kubernetes (K8s) application for controlling container loads in a data center, and the demand for communication between heterogeneous VPCs is becoming more and more urgent. As two independent clusters, OpenStack and Kubernetes have their own network planes. In the existing technology, the underlay network is needed to achieve communication between the two clusters, but this communication method is inefficient and consumes a lot of central processing unit (CPU) resources. Summary of the invention

[0003] The embodiments of the present application provide a communication system, method, device and storage medium for a heterogeneous virtual network, which can realize communication between heterogeneous virtual networks without the aid of an underlay network.

[0004] In a first aspect, an embodiment of the present application provides a communication system of a heterogeneous virtual network, the communication system comprising: a control module, configured to call a virtual router configuration module to configure a first virtual router of the first device control system according to a communication requirement of the first device control system; a virtual router configuration module, configured to configure routing information into a routing table of the first virtual router according to a call of the control module; the first device control system, comprising: a first virtual router, configured to encapsulate a tunnel header of an overlay network, encapsulate traffic of a first target device in a tunnel of the overlay network, and send the encapsulated traffic of the first target device to a first host machine according to the routing table; the first host machine, configured to send the encapsulated traffic of the first target device to a second host machine of a second device control system; the second device control system, comprising: a second host machine, configured to receive the encapsulated traffic of the first target device sent by the first host machine, and send the encapsulated traffic of the first target device to the second virtual router; the second virtual router, configured to decapsulate the tunnel header of the overlay network, and send the decapsulated traffic of the first target device to the second target device.

[0005] According to an implementation of the first aspect of the present application, the virtual router configuration module is further used to create a first virtual routing forwarding in the first virtual router and a second virtual routing forwarding in the second virtual router according to the call of the control module.

[0006] According to any of the aforementioned implementations of the first aspect of the present application, the first virtual router is also used to create a first virtual interface on the first virtual routing forwarding according to the call of the first device control system; the second virtual router is also used to create a second virtual interface on the second virtual routing forwarding according to the call of the second device control system, and the first virtual interface and the second virtual interface include the virtual interface of the virtual machine and / or the virtual interface of the minimum execution unit.

[0007] According to any of the aforementioned implementations of the first aspect of the present application, the first virtual interface is used to enable the first virtual router to send the encapsulated traffic of the first target device to the first host machine through the first virtual interface; the second virtual interface is used to enable the second host machine to send the encapsulated traffic of the first target device to the second virtual router through the second virtual interface.

[0008] According to any of the aforementioned embodiments of the first aspect of the present application, the control module is also used to configure the first device control system to create an IP address of a first target device according to the communication requirements of the first device control system, and / or to configure the second device control system to create an IP address of a second target device according to the communication requirements of the second device control system.

[0009] According to any of the aforementioned implementations of the first aspect of the present application, the first device control system is an open source cloud computing management platform, the first target device is a virtual machine, and the first device control system also includes: a network service module for providing network services for the first device control system; and a computing service module for providing computing services for the first device control system.

[0010] According to any of the aforementioned implementations of the first aspect of the present application, the second device control system is a containerized application on multiple hosts in the management cloud platform, the second target device is the minimum execution unit of the second device control system, the minimum execution unit includes multiple containers, and the second device control system also includes: a management service module, which is used to provide management services for the second device control system.

[0011] In a second aspect, an embodiment of the present application provides a communication method for a heterogeneous virtual network, which is applied to the heterogeneous virtual network provided in the first aspect, and the communication method includes: obtaining the communication requirements of the first device control system through a control module, and calling the virtual router configuration module to configure the routing information into the routing table of the first virtual router according to the communication requirements; encapsulating the tunnel header of the overlay network through the first virtual router, encapsulating the traffic of the first target device in the tunnel of the overlay network, and sending the encapsulated traffic of the first target device to the first host machine according to the routing table; sending the encapsulated traffic of the first target device to the second host machine of the second device control system through the first host machine; sending the encapsulated traffic of the first target device to the second virtual router of the second device control system through the second host machine; decapsulating the tunnel header of the overlay network through the second virtual router, and sending the decapsulated traffic of the first target device to the second target device of the second device control system.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the communication method for a heterogeneous virtual network as provided in the second aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the communication method for a heterogeneous virtual network provided in the second aspect are implemented.

[0014] The communication system, method, device and storage medium of the heterogeneous virtual network of the embodiment of the present application, the communication system includes: a control module, which is used to call the virtual router configuration module to configure the first virtual router of the first device control system according to the communication requirements of the first device control system; the virtual router configuration module is used to configure the routing information into the routing table of the first virtual router according to the call of the control module; the first device control system includes: a first virtual router, which is used to encapsulate the tunnel header of the overlay network, encapsulate the traffic of the first target device in the tunnel of the overlay network, and send the encapsulated traffic of the first target device to the first host according to the routing table; the first host is used to send the encapsulated traffic of the first target device to the second host of the second device control system; the second device control system includes: a second host, which is used to receive the encapsulated traffic of the first target device sent by the first host, and send the encapsulated traffic of the first target device to the second virtual router; the second virtual router is used to decapsulate the tunnel header of the overlay network, and send the decapsulated traffic of the first target device to the second target device. The first virtual router of the first device control system encapsulates the traffic of the first target device in the tunnel of the overlay network, and the first host sends the encapsulated traffic of the first target device directly to the second host of the second device control system through the tunnel of the overlay network, and then the second virtual router of the second device control system decapsulates the tunnel header of the overlay network, thereby realizing the communication between the first device control system and the second device control system in a unified network plane. Since both the first device control system and the second device control system work at the overlay network level, and the traffic of the first target device is also hidden in the tunnel of the overlay network and is not visible to the underlay network, the embodiment of the present application can directly realize the communication between heterogeneous virtual networks through the overlay network without the help of the underlay network, thereby improving the communication efficiency between heterogeneous virtual networks and reducing CPU resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0016] Figure 1 It is a structural schematic diagram of a communication system of a heterogeneous virtual network provided in an embodiment of the present application;

[0017] Figure 2 It is a flow chart of a communication method of a heterogeneous virtual network provided in an embodiment of the present application;

[0018] Figure 3 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0020] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0021] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0022] It is obvious to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit or scope of the present application. Therefore, the present application is intended to cover modifications and changes of the present application that fall within the scope of the corresponding claims (technical solutions for protection) and their equivalents. It should be noted that the implementation methods provided in the embodiments of the present application can be combined with each other without contradiction.

[0023] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the prior art:

[0024] As mentioned above, the inventors of the present application have discovered that in the prior art, the communication between heterogeneous virtual networks requires the help of an underlay network. When communicating between virtual networks, the virtual network at one end needs to first strip off the header encapsulation of the virtual network so that it appears in the underlay network. After reaching the other end through the underlay network, it needs to be encapsulated again to reach the virtual network at the other end. This communication method has low forwarding efficiency and consumes a lot of CPU resources. In addition, when stripping off the header encapsulation of the virtual network so that it appears in the underlay network, the workload of the virtual network becomes part of the underlay network, which leads to confusion between the business layer and the network layer, greatly increasing the complexity of the underlay network.

[0025] In order to solve the problems of the prior art, the embodiments of the present application provide a communication system, method, device and storage medium for a heterogeneous virtual network.

[0026] The following first introduces the communication system of the heterogeneous virtual network provided in the embodiment of the present application.

[0027] Figure 1 Schematic diagram of a communication system of a heterogeneous virtual network provided in an embodiment of the present application. Figure 1 As shown, the communication system 10 of the heterogeneous virtual network includes:

[0028] The control module 110 is used to call the virtual router configuration module 130 to configure the first virtual router 121 of the first device control system 120 according to the communication requirements of the first device control system 120; the virtual router configuration module 130 is used to configure the routing information into the routing table of the first virtual router 121 according to the call of the control module 110; the first device control system 120 includes: the first virtual router 121 is used to encapsulate the tunnel header of the overlay network, encapsulate the traffic of the first target device 122 in the tunnel of the overlay network, and encapsulate the encapsulated first target device 122 according to the routing table The traffic is sent to the first host machine 123; the first host machine 123 is used to send the encapsulated traffic of the first target device 122 to the second host machine 141 of the second device control system 140; the second device control system 140 includes: the second host machine 141, which is used to receive the encapsulated traffic of the first target device 122 sent by the first host machine 123, and send the encapsulated traffic of the first target device 122 to the second virtual router 142; the second virtual router 142 is used to decapsulate the tunnel header of the overlay network, and send the decapsulated traffic of the first target device 122 to the second target device 143.

[0029] Exemplarily, when the first device control system 120 has a communication demand, it will send a communication request to the control module 110. The control module 110 will call the virtual router configuration module 130 to configure the routing information into the routing table of the first virtual router 121 according to the communication demand of the first device control system 120; the first virtual router 121 will encapsulate the tunnel header of the overlay network, encapsulate the traffic of the first target device 122 to be transmitted in the tunnel of the overlay network, and send the encapsulated traffic of the first target device 122 to the first host machine 123 according to the configured routing table. ; The first host machine 123 receives the encapsulated traffic of the first target device 122, and forwards it to the second host machine 141 of the second device control system 140 through the tunnel of the overlay network; the second host machine 141 receives the encapsulated traffic of the first target device 122, and sends it to the second virtual router 142; the second virtual router 142 decapsulates the tunnel header of the overlay network, obtains the traffic of the first target device 122 encapsulated in the tunnel of the overlay network, and sends the decapsulated traffic of the first target device 122 to the second target device 143.

[0030] Similarly, when the second device control system 140 has a communication demand, it will send a communication request to the control module 110. The control module 110 will call the virtual router configuration module 130 to configure the routing information into the routing table of the second virtual router 142 according to the communication demand of the second device control system 140; the second virtual router 142 will encapsulate the tunnel header of the overlay network, encapsulate the traffic of the second target device 143 to be transmitted in the tunnel of the overlay network, and send the encapsulated traffic of the second target device 143 to the second host machine 141 according to the configured routing table. ; The second host machine 141 receives the encapsulated traffic of the second target device 143, and forwards it to the first host machine 123 of the first device control system 120 through the tunnel of the overlay network; The first host machine 123 receives the encapsulated traffic of the second target device 143, and sends it to the first virtual router 121; The first virtual router 121 decapsulates the tunnel header of the overlay network, obtains the traffic of the second target device 143 encapsulated in the tunnel of the overlay network, and sends the decapsulated traffic of the second target device 143 to the first target device 122.

[0031] In the heterogeneous virtual network communication system provided by the embodiment of the present application, the first virtual router of the first device control system encapsulates the traffic of the first target device in the tunnel of the overlay network, and the first host sends the encapsulated traffic of the first target device directly to the second host of the second device control system through the tunnel of the overlay network, and then the second virtual router of the second device control system decapsulates the tunnel header of the overlay network, thereby realizing the communication between the first device control system and the second device control system in a unified network plane. Since both the first device control system and the second device control system work at the overlay network level, and the traffic of the first target device is also hidden in the tunnel of the overlay network and is not visible to the underlay network, the embodiment of the present application can directly realize the communication between heterogeneous virtual networks through the overlay network without the help of the underlay network, thereby improving the communication efficiency between heterogeneous virtual networks and reducing the resource consumption of the CPU.

[0032] In some embodiments, the virtual router configuration module 130 is further configured to create a first virtual routing forwarding 124 in the first virtual router 121 and a second virtual routing forwarding 144 in the second virtual router 142 according to the call of the control module 110 .

[0033] For example, in combination Figure 1 As shown, when creating the first device control system 120 and the second device control system 140 in the communication system 10 of the heterogeneous virtual network, the control module 110 will call the virtual router configuration module 130 to respectively create a first virtual route forwarding 124 in the first virtual router 121 and a second virtual route forwarding 144 in the second virtual router 142. Virtual route forwarding (Virtual Route Forwarding, VRF) is used to achieve network isolation between the first device control system 120 and the second device control system 140, and is also the key to achieve communication between the first device control system 120 and the second device control system 140 through the tunnel of the overlay network.

[0034] In some embodiments, the first virtual router 121 is also used to create a first virtual interface 125 on the first virtual routing forwarding 124 according to the call of the first device control system 120; the second virtual router 142 is also used to create a second virtual interface 145 on the second virtual routing forwarding 144 according to the call of the second device control system 140, and the first virtual interface 125 and the second virtual interface 145 include virtual interfaces of virtual machines and / or virtual interfaces of minimum execution units.

[0035] For example, in combination Figure 1As shown, after the first device control system 120 obtains the IP address of the first target device 122 and the second device control system 140 obtains the IP address of the second target device 143, the first device control system 120 will call the first virtual router 121 to create a first virtual interface 125 on the first virtual routing forwarding 124; the second device control system 140 will call the second virtual router 142 to create a second virtual interface 145 on the second virtual routing forwarding 144. The first virtual routing forwarding 124 and the second virtual routing forwarding 144 can be set with both the virtual interface of the virtual machine and the virtual interface of the minimum execution unit (pod), and the virtual routing forwarding can receive or transmit the traffic of the virtual machine or the traffic of the pod through the virtual interface.

[0036] In some embodiments, the first virtual interface 125 is used to enable the first virtual router 121 to send the encapsulated traffic of the first target device 122 to the first host machine 123 through the first virtual interface 125; the second virtual interface 145 is used to enable the second host machine 141 to send the encapsulated traffic of the first target device 122 to the second virtual router 142 through the second virtual interface 145.

[0037] For example, in combination Figure 1 As shown, since both the first virtual interface 125 and the second virtual interface 145 include virtual interfaces of virtual machines and / or virtual interfaces of minimum execution units, the first virtual interface 125 can be used to transmit the traffic of the first target device 122 to the first host machine 123, and can also be used to receive the traffic of the second target device 143 to the first virtual router 121, and then transmit the traffic of the second target device 143 to the first target device 122; similarly, the second virtual interface 145 can be used to receive the traffic of the first target device 122 to the second virtual router 142, and then transmit the traffic of the first target device 122 to the second target device 143, and can also be used to transmit the traffic of the second target device 143 to the second host machine 141. The embodiment of the present application does not limit the number of the first virtual interface 125 and the second virtual interface 145.

[0038] In some embodiments, the control module 110 is also used to configure the first device control system 120 to create an IP address of the first target device 122 according to the communication requirements of the first device control system 120, and / or to configure the second device control system 140 to create an IP address of the second target device 143 according to the communication requirements of the second device control system 140.

[0039] For example, in combination Figure 1As shown, when the first device control system 120 wants to create the first target device 122, or the second device control system 140 wants to create the second target device 143, the first device control system 120 or the second device control system 140 will send a request for an IP address to the control module 110, and the control module 110 will allocate an IP address for creating the first target device 122 according to the request of the first device control system 120, or allocate an IP address for creating the second target device 143 according to the request of the second device control system 140. For example, a VPC uses a network of 192.168.2.0 / 24, and the control module 110 can allocate an IP address of 192.168.2.3 to the first target device 122, and an IP address of 192.168.2.4 to the second target device 143, wherein each first target device 122 and each second target device 143 have their own independent IP addresses.

[0040] In some embodiments, the first device control system 120 is an open source cloud computing management platform, the first target device 122 is a virtual machine, and the first device control system 120 also includes: a network service module 126, used to provide network services for the first device control system 120; a computing service module 127, used to provide computing services for the first device control system 120.

[0041] For example, in combination Figure 1 As shown, when the first device control system 120 is an open source cloud computing management platform (OpenStack), the first target device 122 is a virtual machine; the network service module 126 is an OpenStack network service (OpenStack Neutron), which is mainly used to provide network services for starting virtual machine instances in OpenStack, and the network services include application services for virtual machine IP addresses and services for creating virtual routing forwarding in virtual routers; the computing service module 127 is an OpenStack computing service (OpenStack Nova), which is mainly used to manage the entire life cycle of virtual machine instances.

[0042] In some embodiments, the second device control system 140 manages containerized applications on multiple hosts in the cloud platform, the second target device 143 is the minimum execution unit of the second device control system 140, the minimum execution unit includes multiple containers, and the second device control system 140 also includes: a management service module 146, which is used to provide management services for the second device control system 140.

[0043] For example, in combination Figure 1As shown, when the second device control system 140 is a containerized application (Kubernetes, K8s) on multiple hosts in the management cloud platform, the second target device 143 is the smallest execution unit (pod) in Kubernetes, and each pod can have multiple containers; the management service module 146 is Kubelet, which is mainly used to start the pod and monitor the status of the pod.

[0044] Based on the heterogeneous virtual network provided in the above embodiment, accordingly, the embodiment of the present application also provides a communication method of a heterogeneous virtual network. Figure 2 As shown, the communication method of the heterogeneous virtual network includes:

[0045] S201. Obtain the communication requirements of the first device control system through the control module, and call the virtual router configuration module to configure routing information into the routing table of the first virtual router according to the communication requirements.

[0046] Combination Figure 1 As shown, when the first device control system 120 has a communication demand, it will send a communication request to the control module 110. The control module 110 will call the virtual router configuration module 130 to configure the routing information into the routing table of the first virtual router 121 according to the acquired communication demand of the first device control system 120. The routing table stores the paths for the traffic of the first target device 122 to be transmitted to the second target device 143 through the first virtual router 121, as well as the metrics related to these paths.

[0047] S202: Encapsulate the tunnel header of the overlay network through the first virtual router, encapsulate the traffic of the first target device in the tunnel of the overlay network, and send the encapsulated traffic of the first target device to the first host machine according to the routing table.

[0048] Combination Figure 1 As shown, the first virtual router 121 encapsulates the tunnel header of the overlay network, encapsulates the traffic of the first target device 122 to be transmitted in the tunnel of the overlay network, and sends the encapsulated traffic of the first target device 122 to the first host machine 123 according to the configured routing table.

[0049] S203: Send the encapsulated traffic of the first target device to the second host of the second device control system through the first host.

[0050] Combination Figure 1 As shown, after receiving the encapsulated traffic of the first target device 122 , the first host machine 123 forwards it to the second host machine 141 of the second device control system 140 through the tunnel of the overlay network.

[0051] S204: Send the encapsulated traffic of the first target device to the second virtual router of the second device control system through the second host machine.

[0052] Combination Figure 1 As shown, after receiving the encapsulated traffic of the first target device 122 , the second host machine 141 sends it to the second virtual router 142 of the second device control system 140 .

[0053] S205: Decapsulate the tunnel header of the overlay network through the second virtual router, and send the decapsulated traffic of the first target device to the second target device of the second device control system.

[0054] Combination Figure 1 As shown, the second virtual router 142 decapsulates the tunnel header of the overlay network to obtain the traffic of the first target device 122 encapsulated in the tunnel of the overlay network, and sends the decapsulated traffic of the first target device 122 to the second target device 143 of the second device control system 140.

[0055] The communication method of heterogeneous virtual networks provided in the embodiment of the present application encapsulates the traffic of the first target device in the tunnel of the overlay network through the first virtual router of the first device control system, and the first host directly sends the encapsulated traffic of the first target device to the second host of the second device control system through the tunnel of the overlay network, and then the second virtual router of the second device control system decapsulates the tunnel header of the overlay network, thereby realizing the communication between the first device control system and the second device control system in a unified network plane. Since both the first device control system and the second device control system work at the overlay network level, and the traffic of the first target device is also hidden in the tunnel of the overlay network and is invisible to the underlay network, the embodiment of the present application can directly realize the communication between heterogeneous virtual networks through the overlay network without the help of the underlay network, thereby improving the communication efficiency between heterogeneous virtual networks and reducing the resource consumption of the CPU.

[0056] Based on the communication method of the heterogeneous virtual network provided in the above embodiment, the present application also provides a specific implementation method of the electronic device accordingly. Please refer to the following embodiment.

[0057] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0058] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0059] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0060] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 is a non-volatile solid-state memory. The memory 302 may be inside or outside the integrated gateway disaster recovery device.

[0061] In one example, the memory 302 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0062] The memory 302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present application.

[0063] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement Figure 2 The method / steps S201 to S205 in the embodiment shown in the figure are achieved. Figure 2 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.

[0064] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0065] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0066] Bus 310 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), Hyper Transport (Hyper Transport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0067] In addition, in combination with the communication method of the heterogeneous virtual network in the above embodiment, the embodiment of the present application may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the communication methods of the heterogeneous virtual network in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as electronic circuits, semiconductor memory devices, ROM, random access memory, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, and hard disks.

[0068] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0069] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0070] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0071] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0072] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A communication system for a heterogeneous virtual network, characterized in that: include: A control module, configured to call a virtual router configuration module to configure a first virtual router of the first device control system according to a communication requirement of the first device control system; The virtual router configuration module is used to configure routing information into the routing table of the first virtual router according to the call of the control module; The first equipment control system comprises: The first virtual router is used to encapsulate the tunnel header of the overlay network, encapsulate the traffic of the first target device in the tunnel of the overlay network, and send the encapsulated traffic of the first target device to the first host machine according to the routing table; The first host machine is used to send the encapsulated traffic of the first target device to a second host machine of a second device control system; The second device control system comprises: The second host machine is used to receive the encapsulated traffic of the first target device sent by the first host machine, and send the encapsulated traffic of the first target device to the second virtual router; The second virtual router is used to decapsulate the tunnel header of the overlay network and send the decapsulated traffic of the first target device to the second target device.

2. The system according to claim 1, characterized in that The virtual router configuration module is further configured to create a first virtual routing forwarding in the first virtual router and a second virtual routing forwarding in the second virtual router according to the call of the control module.

3. The system according to claim 2, characterized in that The first virtual router is further used to create a first virtual interface on the first virtual routing forwarding according to the call of the first device control system; The second virtual router is also used to create a second virtual interface on the second virtual routing forwarding according to the call of the second device control system, and the first virtual interface and the second virtual interface include a virtual interface of a virtual machine and / or a virtual interface of a minimum execution unit.

4. The system according to claim 3, characterized in that The first virtual interface is used to enable the first virtual router to send the encapsulated traffic of the first target device to the first host machine through the first virtual interface; The second virtual interface is used to enable the second host machine to send the encapsulated traffic of the first target device to the second virtual router through the second virtual interface.

5. The system according to claim 1, characterized in that The control module is also used to configure the first device control system to create an IP address of the first target device according to the communication requirements of the first device control system, and / or to configure the second device control system to create an IP address of the second target device according to the communication requirements of the second device control system.

6. The system according to claim 5, characterized in that The first device control system is an open source cloud computing management platform, the first target device is a virtual machine, and the first device control system further includes: A network service module, used to provide network services for the first device control system; A computing service module is used to provide computing services for the first device control system.

7. The system according to claim 5, characterized in that The second device control system is a containerized application on multiple hosts in the management cloud platform, the second target device is the minimum execution unit of the second device control system, the minimum execution unit includes multiple containers, and the second device control system also includes: A management service module is used to provide management services for the second device control system.

8. A communication method for a heterogeneous virtual network, characterized in that: Applied to a heterogeneous virtual network according to any one of claims 1 to 7, the method comprising: Acquire the communication requirements of the first device control system through the control module, and call the virtual router configuration module to configure the routing information into the routing table of the first virtual router according to the communication requirements; Encapsulating the tunnel header of the overlay network through the first virtual router, encapsulating the traffic of the first target device in the tunnel of the overlay network, and sending the encapsulated traffic of the first target device to the first host machine according to the routing table; Sending the encapsulated traffic of the first target device to a second host of a second device control system through the first host; Sending the encapsulated traffic of the first target device to the second virtual router of the second device control system through the second host machine; The tunnel header of the overlay network is decapsulated through the second virtual router, and the decapsulated traffic of the first target device is sent to the second target device of the second device control system.

9. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the heterogeneous virtual network communication method as described in claim 8 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication method of a heterogeneous virtual network as claimed in claim 8 are implemented.

Citation Information

Patent Citations

  • Service cross-cloud architecture and creation method and management method thereof

    CN107911463A

  • Virtual network equipment, virtual overlay network and configuration and message transmission method

    CN114448805A