A method and device for cross-resource pool layer 2 intercommunication in a cloud network

By introducing L2TGW with ARP table and double-layer VXLAN tunnel into the cloud network, the problem of network segment address conflict for cross-resource pool interoperability in the cloud network is solved, and cross-resource pool data transmission in the existing network environment on the cloud is realized, improving Improves the flexibility and reliability of network interoperability.

CN118555166BActive Publication Date: 2024-09-27CHINA TELECOM CLOUD TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411025682.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-09-27
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing cross-resource pool interoperability products are difficult to achieve Layer 2 interoperability in the cloud network, especially when there is a network segment address conflict, and cannot realize cross-resource pool data transmission in the network environment that has been established on the cloud.

Method used

Introduce L2TGW (Layer2 Tunnel Gateway) with ARP table and combine it with double-layer VXLAN tunnel. By configuring ARP table and VXLAN tunnel for data encapsulation and forwarding, data transmission across resource pools can be ensured, and interoperability can be achieved even if there is a network segment conflict.

Benefits of technology

The restriction of network segment address conflict verification is lifted, data transmission across resource pools is realized on the cloud, and the flexibility and reliability of network interoperability are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555166B
    Figure CN118555166B
Patent Text Reader

Abstract

The present invention relates to a method and device for cross-resource pool layer 2 intercommunication in a cloud network, belonging to the field of data transmission. The method comprises: creating VPC, VPC gateway, tunnel subnet and layer 2 access subnet in each resource pool respectively; connecting the tunnel subnets at both ends; setting L2TGW of each end tunnel subnet; allocating IP addresses in each end tunnel subnet, and configuring the L2TGW virtual interface to the same end; allocating interconnection access IP to each end layer 2 access subnet, and configuring the interconnection access IP to the remaining virtual interface of the L2TGW at the same end; creating a VXLAN tunnel; configuring an ARP table of a virtual machine in the layer 2 access subnet at the same end on the L2TGW at each end, and creating a route with the next hop being the IP address of the opposite end tunnel subnet on the L2TGW at each end; creating a layer 2 connection instance, and performing cross-resource pool data transmission between a first resource pool and a second resource pool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data transmission, and in particular relates to a method and device for cross-resource pool layer 2 intercommunication in a cloud network. Background Art

[0002] Cloud network is a cloud-centric virtualized network infrastructure for tenants and applications built on cloud connections using virtualization technology. It features sharing, elasticity, measurability, self-service, and ubiquitous connectivity. In cloud computing scenarios, the separation of the control plane and the forwarding plane is achieved using virtual networks and SDN technologies. The cloud network architecture of the data center consists of the cloud management layer, control layer, and forwarding layer from top to bottom. The cloud management platform is responsible for orchestrating services for the northbound API provided by the control layer. The SDN controller in the middle communicates with the computing nodes and network element nodes of the forwarding plane based on protocols such as OpenFlow and Netconf. It sends flow table entries to the computing node OVS and sends relevant configuration instructions to the network element nodes to control the forwarding of data packets.

[0003] The private network VPC (Virtual Private Cloud) is a completely isolated, secure and definable private network environment built for users. Different VPCs cannot communicate with each other by default. Within a resource pool (data center), two VPCs can be interconnected through peer connections or VPC terminal nodes. If you want to connect two VPCs in different resource pools and different regions, you need to use cloud-to-cloud interconnection, cross-region dedicated lines, cross-region peer connections, or products such as Cloud Enterprise Network, but they will add some address conflict checks to the network segments at both ends. If the check passes, data transmission can be carried out. The address of VPC includes the network address and the host address, and the network segment address conflict refers to the situation where the network addresses are the same.

[0004] Existing products that enable intercommunication across resource pools often isolate the subnet address segments at both ends during the network planning phase to avoid network address conflicts that may occur later. For a network environment that has already been built on the cloud and specific services have been launched, it is difficult to achieve Layer 2 intercommunication across resource pools. In other words, intercommunication between subnets in two VPCs across resource pools can only be achieved when there is no (network segment address) conflict. In the scenario where there are subnets in different network segments in the two VPCs, Layer 2 intercommunication across resource pools cannot be achieved. Summary of the invention

[0005] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method and device for cross-resource pool Layer 2 intercommunication in a cloud network, introduce an L2TGW (Layer2 Tunnel Gateway) with an ARP (Address Resolution Protocol) table, and combine it with a double-layer vxlan tunnel for data encapsulation, and give a process for processing message data based on the structure. In the case that a network environment has been built on the cloud and specific services have been launched, data transmission across resource pools can be completed even if a network segment conflict occurs.

[0006] In a first aspect of the present invention, a method for cross-resource pool Layer 2 intercommunication in a cloud network is proposed, the method comprising:

[0007] S1, respectively create a VPC, a VPC gateway, a tunnel subnet, and a Layer 2 access subnet in the first resource pool and the second resource pool that need to perform Layer 2 intercommunication, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox Layer 2 access subnets are the same;

[0008] S2, connecting the tunnel subnets at both ends;

[0009] S3, set up the L2TGW of each end tunnel subnet;

[0010] S4, allocate IP addresses in the tunnel subnets at each end, and configure the IP addresses to the L2TGW virtual interfaces at the same end;

[0011] S5, allocate interconnection access IP to each end layer 2 access subnet, and configure the interconnection access IP on the remaining virtual interface of the L2TGW at the same end;

