CN107786677B - ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment) - Google Patents

ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment) Download PDF

Info

Publication number
CN107786677B
CN107786677B CN201610719778.7A CN201610719778A CN107786677B CN 107786677 B CN107786677 B CN 107786677B CN 201610719778 A CN201610719778 A CN 201610719778A CN 107786677 B CN107786677 B CN 107786677B
Authority
CN
China
Prior art keywords
virtual machine
mac address
arp
vtep
address
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
CN201610719778.7A
Other languages
Chinese (zh)
Other versions
CN107786677A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201610719778.7A priority Critical patent/CN107786677B/en
Publication of CN107786677A publication Critical patent/CN107786677A/en
Application granted granted Critical
Publication of CN107786677B publication Critical patent/CN107786677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Abstract

The embodiment of the invention provides an ARP (address resolution protocol) table item updating method and VTEP (virtual terminal equipment), relates to the field of communication, and solves the problem of data message transmission failure caused by the fact that an ARP table item in VTEP equipment under an SDN (software defined network) framework is not updated in time in the prior art. The method comprises the following steps: the VTEP equipment receives a tunnel message comprising the MAC address and the IP address of a target virtual machine, and if the MAC address of the target virtual machine is determined not to be matched with the MAC address of at least one virtual machine communicated with the VTEP equipment, an ARP request comprising the IP address of the target virtual machine is broadcasted; the VTEP equipment receives an ARP response fed back by the target virtual machine, wherein the ARP response comprises the MAC address of the target virtual machine; and the VTEP equipment sends an ARP table item updating request to the SDN controller, and the ARP table item updating request is used for requesting the SDN controller to update the ARP table item of the VTEP equipment according to the mapping relation between the new MAC address of the target virtual machine and the VTEP equipment.

