CN117319140A - Virtual network interconnection method, device, equipment and storage medium - Google Patents

Virtual network interconnection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117319140A
CN117319140A CN202311421433.XA CN202311421433A CN117319140A CN 117319140 A CN117319140 A CN 117319140A CN 202311421433 A CN202311421433 A CN 202311421433A CN 117319140 A CN117319140 A CN 117319140A
Authority
CN
China
Prior art keywords
interconnection
heterogeneous
configuration information
virtual network
border gateway
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
CN202311421433.XA
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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202311421433.XA priority Critical patent/CN117319140A/en
Publication of CN117319140A publication Critical patent/CN117319140A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a virtual network interconnection method, a device, equipment and a storage medium, relates to the technical field of network interconnection, and is applied to a controller, wherein the controller is deployed based on a software-defined network technology, and comprises the following components: acquiring state information of a virtual network reported by a plurality of heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network; based on the border gateway protocol, transmitting protocol configuration information to the heterogeneous interconnection agent by combining the state information so as to enable the border gateway protocol; and sending tunnel configuration information to the heterogeneous interconnection agent according to a preset tunnel configuration strategy so as to establish a corresponding tunnel, and transmitting messages among the virtual networks through the tunnel based on a border gateway protocol to realize the interconnection of the virtual networks. Therefore, virtual network interconnection among heterogeneous clouds can be realized based on the border gateway protocol and the software defined network technology, and the complexity of resource sharing is reduced.

Description