[0012] S6: Create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management systems, and add the created VXLAN tunnels to the Layer 2 BD.

[0013] S7: Configure the ARP table of the virtual machine in the same-end Layer 2 access subnet on each L2TGW, and create a route on each L2TGW with the next hop being the IP address of the opposite tunnel subnet;

[0014] S8, creating a Layer 2 connection instance for each end's Layer 2 access subnet;

[0015] S9, performing cross-resource pool data transmission between the first resource pool and the second resource pool according to the layer 2 connection instance;

[0016] Among them, the VXLAN tunnel between the heterodox L2TGWs is the inner VXLAN tunnel, and the VXLAN tunnel between the L2TGW and the VPC gateway at the same end is the outer VXLAN tunnel. The inner VXLAN tunnel and the outer VXLAN tunnel have different horizontal segmentation groups, and the messages in the same horizontal segmentation group cannot be flooded to each other;

[0017] The ARP table includes a first flow table and a second flow table, each of which has a table number, a priority, a matching item, and an action item;

[0018] The first flow table and the second flow table have the same priority;

[0019] The matching items of the first flow table include matching ARP request and reply messages, the metadate in the matching items of the first flow table is a subnet identifier, and the action items of the first flow table are executing VXLAN encapsulation, setting a tunnel id, and setting a tunnel destination IP address and an egress port;

[0020] The metadate in the matching item of the second flow table is the subnet identifier, and the matching item of the second flow table also includes matching the destination MAC. The action items of the second flow table are to execute VXLAN encapsulation, set the tunnel ID, set the tunnel destination IP address and the egress port, wherein the matching destination MAC specifically matches all unicast Ethernet data packets or matches all multicast data packets, wherein the multicast data packets include broadcast data packets.

[0021] A second aspect of the present invention provides a cross-resource pool Layer 2 intercommunication device in a cloud network, which is used to implement the cross-resource pool Layer 2 intercommunication method in a cloud network according to any one of the first aspects, and the device includes:

[0022] A first creation module is used to create a VPC, a VPC gateway, a tunnel subnet, and a layer 2 access subnet in a first resource pool and a second resource pool that need to perform layer 2 intercommunication, respectively, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox layer 2 access subnets are the same;

[0023] A connection module is used to connect the tunnel subnets at both ends;

[0024] A setting module is used to set the L2TGW of each end tunnel subnet;

[0025] An allocation module, used to allocate IP addresses in the tunnel subnets at each end and configure the IP addresses to the L2TGW virtual interfaces at the same end;

[0026] The first configuration module is used to allocate an interconnection access IP to the Layer 2 access subnet of each end, and configure the interconnection access IP on the remaining virtual interface of the L2TGW at the same end;

[0027] The second creation module is used to create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management, and add the created VXLAN tunnels to the Layer 2 BD;

[0028] The second configuration module is used to configure the ARP table of the virtual machine in the same-end layer 2 access subnet on each end L2TGW, and create a route with the next hop being the IP address of the opposite end tunnel subnet on each end L2TGW;

[0029] The third creation module is used to create a layer 2 connection instance of the layer 2 access subnet of each end;

[0030] The transmission module is used to perform cross-resource pool data transmission between the first resource pool and the second resource pool according to the second layer connection instance.

[0031] A third aspect of the present invention provides a cross-resource pool Layer 2 intercommunication system in a cloud network, comprising: a memory and one or more processors.

[0032] One or more applications are stored in the memory, and the one or more applications are suitable for being executed by one or more processors to implement the cross-resource pool Layer 2 intercommunication method in the cloud network of the first aspect.

[0033] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which can be loaded and executed by a processor to implement the cross-resource pool Layer 2 intercommunication method in a cloud network of the first aspect.

[0034] The beneficial effects of the present invention are as follows:

[0035] The method and device of the present invention introduce an L2TGW with an ARP table, and perform data encapsulation in combination with a double-layer vxlan tunnel, and provide a process for processing message data based on the constructed structure. The ARP flow table introduces the virtual machine traffic accessing the opposite end to the L2TGW, and after performing multi-layer VXLAN encapsulation on the L2TGW, the traffic is sent to the VPC gateway, and a VXLAN tunnel is created between the VPC gateway and the enterprise gateway to import the traffic into the enterprise gateway. The enterprise gateways of various resource pools in the cloud interconnection / cross-regional network can communicate with each other, and the limitation of network segment address conflict check is lifted. In the case where a network environment has been built on the cloud and specific services have been launched, data transmission across resource pools can be completed even if a network segment conflict occurs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0037] Figure 1 A schematic diagram of a process for a cross-resource pool Layer 2 intercommunication method in a cloud network provided by an embodiment of the present invention;

[0038] Figure 2 A L2TGW network element configuration model diagram provided by an embodiment of the present invention;

[0039] Figure 3 A cross-resource pool data transmission flow chart provided by an embodiment of the present invention;

[0040] Figure 4 A schematic diagram of a network planning for Layer 2 interconnection across resource pools provided in an embodiment of the present invention;

[0041] Figure 5 A diagram of a resource pool VPC networking architecture provided in an embodiment of the present invention;

[0042] Figure 6 A diagram of a cross-resource pool layer 2 interconnection resource pool network architecture provided by an embodiment of the present invention;

[0043] Figure 7 A cloud network architecture diagram of a data center provided by an embodiment of the present invention;