Description

ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)
Technical Field
The present invention relates to the field of communications, and in particular, to an ARP entry updating method and a VTEP device.
Background
In recent years, under an SDN (english: Software Defined Network, chinese: Software Defined Network) networking architecture, a multi-data center architecture has become a technical trend for future data center development.
Fig. 1 is a diagram of an existing SDN networking architecture, as shown in fig. 1, the existing SDN networking architecture generally includes an SDN controller and a plurality of DCs (Data centers, chinese: Data centers) (e.g., DC1 and DC2 in fig. 1), each DC including a plurality of VTEP (VXLAN Tunnel End Point, VXLAN (Virtual eXtensible Local Area Network, chinese: Virtual eXtensible Local Area Network) devices and a plurality of VMs (Virtual machines, english). Generally, an SDN controller stores ARP (english: Address Resolution Protocol, chinese: Address Resolution Protocol) entries of each VTEP device, and when a VM inside a DC in a data center networking is online, the SDN controller in the data center networking issues the ARP entries of each VTEP device to all VTEP devices inside the DC. The ARP table entry stores mapping relationships between IP addresses and MAC addresses of all VMs in each DC and port numbers of corresponding VTEP devices. For example, referring to fig. 1, when VM1 in DC1 sends a data packet to VM6 in DC2, VTEP1 in communication with VM1 queries the IP address, MAC address and the outgoing interface of VTEP3 corresponding to the MAC address of VM6, and then sends the data packet to VM6 in DC2 through the outgoing interface of VTEP3 via the VXLAN tunnel established between VTEP1 and VTEP 3.
However, when the MAC (english: Media Access Control or Medium Access Control, chinese: physical address or hardware address) address of VM6 changes, since the SDN controller cannot sense that the MAC address of VM6 changes, and does not update ARP entries of all VTEP devices in the SDN architecture, VTEP1 in DC1 still sends the data packet sent by VM1 to the MAC address, but since the MAC address is an invalid address, VTEP1 cannot send the data packet to VM6, which further causes failure of sending the data packet.
Disclosure of Invention
The embodiment of the invention provides an ARP table item updating method and VTEP equipment, and solves the problem that in the prior art, data message transmission fails because an ARP table item in VTEP equipment under an SDN framework is not updated in time.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an ARP entry updating method is provided, including:
receiving a tunnel message by a virtual extensible local area network (VTEP) terminal point, wherein the tunnel message comprises an MAC (media access control) address and an IP (Internet protocol) address of a target virtual machine, and the target virtual machine is one of at least one virtual machine communicated with the VTEP device;
if the VTEP equipment determines that the MAC address of the target virtual machine is not matched with the MAC address of the at least one virtual machine, broadcasting an ARP request, wherein the ARP request comprises the IP address of the target virtual machine;
the VTEP equipment receives an ARP response fed back by the target virtual machine, wherein the ARP response comprises a new MAC address of the target virtual machine;
the VTEP device sends an ARP table item updating request to an SDN controller, wherein the ARP table item updating request comprises a mapping relation between a new MAC address of the target virtual machine and the VTEP device, and is used for requesting the SDN controller to update an ARP table item of the VTEP device according to the mapping relation.
In a second aspect, there is provided a VTEP apparatus comprising:
a receiving module, configured to receive a tunnel packet, where the tunnel packet includes an MAC address and an IP address of a destination virtual machine, and the destination virtual machine is one of at least one virtual machine in communication with the VTEP device;
a broadcast module, configured to broadcast an ARP request if it is determined that the MAC address of the destination virtual machine included in the tunnel packet received by the receiving module does not match the MAC address of the at least one virtual machine, where the ARP request includes an IP address of the destination virtual machine;
the receiving module is further configured to receive an ARP response fed back by the destination virtual machine, where the ARP response includes a new MAC address of the destination virtual machine;
a sending module, configured to send an ARP entry update request to the SDN controller, where the ARP entry update request includes a mapping relationship between the new MAC address of the destination virtual machine received by the receiving module and the VTEP device, and is used to request the SDN controller to update an ARP entry of the VTEP device according to the mapping relationship.
The ARP entry updating method and the VTEP device provided in the embodiments of the present invention obtain the MAC address and the IP address of the destination virtual machine included in the tunnel packet by decapsulating the received tunnel packet, and then, if it is determined that the MAC address of the destination virtual machine does not match the MAC address of at least one virtual machine, it can be determined that the MAC address of the destination virtual machine changes, at this time, because the IP address of the virtual machine does not change when the MAC address of the virtual machine changes, the VTEP device can broadcast an ARP request to at least one virtual machine in communication with the VTEP device according to the IP address of the destination virtual machine, so that the VTEP device can receive an ARP response including the new MAC address of the destination virtual machine fed back by the destination virtual machine, and can send an ARP entry updating request to the SDN controller based on the mapping relationship between the new MAC address of the destination virtual machine and the VTEP device, therefore, the SDN controller can update the APR table entry of the VTEP device in time, so that a new MAC address of the target virtual machine can be directly positioned when data messages are transmitted next time, and the data messages can be ensured to correctly reach the target virtual machine.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic architecture diagram of an SDN networking architecture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method for updating an ARP entry according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a VTEP apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for updating the ARP (english: Address Resolution Protocol, chinese: Address Resolution Protocol) entry provided by the embodiment of the present invention is applied to the SDN architecture shown in fig. 1. As shown in fig. 1, the SDN architecture is composed of an SDN controller and several DCs (english: Data Center, chinese: Data Center) (e.g., DC1 and DC2 in fig. 1), wherein:
the above-mentioned DC includes several VTEP (VXLAN Tunnel End Point, chinese: VXLAN (Virtual eXtensible Local Area Network, chinese: Virtual Machine)) devices and several VMs (Virtual Machine, chinese: Virtual Machine, english), wherein, the VTEP devices may be hardware devices supporting VXLAN or devices integrated with software supporting VXLAN, and the VMs may run an operating system OS and various applications. Specifically, each VTEP device in the DC may be regarded as a switch of a virtual subnet (for short, subnet), so that all VMs in the subnet corresponding to each VTEP device may communicate with VMs outside the subnet through the VTEP device, and the VTEP devices may establish a VXLAN tunnel, so as to transmit data of the virtual network through the VXLAN tunnel. Illustratively, as shown in fig. 1, included in DC1 are virtual machines VM1, VM2, VM3, VM4, VM5, and VTEP devices VTEP1 and VTEP2, where VM1, VM2, and VM3 belong to a subnet corresponding to VTEP1 and communicate with VMs outside the subnet through VTEP1, and similarly, VM4 and VM5 belong to a subnet corresponding to VTEP2 and communicate with VMs outside the subnet through VTEP 2. It should be noted that the VTEP device includes at least one egress interface, and the VTEP device communicates with the VMs in its corresponding subnet through the egress interface, and each VM corresponds to one VTEP device egress interface.
The SDN controller is configured to uniformly maintain ARP entries of VTEP devices in the DC, where the ARP entries include mapping relationships between output interface information of the VTEP devices and MAC addresses and IP addresses of each VM in a subnet corresponding to the VTEP devices. Generally, when a VM in each DC is online, the VM registers with the SDN controller and uploads a mapping relationship corresponding to the VM to the SDN controller, and after the SDN controller obtains the mapping relationship corresponding to the VM from each VM, the SDN controller generates an ARP entry for each VTEP device based on the mapping relationships, and then issues the ARP entry corresponding to each VTEP device to all VTEP devices.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used to distinguish the same items or similar items with basically the same functions or actions, and those skilled in the art can understand that the words "first", "second", and the like do not limit the quantity and execution order.
Based on the SDN architecture shown in fig. 1, an embodiment of the present invention provides an ARP entry updating method, where the SDN architecture in this embodiment includes a first VTEP device, a second VTEP device, at least one first virtual machine in communication with the first VTEP device, at least one second virtual machine in communication with the second VTEP device, and an SDN controller, and as shown in fig. 2, the method specifically includes the following steps:
101. and the first VTEP equipment receives the tunnel message.
The tunnel message in this embodiment includes the MAC address and the IP address of the destination virtual machine. The destination virtual machine is one of at least one first virtual machine in communication with the first VTEP device.
Illustratively, when the tunnel packet is a tunnel packet sent by a second virtual machine communicating with a second VTEP device to a destination virtual machine through the second VTEP device, the sending process of the tunnel packet specifically includes the following contents: when the second VTEP device receives a data packet that the second virtual machine wants to send to the destination virtual machine, the second VTEP device queries, according to the MAC address of the destination virtual machine, the ARP mapping relationship between the destination virtual machine and the VTEP device corresponding to the destination virtual machine from the ARP entry stored in the second VTEP device, and if the destination virtual machine belongs to the first virtual machine, the second VTEP device determines that the data packet should be sent to the first VTEP device by going through the VXLAN tunnel, that is, the second VTEP device encapsulates the data packet into a tunnel packet and sends the tunnel packet to the first VTEP device through the VXLAN tunnel.
102. And if the first VTEP equipment determines that the MAC address of the destination virtual machine does not match with the MAC address of at least one first virtual machine, broadcasting an ARP request.
Wherein, the ARP request includes the IP address of the destination virtual machine.
For example, if the MAC address of the virtual machine currently corresponding to the egress interface, which is queried by the first VTEP device according to the MAC address of the destination virtual machine, is not matched with the MAC address of the destination virtual machine, it may be determined that the MAC address of the destination virtual machine changes, but the ARP entry in the first VTEP device is not updated, so that the egress interface found according to the outdated MAC address of the destination virtual machine cannot be correctly connected to the destination virtual machine, so that the first VTEP device obtains an unreachable error of the destination address of the inner layer data packet, which results in that the inner layer data packet cannot be successfully sent, and only the packet is discarded. At this time, in order to avoid the next failure of data packet transmission, the first VTEP device needs to update the ARP entry of the first VTEP device in time. Specifically, since the MAC address of the virtual machine is usually changed and the IP address is not changed when the MAC address of the virtual machine is changed (for example, when the virtual machine is migrated), the first VTEP device can broadcast an ARP request to at least one virtual machine in communication with the first VTEP device according to the IP address of the destination virtual machine, so that the destination virtual machine feeds back a new MAC address to the first VTEP device, and a new MAC address of the destination virtual machine can be queried next time when data packet transmission is performed, thereby ensuring that the packet correctly reaches the destination virtual machine.
Illustratively, if the MAC address of the destination virtual machine is denoted as MAC-VM0, the IP address is 192.168.1.0, and the egress interface is denoted as Tunnel0, when the first VTEP device obtains a mapping relationship between the first VTEP device and at least one virtual machine that the first VTEP device communicates with in an ARP entry of the first VTEP device according to the MAC address MAC-VM0 of the virtual machine, the egress interface Tunnel0 of the target first VTEP device corresponding to the destination virtual machine is determined according to the MAC address MAC-VM0 of the destination virtual machine and the mapping relationship, so that the first VTEP device sends the inner layer data packet to the virtual machine connected to the egress interface Tunnel0 through the egress interface Tunnel0, and since the MAC address of the virtual machine currently connected to the egress interface Tunnel0 is MAC-VM1, the inner layer data packet does not match with the MAC address of the destination virtual machine, indicating that the MAC address of the destination virtual machine has changed, the inner layer data packet cannot reach the destination virtual machine.
Specifically, before step 102, the method further includes the following steps:
a1, the first VTEP equipment decapsulates the tunnel message to obtain the inner layer data message of the tunnel message and the MAC address and the IP address of the destination virtual machine.
A2, the first VTEP device determines the target VTEP device output interface corresponding to the target virtual machine from the ARP table entry of the VTEP device according to the MAC address of the target virtual machine.
For example, the ARP entry of the VTEP device in this embodiment includes a mapping relationship between the VTEP device egress interface information and the MAC address and the IP address of the at least one virtual machine.
Further, based on step a1 and step a2, step 102 specifically includes:
a3, if the MAC address of the virtual machine corresponding to the output interface of the target VTEP device does not match the MAC address of the target virtual machine, the first VTEP device broadcasts the ARP request.
In addition, if the first VTEP device determines that the MAC address of the destination virtual machine is successfully matched with the MAC address of at least one virtual machine, it indicates that the MAC address of the destination address does not change, and at this time, the first VTEP device may directly forward the inner-layer data packet to the destination virtual machine through the queried output interface of the VTEP device corresponding to the destination virtual machine.
103. And the first VTEP equipment receives the ARP response fed back by the destination virtual machine.
The ARP response includes the new MAC address of the destination virtual machine.
104. The first VTEP device sends an ARP table item updating request to the SDN controller.
Illustratively, the ARP entry update request includes a mapping relationship between a new MAC address of the destination virtual machine and the VTEP device, and the ARP entry update request is used to request the SDN controller to update an ARP entry of the VTEP device according to the mapping relationship.
Specifically, after the ARP table entry of the first VTEP device is updated in the SDN controller, the new ARP table entry of the first VTEP device is retransmitted to all VTEP devices through the SDN controller, so that the new ARP table entry of the first VTEP device is updated in all VTEP devices, and it is ensured that the MAC address of the first virtual machine can be accurately searched when a data packet addressed to the first virtual machine communicating with the first VTEP device next time exists, so that the data packet is successfully transmitted to the first virtual machine.
For example, after the first VTEP device receives the ARP response, the first VTEP device may update the locally stored ARP entry in advance, and after step 103, the method further includes:
and B1, the first VTEP device updates the locally stored ARP table entry of the first VTEP device according to the MAC address of the destination virtual machine.
The ARP entry updating method provided in this embodiment of the present invention obtains the MAC address and the IP address of the destination virtual machine included in the tunnel packet by decapsulating the received tunnel packet, and then, if it is determined that the MAC address of the destination virtual machine does not match the MAC address of at least one virtual machine, it can be determined that the MAC address of the destination virtual machine changes, at this time, because the IP address of the virtual machine does not change when the MAC address of the virtual machine changes, the VTEP device can broadcast an ARP request to at least one virtual machine in communication with the VTEP device according to the IP address of the destination virtual machine, and further enable the VTEP device to receive an ARP response including the new MAC address of the destination virtual machine fed back by the destination virtual machine, so that the VTEP device can send an ARP entry updating request to the SDN controller based on the mapping relationship between the new MAC address of the destination virtual machine and the VTEP device, therefore, the SDN controller can update the APR table entry of the VTEP device in time, so that a new MAC address of the target virtual machine can be directly positioned when data messages are transmitted next time, and the data messages can be ensured to correctly reach the target virtual machine.
An embodiment of the present invention provides a VTEP apparatus, as shown in fig. 3, the VTEP apparatus 2 including: a receiving module 21, a broadcasting module 22 and a transmitting module 23, wherein:
the receiving module 21 is configured to receive a tunnel packet, where the tunnel packet includes an MAC address and an IP address of a destination virtual machine, and the destination virtual machine is one virtual machine of at least one virtual machine.
The broadcasting module 22 is configured to broadcast an ARP request if it is determined that the MAC address of the destination virtual machine included in the tunnel message received by the receiving module 21 does not match the MAC address of at least one virtual machine, where the ARP request includes an IP address of the destination virtual machine.
The receiving module 21 is further configured to receive an ARP response fed back by the destination virtual machine, where the ARP response includes a new MAC address of the destination virtual machine.
A sending module 23, configured to send an ARP entry update request to the SDN controller, where the ARP entry update request includes a mapping relationship between a new MAC address of the destination virtual machine and the VTEP device, which is received by the receiving module 21, and is used to request the SDN controller to update an ARP entry of the VTEP device according to the mapping relationship.
The ARP entry of the VTEP device includes a mapping relationship between the VTEP device egress interface information and the MAC address and the IP address of the at least one virtual machine.
Optionally, as shown in fig. 3, the VTEP apparatus 2 further includes: decapsulation module 24, determination module 25, wherein:
and a decapsulation module 24, configured to decapsulate the tunnel packet received by the receiving module 21 to obtain an inner layer data packet of the tunnel packet and an MAC address and an IP address of the destination virtual machine.
And a determining module 25, configured to determine, according to the MAC address of the destination virtual machine obtained by decapsulating by the decapsulating module 24, a target VTEP device egress interface corresponding to the destination virtual machine from the ARP entry of the VTEP device.
Further, the broadcasting module 22 is specifically configured to: and if the MAC address of the virtual machine corresponding to the output interface of the target VTEP equipment is not matched with the MAC address of the target virtual machine, broadcasting an ARP request.
Optionally, as shown in fig. 3, the VTEP apparatus 2 further includes: an update module 26, wherein:
and an updating module 26, configured to update the locally stored ARP entry of the VTEP device according to the ARP response that is fed back by the destination virtual machine and includes the MAC address of the destination virtual machine and is received by the receiving module 21.
The VTEP device provided in the embodiment of the present invention obtains the MAC address and the IP address of the destination virtual machine included in the tunnel message by decapsulating the received tunnel message, and then, if it is determined that the MAC address of the destination virtual machine does not match the MAC address of at least one virtual machine, it can determine that the MAC address of the destination virtual machine changes, and at this time, because the IP address of the virtual machine does not change when the MAC address of the virtual machine changes, the VTEP device can broadcast an ARP request to at least one virtual machine in communication with the VTEP device according to the IP address of the destination virtual machine, so that the VTEP device can receive an ARP response including the new MAC address of the destination virtual machine fed back by the destination virtual machine, and can send an ARP entry update request to the SDN controller based on the mapping relationship between the new MAC address of the destination virtual machine and the VTEP device, therefore, the SDN controller can update the APR table entry of the VTEP device in time, so that a new MAC address of the target virtual machine can be directly positioned when data messages are transmitted next time, and the data messages can be ensured to correctly reach the target virtual machine.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the method embodiment corresponding to fig. 2, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. 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 modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 of the embodiments of the present invention.

Claims (10)

1. An ARP entry update method, comprising:
receiving a tunnel message by a virtual extensible local area network (VTEP) terminal point, wherein the tunnel message comprises an MAC (media access control) address and an IP (Internet protocol) address of a target virtual machine, and the target virtual machine is one of at least one virtual machine communicated with the VTEP device;
if the VTEP equipment determines that the MAC address of the target virtual machine is not matched with the MAC address of the at least one virtual machine, broadcasting an ARP request, wherein the ARP request comprises the IP address of the target virtual machine;
the VTEP equipment receives an ARP response fed back by the target virtual machine, wherein the ARP response comprises a new MAC address of the target virtual machine;
the VTEP device sends an ARP table item updating request to an SDN controller, wherein the ARP table item updating request comprises a mapping relation between a new MAC address of the target virtual machine and the VTEP device, and is used for requesting the SDN controller to update an ARP table item of the VTEP device according to the mapping relation.
2. The method according to claim 1, wherein the ARP entry of the VTEP device comprises a mapping relationship between the VTEP device egress interface information and the MAC address and IP address of the at least one virtual machine.
3. The method according to claim 2, wherein before the VTEP device determines that the MAC address of the destination virtual machine does not match the MAC address of the at least one virtual machine, broadcasting an ARP request, the method further comprises:
decapsulating the tunnel message to obtain an inner-layer data message of the tunnel message and an MAC address and an IP address of the destination virtual machine;
and determining a target VTEP equipment output interface corresponding to the target virtual machine from the ARP table entry of the VTEP equipment according to the MAC address of the target virtual machine.
4. The method according to claim 3, wherein if the VTEP device determines that the MAC address of the destination virtual machine does not match the MAC address of the at least one virtual machine, broadcasting the ARP request specifically comprises: and if the MAC address of the virtual machine corresponding to the output interface of the target VTEP equipment is not matched with the MAC address of the target virtual machine, broadcasting an ARP request.
5. The method of claim 1, wherein after receiving the ARP response fed back by the destination virtual machine, the method further comprises:
and the VTEP equipment updates the locally stored ARP table entry of the VTEP equipment according to the MAC address of the target virtual machine.
6. A VTEP apparatus, comprising:
a receiving module, configured to receive a tunnel packet, where the tunnel packet includes an MAC address and an IP address of a destination virtual machine, and the destination virtual machine is one of at least one virtual machine in communication with the VTEP device;
a broadcast module, configured to broadcast an ARP request if it is determined that the MAC address of the destination virtual machine included in the tunnel packet received by the receiving module does not match the MAC address of the at least one virtual machine, where the ARP request includes an IP address of the destination virtual machine;
the receiving module is further configured to receive an ARP response fed back by the destination virtual machine, where the ARP response includes a new MAC address of the destination virtual machine;
a sending module, configured to send an ARP entry update request to an SDN controller, where the ARP entry update request includes a mapping relationship between the new MAC address of the destination virtual machine received by the receiving module and the VTEP device, and is used to request the SDN controller to update an ARP entry of the VTEP device according to the mapping relationship.
7. The VTEP device according to claim 6, wherein the ARP entry of the VTEP device comprises a mapping relationship between the VTEP device outbound interface information and the MAC address and the IP address of the at least one virtual machine.
8. The VTEP device according to claim 7, further comprising:
a decapsulation module, configured to decapsulate the tunnel packet received by the receiving module to obtain an inner layer data packet of the tunnel packet and an MAC address and an IP address of the destination virtual machine;
and the determining module is used for determining a target VTEP device output interface corresponding to the target virtual machine from the ARP table entry of the VTEP device according to the MAC address of the target virtual machine obtained by decapsulation of the decapsulation module.
9. The VTEP device according to claim 8, wherein the broadcast module is specifically configured to: and if the MAC address of the virtual machine corresponding to the output interface of the target VTEP equipment is not matched with the MAC address of the target virtual machine, broadcasting an ARP request.
10. The VTEP device according to claim 6, further comprising:
and the updating module is used for updating the locally stored ARP table entry of the VTEP equipment according to the ARP response which is fed back by the target virtual machine and contains the MAC address of the target virtual machine, and the ARP response is received by the receiving module.
CN201610719778.7A 2016-08-24 2016-08-24 ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment) Active CN107786677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610719778.7A CN107786677B (en) 2016-08-24 2016-08-24 ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610719778.7A CN107786677B (en) 2016-08-24 2016-08-24 ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)

