Tunnel establishment method, communication system, communication device, medium and program product

By using the MQTT protocol during the VXLAN tunnel establishment process, the compatibility issue between devices that cannot support BGP EVPN and high-end devices was resolved, enabling the establishment of VXLAN tunnels and improving device compatibility and adaptability.

CN123164145APending Publication Date: 2026-11-24ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510666300.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, VTEP node devices that do not support BGP EVPN functionality have poor compatibility with high-end devices that support VXLAN and BGP EVPN functionality, making it impossible to establish VXLAN tunnels.

Method used

The Message Queuing Telemetry Transmission (MQTT) protocol is used to send a VXLAN tunnel establishment request message to the second communication device through the first communication device, and to receive a VXLAN tunnel establishment acceptance message in response, thus completing the establishment of the VXLAN tunnel. The lightweight nature of the MQTT protocol reduces the compatibility issues of the BGP EVPN protocol.

Benefits of technology

Even without compatibility with the BGP EVPN protocol, VXLAN tunnels were established, improving the compatibility of communication devices that cannot support BGP EVPN functionality and enhancing the adaptability and fault recovery capabilities of these devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164145A_ABST
    Figure CN123164145A_ABST
Patent Text Reader

Abstract

This application provides a tunnel establishment method, communication system, communication device, medium, and program product. During execution, the method involves a first communication device sending a VXLAN tunnel establishment request message to a second communication device based on the Message Queuing Telemetry Transmission (MQTT) protocol. In response to receiving a VXLAN tunnel establishment acceptance message from the second communication device based on the VXLAN tunnel establishment request message, the VXLAN tunnel establishment is completed. The VXLAN tunnel establishment acceptance message is sent by the second communication device based on the MQTT protocol. This application improves the compatibility of VXLAN tunneling technology with communication devices that do not support BGP EVPN functionality, thereby enabling communication devices that do not support BGP EVPN functionality to establish VXLAN tunnels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a tunnel establishment method, communication system, communication equipment, medium, and program product. Background Technology

[0002] In related technologies, the dynamic establishment and management of VXLAN tunnels are generally achieved by combining VXLAN and Border Gateway Protocol Ethernet Virtual Private Network (BGP EVPN). Network devices establish peer relationships using the BGP EVPN protocol, encapsulating their local VXLAN network identifier (VNI) and the IP address of the VXLAN tunnel endpoint (VTEP) in a BGP EVPN route and advertising it. Other devices, upon receiving this routing information, dynamically create VXLAN tunnels to the peer VTEP node, enabling cross-device communication.

[0003] However, to establish a VXLAN tunnel using the VXLAN tunnel endpoint protocol, both VTEP node devices need to support VXLAN and BGP EVPN functions. VTEP node devices that do not support BGP EVPN functions have poor compatibility and cannot establish VXLAN tunnels with high-end devices that support both VXLAN and BGP EVPN functions. Summary of the Invention

[0004] This application provides a tunnel establishment method, communication system, communication equipment, medium, and program product, aiming to improve the compatibility of VXLAN tunneling technology with low-end devices that cannot support BGP EVPN functions, so as to enable low-end devices with poor compatibility to establish VXLAN tunnels with high-end devices that support VXLAN and BGP EVPN functions.

[0005] In a first aspect, embodiments of this application provide a tunnel establishment method, comprising: sending a VXLAN tunnel establishment request message to a second communication device based on the Message Queuing Telemetry Transmission (MQTT) protocol; and completing the establishment of a VXLAN tunnel in response to receiving a VXLAN tunnel establishment acceptance message sent by the second communication device according to the VXLAN tunnel establishment request message, wherein the VXLAN tunnel establishment acceptance message is sent by the second communication device based on the MQTT protocol.

[0006] Secondly, embodiments of this application provide a tunnel establishment method, comprising: receiving a VXLAN tunnel establishment request message sent by a first communication device based on the MQTT protocol; in response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, sending the VXLAN tunnel establishment acceptance message to the first communication device based on the MQTT protocol, wherein the VXLAN tunnel establishment acceptance message is used by the first communication device to complete the establishment of the VXLAN tunnel.

[0007] Thirdly, embodiments of this application provide a communication system, including a first communication device and a second communication device; the first communication device is configured to send a VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol; the second communication device is configured to receive the VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol, and in response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, send the VXLAN tunnel establishment acceptance message to the first communication device based on the MQTT protocol; the first communication device is further configured to complete the establishment of a VXLAN tunnel in response to receiving the VXLAN tunnel establishment acceptance message.

[0008] Fourthly, embodiments of this application provide a communication device, including: one or more processors; and a memory storing one or more computer programs thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the method as described in the first or second aspect.

[0009] Fifthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first or second aspect.

[0010] Sixthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or computer instructions are stored in a computer-readable storage medium, and a processor of a communication device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the network device to perform the method as described in the first or second aspect.

[0011] This application provides a tunnel establishment method, communication system, communication device, medium, and program product. During the tunnel establishment method, a first communication device can send a VXLAN tunnel establishment request message to a second communication device based on the Message Queuing Telemetry Transmission (MQTT) protocol. In response to receiving a VXLAN tunnel establishment acceptance message sent by the second communication device according to the VXLAN tunnel establishment request message, the VXLAN tunnel establishment is completed. The VXLAN tunnel establishment acceptance message is sent by the second communication device based on the MQTT protocol. Since the MQTT protocol is a lightweight communication protocol, the first and / or second communication devices are more likely to be compatible with the MQTT protocol than with the BGP EVPN protocol. Thus, by sending the VXLAN tunnel establishment request message and receiving the VXLAN tunnel establishment acceptance message from the second communication device via the MQTT protocol, the first communication device can reduce the impact of BGP EVPN compatibility issues during the VXLAN tunnel establishment process. This enables VXLAN tunnel establishment even when the communication device is incompatible with the BGP EVPN protocol, improving the compatibility of VXLAN tunneling technology with communication devices that do not support BGP EVPN functionality. Attached Figure Description

[0012] Figure 1 This is a network topology diagram provided in an embodiment of this application; Figure 2 This is a schematic flowchart of a tunnel establishment method provided in one embodiment of this application; Figure 3 The first communication device provided in one embodiment of this application is based on Figure 1 The flowchart showing the interaction between the content and the second communication device; Figure 4 yes Figure 3 The interaction flowchart of the content within the MQTT protocol framework; Figure 5 This is a flowchart illustrating a tunnel establishment method provided in another embodiment of this application; Figure 6 yes Figure 5 The interaction flowchart of the content within the MQTT protocol framework; Figure 7 This is a flowchart illustrating a tunnel establishment method provided in another embodiment of this application; Figure 8 yes Figure 7 The interaction flowchart of the content within the MQTT protocol framework; Figure 9 This is a schematic flowchart of a tunnel establishment method provided in another embodiment of this application; Figure 10 yes Figure 9 The interaction flowchart of the content within the MQTT protocol framework; Figure 11 This is an interactive flowchart of the will mechanism provided in this application embodiment under the MQTT protocol framework; Figure 12 This is an interactive flowchart of the heartbeat keep-alive mechanism provided in this application embodiment under the MQTT protocol framework; Figures 13A to 13E This is an interaction diagram of the network management device provided in this application embodiment under the MQTT protocol framework; Figure 14 This is a schematic diagram of the overall process of the tunnel establishment method provided in the embodiments of this application; Figure 15 This is a schematic diagram of the structure of a communication system provided in one embodiment of this application; Figure 16 This is a schematic diagram of the hardware structure of a communication device provided in an embodiment of this application. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0014] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0015] In this application, the terms "furthermore," "exemplarily," or "optionally" are used as examples, illustrations, or descriptions and should not be construed as being more preferred or advantageous than other embodiments or designs. The use of terms such as "furthermore," "exemplarily," or "optionally" is intended to present the relevant concepts in a specific manner.

[0016] In related technologies, the dynamic establishment and management of VXLAN tunnels are generally achieved by combining VXLAN and BGP EVPN. However, to establish a VXLAN tunnel using the VXLAN tunnel endpoint protocol, both VTEP node devices need to support VXLAN and BGP EVPN functions. VTEP node devices that do not support BGP EVPN functions have poor compatibility and cannot establish VXLAN tunnels with high-end devices that support both VXLAN and BGP EVPN functions.

[0017] To improve the compatibility of VXLAN tunneling technology with low-end devices that do not support BGP EVPN functionality, and to enable low-end devices with poor compatibility to establish VXLAN tunnels with high-end devices that support both VXLAN and BGP EVPN, embodiments of this application provide a tunnel establishment method, a communication system, a communication device, a computer-readable storage medium, and a computer program product. During the execution of the tunnel establishment method, a first communication device can send a VXLAN tunnel establishment request message to a second communication device based on the Message Queuing Telemetry Transmission (MQTT) protocol. In response to receiving a VXLAN tunnel establishment acceptance message sent by the second communication device based on the VXLAN tunnel establishment request message, the establishment of the VXLAN tunnel is completed. The VXLAN tunnel establishment acceptance message is sent by the second communication device based on the MQTT protocol. Because MQTT is a lightweight communication protocol, the first and / or second communication devices are more likely to be compatible with MQTT than with BGP EVPN. Thus, when the first communication device sends a VXLAN tunnel establishment request message to the second communication device and receives a VXLAN tunnel establishment accept message from the second communication device via MQTT, the impact of BGP EVPN compatibility issues during the VXLAN tunnel establishment process can be reduced. This allows VXLAN tunnel establishment to be achieved even when the communication device is incompatible with BGP EVPN, improving the compatibility of VXLAN tunneling technology with communication devices that do not support BGP EVPN functionality.

