Network system based on virtual extensible local area network, node, and communication method

By introducing VXLAN gateway nodes to the VXLAN network system for self-learning and star topology, the problem of broadcast packet loop oscillation between virtual machine nodes is solved, and stable communication and simplified configuration of large-scale networks are realized.

WO2024230820A1PCT designated stage expired Publication Date: 2024-11-14ALIBABA CLOUD COMPUTING CO LTD

Patent Information

Application Number
PCT/CN2024/092460
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-11
Filing Date
2024-05-10
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

In a hybrid cloud platform, the virtual network element nodes in the virtual machine are difficult to control in a unified manner due to the complex data source and unpredictable location, resulting in broadcast packet loop oscillation in VXLAN-based network systems under large scale. Causes network blockage.

Method used

Introduce VXLAN gateway nodes, and learn the correspondence between the MAC address and the virtual network card IP address of the virtual network element communication node, and adopt a star topology structure to avoid the oscillation of the broadcast packet loop between the nodes and realize accurate forwarding. Self-learning and data transmission.

Benefits of technology

It effectively avoids broadcast packet loop oscillation, ensures smooth network, and supports large-scale network deployment, simplifies network configuration, and reduces dependence on complex control plane systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024092460_14112024_PF_FP_ABST
    Figure CN2024092460_14112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a network system based on a virtual extensible local area network (VXLAN), a node, and a communication method. The network system comprises: a VXLAN gateway node and a plurality of communication nodes. The VXLAN gateway node is used for self-learning the correspondence between the MAC address of a virtual network element communication node in each communication node and a virtual network interface card IP address of the communication node, and is used for sending, to a first communication node, the correspondences between the MAC addresses of virtual network element communication nodes in communication nodes other than the first communication node and virtual network interface card IP addresses of the other communication nodes. The first communication node is used for sending data to the virtual network element communication nodes in the other communication nodes by means of a first VXLAN tunnel interface and on the basis of the correspondences, acquired from the gateway node, between the MAC addresses of the virtual network element communication nodes in the other communication nodes and the virtual network interface card IP addresses of the other communication nodes. Therefore, the generation of broadcast packet loop storm in the network system is avoided, and unimpeded network connectivity is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Network system, node and communication method based on virtual extended local area network

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 11, 2023, with application number 202310537263.5 and application name “Network system, node and communication method based on virtual extended local area network”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of networks, and more specifically, to a network system, node, and communication method based on a Virtual Extensible Local Area Network (VXLAN). Background Art

[0003] When the Agile and Enterprise Editions of the hybrid cloud platform use cloud server virtual machines as server nodes, the data sources of the virtual network element nodes in the virtual machines, such as Docker containers, are complex and their exact locations cannot be predicted. Therefore, the traditional Software Defined Network (SDN) unified control plane cannot be used to deliver accurate forwarding tables. VXLAN technology is required to achieve communication.

[0004] A VXLAN-based network system in the related technology uses mesh interconnection between VXLAN tunnel endpoints (VTEP) and unknown broadcasts to achieve communication. In the case of a large network scale, the above method will cause broadcast packet loop oscillation, resulting in network disconnection.

[0005] Summary of the Invention

[0006] The present application provides a network system, node and communication method based on a virtual extended local area network, in order to avoid broadcast packet loop oscillation in the network system and ensure smooth network operation.

[0007] In a first aspect, the present application provides a network system based on a virtual extended local area network (VXLAN), comprising: a VXLAN gateway node and a plurality of communication nodes;

[0008] The VXLAN gateway node is used to self-learn the correspondence between the MAC address of the virtual network element communication node inside the communication node and the virtual network card IP address of the communication node, and to send the correspondence between the MAC address of the virtual network element communication node inside other communication nodes other than the first communication node and the virtual network card IP address of the other communication nodes to the first communication node, where the first communication node is any one of the multiple communication nodes;

[0009] The first communication node is used to send data to the virtual network element communication node inside the other communication node through the first VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node obtained from the gateway node and the virtual network card IP address of the other communication node.

[0010] In one embodiment, the first communication node is configured to include:

[0011] A first VXLAN tunnel interface using the virtual network card of the first communication node as a data entry and exit;

[0012] a first network bridge device, wherein the first VXLAN tunnel interface is configured to join the first network bridge device;

