CN112866435B - MAC address aging processing method and equipment - Google Patents

MAC address aging processing method and equipment Download PDF

Info

Publication number
CN112866435B
CN112866435B CN202110203304.8A CN202110203304A CN112866435B CN 112866435 B CN112866435 B CN 112866435B CN 202110203304 A CN202110203304 A CN 202110203304A CN 112866435 B CN112866435 B CN 112866435B
Authority
CN
China
Prior art keywords
mac address
address table
vtep
preset
local
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
CN202110203304.8A
Other languages
Chinese (zh)
Other versions
CN112866435A (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.)
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 CN202110203304.8A priority Critical patent/CN112866435B/en
Publication of CN112866435A publication Critical patent/CN112866435A/en
Application granted granted Critical
Publication of CN112866435B publication Critical patent/CN112866435B/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
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention discloses a method and a device for aging an MAC address, wherein the method comprises the following steps: under the condition that an MAC address table item of a VM (virtual machine) which is linked to the VTEP in a local MAC address table meets a preset condition, an ARP (address resolution protocol) request packet carrying a first preset OP (operational group) indicated value is sent to the VM; and in response to the ARP response packet sent by the VM is received in the preset time length and the second preset OP indicating value is obtained from the ARP response packet, the aging time of the MAC address table entry of the VM is counted again. The VTEP does not need to delete the MAC address table entry of the VM from the local MAC address table, namely does not need to broadcast the ARP request in the second-layer domain of the downlink VNI after deleting the MAC address table entry of the VM from the local MAC address table so as to obtain the MAC address of the VM again, so that the MAC address aging processing method provided by the embodiment of the invention can effectively reduce the condition of broadcasting flow of the VTEP in the second-layer domain of the downlink, thereby saving network resources.

Description