Publications (2)

Publication Number Publication Date
CN107786677A CN107786677A (en) 2018-03-09
CN107786677B true CN107786677B (en) 2021-06-22

Family

ID=61388755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610719778.7A Active CN107786677B (en) 2016-08-24 2016-08-24 ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)

Country Status (1)

Country Link
CN (1) CN107786677B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913028B (en) * 2018-09-14 2022-06-14 阿里巴巴集团控股有限公司 Method, device and system for processing virtual address
CN111736958B (en) * 2020-06-29 2023-06-30 中国联合网络通信集团有限公司 Virtual machine migration method, system, computer equipment and storage medium
CN112565476A (en) * 2020-12-01 2021-03-26 中国联合网络通信集团有限公司 Virtual machine creation method, ARP proxy gateway and VTEP
CN113037883B (en) * 2021-02-23 2022-06-10 中国联合网络通信集团有限公司 Method and device for updating MAC address table entries
CN113254148A (en) * 2021-05-12 2021-08-13 中国联合网络通信集团有限公司 Virtual machine migration method and cloud management platform
CN115297055B (en) * 2022-07-25 2024-01-23 紫光云技术有限公司 Public cloud host migration arp table item updating method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935516A (en) * 2015-06-17 2015-09-23 武汉邮电科学研究院 Communication system based on software defined network and communication method
CN105591925A (en) * 2015-12-10 2016-05-18 杭州华三通信技术有限公司 Message forwarding method and device applied to SDN

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9419897B2 (en) * 2014-06-30 2016-08-16 Nicira, Inc. Methods and systems for providing multi-tenancy support for Single Root I/O Virtualization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935516A (en) * 2015-06-17 2015-09-23 武汉邮电科学研究院 Communication system based on software defined network and communication method
CN105591925A (en) * 2015-12-10 2016-05-18 杭州华三通信技术有限公司 Message forwarding method and device applied to SDN

Also Published As

Publication number Publication date
CN107786677A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN107786677B (en) ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)
US11283650B2 (en) Method for sending virtual extensible local area network packet, computer device, and computer readable medium
CN107070691B (en) Cross-host communication method and system of Docker container
US10757072B2 (en) Packet transmission method, apparatus, and system
JP6934142B2 (en) Data processing
US20150358232A1 (en) Packet Forwarding Method and VXLAN Gateway
US10454760B2 (en) Layer-3 overlay gateways
US20150071289A1 (en) System and method for address resolution
CN104506408A (en) Data transmission method and device based on SDN
US9641417B2 (en) Proactive detection of host status in a communications network
CN109547350B (en) Route learning method and gateway equipment
CN109936641B (en) Domain name resolution method, virtual switch and distributed DNS system
JP7448597B2 (en) Message generation method and device and message processing method and device
CN112565476A (en) Virtual machine creation method, ARP proxy gateway and VTEP
US11929851B2 (en) Gateway selection method, device, and system
CN104426816B (en) A kind of virtual machine communication method and device
CN109728926B (en) Communication method and network device
US11005706B2 (en) Method for configuring forwarding table for user equipment, apparatus, and system
CN109818869B (en) Method for generating multicast traffic forwarding port and related equipment
CN109842692B (en) VxLAN switch, system and method for obtaining host information in physical network
WO2023273957A1 (en) Computing power release method and apparatus, and computing power update method and apparatus
CN113472912B (en) ARP cache table item updating method, VTEP, VM and device
EP4044532A1 (en) Method for generating forwarding information, device, and system
US11956201B2 (en) Method and system for efficient address resolution in extended subnets
US20220400136A1 (en) Control apparatus, communication system, control method and program

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