[0013] A first virtual network card VETH pair, wherein the first VETH in the first VETH pair is configured to join the first network bridge device, and the second VETH in the first VETH pair is configured as a data entry and exit of a virtual network element communication node within the first communication node.

[0014] In one embodiment, the first communication node is configured to include:

[0015] The first static forwarding table from the first communication node to the other communication nodes, the destination IP address in the first static forwarding table is the virtual network card IP address of the VXLAN gateway node, and the destination MAC address in the first static forwarding table is all 0s.

[0016] In one embodiment, the second VETH is configured to include multiple virtual local area network (VLAN) sub-interfaces, and the VLAN sub-interfaces of the second VETH are configured as data entry and exit points of the virtual network element communication node inside the first communication node.

[0017] In one embodiment, the VXLAN gateway node is configured to include:

[0018] a second VXLAN tunnel interface using the virtual network card of the VXLAN gateway node as a data entry and exit, the second VXLAN tunnel interface being used to send and receive data from the communication node;

[0019] a second network bridge device, wherein the second VXLAN tunnel interface is configured to join the second network bridge device;

[0020] A second virtual network card VETH pair, wherein the third VETH in the second VETH pair is configured to join the second network bridge device, and the fourth VETH in the second VETH pair is configured as a data forwarding interface of a communication node across network segments.

[0021] In one embodiment, the VXLAN gateway node is configured to include:

[0022] A second static forwarding table from the VXLAN gateway node to the communication node, wherein the destination IP address in the second static forwarding table is the virtual network card IP address of the VXLAN gateway node, and the destination MAC address in the second static forwarding table is all 0s.

[0023] In one embodiment, the fourth VETH is configured to include multiple virtual local area network (VLAN) sub-interfaces, and different VLAN sub-interfaces of the fourth VETH are configured as data forwarding interfaces of communication nodes in different network segments.

[0024] In a second aspect, the present application provides a communication method, which is applied to a network system based on a virtual extended local area network (VXLAN), wherein the network system includes a VXLAN gateway node and multiple communication nodes, and the method includes:

[0025] The first communication node sends a query request to the VXLAN gateway node, wherein the query request is used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication node, where the first communication node is any one of the multiple communication nodes;

[0026] The VXLAN gateway node sends the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node to the first communication node;

[0027] The first communication node sends data to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node.

[0028] In one embodiment, the first communication node sending a query request to the VXLAN gateway node includes:

[0029] The first communication node sends a query request to the VXLAN gateway node at a preset time interval; and / or,

[0030] When the first communication node needs to send data to the target MAC address and there is no correspondence between the target MAC address and the virtual network card IP address in the first communication node, the first communication node sends a query request to the VXLAN gateway node, and the query request is used to query the correspondence between the target MAC address and the virtual network card IP address.

[0031] In a third aspect, the present application provides a communication method, which is applied to a first communication node of a network system based on a virtual extended local area network (VXLAN), wherein the network system includes a VXLAN gateway node and multiple communication nodes, and the first communication node is any one of the multiple communication nodes. The method includes:

[0032] Sending a query request to the VXLAN gateway node, the query request being used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication node;

[0033] Receive the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node sent by the VXLAN gateway node;

[0034] Based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node, data is sent to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface.

[0035] In a fourth aspect, the present application provides a communication method, which is applied to a VXLAN gateway node of a network system based on a virtual extended local area network (VXLAN), wherein the network system includes a VXLAN gateway node and multiple communication nodes, and the method includes:

[0036] Receive a query request sent by a first communication node, the query request being used to query a correspondence between a MAC address of a virtual network element communication node within other communication nodes other than the first communication node and a virtual network card IP address of the other communication node, where the first communication node is any one of the multiple communication nodes;

[0037] Sending the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node to the first communication node.

[0038] In a fifth aspect, the present application provides a communication node, comprising: a memory and a processor;

[0039] The memory is used to store computer programs;

[0040] The processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, the processor executes the method according to the third aspect.

[0041] In a sixth aspect, the present application provides a virtual extended local area network (VXLAN) gateway node, comprising: a memory and a processor;

[0042] The memory is used to store computer programs;

[0043] The processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, the processor executes the method according to the third aspect.

[0044] In a seventh aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the method described in the third aspect or the fourth aspect.

