A method and device for forwarding VXLAN messages based on OVS neighbor table entries

By creating a cache queue for VXLAN messages in OVS and updating neighbor table entries, the problem of OVS DPDK discarding messages when learning neighbor table entries is solved, ensuring the stability and performance of virtual machine communication.

CN116094998BActive Publication Date: 2024-11-26CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211701490.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-11-26
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

When learning neighbor table entries, OVS DPDK will discard VXLAN packets that need to be forwarded at present, resulting in packet loss and slow connection establishment during virtual machine communication.

Method used

When OVS forwards VXLAN messages, by determining the target neighbor table entry, the message is stored in the cache queue, and the ARP request or NS message is constructed to obtain the target MAC address, and the neighbor table entry is updated to ensure the message forwarding.

Benefits of technology

It effectively avoids packet discarding, ensures normal communication between virtual machines, and improves the forwarding performance of the virtual network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094998B_ABST
    Figure CN116094998B_ABST
Patent Text Reader

Abstract

The present invention discloses a forwarding method and device of a VXLAN message based on a neighbor table item of an OVS, belonging to the field of network technology and security technology. The method comprises: in the case of forwarding a VXLAN message through an OVS, determining a target neighbor table item, storing the VXLAN message in a cache queue in the target neighbor table item, constructing an ARP request or an NS message to obtain the target MAC address and the target IP address, searching the target neighbor table item according to the target IP address, updating the target MAC address to the target neighbor table item, searching the MAC address in the target neighbor table item through the OVS to forward the VXLAN message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network technology and security technology, and in particular relates to a method and device for forwarding VXLAN messages based on OVS neighbor table entries. Background Art

[0002] Open vSwitch (OVS) is an open source virtual switch that is widely used in cloud computing scenarios. At the same time, in order to improve its forwarding performance, the DPDK acceleration solution was introduced, which enables data to be forwarded directly in user mode, greatly improving the forwarding performance of OVS.

[0003] In cloud scenarios, VXLAN is commonly used to encapsulate packets from virtual networks (overlay networks), and then the encapsulated VXLAN packets are sent to the basic network (underlay network) through three-layer forwarding. The key to three-layer forwarding is that OVS must know the MAC address of the next hop. When the local OVS does not save the MAC address of the next hop, OVS needs to learn the MAC address of the next hop by actively sending ARP requests (ipv4 addresses) or NS packets (ipv6 addresses). There is an obvious flaw in the OVS DPDK when executing the above process - OVS will discard the VXLAN tunnel packets that currently need to be forwarded until OVS learns the MAC address of the next hop.

[0004] To summarize the above process, when using OVS DPDK to forward VXLAN tunnel packets, if the next-hop MAC exists in the local neighbor table of OVS, OVS can forward the VXLAN packet normally; if the next-hop MAC does not exist, OVS will construct an ARP request or NS packet to actively learn the next-hop MAC and discard the VXLAN packet to be forwarded.

[0005] Due to this defect, there is a risk of packet loss during virtual machine communication, which is directly reflected in the slow establishment of the connection between the two parties in communication. Summary of the invention

[0006] The purpose of the embodiment of the present invention is to provide a method and device for forwarding VXLAN messages based on OVS neighbor table entries, so as to solve the problem that the OVS DPDK forwarding plane discards the current message when learning the neighbor table entry, and ensure that the virtual machines can communicate normally.

[0007] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0008] In a first aspect, an embodiment of the present invention provides a method for forwarding a VXLAN message based on an OVS neighbor table entry, characterized in that the method includes:

[0009] When forwarding VXLAN packets through OVS, determine the target neighbor entry;

[0010] Storing the VXLAN message in a cache queue in the target neighbor table entry;

[0011] Constructing an ARP request or NS message to obtain the target MAC address and target IP address;

[0012] Search the target neighbor table entry according to the target IP address, and update the target MAC address to the target neighbor table entry;

[0013] The OVS searches for the MAC address in the target neighbor table entry to forward the VXLAN message.

[0014] Optionally, when the VXLAN message is forwarded by OVS and there is no target MAC address, determining the target neighbor entry includes:

[0015] When forwarding VXLAN packets through OVS, the corresponding neighbor table entry is searched by the next hop IP address;

