CN112383645A - ARP proxy method, equipment and device - Google Patents

ARP proxy method, equipment and device Download PDF

Info

Publication number
CN112383645A
CN112383645A CN202011203807.7A CN202011203807A CN112383645A CN 112383645 A CN112383645 A CN 112383645A CN 202011203807 A CN202011203807 A CN 202011203807A CN 112383645 A CN112383645 A CN 112383645A
Authority
CN
China
Prior art keywords
arp
vtep
address
mac address
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011203807.7A
Other languages
Chinese (zh)
Inventor
张余
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011203807.7A priority Critical patent/CN112383645A/en
Publication of CN112383645A publication Critical patent/CN112383645A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The invention provides an ARP proxy method, which is applied to an ARP proxy gateway or an ARP backup proxy gateway, wherein a first VM is linked up with a second VTEP, and a second VM is linked up with a first VTEP, and the method comprises the following steps: receiving an ARP request from the first VM forwarded by the second VTEP; acquiring the MAC address of the second VM according to a preset ARP table and the IP address of the second VM in the ARP request; and sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM. Correspondingly, an ARP proxy device and a device are also provided. The method can realize that the ARP request does not need to be broadcasted when the VM is communicated with the VM which is not in the ARP cache in the VXLAN network, and avoids the problem that the ARP broadcast flow consumes larger network resources due to the ARP request being broadcasted.

Description

