CN116170373A - Communication system, method, equipment and storage medium of heterogeneous virtual network - Google Patents

Communication system, method, equipment and storage medium of heterogeneous virtual network Download PDF

Info

Publication number
CN116170373A
CN116170373A CN202310146919.0A CN202310146919A CN116170373A CN 116170373 A CN116170373 A CN 116170373A CN 202310146919 A CN202310146919 A CN 202310146919A CN 116170373 A CN116170373 A CN 116170373A
Authority
CN
China
Prior art keywords
virtual
control system
target device
virtual router
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310146919.0A
Other languages
Chinese (zh)
Inventor
程宇
董少杰
刘天鹏
肖爱元
王祎晨
陈春松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310146919.0A priority Critical patent/CN116170373A/en
Publication of CN116170373A publication Critical patent/CN116170373A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The embodiment of the application provides a communication system, a method, equipment and a storage medium of a heterogeneous virtual network, wherein the communication system comprises: the control module is used for calling the virtual router configuration module to configure the first virtual router according to the communication requirement of the first equipment control system; the virtual router configuration module is used for configuring the routing information into a routing table of the first virtual router; the first virtual router is used for sending the flow of the first target device after encapsulation to the first host according to the routing table; the first host is used for sending the flow of the first target device after encapsulation to the second host; the second host is used for sending the flow of the first target device after encapsulation to the second virtual router; the second virtual router is used for sending the traffic of the first target device after the decapsulation to the second target device. According to the communication system of the embodiment of the application, communication between heterogeneous virtual networks can be realized without an underley network.

Description