[0044] Figure 8 A schematic diagram of the structure of a cross-resource pool Layer 2 intercommunication device in a cloud network provided by an embodiment of the present invention;

[0045] Fig. 9 A schematic diagram of the structure of a cross-resource pool Layer 2 intercommunication system in a cloud network provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0047] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0048] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0050] The present invention proposes a cross-resource pool Layer 2 intercommunication method and device in a cloud network, in order to solve the problem in the existing traffic forwarding mechanism that even when there are multiple traffic paths at the export of service providers such as China Mobile, China Unicom, and China Telecom, some manufacturers' policy routing, i.e., custom forwarding strategies, only support redirection to one next hop, resulting in outgoing traffic only being able to go on one path, with a large number of traffic paths being idle, wasting export bandwidth resources, and low forwarding efficiency and equipment economic benefits.

[0051] Method Embodiment

[0052] Reference Manual Attached Figure 1 , shows a flow chart of a method for Layer 2 intercommunication across resource pools in a cloud network provided by an embodiment of the present invention.

[0053] An embodiment of the present invention provides a method for cross-resource pool Layer 2 intercommunication in a cloud network. Specifically, the method includes steps S1 to S9.

[0054] S1, respectively create a VPC, a VPC gateway, a tunnel subnet, and a Layer 2 access subnet in the first resource pool and the second resource pool that need to perform Layer 2 intercommunication, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox Layer 2 access subnets are the same;

[0055] Among them, heresy is a relative expression. In a cross-resource pool Layer 2 interconnection network, the first resource pool and the second resource pool are the local end and the opposite end of each other. Heresy, or the relative end, refers to the resource pools located at different ends, as opposed to the same end. The same end refers to the resource pools belonging to the same end.

[0056] The tunnel subnet is an IP address, including the network part and the host part. Different network segments mean that the network parts are different and do not overlap with each other. The layer 2 access subnet is the subnet that needs to be interconnected at the layer 2.

[0057] S2, connecting the tunnel subnets at both ends;

[0058] S3, set up the L2TGW of each end tunnel subnet;

[0059] Among them, L2TGW (Layer2 Tunnel Gateway) is a network element that uses a double-layer VXLAN tunnel to achieve cross-resource pool Layer 2 intercommunication. It allows data to be converted and flow between the Layer 2 (data link layer) of the physical network and the virtual Overlay network. The gateway processes the data flow entering and leaving the Overlay network to ensure that the data is correctly encapsulated and decapsulated. VXLAN (Virtual eXtensible LAN) is a type of Overlay technology in network virtualization technology.

[0060] Refer to the instruction manual Figure 2 , showing a L2TGW network element configuration model diagram provided by an embodiment of the present invention.

[0061] It should be noted that L2TGW has two main functions: one is to perform double-layer VXLAN encapsulation on virtual machine traffic, and the other is to answer ARP requests from the other end. The network element configuration model is as follows: Figure 2As shown in the figure, two BDs are created for each L2TGW, and a loop interface is created in each BD. Configure the interconnection access IP on the loop1 interface of BD1 (one access IP for each Layer 2 access subnet), create a VXLAN tunnel to the computing node (host) where the virtual machine in the Layer 2 access subnet is located and an inner VXLAN tunnel to the tunnel IP of the peer L2TGW, configure the tunnel IP on the loop2 interface of BD2, and create an outer VXLAN tunnel to the VGW. At the same time, configure the ARP table entries of all virtual machines in the Layer 2 access subnet and the detailed route to the tunnel IP of the peer L2TGW. The next hop is the tunnel subnet gateway IP on the VGW, and the outgoing interface is loop2.

[0062] In a possible implementation manner, the L2TGW includes a temporarily created L2TGW and a managed pre-deployed L2TGW.

[0063] It is understandable that when creating a Layer 2 tunnel gateway, if there is an available and managed L2TGW, the pre-deployed one is used; if not, it is created directly. This can increase the reuse rate of the Layer 2 tunnel gateway and avoid repeated creation and waste of resources.

[0064] S4, allocate IP addresses in the tunnel subnets at each end, and configure the IP addresses to the L2TGW virtual interfaces at the same end;

[0065] Among them, configuring the IP address to the virtual interface of the L2TGW at the same end means that if it is an IP address created by the local tunnel subnet, it is connected to the virtual interface of the L2TGW of the local tunnel subnet; if it is an IP address created by the opposite tunnel subnet, it is connected to the virtual interface of the L2TGW of the opposite tunnel subnet.

[0066] S5, allocate interconnection access IP to each end layer 2 access subnet, and configure the interconnection access IP on the remaining virtual interface of the L2TGW at the same end;

[0067] Among them, the interconnection access IP is also called the Layer 2 access IP, and its number is the same as the number of subnets that need to be interconnected at Layer 2. The Layer 2 access IP network segment allocated to each local Layer 2 access subnet is the same, but the host address is different.

[0068] S6: Create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management systems, and add the created VXLAN tunnels to the Layer 2 BD.

[0069] In a possible implementation, the VXLAN tunnel between the heterogeneous L2TGWs is an inner VXLAN tunnel, and the VXLAN tunnel between the L2TGW and the VPC gateway at the same end is an outer VXLAN tunnel. The inner VXLAN tunnel and the outer VXLAN tunnel have different horizontal split groups, and the messages in the same horizontal split group cannot flood each other.