ARP proxy method, equipment and device
Technical Field
The invention relates to the technical field of communication, in particular to an ARP proxy method, equipment and a device.
Background
In a VXLAN (Virtual eXtensible LAN), when different VMs (Virtual machines) belonging to the same VNI (VXLAN Network Identifier) in the same Network segment communicate with each other, the MAC Address of a target VM must be obtained first, if the ARP (Address Resolution Protocol) cache of a source VM does not have the MAC Address of the target VM, the source VM sends out an ARP request, after receiving the ARP request, an uplink VTEP (VXLAN End Point) sends out the ARP request to all other VTEPs belonging to the VNI, after receiving the ARP request, the other VTEPs broadcast in the range of the requested VNI, after receiving the ARP request, the target VM sends out an ARP response, so that the source VM obtains the MAC Address of the target VM and can then communicate.
The above procedure is required to be performed each time a VM communicates with another VM not in the ARP cache, and ARP broadcast traffic is generated in the VXLAN network, resulting in consumption of network resources.
Disclosure of Invention
The present invention provides an ARP proxy method, device and apparatus, which can solve the problem that ARP broadcast traffic consumes network resources due to the fact that an ARP request needs to be broadcast when communicating with a VM that is not in an ARP cache in a VXLAN network.
In a first aspect, an embodiment of the present invention provides an ARP proxy method, which is applied to an ARP proxy gateway or an ARP backup proxy gateway, where a first VM is linked up to a second VTEP, and a second VM is linked up to a first VTEP, and the ARP proxy method includes: receiving an ARP request forwarded by a second VTEP from the first VM, wherein the ARP request comprises an IP address of the second VM; acquiring the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, wherein the ARP table comprises the MAC address of the second VM, the IP address of the first VTEP and mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP; and sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM.
Preferably, before the receiving the ARP request of the first VM forwarded by the second VTEP, the ARP proxy method further includes: when a second VM is started and is on line, receiving a gratuitous ARP request from the second VM, which is forwarded by a first VTEP, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM; and constructing the ARP table according to the received gratuitous ARP request.
In a second aspect, an embodiment of the present invention provides an ARP proxy method applied to a first VTEP, where a first VM is uplinked to a second VTEP, and the second VM is uplinked to the first VTEP, and the ARP proxy method includes: receiving a gratuitous ARP request sent by the second VM, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM; learning the MAC address of the second VM, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table; and forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
In a third aspect, an embodiment of the present invention provides an ARP proxy method, which is applied to a second VTEP, where a first VM is linked up to the second VTEP, and a second VM is linked up to a first VTEP, and the ARP proxy method includes: receiving an ARP request sent by a first VM, wherein the ARP request comprises an IP address of a second VM; forwarding an ARP request sent from the first VM to an ARP proxy gateway; receiving an ARP extended response sent by an ARP proxy gateway, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP; learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response, and storing the mapping information in a local MAC address table; and deleting the IP address of the first VTEP in the ARP extended response, recovering the IP address as an ARP response, and forwarding the ARP response to the first VM.
Preferably, before the receiving the ARP request sent by the first VM, the ARP proxy method further includes: receiving a gratuitous ARP request sent by a first VM, wherein the gratuitous ARP request comprises an IP address of the first VM and an MAC address of the first VM; and learning the MAC address, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table.
Preferably, after forwarding the ARP request sent by the first VM to the ARP proxy gateway and when an ARP extended response sent by the ARP proxy gateway is not received within a preset time period, the ARP proxy method further includes: forwarding the ARP request sent from the first VM to an ARP backup proxy gateway.
In a fourth aspect, an embodiment of the present invention provides an ARP proxy device, which is applied to an ARP proxy gateway or an ARP backup proxy gateway, where a first VM is linked to a second VTEP, and a second VM is linked to a first VTEP, and the ARP proxy device includes a first receiving module, an obtaining module, and a sending module. The first receiving module is used for receiving the ARP request forwarded by the second VTEP from the first VM, wherein the ARP request comprises the IP address of the second VM. And the acquisition module is connected with the first receiving module and used for acquiring the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, wherein the ARP table comprises the MAC address of the second VM, the IP address of the first VTEP and mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP. And the sending module is connected with the acquiring module and used for sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM.
Preferably, the ARP proxy device further comprises a second receiving module and a constructing module. And the second receiving module is used for receiving a gratuitous ARP request from the second VM, which is forwarded by the first VTEP, when the second VM is started up and is on line, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM. And the construction module is connected with the second receiving module and the acquisition module and constructs the ARP table according to the received free ARP request.
In a fifth aspect, an embodiment of the present invention provides an ARP proxy apparatus, which is applied to a first VTEP, where a first VM is uplinked to a second VTEP, and the second VM is uplinked to the first VTEP, where the ARP proxy apparatus includes a first receiving unit, a storage unit, and a first forwarding unit. The first receiving unit is used for receiving a gratuitous ARP request sent by the second VM, wherein the gratuitous ARP request comprises an IP address of the second VM and a MAC address of the second VM. And the storage unit is connected with the first receiving unit and used for learning the MAC address, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the third VM according to the gratuitous ARP request and storing the mapping information in a local MAC address table. And the first forwarding unit is connected with the first receiving unit and used for forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
In a sixth aspect, an embodiment of the present invention provides an ARP proxy apparatus, which is applied to a second VTEP, where a first VM is uplinked to the second VTEP, and the second VM is uplinked to a first VTEP, where the ARP proxy apparatus includes a second receiving unit, a third receiving unit, a second forwarding unit, and a third forwarding unit. And the second receiving unit is used for receiving the ARP request sent by the first VM, wherein the ARP request comprises the IP address of the second VM. And the second forwarding unit is connected with the second receiving unit and used for forwarding the ARP request from the first VM to the ARP proxy gateway. And a third receiving unit, configured to receive an ARP extension response sent by the ARP proxy gateway, where the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP. The third forwarding unit is connected with the third receiving unit and used for learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response and storing the mapping information in the local MAC address; and the IP address of the first VTEP in the ARP extended response is deleted, the first VTEP is recovered to be the ARP response, and the ARP is correspondingly forwarded to the first VM.
According to the ARP agent method, the equipment and the device provided by the embodiment of the invention, the MAC address of the second VM is obtained according to a preset ARP table and the IP address of the second VM in the received ARP request from the first VM, wherein the ARP table comprises the MAC address of the second VM, the IP address of the first VTEP which is connected with the second VM in an up-link mode and mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP which is connected with the second VM in an up-link mode; and sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends a VXLAN message according to the MAC address of the second VM, an ARP request does not need to be broadcasted when the first VM communicates with the VM which is not in an ARP cache in the VXLAN network, and the problem that network resources are consumed by ARP broadcast flow due to the broadcasting of the ARP request is avoided.
Drawings
FIG. 1: a flow chart of an ARP proxy method according to embodiment 1 of the present invention;
FIG. 2: the structure diagram of an ARP proxy device in embodiment 4 of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following describes an ARP proxy method, device and apparatus of the present invention in further detail with reference to the accompanying drawings and embodiments.
Example 1:
as shown in fig. 1, this embodiment provides an ARP proxy method applied to an ARP proxy gateway or an ARP backup proxy gateway, where a first VM is linked up to a second VTEP, and the second VM is linked up to a first VTEP, and the ARP proxy method includes:
step 101, receiving an ARP request from a first VM forwarded by a second VTEP, wherein the ARP request includes an IP address of the second VM.
In this embodiment, when the first VM communicates with a second VM in the same subnet, and the MAC address of the second VM is not found in the local ARP cache of the first VM, the first VM sends an ARP request to the second VTEP that is connected upstream, where the ARP request includes an IP address of the second VM. The second VTEP forwards the ARP request sent by the first VM to the ARP proxy gateway or the ARP backup proxy gateway.
Optionally, before receiving the ARP request of the first VM forwarded by the second VTEP, the ARP proxy method further includes: when a second VM is started and is on line, receiving a gratuitous ARP request from the second VM, which is forwarded by a first VTEP, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM; and constructing the ARP table according to the received gratuitous ARP request.
In this embodiment, after the second VM is powered on and comes online, the second VM sends a gratuitous APR request to the first VTEP that is connected upstream, where the gratuitous ARP request includes an IP address of the second VM and an MAC address of the second VM. After receiving a gratuitous ARP request sent by the second VM, the first VTEP learns the MAC address, VNI, the message-in interface (namely, the physical interface corresponding to the two-layer subinterface) of the second VM and mapping information among the MAC address, VNI, the message-in interface (namely, the physical interface corresponding to the two-layer subinterface) of the second VM and the mapping information among the three are stored in a local MAC table of the first VTEP. The purpose of learning and storing the message input interface is that when receiving a data packet sent to the second VM, the first VTEP obtains the interface for sending the data packet to the second VM by querying the local MAC table, so that the data packet is forwarded to the second VM through the obtained interface. The first VTEP then forwards the gratuitous ARP request to either the ARP proxy gateway or the ARP backup proxy gateway. And the ARP proxy gateway or the ARP backup proxy gateway stores the IP address of the second VM, the MAC address of the second VM and the IP address of the first VTEP which is connected with the second VM in an uplink manner according to the received gratuitous ARP request, namely, a next hop address (which refers to the IP address of the first VTEP) is added in the ARP table, thereby completing the construction of the ARP table. It should be noted that, in this embodiment, after all VMs are powered on and online, a gratuitous ARP request is sent to an online VTEP, so that an ARP proxy gateway or an ARP backup proxy gateway updates and maintains an ARP table in real time.
And 102, acquiring the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, wherein the ARP table comprises the MAC address of the second VM, the IP address of the first VTEP and mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP and the mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP.
In this embodiment, the ARP table constructed and maintained by the ARP proxy gateway or the ARP backup proxy gateway includes the MAC address of the second VM, the IP address of the first VTEP, and mapping information between the MAC address of the second VM and the IP address of the first VTEP, so that the ARP proxy gateway or the ARP backup proxy gateway queries the MAC address of the second VM and the IP address of the first VTEP in the preset ARP table according to the IP address of the second VM in the ARP request forwarded by the second VTEP.
And 103, sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM.
In this embodiment, the ARP proxy gateway or the ARP backup proxy gateway sends an ARP extension response to the second VTEP according to the query result, where the ARP extension response is added with the next hop address, that is, the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP. After receiving the ARP extension response, the second VTEP learns the MAC address, VNI and IP address of the first VTEP of the second VM, stores the MAC address, VNI and IP address of the first VTEP in a local MAC table of the second VTEP, deletes the next hop address information (namely the IP address of the first VTEP) in the ARP extension response and restores the next hop address information into a normal ARP response, wherein the normal ARP response comprises the MAC address of the second VM and forwards the normal ARP response to the first VM, so that the first VM sends a VXLAN message according to the MAC address of the second VM. The purpose of learning and storing the IP address of the first VTEP by the second VTEP is to acquire a data packet to be sent to the IP address of the first VTEP by inquiring a local MAC table when the second VTEP receives the data packet sent to the second VM; the purpose of the second VTEP learning and storing the VNI of the second VM is to determine a specific tunnel based on the VNI when the second VTEP transmits a packet from the first VM to the second VM to the first VTEP. Therefore, the data packet can be quickly and accurately sent to the second VM.
In the ARP proxy method provided in this embodiment, an ARP proxy gateway or an ARP backup proxy gateway obtains an MAC address of a second VM according to a preset ARP table and an IP address of the second VM in an ARP request received from a first VM, where the ARP table includes the MAC address of the second VM, the IP address of the second VM, an IP address of a first VTEP that is linked up to the second VM, and mapping information between the MAC address of the second VM and the IP address of the second VM; and the ARP proxy gateway or the ARP backup proxy gateway sends an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends a VXLAN message according to the MAC address of the second VM, an ARP request does not need to be broadcasted when the first VM communicates with the VM which is not in an ARP cache in the VXLAN network, and the problem that network resources are consumed by ARP broadcast flow due to the ARP request is avoided. In addition, the ARP proxy method does not need to set a VXLAN controller, does not need to increase the perception function of the VXLAN controller to the VM, and is simpler and more convenient to realize.
Example 2:
the embodiment provides an ARP proxy method applied to a first VTEP, where a first VM is linked up to a second VTEP, and a second VM is linked up to the first VTEP, and the ARP proxy method includes:
step 201, receiving a gratuitous ARP request sent by a second VM, wherein the gratuitous ARP request includes an IP address of the second VM and a MAC address of the second VM.
Step 202, learning the MAC address of the second VM, the message-in interface, the VNI, and mapping information among the MAC address, the message-in interface, the VNI, and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table.
Step 203, forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
In this embodiment, the first VTEP forwards the gratuitous ARP request of the second VM that is offline and online to the ARP proxy gateway or the ARP backup proxy gateway, so that the ARP proxy gateway or the ARP backup proxy gateway constructs an ARP table, where the ARP table includes the MAC address of the second VM, the IP address of the first VTEP, and mapping information between the MAC address of the second VM, the IP address of the second VM, and the IP address of the first VTEP.
Example 3:
the embodiment provides an ARP proxy method applied to a second VTEP, where a first VM is linked up to the second VTEP, and a second VM is linked up to the first VTEP, and the ARP proxy method includes:
step 301, receiving an ARP request sent by a first VM, where the ARP request includes an IP address of a second VM.
In this embodiment, when the first VM communicates with a second VM in the same subnet, the MAC address of the second VM is not found in the local ARP cache of the first VM, and the first VM sends an ARP request to the second VTEP that is connected upstream.
Optionally, before receiving the ARP request sent by the first VM, the ARP proxy method further includes: receiving a gratuitous ARP request sent by a first VM, wherein the gratuitous ARP request comprises an IP address of the first VM and an MAC address of the first VM; and learning the MAC address, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table.
In this embodiment, after the first VM is powered on and comes on line, the first VM sends a gratuitous ARP request to the second VTEP, where the gratuitous ARP request includes an IP address of the first VM and an MAC address of the first VM. And the second VTEP learns the MAC address, the VNI, the message-in interface and mapping information among the MAC address, the VNI, the message-in interface and the message-in interface of the first VM and stores the mapping information in a local MAC table of the second VTEP.
Step 302 forwards the ARP request sent from the first VM to the ARP proxy gateway.
Step 303, receiving an ARP extension response sent by the ARP proxy gateway, where the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP.
In this embodiment, the ARP proxy gateway or the ARP backup proxy gateway sends an ARP extension response to the second VTEP, where the ARP extension response is added with the next hop address, that is, the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP.
Step 304, learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response, and storing the mapping information in a local MAC address table.
And step 305, deleting the IP address of the first VTEP in the ARP extended response, recovering the IP address into an ARP response, and forwarding the ARP response to the first VM.
In this embodiment, after receiving the ARP extension response, the second VTEP learns the MAC address, VNI, and IP address of the second VM and stores the MAC address, VNI, and IP address of the first VTEP of the second VM and the second VTEP of the first VTEP in the local MAC table of the second VTEP, and then the second VTEP deletes the next hop address information (i.e., IP address of the first VTEP) in the ARP extension response to form a normal ARP response, where the normal ARP response includes the MAC address of the second VM and the IP address of the second VM and forwards the normal ARP response to the first VM, so that the first VM sends a VXLAN packet according to the MAC address of the second VM.
Optionally, after forwarding the ARP request sent by the first VM to the ARP proxy gateway, and when an ARP extended response sent by the ARP proxy gateway is not received within a preset time period, the ARP proxy method further includes: forwarding the ARP request sent from the first VM to an ARP backup proxy gateway.
In this embodiment, an ARP proxy gateway and an ARP backup proxy gateway are set at the same time, and if the ARP extension response returned by the ARP proxy gateway is not received within a preset time after the second VTEP forwards the ARP request sent by the first VM to the ARP proxy gateway, it indicates that the ARP proxy gateway fails. The second VTEP forwards the ARP request sent from the first VM to the ARP backup proxy gateway. And the ARP backup proxy gateway inquires the MAC address of the second VM in a preset ARP table according to the IP address of the second VM in the received ARP request, and sends an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP. After receiving the ARP extended response, the second VTEP learns the MAC address, VNI and IP address of the first VTEP and stores the MAC address, VNI and IP address in a local MAC address table of the second VTEP, and then the second VTEP deletes the next hop address information (namely the IP address of the first VTEP) in the ARP extended response and restores the next hop address information into a normal ARP response, wherein the normal ARP response comprises the MAC address of the second VM and the IP address of the second VM and forwards the normal ARP response to the first VM, so that the first VM sends a VXLAN message according to the MAC address of the second VM. In this embodiment, by setting the ARP proxy gateway and the ARP backup proxy gateway at the same time, when one of the proxy gateways fails, normal communication of the network can still be ensured and broadcast traffic is prevented from being generated.
Example 4:
as shown in fig. 2, the present embodiment provides an ARP proxy device, which is applied to an ARP proxy gateway or an ARP backup proxy gateway, where a first VM is linked to a second VTEP, and the second VM is linked to a first VTEP, and the ARP proxy device includes a first receiving module 41, an obtaining module 42, and a sending module 43.
A first receiving module 41, configured to receive an ARP request from the first VM forwarded by the second VTEP, where the ARP request includes an IP address of the second VM.
The obtaining module 42 is connected to the first receiving module 41, and configured to obtain the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, where the ARP table includes the MAC address of the second VM, the IP address of the first VTEP, and mapping information between the MAC address of the second VM and the IP address of the first VTEP.
And a sending module 43, connected to the obtaining module 42, configured to send an ARP extension response to the second VTEP, where the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends a VXLAN packet according to the MAC address of the second VM.
Optionally, the ARP proxy device further comprises a second receiving module 44 and a building module 45.
The second receiving module 44 is configured to receive a gratuitous ARP request from the second VM, which is forwarded by the first VTEP, when the second VM is powered on and comes on line, where the gratuitous ARP request includes an IP address of the second VM and a MAC address of the second VM.
And the constructing module 45 is connected with the second receiving module 44 and the obtaining module 42, and constructs the ARP table according to the received gratuitous ARP request.
Example 5:
the embodiment provides an ARP proxy device, which is applied to a first VTEP, where a first VM is linked up to a second VTEP, and the second VM is linked up to the first VTEP, and the ARP proxy device includes a first receiving unit, a storage unit, and a first forwarding unit.
The first receiving unit is used for receiving a gratuitous ARP request sent by the second VM, wherein the gratuitous ARP request comprises an IP address of the second VM and a MAC address of the second VM.
And the storage unit is connected with the first receiving unit and used for learning the MAC address, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the third VM according to the gratuitous ARP request and storing the mapping information in a local MAC address table.
And the first forwarding unit is connected with the first receiving unit and used for forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
Example 6:
the embodiment provides an ARP proxy device, which is applied to a second VTEP, where a first VM is linked up to the second VTEP, and a second VM is linked up to the first VTEP, where the ARP proxy device includes a second receiving unit, a third receiving unit, a second forwarding unit, and a third forwarding unit.
And the second receiving unit is used for receiving the ARP request sent by the first VM, wherein the ARP request comprises the IP address of the second VM.
And the second forwarding unit is connected with the second receiving unit and used for forwarding the ARP request from the first VM to the ARP proxy gateway.
And a third receiving unit, configured to receive an ARP extension response sent by the ARP proxy gateway, where the ARP extension response includes the MAC address of the second VM and the IP address of the first VTEP.
The third forwarding unit is connected with the third receiving unit and used for learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response and storing the mapping information in the local MAC address; and the IP address of the first VTEP in the ARP extended response is deleted, the first VTEP is recovered to be the ARP response, and the ARP is correspondingly forwarded to the first VM.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. An ARP proxy method is applied to an ARP proxy gateway or an ARP backup proxy gateway, wherein a first VM is linked up to a second VTEP, and a second VM is linked up to a first VTEP, and the method is characterized by comprising the following steps:
receiving an ARP request forwarded by a second VTEP from the first VM, wherein the ARP request comprises an IP address of the second VM;
acquiring the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, wherein the ARP table comprises the MAC address of the second VM, the IP address of the first VTEP and mapping information among the MAC address, the IP address of the second VM, the IP address of the first VTEP;
and sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM.
2. The ARP proxy method of claim 1, further comprising, prior to said receiving an ARP request from the first VM forwarded by the second VTEP:
when a second VM is started and is on line, receiving a gratuitous ARP request from the second VM, which is forwarded by a first VTEP, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM;
and constructing the ARP table according to the received gratuitous ARP request.
3. An ARP proxy method applied to a first VTEP, wherein a first VM is uplinked to a second VTEP, and the second VM is uplinked to the first VTEP, the ARP proxy method comprising:
receiving a gratuitous ARP request sent by the second VM, wherein the gratuitous ARP request comprises an IP address of the second VM and an MAC address of the second VM;
learning the MAC address of the second VM, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table;
and forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
4. An ARP proxy method applied to a second VTEP, wherein a first VM is uplinked to the second VTEP, and a second VM is uplinked to the first VTEP, the ARP proxy method comprising:
receiving an ARP request sent by a first VM, wherein the ARP request comprises an IP address of a second VM;
forwarding an ARP request sent from the first VM to an ARP proxy gateway;
receiving an ARP extended response sent by an ARP proxy gateway, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP;
learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response, and storing the mapping information in a local MAC address table;
and deleting the IP address of the first VTEP in the ARP extended response, recovering the IP address as an ARP response, and forwarding the ARP response to the first VM.
5. The ARP proxy method of claim 4, prior to said receiving an ARP request sent by the first VM, further comprising:
receiving a gratuitous ARP request sent by a first VM, wherein the gratuitous ARP request comprises an IP address of the first VM and an MAC address of the first VM;
and learning the MAC address, the message input interface, the VNI and mapping information among the MAC address, the message input interface, the VNI and the mapping information according to the gratuitous ARP request, and storing the mapping information in a local MAC address table.
6. The ARP proxy method of claim 5, wherein after forwarding the ARP request from the first VM to the ARP proxy gateway and when the ARP extended response sent by the ARP proxy gateway is not received within a preset duration, further comprising:
forwarding the ARP request sent from the first VM to an ARP backup proxy gateway.
7. An ARP proxy device is applied to an ARP proxy gateway or an ARP backup proxy gateway, wherein a first VM is linked up to a second VTEP, and the second VM is linked up to the first VTEP, and is characterized by comprising a first receiving module, an acquiring module and a sending module,
a first receiving module, configured to receive an ARP request from a first VM forwarded by a second VTEP, wherein the ARP request includes an IP address of the second VM,
an obtaining module, connected to the first receiving module, for obtaining the MAC address of the second VM according to the IP address of the second VM and a preset ARP table, where the ARP table includes the MAC address of the second VM, the IP address of the first VTEP, and mapping information between the MAC address of the second VM and the IP address of the first VTEP,
and the sending module is connected with the acquiring module and used for sending an ARP extended response to the second VTEP, wherein the ARP extended response comprises the MAC address of the second VM and the IP address of the first VTEP, so that the first VM sends the VXLAN message according to the MAC address of the second VM.
8. The ARP proxy apparatus of claim 7, further comprising a second receiving module and a constructing module,
a second receiving module, configured to receive a gratuitous ARP request from a second VM forwarded by a first VTEP when the second VM is powered on and comes on line, where the gratuitous ARP request includes an IP address of the second VM and a MAC address of the second VM,
and the construction module is connected with the second receiving module and the acquisition module and constructs the ARP table according to the received free ARP request.
9. An ARP proxy apparatus applied to a first VTEP, wherein a first VM is linked up to a second VTEP, and a second VM is linked up to the first VTEP, is characterized in that the ARP proxy apparatus comprises a first receiving unit, a storing unit and a first forwarding unit,
a first receiving unit, configured to receive a gratuitous ARP request sent by a second VM, where the gratuitous ARP request includes an IP address of the second VM, a MAC address of the second VM,
a storage unit connected with the first receiving unit for learning the MAC address of the second VM, the message-in interface, the VNI and the mapping information among the three according to the gratuitous ARP request and storing the mapping information in a local MAC address table,
and the first forwarding unit is connected with the first receiving unit and used for forwarding the gratuitous ARP request sent by the second VM to the ARP proxy gateway or the ARP backup proxy gateway.
10. An ARP proxy device applied to a second VTEP, a first VM is linked up to the second VTEP, and a second VM is linked up to the first VTEP, is characterized in that the ARP proxy device comprises a second receiving unit, a third receiving unit, a second forwarding unit and a third forwarding unit,
a second receiving unit for receiving an ARP request sent by the first VM, wherein the ARP request comprises an IP address of the second VM,
a second forwarding unit connected to the second receiving unit, for forwarding the ARP request from the first VM to the ARP proxy gateway,
a third receiving unit, configured to receive an ARP extension response sent by the ARP proxy gateway, where the ARP extension response includes the MAC address of the second VM, the IP address of the first VTEP,
the third forwarding unit is connected with the third receiving unit and used for learning the MAC address of the second VM, the IP address of the first VTEP, the VNI and mapping information among the MAC address, the IP address of the first VTEP and the VNI according to the ARP extended response and storing the mapping information in the local MAC address; and the IP address of the first VTEP in the ARP extended response is deleted, the first VTEP is recovered to be the ARP response, and the ARP is correspondingly forwarded to the first VM.
CN202011203807.7A 2020-11-02 2020-11-02 ARP proxy method, equipment and device Pending CN112383645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011203807.7A CN112383645A (en) 2020-11-02 2020-11-02 ARP proxy method, equipment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011203807.7A CN112383645A (en) 2020-11-02 2020-11-02 ARP proxy method, equipment and device