[0016] If the corresponding neighbor table entry does not exist, create the target neighbor table entry and establish a cache queue in the target neighbor table entry;

[0017] In a case where the corresponding neighbor entry exists and the corresponding neighbor entry does not have a target MAC address, the corresponding neighbor entry is determined to be a target neighbor entry.

[0018] Optionally, after creating the target neighbor entry when the corresponding neighbor entry does not exist, the method further includes:

[0019] Setting the state of the target neighbor entry to a first state;

[0020] After constructing the ARP request or NS message, the method further includes:

[0021] Update the time of the target neighbor entry to the second state, and start a first timer to record the duration of the target neighbor entry in the first state;

[0022] After constructing the ARP request or NS message to obtain the target MAC address and the target IP address, the method further includes:

[0023] The time of the target neighbor entry is updated to a third state, and a second timer is started to record the duration of the target neighbor entry being in the third state.

[0024] Optionally, after updating the time of the target neighbor entry to the second state and starting the first timer, the method further includes:

[0025] Waiting for a response message to the ARP request or NS message;

[0026] If the response message is not received, resending the ARP request or NS message;

[0027] When the response message is received, the target MAC address and the target IP address are obtained from the response message, and the time of the target neighbor table entry is updated to a third state.

[0028] Optionally, after resending the ARP request or NS message when the response message is not received, the method further includes:

[0029] When the number of times the ARP request or NS message is resent is greater than or equal to the target number of times, updating the time of the target neighbor table entry to the first state;

[0030] Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.

[0031] In a second aspect, a VXLAN message forwarding device based on an OVS neighbor table entry is characterized by comprising:

[0032] A determination module, used to determine a target neighbor entry when forwarding a VXLAN message through OVS;

[0033] A cache module, used to store the VXLAN message in a cache queue in the target neighbor table entry;

[0034] A construction module, used to construct an ARP request or NS message to obtain the target MAC address and target IP address;

[0035] An updating module, configured to search the target neighbor table entry according to the target IP address, and update the target MAC address into the target neighbor table entry;

[0036] A forwarding module is used to search the MAC address in the target neighbor table entry through the OVS to forward the VXLAN message.

[0037] Optionally, the determining module includes:

[0038] The lookup module is used to look up the corresponding neighbor table entry by the next hop IP address when forwarding VXLAN packets through OVS;

[0039] A creation module, used for creating the target neighbor table entry and establishing a cache queue in the target neighbor table entry when the corresponding neighbor table entry does not exist;

[0040] The determination submodule is used to determine that the corresponding neighbor table entry is a target neighbor table entry when the corresponding neighbor table entry exists and the corresponding neighbor table entry does not have a target MAC address.

[0041] Optionally, the forwarding device further includes:

[0042] A setting module, used to set the state of the target neighbor table entry to a first state;

[0043] A first updating module, configured to update the time of the target neighbor entry to a second state, and start a first timer to record the duration of the target neighbor entry being in the first state;

[0044] The second updating module is used to update the time of the target neighbor entry to a third state, and start a second timer to record the duration of the target neighbor entry being in the third state.

[0045] Optionally, the forwarding device further includes:

[0046] A waiting module, used for waiting for a response message to the ARP request or NS message;

[0047] A sending module, configured to resend the ARP request or NS message if the response message is not received;

[0048] The acquisition module is used to acquire the target MAC address and the target IP address from the response message when the response message is received, and update the time of the target neighbor table entry to a third state.

[0049] Optionally, the forwarding device further includes:

[0050] A third updating module, configured to update the time of the target neighbor table entry to a first state when the number of times the ARP request or NS message is resent is greater than or equal to a target number of times;

[0051] Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.

[0052] The embodiment of the present invention provides a method for forwarding VXLAN messages based on the neighbor table of OVS, the method comprising: in the case of forwarding VXLAN messages through OVS, determining the target neighbor table, storing the VXLAN message in the cache queue in the target neighbor table, constructing an ARP request or NS message to obtain the target MAC address and the target IP address, searching the target neighbor table according to the target IP address, and updating the target MAC address to the target neighbor table, searching the MAC address in the target neighbor table by the OVS to forward the VXLAN message. The embodiment of the present invention adds a cache queue in the neighbor table of OVS for caching the VXLAN message to be sent, so as to solve the problem that the OVSDPDK forwarding plane discards the current message when learning the neighbor table, and ensures that the virtual machines can communicate normally. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a schematic diagram of layer 3 forwarding of VXLAN by OVSDPDK provided by an embodiment of the present invention;