[0018] See Figure 1 The network topology diagram shown is shown below. Figure 1 The device shown on the left is the VTEP node that connects to the downstream user equipment (in Figure 1 The device shown on the right is a VTEP node A, which is also the first communication device mentioned in the embodiments of this application. The device shown on the right is a VTEP node with VXLAN data offloading control function. Figure 1(Displayed as VTEP node B). It should be noted that this application embodiment involves information exchange via the MQTT protocol. Therefore, both VTEP node A and VTEP node B's respective communication devices integrate and deploy MQTT clients. Additionally, the communication device represented by VTEP node B (i.e., the second communication device, in...) Figure 1 The image shows a collection of VTEP node B and MQTT server MQTT-Broker. MQTT-Broker is also deployed. In this context, VTEP node A can be an edge gateway (Smart Edge, SE), and the second communication device can be a node engine (NE) device such as a Software Defined Networking (SDN) controller. The number of first communication devices can be one or more, and the specific number is not limited here.

[0019] See Figure 2 , Figure 2 The flowchart of a tunnel establishment method according to an embodiment of this application is shown. During the execution of the tunnel establishment method by a first communication device, the method may include the following steps: Step 100: Send a VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol; Step 200: In response to receiving a VXLAN tunnel establishment accept message from the second communication device based on the VXLAN tunnel establishment request message, the establishment of the VXLAN tunnel is completed. The VXLAN tunnel establishment accept message is sent by the second communication device based on the MQTT protocol.

[0020] In one embodiment, sending a VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol refers to the operation whereby the first communication device generates establishment request parameters according to its own configuration before establishing a VXLAN tunnel with the second communication device, and then publishes a topic message (i.e., a VXLAN tunnel establishment request message) requesting the establishment of a VXLAN tunnel based on the establishment request parameters. The VXLAN tunnel establishment request message (AccessReqMsg) is an MQTT topic message, which may specifically include the message topic of the VXLAN tunnel establishment request message, information indicating the message topic type to which the VXLAN tunnel establishment request message belongs (e.g., using a specific numerical value to represent the topic message type), the IP address and IP type of the first communication device (e.g., IPv4, IPv6, etc.), etc., etc., without further limitation here.

[0021] In one embodiment, the subject of the VXLAN tunnel establishment request message may be the same as or different from the subject of other MQTT topic messages published by the first communication device; no specific limitation is made here.

[0022] For example, the subject of a VXLAN tunnel establishment request message can be the same as the subject of the identity challenge response message, will message, and heartbeat protection message mentioned below. They are all combinations of uplink message + IP address. For example, the subject of the VXLAN tunnel establishment request message, identity challenge response message, will message, and heartbeat protection message is "VXLAN / UP / IP address".

[0023] For another example, the subject of a VXLAN tunnel establishment request message can be different from the subject of the identity challenge response message, will message, and heartbeat protection message mentioned below. It can be a combination of uplink message + message function + IP address. For example, the subject of a VXLAN tunnel establishment request message can be "VXLAN / UP / AccessReqMsg / IP address", the subject of an identity challenge response message can be "VXLAN / UP / ChallengeRspMsg / IP address", the subject of a will message can be "VXLAN / UP / LastWill / IP address", and the subject of a heartbeat protection message can be "VXLAN / UP / Hello / IP address".

[0024] In one embodiment, the configuration information required to establish a VXLAN tunnel is diverse, such as VNI mapping information. In this application, if a VXLAN tunnel is established only through a VXLAN tunnel establishment request message and a VXLAN tunnel establishment acceptance message, the establishment request parameters can include all the configuration information required to establish a VXLAN tunnel. If a VXLAN tunnel is established through a VXLAN tunnel establishment request message, a VXLAN tunnel establishment acceptance message, and other topic messages, then all the configuration information required to establish a VXLAN tunnel can be carried in batches through different topic messages published to the second communication device (for example, in the embodiment below which an authentication challenge mechanism is introduced, the configuration information required to establish a VXLAN tunnel can be carried through the authentication challenge message, while the establishment request parameters in the VXLAN tunnel establishment request message may not carry the configuration information required to establish a VXLAN tunnel, but only serve to trigger the tunnel establishment process).

[0025] In one embodiment, the VXLAN tunnel establishment acceptance message (AccessAcceptHandle) sent by the second communication device according to the VXLAN tunnel establishment request message refers to the operation whereby, after receiving the VXLAN tunnel establishment request message published by the first communication device, the second communication device sends the VXLAN tunnel establishment request message to its internal VTEP node. This instructs the VTEP node to configure a VXLAN tunnel according to its own radio resources and publish the VXLAN tunnel establishment acceptance message based on the generated VXLAN tunnel configuration information. The VTEP node then sends the VXLAN tunnel establishment acceptance message to the first communication device. The VXLAN tunnel establishment acceptance message is an MQTT topic message, which may specifically include the message topic of the VXLAN tunnel establishment acceptance message, the message topic type information, the IP address and IP type of the first communication device, etc., without further limitation here.

[0026] In one embodiment, the topic of the VXLAN tunnel establishment receiving message can be the same as or different from the topic of the MQTT topic message published by the second communication device described below; no specific limitation is made here.

[0027] For example, the subject of the VXLAN tunnel establishment acceptance message can be the same as the subject of the identity challenge authentication message, VXLAN tunnel establishment rejection message, and heartbeat response message mentioned below. They are all combinations of downlink message + IP address. For example, the subject of the VXLAN tunnel establishment acceptance message, identity challenge response message, VXLAN tunnel establishment rejection message, and heartbeat response message are all "VXLAN / down / IP address".

[0028] For another example, the subject of the VXLAN tunnel establishment acceptance message can be different from the subject of the identity challenge authentication message, VXLAN tunnel establishment rejection message, and heartbeat response message mentioned below. It can be a combination of downlink message + message function + IP address. For example, the subject of the VXLAN tunnel establishment acceptance message is "VXLAN / down / AccessAcceptHandle / IP address", the subject of the identity challenge authentication message is "VXLAN / down / ChallengeHandle / IP address", the subject of the VXLAN tunnel establishment rejection message is "VXLAN / down / AccessRejectHandle / IP address", and the subject of the heartbeat response message is "VXLAN / down / HelloAck / IP address".

[0029] In one embodiment, completing the establishment of a VXLAN tunnel refers to the operation of the first communication device saving the VXLAN tunnel configuration information carried in the VXLAN tunnel establishment acceptance message to form a VXLAN tunnel.

[0030] See Figure 3 From the perspective of the devices, the first communication device can send a VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol; the second communication device can receive the VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol, and in response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, send the VXLAN tunnel establishment acceptance message to the first communication device based on the MQTT protocol; the first communication device can complete the establishment of the VXLAN tunnel in response to receiving the VXLAN tunnel establishment acceptance message sent by the second communication device based on the VXLAN tunnel establishment request message.

[0031] See Figure 4 , Figure 4 It shows Figure 3 The content describes the interaction flow within the MQTT protocol framework. The first communication device is still represented as VTEP-A, and the VTEP node in the second communication device is represented as VTEP-B. Specifically, the second communication device integrates MQTT-Broker and VTEP nodes based on the MQTT protocol framework. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker based on the MQTT protocol. VTEP-A can subscribe to all messages published by VTEP-B for VTEP-A at the MQTT-Broker, and VTEP-B can subscribe to all VXLAN tunnel establishment request messages published by VTEP nodes at the MQTT-Broker. Therefore, when VTEP-A publishes a VXLAN tunnel establishment request message based on the MQTT protocol (in... Figure 4After receiving the VXLAN tunnel establishment request message (which may include configuration information required to establish a VXLAN tunnel), the MQTT-Broker will forward it to the subscriber VTEP-B. Upon receiving the message, VTEP-B will determine whether it can establish a VXLAN tunnel with VTEP-A based on its own situation and the required configuration information. If it determines that a VXLAN tunnel can be established, it can configure VXLAN tunnel resources for VTEP-A and generate VXLAN tunnel configuration information. Then, it will publish a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel configuration information. After receiving the VXLAN tunnel establishment acceptance message, the MQTT-Broker will forward it to the subscriber VTEP-A. VTEP-A will save the VXLAN tunnel configuration information carried in the VXLAN tunnel establishment acceptance message. At this point, the VXLAN tunnel between VTEP-A and VTEP-B is successfully established dynamically.

[0032] See Figure 5 , Figure 5 The flowchart of another embodiment of the tunnel establishment method of this application is shown. In one embodiment, Figure 5 The illustrated embodiment introduces a topic message authentication mechanism, which can be further elaborated in... Figure 3 Based on the steps shown, the following steps are presented: Receive the identity challenge authentication message sent by the second communication device based on the MQTT protocol according to the VXLAN tunnel establishment request message; Based on the identity challenge authentication message, an identity challenge response message is sent to the second communication device according to the MQTT protocol; Receive a VXLAN tunnel establishment accept message sent by the second communication device based on the MQTT protocol. The VXLAN tunnel establishment accept message is sent by the second communication device after successfully authenticating and verifying the identity challenge response message.

[0033] In one embodiment, the identity challenge authentication message (ChallengeHandle) sent by the second communication device based on the VXLAN tunnel establishment request message using the MQTT protocol refers to the second communication device generating identity authentication information based on the establishment request parameters contained in the VXLAN tunnel establishment request message after receiving it, and then generating a topic message based on the identity authentication information. The identity authentication information refers to the information used to authenticate the identity of the first communication device that initiated the VXLAN tunnel establishment request message. The identity authentication information may include challenge authentication value information generated by the second communication device, challenge authentication ID, etc., which are not specifically limited here. Furthermore, the challenge authentication value information can be randomly generated (i.e., generating random challenge authentication value information), or it can be generated based on the device identification information of the second communication device itself (i.e., generating challenge authentication hardware value information), etc., which are not specifically limited here. In addition, the identity challenge authentication message is an MQTT topic message, which, in addition to the aforementioned identity authentication information, may also include the message topic of the identity challenge authentication message, information indicating the message topic type to which the identity challenge authentication message belongs, the IP address and IP type of the first communication device, etc., which are not specifically limited here.

[0034] In one embodiment, sending an identity challenge response message to the second communication device based on the identity challenge authentication message and the MQTT protocol means that the first communication device generates its own identity authentication information based on the locally stored key and the identity authentication information in the identity challenge authentication message, and then generates and publishes an identity challenge response message based on the MQTT protocol based on the identity authentication information. The identity authentication information may include a challenge password, username, etc., which are not specifically limited here. The challenge password refers to the information obtained by the first communication device after encrypting the identity authentication information using the key. The specific content of the challenge password depends on the encryption method used in cooperation between the first and second communication devices. That is, the second communication device determines whether the first communication device has the identity to establish a VXLAN tunnel based on the encryption result of the information provided by the first communication device. The encryption method can be varied; for example, encrypting all content in the identity authentication information (such as encrypting the challenge authentication value and challenge authentication ID to obtain the challenge password), encrypting only part of the authentication information (such as encrypting only the challenge authentication value to obtain the challenge password), etc., are not specifically limited here. In addition, the identity challenge response message is an MQTT topic message. Besides identity authentication information, the identity challenge response message may also include the message topic of the identity challenge response message, information indicating the message topic type to which the identity challenge response message belongs, the IP address and IP type of the first communication device, etc., but the specifics are not limited here.

[0035] In one embodiment, the identity challenge response message may include, in addition to the information mentioned above, all the configuration information required to establish a VXLAN tunnel, or may include a portion of the configuration information required to establish a VXLAN tunnel, or may not include any configuration information required to establish a VXLAN tunnel. The specific details are not limited here, but depend on the topic messages that need to be interacted during the actual process of establishing a VXLAN tunnel based on the MQTT protocol.

[0036] In one embodiment, the second communication device sending a VXLAN tunnel establishment accept message after successfully authenticating the identity challenge response message means that the second communication device performs authentication verification based on the identity authentication information in the identity challenge response message, configures VXLAN tunnel resources for the first communication device based on its own radio resources after successful authentication verification, obtains VXLAN tunnel configuration information, generates a VXLAN tunnel establishment accept message based on the MQTT protocol based on the VXLAN tunnel configuration information, and sends it to the first communication device.

[0037] In one embodiment, during the authentication verification process based on the identity authentication information in the identity challenge response message, the second communication device can specifically perform user authentication based on the username and authentication of the challenge password based on its local key, obtaining an authentication verification result based on the two verification results. The method of verifying the challenge password based on the local key can be varied. For example, it can encrypt the identity authentication information previously sent to the first communication device using the local key and compare the encrypted result with the challenge password; or it can decrypt the challenge password using the local key and compare the decrypted result with the identity authentication information previously sent to the first communication device, etc., and is not specifically limited here. Furthermore, obtaining the authentication verification result based on the two verification results means that if both the user authentication result and the challenge password verification result are successful, the authentication verification result is determined to be successful; otherwise, the authentication verification result is determined to be unsuccessful.

[0038] By introducing an identity authentication challenge mechanism during the VXLAN tunnel establishment process, the second communication device can perform secure authentication on the first communication device that is accessing the tunnel. Compared with the process of establishing a VXLAN tunnel based on BGP sessions, this makes the VXLAN tunnel establishment process more secure, thereby enabling the second communication device to have the ability to securely restrict the first communication device that is dynamically accessing the tunnel, which helps to improve communication security.

[0039] See Figure 6 , Figure 6 It shows Figure 5The content describes the interaction flow within the MQTT protocol framework. The first communication device is still represented as VTEP-A, and the VTEP node in the second communication device is still represented as VTEP-B. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker. VTEP-A can subscribe to all messages published by VTEP-B for VTEP-A on the MQTT-Broker, and VTEP-B can subscribe to all messages published by VTEP nodes on the MQTT-Broker. Then, when VTEP-A publishes a VXLAN tunnel establishment request message based on the MQTT protocol (in... Figure 6 After receiving the VXLAN tunnel establishment request message (which may not include the configuration information required to establish the VXLAN tunnel), the MQTT-Broker will forward it to subscriber VTEP-B. Upon receiving the VXLAN tunnel establishment request message, VTEP-B can generate and publish an identity challenge authentication message based on the MQTT protocol. After receiving the identity challenge authentication message, the MQTT-Broker forwards it to subscriber VTEP-A. VTEP-A then generates and publishes an identity challenge response message based on the authentication message. Figure 6 The identity challenge response message can include configuration information required to establish a VXLAN tunnel. After receiving the identity challenge response message, the MQTT-Broker forwards it to VTEP-B. VTEP-B then performs authentication verification on the message. If authentication is successful, VTEP-B determines whether it can establish a VXLAN tunnel with VTEP-A based on its own capabilities and the required configuration information. If successful, it configures VXLAN tunnel resources for VTEP-A and generates VXLAN tunnel configuration information. Then, it publishes a VXLAN tunnel establishment acceptance message based on this information. Upon receiving the VXLAN tunnel establishment acceptance message, the MQTT-Broker forwards it to VTEP-A. VTEP-A saves the VXLAN tunnel configuration information carried in the message. At this point, the VXLAN tunnel between VTEP-A and VTEP-B is successfully and dynamically established.

[0040] See Figure 7 , Figure 7 The flowchart of another embodiment of the tunnel establishment method of this application is shown. In one embodiment, after sending an identity challenge response message to the second communication device based on the MQTT protocol, the first communication device may also perform, but is not limited to, the following steps: In response to receiving a VXLAN tunnel establishment rejection message sent by the second communication device based on the MQTT protocol, a new VXLAN tunnel establishment request message is sent to the second communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message. The VXLAN tunnel establishment rejection message is sent by the second communication device after the authentication verification of the identity challenge response message fails. The new VXLAN tunnel establishment request message is used by the second communication device to re-establish the VXLAN tunnel for the first communication device.

[0041] In one embodiment, the second communication device sending a VXLAN tunnel establishment rejection message (AccessRejectHandle) after failing to authenticate the identity challenge response message means that the second communication device generates and publishes the VXLAN tunnel establishment rejection message to the first communication device after failing to authenticate based on the identity authentication information in the identity challenge response message. The VXLAN tunnel establishment rejection message is used to indicate to the first communication device that identity authentication has failed. Furthermore, the VXLAN tunnel establishment rejection message is an MQTT topic message, which may specifically include the message topic of the VXLAN tunnel establishment rejection message, information indicating the message topic type to which the VXLAN tunnel establishment rejection message belongs, the IP address and IP type of the first communication device, etc., etc., without further limitation here.

[0042] In one embodiment, the new VXLAN tunnel establishment request message refers to the VXLAN tunnel establishment request message regenerated by the first communication device according to its own configuration. The format of the content included in the new VXLAN tunnel establishment request message can be the same as the format of the content included in the VXLAN tunnel establishment request message in step 100.

[0043] See Figure 8 , Figure 8 It shows Figure 7 The content describes the interaction flow within the MQTT protocol framework. The first communication device is still represented as VTEP-A, and the VTEP node in the second communication device is still represented as VTEP-B. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker. VTEP-A can subscribe to all messages published by VTEP-B for VTEP-A on the MQTT-Broker, and VTEP-B can subscribe to all messages published by VTEP nodes on the MQTT-Broker. Then, when VTEP-A publishes a VXLAN tunnel establishment request message based on the MQTT protocol (in... Figure 8After receiving the VXLAN tunnel establishment request message (which does not include the configuration information required to establish a VXLAN tunnel), the MQTT-Broker will forward this VXLAN tunnel establishment request message to the subscriber VTEP-B. Upon receiving it, VTEP-B can generate and publish an identity challenge authentication message based on the MQTT protocol. After receiving the identity challenge authentication message, the MQTT-Broker forwards it to VTEP-A. VTEP-A then generates and publishes an identity challenge response message based on the identity challenge authentication message (in...). Figure 8 The identity challenge response message can include configuration information required to establish a VXLAN tunnel. After receiving the identity challenge response message, the MQTT-Broker forwards it to VTEP-B. VTEP-B then performs authentication verification on the identity challenge response message. If authentication fails, VTEP-B generates and publishes a VXLAN tunnel establishment rejection message. Upon receiving the VXLAN tunnel establishment rejection message, the MQTT-Broker forwards it to VTEP-A so that VTEP-A can determine whether it needs to re-initiate VXLAN tunnel establishment. If VTEP-A determines that it needs to re-initiate VXLAN tunnel establishment, it publishes a new VXLAN tunnel establishment request message and repeats the above process.

[0044] In one embodiment, during the process of sending a new VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message, the first communication device can determine whether it needs to re-initiate the VXLAN tunnel establishment process after determining that the authentication has failed through the VXLAN tunnel establishment rejection message, based on its own configuration. If it is determined that the VXLAN tunnel establishment process needs to be re-initiated, the first communication device can issue a new VXLAN tunnel establishment request message.

[0045] In one embodiment, after determining based on its own configuration that it is not necessary to re-initiate the VXLAN tunnel establishment process, the first communication device stops generating new VXLAN tunnel establishment request messages.

[0046] Since the first communication device has the ability to send a new VXLAN tunnel establishment request message based on the MQTT protocol to the second communication device according to the VXLAN tunnel establishment rejection message, the first communication device can rebuild the VXLAN tunnel with the second communication device according to this mechanism, thereby enabling the first communication device to have adaptive capability and a certain fault recovery capability in the network formed by the second communication device.

[0047] See Figure 9 , Figure 9 The flowchart of a tunnel establishment method according to another embodiment of this application is shown. In one embodiment, Figure 9 The illustrated embodiment introduces a subordinate associated device MAC address update mechanism, which can be further elaborated in... Figure 3 Based on the steps shown, the following steps are presented: In response to an update in the MAC address information of the subordinate associated device, the updated MAC address information is sent to the second communication device based on the MQTT protocol. The updated MAC address information is used by the second communication device to update its local MAC address list.

[0048] In one embodiment, a subordinate associated device refers to a user equipment connected to the first communication device. Updating the MAC address information of a subordinate associated device may include at least one of the following: the first communication device learns the MAC address of a new subordinate associated device after it connects; or the first communication device deletes the MAC address of a disconnected subordinate associated device after it disconnects from an existing one.

[0049] In one embodiment, sending updated MAC address information to the second communication device based on the MQTT protocol refers to the operation whereby the first communication device generates updated MAC address information based on the updated MAC address list and sends the updated MAC address information to the second communication device via a MAC information update message (MACInfoMsg). The updated MAC address information can be an updated MAC address list, or it can be the updated MAC addresses in the updated MAC address list along with their specific update method (e.g., addition / deletion). Furthermore, the MAC address information may also include source MAC address information and destination address information. Additionally, the MAC information update message is a topic message based on the MQTT protocol, and may specifically include the message topic of the MAC information update message, the updated MAC address information, information indicating the message topic type to which the MAC information update message belongs, the IP address and IP type of the first communication device, etc., without further limitation here.

[0050] In one embodiment, the specific method by which the second communication device updates its local MAC address list depends on the specific form of the updated MAC address information. For example, if the updated MAC address information is an updated MAC address list, the second communication device will update all MAC addresses of the first communication device in its local MAC address list according to the updated MAC address list. Or, if the updated MAC address information only includes the MAC addresses that have changed, the second communication device will update according to the corresponding MAC addresses in the updated MAC address list of the first communication device.

[0051] By reporting MAC address changes to the second communication device when they occur, dynamic VXLAN tunnel management can be achieved, helping to adapt VXLAN tunnel management to rapid changes in VXLAN services. Furthermore, since the use of a MAC address list to identify the corresponding VXLAN tunnel for forwarding data packets destined for a given MAC address during VXLAN tunnel operation, ARP broadcast flooding can be reduced.

[0052] See Figure 10 , Figure 10 It shows Figure 9 The content describes the interaction flow within the MQTT protocol framework. The first communication device is still represented as VTEP-A, and the VTEP node in the second communication device is still represented as VTEP-B. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker. VTEP-A can subscribe to all messages published by VTEP-B for VTEP-A through the MQTT-Broker, and VTEP-B can subscribe to all messages published by all VTEP nodes through the MQTT-Broker. When a MAC address of a subordinate device changes at VTEP-A, VTEP-A can generate and publish a MAC information update message based on the changed MAC address. After receiving the MAC information update message, the MQTT-Broker forwards it to VTEP-B. Upon receiving the MAC information update message, VTEP-B updates its local MAC address list according to the updated MAC address information carried in the MAC information update message.

[0053] In the mechanism for establishing a VXLAN tunnel between the first and second communication devices via MQTT connection, the MQTT connection between them may actually be broken. Therefore, after completing the VXLAN tunnel, either the first or second communication device can confirm the MQTT connection status with the other end. When the MQTT connection is broken, the second communication device can delete the VXLAN tunnel with the first communication device and reclaim the VXLAN tunnel resources configured for the first communication device. Alternatively, the first communication device can re-initiate the VXLAN tunnel establishment process with the second communication device after restoring the MQTT connection. Since the first and second communication devices cannot maintain the established VXLAN tunnel through the MQTT mechanism after the MQTT connection is broken, deleting the previously established VXLAN tunnel after the MQTT connection is broken can clear unsupported VXLAN tunnel resources, thereby effectively improving the utilization rate of wireless resources.

[0054] In one embodiment, deleting the VXLAN tunnel after the MQTT connection is broken can be based on a will mechanism. Specifically, after establishing an MQTT connection with the second communication device, the first communication device can register and store a will message in the MQTT-Broker of the second communication device. After the MQTT connection between the first and second communication devices is broken, the will message is forwarded by the MQTT-Broker to the VTEP node established in the second communication device. Upon receiving the will message, the VTEP node in the second communication device determines the locally stored VXLAN tunnel configuration information of the first communication device based on the will message and deletes it for resource reclamation. The will message may include the message subject, information indicating the message subject type, the IP address and IP type of the first communication device, etc., which are not specifically limited here. Additionally, the second communication device can confirm whether the MQTT connection is broken through TCP / IP layer connection detection, service data exchange frequency, etc., which are not specifically limited here.

[0055] See Figure 11 , Figure 11 The interaction flow of the will mechanism under the MQTT protocol framework is illustrated. The first communication device is still represented as VTEP-A, and the VTEP node in the second communication device is represented as VTEP-B. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker. VTEP-A can register will messages with the MQTT-Broker and subscribe to all messages published by VTEP-B for VTEP-A. VTEP-B can subscribe to all messages published by VTEP nodes with the MQTT-Broker. After a VXLAN tunnel is established between VTEP-A and VTEP-B, the MQTT-Broker can perform MQTT connection interruption detection on VTEP-A. When an MQTT connection interruption is detected, the MQTT-Broker forwards the will messages registered and stored locally by VTEP-A to VTEP-B. Upon receiving the will messages, VTEP-B reclaims the VXLAN tunnel resources of VTEP-A.

[0056] In one embodiment, deleting the VXLAN tunnel after an MQTT connection is broken can be based on a heartbeat keep-alive mechanism. Specifically, the first communication device can send a heartbeat keep-alive message (Hello message) to the second communication device according to a preset heartbeat duration. The second communication device then sends a heartbeat response message (HelloAck message) to the first communication device based on the heartbeat keep-alive message, completing one MQTT connection status confirmation process. The first communication device does not need to receive a heartbeat response message before sending the next heartbeat keep-alive message; instead, it sends messages according to the preset heartbeat duration. However, the first communication device can confirm that the MQTT connection between the first and second communication devices is broken by failing to receive multiple consecutive heartbeat response messages. Conversely, the second communication device needs to receive a heartbeat keep-alive message within the preset duration to determine that the MQTT connection between the first and second communication devices is not broken. If no heartbeat keep-alive message is received within the preset duration, the MQTT connection between the first and second communication devices is confirmed to be broken. Additionally, the heartbeat keep-alive message is an MQTT topic message, which may include the message topic of the heartbeat keep-alive message, information indicating the message topic type to which the heartbeat keep-alive message belongs, the IP address and IP type of the first communication device, etc., without specific limitations here. Furthermore, the heartbeat response message is an MQTT topic message, which may include the message topic of the heartbeat response message, information indicating the message topic type to which the heartbeat response message belongs, the IP address and IP type of the first communication device, etc., without specific limitations here. Additionally, the preset heartbeat duration can be 1 second, 2 seconds, 3 seconds, etc.

[0057] In one embodiment, there are various reasons why the first communication device may fail to receive the heartbeat response message. For example, the VTEP node in the second communication device may fail to publish the heartbeat response message, the MQTT-Broker in the second communication device may fail to forward the heartbeat response message to the first communication device, or the first communication device may fail to receive the heartbeat response message normally due to configuration issues, etc. No specific limitation is made here.

[0058] See Figure 12 , Figure 12This diagram illustrates the interaction flow of the heartbeat keep-alive mechanism within the MQTT protocol framework. The first communication device is represented as VTEP-A, and the VTEP node in the second communication device is represented as VTEP-B. Initially, both VTEP-A and VTEP-B can establish an MQTT connection with the MQTT-Broker. VTEP-A can subscribe to all messages published by VTEP-B for VTEP-A through the MQTT-Broker, and VTEP-B can subscribe to all messages published by all VTEP nodes through the MQTT-Broker. After establishing a VXLAN tunnel between VTEP-A and VTEP-B, VTEP-A can publish heartbeat keep-alive messages according to a preset heartbeat duration. Upon receiving a heartbeat keep-alive message, the MQTT-Broker forwards it to VTEP-B. Upon receiving a heartbeat keep-alive message, VTEP-B generates and publishes a heartbeat response message. Upon receiving the heartbeat response message, the MQTT-Broker forwards it to VTEP-A. After VTEP-A receives a heartbeat response message, VTEP-A and VTEP-B confirm the MQTT connection status. If VTEP-A fails to receive heartbeat response messages multiple times consecutively, it will proactively release the VXLAN link and retry establishing the VXLAN tunnel. If VTEP-B fails to receive a heartbeat keep-alive message within a preset heartbeat duration, it will proactively release the VXLAN link and reclaim VXLAN tunnel resources.

[0059] Based on the above embodiments, the steps of the second communication device in executing the tunnel establishment method are described below.

[0060] Correspondingly, see Figure 3 The tunnel establishment method, during the execution by the second communication device, may include the following steps: Receive a VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol; In response to determining from the VXLAN tunnel establishment request message that the message to be sent is a VXLAN tunnel establishment accept message, a VXLAN tunnel establishment accept message is sent to the first communication device based on the MQTT protocol. The VXLAN tunnel establishment accept message is used by the first communication device to complete the establishment of the VXLAN tunnel.

[0061] In one embodiment, determining that the information to be sent is a VXLAN tunnel establishment accept message based on the VXLAN tunnel establishment request message means that after the second communication device receives the VXLAN tunnel establishment request message, it configures VXLAN tunnel resources according to its own radio resources and determines that the information to be sent back to the first communication device (i.e., the information to be sent) is the VXLAN tunnel establishment accept message. See the specific details involving the MQTT protocol framework. Figure 4 The second communication device receives a VXLAN tunnel establishment request message via the MQTT-Broker. From an internal information retrieval perspective, the second communication device can internally invoke the VXLAN tunnel establishment request message to determine whether it has the capability to establish a VXLAN tunnel with VTEP-A. If it determines that a VXLAN tunnel can be established, it determines the message to be sent as a VXLAN tunnel establishment accept message. From the logic of the MQTT protocol framework, after receiving the VXLAN tunnel establishment request message, the MQTT-Broker in the second communication device can forward it to VTEP-B, which has subscribed to this message. If VTEP-B determines that a VXLAN tunnel can be established, it determines the message to be sent as a VXLAN tunnel establishment accept message.

[0062] In one embodiment, sending a VXLAN tunnel establishment accept message to the first communication device based on the MQTT protocol refers to the operation whereby the second communication device internally configures VXLAN tunnel resources for the first communication device, generates a VXLAN tunnel establishment accept message based on the MQTT protocol, and then sends the VXLAN tunnel establishment accept message to the first communication device. See the detailed MQTT protocol framework for further details. Figure 4 From the perspective of internal information retrieval, if the second communication device internally determines that it can establish a VXLAN tunnel, it can internally invoke a VXLAN tunnel establishment request message to determine whether it has the capability to establish a VXLAN tunnel with VTEP-A. If it determines that it can establish a VXLAN tunnel, it configures VXLAN tunnel resources for VTEP-A and generates VXLAN tunnel configuration information. Then, it sends a VXLAN tunnel establishment accept message containing the VXLAN tunnel configuration information to VTEP-A via the MQTT-Broker. From the logic of the MQTT protocol framework, when the second communication device internally determines that it can establish a VXLAN tunnel, VTEP-B, also determining that it can establish a VXLAN tunnel, can configure VXLAN tunnel resources for VTEP-A and generate VXLAN tunnel configuration information. Then, it publishes a VXLAN tunnel establishment accept message based on the VXLAN tunnel configuration information. After receiving the VXLAN tunnel establishment accept message, the MQTT-Broker forwards the VXLAN tunnel establishment accept message to VTEP-A, which has subscribed to this message.

[0063] See Figure 5 The tunnel establishment method, during the execution by the second communication device, may also include the following steps: Based on the VXLAN tunnel establishment request message, an identity challenge authentication message is sent to the first communication device according to the MQTT protocol; Receive an identity challenge response message sent by the first communication device based on the identity challenge authentication message and the MQTT protocol; The identity challenge response message is authenticated and verified. If the authentication and verification result is successful, the message to be sent is determined to be the VXLAN tunnel establishment acceptance message.

[0064] In one embodiment, sending an identity challenge authentication message to the first communication device based on the MQTT protocol according to the VXLAN tunnel establishment request message means generating identity authentication information based on the parameters carried in the VXLAN tunnel establishment request message, generating an identity challenge authentication message based on the identity authentication information, and sending the identity challenge authentication message to the first communication device based on the MQTT protocol. See the specific documentation involving the MQTT protocol framework. Figure 6 From the perspective of internal information retrieval, after receiving the VXLAN tunnel establishment request message, the second communication device generates an identity challenge authentication message based on the parameters carried in the VXLAN tunnel establishment request message, and then sends the identity challenge authentication message to the first communication device through the MQTT-Broker. From the logic of the MQTT protocol framework, after receiving the VXLAN tunnel establishment request message, VTEP-B generates and publishes an identity challenge authentication message based on the parameters carried in the VXLAN tunnel establishment request message. After receiving the identity challenge authentication message, the MQTT-Broker forwards the identity challenge authentication message to VTEP-A, which has subscribed to the identity challenge authentication message.

[0065] In one embodiment, the identity challenge response message sent by the first communication device based on the identity challenge authentication message according to the MQTT protocol refers to the first communication device generating identity authentication information based on the locally stored key and the identity authentication information in the identity challenge authentication message, and then generating and publishing a topic message based on the identity authentication information.

[0066] See Figure 6 During the process of receiving the identity challenge response message sent by the first communication device based on the identity challenge authentication message according to the MQTT protocol, the second communication device can receive the identity challenge response message published by the first communication device through the MQTT-Broker, and forward the identity challenge response message to the VTEP node (i.e., VTEP-B) in the second communication device by forwarding the subscribed messages to the subscribers through the MQTT-Broker, so as to complete the internal information retrieval.

[0067] See Figure 6In the process of authenticating the identity challenge response message and determining that the message to be sent is a VXLAN tunnel establishment acceptance message in response to a successful authentication result, the second communication device can authenticate the identity challenge response message through its internal VTEP node (i.e., VTEP-B). Specifically, the VTEP in the second communication device can authenticate the identity challenge response message, obtain the authentication result, and determine that the message to be sent is a VXLAN tunnel establishment acceptance message if the authentication result is successful.

[0068] See Figure 7 If the second communication device fails to verify the identity challenge response message, it may also perform, but is not limited to, the following steps: In response to an authentication failure result, the message to be sent is determined to be a VXLAN tunnel establishment rejection message. A VXLAN tunnel establishment rejection message is sent to the first communication device based on the MQTT protocol; Receive a new VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message; Based on the new VXLAN tunnel establishment request message, re-establish the VXLAN tunnel for the first communication device.

[0069] See Figure 8 In one embodiment, from the perspective of internal information retrieval, the process of sending a VXLAN tunnel establishment rejection message to the first communication device based on the MQTT protocol can specifically be that after the second communication device fails authentication, because the second communication device integrates both MQTT-Broker and VTEP nodes, the second communication device can actually internally generate a VXLAN tunnel establishment rejection message based on the MQTT protocol, and call it through the MQTT-Broker to send the VXLAN tunnel establishment rejection message to the first communication device. From the perspective of the MQTT protocol framework, the process of sending a VXLAN tunnel establishment rejection message to the first communication device based on the MQTT protocol can specifically be that after the VTEP node (i.e., VTEP-B) in the second communication device fails authentication, it generates and publishes a VXLAN tunnel establishment rejection message. After receiving the VXLAN tunnel establishment rejection message, the MQTT-Broker in the second communication device forwards the VXLAN tunnel establishment rejection message to the subscriber VTEP-A.

[0070] In one embodiment, receiving a new VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message, and then re-performing the VXLAN tunnel establishment process for the first communication device based on the new VXLAN tunnel establishment request message, means that after the second communication device receives the new VXLAN tunnel establishment request message, it re-executes the VXLAN tunnel establishment process (e.g., configuring VXLAN tunnel resources without authentication, or introducing the above authentication process to determine the VXLAN tunnel establishment steps to be executed, etc.) based on the new VXLAN tunnel establishment request message. It should be noted that this operation is an independent VXLAN tunnel establishment process, identical to the VXLAN tunnel establishment steps described above.

[0071] See Figure 9 After the VXLAN tunnel is successfully established, when the MAC address information of subordinate associated devices changes in the first communication device, the second communication device can also perform, but is not limited to, the following steps: Receive updated MAC address information sent by the first communication device based on the MQTT protocol, wherein the updated MAC address information is sent by the first communication device when it obtains that the MAC address information of its subordinate associated device has been updated; Update the local MAC address list based on the updated MAC address information.

[0072] See Figure 10 In one embodiment, the updated MAC address information can be carried through a MAC information update message. From the perspective of internal information retrieval, the process of receiving the updated MAC address information sent by the first communication device based on the MQTT protocol can specifically be that after the second communication device receives the MAC information update message through the MQTT-Broker, it retrieves the updated MAC address information contained in the MAC information update message based on the MQTT protocol. From the perspective of the MQTT protocol framework, the process of receiving the updated MAC address information sent by the first communication device based on the MQTT protocol can specifically be that the second communication device receives the MAC information update message through the MQTT-Broker, and then instructs the MQTT-Broker to forward the MAC information update message to the VTEP node (i.e., VTEP-B) in the second communication device.

[0073] In one embodiment, updating the local MAC address list according to the updated MAC address information refers to the operation of the second communication device updating the MAC address list stored locally by the second communication device through the internal VTEP node according to the updated MAC address information.

[0074] In the mechanism of establishing a VXLAN tunnel between the first and second communication devices based on an MQTT connection, the second communication device can cooperate with the first communication device to confirm the MQTT connection status and decide whether to maintain the VXLAN tunnel with the first communication device based on the MQTT connection status.

[0075] In one embodiment, the second communication device may delete the VXLAN tunnel configured for the first communication device in response to detecting an interruption of the MQTT link with the first communication device.

[0076] In one embodiment, the way to detect an interruption of the MQTT link with the first communication device is varied. It can be through message confirmation sent by the first communication device, or through connection detection results of the TCP / IP layer, etc., and no specific limitation is made here.

[0077] In one embodiment, an interruption of the MQTT link with the first communication device indicates both an interruption of the MQTT link between the first communication device and the MQTT-Broker in the second communication device, and an interruption of the VXLAN link between the first communication device and the VTEP node in the second communication device.

[0078] In one embodiment, deleting the VXLAN tunnel configured for the first communication device means that the second communication device deletes the VXLAN tunnel configuration information and MAC address information related to the first communication device from its local storage, thus completing the VXLAN tunnel resource reclamation operation. Specifically, from the perspective of internal information retrieval, deleting the VXLAN tunnel configured for the first communication device can be achieved by the second communication device deleting the VXLAN tunnel configuration information and MAC address information related to the first communication device from its local storage. However, from the perspective of the MQTT protocol framework, deleting the VXLAN tunnel configured for the first communication device can be achieved by the second communication device deleting the VXLAN tunnel configuration information and MAC address information related to the first communication device through its internal VTEP node.

[0079] In one embodiment, the second communication device can confirm the status of the MQTT link with the first communication device through a heartbeat keep-alive mechanism. Specifically, in response to detecting an interruption of the MQTT link with the first communication device and deleting the VXLAN tunnel configured for the first communication device, the second communication device can determine that the MQTT link with the first communication device is interrupted and delete the VXLAN tunnel configured for the first communication device if it does not receive a heartbeat keep-alive message sent by the first communication device based on the MQTT protocol within a preset time period.

[0080] In one embodiment, the second communication device can confirm the status of the MQTT link with the first communication device through a will mechanism. Specifically, the first communication device registers and stores the will message in the MQTT-Broker inside the second communication device at the beginning of establishing an MQTT connection with the second communication device. In response to detecting an interruption of the MQTT link with the first communication device and deleting the VXLAN tunnel configured for the first communication device, after the MQTT-Broker inside the second communication device detects the interruption of the MQTT link, it sends the will message registered and stored by the first communication device to the VTEP node inside the second communication device. The VTEP node inside the second communication device determines that the VXLAN link with the first communication device is interrupted and deletes the VXLAN tunnel configured for the first communication device.

[0081] In the mechanism for establishing a VXLAN tunnel between the first and second communication devices via MQTT connection, messages such as VXLAN tunnel establishment request messages, VXLAN tunnel establishment acceptance messages, identity challenge response messages, and VXLAN tunnel establishment rejection messages can be forwarded by the MQTT-Broker in the second communication device based on the publish / subscribe mechanism of the MQTT protocol. Therefore, when a device other than the first and second communication devices connects to the MQTT-Broker in the second communication device and registers to subscribe to these messages, that connected device can also receive these messages. Based on this principle, network management devices can be configured to monitor the establishment status of the VXLAN tunnel, which helps improve the convenience of VXLAN tunnel management.

[0082] In one embodiment, Figure 1 The diagram also shows that the second communication device is connected to a network management device, which can be one or more (e.g., Figure 1 The illustrations show multiple scenarios (where the MQTT-Broker connects to a device with a network management application installed, in addition to the network management device). The network management device subscribes to the aforementioned VXLAN tunnel establishment request messages, VXLAN tunnel establishment accept messages, VXLAN tunnel establishment reject messages, MAC address change messages, and will messages on the second communication device. It's important to note that the network management device can subscribe to other topics on the second communication device as needed.

[0083] In one embodiment, after receiving a VXLAN tunnel establishment request message, the second communication device sends the VXLAN tunnel establishment request message to the network management device. In response to receiving the VXLAN tunnel establishment request message, the network management device displays the VXLAN tunnel status between the first and second communication devices as "establishing a connection".

[0084] See Figure 13A The first communication device is still shown as VTEP-A, and the second communication device only shows the MQTT-Broker. Specifically, when VTEP-A publishes a VXLAN tunnel establishment request message based on the MQTT protocol, after receiving the VXLAN tunnel establishment request message, the MQTT-Broker can forward the VXLAN tunnel establishment request message to the VTEP node in the second communication device and the network management device respectively. In response to receiving the VXLAN tunnel establishment request message, the network management device displays the VXLAN tunnel status between VTEP-A and the second communication device as "establishing a link".

[0085] In one embodiment, after the second communication device receives the VXLAN tunnel establishment acceptance message (that is, the VTEP node in the second communication device generates and publishes the VXLAN tunnel establishment acceptance message, which is then received by the MQTT-Broker in the second communication device), it can send the VXLAN tunnel establishment acceptance message to the first communication device and the network management device respectively. In response to receiving the VXLAN tunnel establishment acceptance message, the network management device displays the VXLAN tunnel status between the first communication device and the second communication device as "established".

[0086] See Figure 13B The first communication device is still shown as VTEP-A, and the second communication device only shows the MQTT-Broker. Specifically, when the VTEP node in the second communication device generates and publishes a VXLAN tunnel establishment acceptance message, after receiving the VXLAN tunnel establishment acceptance message, the MQTT-Broker forwards the VXLAN tunnel establishment acceptance message to both VTEP-A and the network management device. In response to receiving the VXLAN tunnel establishment acceptance message, the network management device displays the VXLAN tunnel status between VTEP-A and the second communication device as "established".

[0087] In one embodiment, after receiving a VXLAN tunnel establishment rejection message (i.e., the VTEP node in the second communication device generates and publishes a VXLAN tunnel establishment rejection message, which is then received by the MQTT-Broker in the second communication device), the second communication device can send the VXLAN tunnel establishment rejection message to the first communication device and the network management device respectively. In response to receiving the VXLAN tunnel establishment rejection message, the network management device displays the VXLAN tunnel status between the first communication device and the second communication device as "disconnected".

[0088] See Figure 13CThe first communication device is still shown as VTEP-A, and the second communication device only shows the MQTT-Broker. Specifically, when the VTEP node in the second communication device generates and publishes a VXLAN tunnel establishment rejection message, after receiving the VXLAN tunnel establishment rejection message, the MQTT-Broker forwards the VXLAN tunnel establishment rejection message to both VTEP-A and the network management device. The network management device responds by receiving the VXLAN tunnel establishment rejection message and displays the VXLAN tunnel status between VTEP-A and the second communication device as "disconnected".

[0089] In one embodiment, after receiving a MAC information update message from the first communication device, the second communication device sends a MAC information update message to the network management device. In response to receiving the address update message, the network management device displays the subordinate associated devices currently connected to the first communication device. Specifically, when a subordinate associated device disconnects, the network management device removes the display of that subordinate associated device; when a new subordinate associated device connects to the first communication device, the network management device will additionally display the connected subordinate associated device while displaying the existing subordinate associated devices.

[0090] See Figure 13D The first communication device is still shown as VTEP-A, and the second communication device only shows the MQTT-Broker. Specifically, when VTEP-A publishes a MAC information update message, the MQTT-Broker forwards the MAC address update message to the VTEP node in the second communication device and the network management device after receiving the MAC information update message. The network management device responds to the receipt of the MAC information update message and displays the subordinate associated devices currently connected to VTEP-A.

[0091] In one embodiment, after the MQTT connection between the second communication device and the first communication device is broken, the second communication device can perform subsequent operations based on the will message mechanism. During this process, the second communication device can send a will message to the network management device. In response to receiving the will message, the network management device displays the VXLAN tunnel status between the first and second communication devices as "disconnected" and cancels the display of all subordinate associated devices of the first communication device.

[0092] See Figure 13E The second communication device only displays the MQTT-Broker. Specifically, when the second communication device detects an interruption in the MQTT connection with the first communication device, it can send a will message to the network management device via the MQTT-Broker. Upon receiving the will message registered by the first communication device, the network management device displays the VXLAN tunnel status between the first and second communication devices as "disconnected" and removes the display of subordinate associated devices of the first communication device.

[0093] See Figure 14 The specific steps of this application will be described below with a specific embodiment.

[0094] Step 1401: The first communication device, the second communication device, and the network management device establish MQTT connections with the MQTT-Broker. Specifically, the MQTT client of the first communication device, the MQTT client of the second communication device, and the MQTT client of the network management device establish MQTT connections with the MQTT-Broker deployed on the second communication device.

[0095] Step 1402: The first communication device, the second communication device, and the network management device respectively register and subscribe to the agreed-upon MQTT topic messages. Specifically, the first communication device registers for the "Will" topic message and subscribes to the VXLAN tunnel establishment acceptance message, identity challenge authentication message, VXLAN tunnel establishment rejection message, and heartbeat response message published by the VTEP node in the second communication device; the second communication device registers and subscribes to the VXLAN tunnel establishment request message, identity challenge response message, MAC information update message, and heartbeat keep-alive message published by the first communication device, as well as the "Will" message registered by the first communication device; the network management device respectively registers and subscribes to the VXLAN tunnel establishment request message, MAC information update message, and heartbeat keep-alive message published by the first communication device, as well as the "Will" message registered by the first communication device, and the VXLAN tunnel establishment acceptance message, VXLAN tunnel establishment rejection message, and heartbeat response message published by the VTEP node in the second communication device.

[0096] Step 1403: The first communication device publishes a VXLAN tunnel establishment request message. Specifically, the first communication device publishes a VXLAN tunnel establishment request message through an MQTT client.

[0097] Step 1404: After receiving the VXLAN tunnel establishment request message, the second communication device publishes a corresponding identity challenge authentication message. Specifically, after receiving the subscribed VXLAN tunnel establishment request message, the second communication device publishes an identity challenge authentication message for the corresponding MQTT topic.

[0098] Step 1405: After receiving the VXLAN tunnel establishment request message, the network management device updates the corresponding tunnel status to "establishing a connection". Specifically, after receiving the subscribed VXLAN tunnel establishment request message, the network management device updates the VXLAN tunnel information of the corresponding first communication device to "establishing a connection" based on the message type and gateway IP address information in the message content.

[0099] Step 1406: After receiving the identity challenge authentication message, the first communication device publishes the corresponding identity challenge response message. Specifically, after receiving the subscribed identity challenge authentication message, the first communication device generates a challenge password based on the challenge authentication information and local key in the message, and then assembles the identity challenge response message and publishes it via MQTT.

[0100] Step 1407: After receiving the identity challenge response message, the second communication device verifies whether the authentication verification has passed. Specifically, after receiving the subscribed identity challenge response message, the second communication device performs authentication verification based on the challenge password and IP information in the message content. If the authentication verification fails, proceed to step 1408; if the authentication verification succeeds, proceed to step 1411.

[0101] Step 1408: After authentication verification fails, the second communication device sends a VXLAN tunnel establishment rejection message.

[0102] Step 1409: After receiving the VXLAN tunnel establishment rejection request message, the network management device updates the corresponding tunnel status to "disconnected". Specifically, after receiving the subscribed VXLAN tunnel establishment rejection message, the network management device updates the VXLAN tunnel information of the corresponding first communication device to "disconnected" based on the message type and gateway IP address information in the message content.

[0103] Step 1410: After receiving the VXLAN tunnel establishment rejection message, the first communication device determines whether to re-initiate the connection establishment. Specifically, after receiving the subscribed VXLAN tunnel establishment rejection message, the first communication device determines, based on its own configuration, whether to re-initiate the VXLAN tunnel establishment request. If yes, proceed to step 1403; otherwise, proceed to step 1420.

[0104] Step 1411: After successful authentication, the second communication device allocates VXLAN tunnel resources and publishes a VXLAN tunnel establishment acceptance message. Specifically, after successful authentication, the second communication device allocates tunnel resources based on VNI and VLAN information, saves relevant tunnel information, and publishes a VXLAN tunnel establishment acceptance message.

[0105] Step 1412: After receiving the tunnel establishment acceptance message, the first communication device (VXLAN) saves the relevant configuration information and confirms that the tunnel has been successfully established. Specifically, after receiving the subscribed VXLAN tunnel establishment acceptance message, the first communication device saves the relevant tunnel configuration information and confirms that the VXLAN tunnel has been successfully established. At this time, the VXLAN service enters normal working status.

[0106] Step 1413: After receiving the VXLAN tunnel establishment acceptance message, the network management device updates the corresponding tunnel status to "established". Specifically, after receiving the subscribed VXLAN tunnel establishment acceptance message, the network management device updates the VXLAN tunnel information of the corresponding first communication device to "established" based on the message type and gateway IP address information in the message content.

[0107] Step 1414: After the VXLAN tunnel is established, the first communication device obtains updated MAC address information of its subordinate associated devices and then publishes a MAC information update message. Specifically, after the VXLAN tunnel is successfully established and VXLAN services are running normally, if the first communication device learns new MAC address information of its downstream devices, it will publish a MAC information update message.

[0108] Step 1415: After receiving the MAC information update message, the second communication device updates its local MAC address list. Specifically, after receiving the subscribed MAC information update message, the second communication device updates its local MAC address list used for data forwarding.

[0109] Step 1416: After receiving the MAC information update message, the network management device updates and displays the information of the associated devices under the corresponding gateway. Specifically, after receiving the subscribed MAC information update message, the network management device updates and displays the information of the associated devices under the corresponding first communication device according to the message type, gateway IP address, and MAC address information in the message content.

[0110] Step 1417: After the first communication device establishes an MQTT link with the MQTT-Broker, if the MQTT-Broker detects an MQTT link interruption, it will publish the will message registered by the first communication device. Specifically, the MQTT-Broker will continuously monitor the MQTT link status with the MQTT client. When it detects an MQTT link interruption with the first communication device, it will publish the will message registered by the first communication device to the subscribers.

[0111] Step 1418: After receiving the will message from the first communication device, the second communication device disconnects its corresponding VXLAN tunnel and reclaims related resources. Specifically, after receiving the subscribed will message, the second communication device clears the tunnel of the corresponding gateway and reclaims resources based on the gateway IP address in the message content.

[0112] Step 1419: After receiving the will message from the corresponding first communication device, the network management device updates the displayed tunnel status to "disconnected" and deletes the information of its subordinate associated devices. Specifically, after receiving the subscribed will message, the network management device updates the displayed VXLAN tunnel information of the corresponding first communication device to "disconnected" based on the message type and gateway IP address information in the message content, and deletes the list of downstream devices of the first communication device.

[0113] Step 1420: Process ends.

[0114] The embodiments described above are applicable to various networking scenarios. Due to the simple structure and ease of implementation of the MQTT protocol, the development threshold and cost of VXLAN tunneling technology can be effectively reduced. Furthermore, dynamic tunnel management can be achieved in a lightweight, event-driven manner. In addition, due to the characteristics of the MQTT protocol, dynamic management of VXLAN tunnels based on the MQTT protocol can tolerate network jitter and high latency in enterprise-level (TOB) network scenarios, effectively avoid potential attack surfaces caused by complex protocols, and adapt to cost-sensitive situations, thereby further enhancing the benefits of using VXLAN tunnels in enterprise-level (TOB) network scenarios.

[0115] See Figure 15 , Figure 15 The structure of a communication system provided in one embodiment of this application is shown. The communication system 15 may include a first communication device 151 and a second communication device 152.

[0116] The first communication device 151 can be used to send a VXLAN tunnel establishment request message to the second communication device 152 based on the MQTT protocol; The second communication device 152 can be used to receive the VXLAN tunnel establishment request message sent by the first communication device 151 based on the MQTT protocol, and in response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, send the VXLAN tunnel establishment acceptance message to the first communication device 151 based on the MQTT protocol. The first communication device 151 can also be used to complete the establishment of a VXLAN tunnel in response to receiving a VXLAN tunnel establishment accept message.

[0117] In one embodiment, the first communication device 151 can also be used to establish a connection with the second communication device 152 based on the MQTT protocol, and register and subscribe to VXLAN tunnel establishment accept messages in the second communication device 152; the second communication device 152 can also be used to register and subscribe to VXLAN tunnel establishment request messages locally.

[0118] In one embodiment, the second communication device 152 can also be used to send an identity challenge authentication message to the first communication device 151 based on the MQTT protocol according to the VXLAN tunnel establishment request message; the first communication device 151 can also be used to receive the identity challenge authentication message and send an identity challenge response message to the second communication device 152 based on the MQTT protocol according to the identity challenge authentication message; the second communication device 152 can also be used to receive the identity challenge response message, perform authentication verification on the identity challenge response message, and in response to the authentication verification result being successful, determine that the information to be sent is a VXLAN tunnel establishment acceptance message, and send the VXLAN tunnel establishment acceptance message to the first communication device 151.

[0119] In one embodiment, the second communication device 152 can also be used to respond to the authentication verification result being an authentication verification failure, determine that the information to be sent is a VXLAN tunnel establishment rejection message, and send the VXLAN tunnel establishment rejection message to the first communication device 151 based on the MQTT protocol; the first communication device 151 can also be used to respond to receiving the VXLAN tunnel establishment rejection message, and send a new VXLAN tunnel establishment request message to the second communication device 152 based on the MQTT protocol according to the VXLAN tunnel establishment rejection message; the second communication device 152 can also be used to receive the new VXLAN tunnel establishment request message, and re-perform the VXLAN tunnel establishment process for the first communication device according to the new VXLAN tunnel establishment request message.

[0120] In one embodiment, the second communication device 152 can also be used to delete the VXLAN tunnel configured for the first communication device 151 in response to detecting an interruption of the MQTT link with the first communication device 151.

[0121] In one embodiment, the second communication device 152 can also be used to determine that the MQTT link with the first communication device 151 is interrupted and delete the VXLAN tunnel configured for the first communication device 151 in response to not receiving a heartbeat keep-alive message sent by the first communication device 151 based on the MQTT protocol within a preset time period.

[0122] In one embodiment, the first communication device 151 can also be used to send the updated MAC address information to the second communication device 152 based on the MQTT protocol in response to the acquisition of an update of the MAC address information of the subordinate associated device; the second communication device 152 can also be used to receive the updated MAC address information and update the local MAC address list according to the updated MAC address information.

[0123] The implementation principle of the communication system 15 described above is the same as that of the embodiment of the tunnel establishment method provided above, and will not be repeated here.

[0124] See Figure 16 , Figure 16 This is a schematic diagram of the structure of a communication device provided in one embodiment of this application. Figure 16 As shown, the communication device includes a memory 1100 and a processor 1200. The number of memories 1100 and processors 1200 can be one or more. Figure 16 Taking a memory 1100 and a processor 1200 as an example; Figure 16 The memory 1100 and processor 1200 can be connected via a bus or other means. Figure 16 Taking the example of a connection between China and Israel via a bus.

[0125] The memory 1100, as a computer-readable storage medium, can be used to store one or more software programs, computer-executable programs, and modules, such as the program, instructions, or modules corresponding to the wireless resource configuration method provided in any embodiment of this application. The processor 1200 implements the tunnel establishment method provided in any embodiment of this application by executing one or more computer programs, instructions, and modules stored in the memory 1100.

[0126] The memory 1100 may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system and computer programs required for at least one function. Furthermore, the memory 1100 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1100 may further include memory remotely located relative to the processor 1200, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0127] One embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions for performing the tunnel establishment method provided in any embodiment of this application.

[0128] An embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of a network device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the network device to perform the tunnel establishment method as provided in any embodiment of this application.

[0129] The system architecture and application scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will understand that as system architectures evolve and new application scenarios emerge, the technical solutions provided in this application are also applicable to similar technical problems.

[0130] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0131] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0132] As used in this specification, the terms "component," "module," "system," etc., are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process or execution thread, and components may be located on a single computer or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems via signals).

Claims

1. A method for establishing a tunnel, comprising: Send a Virtual Extensible Local Area Network (VXLAN) tunnel establishment request message to the second communication device based on the Message Queue Telemetry Transmission (MQTT) protocol. In response to receiving a VXLAN tunnel establishment accept message sent by the second communication device according to the VXLAN tunnel establishment request message, the establishment of the VXLAN tunnel is completed, wherein the VXLAN tunnel establishment accept message is sent by the second communication device based on the MQTT protocol.

2. The method according to claim 1, characterized in that, The method further includes: Receive the identity challenge authentication message sent by the second communication device based on the MQTT protocol according to the VXLAN tunnel establishment request message; Based on the identity challenge authentication message, an identity challenge response message is sent to the second communication device according to the MQTT protocol; The second communication device receives the VXLAN tunnel establishment acceptance message sent by the second communication device based on the MQTT protocol, wherein the VXLAN tunnel establishment acceptance message is sent by the second communication device after successfully authenticating and verifying the identity challenge response message.

3. The method according to claim 2, characterized in that, The method is applied to a first communication device, and the method further includes: In response to receiving a VXLAN tunnel establishment rejection message sent by the second communication device based on the MQTT protocol, a new VXLAN tunnel establishment request message is sent to the second communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message; The VXLAN tunnel establishment rejection message is sent by the second communication device after the authentication verification of the identity challenge response message fails; the new VXLAN tunnel establishment request message is used by the second communication device to re-establish the VXLAN tunnel for the first communication device.

4. The method according to claim 1, characterized in that, The method further includes: In response to an update of the Media Access Control (MAC) address information of the subordinate associated device, the updated MAC address information is sent to the second communication device based on the MQTT protocol, wherein the updated MAC address information is used by the second communication device to update its local MAC address list.

5. A method for tunnel construction, comprising: Receive a VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol; In response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, the VXLAN tunnel establishment acceptance message is sent to the first communication device based on the MQTT protocol, wherein the VXLAN tunnel establishment acceptance message is used by the first communication device to complete the establishment of the VXLAN tunnel.

6. The method according to claim 5, characterized in that, The method further includes: Based on the VXLAN tunnel establishment request message, an identity challenge authentication message is sent to the first communication device according to the MQTT protocol; Receive an identity challenge response message sent by the first communication device based on the identity challenge authentication message and the MQTT protocol; The identity challenge response message is authenticated and verified. If the authentication and verification result is successful, the message to be sent is determined to be the VXLAN tunnel establishment acceptance message.

7. The method according to claim 6, characterized in that, The method further includes: In response to the authentication verification result being authentication verification failure, the information to be sent is determined to be a VXLAN tunnel establishment rejection message; Based on the MQTT protocol, a VXLAN tunnel establishment rejection message is sent to the first communication device. Receive a new VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol according to the VXLAN tunnel establishment rejection message; Based on the new VXLAN tunnel establishment request message, the VXLAN tunnel establishment process is re-performed for the first communication device.

8. The method according to claim 5, characterized in that, The method further includes: In response to detecting an interruption of the MQTT link with the first communication device, the VXLAN tunnel configured for the first communication device is deleted.

9. The method according to claim 8, characterized in that, The step of deleting the VXLAN tunnel configured for the first communication device in response to detecting an interruption of the MQTT link with the first communication device includes: If no heartbeat keep-alive message is received from the first communication device based on the MQTT protocol within a preset time period, it is determined that the MQTT link with the first communication device is interrupted. Delete the VXLAN tunnel configured for the first communication device.

10. The method according to claim 5, characterized in that, The method further includes: Receive updated MAC address information sent by the first communication device based on the MQTT protocol, wherein the updated MAC address information is sent by the first communication device when it obtains that the MAC address information of its subordinate associated device has been updated; Update the local MAC address list based on the updated MAC address information.

11. A communication system, characterized in that, Includes a first communication device and a second communication device; The first communication device is used to send a VXLAN tunnel establishment request message to the second communication device based on the MQTT protocol; The second communication device is configured to receive the VXLAN tunnel establishment request message sent by the first communication device based on the MQTT protocol, and in response to determining that the information to be sent is a VXLAN tunnel establishment acceptance message based on the VXLAN tunnel establishment request message, send the VXLAN tunnel establishment acceptance message to the first communication device based on the MQTT protocol. The first communication device is also configured to complete the establishment of a VXLAN tunnel in response to receiving the VXLAN tunnel establishment acceptance message.

12. The communication system according to claim 11, characterized in that, The first communication device is also used to establish a connection with the second communication device based on the MQTT protocol, and to register and subscribe to the VXLAN tunnel establishment and receive messages in the second communication device; The second communication device is also used to locally register and subscribe to the VXLAN tunnel establishment request message.

13. A communication device, comprising: At least one processor; At least one memory for storing at least one program; At least one of the programs is executed by at least one of the processors to perform the method according to any one of claims 1 to 10.

14. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to perform the method described in any one of claims 1 to 10.

15. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium. The processor of the communication device reads the computer program or the computer instructions from the computer-readable storage medium and executes the computer program or the computer instructions, causing the communication device to perform the method according to any one of claims 1 to 10.