Virtual network interconnection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of network interconnection technologies, and in particular, to a virtual network interconnection method, device, equipment, and storage medium.
Background
Cloud computing services, which are one of the bases for digital economies, will play an increasingly important role in the process of enterprise digital transformation. The cloud computing mode in the current industry also presents the situation that the banker disputes and flowers are put together, public cloud and private cloud (comprising proprietary cloud, industry cloud and the like) coexist, and technical routes of different manufacturers are different. Different enterprises have different requirements on the capability of cloud computing services due to strategic requirements or self business attribute requirements, even the same enterprise has different requirements on the management and control capability, privacy, safety and the like of resources due to different businesses, and the requirements on the cloud computing services are different, so that the enterprises often select not only one form of cloud computing service but also multiple forms of cloud computing service concurrent technical routes, such as public cloud and private cloud concurrent technical routes, or multiple public cloud cooperative public technical routes, and multiple public cloud and private cloud concurrent technical routes.
It can be seen how to implement three-layer (TCP/IP network layer) interconnection of virtual networks between heterogeneous clouds is a problem to be solved in the art.
Disclosure of Invention
Accordingly, the present invention is directed to a virtual network interconnection method, apparatus, device, and storage medium, which can implement virtual network interconnection between heterogeneous clouds based on border gateway protocol and software defined network technology, and reduce complexity of resource sharing. The specific scheme is as follows:
in a first aspect, the present application provides a virtual network interconnection method applied to a controller, where the controller is a controller deployed based on a software defined network technology, and the method includes:
acquiring state information of a virtual network reported by a plurality of heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network;
based on a border gateway protocol, transmitting protocol configuration information to the heterogeneous interconnection agent by combining the state information so as to enable the border gateway protocol in the heterogeneous interconnection agent;
and sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among the heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol, and realizing interconnection of the virtual networks.
Optionally, the issuing protocol configuration information to the heterogeneous interconnection agent based on the border gateway protocol and combined with the status information includes:
determining a preset number of target agents from the heterogeneous interconnection agents according to the state information, so that the target agents serve as route reflectors to establish neighbor relations with other heterogeneous interconnection agents;
generating first configuration information corresponding to the target agent and second configuration information corresponding to other heterogeneous interconnection agents based on the border gateway protocol and in combination with the state information;
and sending the first configuration information and the second configuration information to the heterogeneous interconnection agent so as to enable the border gateway protocol in the heterogeneous interconnection agent according to the target agent based on the first configuration information and the second configuration information.
Optionally, before the sending the protocol configuration information to the heterogeneous interconnection agent based on the border gateway protocol and in combination with the status information, the method further includes:
based on the state information, calling a corresponding open interface of cloud computing, adding routing information for other virtual networks on a public network gateway of the virtual network corresponding to the current state information, and directing the next hop to an intranet IP address of a heterogeneous interconnection agency of the virtual network corresponding to the current state information so as to realize interconnection of the virtual networks.
Optionally, the method further comprises:
when any one of the target agents is detected to fail, a new target agent is determined from other heterogeneous interconnection agents according to the state information currently reported by each heterogeneous interconnection agent, so that the new target agent is used as a route reflector to establish a neighbor relation with the other heterogeneous interconnection agents, and interconnection of each virtual network is realized.
Optionally, the transmitting, based on the border gateway protocol and through the tunnel, the packet between the virtual networks includes:
the heterogeneous interconnection agents generate a local routing table based on the border gateway protocol and combined with the state information of the corresponding virtual network so as to transmit messages among the heterogeneous interconnection agents by utilizing the corresponding tunnels according to the local routing table.
In a second aspect, the present application provides a virtual network interconnection method, applied to a heterogeneous interconnection agent, including:
reporting the state information of the current virtual network to a controller;
receiving protocol configuration information issued by the controller based on a border gateway protocol and the state information, and starting the border gateway protocol according to the protocol configuration information;
and acquiring tunnel configuration information sent by the controller, and creating tunnels to other virtual networks according to the tunnel configuration information so as to realize interconnection of the virtual networks based on the border gateway protocol and transmitting messages among the virtual networks through the tunnels.
In a third aspect, the present application provides a virtual network interconnection apparatus, applied to a controller, where the controller is a controller deployed based on a software defined network technology, including:
the state information acquisition module is used for acquiring the state information of the virtual network reported by the heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network;
the protocol configuration information sending module is used for sending protocol configuration information to the heterogeneous interconnection agent based on a border gateway protocol by combining the state information so as to enable the border gateway protocol in the heterogeneous interconnection agent;
and the tunnel configuration module is used for sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among a plurality of heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol and realizing the interconnection of the virtual networks.
In a fourth aspect, the present application provides a virtual network interconnection apparatus, applied to a heterogeneous interconnection agent, including:
the state information reporting module is used for reporting the state information of the current virtual network to the controller;
the protocol configuration module is used for receiving protocol configuration information issued by the controller based on a border gateway protocol and the state information, and starting the border gateway protocol according to the protocol configuration information;
and the tunnel creation module is used for acquiring the tunnel configuration information sent by the controller, creating tunnels to other virtual networks according to the tunnel configuration information so as to realize interconnection of the virtual networks based on the border gateway protocol and transmitting messages among the virtual networks through the tunnels.
In a fourth aspect, the present application provides an electronic device, including:
a memory for storing a computer program;
and a processor for executing the computer program to implement the virtual network interconnection method as described above.
In a fifth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements a virtual network interconnection method as described above.
Therefore, the controller in the application firstly acquires the state information of the virtual network reported by the heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network; then based on the border gateway protocol, and combining the state information to issue protocol configuration information to the heterogeneous interconnection agent so as to enable the border gateway protocol in the heterogeneous interconnection agent; and sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among the heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol, and realizing interconnection of the virtual networks. In this way, the application can realize three-layer (network layer) interconnection of heterogeneous multi-cloud virtual networks by utilizing the controller based on the software-defined network technology and combining with the border gateway protocol; and the routing reachability among the virtual networks is automatically maintained by the border gateway protocol, so that the maintenance complexity is reduced. Meanwhile, by means of the controller based on the software-defined network technology, heterogeneous interconnection agents and virtual network gateways in the virtual networks on each cloud can be automatically deployed, and the controller automatically issues configuration on line and takes effect, so that the deployment complexity is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a virtual network interconnection method disclosed in the present application;
FIG. 2 is a flow chart of another virtual network interconnection method disclosed in the present application;
fig. 3 is a schematic architecture diagram of virtual network interconnection disclosed in the present application;
FIG. 4 is a schematic diagram of a neighbor relation between heterogeneous interconnect agents disclosed herein;
fig. 5 is a schematic structural diagram of a virtual network interconnection device disclosed in the present application;
fig. 6 is a schematic structural diagram of another virtual network interconnection device disclosed in the present application;
fig. 7 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, an embodiment of the present invention discloses a virtual network interconnection method, which is applied to a controller, where the controller is deployed based on a software defined network technology, and includes:
s11, acquiring state information of a virtual network reported by a plurality of heterogeneous interconnection agents; the heterogeneous interconnection agent is located in a virtual network of cloud computing, and is associated with a public network.
It is noted that the controllers in the present application are SDN controllers deployed based on software defined network (Software Defined Network, SDN) technology, and the SDN controllers are deployed in a virtual mode independent of all virtual networks. Further, heterogeneous interconnection agents are also deployed in the virtual networks in each cloud (computing service), and are generally deployed in the form of virtual machines, and the heterogeneous interconnection agents are associated with public network IP (Internet Protocol Address ) of the corresponding virtual networks and are used for constructing inter-cloud interconnection tunnels. In another embodiment, heterogeneous interconnect agents may also be deployed in the form of cloud physical hosts.
In this embodiment, after the heterogeneous interconnection agent of the virtual network is online, the SDN controller may be automatically connected and current state information may be reported; specifically, the heterogeneous interconnection agent may report the current running state of itself and the information of the located virtual network (such as the prefix of the virtual network IP address, the IP address of the virtual network gateway, etc.) to the preset SDN controller.
And step S12, based on a border gateway protocol, transmitting protocol configuration information to the heterogeneous interconnection agent by combining the state information so as to enable the border gateway protocol in the heterogeneous interconnection agent.
Further, after the SDN controller receives the status information reported by each heterogeneous interconnection agent, the SDN controller may generate corresponding protocol configuration information based on border gateway protocols (Border Gateway Protocol, BGP) in combination with the obtained status information, and send the protocol configuration information to the corresponding heterogeneous interconnection agent, so as to facilitate the subsequent enabling of the border gateway protocols in the heterogeneous interconnection agents of each virtual network.
In a specific embodiment, the issuing protocol configuration information to the heterogeneous interconnection agent based on the border gateway protocol and in combination with the status information may include: determining a preset number of target agents from the heterogeneous interconnection agents according to the state information, so that the target agents serve as route reflectors to establish neighbor relations with other heterogeneous interconnection agents; generating first configuration information corresponding to the target agent and second configuration information corresponding to other heterogeneous interconnection agents based on the border gateway protocol and in combination with the state information; and sending the first configuration information and the second configuration information to the heterogeneous interconnection agent so as to enable the border gateway protocol in the heterogeneous interconnection agent according to the target agent based on the first configuration information and the second configuration information. Specifically, the controller in the application can select a preset number of target agents to serve as route reflectors according to the state information reported by the heterogeneous interconnection agents, so that other heterogeneous interconnection agents can establish neighbor relations among the target agents, and the route information can be conveniently interacted; it will be appreciated that in the case of multi-zone interconnects, the number of BGP sessions may be reduced by the route reflector, otherwise BGP sessions need to be established between any two heterogeneous interconnect agents to exchange routing information. Accordingly, the controller may generate protocol configuration information for each heterogeneous interconnection agent based on the border gateway protocol and according to the state information, and specifically includes first configuration information for the target agent and second configuration information for other heterogeneous interconnection agents. And then respectively transmitting the first configuration information and the second configuration information to heterogeneous interconnection agents corresponding to the corresponding virtual networks so as to enable the border gateway protocol in the heterogeneous interconnection agents later.
In another specific embodiment, before the sending the protocol configuration information to the heterogeneous interconnection agent based on the border gateway protocol and in combination with the status information, the method may further include: based on the state information, calling a corresponding open interface of cloud computing, adding routing information for other virtual networks on a public network gateway of the virtual network corresponding to the current state information, and directing the next hop to an intranet IP address of a heterogeneous interconnection agency of the virtual network corresponding to the current state information so as to realize interconnection of the virtual networks. Specifically, the controller may call an Open interface (Open Application Programming Interface, open API) of each cloud computing service to add, on a public network gateway of each virtual network, routing information for virtual networks on other clouds according to the state information, and the next hop points to a heterogeneous interconnection agent (intranet IP address) of the local (virtual network).
In yet another specific embodiment, the method may further include: when any one of the target agents is detected to fail, a new target agent is determined from other heterogeneous interconnection agents according to the state information currently reported by each heterogeneous interconnection agent, so that the new target agent is used as a route reflector to establish a neighbor relation with the other heterogeneous interconnection agents, and interconnection of each virtual network is realized. Specifically, each heterogeneous interconnection agent can keep periodic heartbeats with the controller, so that the controller can timely detect the working state of each heterogeneous interconnection agent; further, when a target agent serving as a route reflector fails or is not reachable, a new heterogeneous interconnection agent can be reselected as a BGP route reflector, and configuration information can be re-issued for each heterogeneous interconnection agent.
And step S13, sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among a plurality of heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol, and realizing interconnection of the virtual networks.
In the method, the controller can send the response tunnel configuration information to each heterogeneous interconnection agent according to the preset tunnel configuration strategy so as to create corresponding tunnels among the heterogeneous interconnection agents, so that the subsequent heterogeneous interconnection agents can send the message to be transmitted to the heterogeneous interconnection agents in the virtual network on the target cloud after tunnel encapsulation according to the routing information in the BGP routing table, and send the message to the target host after decapsulation, and interconnection of the virtual network is realized.
In a specific embodiment, the tunneling the packets between the virtual networks based on the border gateway protocol may include: the heterogeneous interconnection agents generate a local routing table based on the border gateway protocol and combined with the state information of the corresponding virtual network so as to transmit messages among the heterogeneous interconnection agents by utilizing the corresponding tunnels according to the local routing table. Specifically, the routing update mechanism of BGP protocol can be used between heterogeneous interconnection agents to maintain the routing reachability in real time, generate a local routing table, and then transmit a message between the heterogeneous interconnection agents by using a relevant tunnel according to the local routing table, so as to implement interconnection of virtual networks.
Therefore, the three-layer interconnection of the heterogeneous multi-cloud virtual network can be realized by utilizing the controller based on the software-defined network technology and combining with the border gateway protocol; and the routing reachability among the virtual networks is automatically maintained by the border gateway protocol, so that the maintenance complexity is reduced. Meanwhile, by means of the controller based on the software-defined network technology, heterogeneous interconnection agents and virtual network gateways in the virtual networks on each cloud can be automatically deployed, and the controller automatically issues configuration on line and takes effect, so that the deployment complexity is reduced.
Referring to fig. 2, the embodiment of the invention discloses a virtual network interconnection method, which is applied to heterogeneous interconnection agents and comprises the following steps:
and S21, reporting the state information of the current virtual network to the controller.
In this embodiment, after each heterogeneous interconnection agent is online and associated with a public network IP, the present embodiment automatically connects to an SDN controller, and reports status information of a current virtual network to the SDN controller. The controller can establish a mapping relation with each heterogeneous interconnection agent according to the state information.
And S21, receiving protocol configuration information issued by the controller based on a border gateway protocol and the state information, and starting the border gateway protocol according to the protocol configuration information.
Further, the controller may issue BGP configuration information to each heterogeneous interconnect agent, which may include configuration information for the target agent (route reflector) and configuration information for other heterogeneous interconnect agents. And after receiving the BGP configuration information, the heterogeneous interconnection agents establish IBGP (Internal Border Gateway Protocol ) neighbor relations between the target agents serving as route reflectors and other heterogeneous interconnection agents, and also establish neighbor relations between the target agents so as to realize synchronization of the route information of the virtual network among all heterogeneous interconnection agents.
And S21, acquiring tunnel configuration information sent by the controller, and creating tunnels to other virtual networks according to the tunnel configuration information so as to realize interconnection of the virtual networks based on the border gateway protocol and transmitting messages among the virtual networks through the tunnels.
Correspondingly, each heterogeneous interconnection agent receives tunnel configuration information issued by the controller, and then establishes a fully connected tunnel (network) between itself and other heterogeneous interconnection agents according to the tunnel configuration information so as to realize interconnection of virtual networks by tunneling messages.
Therefore, the heterogeneous interconnection agent can utilize configuration information issued by a controller based on a software defined network technology and combine with a border gateway protocol to realize three-layer interconnection of the heterogeneous multi-cloud virtual network; and the routing reachability among the virtual networks is automatically maintained by the border gateway protocol, so that the maintenance complexity is reduced.
The following embodiment specifically describes an interconnection process between virtual networks on three clouds, and the embodiment of the application discloses a virtual network interconnection method, which includes:
in this embodiment, fig. 3 is a three-layer interconnection architecture diagram between virtual networks on three clouds, where each cloud has a virtual network (VM) or VPC (Virtual Private Cloud ), and each virtual network has a border gateway, and is responsible for forwarding network traffic, and a user virtual machine is deployed in each virtual network and accesses an external address of the virtual network or provides services to the outside through the virtual gateway. If three layers of interconnection of three virtual networks in the graph are to be realized, one basic premise is that the IP address prefixes of the three virtual networks cannot be overlapped, otherwise, the routing is disordered, and the cross-cloud access traffic is not communicated. Assume that the IP address prefix of the virtual network (noted VN 1) on Cloud1 (Cloud computing service) is 192.168.1.0/24, the gateway is 192.168.1.1, the IP address prefix of the virtual network (noted VN 2) on Cloud2 is 172.16.1.0/24, the gateway is 172.16.1.1, the IP address prefix of the virtual network (noted VN 3) on Cloud3 is 10.0.1.0/24, and the gateway is 10.0.1.1. A heterogeneous interconnection agent (HIA, heterogeneous Interconnection Agent) is deployed in each of VN1, VN2 and VN3, and is denoted as HIA1, HIA2 and HIA3, the internal network IP addresses thereof are IP-H1-I, IP-H2-I, IP-H3-I, respectively, and the public network IP addresses thereof are IP-H1-P, IP-H2-P, IP-H3-P, respectively. The gateways of the three virtual networks VN1, VN2 and VN3 are denoted GW1, GW2 and GW3, respectively.
Further, after the HIA1, the HIA2 and the HIA3 are online and are associated with the public network IP, the SDN controller is automatically connected, the running state of the SDN controller and the virtual network information (including IP address prefix, gateway address and the like) where the respective virtual network information is located are reported to the SDN controller, and the SDN controller records the information and establishes a mapping relationship with each heterogeneous interconnection agent, as shown in the following table one:
list one
Correspondingly, the SDN controller may issue a tunnel creation request to each heterogeneous interconnect agent, and build a heterogeneous fully-connected three-layer tunnel network at home of each heterogeneous interconnect agent, as shown in table two below:
watch II
For convenience of distinction, 6 tunnels on 3 HIAs are identified here by 6 different tunnel names, wherein 2 tunnels on each HIA are established on the public network IP address of the HIA, and the IP address relationship is as follows in table three:
watch III
Tunnel name Tunnel source IP IP for tunnel purposes
Tunnel1 IP-H1-P IP-H2-P
Tunnel2 IP-H1-P IP-H3-P
Tunnel3 IP-H2-P IP-H3-P
Tunnel4 IP-H2-P IP-H4-P
Tunnel5 IP-H3-P IP-H1-P
Tunnel6 IP-H3-P IP-H2-P
The SDN controller issues BGP configuration information to each heterogeneous interconnection agent, two HIAs are selected to serve as BGP route reflectors (BGP-RR), an IBGP neighbor relation is established between all other HIAs and the two HIAs serving as the BGP route reflectors, and an IBGP neighbor relation is also established between the two BGP route reflectors, so that the synchronization of the route information of the virtual network among all HIAs is realized. A schematic diagram of the neighbor relation between heterogeneous interconnect agents is shown in fig. 4. The HIA generates a local routing table according to the IP address reachability information of the virtual network learned by the IBGP, and sends the messages destined to the IP address prefixes of the virtual networks to the corresponding tunnels, as shown in the following table IV:
table four
Correspondingly, routing information sent to virtual networks on other clouds is required to be sent on the gateway of each virtual network, and the next hop of the message sent to the virtual networks on other clouds is directed to a heterogeneous interconnection proxy address (here, the intranet IP address of the heterogeneous interconnection proxy) in the current virtual network, as shown in the following table five. It should be noted that, this process may be implemented in two ways, one is that an operation and maintenance person adds a route to the virtual network IP address prefix on the other cloud on the gateway of the virtual network on each cloud, and the other is that the SDN controller automatically invokes the development interface of each cloud to automatically issue, and the second two ways are recommended to use, so that automation of the flow can be implemented.
TABLE five
In this way, three layers of interconnection of the whole inter-cloud virtual network are realized, when one virtual machine in the VN1 initiates communication to the other virtual machine in the VN2, firstly, a message arrives at a gateway GW1 of the VN1, after the GW1 queries a local routing table, the message is forwarded to a heterogeneous interconnection proxy HIA1 in the VN1, after the HIA1 queries the local routing table, the message is sent out from a Tunnel1 port, before the Tunnel1 port is sent out, the message is tunneled and sent to a heterogeneous interconnection proxy HIA2 in the VN2 through the internet, finally, the message is released from the HIA2 and then is forwarded to a target virtual machine, and a reverse response process from the virtual machine in the VN2 to the virtual machine in the VN1 is similar to the above, and details are omitted.
Therefore, in the application, the SDN controller can realize automatic configuration of heterogeneous interconnection agents, the BGP dynamic routing protocol realizes automatic routing information exchange, and routing information is provided for the accessibility of interconnection; therefore, interconnection of the virtual networks among multiple clouds can be realized, and deployment and management difficulties are reduced.
As shown in fig. 5, the present application provides a virtual network interconnection apparatus, which is applied to a controller, where the controller is deployed based on a software defined network technology, and includes:
the state information acquisition module 11 is used for acquiring state information of the virtual network reported by the heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network;
a protocol configuration information sending module 12, configured to send protocol configuration information to the heterogeneous interconnection agent based on a border gateway protocol in combination with the status information, so as to enable the border gateway protocol in the heterogeneous interconnection agent;
and the tunnel configuration module 13 is configured to send tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration policy, so as to create corresponding tunnels among the heterogeneous interconnection agents, and based on the border gateway protocol, transmit messages among the virtual networks through the tunnels, thereby realizing interconnection of the virtual networks.
Therefore, in the application, the automation configuration of the heterogeneous interconnection agent can be realized through the SDN controller, and the interconnection of the virtual network is realized by combining a border gateway protocol; therefore, interconnection of the virtual networks among multiple clouds can be realized, and deployment and management difficulties are reduced.
In a specific embodiment, the protocol configuration information sending module 12 may include:
a target agent determining unit, configured to determine a preset number of target agents from the heterogeneous interconnection agents according to the state information, so that the target agents serve as route reflectors to establish a neighbor relationship with other heterogeneous interconnection agents;
a configuration information generating unit, configured to generate, based on the border gateway protocol, first configuration information corresponding to the target agent and second configuration information corresponding to other heterogeneous interconnection agents in combination with the state information;
and the configuration information issuing unit is used for issuing the first configuration information and the second configuration information to the heterogeneous interconnection agent so as to enable the border gateway protocol in the heterogeneous interconnection agent according to the target agent based on the first configuration information and the second configuration information.
In a specific embodiment, the apparatus may further include:
and the routing information adding unit is used for adding the routing information to other virtual networks on the public network gateway of the virtual network corresponding to the current state information, calling the corresponding open interface of the cloud computing, and directing the next hop to the intranet IP address of the heterogeneous interconnection agent corresponding to the virtual network to realize the interconnection of the virtual networks.
In a specific embodiment, the apparatus may further include:
and the target agent replacement unit is used for determining a new target agent from other heterogeneous interconnection agents according to the state information currently reported by each heterogeneous interconnection agent when any one of the target agents is detected to be faulty, so that the new target agent is used as a route reflector to establish a neighbor relation with the other heterogeneous interconnection agents, and interconnection of each virtual network is realized.
In a specific embodiment, the tunnel configuration module 13 may include:
and the routing table generation unit is used for generating a local routing table by combining the state information of the corresponding virtual network based on the border gateway protocol by the heterogeneous interconnection agents so as to transmit messages among the heterogeneous interconnection agents by utilizing the corresponding tunnels according to the local routing table.
As shown in fig. 6, an embodiment of the present application discloses a virtual network interconnection device, which is applied to a heterogeneous interconnection agent, and includes:
a status information reporting module 21, configured to report status information of the current virtual network to the controller;
a protocol configuration module 22, configured to receive protocol configuration information issued by the controller based on a border gateway protocol and the state information, and enable the border gateway protocol according to the protocol configuration information;
the tunnel creation module 23 is configured to obtain the tunnel configuration information sent by the controller, and create tunnels to other virtual networks according to the tunnel configuration information, so as to implement interconnection of the virtual networks based on the border gateway protocol and transmit the messages between the virtual networks through the tunnels.
Therefore, in the application, the SDN controller can be used for realizing automatic configuration of the heterogeneous interconnection agent, and automatic route information exchange is realized by utilizing the BGP dynamic route protocol, so that route information is provided for the accessibility of interconnection; the deployment and management difficulty of virtual network interconnection is reduced.
Further, the embodiment of the present application further discloses an electronic device, and fig. 7 is a block diagram of the electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, where the computer program is loaded and executed by the processor 21 to implement relevant steps in the virtual network interconnection method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program capable of performing other specific tasks in addition to the computer program capable of performing the virtual network interconnection method performed by the electronic device 20 as disclosed in any of the foregoing embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the virtual network interconnection method disclosed above. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined the detailed description of the preferred embodiment of the present application, and the detailed description of the principles and embodiments of the present application has been provided herein by way of example only to facilitate the understanding of the method and core concepts of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The virtual network interconnection method is characterized by being applied to a controller, wherein the controller is deployed based on a software-defined network technology, and comprises the following steps:
acquiring state information of a virtual network reported by a plurality of heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network;
based on a border gateway protocol, transmitting protocol configuration information to the heterogeneous interconnection agent by combining the state information so as to enable the border gateway protocol in the heterogeneous interconnection agent;
and sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among the heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol, and realizing interconnection of the virtual networks.
2. The virtual network interconnection method according to claim 1, wherein the issuing protocol configuration information to the heterogeneous interconnection agent based on the border gateway protocol in combination with the status information includes:
determining a preset number of target agents from the heterogeneous interconnection agents according to the state information, so that the target agents serve as route reflectors to establish neighbor relations with other heterogeneous interconnection agents;
generating first configuration information corresponding to the target agent and second configuration information corresponding to other heterogeneous interconnection agents based on the border gateway protocol and in combination with the state information;
and sending the first configuration information and the second configuration information to the heterogeneous interconnection agent so as to enable the border gateway protocol in the heterogeneous interconnection agent according to the target agent based on the first configuration information and the second configuration information.
3. The virtual network interconnection method according to claim 2, wherein before the protocol configuration information is issued to the heterogeneous interconnection agent based on the border gateway protocol and in combination with the status information, the method further comprises:
based on the state information, calling a corresponding open interface of cloud computing, adding routing information for other virtual networks on a public network gateway of the virtual network corresponding to the current state information, and directing the next hop to an intranet IP address of a heterogeneous interconnection agency of the virtual network corresponding to the current state information so as to realize interconnection of the virtual networks.
4. The virtual network interconnection method of claim 2, further comprising:
when any one of the target agents is detected to fail, a new target agent is determined from other heterogeneous interconnection agents according to the state information currently reported by each heterogeneous interconnection agent, so that the new target agent is used as a route reflector to establish a neighbor relation with the other heterogeneous interconnection agents, and interconnection of each virtual network is realized.
5. The virtual network interconnection method according to claim 1, wherein the transmitting the message between the virtual networks through the tunnel based on the border gateway protocol includes:
the heterogeneous interconnection agents generate a local routing table based on the border gateway protocol and combined with the state information of the corresponding virtual network so as to transmit messages among the heterogeneous interconnection agents by utilizing the corresponding tunnels according to the local routing table.
6. The virtual network interconnection method is characterized by being applied to a heterogeneous interconnection agent and comprising the following steps of:
reporting the state information of the current virtual network to a controller;
receiving protocol configuration information issued by the controller based on a border gateway protocol and the state information, and starting the border gateway protocol according to the protocol configuration information;
and acquiring tunnel configuration information sent by the controller, and creating tunnels to other virtual networks according to the tunnel configuration information so as to realize interconnection of the virtual networks based on the border gateway protocol and transmitting messages among the virtual networks through the tunnels.
7. A virtual networking device, applied to a controller, the controller deployed based on a software defined networking technology, comprising:
the state information acquisition module is used for acquiring the state information of the virtual network reported by the heterogeneous interconnection agents; the heterogeneous interconnection agent is positioned in a virtual network of cloud computing, and is associated with a public network;
the protocol configuration information sending module is used for sending protocol configuration information to the heterogeneous interconnection agent based on a border gateway protocol by combining the state information so as to enable the border gateway protocol in the heterogeneous interconnection agent;
and the tunnel configuration module is used for sending tunnel configuration information to the heterogeneous interconnection agents according to a preset tunnel configuration strategy so as to establish corresponding tunnels among a plurality of heterogeneous interconnection agents, transmitting messages among the virtual networks through the tunnels based on the border gateway protocol and realizing the interconnection of the virtual networks.
8. A virtual networking device, for use with a heterogeneous interconnection agent, comprising:
the state information reporting module is used for reporting the state information of the current virtual network to the controller;
the protocol configuration module is used for receiving protocol configuration information issued by the controller based on a border gateway protocol and the state information, and starting the border gateway protocol according to the protocol configuration information;
and the tunnel creation module is used for acquiring the tunnel configuration information sent by the controller, creating tunnels to other virtual networks according to the tunnel configuration information so as to realize interconnection of the virtual networks based on the border gateway protocol and transmitting messages among the virtual networks through the tunnels.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the virtual network interconnection method of any one of claims 1 to 6.
10. A computer readable storage medium for storing a computer program which when executed by a processor implements the virtual network interconnection method of any one of claims 1 to 6.
CN202311421433.XA 2023-10-30 2023-10-30 Virtual network interconnection method, device, equipment and storage medium Pending CN117319140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311421433.XA CN117319140A (en) 2023-10-30 2023-10-30 Virtual network interconnection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311421433.XA CN117319140A (en) 2023-10-30 2023-10-30 Virtual network interconnection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117319140A true CN117319140A (en) 2023-12-29

