CN106230667A - VTEP keep-alive detection method and device - Google Patents

VTEP keep-alive detection method and device Download PDF

Info

Publication number
CN106230667A
CN106230667A CN201610870956.6A CN201610870956A CN106230667A CN 106230667 A CN106230667 A CN 106230667A CN 201610870956 A CN201610870956 A CN 201610870956A CN 106230667 A CN106230667 A CN 106230667A
Authority
CN
China
Prior art keywords
vtep
information table
keep
vxlan
survival
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.)
Granted
Application number
CN201610870956.6A
Other languages
Chinese (zh)
Other versions
CN106230667B (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201610870956.6A priority Critical patent/CN106230667B/en
Publication of CN106230667A publication Critical patent/CN106230667A/en
Application granted granted Critical
Publication of CN106230667B publication Critical patent/CN106230667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of VTEP keep-alive detection method and device, the method comprises determining that the role of VTEP;If keep-alive detects from machine; the probe requests thereby of the device identification carrying VTEP is then sent to keep-alive detection main frame; if receiving the response detected carrying survival VTEP information table that keep-alive detection main frame returns in first sets duration, then update the connection status in the VXLAN tunnel between first other VTEP in VXLAN network according to survival VTEP information table;If keep-alive detection main frame, then whether the VTEP that the device identification in monitoring survival VTEP information table is corresponding lost efficacy, and deletes the device identification of inefficacy VTEP, and closes the VXLAN tunnel between inefficacy VTEP;Receive the probe requests thereby of the device identification carrying second other VTEP that second other VTEP in VXLAN network send, device identification according to second other VTEP update survival VTEP information table and and second other VTEP between the connection status in VXLAN tunnel, send response detected to second other VTEP.The program realizes the VTEP in VXLAN network is carried out keep-alive detection.

Description

VTEP keep-alive detection method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a virtual extensible Local Area Network Tunnel End (VTEP) keep-alive.
Background
A Virtual eXtensible Local Area Network (VXLAN) is an Overlay Network technology established on an Internet Protocol (IP) Network, and is encapsulated by using a Media Access Control (MAC) in User Datagram Protocol (UDP) method, that is, a common ethernet message is encapsulated in a UDP message, and the common ethernet message is transmitted as UDP data. VXLAN networks have VXLAN Network Identifiers (VNIs) as unique identifiers, and terminals of VXLAN networks of different VNIs cannot communicate directly, requiring VXLAN gateway routing.
Fig. 1 shows an architecture diagram of a VXLAN network, which includes terminals (e.g., virtual machines, servers, etc.), local network devices within the domain (e.g., network devices within Site a), VTEP, and IP networks. The VTEP is an edge device of the VXLAN network, is connected with the physical network, is distributed with an IP address of the physical network, and is used for encapsulating and decapsulating VXLAN messages.
The VXLAN standard defines in RFC7348 that information for forming the VXLAN control plane through source address learning of the data plane is specified. For example, in the VXLAN network shown in fig. 1, after receiving an Address Resolution Protocol (ARP) request message sent by a terminal a, a VTEP a encapsulates the ARP request message into a multicast VXLAN message and forwards the multicast VXLAN message to VTEP B and VTEP C, and VTEP B and VTEP C perform address learning (VNI, MAC address of terminal a, IP address of VTEP a) when decapsulating the ARP request message, and if terminal B sends an ARP reply message to terminal a, VTEP a may also perform address learning (VNI, MAC address of terminal B, IP address of VTEP B) when decapsulating the ARP reply message, and if there is data transmission between subsequent terminals a and B, the addresses learned by VTEP a and VTEP B may be used as forwarding entries for forwarding subsequent messages.
In the process of forwarding the message, if the VTEP B fails, the message sent by the terminal B cannot be responded, and because a forwarding table entry (VNI, MAC address of the terminal B, and IP address of the VTEP B) still exists on the VTEP a, the VTEP a will continue to encapsulate the message sent by the terminal a to the terminal B, but the terminal B cannot receive the forwarding table entry, so that a black hole phenomenon occurs, and forwarding resources and link bandwidth of the VTEP a are wasted. Therefore, a method for performing keep-alive detection on a VTEP in a VXLAN network is needed to further avoid the black hole phenomenon and save the forwarding resources and link bandwidth of the VTEP.
Disclosure of Invention
The embodiment of the invention provides a method and a device for VTEP keep-alive detection, which are used for realizing the keep-alive detection of VTEP in a VXLAN network.
According to an embodiment of the present invention, there is provided a VTEP keep-alive detection method applied to each VTEP included in a VXLAN network, the method including:
determining the role of the VTEP in the VXLAN network, wherein the role is a keep-alive detection slave or a keep-alive detection master;
if the role in the VXLAN network is a keep-alive detection slave, sending a probe request carrying the equipment identifier of the VTEP to the keep-alive detection master in a set period, and if a probe response carrying a survival VTEP information table returned by the keep-alive detection master is received within a first set time length, updating the connection state of the VXLAN tunnel between the VXLAN tunnel and the first other VTEP in the VXLAN network according to the survival VTEP information table, wherein the equipment identifier of the survival VTEP in the VXLAN network is stored in the survival VTEP information table;
if the role in the VXLAN network is a keep-alive detection host, monitoring whether the VTEP corresponding to the equipment identifier in the survival VTEP information table is invalid, deleting the equipment identifier of the invalid VTEP in the survival VTEP information table, and closing a VXLAN tunnel between the VTEP and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the device identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the device identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
Specifically, determining the role of the VTEP in the VXLAN network specifically includes:
acquiring a whole network configuration information table of the VXLAN network;
searching a table item comprising the equipment identifier of the VTEP in the whole network configuration information table;
and taking the role included in the table entry as the role of the VTEP in the VXLAN network.
Optionally, the method further includes:
if the detection response with the survival VTEP information table returned by the keep-alive detection host is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or,
and initiating the auto-negotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result.
Specifically, updating the connection state of the VXLAN tunnel between the VXLAN tunnel and the first other VTEP in the VXLAN network according to the live VTEP information table specifically includes:
closing all VXLAN tunnels of the VTEP;
and opening a VXLAN tunnel between VTEPs corresponding to the equipment identifications in the survival VTEP information table.
Specifically, monitoring whether a VTEP corresponding to the device identifier in the VTEP information table that survives fails includes:
monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length;
the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
Specifically, updating the survival VTEP information table and the connection state of the VXLAN tunnel with the second other VTEP according to the device identifier of the second other VTEP specifically includes:
determining whether the device identification of the second other VTEP is stored in the surviving VTEP information table;
and if the device identification of the second other VTEP is not stored in the survival VTEP information table, storing the device identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP and the device identification of the second other VTEP.
According to an embodiment of the present invention, there is further provided a VTEP keep-alive detection apparatus, which is applied to each VTEP included in a VXLAN network, and includes:
a determining module, configured to determine a role of the VTEP in the VXLAN network, where the role is a keep-alive detection slave or a keep-alive detection master;
a first detection module, configured to send a probe request carrying a device identifier of the VTEP to the keep-alive detection master in a set period if a role in the VXLAN network is a keep-alive detection slave, and update a connection state of a VXLAN tunnel between the keep-alive detection master and a first other VTEP in the VXLAN network according to a live VTEP information table if a probe response carrying the live VTEP information table returned by the keep-alive detection master is received within a first set time period, where the device identifier of the live VTEP in the VXLAN network is stored in the live VTEP information table;
a second detection module, configured to monitor whether a VTEP corresponding to the device identifier in the VTEP alive information table is invalid if the role in the VXLAN network is a keep-alive detection host, delete the device identifier of the invalid VTEP in the VTEP alive information table, and close a VXLAN tunnel between the VTEP alive and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the device identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the device identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
Specifically, the determining module is specifically configured to:
acquiring a whole network configuration information table of the VXLAN network;
searching a table item comprising the equipment identifier of the VTEP in the whole network configuration information table;
and taking the role included in the table entry as the role of the VTEP in the VXLAN network.
Optionally, the first detecting module is further configured to:
if the detection response with the survival VTEP information table returned by the keep-alive detection host is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or,
and initiating the auto-negotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result.
Specifically, the first detection module is specifically configured to:
closing all VXLAN tunnels of the VTEP;
and opening a VXLAN tunnel between VTEPs corresponding to the equipment identifications in the survival VTEP information table.
Specifically, the second detection module is specifically configured to:
monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length;
the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
Specifically, the second detection module is specifically configured to:
determining whether the device identification of the second other VTEP is stored in the surviving VTEP information table;
and if the device identification of the second other VTEP is not stored in the survival VTEP information table, storing the device identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP and the device identification of the second other VTEP.
The invention has the following beneficial effects:
the embodiment of the invention provides a VTEP keep-alive detection method and a device, which are used for determining the role of the VTEP in a VXLAN network, wherein the role is a keep-alive detection slave or a keep-alive detection master; if the role in the VXLAN network is a keep-alive detection slave, sending a probe request carrying the equipment identifier of the VTEP to the keep-alive detection master in a set period, and if a probe response carrying a survival VTEP information table returned by the keep-alive detection master is received within a first set time length, updating the connection state of the VXLAN tunnel between the VXLAN tunnel and the first other VTEP in the VXLAN network according to the survival VTEP information table, wherein the equipment identifier of the survival VTEP in the VXLAN network is stored in the survival VTEP information table; if the role in the VXLAN network is a keep-alive detection host, monitoring whether the VTEP corresponding to the equipment identifier in the survival VTEP information table is invalid, deleting the equipment identifier of the invalid VTEP in the survival VTEP information table, and closing a VXLAN tunnel between the VTEP and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the device identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the device identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP. In the scheme, the keep-alive detection slave machines report the survival state to the keep-alive detection master machine by sending the detection request, the keep-alive detection master machine can acquire and monitor the survival VTEP in the VXLAN network, and the equipment identification of the survival VTEP is stored in the information table of the survival VTEP and is synchronously sent to all the keep-alive detection slave machines, so that the keep-alive detection of the VTEP in the VXLAN network is realized, the black hole phenomenon is further avoided, and the forwarding resource and the link bandwidth of the VTEP are saved.
Drawings
Fig. 1 is an architecture diagram of a VXLAN network in the prior art;
FIG. 2 is a flowchart of a VTEP keep-alive detection method in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a VTEP keep-alive detection device in an embodiment of the present invention.
Detailed Description
In order to implement keep-alive detection on VTEPs in a VXLAN network, an embodiment of the present invention provides a VTEP keep-alive detection method, which is applied to each VTEP included in the VXLAN network, and an architecture diagram of the VXLAN network is shown in fig. 1. The flow of the method of the invention is shown in fig. 2, and the execution steps are as follows:
s21: the process begins.
S22: determining the role of the VTEP in the VXLAN network, and if the role in the VXLAN network is a keep-alive detection slave, executing S23; if the role in the VXLAN network is keep-alive detection master, S24 is performed.
The role of the VTEP in the VXLAN network can be a keep-alive detection slave or a keep-alive detection master, and when performing VTEP keep-alive detection, the role in the VXLAN network needs to be determined first.
S23: and sending a detection request carrying the equipment identifier of the VTEP to the keep-alive detection host machine in a set period, and if a detection response carrying a survival VTEP information table returned by the keep-alive detection host machine is received within a first set time length, updating the connection state of the VXLAN tunnel between the VXLAN and the first other VTEP in the VXLAN network according to the survival VTEP information table.
If the detection response which is returned by the keep-alive detection host and carries the survival VTEP information table is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or initiating the auto-negotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result. If the detection response carrying the survival VTEP information table returned by the keep-alive detection host is not received within the set time length, the keep-alive detection host is invalid, at this time, the manager can appoint the keep-alive detection host again, and the other keep-alive detection slaves can also negotiate out the keep-alive detection host by the VTEP independently; in both of these approaches, the entire network configuration information table of the VXLAN network needs to be updated.
The setting period may be set according to actual needs, for example, may be set to 1 second, 2 seconds, 5 seconds, and the like; the survival VTEP information table stores the device identification of the survival VTEP in the VXLAN network; the configuration information table of the whole network stores the configuration information of the VTEP in the whole VXLAN network, including the information of the role of the VTEP, the equipment identification, the VXLAN tunnel establishment object and the like; the first set time period may be set according to actual needs, and may be set to 1 second, 2 seconds, 5 seconds, 10 seconds, or the like, for example.
S24: monitoring whether the VTEP corresponding to the equipment identifier in the survival VTEP information table is invalid or not, deleting the equipment identifier of the invalid VTEP in the survival VTEP information table, and closing a VXLAN tunnel between the VTEP and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the equipment identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the equipment identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
In the scheme, the keep-alive detection slave machines report the survival state to the keep-alive detection master machine by sending the detection request, the keep-alive detection master machine can acquire and monitor the survival VTEP in the VXLAN network, and the equipment identification of the survival VTEP is stored in the information table of the survival VTEP and is synchronously sent to all the keep-alive detection slave machines, so that the keep-alive detection of the VTEP in the VXLAN network is realized, the black hole phenomenon is further avoided, and the forwarding resource and the link bandwidth of the VTEP are saved.
The following describes each step in the VTEP keep-alive detection method in detail.
Specifically, the implementation process of determining the role of the VTEP in the VXLAN network in S22 specifically includes: acquiring a whole network configuration information table of the VXLAN network; searching a table item comprising a VTEP device identifier in a whole network configuration information table; the role included in the entry is taken as the role of VTEP in VXLAN networks.
Since the configuration information table of the entire network includes information such as the role of the VTEP, the device identifier, and the VXLAN tunnel establishment object, the role of the VTEP in the VXLAN can be obtained in the configuration information table of the entire network.
Specifically, the implementation process of updating the connection state of the VXLAN tunnel with the first other VTEP in the VXLAN network according to the live VTEP information table in S23 specifically includes: closing all VXLAN tunnels of the VTEP; and opening a VXLAN tunnel between the VTEPs corresponding to the equipment identifications in the survival VTEP information table.
Here, only one update method is described, and many other methods are possible, for example, the connection state of the VXLAN tunnel between VTEPs corresponding to each device identifier included in the live VTEP information table may be checked one by one, and the connection state may be turned off again, or may be turned on again, or may be kept on. It should be noted that, a characteristic of the VXLAN network is that VXLAN tunnels are to be established between two VTEPs, so that the communication state with the first other VTEP can be controlled by closing or opening VXLAN tunnels according to the survival VTEP information table, and when the device identifier of a certain VTEP is stored in the survival VTEP information table, it indicates that a certain VTEP is alive, so that VXLAN tunnels with a certain VTEP are opened; when the device identifier of a certain VTEP is not stored in the information table of the alive VTEP, the certain VTEP is invalid, and therefore a VXLAN tunnel between the certain VTEP and the certain VTEP needs to be closed.
Specifically, the implementation process of monitoring whether the VTEP corresponding to the device identifier in the VTEP information table for survival in S24 is invalid includes: monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length; the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
The states of all the keep-alive detection slave machines can be monitored more accurately through the process. The second set time period may be set according to actual needs, and may be set to 1 second, 2 seconds, 5 seconds, or the like, for example.
Specifically, the updating of the VTEP information table for survival and the connection status of the VXLAN tunnel with the second other VTEP according to the device identifier of the second other VTEP in S24 specifically includes: determining whether the device identification of the second other VTEP is stored in the survival VTEP information table; and if the equipment identification of the second other VTEP is not stored in the survival VTEP information table, storing the equipment identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP.
The states of all the keep-alive detection slave machines can be accurately monitored and recorded through the process.
Based on the same inventive concept, an embodiment of the present invention provides a VTEP keep-alive detection apparatus, which is applied to each VTEP included in a VXLAN network, and the apparatus structure is shown in fig. 3, and includes:
a determining module 31, configured to determine a role of the VTEP in the VXLAN network, where the role is a keep-alive detection slave or a keep-alive detection master;
a first detection module 32, configured to send a probe request carrying a device identifier of a VTEP to a keep-alive detection master at a set period if a role in the VXLAN network is a keep-alive detection slave, and update a connection state of a VXLAN tunnel between the keep-alive detection master and a first other VTEP in the VXLAN network according to a live VTEP information table if a probe response carrying the live VTEP information table returned by the keep-alive detection master is received within a first set time period, where the device identifier of the live VTEP in the VXLAN network is stored in the live VTEP information table;
a second detection module 33, configured to monitor whether a VTEP corresponding to the device identifier in the VTEP information table that survives is invalid if the role in the VXLAN network is the keep-alive detection host, delete the device identifier of the invalid VTEP in the VTEP information table that survives, and close the VXLAN tunnel between the VTEP and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the equipment identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the equipment identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
In the scheme, the keep-alive detection slave machines report the survival state to the keep-alive detection master machine by sending the detection request, the keep-alive detection master machine can acquire and monitor the survival VTEP in the VXLAN network, and the equipment identification of the survival VTEP is stored in the information table of the survival VTEP and is synchronously sent to all the keep-alive detection slave machines, so that the keep-alive detection of the VTEP in the VXLAN network is realized, the black hole phenomenon is further avoided, and the forwarding resource and the link bandwidth of the VTEP are saved.
Specifically, the determining module 31 is specifically configured to:
acquiring a whole network configuration information table of the VXLAN network;
searching a table item comprising a VTEP device identifier in a whole network configuration information table;
the role included in the entry is taken as the role of VTEP in VXLAN networks.
Optionally, the first detecting module 32 is further configured to:
if the detection response which is returned by the keep-alive detection host and carries the survival VTEP information table is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or,
and initiating the autonegotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result.
Specifically, the first detection module 32 is specifically configured to:
closing all VXLAN tunnels of the VTEP;
and opening a VXLAN tunnel between the VTEPs corresponding to the equipment identifications in the survival VTEP information table.
Specifically, the second detecting module 33 is specifically configured to:
monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length;
the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
Specifically, the second detecting module 33 is specifically configured to:
determining whether the device identification of the second other VTEP is stored in the survival VTEP information table;
and if the equipment identification of the second other VTEP is not stored in the survival VTEP information table, storing the equipment identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A virtual extensible local area network (VXLAN) tunnel termination (VTEP) keep-alive detection method is applied to each VTEP in a VXLAN network, and is characterized by comprising the following steps:
determining the role of the VTEP in the VXLAN network, wherein the role is a keep-alive detection slave or a keep-alive detection master;
if the role in the VXLAN network is a keep-alive detection slave, sending a probe request carrying the equipment identifier of the VTEP to the keep-alive detection master in a set period, and if a probe response carrying a survival VTEP information table returned by the keep-alive detection master is received within a first set time length, updating the connection state of the VXLAN tunnel between the VXLAN tunnel and the first other VTEP in the VXLAN network according to the survival VTEP information table, wherein the equipment identifier of the survival VTEP in the VXLAN network is stored in the survival VTEP information table;
if the role in the VXLAN network is a keep-alive detection host, monitoring whether the VTEP corresponding to the equipment identifier in the survival VTEP information table is invalid, deleting the equipment identifier of the invalid VTEP in the survival VTEP information table, and closing a VXLAN tunnel between the VTEP and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the device identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the device identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
2. The method of claim 1, wherein determining the role of the VTEP in the VXLAN network comprises:
acquiring a whole network configuration information table of the VXLAN network;
searching a table item comprising the equipment identifier of the VTEP in the whole network configuration information table;
and taking the role included in the table entry as the role of the VTEP in the VXLAN network.
3. The method of claim 1, further comprising:
if the detection response with the survival VTEP information table returned by the keep-alive detection host is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or,
and initiating the auto-negotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result.
4. The method according to claim 1, wherein updating the connection status of the VXLAN tunnel with the first other VTEP in the VXLAN network according to the surviving VTEP information table comprises:
closing all VXLAN tunnels of the VTEP;
and opening a VXLAN tunnel between VTEPs corresponding to the equipment identifications in the survival VTEP information table.
5. The method according to claim 1, wherein monitoring whether the VTEP corresponding to the device identifier in the VTEP alive information table is failed specifically comprises:
monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length;
the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
6. The method according to any one of claims 1 to 5, wherein updating the surviving VTEP information table and the connection status of the VXLAN tunnel with the second other VTEP according to the device identity of the second other VTEP comprises:
determining whether the device identification of the second other VTEP is stored in the surviving VTEP information table;
and if the device identification of the second other VTEP is not stored in the survival VTEP information table, storing the device identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP and the device identification of the second other VTEP.
7. A VTEP keep-alive detection apparatus for use in each VTEP included in a VXLAN network, the apparatus comprising:
a determining module, configured to determine a role of the VTEP in the VXLAN network, where the role is a keep-alive detection slave or a keep-alive detection master;
a first detection module, configured to send a probe request carrying a device identifier of the VTEP to the keep-alive detection master in a set period if a role in the VXLAN network is a keep-alive detection slave, and update a connection state of a VXLAN tunnel between the keep-alive detection master and a first other VTEP in the VXLAN network according to a live VTEP information table if a probe response carrying the live VTEP information table returned by the keep-alive detection master is received within a first set time period, where the device identifier of the live VTEP in the VXLAN network is stored in the live VTEP information table;
a second detection module, configured to monitor whether a VTEP corresponding to the device identifier in the VTEP alive information table is invalid if the role in the VXLAN network is a keep-alive detection host, delete the device identifier of the invalid VTEP in the VTEP alive information table, and close a VXLAN tunnel between the VTEP alive and the invalid VTEP; and receiving a probe request which is sent by a second other VTEP in the VXLAN network and carries the device identification of the second other VTEP, updating the survival VTEP information table and the connection state of the VXLAN tunnel between the second other VTEP according to the device identification of the second other VTEP, and sending a probe response which carries the survival VTEP information table to the second other VTEP.
8. The apparatus of claim 7, wherein the determination module is specifically configured to:
acquiring a whole network configuration information table of the VXLAN network;
searching a table item comprising the equipment identifier of the VTEP in the whole network configuration information table;
and taking the role included in the table entry as the role of the VTEP in the VXLAN network.
9. The apparatus of claim 7, wherein the first detection module is further configured to:
if the detection response with the survival VTEP information table returned by the keep-alive detection host is not received within the set time length, sending out a keep-alive detection host alarm to prompt an administrator to appoint the keep-alive detection host again and update the whole network configuration information table of the VXLAN network; or,
and initiating the auto-negotiation of the keep-alive detection host, renegotiating the keep-alive detection host with the third other VTEP in the VXLAN network, and updating the whole network configuration information table of the VXLAN network according to the negotiation result.
10. The apparatus of claim 7, wherein the first detection module is specifically configured to:
closing all VXLAN tunnels of the VTEP;
and opening a VXLAN tunnel between VTEPs corresponding to the equipment identifications in the survival VTEP information table.
11. The apparatus of claim 7, wherein the second detection module is specifically configured to:
monitoring whether a detection request sent by a VTEP corresponding to the equipment identifier included in the survival VTEP information table is received within a second set time length;
the VTEP which sends the probe request is determined to be alive, and the VTEP which does not send the probe request is determined to be invalid.
12. The apparatus according to any one of claims 7 to 11, wherein the second detection module is specifically configured to:
determining whether the device identification of the second other VTEP is stored in the surviving VTEP information table;
and if the device identification of the second other VTEP is not stored in the survival VTEP information table, storing the device identification of the second other VTEP in the survival VTEP information table, and opening a VXLAN tunnel between the second other VTEP and the device identification of the second other VTEP.
CN201610870956.6A 2016-09-30 2016-09-30 VTEP keep-alive detection method and device Active CN106230667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610870956.6A CN106230667B (en) 2016-09-30 2016-09-30 VTEP keep-alive detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610870956.6A CN106230667B (en) 2016-09-30 2016-09-30 VTEP keep-alive detection method and device

Publications (2)

Publication Number Publication Date
CN106230667A true CN106230667A (en) 2016-12-14
CN106230667B CN106230667B (en) 2019-08-20

Family

ID=58076640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610870956.6A Active CN106230667B (en) 2016-09-30 2016-09-30 VTEP keep-alive detection method and device

Country Status (1)

Country Link
CN (1) CN106230667B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911696A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of keep Alive Packet transmission method and device
CN107547366A (en) * 2017-05-15 2018-01-05 新华三技术有限公司 A kind of message forwarding method and device
CN108616418A (en) * 2018-03-30 2018-10-02 新华三技术有限公司 Detect the method and device of failure
CN113347740A (en) * 2021-05-21 2021-09-03 中国联合网络通信集团有限公司 Sharing method, relay server and wireless access point

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647853A (en) * 2013-12-04 2014-03-19 华为技术有限公司 Method for sending ARP message in VxLAN, VTEP and VxLAN controller
CN104168140A (en) * 2014-08-14 2014-11-26 杭州华三通信技术有限公司 VTEP abnormal condition processing method and device
US20150229724A1 (en) * 2014-02-10 2015-08-13 Brocade Communications Systems, Inc. Virtual extensible lan tunnel keepalives
CN105391612A (en) * 2015-10-15 2016-03-09 北京星网锐捷网络技术有限公司 Virtual extensible local area network (VXLAN) tunnel end point (VTEP) adjacency learning method and VXLAN VTEP adjacency learning device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647853A (en) * 2013-12-04 2014-03-19 华为技术有限公司 Method for sending ARP message in VxLAN, VTEP and VxLAN controller
US20150229724A1 (en) * 2014-02-10 2015-08-13 Brocade Communications Systems, Inc. Virtual extensible lan tunnel keepalives
CN104168140A (en) * 2014-08-14 2014-11-26 杭州华三通信技术有限公司 VTEP abnormal condition processing method and device
CN105391612A (en) * 2015-10-15 2016-03-09 北京星网锐捷网络技术有限公司 Virtual extensible local area network (VXLAN) tunnel end point (VTEP) adjacency learning method and VXLAN VTEP adjacency learning device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911696A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of keep Alive Packet transmission method and device
CN106911696B (en) * 2017-02-28 2020-06-09 新华三技术有限公司 Keep-alive message transmission method and device
CN107547366A (en) * 2017-05-15 2018-01-05 新华三技术有限公司 A kind of message forwarding method and device
CN108616418A (en) * 2018-03-30 2018-10-02 新华三技术有限公司 Detect the method and device of failure
CN113347740A (en) * 2021-05-21 2021-09-03 中国联合网络通信集团有限公司 Sharing method, relay server and wireless access point

Also Published As

Publication number Publication date
CN106230667B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN107070691B (en) Cross-host communication method and system of Docker container
US10110714B2 (en) Methods for exchanging network management messages using UDP over HTTP protocol
US11075821B2 (en) Method and apparatus for managing field device based on cloud server
US9281955B2 (en) Interoperability of data plane based overlays and control plane based overlays in a network environment
US9264362B2 (en) Proxy address resolution protocol on a controller device
US20180048540A1 (en) Wireless terminal type identification method and system in router bridge networking mode
CN107547349B (en) Virtual machine migration method and device
CN106230667B (en) VTEP keep-alive detection method and device
US10263808B2 (en) Deployment of virtual extensible local area network
CN106130819B (en) The detection method and device of VTEP exception
US11411957B2 (en) Broker-coordinated selective sharing of data
US10097442B2 (en) Methods, systems, and computer readable media for receiving test configuration information
CN104219340A (en) ARP (Address Resolution Protocol) response proxy method and apparatus
CN109412925B (en) Forwarding table item updating method based on VTEP and VTEP
US20170289318A1 (en) Implementing logical endpoints in internet-enabled devices
WO2017219777A1 (en) Packet processing method and device
WO2017114128A1 (en) Method and device for processing packets
US10574797B2 (en) Method for configuring a device connected to a field bus
CN107547691B (en) Address resolution protocol message proxy method and device
CN104219240A (en) Host information learning method and host information learning device
US20150229513A1 (en) Systems and methods for efficient remote security panel configuration and management
US20170149663A1 (en) Control device, communication system, control method, and non-transitory recording medium
WO2015188706A1 (en) Data frame processing method, device and system
CN106210164A (en) A kind of IP address conflict processing method and processing device
US20170155680A1 (en) Inject probe transmission to determine network address conflict

Legal Events

Date Code Title Description
C06 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