[0045] In the network system, node and communication method based on virtual extended local area network provided in the present application, the VXLAN gateway node in the network system self-learns the precise forwarding table entries of the virtual network element communication node inside the communication node, and the communication nodes each obtain the precise forwarding table entries of the virtual network element communication node inside other ordinary nodes from the VXLAN gateway node, thereby eliminating the need for communication nodes to communicate through mutual broadcasting, and will not cause the problem of broadcast packet loop oscillation, thereby ensuring smooth network operation and supporting large-scale network deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] FIG1 is a structural diagram of a VXLAN-based network system according to an embodiment of the present application;

[0048] FIG2 is a second structural diagram of a VXLAN-based network system provided in an embodiment of the present application;

[0049] FIG3 is a flow chart of a communication method according to an embodiment of the present application;

[0050] FIG4 is a second flow chart of a communication method provided in an embodiment of the present application;

[0051] FIG5 is a third flow chart of a communication method provided in an embodiment of the present application;

[0052] FIG6 is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0054] First, the terms involved in the embodiments of this application are introduced.

[0055] VXLAN: A network tunneling and isolation technology based on the User Datagram Protocol (UDP), which encapsulates raw data link layer network data in UDP packets for transmission.

[0056] Virtual Ethernet interface (VETH): A pair of virtual network cards that comes with the Linux system. Their sending and receiving ends are directly connected together. For example, a pair of VETH network cards: A and B, the messages sent by A are directly connected to the receiving end of B, and the messages sent by B are directly connected to the receiving end of A.

[0057] Elastic Compute Service (ECS): provides virtual machines and related infrastructure and service-level services.

[0058] Overlay network: refers to building a tunnel on the traditional IP network and running the basic network on top of the tunnel.

[0059] Underlay network: Compared to overlay, it refers to the underlying infrastructure network that carries the overlay network.

[0060] VTEP: Responsible for implementing local overlay and underlay conversion and forwarding based on the local forwarding table.

[0061] A VXLAN-based network system in the related technology adopts a meshed interconnected architecture between VTEPs, and uses network-wide underlay broadcasts to achieve communication for unknown broadcasts. In this solution, each communication node in the network system needs to learn forwarding table entries based on broadcast packets. In the case of a large network scale, the above method will cause broadcast packet loop oscillation, resulting in network disconnection.

[0062] In view of this, an embodiment of the present application provides a VXLAN-based network system, which, in addition to communication nodes, i.e., ordinary nodes, also includes VXLAN gateway nodes. Different from the mesh interconnection architecture in the related art, the VXLAN gateway nodes and ordinary nodes in this network system adopt a star topology, and the VXLAN gateway nodes self-learn the precise forwarding entries of the virtual network element communication nodes inside the ordinary nodes. The ordinary nodes each obtain the precise forwarding entries of the virtual network element communication nodes inside other ordinary nodes from the gateway nodes, thereby eliminating the need for ordinary nodes to communicate through mutual broadcasting, and will not cause the problem of broadcast packet loop oscillation, thereby supporting large-scale network deployment.

[0063] Figure 1 is a schematic diagram of the structure of a VXLAN-based network system provided in an embodiment of the present application. As shown in Figure 1, the network includes: a VXLAN gateway node and multiple communication nodes, where the communication nodes can also be called ordinary nodes, that is, virtual machine server nodes that need to communicate.

[0064] The VXLAN gateway node is used to self-learn the correspondence between the MAC address of the virtual network element communication node within the communication node and the virtual network card IP address of the communication node, and is used to send the correspondence between the MAC address of the virtual network element communication node within other communication nodes other than the first communication node and the virtual network card IP address of the other communication nodes to the first communication node, where the first communication node is any one of the multiple communication nodes. The virtual network element communication node within the communication node can be a container, etc.

[0065] The first communication node is used to send data to the virtual network element communication node inside other communication nodes through the first VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside other communication nodes obtained from the gateway node and the virtual network card IP address of other communication nodes.

[0066] In a VXLAN-based network system, communication nodes communicate by establishing VXLAN tunnels. The communication nodes need to send data to the virtual network element communication nodes inside other communication nodes through the VXLAN tunnel interface based on the correspondence between the MAC addresses of the virtual network element communication nodes inside other communication nodes and the virtual network card IP addresses of other communication nodes in the precise forwarding table entries. In an embodiment of the present application, the VXLAN gateway node will automatically learn the precise forwarding table entries of the virtual network element communication nodes with active traffic on all communication nodes, and the communication nodes will uniformly obtain the precise forwarding table entries from the VXLAN gateway node, instead of learning them by broadcasting between communication nodes.