[0070] In a possible implementation manner, the number of layer 2 BDs of each L2TGW is two.

[0071] The Layer 2 BD (Bridge Domain) is used to identify a Layer 2 broadcast domain. This bridge domain is used to manage and distribute data coming through the VXLAN tunnel, including using MAC address learning, broadcast and multicast traffic control, etc. within the bridge domain.

[0072] S7: Configure the ARP table of the virtual machine in the Layer 2 access subnet on each end on the L2TGW at each end, and create a route on the L2TGW at each end with the next hop being the IP address of the tunnel subnet on the other end;

[0073] Among them, an ARP entry refers to a record in the ARP (Address Resolution Protocol) table, which associates the IP address of each device on the network with its corresponding MAC address. The ARP entry of the virtual machine in the local Layer 2 access subnet is configured on the L2TGW, and the ARP entry is issued to allow the L2TGW to perform proxy answers for the ARP request from the other end, to prevent the ARP entry of the gateway in the virtual machine from being incorrectly refreshed when the ARP of the other end requests the MAC of the local virtual machine when the IP of the Layer 2 access subnet gateway at both ends is the same but the MAC is inconsistent, resulting in a disconnection.

[0074] Creating a route on each L2TGW with the next hop being the peer tunnel subnet IP means setting a routing rule on the L2TGW to specify how the data should reach the other end of the specified tunnel from the current network location when sending data to the peer tunnel IP. In the routing table, "next hop" is an important concept in the routing decision process, indicating the next device or interface to which the data packet should be sent. In this case, the next hop is set to the gateway IP of the Overlay tunnel subnet, which tells the L2TGW to send the data packet to be sent to the peer tunnel IP to this gateway IP first.

[0075] In a possible implementation, the ARP table includes a first flow table and a second flow table, both of which have a table number, a priority, a matching item, and an action item;

[0076] The first flow table and the second flow table have the same priority;

[0077] The matching items of the first flow table include matching ARP request and reply packets, the metadate in the matching items of the first flow table is the subnet identifier, and the action items of the first flow table are executing VXLAN encapsulation, setting the tunnel id, setting the tunnel destination IP address and the egress port;

[0078] The metadate in the matching items of the second flow table is the subnet identifier, and the matching items of the second flow table also include matching the destination MAC. The action items of the second flow table are to execute VXLAN encapsulation, set the tunnel ID, set the tunnel destination IP address and the egress port, wherein matching the destination MAC specifically matches all unicast Ethernet data packets or matches all multicast data packets, wherein the multicast data packets include broadcast data packets.

[0079] Referring to Table 1, Table 1 shows the relevant flow table items on the computing node, which mainly involve two flow tables.

[0080]

[0081] Table 1

[0082] Each flow table consists of table number, priority, match items and action items. The first flow table matches ARP request and reply packets. The metadata is the subnet identifier. The action item is to perform VXLAN encapsulation, set the tunnel id, tunnel destination IP address and egress port. In the second flow table, the metadata is the subnet identifier, dl_dst is the destination MAC, and the mask form is used here. The value 00:00:00:00:00:00 / 01:00:00:00:00:00 matches all unicast Ethernet packets, and the value 01:00:00:00:00:00 / 01:00:00:00:00:00 matches all multicast (including broadcast) packets. The action item is the same as the first flow table above. After the packet is encapsulated by VXLAN, it is sent to L2TGW. In other words, the 8th bit of the mac of the second flow table match item is 0, which will match all unknown unicast packets.

[0083] S8, creating a Layer 2 connection instance for each end's Layer 2 access subnet;

[0084] It should be noted that creating a Layer 2 connection instance refers to creating a network connection configuration on a specific Layer 2 access subnet. It involves setting parameters within the Layer 2 network, such as port configuration, VLAN settings, MAC address filtering, etc., to achieve correct connection and communication between devices.

[0085] Refer to the instruction manual Figure 3 , shows a cross-resource pool data transmission flow chart provided by an embodiment of the present invention.

[0086] S9: Perform cross-resource pool data transmission between the first resource pool and the second resource pool according to the layer 2 connection instance.

[0087] In a possible implementation manner, the process of cross-resource pool data transmission includes a forward cross-resource pool data transmission process and a return cross-resource pool data transmission process in opposite paths;

[0088] S9 specifically includes:

[0089] S901, receiving an original data packet from a first resource pool;

[0090] S902, perform VXLAN encapsulation on the original data packet through the computing node;

[0091] S903, sending the encapsulated original data packet to the L2TGW at the same end;

[0092] S904, decapsulating the VXLAN encapsulation of the received original data packet;

[0093] S905, performing inner VXLAN encapsulation and outer VXLAN encapsulation on the original data packet after the VXLAN encapsulation is removed;

[0094] S906, sending the encapsulated original data packet to the VPC gateway at the same end;

[0095] S907, remove the outer VXLAN encapsulation of the received original data packet, and perform VXLAN encapsulation on the original data packet after the outer VXLAN encapsulation is removed;

[0096] S908, sending the encapsulated original data packet to the enterprise gateway at the same end;

[0097] S909, sending the encapsulated original data packet to the enterprise gateway of the other end through the inter-cloud internet network, completing the outbound cross-resource pool data transmission process;

[0098] S9010, execute the backhaul cross-resource pool data transmission process to transmit the original data packet to the second resource pool of the other end.