Communication system, method, equipment and storage medium of heterogeneous virtual network
Technical Field
The application belongs to the technical field of communication, and particularly relates to a communication system, a method, equipment and a storage medium of a heterogeneous virtual network.
Background
A virtual private cloud (Virtual Private Cloud, VPC) is the basis for a cloud computing network, which can provide users with user-defined private networks and logically isolate. With the increasing maturity of data centers and cloud computing scales, it is becoming more common to have an OpenStack cloud computing management platform for managing virtual machines and a Kubernetes (K8 s) application for controlling the load of a container in one data center, and the need for communication between heterogeneous VPCs is also becoming more urgent. In the prior art, communication between two independent clusters needs to be realized by means of an underlay network, but the communication mode is low in efficiency and the resource consumption of a central processing unit (Central Processing Unit, CPU) is high.
Disclosure of Invention
The embodiment of the application provides a communication system, a communication method, a communication device and a storage medium of a heterogeneous virtual network, which can realize communication between heterogeneous virtual networks without using an unresolved network.
In a first aspect, an embodiment of the present application provides a communication system of a heterogeneous virtual network, the communication system including: the control module is used for calling the virtual router configuration module to configure the first virtual router of the first equipment control system according to the communication requirement of the first equipment control system; the virtual router configuration module is used for configuring the route information into a route table of the first virtual router according to the call of the control module; a first device control system comprising: the first virtual router is used for packaging the tunnel header of the overlay network, packaging the traffic of the first target device in the tunnel of the overlay network, and sending the packaged traffic of the first target device to the first host according to the routing table; the first host is used for sending the flow of the first target device after encapsulation to a second host of the second device control system; a second device control system comprising: the second host is used for receiving the flow of the packaged first target equipment sent by the first host and sending the flow of the packaged first target equipment to the second virtual router; and the second virtual router is used for decapsulating the tunnel header of the overlay network and sending the traffic of the first target device after decapsulation to the second target device.
According to an embodiment of the first aspect of the present application, the virtual router configuration module is further configured to create a first virtual route forwarding in the first virtual router and a second virtual route forwarding in the second virtual router according to the call of the control module.
According to any of the foregoing embodiments of the first aspect of the present application, the first virtual router is further configured to create a first virtual interface on the first virtual route forwarding according to a call of the first device control system; the second virtual router is further configured to create a second virtual interface on the second virtual route forwarding according to the call of the second device control system, where the first virtual interface and the second virtual interface include virtual interfaces of the virtual machine and/or virtual interfaces of the minimum execution unit.
According to any one of the foregoing embodiments of the first aspect of the present application, the first virtual interface is configured to enable the first virtual router to send the traffic of the encapsulated first target device to the first host through the first virtual interface; the second virtual interface is used for enabling the second host machine to send the packaged traffic of the first target device to the second virtual router through the second virtual interface.
According to any of the foregoing embodiments of the first aspect of the present application, the control module is further configured to configure the first device control system to create the IP address of the first target device according to the communication requirement of the first device control system, and/or configure the second device control system to create the IP address of the second target device according to the communication requirement of the second device control system.
According to any one of the foregoing embodiments 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 further includes: the network service module is used for providing network service for the first equipment control system; and the computing service module is used for providing computing services for the first equipment control system.
According to any of the foregoing embodiments of the first aspect of the present application, the second device control system is an application for managing containerization on a plurality of hosts in a cloud platform, the second target device is a minimum execution unit of the second device control system, the minimum execution unit includes a plurality of containers, and the second device control system further includes: and the management service module is used for providing management service for the second equipment control system.
In a second aspect, an embodiment of the present application provides a communication method of a heterogeneous virtual network, applied to the heterogeneous virtual network provided in the first aspect, where the communication method includes: the method comprises the steps that a control module obtains the communication requirement of a first equipment control system, and a virtual router configuration module is called to configure routing information into a routing table of a first virtual router according to the communication requirement; encapsulating the tunnel header of the overlay network through a first virtual router, encapsulating the traffic of the first target device in the tunnel of the overlay network, and transmitting the encapsulated traffic of the first target device to a first host according to a routing table; the flow of the first target equipment after encapsulation is sent to a second host of a second equipment control system through the first host; the flow of the first target device after encapsulation is sent to a second virtual router of a second device control system through a second host; and decapsulating the tunnel header of the overlay network through a second virtual router, and sending the traffic of the first target device after decapsulation to second target devices of a second device control system.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of a method of communication of a heterogeneous virtual network as provided in the second aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method of communication of a heterogeneous virtual network as provided in the second aspect.
The communication system, method, device and storage medium of the heterogeneous virtual network in the embodiment of the application, where the communication system includes: the control module is used for calling the virtual router configuration module to configure the first virtual router of the first equipment control system according to the communication requirement of the first equipment control system; the virtual router configuration module is used for configuring the route information into a route table of the first virtual router according to the call of the control module; a first device control system comprising: the first virtual router is used for packaging the tunnel header of the overlay network, packaging the traffic of the first target device in the tunnel of the overlay network, and sending the packaged traffic of the first target device to the first host according to the routing table; the first host is used for sending the flow of the first target device after encapsulation to a second host of the second device control system; a second device control system comprising: the second host is used for receiving the flow of the packaged first target equipment sent by the first host and sending the flow of the packaged first target equipment to the second virtual router; and the second virtual router is used for decapsulating the tunnel header of the overlay network and sending the traffic of the first target device after decapsulation to the second target device. The first virtual router of the first equipment control system encapsulates the flow of the first target equipment in the tunnel of the overlay network, the first host machine directly sends the encapsulated flow of the first target equipment to the second host machine of the second equipment control system through the tunnel of the overlay network, and the second virtual router of the second equipment control system decapsulates the tunnel head of the overlay network, so that the communication of the first equipment control system and the second equipment control system in a unified network plane is realized. Because the first equipment control system and the second equipment control system both work on the overlay network layer, and the flow of the first target equipment is also hidden in the tunnel of the overlay network and invisible to the underlay network, the communication between heterogeneous virtual networks can be directly realized through the overlay network without resorting to the underlay network, the communication efficiency between heterogeneous virtual networks is improved, and the resource consumption of a CPU (Central processing Unit) is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a communication system of a heterogeneous virtual network according to an embodiment of the present application;
fig. 2 is a flow chart of a communication method of a heterogeneous virtual network according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application are described in detail below to make the objects, technical solutions and advantages of the present application more apparent, and to further describe the present application in conjunction with the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative of the application and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Accordingly, this application is intended to cover such modifications and variations of this application as fall within the scope of the appended claims (the claims) and their equivalents. The embodiments provided in the examples of the present application may be combined with each other without contradiction.
Before describing the technical solution provided by the embodiments of the present application, in order to facilitate understanding of the embodiments of the present application, the present application first specifically describes a problem existing in the prior art:
as described above, the inventors of the present application have found that communication between heterogeneous virtual networks needs to be achieved by means of an underley network in the prior art. When communication is carried out between virtual networks, the virtual network at one end needs to firstly strip off the head encapsulation of the virtual network to make the virtual network appear in the underly network, and when the virtual network reaches the other end through the underly network, the virtual network at the other end needs to be encapsulated again, so that the forwarding efficiency of the communication mode is low and the CPU resource consumption is high. In addition, when the header package of the virtual network is stripped off to make the virtual network appear in the underly network, the workload of the virtual network becomes a part of the underly network, so that the service layer and the network layer are mixed up, and the complexity of the underly network is greatly increased.
In order to solve the problems in the prior art, embodiments of the present application provide a communication system, a method, an apparatus, and a storage medium of a heterogeneous virtual network.
The following first describes a communication system of a heterogeneous virtual network provided in an embodiment of the present application.
Fig. 1 is a schematic structural diagram of a communication system of a heterogeneous virtual network according to an embodiment of the present application. As shown in fig. 1, a communication system 10 of a heterogeneous virtual network includes:
a control module 110, configured to invoke a virtual router configuration module 130 to configure a first virtual router 121 of the first device control system 120 according to a communication requirement of the first device control system 120; a virtual router configuration module 130, configured 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: a first virtual router 121, configured to encapsulate a tunnel header of the overlay network, encapsulate a traffic of the first target device 122 in a tunnel of the overlay network, and send the encapsulated traffic of the first target device 122 to a first host 123 according to a routing table; a first host 123 for sending the encapsulated traffic of the first target device 122 to a second host 141 of the second device control system 140; a second device control system 140 comprising: a second host 141, configured to receive the traffic of the encapsulated first target device 122 sent by the first host 123, and send the traffic of the encapsulated first target device 122 to the second virtual router 142; the second virtual router 142 is configured to decapsulate the tunnel header of the overlay network, and send the traffic of the first target device 122 after decapsulation to the second target device 143.
Illustratively, when the first device control system 120 has a communication requirement, a communication request is sent to the control module 110, and the control module 110 invokes 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 requirement of the first device control system 120; the first virtual router 121 encapsulates a tunnel header of the overlay network, encapsulates the traffic of the first target device 122 to be transmitted in a tunnel of the overlay network, and sends the encapsulated traffic of the first target device 122 to the first host 123 according to the configured routing table; the first host 123 receives the encapsulated traffic of the first target device 122, and forwards the traffic to the second host 141 of the second device control system 140 through the tunnel of the overlay network; the second host 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 may decapsulate 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 send the traffic of the first target device 122 after decapsulation to the second target device 143.
Similarly, when the second device control system 140 has a communication requirement, a communication request is sent to the control module 110, and the control module 110 invokes 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 requirement of the second device control system 140; the second virtual router 142 encapsulates the tunnel header of the overlay network, encapsulates the traffic of the second target device 143 that needs to be transmitted in the tunnel of the overlay network, and sends the encapsulated traffic of the second target device 143 to the second host 141 according to the configured routing table; the second host 141 receives the encapsulated traffic of the second target device 143, and forwards the traffic to the first host 123 of the first device control system 120 through the tunnel of the overlay network; the first host 123 receives the encapsulated traffic of the second target device 143 and sends the traffic to the first virtual router 121; the first virtual router 121 may decapsulate the tunnel header of the overlay network to obtain the traffic of the second target device 143 encapsulated in the tunnel of the overlay network, and send the traffic of the second target device 143 after decapsulation to the first target device 122.
According to the communication system of the heterogeneous virtual network, the first virtual router of the first equipment control system packages the flow of the first target equipment in the tunnel of the overlay network, the first host machine directly sends the packaged flow of the first target equipment to the second host machine of the second equipment control system through the tunnel of the overlay network, and the second virtual router of the second equipment control system unpacks the tunnel head of the overlay network, so that the communication of the first equipment control system and the second equipment control system on a unified network plane is achieved. Because the first equipment control system and the second equipment control system both work on the overlay network layer, and the flow of the first target equipment is also hidden in the tunnel of the overlay network and invisible to the underlay network, the communication between heterogeneous virtual networks can be directly realized through the overlay network without resorting to the underlay network, the communication efficiency between heterogeneous virtual networks is improved, and the resource consumption of a CPU (Central processing Unit) is reduced.
In some embodiments, the virtual router configuration module 130 is further configured to 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 according to the call of the control module 110.
Illustratively, as shown in connection with fig. 1, when the first device control system 120 and the second device control system 140 are created in the communication system 10 of the heterogeneous virtual network, the control module 110 invokes the virtual router configuration module 130 to 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, respectively. Virtual routing 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 critical to achieving communication between the first device control system 120 and the second device control system 140 through tunnels of the overlay network.
In some embodiments, the first virtual router 121 is further configured 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 further configured to create a second virtual interface 145 on the second virtual route forwarding 144 according to the call of the second device control system 140, the first virtual interface 125 and the second virtual interface 145 comprising virtual interfaces of the virtual machine and/or virtual interfaces of the minimal execution unit.
Illustratively, as shown in connection with fig. 1, after the first device control system 120 obtains the IP address of the first target device 122, the second device control system 140 obtains the IP address of the second target device 143, the first device control system 120 invokes the first virtual router 121 to create the first virtual interface 125 on the first virtual route forwarding 124; the second device control system 140 invokes the second virtual router 142 to create a second virtual interface 145 on the second virtual router forwarding 144. The first virtual route forwarding 124 and the second virtual route forwarding 144 can set a virtual interface of a virtual machine and a virtual interface of a minimum execution unit (pod), and the virtual route forwarding can receive or transmit traffic of the virtual machine or traffic of the pod through the virtual interfaces.
In some embodiments, the first virtual interface 125 is configured to enable the first virtual router 121 to send the encapsulated traffic of the first target device 122 to the first host 123 through the first virtual interface 125; the second virtual interface 145 is configured to enable the second host 141 to send the encapsulated traffic of the first target device 122 to the second virtual router 142 through the second virtual interface 145.
Illustratively, as shown in connection with fig. 1, since the first virtual interface 125 and the second virtual interface 145 each include a virtual interface of a virtual machine and/or a virtual interface of a minimum execution unit, the first virtual interface 125 may be used to transmit traffic of the first target device 122 to the first host 123, or may be used to receive traffic of the second target device 143 to the first virtual router 121, and then transmit traffic of the second target device 143 to the first target device 122; similarly, the second virtual interface 145 may be used to receive traffic from the first target device 122 to the second virtual router 142, and then transmit traffic from the first target device 122 to the second target device 143, or may be used to transmit traffic from the second target device 143 to the second host 141. The number of the first virtual interfaces 125 and the second virtual interfaces 145 is not limited in the embodiment of the present application.
In some embodiments, the control module 110 is further configured to configure the first device control system 120 to create the 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 the IP address of the second target device 143 according to the communication requirements of the second device control system 140.
Illustratively, as shown in connection with fig. 1, when the first device control system 120 is to create the first target device 122, or the second device control system 140 is to create the second target device 143, the first device control system 120 or the second device control system 140 may send a request for applying an IP address to the control module 110, and the control module 110 may assign an IP address for creating the first target device 122 to the first device control system 120 according to the request of the first device control system 120, or assign an IP address for creating the second target device 143 to the second device control system according to the request of the second device control system 140. For example, one VPC may use a network of 192.168.2.0/24, the control module 110 may assign 192.168.2.3 IP addresses to the first target devices 122 and 192.168.2.4 IP addresses to the second target devices 143, where each first target device 122 and each second target device 143 have their own independent IP address.
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 further includes: a network service module 126 for providing network services to the first device control system 120; the computing service module 127 is configured to provide computing services for the first device control system 120.
Illustratively, as shown in connection with FIG. 1, 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), and is mainly used for providing network services for starting virtual machine instances in OpenStack, where the network services include application services of virtual machine IP addresses and services for creating virtual route forwarding in a virtual router; the computing service module 127 is an OpenStack computing service (OpenStack Nova) and is mainly used for managing the whole life cycle of the virtual machine instance.
In some embodiments, the second device control system 140 is a containerized application that manages multiple hosts in the cloud platform, the second target device 143 is a minimum execution unit of the second device control system 140, the minimum execution unit including multiple containers, the second device control system 140 further comprising: the management service module 146 is configured to provide management services for the second device control system 140.
Illustratively, as shown in connection with FIG. 1, when the second device control system 140 is an application (Kubernetes, K8 s) that manages containerization across multiple hosts in a cloud platform, the second target device 143 is a minimum execution unit (pod) in Kubernetes, each pod having multiple containers therein; the management service module 146 is a Kubelet and is primarily used to start the pod and monitor the status of the pod.
Based on the heterogeneous virtual network provided by the embodiment, correspondingly, the embodiment of the application also provides a communication method of the heterogeneous virtual network. As shown in fig. 2, the communication method of the heterogeneous virtual network includes:
s201, acquiring a communication requirement of a first equipment control system through a control module, and calling a virtual router configuration module to configure routing information into a routing table of a first virtual router according to the communication requirement.
Referring to fig. 1, when the first device control system 120 has a communication requirement, a communication request is sent to the control module 110, and the control module 110 invokes 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 requirement of the first device control system 120. The routing table stores paths for traffic from the first destination device 122 to travel through the first virtual router 121 to the second destination device 143, as well as metrics associated with those paths.
S202, packaging a tunnel header of an overlay network through a first virtual router, packaging the traffic of a first target device in a tunnel of the overlay network, and sending the packaged traffic of the first target device to a first host according to a routing table.
As shown in fig. 1, the first virtual router 121 encapsulates a tunnel header of the overlay network, encapsulates traffic of the first target device 122 that needs to be transmitted in a tunnel of the overlay network, and sends the encapsulated traffic of the first target device 122 to the first host 123 according to the configured routing table.
S203, the first host sends the packaged flow of the first target device to a second host of the second device control system.
As shown in connection with fig. 1, after receiving the encapsulated traffic of the first target device 122, the first host 123 forwards the traffic to the second host 141 of the second device control system 140 through the tunnel of the overlay network.
S204, the flow of the first target device after encapsulation is sent to a second virtual router of the second device control system through the second host.
As shown in connection with fig. 1, the second host 141 receives the encapsulated traffic of the first target device 122 and sends it to the second virtual router 142 of the second device control system 140.
S205, decapsulating the tunnel header of the overlay network through the second virtual router, and sending the traffic of the first target device after decapsulation to second target devices of the second device control system.
As shown in fig. 1, the second virtual router 142 may decapsulate 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 send the traffic of the first target device 122 after decapsulation to the second target device 143 of the second device control system 140.
According to the communication method of the heterogeneous virtual network, the first virtual router of the first equipment control system is used for packaging the flow of the first target equipment in the tunnel of the overlay network, the first host machine is used for directly sending the packaged flow of the first target equipment to the second host machine of the second equipment control system through the tunnel of the overlay network, and the second virtual router of the second equipment control system is used for unpacking the tunnel head of the overlay network, so that the communication of the first equipment control system and the second equipment control system in a unified network plane is achieved. Because the first equipment control system and the second equipment control system both work on the overlay network layer, and the flow of the first target equipment is also hidden in the tunnel of the overlay network and invisible to the underlay network, the communication between heterogeneous virtual networks can be directly realized through the overlay network without resorting to the underlay network, the communication efficiency between heterogeneous virtual networks is improved, and the resource consumption of a CPU (Central processing Unit) is reduced.
Based on the communication method of the heterogeneous virtual network provided by the embodiment, correspondingly, the application also provides a specific implementation mode of the electronic equipment. Please refer to the following examples.
Fig. 3 shows a schematic hardware structure of an electronic device according to an embodiment of the present application.
The electronic device may comprise a processor 301 and a memory 302 storing computer program instructions.
In particular, the processor 301 may include a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 302 may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. In one example, memory 302 may include removable or non-removable (or fixed) media, or memory 302 is a non-volatile solid state memory. Memory 302 may be internal or external to the integrated gateway disaster recovery device.
In one example, memory 302 may be Read Only Memory (ROM). In one example, the ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
Memory 302 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising 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 a method according to an aspect of the present application.
The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement the methods/steps S201 to S205 in the embodiment shown in fig. 2, and achieve the corresponding technical effects achieved by executing the methods/steps in the embodiment shown in fig. 2, which are not described herein for brevity.
In one example, the electronic device may also include a communication interface 303 and a bus 310. As shown in fig. 3, the processor 301, the memory 302, and the communication interface 303 are connected to each other by a bus 310 and perform communication with each other.
The communication interface 303 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiments of the present application.
Bus 310 includes hardware, software, or both, that couple components of the electronic device to one another. By way of example, and not limitation, the buses may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (MCa) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards association local (VLB) Bus, or other suitable Bus, or a combination of two or more of the above. Bus 310 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
In addition, in combination with the communication method of the heterogeneous virtual network in the above embodiment, the embodiment of the application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a communication method of any of the heterogeneous virtual networks of the above embodiments. Examples of computer readable storage media include non-transitory computer readable storage media such as electronic circuits, semiconductor memory devices, ROMs, random access memories, flash memories, erasable ROMs (EROM), floppy disks, CD-ROMs, optical disks, hard disks.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
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, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (10)