[0054] Figure 2 It is a flow chart of a method for forwarding VXLAN messages based on OVS neighbor table entries provided by an embodiment of the present invention;

[0055] Figure 3 It is a schematic diagram of the data structure of an OVS neighbor table entry provided by an embodiment of the present invention;

[0056] Figure 4 It is a schematic diagram of a message in-cache queue and out-cache queue provided by an embodiment of the present invention;

[0057] Figure 5 It is a schematic diagram of an OVS neighbor table state machine provided by an embodiment of the present invention;

[0058] Figure 6 It is a structural schematic diagram of a VXLAN message forwarding device based on an OVS neighbor table entry provided in an embodiment of the present invention.

[0059] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, rather than to describe a specific order or precedence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0062] In the following, in conjunction with the accompanying drawings, the VXLAN message forwarding method based on the OVS neighbor table provided by the embodiment of the present invention is described in detail through specific embodiments and application scenarios.

[0063] Embodiment 1

[0064] Reference Figure 1 , provides a schematic diagram of the three-layer forwarding of VXLAN by OVS DPDK. Two OVS bridges are created on the host, named br-int and br-ext. The br-int bridge is used to forward the packets of the virtual network. The br-ext bridge is used to encapsulate the VXLAN packets and send them to the basic network, and to decapsulate the VXLAN packets sent from the basic network and forward the inner packets to the virtual network.

[0065] Reference Figure 2 , shows a flow chart of a method for forwarding VXLAN messages based on OVS neighbor table entries provided in an embodiment of the present invention.

[0066] The present invention provides a method for forwarding a VXLAN message based on an OVS neighbor table entry, the method comprising:

[0067] S201: When forwarding a VXLAN message through OVS, determine a target neighbor entry;

[0068] Optionally, when the VXLAN message is forwarded by OVS and there is no target MAC address, determining the target neighbor entry includes:

[0069] When forwarding VXLAN packets through OVS, the corresponding neighbor table entry is searched by the next hop IP address;

[0070] If the corresponding neighbor table entry does not exist, create the target neighbor table entry and establish a cache queue in the target neighbor table entry;

[0071] In a case where the corresponding neighbor entry exists and the corresponding neighbor entry does not have a target MAC address, the corresponding neighbor entry is determined to be a target neighbor entry.

[0072] like Figure 3 As shown, a data structure of a neighbor table entry provided by an embodiment of the present invention is shown. The neighbor table entry may include an IP address, a MAC address, a state flag of the neighbor table entry and a cache queue, and the cache queue is used to cache data.

[0073] Specifically, OVS uses a three-layer forwarding method when forwarding VXLAN packets, so it is necessary to obtain the corresponding MAC address from the neighbor table entry cached by OVS using the next hop IP address as the index. If the corresponding neighbor table entry is not found, it is necessary to create a neighbor table entry with the next IP as the index, and create a cache queue belonging to the table entry, and store the message in the cache queue; if the neighbor table entry is found, but the MAC address is not recorded in the table entry, the message to be sent also needs to be stored in the cache queue.

[0074] S202: Storing the VXLAN message in a cache queue in the target neighbor table entry;

[0075] Optionally, storing the VXLAN message in a cache queue in the target neighbor table entry includes:

[0076] When the cache queue of the target neighbor entry is full, the message with the earliest cache time is discarded, and the VXLAN message is stored in the cache queue.

[0077] Messages enter and exit the queue according to the principle of "first in, first out". If the cache queue is full, the oldest message needs to be removed from the queue and discarded. Then new messages can be cached in the queue. Specifically, Figure 4 As shown, the cache queue in the target neighbor table entry stores p1, p2...p3, p1, p1 in the order of storage time. At this time, the cache queue space is full. When pn is stored in the cache queue, the first stored p1 is discarded. At this time, the cache queue has new space to accommodate new data, and pn can be stored in the cache queue.

[0078] S203: construct an ARP request or NS message to obtain the target MAC address and target IP address;