[0099] For example, when the two-layer mutual access is performed across resource pools and the same network segment, the virtual machine 172.16.20.11 (referred to as VM1) in the VPC1 subnet C of the Guizhou resource pool accesses the virtual machine 172.16.20.89 (referred to as VM2) in the VPC2 subnet C of the Inner Mongolia Autonomous Region resource pool. Its network behavior can be summarized as follows. First, VM1 in the Guizhou resource pool sends an ARP request to learn the MAC address of VM2. Since there is an ARP entry for VM2 on the L2TGW of VPC2, it will answer on behalf of VM1. Secondly, after VM1 learns the MAC address of VM2, it starts to send IP packets. The OVS on the host where VM1 is located performs a VXLAN encapsulation on the original packet of the virtual machine. Then, after receiving the packet, the L2TGW first removes the VXLAN encapsulation of the computing node, performs the inner and outer VXLAN encapsulation in sequence, and sends the encapsulated packet to the VGW. Next, the VGW first removes the outer VXLAN encapsulation, then performs its own VXLAN encapsulation and sends it to the EGW. Finally, the cloud interconnection network sends the message to the EGW in the Inner Mongolia Autonomous Region resource pool. It is worth noting that after receiving the message, the peer VPC2 performs the opposite processing flow, where the L2TGW of VPC2 needs to perform two de-VXLAN encapsulations, and the return message returns to VPC1 along the opposite path.

[0100] In a possible implementation manner, after S9, the method further includes:

[0101] Add or delete the Layer 2 access subnet on each end.

[0102] Refer to the instruction manual Figure 4 , showing a schematic diagram of network planning for Layer 2 interconnection across resource pools provided in an embodiment of the present invention.

[0103] For example, VPC1 and VPC2 are two VPCs in the Guizhou resource pool and the Inner Mongolia Autonomous Region resource pool respectively. Subnet A of VPC1 and subnet B of VPC2 have different network segments, and the network segments do not overlap. These two subnets are called Overlay tunnel subnets, and the subnets that need to be interconnected at Layer 2 are called Layer 2 access subnets, such as subnet C and subnet D. The Layer 2 access subnets in the two resource pools have the same network segment. The process of configuring Layer 2 interconnection with the help of L2TGW is as follows: First, create the local VPC, tunnel subnet A, Layer 2 access subnet C, and VPC gateway VGW1 in the Guizhou resource pool. Similarly, create the peer VPC, tunnel subnet B, Layer 2 access subnet C, and VPC gateway VGW2 in the Inner Mongolia Autonomous Region resource pool. Secondly, before creating L2TGW, use the existing cross-resource pool interconnection technology products to open up the Overlay tunnel subnets A and B in the two resource pools in advance. The network segments of the local and peer tunnel subnets cannot be the same. Next, select the local Overlay tunnel subnet and create the local Layer 2 tunnel gateway. When creating, if there is an available and managed L2TGW, use the pre-deployed one; if not, create it directly. In other words, L2TGW supports both pre-deployment and temporary creation. After L2TGW is online, allocate an IP address in the tunnel subnet and configure it on the L2TGW virtual interface, and create a VXLAN tunnel between L2TGW and VGW. Select the peer Overlay tunnel subnet and create the peer Layer 2 tunnel gateway. Then, select the local Layer 2 access subnet and create the local Layer 2 connection instance. In each Layer 2 access subnet, allocate an interconnection access IP and configure it on another virtual interface of L2TGW, create VXLAN tunnels between L2TGW and the computing node and the peer L2TGW, and add them to the Layer 2 BD (Bridge Domain). At the same time, configure the ARP table entries of the virtual machines in the local Layer 2 access subnet on the L2TGW. The reason for issuing the ARP table entries here is to allow the L2TGW to perform proxy answers for the ARP requests from the other end, to prevent the ARP table entries of the gateway in the virtual machine from being incorrectly refreshed when the ARP of the other end requests the MAC of the local virtual machine when the gateway IP of the Layer 2 access subnets at both ends is the same but the MAC is inconsistent, resulting in a disconnection. In addition, a route to the tunnel IP of the other end needs to be configured on the L2TGW, and the next hop is the gateway IP of the Overlay tunnel subnet. Select the Layer 2 access subnet of the other end and create a Layer 2 connection instance of the other end. Finally, add and delete Layer 2 access subnets on the local and the other end. In scenarios with multiple Layer 2 access subnets, such as subnet C of VPC1 and subnet D of VPC2, normal communication can also be achieved.

[0104] Refer to the instruction manual Figure 5 , showing a resource pool VPC networking architecture diagram provided in an embodiment of the present invention.

[0105] Resource pool (data center) VPC network architecture and traffic forwarding path are as follows Figure 5 As shown in the figure, the Spine-Leaf network architecture is used inside the data center, and the virtual network is implemented based on distributed virtual routing technology. The east-west Layer 3 traffic within the VPC is forwarded by the DVR (Distributed Virtual Routing) router on the computing node, without having to detour the VGW (VPC Gateway). Line 1 in the figure represents the east-west traffic exchange between two virtual machines in the same subnet or across subnets in the same VPC, and line 2 represents the north-south traffic forwarding path for virtual machines with elastic IPs to access the public network. Cross-resource pool Layer 2 intercommunication adds a new VNF (Virtual Network Function) network element in the above network architecture, defined as L2TGW (Layer2 Tunnel Gateway). Its main purpose is to perform double-layer VXLAN encapsulation on virtual machine traffic accessed across resource pools to achieve Layer 2 intercommunication in the same network segment.