[0067] To implement the above functions, the following describes the configuration of VXLAN gateway nodes and multiple communication nodes. These nodes use ECS virtual machines. ECS creates virtual machine instances as basic resources. These virtual machines must be configured with management-level network adapters (NICs). The IP addresses of these NICs are automatically assigned and configured internally by ECS. These NICs are assumed to be eth0.

[0068] Taking the first communication node as an example, the first communication node is configured to include: a virtual network card and a first VXLAN tunnel interface with the virtual network card of the first communication node as a data entry and exit; and a first bridge device, the first VXLAN tunnel interface is configured to join the first bridge device; and a first virtual network card VETH pair, the first VETH in the first VETH pair is configured to join the first bridge device, and the second VETH in the first VETH pair is configured as the data entry and exit of the virtual network element communication node within the first communication node. Optionally, the second VETH is configured to include multiple virtual local area network (VLAN) sub-interfaces, and the VLAN sub-interfaces of the second VETH are configured as the data entry and exit of the virtual network element communication node within the first communication node.

[0069] Optionally, the first communication node is configured to include: a first static forwarding database (FDB) from the first communication node to other communication nodes, wherein the destination IP address in the first static forwarding table is the virtual network card IP address of the VXLAN gateway node, and the destination MAC address in the first static forwarding table is all 0s. The first static forwarding table is used to provide forwarding guidance for the first packet of a data link layer broadcast or unknown unicast.

[0070] The VXLAN gateway node is configured to include: a virtual network card and a second VXLAN tunnel interface with the virtual network card of the VXLAN gateway node as a data entry and exit, the second VXLAN tunnel interface being used to send and receive data from communication nodes; and a second bridge device, the second VXLAN tunnel interface being configured to join the second bridge device; and a second virtual network card VETH pair, the third VETH in the second VETH pair being configured to join the second bridge device, the fourth VETH in the second VETH pair being configured as a data forwarding interface for communication nodes across network segments. Optionally, the fourth VETH is configured to include multiple virtual local area network (VLAN) sub-interfaces, with different VLAN sub-interfaces of the fourth VETH being configured as data forwarding interfaces for communication nodes in different network segments.

[0071] Optionally, the VXLAN gateway node is configured to include a second static forwarding table from the VXLAN gateway node to the communication node, wherein the destination IP address in the second static forwarding table is the IP address of the virtual network interface card of the VXLAN gateway node, and the destination MAC address in the second static forwarding table entry is all zeros. The second static forwarding table is used to provide forwarding guidance for the first data link layer broadcast or unknown unicast packet.

[0072] The following description is made with reference to the network system shown in FIG2 .

[0073] For a VXLAN gateway node:

[0074] 1. The ECS VM that serves as the VXLAN gateway node applies for a virtual network card (eth0).

[0075] 2. In the default network namespace, create a Linux-driven VXLAN tunnel interface vxlan0. This VXLAN tunnel interface uses the virtual network card eth0 as the data entry and exit.

[0076] 3. In the default network namespace, create a Linux bridge-based bridge device and add the VXLAN tunnel interface (also called a tunnel device) to the bridge device.

[0077] 4. In the default network namespace, configure a static FDB entry for all common nodes. The MAC address is 00:00:00:00:00:00, and the destination address (dst) is specified as the IP address of the virtual network card eth0 of the VXLAN gateway node. This static FDB entry is used to guide the forwarding of the first packet of data link layer broadcast and unknown unicast packets.

[0078] 5. Create a pair of VETH network cards in the default network namespace, namely veth-br and eth1, add veth-br to the bridge device, and create VLAN sub-interfaces on eth1.

[0079] 6. The VXLAN gateway node automatically learns the precise FDB table entries of the internal virtual network element communication nodes with active traffic on all ordinary nodes, also known as dynamic FDB table entries, that is, the correspondence between the MAC address of the virtual network element communication node and the IP address of the virtual network card eth0 (i.e., the Underlay layer) of the ordinary node where it is located.

[0080] 7. Deploy the FDB distribution service on the VXLAN gateway node. This service is responsible for querying the precise FDB entries of all common nodes from the locally self-learned precise FDB entries and then responding to the common nodes.

[0081] For normal nodes:

[0082] 1. The ECS virtual machine used as a common node applies for a virtual network card named eth0.