[0079] Specifically, construct and send an ARP request or NS message to request the MAC address of the next hop. When OVS receives the ARP reply message or NA message, it extracts the source MAC and source IP. Use the IP as the index to search the OVS neighbor table entry.

[0080] S204: Searching for the target neighbor entry according to the target IP address, and updating the target MAC address into the target neighbor entry;

[0081] Specifically, after searching the OVS neighbor table entry using the IP as the index, the MAC address in the neighbor table entry is updated.

[0082] S205: Searching the MAC address in the target neighbor table entry through the OVS to forward the VXLAN message.

[0083] Specifically, when OVS subsequently forwards VXLAN packets, it can find the MAC address of the next hop through the neighbor table entry and forward the VXLAN packets correctly.

[0084] The embodiment of the present invention provides a method for forwarding VXLAN messages based on the neighbor table of OVS, the method comprising: in the case of forwarding VXLAN messages through OVS, determining the target neighbor table, storing the VXLAN message in the cache queue in the target neighbor table, constructing an ARP request or NS message to obtain the target MAC address and the target IP address, searching the target neighbor table according to the target IP address, and updating the target MAC address to the target neighbor table, searching the MAC address in the target neighbor table by the OVS to forward the VXLAN message. The embodiment of the present invention adds a cache queue in the neighbor table of OVS for caching the VXLAN message to be sent, so as to solve the problem that the OVSDPDK forwarding plane discards the current message when learning the neighbor table, and ensures that the virtual machines can communicate normally.

[0085] In a possible implementation manner, after creating the target neighbor entry when the corresponding neighbor entry does not exist, the method further includes:

[0086] S206: Setting the state of the target neighbor entry to a first state;

[0087] For example, when OVS creates a neighbor table entry, the entry status is idle.

[0088] After constructing the ARP request or NS message, the method further includes:

[0089] S207: Update the time of the target neighbor entry to the second state, and start a first timer to record the duration of the target neighbor entry being in the first state;

[0090] For example, when OVS constructs and sends an ARP request or NS message, the state of the entry is converted to nocomplete, and a timer is started to wait for a response message.

[0091] After constructing the ARP request or NS message to obtain the target MAC address and the target IP address, the method further includes:

[0092] S208: Update the time of the target neighbor entry to a third state, and start a second timer to record the duration of the target neighbor entry being in the third state;

[0093] For example, the state of the corresponding neighbor entry is set to complete, and the timeout period of the neighbor entry in the complete state is updated.

[0094] Optionally, after updating the time of the target neighbor entry to the second state and starting the first timer, the method further includes:

[0095] Waiting for a response message to the ARP request or NS message;

[0096] If the response message is not received, resending the ARP request or NS message;

[0097] When the response message is received, the target MAC address and the target IP address are obtained from the response message, and the time of the target neighbor table entry is updated to a third state.

[0098] After resending the ARP request or NS message when the response message is not received, the method further includes:

[0099] Optionally, when the number of times the ARP request or NS message is resent is greater than or equal to a target number of times, updating the time of the target neighbor table entry to a first state;

[0100] Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.

[0101] For example, when OVS constructs and sends an ARP request or NS message, the state of the entry is converted to nocomplete, and the timer is started to wait for the response message. If no response message is received in the nocomplete state, the request message is resent and the timer is restarted. The number of timeouts can be set according to the actual situation to prevent the impact of network jitter or network delay. For example, if it is set to three times, after retransmission three times in the nocomplete state, if no response message is received, the neighbor entry enters the first state. For example, in the idle state, since no response is received, the MAC address cannot be updated, the target neighbor entry cannot be used and therefore waits to be deleted.

[0102] If a response message is received in the nocomplete state, the neighbor entry enters the complete state, which indicates that the interaction has been completed.

[0103] Optionally, in the complete state, if no message hits the entry within a target time (such as within 15 minutes), the neighbor entry enters the idle state and waits to be deleted.

[0104] like Figure 5 As shown, three states (Idle, nocomplete and complete) of neighbor table entries and the conversion of the three states under different conditions are shown. First, a neighbor table entry is created and the neighbor table entry is set to the Idle state. After sending an ARP request or NS message, the Idle state is updated to the nocomplete state. At this time, if no reply message is received within 1 minute, the ARP request or NS message is resent. If no response is received after resending three times, the nocomplete state is updated to the Idle state to wait for deletion; if a reply message is received, the nocomplete state is updated to the complete state. After being updated to the complete state, if there is a message querying the neighbor table entry within 15 minutes, the interaction is completed. If no message uses the neighbor table entry within 15 minutes, the complete state is updated to the Idle state to wait for deletion. In an embodiment of the present invention, a state machine is introduced to control the state of the OVS neighbor table entry. The OVS neighbor table entry has different timeout durations in different states.