[0106] Refer to the instruction manual Figure 6 , showing a cross-resource pool Layer 2 interconnection resource pool networking architecture diagram provided by an embodiment of the present invention.

[0107] The network architecture in the resource pool is as follows: Figure 6 As shown in the figure, the flow table on the computing node OVS introduces the virtual machine traffic accessing the other end into the L2TGW. After VXLAN encapsulation on the L2TGW, the traffic is sent to the VGW. A VXLAN tunnel is created between the VGW and EGW (Enterprise Gateway) to import the traffic into the EGW. The EGWs of various resource pools in the inter-cloud interconnection / cross-regional network can communicate with each other.

[0108] In actual application, the design of the two architectures illustrates and supports the feasibility of the cross-resource pool Layer 2 intercommunication method in cloud networks.

[0109] Refer to the instruction manual Figure 7 , showing a cloud network architecture diagram of a data center provided by an embodiment of the present invention.

[0110] It should be noted that the described solution is carried out in the cloud network, such as Figure 7As shown in the figure, cloud network is a virtualized network infrastructure for tenants and applications built on cloud connections using virtualization technology. It has the characteristics of sharing, elasticity, measurability, self-service and ubiquitous connection. In the cloud computing scenario, the control plane and forwarding plane are separated by using virtual network and SDN (Software Defined Network) technology. The cloud network architecture of the data center consists of the cloud management layer, control layer and forwarding layer from top to bottom. The cloud management platform is responsible for business orchestration of the northbound API provided by the control layer. The SDN controller in the middle communicates with the computing nodes and network element nodes of the forwarding plane based on protocols such as OpenFlow and Netconf. It sends flow table entries to the computing node OVS and sends relevant configuration instructions to the network element nodes to control the forwarding of data packets.

[0111] The beneficial effects of the present invention are as follows:

[0112] The method and device of the present invention introduce an L2TGW with an ARP table, and perform data encapsulation in combination with a double-layer vxlan tunnel, and provide a process for processing message data based on the constructed structure. The ARP flow table introduces the virtual machine traffic accessing the opposite end to the L2TGW, and after performing multi-layer VXLAN encapsulation on the L2TGW, the traffic is sent to the VPC gateway, and a VXLAN tunnel is created between the VPC gateway and the enterprise gateway to import the traffic into the enterprise gateway. The enterprise gateways of various resource pools in the cloud interconnection / cross-regional network can communicate with each other, and the limitation of network segment address conflict check is lifted. In the case where a network environment has been built on the cloud and specific services have been launched, data transmission across resource pools can be completed even if a network segment conflict occurs.

[0113] Device Embodiment

[0114] Reference Manual Attached Figure 8 , showing a schematic diagram of the structure of a cross-resource pool Layer 2 interconnection device in a cloud network provided by an embodiment of the present invention.

[0115] Another specific embodiment of the present invention discloses a cross-resource pool layer 2 intercommunication device in a cloud network, which is used to implement the cross-resource pool layer 2 intercommunication method in a cloud network in any one of the method embodiments. The cross-resource pool layer 2 intercommunication device 20 in the cloud network includes:

[0116] The first creation module 201 is used to create a VPC, a VPC gateway, a tunnel subnet and a layer 2 access subnet in the first resource pool and the second resource pool that need to perform layer 2 intercommunication, respectively, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox layer 2 access subnets are the same;

[0117] A connection module 202, used to connect the tunnel subnets at both ends;

[0118] A setting module 203, used to set the L2TGW of each end tunnel subnet;

[0119] The allocation module 204 is used to allocate IP addresses in the tunnel subnets at each end and configure the IP addresses to the L2TGW virtual interfaces at the same end;

[0120] The first configuration module 205 is used to allocate an interconnection access IP to the Layer 2 access subnet of each end, and configure the interconnection access IP on the remaining virtual interface of the L2TGW at the same end;

[0121] The second creation module 206 is used to create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management, and add the created VXLAN tunnels to the Layer 2 BD;

[0122] The second configuration module 207 is used to configure the ARP table of the virtual machine in the same-end layer 2 access subnet on each end L2TGW, and create a route with the next hop being the IP address of the opposite end tunnel subnet on each end L2TGW;

[0123] The third creation module 208 is used to create a layer 2 connection instance of the layer 2 access subnet of each end;

[0124] The transmission module 209 is used to perform cross-resource pool data transmission between the first resource pool and the second resource pool according to the layer 2 connection instance.

[0125] In a possible implementation manner, the L2TGW includes a temporarily created L2TGW and a managed pre-deployed L2TGW.

[0126] In a possible implementation, the VXLAN tunnel between heterogeneous L2TGWs is an inner VXLAN tunnel, and the VXLAN tunnel between the same-end L2TGW and the VPC gateway is an outer VXLAN tunnel. The inner VXLAN tunnel and the outer VXLAN tunnel have different horizontal segmentation groups, and messages in the same horizontal segmentation group cannot flood each other.

[0127] In a possible implementation manner, the number of layer 2 BDs of each L2TGW is two.

[0128] In a possible implementation, the ARP table includes a first flow table and a second flow table, both of which have a table number, a priority, a matching item, and an action item;