[0083] 2. In the default network namespace, create a Linux-driven VXLAN tunnel interface vxlan0. This VXLAN tunnel interface uses the virtual network card eth0 as the data entry and exit.

[0084] 3. In the default network namespace, create a Linux bridge-based bridge device and add the VXLAN tunnel interface to the bridge device.

[0085] 4. In the default network namespace, configure a static FDB entry for all common nodes. The MAC address is 00:00:00:00:00:00, and the destination address (dst) is specified as the IP address of the virtual network card eth0 of the VXLAN gateway node. This static FDB entry is used to guide the forwarding of the first data link layer broadcast and unknown unicast packets.

[0086] 5. Create a pair of VETH network cards (veth-br and eth1) in the default network namespace. Add veth-br to the bridge device. Create VLAN subinterfaces on eth1 and configure them as data entry and exit points for upper-level Docker containers. Based on the above configuration, taking a container on eth1 on VM 1 as an example, data from this container will pass through eth1, veth-br, and vxlan0 before being sent out of eth0. Data from other containers and other VMs follows a similar path.

[0087] 6. Deploy the FDB local agent service on common nodes. This service can regularly query the FDB distribution service on the VXLAN gateway node for the precise FDB entries of all common nodes and configure them locally.

[0088] 7. Ordinary nodes can only automatically learn the precise FDB entries of the VXLAN gateway node. If they need to communicate with a virtual network element communication node within another ordinary node, they first query the local precise FDB entries to see if there is a matching entry for the virtual network element communication node. If there is no match, an L2Miss and L3Miss system alarm will be triggered. The FDB local agent service of the ordinary node can then query the FDB distribution service of the VXLAN gateway node for the precise FDB entries for the virtual network element communication nodes within other ordinary nodes required for this communication and configure them locally.

[0089] For example, in Figure 2, a container on VM 1 sends data to a container on VM 2. During initial communication, VM 1's container only has the IP address of VM 2. Therefore, the first data packet sent by VM 1's container is an ARP packet. Based on the static FDB entry, VM 1's container sends the ARP packet to the gw node to obtain the MAC address corresponding to VM 2's container IP address. Subsequently, VM 1's container, based on the IP address of VM 2's virtual network interface eth0, receives the precise FDB entry corresponding to VM 2's container MAC address from the gw node, which is obtained periodically or based on the needs of this communication. The packet is then sent to VM 2's virtual network interface eth0 via VM 1's VXLAN tunnel interfaces vxlan0 and eth0. VM 2 then internally forwards the packet to the corresponding container. If VM 1 and VM 2 are on different network segments, data packet forwarding is performed through the gw node. For the gw node, since the first packets of the virtual network element communication nodes inside the ordinary nodes are all sent to the gw node, the gw node can self-learn the MAC addresses and IP addresses related to the virtual network element communication nodes inside all ordinary nodes.

[0090] The VXLAN-based network system provided in the embodiment of the present application enables the upper-layer business system on the ECS to use VXLAN to build an overlay network that supports multiple VLAN patterns, supporting large-scale network deployment without introducing a separate and complex control plane system. Through the division of VLAN sub-interfaces or the isolation of network namespaces, the network system supports the existence of multiple tenants in the business and allows the isolation configuration of tenant networks. The network system has a simple configuration and no complex control system. All FDB table entries are completed by self-learning of the VXLAN gateway node. There is no need for mesh interconnection between ordinary nodes and communication is achieved through broadcast packets. It does not perceive or invade upper-layer businesses. All components use original Linux components or are self-written, which is very lightweight.

[0091] FIG3 is a flow chart of a communication method according to an embodiment of the present application. The method is applied to the VXLAN-based network system in the aforementioned embodiment. As shown in FIG3 , the method includes:

[0092] S301. The first communication node sends a query request to the VXLAN gateway node. The query request is used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of other communication nodes. The first communication node is any one of the multiple communication nodes of the network system.

[0093] S302. The VXLAN gateway node sends the correspondence between the MAC address of the virtual network element communication node inside the other communication nodes and the virtual network card IP address of the other communication nodes to the first communication node.

[0094] S303. The first communication node sends data to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node.

[0095] Optionally, the first communication node sends a query request to the VXLAN gateway node, including:

[0096] The first communication node sends a query request to the VXLAN gateway node at a preset time interval; and / or,

[0097] When the first communication node needs to send data to a target MAC address and there is no corresponding relationship between the target MAC address and the virtual network card IP address in the first communication node, the first communication node sends a query request to the VXLAN gateway node to query the corresponding relationship between the target MAC address and the virtual network card IP address. The target MAC address is the MAC address of the virtual network element communication node within the other communication nodes with which the first communication node is currently communicating.

[0098] FIG4 is a second flow diagram of a communication method provided in an embodiment of the present application. The method is applied to a first communication node, and the method includes:

[0099] S401. Send a query request to a VXLAN gateway node, where the query request is used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of other communication nodes.

[0100] S402, receiving the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node sent by the VXLAN gateway node;

[0101] S403: Based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node, send data to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface.

[0102] FIG5 is a flow chart of a communication method according to an embodiment of the present application. The method is applied to a VXLAN gateway node. As shown in FIG5 , the method includes:

[0103] S501. Receive a query request sent by a first communication node, where the query request is used to query the correspondence between the MAC address of a virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of other communication nodes, where the first communication node is any one of the multiple communication nodes.

[0104] S502: Send the correspondence between the MAC address of the virtual network element communication node inside the other communication nodes and the virtual network card IP address of the other communication nodes to the first communication node.

[0105] Figure 6 is a schematic block diagram of an electronic device provided in an embodiment of the present application. As shown in Figure 6, the electronic device 600 may include at least one processor 601 for implementing the communication method provided in an embodiment of the present application. The electronic device 600 may be a communication node or a VXLAN gateway node in the aforementioned embodiment. It is understood that when the communication node or VXLAN gateway node adopts a virtual machine, the electronic device 600 refers to the physical device where the communication node or VXLAN gateway node is located, such as the physical server where the ECS virtual machine is located.

[0106] Optionally, the electronic device 600 further includes at least one memory 602 for storing program instructions and / or data. The memory 602 is coupled to the processor 601. Coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which can be electrical, mechanical, or other forms, and is used for information exchange between devices, units, or modules. The processor 601 may operate in conjunction with the memory 602. The processor 601 may execute program instructions stored in the memory 602. At least one of the at least one memory may be included in the processor.

[0107] Optionally, the electronic device 600 further includes a communication interface 603 for communicating with other devices via a transmission medium, thereby enabling the electronic device 600 to communicate with other devices. The communication interface 603 may be, for example, a transceiver, an interface, a bus, a circuit, or a device capable of implementing transceiver functions. The processor 601 may utilize the communication interface 603 to transmit and receive data and / or information, and to implement the methods provided in the embodiments of the present application. For details, please refer to the detailed description in the preceding embodiments, which will not be repeated here.

[0108] The specific connection medium between the processor 601, memory 602, and communication interface 603 is not limited in the embodiments of the present application. In Figure 6, the processor 601, memory 602, and communication interface 603 are connected via bus 604. Bus 604 is represented by a bold line in Figure 6, and the connection methods between other components are only for schematic illustration and are not limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 6 only uses a single bold line, but this does not mean that there is only one bus or only one type of bus.

[0109] It should be understood that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.

[0110] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0111] The present application also provides a computer-readable storage medium storing a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method in any of the aforementioned embodiments.

[0112] The terms "unit," "module," and the like used in this specification may be used to refer to a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution.

[0113] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. In the several embodiments provided in this application, it should be understood that the disclosed devices, equipment, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, and can be electrical, mechanical, or other forms.

[0114] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0116] In the above-described embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (program) are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)).

[0117] If this function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0118] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0119] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A network system based on a virtual extended local area network VXLAN, characterized in that: include: VXLAN gateway node and multiple communication nodes; The VXLAN gateway node is used to self-learn the correspondence between the MAC address of the virtual network element communication node inside the communication node and the virtual network card IP address of the communication node, and to send the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication nodes to the first communication node, where the first communication node is any one of the multiple communication nodes; The first communication node is used to send data to the virtual network element communication node inside the other communication node through the first VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node obtained from the gateway node and the virtual network card IP address of the other communication node.

2. The network system according to claim 1, characterized in that: The first communication node is configured to include: A first VXLAN tunnel interface using the virtual network card of the first communication node as a data entry and exit; A first bridge device, wherein the first VXLAN tunnel interface is configured to join the first bridge device; A first virtual network card VETH pair, wherein the first VETH in the first VETH pair is configured to join the first network bridge device, and the second VETH in the first VETH pair is configured as a data entry and exit of a virtual network element communication node inside the first communication node.