Family

ID=89260351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311421433.XA Pending CN117319140A (en) 2023-10-30 2023-10-30 Virtual network interconnection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117319140A (en)

Similar Documents

Publication Publication Date Title
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
CN102971992B (en) Virtual special local area network equipment, networking component and data frame forwarding method
US20180287990A1 (en) Layer 3 convergence for evpn link failure
CN104219147B (en) The VPN of edge device realizes processing method and processing device
CN107181688B (en) System and method for realizing server-side cross-domain data transmission optimization in SDN network
CN104378297B (en) A kind of message forwarding method and equipment
CN107040469A (en) The network equipment and method
CN102739497B (en) Automatic generation method for routes and device thereof
CN105264493A (en) Dynamic virtual machines migration over information centric networks
CN107948041B (en) Method and equipment for constructing VXLAN centralized multi-active gateway
CN103270736A (en) Delegate gateways and proxy for target hosts in large layer 2 and address resolution with duplicated internet protocol addresses
US11349749B2 (en) Node protection for bum traffic for multi-homed node failure
CN101043430B (en) Method for converting network address between equipments
EP3809641A1 (en) Improved port mirroring over evpn vxlan
CN108259302B (en) Method and device for realizing centralized gateway networking
WO2018171529A1 (en) Method, device and computer storage medium for implementing double control plane
CN111314196A (en) Data center network hybrid overlay communication method
CN103118148A (en) Method and device for updating ARP (address resolution protocol) cache
EP4033704A1 (en) Routing information transmission method and apparatus, and data center interconnection network
WO2023173720A1 (en) Application access method, cloud proxy assembly, node proxy assembly, device and medium
CN102891903A (en) NAT (Network Address Translation) converting method and equipment
CN100364292C (en) Virtual special network system of mixed station mixed skeleton network and its realizing method
CN114172865B (en) IPv6 dual stack implementation method under cloud network
CN113364660B (en) Data packet processing method and device in LVS load balancing
CN113037883B (en) Method and device for updating MAC address table entries

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