[0129] The first flow table and the second flow table have the same priority;

[0130] The matching items of the first flow table include matching ARP request and reply packets, the metadate in the matching items of the first flow table is the subnet identifier, and the action items of the first flow table are executing VXLAN encapsulation, setting the tunnel id, setting the tunnel destination IP address and the egress port;

[0131] The metadate in the matching items of the second flow table is the subnet identifier, and the matching items of the second flow table also include matching the destination MAC. The action items of the second flow table are to execute VXLAN encapsulation, set the tunnel ID, set the tunnel destination IP address and the egress port, wherein matching the destination MAC specifically matches all unicast Ethernet data packets or matches all multicast data packets, wherein the multicast data packets include broadcast data packets.

[0132] In a possible implementation manner, the process of cross-resource pool data transmission includes a forward cross-resource pool data transmission process and a return cross-resource pool data transmission process in opposite paths;

[0133] The transmission module 209 is specifically used for:

[0134] receiving an original data packet from a first resource pool;

[0135] Perform VXLAN encapsulation on the original data packet through the computing node;

[0136] Send the encapsulated original data packet to the L2TGW at the same end;

[0137] Remove the VXLAN encapsulation of the received original data packet;

[0138] Perform inner VXLAN encapsulation and outer VXLAN encapsulation on the original data packet after VXLAN encapsulation is removed;

[0139] Send the encapsulated original data packet to the VPC gateway on the same end;

[0140] Remove the outer VXLAN encapsulation of the received original data packet, and perform VXLAN encapsulation on the original data packet after the outer VXLAN encapsulation is removed;

[0141] Send the encapsulated original data packet to the enterprise gateway at the same end;

[0142] The encapsulated original data packet is sent to the peer enterprise gateway through the inter-cloud Internet network, completing the outbound cross-resource pool data transmission process;

[0143] Execute the backhaul cross-resource pool data transmission process to transmit the original data packet to the second resource pool of the other end.

[0144] In a possible implementation, the device further includes:

[0145] Add or delete the Layer 2 access subnet on each end.

[0146] The device provided in the embodiment of the present invention can implement each process and step in the above method embodiment, and can obtain the same or similar technical effects. To avoid repetition, the present invention will not go into details.

[0147] The beneficial effects of the present invention are as follows:

[0148] The method and device of the present invention introduce an L2TGW with an ARP table, and perform data encapsulation in combination with a double-layer vxlan tunnel, and provide a process for processing message data based on the constructed structure. The ARP flow table introduces the virtual machine traffic accessing the opposite end to the L2TGW, and after performing multi-layer VXLAN encapsulation on the L2TGW, the traffic is sent to the VPC gateway, and a VXLAN tunnel is created between the VPC gateway and the enterprise gateway to import the traffic into the enterprise gateway. The enterprise gateways of various resource pools in the cloud interconnection / cross-regional network can communicate with each other, and the limitation of network segment address conflict check is lifted. In the case where a network environment has been built on the cloud and specific services have been launched, data transmission across resource pools can be completed even if a network segment conflict occurs.

[0149] System Example

[0150] Reference Manual Attached Fig. 9 , showing a structural schematic diagram of a cross-resource pool Layer 2 intercommunication system in a cloud network provided by an embodiment of the present invention.

[0151] The present invention proposes a cross-resource pool layer 2 intercommunication system 30 in a cloud network, comprising: a memory 303 and one or more processors 301 .

[0152] One or more application programs are stored in the memory 303 , and the one or more application programs are suitable for being executed by one or more processors 301 to implement the cross-resource pool Layer 2 intercommunication method in the cloud network of the method embodiment.

[0153] The cross-resource pool layer 2 intercommunication system 30 in the cloud network includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, through a bus 302.

[0154] The structure of the cross-resource pool Layer 2 intercommunication system 30 in the cloud network does not constitute a limitation on the embodiments of the present invention.

[0155] Processor 301 may be a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0156] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI bus or an EISA bus, etc. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0157] The memory 303 can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for cross-resource pool Layer 2 intercommunication in a cloud network, characterized in that: The method comprises: S1, respectively create a VPC, a VPC gateway, a tunnel subnet, and a Layer 2 access subnet in the first resource pool and the second resource pool that need to perform Layer 2 intercommunication, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox Layer 2 access subnets are the same; S2, connecting the tunnel subnets at both ends; S3, set up the L2TGW of each end tunnel subnet; S4, allocating IP addresses in the tunnel subnets at each end, and configuring the IP addresses to the L2TGW virtual interfaces at the same end; S5, allocating an interconnection access IP to the Layer 2 access subnet of each end, and configuring the interconnection access IP on the remaining virtual interface of the L2TGW at the same end; S6: Create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management systems, and add the created VXLAN tunnels to the Layer 2 BD. S7: Configure the ARP table of the virtual machine in the same-end Layer 2 access subnet on each L2TGW, and create a route on each L2TGW with the next hop being the IP address of the opposite tunnel subnet; S8, creating a Layer 2 connection instance for each end's Layer 2 access subnet; S9, performing cross-resource pool data transmission between the first resource pool and the second resource pool according to the layer 2 connection instance; Among them, the VXLAN tunnel between the heterodox L2TGWs is the inner VXLAN tunnel, and the VXLAN tunnel between the L2TGW and the VPC gateway at the same end is the outer VXLAN tunnel. The inner VXLAN tunnel and the outer VXLAN tunnel have different horizontal segmentation groups, and the messages in the same horizontal segmentation group cannot be flooded to each other; The ARP table includes a first flow table and a second flow table, each of which has a table number, a priority, a matching item, and an action item; The first flow table and the second flow table have the same priority; The matching items of the first flow table include matching ARP request and reply messages, the metadate in the matching items of the first flow table is a subnet identifier, and the action items of the first flow table are executing VXLAN encapsulation, setting a tunnel id, and setting a tunnel destination IP address and an egress port; The metadate in the matching item of the second flow table is the subnet identifier, and the matching item of the second flow table also includes matching the destination MAC. The action items of the second flow table are to execute VXLAN encapsulation, set the tunnel ID, set the tunnel destination IP address and the egress port, wherein the matching destination MAC specifically matches all unicast Ethernet data packets or matches all multicast data packets, wherein the multicast data packets include broadcast data packets.