[0105] Embodiment 2

[0106] Reference Figure 6 , shows a schematic diagram of the structure of a VXLAN message forwarding device 60 based on an OVS neighbor table entry provided in an embodiment of the present invention, including:

[0107] A determination module 601 is used to determine a target neighbor entry when forwarding a VXLAN message through OVS;

[0108] A cache module 602, configured to store the VXLAN message in a cache queue in the target neighbor table entry;

[0109] A construction module 603 is used to construct an ARP request or an NS message to obtain the target MAC address and the target IP address;

[0110] An updating module 604 is used to search the target neighbor table entry according to the target IP address, and update the target MAC address into the target neighbor table entry;

[0111] The forwarding module 605 is used to search the MAC address in the target neighbor table entry through the OVS to forward the VXLAN message.

[0112] Optionally, the determining module 601 includes:

[0113] A search module 6011 is used to search for a corresponding neighbor entry by the next hop IP address when forwarding a VXLAN message through OVS;

[0114] A creation module 6012, configured to create the target neighbor entry if the corresponding neighbor entry does not exist, and to establish a cache queue in the target neighbor entry;

[0115] The determination submodule 6013 is configured to determine that the corresponding neighbor table entry is a target neighbor table entry if the corresponding neighbor table entry exists and the corresponding neighbor table entry does not contain the target MAC address.

[0116] Optionally, the VXLAN message forwarding device 60 based on the OVS neighbor table entry further includes:

[0117] A setting module 606, configured to set the state of the target neighbor entry to a first state;

[0118] A first updating module 607, configured to update the time of the target neighbor entry to a second state, and start a first timer to record the duration of the target neighbor entry being in the first state;

[0119] The second updating module 608 is configured to update the time of the target neighbor entry to a third state, and start a second timer to record the duration of the target neighbor entry being in the third state.

[0120] Optionally, the VXLAN message forwarding device 60 based on the OVS neighbor table entry further includes:

[0121] A waiting module 609 is used to wait for a response message to the ARP request or NS message;

[0122] The sending module 610 is used to resend the ARP request or NS message when the response message is not received;

[0123] The acquisition module 611 is used to acquire the target MAC address and the target IP address from the response message when the response message is received, and update the time of the target neighbor table entry to a third state.

[0124] Optionally, the VXLAN message forwarding device 60 based on the OVS neighbor table entry further includes:

[0125] A third updating module 612 is configured to update the time of the target neighbor entry to a first state when the number of times the ARP request or NS message is resent is greater than or equal to a target number of times;

[0126] Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.

[0127] The VXLAN message forwarding device 60 based on the OVS neighbor table provided in the embodiment of the present invention can implement each process implemented in the above method embodiment. To avoid repetition, it will not be repeated here.

[0128] In an embodiment of the present invention, a determination module is used to determine a target neighbor table entry when forwarding a VXLAN message through OVS, a cache module is used to store the VXLAN message in a cache queue in the target neighbor table entry, a construction module is used to construct an ARP request or NS message to obtain the target MAC address and the target IP address, an update module is used to search for the target neighbor table entry according to the target IP address, and update the target MAC address to the target neighbor table entry, and a forwarding module is used to search for the MAC address in the target neighbor table entry through the OVS to forward the VXLAN message. The embodiment of the present invention adds a cache queue to the neighbor table entry of OVS for caching VXLAN messages to be sent, so as to solve the problem that the OVSDPDK forwarding plane discards the current message when learning the neighbor table entry, and ensures that the virtual machines can communicate normally.

[0129] The virtual system in the embodiment of the present invention may be a device, or a component, an integrated circuit, or a chip in a terminal.

[0130] In addition, it should be noted that the device embodiments described above are merely illustrative and do not limit the scope of protection of the present invention. In practical applications, technicians in this field can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment, and no restrictions are made here.