MAC address aging processing method and equipment
Technical Field
The invention relates to the technical field of virtual extended local area networks, in particular to an MAC address aging processing method, virtual extended local area network tunnel endpoint equipment and virtual machine equipment.
Background
In a VXLAN (Virtual eXtensible Local Area Network) Network, a VM (Virtual Machine) is connected to a VTEP (VXLAN Tunnel End Point), and if the VM does not send or receive traffic before the aging time of the MAC (Media Access Control) address is over, the VTEP deletes the MAC address entry of the VM. When the traffic sent to the VM reaches the VTEP, the VTEP cannot find the MAC Address of the VM in the local MAC Address table, and broadcasts an ARP (Address Resolution Protocol) request within a VNI (VXLAN Network Identifier, virtual extensible local area Network Identifier) range of the downstream, which causes waste of Network resources.
Disclosure of Invention
Therefore, the invention provides an MAC address aging processing method, virtual expansion local area network tunnel endpoint equipment and virtual machine equipment, so as to solve the technical problems.
In order to achieve the above object, a first aspect of the present invention provides a MAC address aging method, including:
under the condition that an MAC address table item of a virtual machine device VM which is connected to a virtual extended local area network (VTEP) tunnel endpoint device in a local Media Access Control (MAC) address table meets a preset condition, sending an Address Resolution Protocol (ARP) request packet carrying a first preset operation code (OP) indication value to the VM;
and in response to receiving an ARP response packet sent by the VM within a preset time length and acquiring a second preset OP indicated value from the ARP response packet, re-timing the aging time of the MAC address table entry of the VM.
In some embodiments, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition, including:
the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time are smaller than a preset threshold value.
In some embodiments, after the sending the ARP request packet carrying the first preset OP indication value to the VM, the method further comprises:
and in response to the fact that the ARP response packet sent by the VM is not received within the preset time length, deleting the MAC address table item of the VM which is connected to the local VTEP from a local MAC address table.
In some embodiments, after re-timing the aging time of the MAC address table entry of the VM, the method further comprises:
and responding to the received data packet with the destination IP address as the IP address of the VM, and forwarding the data packet to the VM according to the MAC address table entry of the VM.
In order to achieve the above object, a second aspect of the present invention provides a MAC address aging processing method, where the method includes:
in response to receiving an Address Resolution Protocol (ARP) request packet sent by a virtual extensible local area network (VTEP) tunnel endpoint device (VTEP) which is connected with a Virtual Machine (VM) in an uplink and acquiring a first preset operation code (OP) indicated value from the ARP request packet, sending an ARP response packet carrying a second preset OP indicated value to the VTEP so that the VTEP can count the aging time of the MAC address table item of the VM in a local Media Access Control (MAC) address table again.
In order to achieve the above object, a third aspect of the present invention provides a virtual extended local area network tunnel endpoint device, including:
a sending module, configured to send an ARP request packet carrying a first preset operation code OP indication value to a virtual machine device VM when an MAC address table entry of the VM, which is linked to a virtual machine device VTEP in a local media access control MAC address table, satisfies a preset condition;
a receiving module, configured to receive an ARP response packet sent by the VM;
and the processing module is used for responding to the ARP response packet sent by the VM received by the receiving module in a preset time length and acquiring a second preset OP indicated value from the ARP response packet, and retiming the aging time of the MAC address table entry of the VM.
In some embodiments, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition, including:
the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time are smaller than a preset threshold value.
In some embodiments, the processing module is further configured to delete the MAC address table entry of the VM that is linked up to the VTEP from the local MAC address table in response to the receiving module not receiving the ARP response packet sent by the VM within a preset time period.
In some embodiments, the receiving module is further configured to receive a data packet with a destination IP address of the VM;
and the sending module is further configured to, in response to the receiving module receiving a data packet whose destination IP address is the IP address of the VM, forward the data packet to the VM according to the MAC address table entry of the VM.
In order to achieve the above object, a fourth aspect of the present invention provides a virtual machine device, including:
the virtual machine equipment VM uplink virtual expansion local area network tunnel endpoint equipment VTEP comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an address resolution protocol ARP request packet sent by the virtual expansion local area network tunnel endpoint equipment VTEP which is connected with the virtual machine equipment VM, and acquiring a first preset operation code OP indicated value from the ARP request packet;
and the sending module is used for responding to an ARP request packet which is received by the receiving module and sent by the VTEP which is connected with the VM and acquiring a first preset OP indicating value from the ARP request packet, and sending an ARP response packet carrying a second preset OP indicating value to the VTEP so as to enable the VTEP to count the aging time of the MAC address table item of the VM in the local media access control MAC address table again.
The invention has the following advantages:
in the MAC address aging processing method provided in the embodiment of the present invention, when the MAC address table entry of the VM that is linked to the local VTEP in the local MAC address table meets the preset condition, the VTEP sends an ARP request packet carrying a first preset OP indication value to the VM, and in response to receiving the ARP response packet sent by the VM within the preset time and acquiring a second preset OP indication value from the ARP response packet, when the aging time of the MAC address table entry of the VM is reset, the VTEP does not need to delete the MAC address table entry of the VM from the local MAC address table, that is, does not need to broadcast an ARP request to the second layer domain of the downlink VNI after deleting the MAC address table entry of the VM from the local MAC address table to reacquire the MAC address of the VM.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a first flowchart of a method for aging an MAC address on a VTEP side of a tunnel endpoint device in a virtual extensible local area network according to embodiment 1 of the present invention;
fig. 2 is a flowchart illustrating a second method for processing MAC address aging on a VTEP side of a virtual extensible local area network tunnel endpoint device according to embodiment 2 of the present invention;
fig. 3 is a third schematic flowchart of a method for processing MAC address aging on the VTEP side of a virtual extensible local area network tunnel endpoint device according to embodiment 3 of the present invention;
fig. 4 is a schematic flowchart of a method for processing MAC address aging on a VM side of a virtual machine device according to embodiment 4 of the present invention;
fig. 5 is a schematic structural diagram of a virtual extensible local area network tunnel endpoint device VTEP provided in embodiment 5 of the present invention;
fig. 6 is a schematic structural diagram of a virtual machine device VM provided in embodiment 6 of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention and are not limiting of the invention.
It is to be understood that the embodiments and features of the embodiments can be combined with each other without conflict.
It is to be understood that, for the convenience of description, only parts related to the present invention are shown in the drawings of the present invention, and parts not related to the present invention are not shown in the drawings.
It should be understood that each unit and module related in the embodiments of the present invention may correspond to only one physical structure, may also be composed of multiple physical structures, or multiple units and modules may also be integrated into one physical structure.
It will be understood that, without conflict, the functions, steps, etc. noted in the flowchart and block diagrams of the present invention may occur in an order different from that noted in the figures.
It is to be understood that the flowchart and block diagrams of the present invention illustrate the architecture, functionality, and operation of possible implementations of systems, apparatus, devices and methods according to various embodiments of the present invention. Each block in the flowchart or block diagrams may represent a unit, module, segment, code, which comprises executable instructions for implementing the specified function(s). Furthermore, each block or combination of blocks in the block diagrams and flowchart illustrations can be implemented by a hardware-based system that performs the specified functions or by a combination of hardware and computer instructions.
It is to be understood that the units and modules involved in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware, for example, the units and modules may be located in a processor.
The MAC address aging processing method provided by the embodiment of the invention can be applied to virtual expansion local area network tunnel endpoint equipment and virtual machine equipment which is connected to the virtual expansion local area network tunnel endpoint equipment.
As shown in fig. 1, an embodiment of the present invention provides a MAC address aging method that may be applied to a virtual extensible local area network tunnel endpoint device, where the method may include the following steps:
and step 11, sending an ARP request packet carrying a first preset OP (operation code) indication value to the VM when the MAC address table item of the VM which is linked to the local VTEP in the local MAC address table meets a preset condition.
The first preset OP indication value may be 0x 0003.
The virtual machine device VM is connected to a virtual extended local area network tunnel endpoint device VTEP, and the VTEP establishes an address table item of the VM in a local MAC address table item in advance according to the automatic learning of a source MAC address of a received data packet.
Under the condition that the MAC address table entry of the VM in the VTEP local MAC address table meets the preset condition, it may be stated that the aging time of the MAC address table entry of the VM is already expired, but at this time, the VTEP does not directly delete the MAC address table entry of the VM from the local MAC address table, but first sends an extended ARP request packet to the VM, where a value of the ARP request packet in the OP indication is 0x0003, which indicates that the VTEP requests to verify the VM, and a destination IP (Internet Protocol ) address of the ARP request packet is an IP address of the VM, the destination MAC address is an MAC address of the VM, a source IP address is an IP address of the VTEP, and the source MAC address is an MAC address of the VTEP.
And step 12, in response to receiving the ARP response packet sent by the VM within the preset time length and acquiring a second preset OP indicated value from the ARP response packet, re-timing the aging time of the MAC address table entry of the VM.
The second preset OP indication value may be 0x 0004.
If the VTEP receives an ARP response packet returned by the VM within a preset time length after sending an ARP request packet carrying the first preset OP indication value to the VM and acquires the second preset OP indication value from the ARP response packet, the VTEP may determine that the VM is verified to be passed. At this time, the VTEP may reset the aging time of the MAC address table entry of the VM in the local MAC address table, i.e., re-time the aging time of the MAC address table entry of the VM.
As can be seen from steps 11 to 12, in the MAC address aging processing method provided in the embodiment of the present invention, when the MAC address table entry of the VM that is linked to the local VTEP in the local MAC address table meets the preset condition, the VTEP sends an ARP request packet carrying a first preset OP indication value to the VM, and in response to receiving the ARP response packet sent by the VM within the preset time and acquiring a second preset OP indication value from the ARP response packet, when the aging time of the MAC address table entry of the VM is reset, the VTEP does not need to delete the MAC address table entry of the VM from the local MAC address table, that is, does not need to broadcast an ARP request to reacquire the MAC address of the VM in the second-layer domain of the downlink VNI after deleting the MAC address table entry of the VM from the local MAC address table, so that the MAC address aging processing method provided in the embodiment of the present invention can effectively reduce the broadcast traffic of the VTEP in the second-layer domain of the downlink VNI, thereby realizing saving of network resources.
In some embodiments, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition (i.e., described in step 11), which may include:
the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time is less than a preset threshold value.
In the aging time of the MAC address table entry of the VM in the local MAC address table, if the VTEP receives a packet using the MAC address of the VM as the source MAC address, the VTEP will count the aging time of the MAC address table entry of the VM again and set the aging time flag bit of the MAC address table entry of the VM to 1. After the aging time of the MAC address table entry of the VM in the local MAC address table is out of date, if the VTEP does not receive a packet using the MAC address of the VM as the source MAC address, the VTEP sets the aging time flag bit of the MAC address table entry of the VM to 0.
In the embodiment of the present invention, when the VTEP detects that the aging time flag bit of the MAC address table entry of the VM is 0 and the number of times that the VTEP queries the MAC address table entry of the VM in the local MAC address table in the aging time is smaller than the preset threshold, the VTEP may determine that it needs to request verification of the VM at this time, that is, send an ARP request packet carrying the first preset OP indication value to the VM.
As shown in fig. 2, in some embodiments, after sending the ARP request packet carrying the first preset OP indication value to the VM (i.e. step 11), the MAC address aging processing method provided by the present invention may further include the following steps:
and step 12', in response to not receiving the ARP response packet sent by the VM within the preset time length, deleting the MAC address table entry of the VM which is linked to the VTEP from the local MAC address table.
If the VTEP does not receive the ARP response packet returned by the VM within the preset time length after sending the ARP request packet carrying the first preset OP indication value to the VM, the VTEP may determine that the verification of the VM fails. At this point, the VTEP may delete the MAC address table entry of the VM from the local MAC address table.
The VTEP does not receive the ARP response packet returned by the VM within the preset duration after sending the ARP request packet carrying the first preset OP indication value to the VM, possibly because the VM is offline.
As shown in fig. 3, after the aging time of the MAC address table entry of the VM is counted again (i.e. step 12), the MAC address aging processing method provided by the present invention may further include the following steps:
and step 13, responding to the received data packet with the destination IP address being the IP address of the VM, and forwarding the data packet to the VM according to the MAC address table entry of the VM.
After the aging time of the MAC address table entry of the VM is re-timed and before the aging time of the MAC address table entry of the VM is again overtime, if the traffic sent to the VM reaches the VTEP, the VTEP may determine the MAC address of the VM directly according to the MAC address table entry of the VM in the local MAC address table, and send the traffic to the VM.
As shown in fig. 4, an embodiment of the present invention provides a MAC address aging method applicable to a virtual machine device, where the method includes the following steps:
step 21, in response to receiving the ARP request packet sent by the VTEP that is connected to the VM and acquiring the first preset OP indication value from the ARP request packet, sending an ARP response packet carrying the second preset OP indication value to the VTEP, so that the VTEP retimes the aging time of the MAC address table entry of the VM in its local MAC address table.
The first preset OP indicator may be 0x0003, and the second preset OP indicator may be 0x 0004.
When the VM receives an ARP request packet sent by the VTEP and obtains a first preset OP indication value from the ARP request packet, it can be shown that the VTEP requests the VM for verification because the aging time of the MAC address table entry of the VM in the VTEP local MAC address table is overtime and the number of times of querying the MAC address table entry of the VM within the aging time is less than a preset threshold. At this time, the VM may return an extended ARP response packet to the VTEP, where a corresponding value of the ARP response packet in the OP indication is 0x0004, a destination IP address of the ARP response packet is an IP address of the VTEP, a destination MAC address is a MAC address of the VTEP, a source IP address is an IP address of the VM, and a source MAC address is a MAC address of the VM.
And after receiving the ARP response packet sent by the VM and acquiring a second preset OP indicating value from the ARP response packet, the VTEP counts the aging time of the MAC address table entry of the VM in the local MAC address table again.
As can be seen from step 21, in the MAC address aging processing method provided in the embodiment of the present invention, in response to receiving an ARP request packet sent by a VTEP that is associated with the VM and acquiring a first preset OP indication value from the ARP request packet, sending an ARP response packet carrying a second preset OP indication value to the VTEP, so that the VTEP restarts the aging time of the MAC address table entry of the VM in its local MAC address table, the VTEP does not need to delete the MAC address table entry of the VM from the local MAC address table, that is, does not need to broadcast an ARP request in the second layer domain of the downlink VNI after deleting the MAC address table entry of the VM from the local MAC address table to reacquire the MAC address of the VM, so that the MAC address aging processing method provided in the embodiment of the present invention can effectively reduce the situation of broadcast traffic of the VTEP in the second layer domain of the downlink, thereby saving network resources.
The MAC address aging method provided by the present invention is briefly described below with reference to a specific embodiment.
In step a, VM1 is linked to VTEP1, VM1 needs to communicate with VM2 belonging to the same VNI in the same network segment, but VM1 does not acquire the MAC address of VM2 in the local ARP cache, so VM1 sends an ARP request to VTEP1, where the ARP request includes the IP address and MAC address of VM 1.
Step b, after receiving the ARP request, the VTEP1 may first determine a message ingress interface (a physical interface corresponding to the second-layer sub-interface, that is, an interface that receives the ARP request) corresponding to the ARP request, and then may determine, according to configurations on the message ingress interface and the second-layer sub-interface, that the ARP request needs to enter the VXLAN tunnel, a BD (Bridge Domain, broadcast Domain) to which the ARP request belongs, and a VNI to which the ARP request belongs.
Step c, the VTEP1 determines that the local MAC address table does not have the address table entry of the VM1 according to the VNI, learns the corresponding relationship between the MAC address of the VM1, the VNI, and the packet ingress interface, generates the address table entry of the VM1 in the local MAC address table according to the corresponding relationship, and starts timing the aging time of the address table entry of the VM 1.
And d, the VTEP1 copies the ARP request message received in the step b according to the head end copy list and encapsulates the ARP request message. The outer layer source IP address of the encapsulated message is the IP address of VTEP1, the outer layer source MAC address is the MAC address of VTEP1, the outer layer destination IP address is the IP address of all opposite end VTEPs, and the outer layer destination MAC address is the MAC address of the next hop device in the network to the destination IP address.
Step d, after the package message reaches the devices between the VTEP1 and the opposite end VTEP, the devices modify the outer layer address of the package message, so that the package message is transmitted in the IP network until the package message reaches the opposite end VTEP.
And e, after the encapsulated message reaches the VTEP at the opposite end, the VTEP at the opposite end de-encapsulates the encapsulated message to obtain an original ARP request message sent by the VM1, and the VTEP at the opposite end learns the corresponding relation among the MAC address of the VM1, the VNI and the IP address of the VTEP1 and records the corresponding relation in a local MAC address table.
And step f, the opposite-end VTEP correspondingly processes the original ARP request message sent by the VM1 according to the configuration on the two-layer subinterface and broadcasts the message in the corresponding two-layer domain.
Step g, after receiving the ARP request, the VM2 connected to the VTEP at a certain opposite end sends an ARP response.
Up to this point, the VM1 may acquire the MAC address of the VM2 from the ARP response sent by the VM 2.
Step h, VTEP1 checks that the aging time flag bit of the MAC address entry of VM1 is 0 and the number of times of querying the MAC address entry of VM1 in the aging time is smaller than the preset threshold, VTEP1 sends an extended ARP request packet to VM1, where a value of the ARP request packet in the OP indication is 0x0003, which indicates that VTEP1 requests to verify VM1, and a destination IP address of the ARP request packet is an IP address of VM1, a destination MAC address of VM1, a source IP address is an IP address of VTEP1, and a source MAC address is an MAC address of VTEP 1.
And if the VM1 is not offline at the moment, jumping to the step i, otherwise, jumping to the step l.
Step i, VM1 receives the ARP request packet sent by VTEP1 and obtains an OP indication value of 0x0003 from the ARP request packet, and returns an extended ARP response packet to VTEP1, where the ARP response packet has a corresponding value of 0x0004 in the OP indication, the ARP response packet has a destination IP address of VTEP1, a destination MAC address of VTEP1, a source IP address of VM1, and a source MAC address of VM 1.
Step j, the VTEP1 receives an ARP response packet sent by the VM1 within a preset time period and acquires an OP indication value with a value of 0x0004 from the ARP response packet, retimes the aging time of the MAC address table entry of the VM1 in the local MAC address table, and sets the aging time flag bit of the MAC address table entry of the VM1 to 1.
At step k, VTEP1 receives the traffic that needs to be sent to VM1, and forwards the traffic to VM1 according to the MAC address table entry of VM1 in the local MAC address table.
In step l, the VTEP1 does not receive the ARP response packet sent by the VM1 within the preset time length, and deletes the MAC address table entry of the VM1 from the local MAC address table.
Based on the same technical concept, as shown in fig. 5, an embodiment of the present invention further provides a virtual extended local area network tunnel endpoint device, where the virtual extended local area network tunnel endpoint device includes:
the sending module 101 is configured to send an ARP request packet carrying a first preset operation code OP indication value to a virtual machine device VM when an MAC address table entry of the VM, which is linked to the VTEP, in a local MAC address table meets a preset condition.
A receiving module 102, configured to receive an ARP response packet sent by the VM.
The processing module 103 is configured to, in response to the receiving module 102 receiving an ARP response packet sent by the VM within a preset time period and acquiring a second preset OP indication value from the ARP response packet, count the aging time of the MAC address table entry of the VM again.
In some embodiments, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition, including:
the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time are smaller than a preset threshold value.
In some embodiments, the processing module 103 is further configured to, in response to that the receiving module 102 does not receive an ARP response packet sent by the VM within a preset time period, delete the MAC address table entry of the VM that is linked to the local VTEP from the local MAC address table.
In some embodiments, the receiving module 102 is further configured to receive a data packet with a destination IP address being an IP address of the VM.
The sending module 101 is further configured to, in response to the receiving module 102 receiving a data packet whose destination IP address is the IP address of the VM, forward the data packet to the VM according to the MAC address table entry of the VM.
Based on the same technical concept, as shown in fig. 6, an embodiment of the present invention further provides a virtual machine device, where the virtual machine device includes:
a receiving module 201, configured to receive an address resolution protocol ARP request packet sent by a virtual extension local area network tunnel endpoint device VTEP that is connected to a virtual machine VM of the virtual machine VM, and obtain a first preset operation code OP indication value from the ARP request packet;
a sending module 202, configured to send, in response to the receiving module 201 receiving an ARP request packet sent by a VTEP that is connected to the VM and obtaining a first preset OP indication value from the ARP request packet, an ARP response packet carrying a second preset OP indication value to the VTEP, so that the VTEP retimes the aging time of the MAC address table entry of the VM in its local media access control MAC address table.
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 (8)