2. According to claim 1, a method for cross-resource pool layer 2 intercommunication in a cloud network is characterized in that: The L2TGW includes a temporarily created L2TGW and a pre-deployed L2TGW that has been managed.

3. According to claim 1, a method for cross-resource pool layer 2 intercommunication in a cloud network is characterized in that: Each L2TGW has two Layer 2 BDs.

4. According to claim 1, a method for cross-resource pool layer 2 intercommunication in a cloud network is characterized in that: The cross-resource pool data transmission process includes a forward cross-resource pool data transmission process and a return cross-resource pool data transmission process in opposite paths; The S9 specifically includes: S901, receiving an original data packet from a first resource pool; S902, performing VXLAN encapsulation on the original data packet through a computing node; S903, sending the encapsulated original data packet to the L2TGW at the same end; S904, decapsulating the VXLAN encapsulation of the received original data packet; S905, performing inner VXLAN encapsulation and outer VXLAN encapsulation on the original data packet after the VXLAN encapsulation is removed; S906, sending the encapsulated original data packet to the VPC gateway at the same end; S907, remove the outer VXLAN encapsulation of the received original data packet, and perform VXLAN encapsulation on the original data packet after the outer VXLAN encapsulation is removed; S908, sending the encapsulated original data packet to the enterprise gateway at the same end; S909, sending the encapsulated original data packet to the enterprise gateway of the other end through the inter-cloud internet network, completing the outbound cross-resource pool data transmission process; S9010, executing the backhaul cross-resource pool data transmission process to transmit the original data packet to the second resource pool of the opposite end.

5. According to the method for cross-resource pool layer 2 intercommunication in a cloud network in claim 1, it is characterized in that: After S9, the method further includes: Add or delete the Layer 2 access subnet on each end.

6. A cross-resource pool Layer 2 intercommunication device in a cloud network, characterized in that: A method for implementing cross-resource pool layer 2 intercommunication in a cloud network according to any one of claims 1 to 5, the device comprising: A first creation module is used to create a VPC, a VPC gateway, a tunnel subnet, and a layer 2 access subnet in a first resource pool and a second resource pool that need to perform layer 2 intercommunication, respectively, wherein the network segments of the heterodox tunnel subnets are different, and the network segments of the heterodox layer 2 access subnets are the same; A connection module is used to connect the tunnel subnets at both ends; A setting module is used to set the L2TGW of each end tunnel subnet; An allocation module, configured to allocate IP addresses in the tunnel subnets at each end, and configure the IP addresses to the L2TGW virtual interfaces at the same end; The first configuration module is used to allocate an interconnection access IP to the Layer 2 access subnet of each end, and configure the interconnection access IP on the remaining virtual interface of the L2TGW at the same end; The second creation module is used to create VXLAN tunnels between L2TGWs at different ends, between L2TGWs and computing nodes at the same end, between L2TGWs and VPC gateways at the same end, and between VPC gateways and enterprise network management, and add the created VXLAN tunnels to the Layer 2 BD; The second configuration module is used to configure the ARP table of the virtual machine in the same-end layer 2 access subnet on each end L2TGW, and create a route with the next hop being the IP address of the opposite end tunnel subnet on each end L2TGW; The third creation module is used to create a layer 2 connection instance of the layer 2 access subnet of each end; A transmission module is used to perform cross-resource pool data transmission between the first resource pool and the second resource pool according to the second layer connection instance.

7. A cross-resource pool layer 2 intercommunication device in a cloud network according to claim 6, characterized in that: The L2TGW includes a temporarily created L2TGW and a pre-deployed L2TGW that has been managed.

8. The cross-resource pool layer 2 intercommunication device in a cloud network according to claim 6, characterized in that: The VXLAN tunnel between the heterodox L2TGWs is an inner VXLAN tunnel, and the VXLAN tunnel between the L2TGW and the VPC gateway at the same end is an outer VXLAN tunnel. The inner VXLAN tunnel and the outer VXLAN tunnel have different horizontal segmentation groups, and messages in the same horizontal segmentation group cannot flood each other.

Citation Information

Patent Citations

  • Cloud network system and interaction method of cloud network system

    CN116996343A

  • Systems and methods for cloud bridging between intranet resources and cloud resources

    US20120281706A1

  • Virtual gateways and implicit routing in distributed overlay virtual environments

    US20140269709A1

  • Secure bi-directional network connectivity system between private networks

    US20240129185A1