[0131] In addition, for technical details not fully described in this embodiment, reference can be made to the intelligent cognition method and system provided in any embodiment of the present invention, and they will not be repeated here.

[0132] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for forwarding VXLAN packets based on OVS neighbor table entries, characterized in that: The method comprises: When forwarding VXLAN packets through OVS, determine the target neighbor entry; Storing the VXLAN message in a cache queue in the target neighbor table entry; Construct an ARP request or NS message to obtain the target MAC address and target IP address; Search the target neighbor table entry according to the target IP address, and update the target MAC address to the target neighbor table entry; Searching the MAC address in the target neighbor table entry by the OVS to forward the VXLAN message; Wherein, when the VXLAN message is forwarded by OVS and there is no target MAC address, determining the target neighbor table entry includes: When forwarding VXLAN packets through OVS, the corresponding neighbor table entry is searched by the next hop IP address; If the corresponding neighbor table entry does not exist, create the target neighbor table entry and establish a cache queue in the target neighbor table entry; If the corresponding neighbor table entry exists and the corresponding neighbor table entry does not have a target MAC address, determine that the corresponding neighbor table entry is a target neighbor table entry; Wherein, after creating the target neighbor entry when the corresponding neighbor entry does not exist, the method further includes: Setting the state of the target neighbor entry to a first state; After constructing the ARP request or NS message, the method further includes: Updating the time of the target neighbor entry to a second state, and starting a first timer to record the duration of the target neighbor entry being in the second state; After constructing the ARP request or NS message to obtain the target MAC address and the target IP address, the method further includes: The time of the target neighbor entry is updated to a third state, and a second timer is started to record the duration of the target neighbor entry being in the third state.

2. The forwarding method according to claim 1, characterized in that: After updating the time of the target neighbor entry to the second state and starting the first timer, the method further includes: Waiting for a response message to the ARP request or NS message; If the response message is not received, resending the ARP request or NS message; When the response message is received, the target MAC address and the target IP address are obtained from the response message, and the time of the target neighbor table entry is updated to a third state.

3. The forwarding method according to claim 2, characterized in that: After resending the ARP request or NS message when the response message is not received, the method further includes: When the number of times the ARP request or NS message is resent is greater than or equal to the target number of times, updating the time of the target neighbor table entry to the first state; Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.

4. A VXLAN message forwarding device based on an OVS neighbor table entry, characterized in that: include: A determination module, used to determine a target neighbor entry when forwarding a VXLAN message through OVS; A cache module, used to store the VXLAN message in a cache queue in the target neighbor table entry; A construction module, used to construct an ARP request or NS message to obtain a target MAC address and a target IP address; An updating module, configured to search the target neighbor table entry according to the target IP address, and update the target MAC address into the target neighbor table entry; A forwarding module, configured to search the MAC address in the target neighbor table entry through the OVS to forward the VXLAN message; Wherein, the determination module includes: The lookup module is used to look up the corresponding neighbor table entry by the next hop IP address when forwarding VXLAN packets through OVS; A creation module, used for creating the target neighbor table entry and establishing a cache queue in the target neighbor table entry when the corresponding neighbor table entry does not exist; A determination submodule, configured to determine that the corresponding neighbor table entry is a target neighbor table entry when the corresponding neighbor table entry exists and the corresponding neighbor table entry does not have a target MAC address; Also includes: A setting module, used to set the state of the target neighbor table entry to a first state; A first updating module, configured to update the time of the target neighbor entry to a second state, and start a first timer to record the duration of the target neighbor entry being in the second state; The second updating module is used to update the time of the target neighbor entry to a third state, and start a second timer to record the duration of the target neighbor entry being in the third state.

5. The forwarding device according to claim 4, characterized in that: Also includes: A waiting module, used for waiting for a response message to the ARP request or NS message; A sending module, configured to resend the ARP request or NS message if the response message is not received; The acquisition module is used to acquire the target MAC address and the target IP address from the response message when the response message is received, and update the time of the target neighbor table entry to a third state.

6. The forwarding device according to claim 5, characterized in that: Also includes: A third updating module, configured to update the time of the target neighbor table entry to a first state when the number of times the ARP request or NS message is resent is greater than or equal to a target number of times; Wherein, when the target neighbor entry is in the first state, the target neighbor entry is in a state of waiting to be deleted.