1. A communication system of a heterogeneous virtual network, comprising:
the control module is used for calling the virtual router configuration module to configure a first virtual router of the first equipment control system according to the communication requirement of the first equipment control system;
the virtual router configuration module is used for configuring the route information into the route table of the first virtual router according to the call of the control module;
the first device control system includes:
the first virtual router is configured to encapsulate a tunnel header of an overlay network, encapsulate a 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 according to the routing table;
the first host is used for sending the packaged flow of the first target device to a second host of a second device control system;
the second device control system includes:
the second host is configured 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 a second virtual router;
the second virtual router is configured to decapsulate the tunnel header of the overlay network, and send the traffic of the first target device after decapsulation to a second target device.
2. The system of claim 1, wherein the virtual router configuration module is further configured to create a first virtual route forwarding in the first virtual router and a second virtual route forwarding in the second virtual router based on the call of the control module.
3. The system of claim 2, wherein the first virtual router is further configured to create a first virtual interface on the first virtual route forwarding according to the call of the first device control system;
the second virtual router is further configured to create a second virtual interface on the second virtual route forwarding according to the call of the second device control system, where 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 of claim 3, wherein the first virtual interface is configured to cause the first virtual router to send the encapsulated traffic of the first target device to the first host via the first virtual interface;
the second virtual interface is used for enabling the second host machine to send the packaged flow of the first target device to the second virtual router through the second virtual interface.
5. The system of claim 1, wherein the control module is further configured to configure the first device control system to create the IP address of the first target device based on the communication requirements of the first device control system and/or to configure the second device control system to create the IP address of the second target device based on the communication requirements of the second device control system.
6. The system of claim 5, wherein the first device control system is an open-source cloud computing management platform, the first target device is a virtual machine, the first device control system further comprising:
the network service module is used for providing network services for the first equipment control system;
and the computing service module is used for providing computing service for the first equipment control system.
7. The system of claim 5, wherein the second device control system is a containerized application on a plurality of hosts in a cloud platform, the second target device is a minimum execution unit of the second device control system, the minimum execution unit including a plurality of containers, the second device control system further comprising:
and the management service module is used for providing management service for the second equipment control system.
8. A communication method of a heterogeneous virtual network, applied to the heterogeneous virtual network of any of claims 1-7, the method comprising:
the method comprises the steps that a control module obtains the communication requirement of a first equipment control system, and a virtual router configuration module is called to configure routing information into a routing table of a first virtual router according to the communication requirement;
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 a first host according to the routing table;
the first host sends the packaged flow of the first target device to a second host of a second device control system;
sending the packaged flow of the first target device to a second virtual router of the second device control system through the second host;
and decapsulating the tunnel header of the overlay network through the second virtual router, and sending the traffic of the first target device after decapsulation to second target device of the second device control system.
9. An electronic device, the electronic device comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the communication method of a heterogeneous virtual network as claimed in claim 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the communication method of a heterogeneous virtual network as claimed in claim 8.
CN202310146919.0A 2023-02-20 2023-02-20 Communication system, method, equipment and storage medium of heterogeneous virtual network Pending CN116170373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310146919.0A CN116170373A (en) 2023-02-20 2023-02-20 Communication system, method, equipment and storage medium of heterogeneous virtual network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310146919.0A CN116170373A (en) 2023-02-20 2023-02-20 Communication system, method, equipment and storage medium of heterogeneous virtual network