3. The network system according to claim 2, characterized in that: The first communication node is configured to include: The first static forwarding table from the first communication node to the other communication nodes, the destination IP address in the first static forwarding table is the virtual network card IP address of the VXLAN gateway node, and the destination MAC address in the first static forwarding table is all 0s.

4. The network system according to claim 2, characterized in that: The second VETH is configured to include multiple virtual local area network VLAN sub-interfaces, and the VLAN sub-interfaces of the second VETH are configured as data entrances and exits of the virtual network element communication node inside the first communication node.

5. The network system according to claim 1, characterized in that: The VXLAN gateway node is configured to include: A second VXLAN tunnel interface using the virtual network card of the VXLAN gateway node as a data entry and exit, wherein the second VXLAN tunnel interface is used to send and receive data of the communication node; A second bridge device, wherein the second VXLAN tunnel interface is configured to join the second bridge device; A second virtual network card VETH pair, the third VETH in the second VETH pair is configured to join the second bridge device, and the fourth VETH in the second VETH pair is configured as a data forwarding interface of a communication node across network segments.

6. The network system according to claim 5, characterized in that: The VXLAN gateway node is configured to include: The second static forwarding table from the VXLAN gateway node to the communication node, the destination IP address in the second static forwarding table is the virtual network card IP address of the VXLAN gateway node, and the destination MAC address in the second static forwarding table is all 0s.

7. The network system according to claim 5, characterized in that: The fourth VETH is configured to include multiple virtual local area network VLAN sub-interfaces, and different VLAN sub-interfaces of the fourth VETH are configured as data forwarding interfaces of communication nodes in different network segments.

8. A communication method, characterized in that: Applied in a network system based on a virtual extended local area network VXLAN, the network system includes a VXLAN gateway node and a plurality of communication nodes, the method includes: The first communication node sends a query request to the VXLAN gateway node, wherein the query request is used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication node, and the first communication node is any one of the multiple communication nodes; The VXLAN gateway node sends the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node to the first communication node; The first communication node sends data to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node.

9. The method according to claim 8, characterized in that The first communication node sends a query request to the VXLAN gateway node, including: The first communication node sends a query request to the VXLAN gateway node at a preset time interval; and / or, When the first communication node needs to send data to the target MAC address and there is no corresponding relationship between the target MAC address and the virtual network card IP address in the first communication node, the first communication node sends a query request to the VXLAN gateway node, and the query request is used to query the corresponding relationship between the target MAC address and the virtual network card IP address.

10. A communication method, characterized in that: Applied to a first communication node of a network system based on a virtual extended local area network VXLAN, the network system comprising a VXLAN gateway node and a plurality of communication nodes, the first communication node being any one of the plurality of communication nodes, the method comprising: Sending a query request to the VXLAN gateway node, the query request being used to query the correspondence between the MAC address of the virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication node; Receive the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node sent by the VXLAN gateway node; Based on the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node, data is sent to the virtual network element communication node inside the other communication node through the VXLAN tunnel interface.

11. A communication method, characterized in that: Applied to a VXLAN gateway node of a network system based on a virtual extended local area network VXLAN, the network system comprising a VXLAN gateway node and a plurality of communication nodes, the method comprising: Receive a query request sent by a first communication node, the query request being used to query the correspondence between the MAC address of a virtual network element communication node inside other communication nodes except the first communication node and the virtual network card IP address of the other communication node, the first communication node being any one of the multiple communication nodes; Send the correspondence between the MAC address of the virtual network element communication node inside the other communication node and the virtual network card IP address of the other communication node to the first communication node.

12. A communication node, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to execute a computer program stored in the memory, wherein the computer program enables the processor to execute the method according to claim 10 when the computer program is executed.

13. A virtual extended local area network VXLAN gateway node, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to execute a computer program stored in the memory, and the computer program enables the processor to execute the method according to claim 11 when running.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to claim 10 or 11.

Citation Information

Patent Citations

  • Data forwarding method and system, and related device

    CN106789667A

  • Route learning method and gateway equipment

    CN109547350A

  • Virtual machine creation method, ARP proxy gateway and VTEP

    CN112565476A

  • Multi-tenant communication isolation method and hybrid networking method

    CN114640554A

  • Cross-VPC traffic forwarding method

    CN115499434A

Cited By

  • Data transmission method, device, system, equipment, medium and product

    CN120729780A