1. A MAC address aging processing method is characterized by comprising the following steps:
under the condition that an MAC address table item of a virtual machine device VM which is connected to a virtual extended local area network (VTEP) tunnel endpoint device in a local Media Access Control (MAC) address table meets a preset condition, sending an Address Resolution Protocol (ARP) request packet carrying a first preset operation code (OP) indication value to the VM; wherein, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition, including: the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time are smaller than a preset threshold value;
and in response to the ARP response packet sent by the VM is received in a preset time length and a second preset OP indicating value is obtained from the ARP response packet, the aging time of the MAC address table entry of the VM is counted again.
2. The method of claim 1, wherein after the sending the ARP request packet carrying the first preset OP indication value to the VM, the method further comprises:
and in response to the fact that the ARP response packet sent by the VM is not received within the preset time length, deleting the MAC address table item of the VM which is connected to the local VTEP from a local MAC address table.
3. The method of claim 1, wherein after re-timing the aging time of the MAC address table entry of the VM, the method further comprises:
and responding to a received data packet with a destination network protocol IP address as the IP address of the VM, and forwarding the data packet to the VM according to the MAC address table entry of the VM.
4. A MAC address aging processing method is characterized by comprising the following steps:
responding to an ARP request packet sent by a virtual extensible local area network (VTEP) tunnel endpoint equipment (VTEP) which is connected with a Virtual Machine (VM) in an upper link and acquiring a first preset operation code (OP) indicated value from the ARP request packet, and sending an ARP response packet carrying a second preset OP indicated value to the VTEP so as to enable the VTEP to retime the aging time of an MAC address table item of the VM in a local Media Access Control (MAC) address table;
wherein, the ARP request packet is sent by the VTEP when the MAC address table entry meets a preset condition, and the MAC address table entry meeting the preset condition includes: and the aging time of the MAC address table entry is overtime, and the queried times of the MAC address table entry in the aging time are less than a preset threshold value.
5. A virtual extended local area network tunnel endpoint device, the virtual extended local area network tunnel endpoint device comprising:
a sending module, configured to send an ARP request packet carrying a first preset operation code OP indication value to a virtual machine device VM when an MAC address table entry of the VM, which is linked to a virtual machine device VTEP in a local media access control MAC address table, satisfies a preset condition; wherein, the MAC address table entry of the VM linked to the local VTEP in the local MAC address table satisfies a preset condition, including: the aging time of the MAC address table item of the VM connected to the local VTEP in the local MAC address table is overtime, and the inquired times of the MAC address table item of the VM in the aging time are smaller than a preset threshold value;
a receiving module, configured to receive an ARP response packet sent by the VM;
and the processing module is used for responding to the ARP response packet sent by the VM received by the receiving module in a preset time length and acquiring a second preset OP indicating value from the ARP response packet, and retiming the aging time of the MAC address table item of the VM.
6. The virtual local area network tunnel endpoint device of claim 5, wherein the processing module is further configured to delete the MAC address table entry of the VM that is linked up to the local VTEP from the local MAC address table in response to the receiving module not receiving the ARP response packet sent by the VM within a preset time period.
7. The virtual extended local area network tunnel endpoint device of claim 5, wherein the receiving module is further configured to receive a data packet with a destination IP address being the IP address of the VM;
the sending module is further configured to, in response to the receiving module receiving a data packet whose destination IP address is the IP address of the VM, forward the data packet to the VM according to the MAC address table entry of the VM.
8. A virtual machine device, the virtual machine device comprising:
the virtual machine equipment VM uploading virtual expansion local area network tunnel endpoint equipment VTEP comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving an address resolution protocol ARP request packet sent by the virtual expansion local area network tunnel endpoint equipment VTEP which is uploaded by the virtual machine equipment VM and acquiring a first preset operation code OP indicating value from the ARP request packet;
a sending module, configured to send, in response to the receiving module receiving an ARP request packet sent by a VTEP that is linked up to a VM and acquiring a first preset OP indication value from the ARP request packet, an ARP response packet carrying a second preset OP indication value to the VTEP, so that the VTEP retimes an aging time of an MAC address table entry of the VM in its local media access control MAC address table;
wherein the ARP request packet is sent by the VTEP when the MAC address table entry meets a preset condition, and the MAC address table entry meeting the preset condition includes: and the aging time of the MAC address table entry is overtime, and the queried times of the MAC address table entry in the aging time are smaller than a preset threshold value.
CN202110203304.8A 2021-02-23 2021-02-23 MAC address aging processing method and equipment Active CN112866435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110203304.8A CN112866435B (en) 2021-02-23 2021-02-23 MAC address aging processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110203304.8A CN112866435B (en) 2021-02-23 2021-02-23 MAC address aging processing method and equipment

Publications (2)

Publication Number Publication Date
CN112866435A CN112866435A (en) 2021-05-28
CN112866435B true CN112866435B (en) 2022-09-27

Family

ID=75990322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110203304.8A Active CN112866435B (en) 2021-02-23 2021-02-23 MAC address aging processing method and equipment

Country Status (1)

Country Link
CN (1) CN112866435B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347101B (en) * 2021-06-01 2022-11-15 中国联合网络通信集团有限公司 Routing information sending control method, VTEP and computer readable storage medium
CN113472916A (en) * 2021-07-13 2021-10-01 中国联合网络通信集团有限公司 MAC address aging processing method and equipment
CN113542130B (en) * 2021-07-22 2023-07-14 新华三信息安全技术有限公司 Address table item processing method and device
CN115225573A (en) * 2022-07-18 2022-10-21 中国联合网络通信集团有限公司 Table entry aging processing method, traffic forwarding method, device, VTEP and VXLAN

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872117A (en) * 2015-10-26 2016-08-17 乐视云计算有限公司 Method and system for obtaining MAC address and virtual machine manager
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10313153B2 (en) * 2017-02-27 2019-06-04 Cisco Technology, Inc. Adaptive MAC grouping and timeout in EVPN environments using machine learning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872117A (en) * 2015-10-26 2016-08-17 乐视云计算有限公司 Method and system for obtaining MAC address and virtual machine manager
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration

Also Published As

Publication number Publication date
CN112866435A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN112866435B (en) MAC address aging processing method and equipment
US9838221B2 (en) Base station deployment configuration method for base station, base station, and server
KR101612819B1 (en) Method and apparatus for processing SOME/IP stream interworking AVB technology
WO2019033857A1 (en) Packet control method and network device
US9515919B2 (en) Method and apparatus for protection switching in packet transport system
US11736411B2 (en) Method, device, and system for transmitting multicast packet
WO2016062106A1 (en) Packet processing method, device and system
EP2129037A1 (en) Method and apparatus for multicast group management
CN112673602B (en) Method and device for avoiding broadcast storm
JP2002111684A (en) Radio communication system and its time out value updating method
EP3633934A1 (en) Sdn-based arp implementation method and apparatus
WO2021174958A1 (en) Message forwarding method, device, system, network device and storage medium
US7079491B2 (en) Method and node apparatus for filtering ICMP data frame
CN107204924B (en) Link discovery method and device
US11330085B2 (en) Data transmission protection method, device, system, and computer readable storage medium
CN110086771B (en) Method and device for managing protocol conversion equipment
WO2022007828A1 (en) Redundant path resource reservation method, network device, and storage medium
CN113472916A (en) MAC address aging processing method and equipment
CN110690990B (en) Server upgrading method and device, electronic equipment and storage medium
US8931085B2 (en) Download optimization in the presence of multicast data
JP4040045B2 (en) Data transfer device
CN113162855A (en) Multicast message detection method, network equipment and system
WO2021091523A1 (en) Method and apparatus for user plane resource optimization
WO2015180560A1 (en) Service router packet processing method and service node
CN111405615B (en) Communication data transmission method, device and storage medium

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