Publications (1)

Publication Number Publication Date
CN116170373A true CN116170373A (en) 2023-05-26

Family

ID=86414489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310146919.0A Pending CN116170373A (en) 2023-02-20 2023-02-20 Communication system, method, equipment and storage medium of heterogeneous virtual network

Country Status (1)

Country Link
CN (1) CN116170373A (en)

Similar Documents

Publication Publication Date Title
US11005755B2 (en) Packet processing method in cloud computing system, host, and system
CN108293022B (en) Method, device and system for transmitting message
CN110999265B (en) Managing network connectivity between cloud computing service endpoints and virtual machines
CN105207873B (en) A kind of message processing method and device
US11831551B2 (en) Cloud computing data center system, gateway, server, and packet processing method
CN109074330A (en) Network interface card calculates equipment and data package processing method
CN109479028A (en) Network interface card calculates equipment and data package processing method
CN110677345B (en) User message transmission method and communication equipment
CN109412922B (en) Method, forwarding device, controller and system for transmitting message
CN105049464B (en) Techniques for accelerating network virtualization
CN110311860B (en) Multilink load balancing method and device under VXLAN
CN107645433B (en) Message forwarding method and device
CN108228309B (en) Data packet sending and receiving method and device based on virtual machine
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN113746717A (en) Network equipment communication method and network equipment communication device
CN108989248B (en) Method for transmitting message, network edge device and message transmission system
CN109728926B (en) Communication method and network device
CN109525479B (en) Message processing method and device
CN114697387A (en) Data packet transmission method, device and storage medium
CN112019492B (en) Access control method, device and storage medium
WO2017173601A1 (en) Traffic control method and apparatus in software defined network
CN115190087B (en) Data transmission method, device, equipment and medium based on two-layer intermediate equipment
CN114422297B (en) Multi-scene virtual network flow monitoring method, system, terminal and medium
CN116170373A (en) Communication system, method, equipment and storage medium of heterogeneous virtual network
CN115022424A (en) Virtual control method, system, equipment and medium for network card of hydroelectric LCU controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination