CN109787879B - Extensible virtual local area network VXLAN address aggregation method, device and equipment - Google Patents

Extensible virtual local area network VXLAN address aggregation method, device and equipment Download PDF

Info

Publication number
CN109787879B
CN109787879B CN201711116353.8A CN201711116353A CN109787879B CN 109787879 B CN109787879 B CN 109787879B CN 201711116353 A CN201711116353 A CN 201711116353A CN 109787879 B CN109787879 B CN 109787879B
Authority
CN
China
Prior art keywords
server
vni
sub
address
arp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711116353.8A
Other languages
Chinese (zh)
Other versions
CN109787879A (en
Inventor
朱文惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
XFusion Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201711116353.8A priority Critical patent/CN109787879B/en
Publication of CN109787879A publication Critical patent/CN109787879A/en
Application granted granted Critical
Publication of CN109787879B publication Critical patent/CN109787879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a method, a device and equipment for address aggregation and data processing of a scalable virtual local area network (VXLAN). The method of the embodiment of the application is applied to VXLAN three-layer gateway equipment, and comprises the following steps: storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and forwarding the message corresponding to the Sub-VNI according to the corresponding relation. The method and the device can reduce the deployment complexity of the VXLAN three-layer gateway, reduce the address waste and increase the addressing flexibility.

Description

Extensible virtual local area network VXLAN address aggregation method, device and equipment
Technical Field
The application relates to the technical field of networks, in particular to the technical field of an extensible virtual local area network VXLAN network.
Background
An Extensible Virtual Local Area Network (VXLAN) is a Network technology based on an IP Network and adopting a "Media Access Control in User Datagram Protocol" (MAC in UDP). In the VXLAN, Network isolation of the VXLAN can be realized by using an extensible virtual local area Network Identifier (VXLAN Network Identifier, VNI for short), and the requirements of a large number of users can be met.
In general, VXLAN, and non-VXLAN between different VNIs cannot communicate directly with each other. In order to enable communication between VXLANs and between VXLAN and non-VXLAN, VXLAN has introduced VXLAN gateways. VXLAN gateways can be divided into: (1) a second-layer gateway: the method is used for solving the problem that the tenant accesses the VXLAN virtual network, and can also be used for subnet communication of the same VXLAN virtual network. (2) Three layers of gateways: for cross-subnet communication of VXLAN virtual networks and access to external networks. Currently, a VXLAN network three-layer gateway is deployed in such a way that each VNI corresponds to a three-layer address, thereby realizing three-layer interworking. The maximum resource 24 bits of VNI can reach 16M, the size is far larger than that of VLAN, and due to the fact that IPv4 addresses are scarce, waste of IP addresses is caused. In addition, due to the huge number of VNIs, the deployment scheme of the three-layer address will inevitably cause the complexity of deployment, which is not beneficial to network management.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for address aggregation and data processing of a scalable virtual local area network (VXLAN), and aims to solve the technical problems of complex VXLAN three-layer gateway deployment and address waste in the prior art.
Based on this, the embodiment of the present application discloses the following technical solutions:
in a first aspect of the embodiments of the present application, a method for address aggregation and data processing of a VXLAN in an extensible virtual local area network is disclosed, which is applied to a VXLAN three-layer gateway device, and the method includes: storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
In some embodiments, the Sub-VNIs at least include a first Sub-VNI, and the forwarding, according to the correspondence, a packet corresponding to the Sub-VNI includes: receiving an Address Resolution Protocol (ARP) request sent by a first server, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; sending an ARP response to the first server according to the corresponding relation, wherein the ARP response comprises a Media Access Control (MAC) address of the gateway equipment; and receiving the message sent by the first server, and forwarding the message.
In some embodiments, the Sub-VNIs further comprising a second Sub-VNI, and the receiving an address resolution protocol, ARP, request sent by the first server comprises: receiving an ARP request sent by a first server, wherein the ARP request comprises an IP address of a second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI; the sending an ARP reply to the first server according to the correspondence includes: and after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the receiving a packet sent by the first server, and forwarding the packet includes: and receiving a message sent by the first server, and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
In some embodiments, the method further comprises: after the second server and the first server are determined to belong to the same network segment, an ARP request is sent to the second server to request the MAC address of the second server; and receiving an ARP response sent by the second server, and creating an ARP table entry corresponding to the second server according to the MAC address of the second server contained in the ARP response.
In some embodiments, the receiving an address resolution protocol, ARP, request sent by a first server comprises: receiving an ARP request sent by a first server, wherein the ARP request is used for requesting the MAC address of the VXLAN three-layer gateway equipment; the first server has a correspondence with the first Sub-VNI; the sending an ARP reply to the first server according to the correspondence includes: and determining the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI.
In some embodiments, the receiving a packet sent by a first server, and forwarding the packet includes: receiving a message sent by a first server, wherein the destination MAC address of the message is the MAC address of the three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
In a second aspect of the embodiments of the present application, a method for address aggregation and data processing for a scalable virtual local area network VXLAN is disclosed, where the method is applied to a first server, where the first server has a corresponding relationship with a first scalable virtual local area network identifier Sub-VNI, the first Sub-VNI has a corresponding relationship with a Super scalable virtual local area network identifier Super-VNI, the Super-VNI shares an address of a same network segment with the first Sub-VNI and the second Sub-VNI, broadcast domains of the first Sub-VNI and the second Sub-VNI are isolated from each other, and the Super-VNI is configured with a three-layer network interface, where the method includes: sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment; and sending a message according to the Media Access Control (MAC) address of the gateway equipment contained in the ARP response.
In some embodiments, the sending an address resolution protocol, ARP, request to a VXLAN layer gateway device comprises: and when the second server and the first server belong to the same network segment, sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In some embodiments, the receiving the ARP reply sent by the VXLAN layer gateway device comprises: receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the VXLAN three-layer gateway equipment; the sending of the message according to the MAC address of the gateway device included in the ARP reply includes: and sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In some embodiments, the sending an address resolution protocol, ARP, request to a VXLAN layer gateway device comprises: and when the third server and the first server belong to different network segments, sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the receiving the ARP reply sent by the VXLAN layer gateway device comprises: receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI; the sending of the message according to the MAC address of the gateway device included in the ARP reply includes: sending a message to the gateway device, wherein a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
In a third aspect of the embodiments of the present application, a VXLAN three-layer gateway device is disclosed, which includes: the storage unit is used for storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and the forwarding unit is used for forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
In some embodiments, the forwarding unit comprises: the device comprises a receiving unit and a processing unit, wherein when the Sub-VNIs at least comprise a first Sub-VNI, the receiving unit receives an Address Resolution Protocol (ARP) request sent by a first server, and the ARP request comprises the first Sub-VNI corresponding to the first server; a sending unit, configured to send an ARP reply to the first server according to the correspondence, where the ARP reply includes a media access control MAC address of the gateway device; and the message processing unit is used for receiving the message sent by the first server and forwarding the message.
In some embodiments, the receiving unit comprises: a first receiving unit, configured to receive, when the Sub-VNIs further includes a second Sub-VNI, an ARP request sent by a first server, where the ARP request includes an IP address of the second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI; the transmission unit includes: and the first sending unit is used for sending an ARP response to the first server after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the message processing unit includes: and the first processing unit is used for receiving the message sent by the first server and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
In some embodiments, the apparatus further comprises: the ARP request unit is used for sending an ARP request to the second server to request the MAC address of the second server after the second server and the first server are determined to belong to the same network segment; and the table item creating unit is used for receiving the ARP response sent by the second server and creating an ARP table item corresponding to the second server according to the MAC address of the second server contained in the ARP response.
In some embodiments, the receiving unit comprises: a second receiving unit, configured to receive an ARP request sent by a first server, where the ARP request is used to request an MAC address of the VXLAN three-layer gateway device; the first server has a correspondence with the first Sub-VNI; the transmission unit includes: and a second sending unit, configured to determine, according to the stored correspondence between the Super-VNI and the Sub-VNI, a MAC address of a three-layer network interface of the Super-VNI corresponding to the first Sub-VNI, and send an ARP reply to the first server, where the ARP reply includes the MAC address of the three-layer network interface of the Super-VNI.
In some embodiments, the message processing unit includes: a second processing unit, configured to receive a packet sent by a first server, where a destination MAC address of the packet is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the packet is an IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server. In a fourth aspect of the embodiments of the present application, a first server is disclosed, where the first server has a corresponding relationship with a first scalable virtual local area network identifier Sub-VNI, the first Sub-VNI has a corresponding relationship with a Super scalable virtual local area network identifier Super-VNI, the Super-VNI shares an address of a same network segment with the first Sub-VNI and the second Sub-VNI, broadcast domains of the first Sub-VNI and the second Sub-VNI are isolated from each other, and the Super-VNI is configured with a three-layer network interface, including: an ARP request unit, configured to send an ARP request to a VXLAN three-layer gateway device, where the ARP request includes a first Sub-VNI corresponding to the first server; a receiving unit, configured to receive an ARP reply sent by the VXLAN three-layer gateway device, where the ARP reply includes an MAC address of the gateway device; and the message sending unit is used for sending a message according to the MAC address of the gateway equipment contained in the ARP response.
In some embodiments, the ARP request unit comprises: the first request unit is used for sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server when the second server and the first server belong to the same network segment, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In some embodiments, the receiving unit comprises: a first receiving unit, configured to receive an ARP reply sent by the VXLAN layer gateway device, where the ARP reply includes an MAC address of the VXLAN layer gateway device; the message sending unit includes: and the first message sending unit is used for sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In some embodiments, the ARP request unit comprises: and the second request unit is used for sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment when the third server and the first server are determined to belong to different network segments.
In some embodiments, the receiving unit comprises: a second receiving unit, configured to receive an ARP reply sent by the VXLAN three-layer gateway device, where the ARP reply includes a MAC address of a three-layer network interface of a Super-VNI corresponding to the first Sub-VNI; the message sending unit includes: a second message sending unit, configured to send a message to the gateway device, where a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
In a fifth aspect of embodiments of the present application, an apparatus for address aggregation and data processing for a scalable virtual local area network VXLAN is disclosed, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors comprise instructions for: storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: if the Sub-VNIs at least comprise a first Sub-VNI, receiving an Address Resolution Protocol (ARP) request sent by a first server, wherein the ARP request comprises the first Sub-VNI corresponding to the first server; sending an ARP response to the first server according to the corresponding relation, wherein the ARP response comprises a Media Access Control (MAC) address of the gateway equipment; and receiving the message sent by the first server, and forwarding the message.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: if the Sub-VNI also comprises a second Sub-VNI, receiving an ARP request sent by the first server, wherein the ARP request comprises an IP address of the second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI; and after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and receiving a message sent by the first server, and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: after the second server and the first server are determined to belong to the same network segment, an ARP request is sent to the second server to request the MAC address of the second server; and receiving an ARP response sent by the second server, and creating an ARP table entry corresponding to the second server according to the MAC address of the second server contained in the ARP response.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving an ARP request sent by a first server, wherein the ARP request is used for requesting the MAC address of the VXLAN three-layer gateway equipment; the first server has a correspondence with the first Sub-VNI; and determining the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving a message sent by a first server, wherein the destination MAC address of the message is the MAC address of the three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
In a sixth aspect of embodiments of the present application, an apparatus for address aggregation and data processing for a scalable virtual local area network VXLAN is disclosed, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors comprise instructions for: sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment; and sending a message according to the MAC address of the gateway equipment contained in the ARP response.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and when the second server and the first server belong to the same network segment, sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the VXLAN three-layer gateway equipment; and sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and when the third server and the first server belong to different network segments, sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: : receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI; sending a message to the gateway device, wherein a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
In a seventh aspect of embodiments of the present application, a machine-readable medium is disclosed, on which instructions are stored, which when executed by one or more processors, cause an apparatus to perform one or more of the methods for address aggregation and data processing for a scalable virtual local area network VXLAN as described in the first aspect.
In an eighth aspect of embodiments of the present application, a machine-readable medium is disclosed, on which instructions are stored, which when executed by one or more processors, cause an apparatus to perform one or more of the extensible virtual local area network VXLAN address aggregation and data processing methods described in the third aspect.
According to the technical scheme, the embodiment of the application has the following advantages: in the embodiment of the application, the corresponding relation between the Super-VNI and the Sub-VNI is stored, the Super-VNI and the Sub-VNI share the same network segment, and the Sub-VNIs share one three-layer network interface, so that the consumption of part of subnet numbers, subnet default gateway addresses and subnet directional broadcast addresses is reduced, and the purpose of using the same subnet network segment address in different broadcast domains is realized. The method can eliminate subnet difference, increase the flexibility of addressing and reduce the waste of idle addresses.
Drawings
Fig. 1 is a schematic diagram of a VXLAN address aggregation and data processing method according to an embodiment of the present application;
fig. 2 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a VXLAN address aggregation and data processing method according to another embodiment of the present application;
fig. 4 is a schematic view of an application scenario provided in another embodiment of the present application;
fig. 5 is a schematic diagram of a VXLAN address aggregation and data processing method according to yet another embodiment of the present application;
fig. 6 is a schematic view of an application scenario provided in yet another embodiment of the present application;
fig. 7 is a schematic diagram of a VXLAN address aggregation and data processing method according to yet another embodiment of the present application;
fig. 8 is a schematic diagram of a gateway device according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a server according to an embodiment of the present application;
fig. 10 is a schematic diagram of a VXLAN address aggregation and data processing apparatus according to another embodiment of the present application;
fig. 11 is a schematic diagram of a VXLAN address aggregation and data processing apparatus according to another embodiment of the present application.
Detailed Description
In the prior art, in a VXLAN network three-layer gateway deployment scheme, each VNI corresponds to one three-layer address, thereby realizing three-layer interworking. The maximum resource 24 bits of VNI can reach 16M, the size is far larger than that of VLAN, and due to the fact that IPv4 addresses are scarce, waste of IP addresses is caused. In addition, due to the huge number of VNIs, the deployment scheme of the three-layer address will inevitably cause the complexity of deployment, which is not beneficial to network management.
For example, the VNI1 predicts that there will be a future demand for 10 server addresses, and assigns a subnet 10.1.1.0/28 with a mask length of 28, where 10.1.1.0 is the subnet number, 10.1.1.15 is the subnet directed broadcast address, neither address can be used as a server address, and 10.1.1.1 is also not available as a server address as a subnet default gateway address, leaving 13 addresses in the range of 10.1.1.2-10.1.1.14 available to the server. Thus, although VNI1 only requires 10 addresses, it is assigned 13 addresses according to subnet partitioning. Similarly, VNI2 anticipates a future need for 5 server addresses, and needs to assign at least one subnet 10.1.1.16/29 with a mask length of 29. VNI3 predicts that there will be only 1 server in the future, and assigns a subnet 10.1.1.24/30 with a mask length of 30. The VNI described above requires 10+5+1 to 16 addresses, but according to the addressing method of the general VNI, even the optimized solution needs to occupy 16+8+4 to 28 addresses, which wastes nearly half of the addresses. Moreover, if VNI1 later did not have 10 servers, but actually accessed only 3 servers, the extra addresses would be wasted because they could not be used by other VNIs.
On the other hand, such division also brings great inconvenience to subsequent network upgrade and expansion. Suppose VNI3 needs to add 2 more servers in the future without willing to change the already assigned IP address. And in case the address behind 10.1.1.24 has been allocated to someone else, a new user of VNI3 can only be re-allocated one subnet with a 29 bit mask and one new VNI. Thus, the client in VNI3, although having only 3 servers, is distributed in two subnets and not in the same VNI, which is not conducive to network management.
Therefore, the VXLAN network deployment scheme provided by the prior art has the defects of complex deployment and waste of addresses. The embodiment of the application aims to solve the technical problem, and provides a method and equipment for address aggregation and data processing of a virtual local area network (VXLAN), which can reduce the deployment complexity of VXLAN three-layer gateways, reduce address waste and increase addressing flexibility.
The VXLAN address aggregation and data processing method and apparatus provided in the embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a VXLAN address aggregation and data processing method provided in an embodiment of the present application, where the method is applied to a VXLAN three-layer gateway device (hereinafter referred to as a gateway device).
S101, the gateway device stores the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI.
In the embodiment of the application, VXLAN address Aggregation and data processing are realized by using VXLAN Aggregation (Aggregation) technology. VXLAN aggregation is to use multiple VNIs to isolate broadcast domains in a physical network, so that different VNIs share the same network segment and belong to the same subnet. The plurality of VNIs comprises a Super-VNI and a Sub-VNI. Wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface.
The Super-VNI is different from the VNI in the general sense, and only establishes a three-layer network interface VNIif, corresponding to the subnet, and does not include a physical interface. The Super-VNI can be seen as a logical three-tier concept, which is a collection of several Sub-VNIs. The Sub-VNI only includes a physical interface for isolating a broadcast domain, and generally does not establish a three-layer network interface VNIif. It exchanges with the external three-layer interface through the Super-VNI three-layer interface.
In general, one Super-VNI may correspond to one or more Sub-VNIs that maintain different broadcast domains. The Sub-VNI no longer occupies an independent subnet segment. In the same Super-VNI, no matter which Sub-VNI the server belongs to, the IP address of the server is in the Sub-network segment corresponding to the Super-VNI. Thus, Sub-VNIs share the same three-layer interface, which not only reduces the consumption of a part of subnet numbers, subnet default gateway addresses and subnet directional broadcast addresses, but also realizes the purpose that different broadcast domains use the same subnet section address. By the method, subnet differences are eliminated, addressing flexibility is improved, and idle address waste is reduced.
Referring to fig. 2, a schematic view of an application scenario provided in an embodiment of the present application is shown. The following description will be made by taking the example shown in fig. 2. Assuming that VNI1 predicts a demand for 10 server addresses in the future, VNI2 predicts a demand for 5 server addresses in the future, and VNI3 predicts a demand for 1 server address in the future. In this embodiment, VNI4 may be newly created and configured as a Super-VNI, and a subnet 10.1.1.0/24 with a mask length of 24 is assigned to it, where 10.1.1.0 is the subnet number and 10.1.1.1 is the subnet gateway address as shown in fig. 2. The address partition of Sub-VNIs (VNI1, VNI2, VNI3) is shown in Table 2 below. In the VXLAN Aggregation implementation, the boundaries between Sub-VNIs are no longer the former subnet boundaries, and the Sub-VNIs can flexibly divide address ranges in the subnet corresponding to the Super-VNI according to the number of the demands of the respective servers.
As can be seen from table 2, VNI1, VNI2, and VNI3 share the same subnet (10.1.1.0/24), subnet default gateway address (10.1.1.1), and subnet directed broadcast address (10.1.1.255). Thus, other subnet numbers (10.1.1.16, 10.1.1.24) and subnet default gateways (10.1.1.17, 10.1.1.25) used in common VNI implementations, as well as subnet directed broadcast addresses (10.1.1.15, 10.1.1.23, 10.1.1.27), can be used as server IP addresses. Thus, a total of 10+5+1 to 16 addresses are required for 3 VNIs, and actually exactly 16 addresses (10.1.1.2 to 10.1.1.17) are allocated in this subnet. These 16 server addresses plus subnet number (10.1.1.0), subnet default gateway (10.1.1.1) and subnet directed broadcast address (10.1.1.255), together with 19 IP addresses, remain 255-19 ═ 236 addresses in the network segment that can be used by any server in the Sub-VNI.
See table 1 for an example of VXLAN server address partitioning provided by the prior art. As can be seen from table 1, for a server requiring only 16 addresses for actual needs, using the addressing scheme of the existing VNI, even the optimized scheme needs to occupy 16+8+ 4-28 addresses, which wastes nearly half of the addresses. Moreover, if VNI1 later did not have 10 servers, but actually accessed only 3 servers, the extra addresses would be wasted because they could not be used by other VNIs. As shown in table 2, a total of 10+5+1 to 16 addresses are required for 3 VNIs, and actually, exactly 16 addresses (10.1.1.2 to 10.1.1.17) are allocated in this subnet. The 16 server addresses plus the subnet number (10.1.1.0), the subnet default gateway (10.1.1.1) and the subnet directed broadcast address (10.1.1.255) together use up 19 IP addresses, and the remaining 255-19-236 addresses in the network segment can be used by any server in the Sub-VNI, thereby reducing the waste of addresses.
Table 1 prior art VXLAN network server address partitioning example table
VLAN Sub-network Gateway address Number of available addresses Number of available servers Actual need
2 10.1.1.0/28 10.1.1.1 14 13 10
3 10.1.1.16/29 10.1.1.17 6 5 5
4 10.1.1.24/30 10.1.1.25 2 1 1
Table 2 address division example table of VXLAN Aggregation server in the present application
Figure BDA0001466320910000091
Through comparison between table 1 and table 2, it can be seen that the method provided by the embodiment of the present application significantly reduces address waste and improves addressing flexibility. It should be noted that, in this embodiment of the present application, the gateway device is configured to store a correspondence between a Super-VNI and one or more Sub-VNIs, so as to facilitate subsequent packet forwarding.
And S102, the gateway equipment forwards the message corresponding to the Sub-VNI according to the corresponding relation.
In a specific implementation, the Sub-VNIs at least a first Sub-VNI, and the forwarding, according to the correspondence, a packet corresponding to the Sub-VNI includes: receiving an Address Resolution Protocol (ARP) request sent by a first server, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; sending an ARP response to the first server according to the corresponding relation, wherein the ARP response comprises a Media Access Control (MAC) address of the gateway equipment; and receiving the message sent by the first server, and forwarding the message.
The method has different implementation modes according to different forwarding scenes. It should be noted that, when the VXLANAggregation realizes that different VNIs share the same subnet segment address, the three-layer forwarding problem between Sub-VNIs is also brought. On one hand, how to realize three-layer interworking between different Sub-VNIs; on the other hand, how to implement three-layer communication of the Sub-VNI with external networks.
In one possible implementation, in order to implement three-layer interworking between different Sub-VNIs, the Sub-VNIs may learn a MAC address of the gateway device through an ARP request, and implement communication between different Sub-VNIs through the gateway device. Assuming that the Sub-VNIs comprises a first Sub-VNI and a second Sub-VNI, the gateway device may receive an ARP request sent by the first server, the ARP request containing an IP address of the second server. Wherein the first server has a correspondence with the first Sub-VNI and the second server has a correspondence with the second Sub-VNI. The gateway device may determine that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored correspondence between the Super-VNI and the Sub-VNI, and then send an ARP reply to the first server, where the ARP reply includes the MAC address of the VXLAN three-layer gateway device. In specific implementation, after determining that the second server and the first server belong to the same network segment, the gateway device sends an ARP request to the second server to request the MAC address of the second server. And the gateway equipment receives the ARP response sent by the second server, and creates an ARP table entry corresponding to the second server according to the MAC address of the second server contained in the ARP response. The gateway device may receive a packet sent by the first server, and send the packet to the second server according to the stored ARP entry corresponding to the second server.
In another possible implementation, to implement three-tier communication of the Sub-VNI with the external network, the Sub-VNI may learn a MAC address of a three-tier network interface of the Super-VNI through the ARP request, and implement communication with the external network through the three-tier network interface. Specifically, the gateway device receives an ARP request sent by a server, where the ARP request is used to request the MAC address of the VXLAN layer gateway device. The first server has a correspondence with the first Sub-VNI. And the gateway equipment determines the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sends an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI. The gateway equipment receives a message sent by a first server, wherein the destination MAC address of the message is the MAC address of a three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
The different implementations described above are explained in detail below with reference to fig. 3 to 6.
Referring to fig. 3, a schematic diagram of a VXLAN address aggregation and data processing method according to another embodiment of the present application is shown.
It should be noted that, in a common VNI implementation manner, servers between VNIs may perform three-layer forwarding through different gateways to achieve the purpose of interworking. However, in the VXLAN Aggregation mode, the same server in the Super-VNI uses the same network segment address and shares the same gateway address. Even if the servers belong to different Sub-VNIs, because the servers belong to the same subnet, only two-layer forwarding is carried out when the servers communicate with each other, and three-layer forwarding is not carried out through the gateway. In fact, the servers of different Sub-VNIs isolated from each other at two levels, which causes the problem that communication between Sub-VNIs impossible. The solution to this problem is to use proxy arp (proxy arp).
Referring to fig. 4, a schematic view of an application scenario provided in another embodiment of the present application is shown. As shown in FIG. 4, assume that VNI4 is a Super-VNI, and its corresponding Sub-VNIs are VNI1 and VNI 2. The first Server (Server A) corresponds to VNI1 and has an IP address of 10.1.1.2/24. The second Server (Server B) corresponds to VNI2 and has an IP address of 10.1.1.3/24. The first server and the second server belong to the same subnet. VNI4 is Super-VNI, and the address of the three-layer interface VNIif4 is 10.1.1.1/24. Assuming that the gateway device enables Proxy ARP between Sub-VNIs, the following description will take the example of a communication procedure between a first server in VNI1 and a second server in VNI 2.
S301, the first server determines that the first server and the second server belong to the same subnet.
Specifically, the first server compares the IP address (10.1.1.3) of the second server with its own segment 10.1.1.0/24, and finds that the second server and the first server are in the same subnet and belong to the same segment. However, the ARP table of the first server does not have a corresponding entry for the second server.
S302, the first server sends an ARP request for requesting the MAC address of the second server.
Specifically, the first server sends an ARP broadcast requesting the MAC address of the destination server.
And S303, after determining that the second server and the first server belong to the same network segment, the gateway device sends an ARP request to the second server to request the MAC address of the second server.
Since the second server is not within the broadcast domain of VNI1, the ARP request of the first server cannot be received. Because the Proxy ARP between Sub-VNIs is enabled on the gateway equipment, after the gateway equipment receives an ARP request of a first server, the gateway equipment starts to search in a routing table, and finds that an IP address (10.1.1.3) of a second server in the ARP request is a direct connection interface route, the gateway equipment sends an ARP broadcast to all other Sub-VNI interfaces to request an MAC address of the second server.
S304, the second server receives the ARP request sent by the gateway equipment and sends an ARP response.
S305, after receiving the ARP response of the second server, the gateway equipment sends the ARP response to the first server.
The gateway device responds to the first server with its own MAC address as the MAC address of the second server, where the ARP reply contains the gateway device's own MAC address.
S306, the gateway device stores the ARP table entry corresponding to the second server.
S307, the first server sends the message. And the destination MAC address of the message is the MAC address of the gateway equipment, and the destination IP of the message is the IP address of the second server.
S308, the gateway equipment receives the message sent by the first server and sends the message to the second server according to the stored ARP table entry corresponding to the second server.
It should be noted that the process of sending the message from the second server to the first server is similar, and may be performed with reference to the above steps.
The above describes the communication process between Sub-VNIs in the same subnet, and the following describes the communication between Sub-VNIs and an external network.
Referring to fig. 5, a schematic diagram of a VXLAN address aggregation and data processing method according to yet another embodiment of the present application is provided.
A specific application scenario is described below in conjunction with fig. 6. Referring to fig. 6, it is assumed that the gateway device 1(Switch1) is configured with a Super-VNI4, a Sub-VNI1 and a Sub-VNI 2, and is configured with a common three-layer interface VNIif 10. Two common three-tier interfaces VNIif10 and VNIif20 are configured on the network device 2(Switch 2). Suppose that the first Server (Server A) under Sub-VLAN 1 in the Super-VNI4 wants to access the third Server (Server C) connected to Switch 2. Assume that a route to 10.1.3.0/24 segment has been configured on Switch1 and a route to 10.1.1.0/24 segment has been configured on Switch 2.
S501, the first server determines that the first server and the third server belong to different subnets.
Specifically, the first server compares the IP address (10.1.3.2) of the third server with the network segment 10.1.1.0/24 where the first server is located, and finds that the second server and the first server are not in the same subnet and belong to different network segments.
S502, the first server sends an ARP request for requesting the MAC address of the first gateway device.
S503, the first gateway device determines the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sends an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI.
Specifically, after receiving the ARP request, the Switch1 searches for the correspondence between the Sub-VNI and the Super-VNI, and sends an ARP reply from the Sub-VNI1 to the first server. The source MAC address in the ARP reply message is the MAC address of VNIif4 corresponding to Super-VNI 4. At this time, the first server learns the MAC address of the gateway.
S504, the first server sends the message. Wherein the destination MAC address of the message is the MAC address of the three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of the third server.
For example, the first server sends, to the first gateway device, a message with a destination MAC of VNIif4 corresponding to Super-VNI4 and a destination IP of 10.1.3.2.
And S505, after receiving the message, the first gateway equipment performs three-layer forwarding.
After receiving the message, the first gateway device Switch1 performs three-layer forwarding, determines that the next hop address is 10.1.2.2 and the output interface is VNIif10 according to the IP address of the third server, and sends the message to the gateway device Switch2 corresponding to the third server.
And S506, after receiving the message, the second gateway equipment performs three-layer forwarding and sends the message to a third server.
Specifically, after receiving the message, the Switch2 performs three-layer forwarding, and sends the message to the third server through the direct output interface VNIif 20.
S507, the third server sends a response message.
S508, the second gateway device sends a response message to the first gateway device.
And S509, after receiving the message, the first gateway device performs three-layer forwarding, and sends the message to the first server through the Super-VNI.
From the above example, it can be seen that the application binds different Sub-VNIs to the same Super-VNI by an address aggregation technology, so that the isolation function between the Sub-VNIs with normal and different three-tier service functions is still maintained. Because the expansion of the VNI in the VXLAN scene can reach 16M, the deployment complexity of the three-layer gateway service and the waste problem of the IP address are more prominent than those in the VLAN scene, the embodiment of the application can simplify the three-layer address deployment in the VXLAN network and save the IP address. Specifically, different Sub-VNIs share the same three-layer interface, so that the consumption of a part of subnet numbers, subnet default gateway addresses and subnet directional broadcast addresses is reduced, and the purpose of using the same subnet network segment address by different broadcast domains is realized. The method provided by the embodiment of the application eliminates subnet differences, increases the flexibility of addressing and reduces the waste of idle addresses.
The method provided by the embodiment of the present application is introduced as a whole, and the data processing method is introduced from the server side.
Referring to fig. 7, a schematic diagram of a VXLAN address aggregation and data processing method according to another embodiment of the present application is provided. The method is applied to a first server, the first server has a corresponding relation with a first extensible virtual local area network identity Sub-VNI, the first Sub-VNI has a corresponding relation with a Super extensible virtual local area network identity Super-VNI, the first Sub-VNI and a second Sub-VNI share the same network segment address, the broadcast domains of the first Sub-VNI and the second Sub-VNI are isolated from each other, and the Super-VNI is configured with a three-layer network interface. The method comprises the following steps:
s701, a first server sends an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server.
In one possible implementation, the sending an address resolution protocol ARP request to a VXLAN layer gateway device includes: and when the second server and the first server belong to the same network segment, sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In one possible implementation, the sending an address resolution protocol ARP request to a VXLAN layer gateway device includes: and when the third server and the first server belong to different network segments, sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment.
S702, the first server receives an ARP reply sent by the VXLAN layer gateway device, where the ARP reply includes the MAC address of the gateway device.
In a possible implementation manner, the receiving the ARP reply sent by the VXLAN layer gateway device includes: and receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In a possible implementation manner, the receiving the ARP reply sent by the VXLAN layer gateway device includes: receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI;
and S703, the first server sends a message according to the Media Access Control (MAC) address of the gateway device contained in the ARP response.
In a possible implementation manner, the sending a packet according to the MAC address of the gateway device included in the ARP reply includes: and sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In a possible implementation manner, the sending a packet according to the MAC address of the gateway device included in the ARP reply includes: sending a message to the gateway device, wherein a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
It should be noted that, specific implementation of the server side can be performed with reference to fig. 1 to 6, and details are not described herein.
The following describes equipment corresponding to the method in the embodiment of the present application.
Referring to fig. 8, a schematic diagram of a gateway device according to an embodiment of the present application is provided.
A VXLAN three-layer gateway device 800 comprising:
a storage unit 801, configured to store a correspondence between a Super extensible virtual local area network identifier Super-VNI and a Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface. The specific implementation of the storage unit 801 may be implemented with reference to S101 in the embodiment shown in fig. 1.
A forwarding unit 802, configured to forward, according to the correspondence, the packet corresponding to the Sub-VNI. The specific implementation of the forwarding unit 802 may be implemented with reference to S102 in the embodiment shown in fig. 1.
In some embodiments, the forwarding unit comprises: the device comprises a receiving unit and a processing unit, wherein when the Sub-VNIs at least comprise a first Sub-VNI, the receiving unit receives an Address Resolution Protocol (ARP) request sent by a first server, and the ARP request comprises the first Sub-VNI corresponding to the first server; a sending unit, configured to send an ARP reply to the first server according to the correspondence, where the ARP reply includes a media access control MAC address of the gateway device; and the message processing unit is used for receiving the message sent by the first server and forwarding the message.
In some embodiments, the receiving unit comprises: a first receiving unit, configured to receive, when the Sub-VNIs further includes a second Sub-VNI, an ARP request sent by a first server, where the ARP request includes an IP address of the second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI; the transmission unit includes: and the first sending unit is used for sending an ARP response to the first server after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the message processing unit includes: and the first processing unit is used for receiving the message sent by the first server and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
In some embodiments, the apparatus further comprises: the ARP request unit is used for sending an ARP request to the second server to request the MAC address of the second server after the second server and the first server are determined to belong to the same network segment; and the table item creating unit is used for receiving the ARP response sent by the second server and creating an ARP table item corresponding to the second server according to the MAC address of the second server contained in the ARP response.
In some embodiments, the receiving unit comprises: a second receiving unit, configured to receive an ARP request sent by a first server, where the ARP request is used to request an MAC address of the VXLAN three-layer gateway device; the first server has a correspondence with the first Sub-VNI; the transmission unit includes: and a second sending unit, configured to determine, according to the stored correspondence between the Super-VNI and the Sub-VNI, a MAC address of a three-layer network interface of the Super-VNI corresponding to the first Sub-VNI, and send an ARP reply to the first server, where the ARP reply includes the MAC address of the three-layer network interface of the Super-VNI.
In some embodiments, the message processing unit includes: a second processing unit, configured to receive a packet sent by a first server, where a destination MAC address of the packet is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the packet is an IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
Referring to fig. 9, a schematic diagram of a server according to an embodiment of the present application is provided.
A first server 900, the first server having an association with a first extensible virtual local area network identity, Sub-VNI, the first Sub-VNI having an association with a Super extensible virtual local area network identity, Super-VNI, the Super-VNI sharing an address of a same network segment as the first Sub-VNI and a second Sub-VNI, broadcast domains of the first Sub-VNI and the second Sub-VNI being isolated from each other, the Super-VNI being configured with a three-layer network interface, comprising:
an ARP request unit 901, configured to send an address resolution protocol ARP request to a VXLAN three-layer gateway device, where the ARP request includes a first Sub-VNI corresponding to the first server. The specific implementation of the ARP request unit 901 can be implemented with reference to S701 in the embodiment shown in fig. 7.
A receiving unit 902, configured to receive an ARP reply sent by the VXLAN gateway device, where the ARP reply includes a MAC address of the gateway device. The specific implementation of the receiving unit 902 can be implemented with reference to S702 in the embodiment shown in fig. 7.
A message sending unit 903, configured to send a message according to the MAC address of the gateway device included in the ARP reply. The specific implementation of the message sending unit 903 may be implemented with reference to S703 in the embodiment shown in fig. 7.
In some embodiments, the ARP request unit comprises: the first request unit is used for sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server when the second server and the first server belong to the same network segment, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In some embodiments, the receiving unit comprises: a first receiving unit, configured to receive an ARP reply sent by the VXLAN layer gateway device, where the ARP reply includes an MAC address of the VXLAN layer gateway device; the message sending unit includes: and the first message sending unit is used for sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In some embodiments, the ARP request unit comprises: and the second request unit is used for sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment when the third server and the first server are determined to belong to different network segments.
In some embodiments, the receiving unit comprises: a second receiving unit, configured to receive an ARP reply sent by the VXLAN three-layer gateway device, where the ARP reply includes a MAC address of a three-layer network interface of a Super-VNI corresponding to the first Sub-VNI; the message sending unit includes: a second message sending unit, configured to send a message to the gateway device, where a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 10, a schematic diagram of an apparatus for address aggregation and data processing of a scalable virtual local area network VXLAN according to another embodiment of the present application is provided.
The device 1000 may include at least one processor 1001, at least one network interface 1002 or other communication interface, memory 1003, and at least one communication bus 1004 for enabling communications among the devices. The processor 1001 is used to execute executable modules, such as computer programs, stored in the memory 1003. The processor 1001 may be a CPU, and the Memory 1003 may include a Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the system gateway and at least one other network element is realized through at least one network interface, and the internet, a wide area network, a local area network, a metropolitan area network and the like can be used. Wherein one or more programs are stored in the memory 1003 and configured to be executed by the one or more processors 1001 includes instructions for: storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: if the Sub-VNIs at least comprise a first Sub-VNI, receiving an Address Resolution Protocol (ARP) request sent by a first server, wherein the ARP request comprises the first Sub-VNI corresponding to the first server; sending an ARP response to the first server according to the corresponding relation, wherein the ARP response comprises a Media Access Control (MAC) address of the gateway equipment; and receiving the message sent by the first server, and forwarding the message.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: if the Sub-VNI also comprises a second Sub-VNI, receiving an ARP request sent by the first server, wherein the ARP request comprises an IP address of the second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI; and after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and receiving a message sent by the first server, and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: after the second server and the first server are determined to belong to the same network segment, an ARP request is sent to the second server to request the MAC address of the second server; and receiving an ARP response sent by the second server, and creating an ARP table entry corresponding to the second server according to the MAC address of the second server contained in the ARP response.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving an ARP request sent by a first server, wherein the ARP request is used for requesting the MAC address of the VXLAN three-layer gateway equipment; the first server has a correspondence with the first Sub-VNI; and determining the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving a message sent by a first server, wherein the destination MAC address of the message is the MAC address of the three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of a third server; wherein the third server and the first server belong to different network segments; and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
Referring to fig. 11, a schematic diagram of an apparatus for address aggregation and data processing of a scalable virtual local area network VXLAN according to another embodiment of the present application is provided.
The device 1100 may include at least one processor 1101, at least one network interface 1102 or other communication interface, memory 1103, and at least one communication bus 1104 for enabling communications among the devices. The processor 1101 is used to execute executable modules, such as computer programs, stored in the memory 1103. The processor 1101 may be a CPU, and the Memory 1103 may include a Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the system gateway and at least one other network element is realized through at least one network interface, and the internet, a wide area network, a local area network, a metropolitan area network and the like can be used. One or more programs are stored in the memory 1103 and configured to be executed by the one or more processors 1101 include instructions for: sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment; and sending a message according to the MAC address of the gateway equipment contained in the ARP response.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and when the second server and the first server belong to the same network segment, sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the VXLAN three-layer gateway equipment; and sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: and when the third server and the first server belong to different network segments, sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment.
In some embodiments, the processor further specifically executes the one or more programs including instructions for: : receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI; sending a message to the gateway device, wherein a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of a gateway device, enable the gateway device to perform a method for extensible virtual local area network, VXLAN, address aggregation and data processing, the method comprising: storing the corresponding relation between the Super extensible virtual local area network identifier Super-VNI and the Sub extensible virtual local area network identifier Sub-VNI; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface; and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of a server, enable the server to perform a method for extensible virtual local area network, VXLAN, address aggregation and data processing, the method comprising: sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server; receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment; and sending a message according to the MAC address of the gateway equipment contained in the ARP response.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (18)

1. A method for address aggregation and data processing of a scalable virtual local area network (VXLAN) is applied to VXLAN three-layer gateway equipment, and comprises the following steps:
storing the corresponding relation between Super extensible virtual local area network identifiers (Super-VNIs) and Sub extensible virtual local area network identifiers (Sub-VNIs), wherein one Super-VNI corresponds to one or more Sub-VNIs maintaining different broadcast domains; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface;
and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
2. The method according to claim 1, wherein the Sub-VNIs at least include a first Sub-VNI, and wherein the forwarding the packet corresponding to the Sub-VNI according to the correspondence relationship comprises:
receiving an Address Resolution Protocol (ARP) request sent by a first server, wherein the ARP request comprises a first Sub-VNI corresponding to the first server;
sending an ARP response to the first server according to the corresponding relation, wherein the ARP response comprises a Media Access Control (MAC) address of the gateway equipment;
and receiving the message sent by the first server, and forwarding the message.
3. The method of claim 2, wherein the Sub-VNIs further comprises a second Sub-VNI, and wherein receiving the address resolution protocol, ARP, request sent by the first server comprises:
receiving an ARP request sent by a first server, wherein the ARP request comprises an IP address of a second server; the first server has a correspondence with the first Sub-VNI, and the second server has a correspondence with the second Sub-VNI;
the sending an ARP reply to the first server according to the correspondence includes:
and after determining that the second server and the first server belong to the same network segment according to the IP address of the second server and the stored corresponding relation between the Super-VNI and the Sub-VNI, sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the VXLAN three-layer gateway equipment.
4. The method according to claim 2 or 3, wherein the receiving the message sent by the first server, and the forwarding the message comprises:
and receiving a message sent by the first server, and sending the message to the second server according to the stored ARP table entry corresponding to the second server.
5. A method according to claim 2 or 3, characterized in that the method further comprises:
after the second server and the first server are determined to belong to the same network segment, an ARP request is sent to the second server to request the MAC address of the second server;
and receiving an ARP response sent by the second server, and creating an ARP table entry corresponding to the second server according to the MAC address of the second server contained in the ARP response.
6. The method of claim 2, wherein receiving an Address Resolution Protocol (ARP) request sent by a first server comprises:
receiving an ARP request sent by a first server, wherein the ARP request is used for requesting the MAC address of the VXLAN three-layer gateway equipment; the first server has a correspondence with the first Sub-VNI;
the sending an ARP reply to the first server according to the correspondence includes:
and determining the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI according to the stored corresponding relation between the Super-VNI and the Sub-VNI, and sending an ARP response to the first server, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI.
7. The method according to claim 2 or 6, wherein the receiving a message sent by a first server, and the forwarding the message comprises:
receiving a message sent by a first server, wherein the destination MAC address of the message is the MAC address of the three-layer network interface of the Super-VNI, and the destination IP of the message is the IP address of a third server; wherein the third server and the first server belong to different network segments;
and determining a next hop address according to the IP address of the third server, and sending the message to gateway equipment corresponding to the third server.
8. An address aggregation and data processing method for a scalable virtual local area network (VXLAN), the method being applied to a first server, the first server having a corresponding relationship with a first scalable virtual local area network identifier (Sub-VNI), the first Sub-VNI having a corresponding relationship with a Super scalable virtual local area network identifier (Super-VNI), one Super-VNI corresponding to one or more Sub-VNIs with different broadcast domains, the Super-VNI sharing an address of the same network segment with the first Sub-VNI and a second Sub-VNI, the broadcast domains of the first Sub-VNI and the second Sub-VNI being isolated from each other, the Super-VNI being configured with three-layer network interfaces, the method comprising:
sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server;
receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment;
and sending a message according to the Media Access Control (MAC) address of the gateway equipment contained in the ARP response.
9. The method of claim 8, wherein sending an Address Resolution Protocol (ARP) request to a VXLAN three-layer gateway device comprises:
and when the second server and the first server belong to the same network segment, sending an Address Resolution Protocol (ARP) request for requesting the MAC address of the second server, wherein the ARP request comprises the IP address of the second server, and the second server and the second Sub-VNI have a corresponding relation.
10. The method according to claim 8 or 9, wherein said receiving the ARP reply sent by the VXLAN layer gateway device comprises:
receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the VXLAN three-layer gateway equipment;
the sending of the message according to the MAC address of the gateway device included in the ARP reply includes:
and sending a message to the VXLAN three-layer gateway equipment according to the MAC address of the VXLAN three-layer gateway equipment, wherein the message contains the IP address of the second server.
11. The method of claim 8, wherein sending an Address Resolution Protocol (ARP) request to a VXLAN three-layer gateway device comprises:
and when the third server and the first server belong to different network segments, sending an ARP request for requesting the MAC address of the VXLAN three-layer gateway equipment.
12. The method according to claim 8 or 11, wherein said receiving the ARP reply sent by the VXLAN layer gateway device comprises:
receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises the MAC address of the three-layer network interface of the Super-VNI corresponding to the first Sub-VNI;
the sending of the message according to the MAC address of the gateway device included in the ARP reply includes:
sending a message to the gateway device, wherein a destination MAC address of the message is an MAC address of a three-layer network interface of the Super-VNI, and a destination IP of the message is an IP address of a third server; the third server and the first server belong to different network segments.
13. A VXLAN three-layer gateway device, comprising:
the storage unit is used for storing the corresponding relation between Super extensible virtual local area network identifiers (SuperVNIs) and Sub extensible virtual local area network identifiers (Sub-VNIs), wherein one SuperVNI corresponds to one or more Sub-VNIs keeping different broadcast domains; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface;
and the forwarding unit is used for forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
14. A first server, wherein the first server has an association with a first extensible virtual local area network identity Sub-VNI, the first Sub-VNI has an association with a Super extensible virtual local area network identity Super-VNI, one Super-VNI corresponds to one or more Sub-VNIs that maintain different broadcast domains, the Super-VNI shares an address of a same network segment with the first Sub-VNI and a second Sub-VNI, the broadcast domains of the first Sub-VNI and the second Sub-VNI are isolated from each other, and the Super-VNI is configured with a three-layer network interface, comprising:
an ARP request unit, configured to send an ARP request to a VXLAN three-layer gateway device, where the ARP request includes a first Sub-VNI corresponding to the first server;
a receiving unit, configured to receive an ARP reply sent by the VXLAN three-layer gateway device, where the ARP reply includes an MAC address of the gateway device;
and the message sending unit is used for sending a message according to the MAC address of the gateway equipment contained in the ARP response.
15. An apparatus for extensible virtual local area network, VXLAN, address aggregation and data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by the one or more processors comprise instructions for:
storing the corresponding relation between Super extensible virtual local area network identifiers (Super-VNIs) and Sub extensible virtual local area network identifiers (Sub-VNIs), wherein one Super-VNI corresponds to one or more Sub-VNIs maintaining different broadcast domains; wherein the Super-VNI and the Sub-VNIs share the same network segment address, the broadcast domains between the Sub-VNIs are isolated from each other, and the Super-VNI is configured with a three-layer network interface;
and forwarding the message corresponding to the Sub-VNI according to the corresponding relation.
16. An apparatus for scalable virtual local area network, VXLAN, address aggregation and data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for maintaining a correspondence of Super-scalable virtual local area network identities, Super-VNIs, to Sub-scalable virtual local area network identities, Sub-VNIs, one Super-VNI corresponding to one or more Sub-VNIs maintaining different broadcast domains:
sending an Address Resolution Protocol (ARP) request to VXLAN three-layer gateway equipment, wherein the ARP request comprises a first Sub-VNI corresponding to the first server;
receiving an ARP response sent by the VXLAN three-layer gateway equipment, wherein the ARP response comprises an MAC address of the gateway equipment;
and sending a message according to the MAC address of the gateway equipment contained in the ARP response.
17. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the extensible virtual local area network VXLAN address aggregation and data processing method of one or more of claims 1-7.
18. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the extensible virtual local area network VXLAN address aggregation and data processing method of one or more of claims 8-12.
CN201711116353.8A 2017-11-13 2017-11-13 Extensible virtual local area network VXLAN address aggregation method, device and equipment Active CN109787879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711116353.8A CN109787879B (en) 2017-11-13 2017-11-13 Extensible virtual local area network VXLAN address aggregation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711116353.8A CN109787879B (en) 2017-11-13 2017-11-13 Extensible virtual local area network VXLAN address aggregation method, device and equipment

Publications (2)

Publication Number Publication Date
CN109787879A CN109787879A (en) 2019-05-21
CN109787879B true CN109787879B (en) 2021-08-03

Family

ID=66494688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711116353.8A Active CN109787879B (en) 2017-11-13 2017-11-13 Extensible virtual local area network VXLAN address aggregation method, device and equipment

Country Status (1)

Country Link
CN (1) CN109787879B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460684B (en) * 2019-07-10 2022-07-15 锐捷网络股份有限公司 Broadcast domain isolation method and device for VXLAN (virtual extensible local area network) in same network segment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944818A (en) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 Method of processing message in multi-return access overlay network and system
CN105282050A (en) * 2015-10-28 2016-01-27 北京华为数字技术有限公司 Method and device for aggregating data flows
CN105763444A (en) * 2016-01-27 2016-07-13 杭州华三通信技术有限公司 Route synchronization method and route synchronization device
CN105991446A (en) * 2015-02-06 2016-10-05 中国移动通信集团公司 Three-layer networking method, device and system and data processing method, device and system of TRILL network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9565105B2 (en) * 2013-09-04 2017-02-07 Cisco Technology, Inc. Implementation of virtual extensible local area network (VXLAN) in top-of-rack switches in a network environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944818A (en) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 Method of processing message in multi-return access overlay network and system
CN105991446A (en) * 2015-02-06 2016-10-05 中国移动通信集团公司 Three-layer networking method, device and system and data processing method, device and system of TRILL network
CN105282050A (en) * 2015-10-28 2016-01-27 北京华为数字技术有限公司 Method and device for aggregating data flows
CN105763444A (en) * 2016-01-27 2016-07-13 杭州华三通信技术有限公司 Route synchronization method and route synchronization device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《一种基于VXLAN的虚拟网络访问控制方法》;卢志刚;《计算机工程》;20140815;第40卷(第8期);第86-90页 *

Also Published As

Publication number Publication date
CN109787879A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US9253140B2 (en) System and method for optimizing within subnet communication in a network environment
US9385949B2 (en) Routing controlled by subnet managers
US9730269B2 (en) Method and system for partitioning wireless local area network
CN110417924B (en) Message processing method in distributed equipment and distributed equipment
US20150124823A1 (en) Tenant dhcp in an overlay network
US9560016B2 (en) Supporting IP address overlapping among different virtual networks
CN110034993B (en) Method, equipment and network system for transmitting data
CN104243269A (en) Processing method and device of messages in VxLAN (virtual extensible local area network)
US20180006969A1 (en) Technique for gleaning mac and ip address bindings
CN107317752B (en) Method and device for forwarding data message
EP2584742B1 (en) Method and switch for sending packet
US10880380B2 (en) Synchronization of routing information in an edge system cluster
CN103200120B (en) Message forwarding method under a kind of direct routing mode and the network equipment
CN107094110B (en) DHCP message forwarding method and device
US8989189B2 (en) Scaling IPv4 in data center networks employing ECMP to reach hosts in a directly connected subnet
WO2023125239A1 (en) Flood attack defense method and related device
US20210359879A1 (en) Packet forwarding method and network device
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
WO2023168287A1 (en) Synchronizing dynamic host configuration protocol snoop information
EP3086512B1 (en) Implementation method and apparatus for vlan to access vf network and fcf
CN107135118B (en) Unicast communication method, gateway and VXLAN access equipment
CN109787879B (en) Extensible virtual local area network VXLAN address aggregation method, device and equipment
CN100359875C (en) Method for realizing backup and load shared equally based on proxy of address resolution protocol
CN113507425A (en) Overlay multicast method, device and equipment
KR101794719B1 (en) Method and system for ip address virtualization in sdn-based network virthalization platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211227

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 100085, No. 3, information road, Haidian District, Beijing

Patentee before: Beijing Huawei Digital Technology Co.,Ltd.

Effective date of registration: 20211227

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.