Publications (1)

Publication Number Publication Date
CN112383645A true CN112383645A (en) 2021-02-19

Family

ID=74577143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011203807.7A Pending CN112383645A (en) 2020-11-02 2020-11-02 ARP proxy method, equipment and device

Country Status (1)

Country Link
CN (1) CN112383645A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN104935516A (en) * 2015-06-17 2015-09-23 武汉邮电科学研究院 Communication system based on software defined network and communication method
CN108270878A (en) * 2016-12-31 2018-07-10 中国移动通信集团江西有限公司 Method, the VTEP equipment of ARP messages are sent in VXLAN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN104935516A (en) * 2015-06-17 2015-09-23 武汉邮电科学研究院 Communication system based on software defined network and communication method
CN108270878A (en) * 2016-12-31 2018-07-10 中国移动通信集团江西有限公司 Method, the VTEP equipment of ARP messages are sent in VXLAN

Similar Documents

Publication Publication Date Title
CN113364610B (en) Network equipment management method, device and system
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
CN102271050B (en) Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
US8699466B2 (en) Apparatus and method of controlling seamless handover between heterogeneous networks based on IPv6 over IPv4 tunneling mechanism
CN108964940B (en) Message sending method and device and storage medium
US8891551B2 (en) IPv6 over IPv4 transition method and apparatus for improving performance of control server
US20040264389A1 (en) Automatic discovery of network node addresses
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
US11917523B2 (en) Polymorphic network control system and method supporting mobile access of terminal
CN104168140A (en) VTEP abnormal condition processing method and device
EP2369791B1 (en) Apparatus and method for establishing connections with a plurality of virtual networks
KR20160092645A (en) Method and system for forwarding packet in id/locator separation envirionment
CN107566262A (en) Message forwarding method and device in virtual expansible LAN VXLAN
US7562148B2 (en) Distributed domain name service
CN109842692B (en) VxLAN switch, system and method for obtaining host information in physical network
CN102594941B (en) Method for device access and device communication in building intercom system
CN109951388B (en) Routing uninterrupted method and main control board
CN113472912B (en) ARP cache table item updating method, VTEP, VM and device
CN112383645A (en) ARP proxy method, equipment and device
CN107689881B (en) Message processing method and device
CN110620715A (en) Virtual extended local area network communication method, tunnel endpoint and controller
CN112543386B (en) Address acquisition method and related equipment
JP3339514B2 (en) Mobility management device, packet relay device, and mobile communication system
JP5691612B2 (en) Communication system, router, switching hub, and program
CN113590268B (en) Virtual machine migration method, ARP proxy gateway and VTEP

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210219

RJ01 Rejection of invention patent application after publication