[go: up one dir, main page]

WO2022001666A1 - Method for creating vxlan tunnel and related devices - Google Patents

Method for creating vxlan tunnel and related devices Download PDF

Info

Publication number
WO2022001666A1
WO2022001666A1 PCT/CN2021/100398 CN2021100398W WO2022001666A1 WO 2022001666 A1 WO2022001666 A1 WO 2022001666A1 CN 2021100398 W CN2021100398 W CN 2021100398W WO 2022001666 A1 WO2022001666 A1 WO 2022001666A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network device
network
vxlan
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/100398
Other languages
French (fr)
Chinese (zh)
Inventor
林志鸿
贺行健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2022001666A1 publication Critical patent/WO2022001666A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method for establishing a virtual extensible local area network (VXLAN) tunnel and related equipment.
  • VXLAN virtual extensible local area network
  • VXLAN is a virtual network built on the underlying network.
  • VXLAN includes virtual network devices with two roles of border (border) device and edge (edge) device.
  • border device As the network egress of the VXLAN, the border device is responsible for forwarding the packets in the VXLAN to other VXLANs or non-VXLANs.
  • edge device As the service access point of the VXLAN, the edge device is responsible for forwarding the packets of the user equipment to the VXLAN.
  • a VXLAN tunnel is established between the edge device and the edge device, as well as between the edge device and the edge device, to implement packet forwarding in the VXLAN.
  • a VXLAN tunnel is established in advance between any edge device and the edge device, and between any two edge devices in a dynamic routing manner.
  • This method of establishing a VXLAN tunnel requires establishing a VXLAN tunnel between all devices in the VXLAN, resulting in low flexibility in establishing a VXLAN tunnel.
  • the present application provides a method and related equipment for establishing a VXLAN tunnel, which can improve the flexibility of establishing a VXLAN tunnel.
  • the technical solution is as follows:
  • a first aspect provides a method for establishing a virtual extended local area network VXLAN tunnel, the method is applied to a first network device in the VXLAN, the VXLAN includes multiple network devices, and a VXLAN tunnel is established between any network device and a control device. , the first network device is one of the multiple network devices.
  • a first VXLAN message from the second network device is received, and the destination address of the original frame included in the first VXLAN message is the address of the first terminal device; if there is no terminal device connected to the first network device
  • the first terminal device sends an error message notification message to the control device, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device, and the error message notification message indicates the first terminal device.
  • a terminal device is not connected to the first network device, but the first network device still receives the VXLAN packet from the second network device and sent to the first terminal device.
  • the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device.
  • the notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time.
  • the method provided by the present application can dynamically change the VXLAN tunnel established in the forwarding table when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the VXLAN tunnel currently required in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • establishing a VXLAN tunnel is essentially to obtain the identifier of the VXLAN tunnel, and then establish a correspondence between the destination address of the packet and the tunnel identifier, so that subsequent packets sent to the destination address are all can be forwarded through this VXLAN tunnel.
  • the tunnel identifier may be the identifier of the peer device of the VXLAN tunnel (eg, the IP address of the peer device).
  • the tunnel identifier may also be other symbols uniquely capable of identifying the tunnel in addition to the identifier of the peer device of the VXLAN tunnel, for example, the tunnel identifier is a unique number for the VXLAN tunnel. The network device can use this number to index the corresponding entry, and the entry stores the VXLAN tunnel parameters including the IP address of the peer device.
  • the terminal access set includes the addresses of each terminal device connected to the first network device.
  • each network device can update the terminal access set in time when the terminal device is migrated, so that the terminal access set is more ready to represent each terminal device currently connected to the network device, so as to facilitate the subsequent dynamic change of the VXLAN tunnel.
  • the method if it is detected that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device.
  • the above implementation manner is applied to the scenario in which the first network device can perceive the migration of the first terminal device.
  • the first network device detects that the first terminal device and the first network device are disconnected from communication, the first The terminal device is migrated from the first network device.
  • the first terminal device when the first terminal device leaves the first network device, it sends a terminal relocation notification to the control device, and the terminal relocation notification includes the first terminal The address of the device and the identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device.
  • the first network device not only deletes the address of the first terminal device in the local terminal access set, but also notifies the control device to delete the first network as well.
  • the address of the first terminal device in the terminal access set of the device is that the terminal access set stored at the control device and the network device can accurately represent the connection status of the terminal device in real time, so that when other terminal devices access the terminal device that has been migrated, it can be dynamically changed.
  • the above-mentioned implementation process of determining that the first terminal device has left the first network device is: if a terminal move-out instruction from the control device is received, determining that the first terminal When the device leaves the first network device, the terminal move-out instruction includes the address of the first terminal device, and the terminal move-out instruction is used to instruct the first terminal device to leave the first network device.
  • the above implementation manner is applied to a scenario where the first network device cannot perceive the migration of the first terminal device. Therefore, when the first terminal device migrates out, the first network device cannot immediately delete the information of the first terminal device from the terminal information. . Instead, it is determined by the notification of the control device that the first terminal device has migrated out.
  • the original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent via the first network device to the control device.
  • the VXLAN tunnel is sent to the control device.
  • the first network device When the first network device receives a VXLAN packet that does not reach the terminal device connected to itself, the first network device may re-encapsulate the first VXLAN packet and forward it by the control device.
  • a method for establishing a virtual extended local area network VXLAN tunnel is provided, and the method is applied to a control device.
  • an error message notification message from a first network device in the VXLAN is received, and the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device.
  • the message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the VXLAN message from the second network device and sent to the first terminal device.
  • the VXLAN includes multiple network devices.
  • a network device and a second network device are two of multiple network devices; send a terminal change message to the second network device, the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates The first terminal device is currently connected to the third network device.
  • the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device moves out from the first network device, even if the VXLAN packet is erroneously sent to the first network device because the forwarding table at the second network device is not updated in time, the error message notification message is sent to the first network device. It is still possible to notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time.
  • the method provided by the present application can dynamically change the VXLAN tunnel that has been established in the forwarding table when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the VXLAN tunnel currently required in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • a terminal move-out notification from a first network device is received, the terminal move-out notification includes an address of the first terminal device and an identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device ; delete the address of the first terminal device from the terminal access set of the first network device, where the terminal access set includes the addresses of each terminal device connected to the first network device.
  • the first network device notifies the control device to also delete the address of the first terminal device in the terminal access set of the first network device.
  • the technical effect of this is that the terminal access set stored by the control device can accurately represent the connection status of the terminal device in real time, so that when other terminal devices access the terminal device that has been migrated, the established VXLAN can be dynamically changed. tunnel.
  • a terminal access announcement message sent from a third network device is received, where the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device,
  • the terminal access announcement message indicates that the first terminal device is connected to the third network device; if the address of the first terminal device is included in the terminal access set of the first network device, delete the first terminal device in the terminal access set of the first network device.
  • the address of a terminal device is sent to the first network device, and the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device.
  • the above implementation manner is applied to a scenario where the first network device cannot perceive the migration of the first terminal device. Therefore, when the first terminal device migrates out, the first network device cannot immediately remove the information of the first terminal device from the terminal access set. delete. Instead, it is determined that the first terminal device has migrated out by means of the advertisement of the network device newly accessed by the first terminal device.
  • the address of the first terminal device is added to the terminal access of the third network device in the collection.
  • the terminal of the newly accessed network device may also be notified based on the notification of the network device newly accessed by the first terminal device.
  • the access set is updated in time, so that the terminal access set stored at the control device can accurately represent the connection situation of the terminal device in real time.
  • a first network device in a VXLAN has a function of implementing the behavior of the method for establishing a VXLAN tunnel in the first aspect.
  • the first network device includes at least one module, and the at least one module is configured to implement the method for establishing a VXLAN tunnel provided by the above-mentioned first aspect.
  • a control device in a fourth aspect, has a function of implementing the behavior of the method for establishing a VXLAN tunnel in the second aspect.
  • the control device includes at least one module, and the at least one module is configured to implement the method for establishing a VXLAN tunnel provided in the second aspect above.
  • a fifth aspect provides a first network device, the structure of the first network device includes a processor and a memory, and the memory is used to store a program that supports the apparatus to execute the method for establishing a VXLAN tunnel provided in the first aspect, and Data involved in implementing the method for establishing a VXLAN tunnel provided by the first aspect is stored.
  • the processor is configured to execute programs stored in the memory.
  • the operating means of the memory device may also include a communication bus for establishing a connection between the processor and the memory.
  • a control device in a sixth aspect, includes a processor and a memory, and the memory is used to store a program that supports the apparatus to perform the method for establishing a VXLAN tunnel provided in the second aspect, and stores a program for Data involved in implementing the method for establishing a VXLAN tunnel provided in the second aspect above.
  • the processor is configured to execute programs stored in the memory.
  • the operating means of the memory device may also include a communication bus for establishing a connection between the processor and the memory.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer executes the method for establishing a VXLAN tunnel of the first aspect or the second aspect.
  • a computer program product comprising instructions, which, when executed on a computer, cause the computer to perform the method for establishing a VXLAN tunnel of the first or second aspect above.
  • Fig. 1 is a system schematic diagram of a VXLAN provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of updating user information provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a method for establishing a VXLAN tunnel provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a format of a VXLAN message provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of another method for establishing a VXLAN tunnel provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a first network device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a control device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • VXLAN can superimpose Layer 2 virtual network on any routeable underlying network, realize intercommunication within VXLAN network through VXLAN gateway, and also realize intercommunication with traditional non-VXLAN network through VXLAN network.
  • VXLAN technology extends the Layer 2 network by adopting the encapsulation method of Media Access Control (MAC) into (in) User Datagram Protocol (UDP), and encapsulates Ethernet packets in the network (internet protocol).
  • MAC Media Access Control
  • UDP User Datagram Protocol
  • IP IP
  • VXLAN can meet the needs of virtual migration and multi-tenancy of data center networks. Similarly, VXLAN is also suitable for the scenario of "one network with multiple uses" in the campus network. For example, the same bearer network is virtualized into multiple service networks to achieve mutual isolation between different service networks.
  • VXLAN Network Identifier Similar to the VLAN ID in traditional networks, it is used to distinguish VXLAN network segments. Tenants in different VXLAN segments cannot directly communicate at Layer 2. A network can be divided into one or more VNIs.
  • Broadcast domain Similar to the method of dividing the broadcast domain by VLAN in the traditional network, the broadcast domain is divided by BD in the VXLAN network. In a VXLAN network, a VNI is mapped to a broadcast domain BD in a 1:1 manner. A BD represents a broadcast domain, and hosts in the same BD can communicate at Layer 2.
  • VXLAN Tunnel Endpoints can encapsulate and decapsulate VXLAN packets.
  • the source IP address is the IP address of the source VTEP
  • the destination IP address is the IP address of the destination VTEP.
  • a pair of VTEP addresses corresponds to a VXLAN tunnel. After the source end encapsulates the packet, the encapsulated packet is sent to the destination VTEP through the tunnel, and the destination VTEP decapsulates the received encapsulated packet.
  • VAP Virtual Access Point
  • VXLAN service access point which can access services based on VLAN or packet flow encapsulation type.
  • NVE Network Virtualization Edge
  • the VXLAN network Similar to the traditional VLAN network, the VXLAN network also has mutual access within the VXLAN network and mutual access between the VXLAN networks.
  • Layer 2 gateway Similar to a Layer 2 access device on a traditional network, in a VXLAN network, a Layer 2 gateway enables tenants to access the VXLAN virtual network. Layer 2 gateways can also be used for subnet communication within the same VXLAN virtual network. Combined with the foregoing explanation of the functions of edge devices and edge devices, in VXLAN, edge devices can be used as Layer 2 gateways.
  • Layer 3 gateway Similar to traditional networks, users in different VLANs cannot directly communicate with each other at Layer 2, and VXLANs between different VNIs and between VXLANs and non-VXLANs cannot directly communicate with each other. To enable communication between VXLANs and between VXLANs and non-VXLANs, the concept of VXLAN Layer 3 gateways is introduced. Layer 3 gateways are used for cross-subnet communication of VXLAN virtual networks and access to external networks. Likewise, in conjunction with the foregoing explanations of the functions of the edge device and the edge device, in VXLAN, the edge device can be used as a Layer 3 gateway.
  • the method provided by the embodiment of the present application is applied to the above scenario of forwarding packets through VXLAN, and the purpose is to dynamically change the established VXLAN tunnel when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demand in real time VXLAN tunnel. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • establishing a VXLAN tunnel is essentially acquiring the identifier of the VXLAN tunnel, and then establishing a correspondence between the destination address of the packet and the tunnel identifier, so as to facilitate subsequent packets sent to the destination address. All messages can be forwarded through the VXLAN tunnel.
  • the tunnel identifier can be the identifier of the peer device of the VXLAN tunnel (such as the IP address of the peer device), or it can be other unique symbols other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, the tunnel identifier is for VXLAN A unique number for the tunnel. The network device can use this number to index the corresponding entry, and the entry stores the VXLAN tunnel parameters including the IP address of the peer device.
  • the method for establishing a VXLAN tunnel provided by the embodiment of the present application will be explained in detail below.
  • the method for establishing a VXLAN tunnel provided by the embodiment of the present application is applied to a scenario in which an established VXLAN tunnel can be dynamically changed when a terminal device is migrated.
  • configure a control device for the VXLAN network After the control device is configured, the following configuration is performed between the control device and each network device in the VXLAN.
  • the above-mentioned control device is a certain network device in the VXLAN.
  • the control device may also be a device other than the above VXLAN, for example, the control device supports VXLAN but is in a VXLAN different from the virtual network identifier (VNI) of the network device, or the control device may not support VXLAN.
  • VNI virtual network identifier
  • the terminal access set of any network device in the VXLAN is stored at the control device, and any network device locally also stores its own terminal access set.
  • the terminal access set of any network device includes the addresses of each terminal device connected to the network device. And when the terminal device migrates, the terminal access set at the control device and the terminal access set at the network device are updated. So that the established VXLAN tunnel can be dynamically changed when other network devices access the terminal device that has been migrated later.
  • the data structure of the aforementioned terminal access set may be a terminal access list, a terminal access list, a terminal access linked list, etc. The embodiment of the present application does not limit the data structure of the terminal access set.
  • the following content is used to explain in detail the update of the terminal access set at the control device and the terminal access set at the network device when the terminal device is migrated.
  • the following content is described by taking the migration of the first terminal device from the first network device as an example.
  • the first network device is any device in the VXLAN
  • the first terminal device is any terminal device that accesses the first network device.
  • the first network device can receive a packet sent by the first terminal device, and the source address of the packet is the first terminal device. Therefore, if the first network device receives a message from the first terminal device for the first time, it indicates that the first terminal device is connected to the first network device, and the first network device adds the address of the first terminal device to the first network In the terminal access set of the device. Subsequently, if the first network device determines that the first terminal device leaves the first network device, the address of the first terminal device is deleted from the terminal access set of the first network device.
  • the first network device can sense that the first terminal device leaves the first network device. However, in some scenarios, the first network device cannot sense that the first terminal device leaves the first network device. The following describes how the first network device determines that the first terminal device leaves the first network device in two scenarios.
  • the first network device can sense that the first terminal device leaves
  • the first network device detects that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device.
  • the first terminal device is directly connected to the first network device in a wired manner, and the first network device determines whether the first terminal device leaves the first network device according to whether the wired port is down (down). If the wired port connected to the first terminal device is disconnected, it is determined that the first terminal device leaves the first network device.
  • the first network device is used as the wireless access point of the first terminal device. If the first terminal device is disassociated from the wireless access point and the first network device can recognize that the first terminal device is offline, then the first network device The device then determines that the first terminal device leaves the first network device.
  • the first network device receives traffic from the first terminal device within a certain period of time, it is determined that the first terminal device leaves the first network device.
  • the first network device when the first network device detects that the first terminal device leaves the first network device, in addition to deleting the identifier of the first terminal device from the terminal access set of the first network device, it also sends a terminal transition message to the control device.
  • the terminal move-out notification instructs the first terminal device to leave the first network device.
  • the control device receives the terminal migration notification sent by the first network device, and the control device deletes the address of the first terminal device from the terminal access set of the first network device.
  • the first network device in a scenario where the first network device can sense the departure of the first terminal device, the first network device not only deletes the address of the first terminal device in the local terminal access set, but also notifies the control device to delete the first network as well.
  • the address of the first terminal device in the terminal access set of the device is: the terminal access set stored at the control device and the network device can accurately represent which terminal devices are connected to the network device in real time, so that other terminal devices can access the migrated terminal devices in the future.
  • the established VXLAN tunnel can be dynamically changed.
  • a virtual network control protocol overlaycontrol protocol, OCP
  • OCP server OCP server
  • OCP client OCP client
  • the terminal migration notification sent by the first network device to the control device can be sent through the OCP protocol.
  • any network device may first establish a VXLAN tunnel with the control device. Therefore, when a certain network device receives a VXLAN message whose destination is not the terminal device to which it is connected, it can forward the VXLAN message in a detour through the control device.
  • the above-mentioned terminal migration notification can be forwarded through the VXLAN tunnel.
  • FIG. 1 is a schematic diagram of the architecture of a VXLAN provided by an embodiment of the present application.
  • the VXLAN includes five VXLAN tunnel endpoints (VXLAN Tunnel Endpoints, VTEP), which are marked as VTEP-1, VTEP-2, VTEP-3, VTEP-4, and VTEP-5.
  • VTEP P-1, VTEP-2, VTEP-3, VTEP-4 are network equipment
  • VTEP-5 is control equipment.
  • VTEP-1, VTEP-2, VTEP-3, and VTEP-4 establish VXLAN tunnels with VTEP-5 respectively, and obtain four VXLAN tunnels in the north-south direction as shown in Figure 5.
  • VXLAN tunnels are not established between VTEP-1, VTEP-2, VTEP-3, and VTEP-4. Instead, VXLAN tunnels between network devices are dynamically established later based on traffic requirements, and VXLAN tunnels between network devices are dynamically changed when terminal devices are migrated. It should be noted that the embodiments of the present application do not limit the specific implementation manner of dynamically establishing a VXLAN tunnel between network devices based on traffic requirements.
  • OCP protocol is only an optional control plane protocol for realizing the communication between the control device and the network device.
  • This embodiment of the present application does not limit how the control device establishes the control plane protocol with each network device.
  • the VXLAN tunnel when a VXLAN tunnel is dynamically established between network devices based on traffic requirements, if the aging time method is used to delete a VXLAN tunnel that has been idle for a long time, in the case of terminal device migration, the VXLAN tunnel cannot be changed in time, which also leads to forwarding table resources. of waste.
  • the established VXLAN tunnel can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • the first terminal device is first connected to a HUB (hub) device, and then the HUB device is connected to the first network device. In this case, if the first terminal device is disconnected from the HUB device, the first network device cannot sense the departure of the first terminal device.
  • HUB hub
  • the first network device is the wireless access point of the first terminal device, if the first terminal device directly leaves the range covered by the SSID of the first network device, the first network device cannot sense that the first terminal device leaves.
  • the first network device cannot sense the departure of the first terminal device, when the first terminal device migrates out, the first network device cannot immediately delete the address of the first terminal device from the terminal access set. Instead, it is determined that the first terminal device leaves the first network device by means of the advertisement of the network device newly accessed by the first terminal device.
  • the implementation manner for the first network device to determine that the first terminal device leaves the first network device may be: the control device receives the terminal access announcement sent by the third network device message, the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, and the terminal access announcement message indicates that the first terminal device is connected to the third network device. If the terminal access set of the first network device includes the address of the first terminal device, the control device can learn that the first terminal device has migrated from the first network device to the third network device, so the control device deletes the first network device The identifier of the first terminal device in the terminal access set.
  • the control device sends a terminal relocation instruction to the first network device, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device. Therefore, if the first network device receives the terminal relocation instruction sent by the control device, it is determined that the first terminal device leaves the first network device.
  • the first network device since the first network device determines that the first terminal device has migrated from the first network device through the control device, the first network device only needs to delete the first network device from the terminal access set of the first network device.
  • the identification of the terminal device is sufficient, and the update process of the terminal access set at the control device does not need to be concerned.
  • any network device and the control device first establish a VXLAN tunnel.
  • the above-mentioned online notification message and the second terminal relocation message can be implemented through the established north-south VXLAN tunnel.
  • FIG. 2 is a schematic flowchart of updating a terminal access set provided by an embodiment of the present application, which is used to further describe the situation in the above scenario (2) in detail.
  • the flow shown in Figure 2 includes the following steps.
  • terminal device A After terminal device A migrates from edge device 1 to edge device 2, terminal device A sends traffic to edge device 2.
  • the traffic sent by terminal device A to edge device 2 refers to the packets sent by terminal device A to edge device 2 for the first time.
  • the message is an online notification message, which is used to notify the terminal device A to access the edge device 2 .
  • the packet is a data packet sent by the first terminal device to the first network device for the first time.
  • the edge device 2 will recognize the address of the terminal device A (such as a MAC address and/or an IP address), and the edge device 2 will add the address of the terminal device A to the terminal access set of the edge device 2 .
  • the address of the terminal device A such as a MAC address and/or an IP address
  • the edge device 2 reports the address of the terminal device A to the edge device by means of a terminal access notification message based on the OCP protocol.
  • the edge device searches the stored terminal access set of each edge device, and finds that the address of terminal device A already exists in the terminal access set of edge device 1, and it is edge device 2 that sends the terminal access announcement message this time. Therefore, the edge device updates the terminal access sets of edge device 2 and edge device 1.
  • the relocation situation of the terminal device A is notified to the edge device previously accessed by the terminal device A, that is, the edge device 1, in the form of a terminal relocation instruction.
  • the edge device 1 receives the terminal migration instruction sent by the edge device, and deletes the address of the terminal device A from the local terminal access set.
  • the edge device in the case where the edge device cannot perceive the terminal device migration, it can also be implemented to update the terminal access set at the edge device and the terminal at the edge device in time after the terminal device leaves the first network device. Access collection.
  • the terminal device After the terminal device is migrated, based on the above process of updating the terminal access set at the control device and the terminal access set at the network device, when other terminal devices subsequently access the terminal device that has been migrated, it is possible to dynamically change the Established VXLAN tunnel.
  • the following embodiments are used to explain in detail how to dynamically change the established VXLAN tunnel.
  • FIG. 3 is a flowchart of a method for establishing a VXLAN tunnel provided by an embodiment of the present application. As shown in Figure 3, the method includes the following steps.
  • Step 301 The first network device receives a first VXLAN packet from the second network device, and the destination address of the original frame included in the first VXLAN packet is the address of the first terminal device.
  • the original frame in the first VXLAN packet is a packet in the traffic of the second terminal device accessing the first terminal device, and the second terminal device is connected to the second network device.
  • a possible application scenario of the embodiment of the present application is: before the first terminal device is migrated from the first network device to the third network device, the second terminal device has already accessed the first terminal device, so the transfer of the second network device.
  • the publication stores the correspondence between the tunnel identifier of the VXLAN tunnel between the second network device and the first network device and the address of the first terminal device.
  • the first network device does not immediately update the forwarding table. Therefore, if the second terminal device accesses the first terminal device again, the second network device still uses the unupdated forwarding table at this time. The message is sent to the first network device to expect to access the first terminal device through the first network device.
  • the forwarding table includes a plurality of terminal device addresses and tunnel identifiers corresponding to the respective terminal device addresses.
  • the function of the forwarding table is: through the VXLAN tunnel indicated by the tunnel identifier corresponding to any terminal device address, the message can be forwarded to the terminal device indicated by the terminal device address.
  • the above-mentioned tunnel identifier is an identifier of the VTEP at the receiving end of the VXLAN tunnel (eg, the IP address of the peer device).
  • the tunnel identifier of the VXLAN tunnel is the identifier of the first network device.
  • the above-mentioned tunnel identifier is a symbol other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, the tunnel identifier is a unique number for the VXLAN tunnel.
  • the tunnel identifier of the VXLAN tunnel is tunnel 1 .
  • the network device in order to facilitate the subsequent query of the peer end of a certain VXLAN tunnel, the network device can use this number to index the corresponding entry, and the entry contains the IP address of the peer device.
  • the second network device may also maintain a tunnel list, where the tunnel list includes the identifiers of the VTEPs of the receiving ends of the tunnels that correspond one-to-one with each tunnel identifier.
  • the second network device After receiving the packet whose source address is the address of the second terminal device and the destination address is the address of the first terminal device, the second network device queries the forwarding table and finds that the VXLAN between the second network device and the first network device can be passed through. The tunnel sends the packet. In this way, the second network device encapsulates the packet as an original frame into a first VXLAN packet, and passes the first VXLAN packet through the VXLAN tunnel between the second network device and the first network device. sent to the first network device.
  • the above-mentioned encapsulating the message as the original frame into the first VXLAN message refers to: adding the outer frame header such as the VXLAN frame header to the first network device as the destination of the first VXLAN message, so as to realize the sending of the first VXLAN message to the first network device.
  • the encapsulation format of the VXLAN packet is also explained here.
  • the original frame original L2frame
  • the original frame is first added with a VXLAN frame header during the encapsulation process, and then encapsulated in the outer UDP frame header, and the IP and MAC addresses of the bearer network are used as the outer header for encapsulation.
  • a VXLAN packet can be obtained.
  • Step 302 If there is no first terminal device in the terminal devices connected to the first network device, send an error message notification message to the control device, and the control device receives the error message notification message from the first network device.
  • the first network device Based on the above process of updating the terminal access set at the control device and the terminal access set at the network device, it can be known that if the first terminal device migrates from the first network device, the terminal access set of the first network device will no longer have the identity of the first terminal device. Therefore, when the first network device receives the first VXLAN packet, if there is no address of the first terminal device in the terminal access set of the first network device, it indicates that the first terminal device is not connected to the first network device. In this scenario, the first network device sends an error message notification message to the control device. The control device receives the error message notification message sent by the first network device.
  • the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device.
  • the error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the VXLAN packet from the second network device and sent to the first terminal device.
  • step 302 is a case where the received message is a message encapsulated in the VXLAN format. If the packet in step 301 is not a packet encapsulated in the VXLAN format, it is not necessary to dynamically change the established VXLAN tunnel.
  • control device may query the network device currently accessed by the first terminal device from the terminal access set of each network device. and use the queried network device as the third network device.
  • the first network device receives the first VXLAN packet, if there is no address of the first terminal device in the local terminal access set, it indicates that the first terminal device is not currently connected to the first network device.
  • the first network device encapsulates the original frame in the first VXLAN packet into a second VXLAN packet, and encapsulates the original frame in the first VXLAN packet into a second VXLAN packet.
  • the second VXLAN packet is sent to the control device via the VXLAN tunnel between the first network device and the control device.
  • the control device receives the second VXLAN packet from the first network device.
  • the control device encapsulates the original frame into a third VXLAN packet, and sends the third VXLAN packet to the third network device through the VXLAN tunnel between the control device and the third network device, so as to implement the second terminal device to the migrated Access to the first terminal device.
  • control device needs to notify the second network device to change the established VXLAN tunnel through the following steps, so as to prevent the second network device from sending an error message to the first network device.
  • Internet equipment
  • Step 303 The control device sends a terminal change message to the second network device, the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates that the first terminal device is currently connected to the third network device.
  • the second network device After receiving the terminal change message, the second network device learns that the first terminal device has been migrated from the first network device to the third network device. Therefore, the second network device needs to update the forwarding table to avoid the second network device The device subsequently sends the erroneous packet to the first network device again.
  • the second network device may delete from the forwarding table the relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the first network and the address of the first terminal device corresponding relationship.
  • a corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the third network and the address of the first terminal device is established in the forwarding table.
  • the tunnel identifier of the VXLAN tunnel from the second network device to the third network is the identifier of the third network device.
  • the tunnel identifier of the VXLAN tunnel from the second network device to the first network is the identifier of the first network device.
  • the tunnel identifier in the forwarding table is a symbol other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, in the scenario where the tunnel identifier is a unique number for the VXLAN tunnel, the network device can use this number to index the Corresponding entry, the entry stores VXLAN tunnel parameters including the IP address of the peer device.
  • the second network device also maintains a tunnel list, where the tunnel list includes the identifiers of the VTEPs of the receiving ends of the tunnels that correspond one-to-one with each tunnel identifier.
  • the second network device searches the local forwarding table for the address of the terminal device corresponding to the tunnel identifier of the VXLAN tunnel between the second network device and the first network device.
  • address of the device not only deletes the correspondence between the tunnel identifier of the VXLAN tunnel from the second network device to the first network device in the tunnel list and the address of the first terminal device from the forwarding table, but also deletes the first terminal device from the tunnel list.
  • the tunnel identifier of the VXLAN tunnel from the second network device to the first network device and the first network device are not deleted from the tunnel list.
  • the corresponding relationship between the device identifiers, but the corresponding relationship between the tunnel identifier of the VXLAN tunnel between the second network device and the first network device and the address of the first terminal device in the forwarding table is deleted.
  • the above process of deleting the corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the first network device and the identifier of the first network device from the tunnel list is also referred to as deleting the second network device to the first network device.
  • the process of VXLAN tunneling of the first network device is also referred to as deleting the second network device to the first network device.
  • the second network device after receiving the terminal change message, ID, find the tunnel ID of the VXLAN tunnel of the third network device corresponding to the tunnel receiving end from the tunnel list. If a tunnel ID is found, the tunnel ID is the ID of the VXLAN tunnel between the second network device and the third network device.
  • the identifier indicates that a VXLAN tunnel from the second network device to the third network device is currently established, but the correspondence between the address of the first terminal device and the tunnel identifier of the VXLAN tunnel has not been created.
  • the tunnel identifier generation rule is a set rule for generating a unique identifier for a VXLAN tunnel, which is not specifically limited in this embodiment of the present application. For example, the tunnel identifier is generated based on the number of VXLAN tunnels from the second network device to other network devices.
  • the above process after the tunnel identifier is not found is also referred to as the process of establishing a VXLAN tunnel between the second network device and the third network device.
  • the above process can be described as follows: after receiving the terminal change message, the second network device searches whether it has already connected with the VXLAN tunnel from the second network device to the third network device. If there is no VXLAN tunnel from the second network device to the third network device VXLAN tunnel, establish a VXLAN tunnel from the second network device to the third network device, and add the corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the third network device and the address of the first terminal device to the forwarding table middle.
  • control device is a border device in the VXLAN network.
  • edge device 4 After terminal device A is migrated to edge device 2, if terminal device A and terminal device B do not communicate with each other for a period of time, edge device 4 does not receive traffic destined for terminal device A within the aging time. The edge device 4 deletes the entry of the terminal device A in the forwarding table, and at the same time determines that there is no entry of the terminal device under the edge device 1 in the forwarding table, and deletes the VXLAN tunnel from the edge device 4 to the edge device 1.
  • Terminal device B sends traffic to access terminal device A
  • the edge device 4 forwards the traffic to the VXLAN tunnel from the edge device 4 to the edge device 1 according to the forwarding table.
  • the edge device 1 receives the traffic of the terminal device B, inquires that there is no terminal device A in the terminal access set of the device, and at the same time recognizes that the received traffic is a VXLAN packet.
  • the traffic is forwarded through the VXLAN tunnel from the edge device 1 to the edge device.
  • the border device receives the traffic and forwards the traffic to the edge device 2 through the VLXLAN tunnel from the border device to the edge device 2.
  • the edge device 2 device receives the traffic and forwards it to the terminal device A according to the forwarding table.
  • the edge device 1 When the edge device 1 forwards the traffic, it triggers an error message notification message, and notifies the edge device terminal device B to access the error message of the terminal device A through the OCP protocol.
  • the edge device queries the terminal access set of each terminal device, and finds that the VTEP corresponding to the terminal device B is the edge device 4 .
  • the edge device sends a notification to the edge device 4 through the OCP protocol to notify that the VTEP corresponding to the terminal device A is the edge device 2 .
  • the edge device 4 After receiving the notification, the edge device 4 updates the entry of the terminal device A in the forwarding table through the following steps.
  • Edge device 4 judges that if the VXLAN tunnel from edge device 4 to edge device 2 has not been created, establish a VXLAN tunnel from edge device 4 to edge device 2 (here, establishing a VXLAN tunnel of edge device 4->edge device 2 refers to : Obtain the tunnel ID of the VXLAN tunnel of edge device 4->edge device 2, and add the corresponding relationship between the tunnel ID and the address of terminal device A to the forwarding table).
  • Edge device 4 deletes the correspondence between the address of terminal device A in the forwarding table and the tunnel identifier of the VXLAN tunnel between edge device 4 and edge device 1, and judges that if the forwarding table of this device does not include the tunnel The corresponding relationship between the identifiers indicates that there is no entry of the terminal device connected to edge device 1 in the forwarding table, then delete the VXLAN tunnel from edge device 4 to edge device 1 (here, delete the VXLAN tunnel from edge device 4 to edge device 1 is Refers to: delete the corresponding relationship between the tunnel ID of the VXLAN tunnel from edge device 4 to edge device 1 and the ID of edge device 1 in the tunnel list).
  • the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device.
  • the notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time.
  • the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • FIG. 6 is a schematic structural diagram of a first network device in a VXLAN provided by an embodiment of the present application.
  • the VXLAN includes multiple network devices, and the first network device is one of the multiple network devices.
  • the first network device 600 includes:
  • a receiving module 601 configured to receive a first VXLAN message from a second network device, where the destination address of the original frame included in the first VXLAN message is the address of the first terminal device;
  • the sending module 602 is configured to send an error message notification message to the control device if there is no first terminal device in the terminal device connected to the first network device, where the error message notification message includes the address of the first terminal device, the first network The identifier of the device and the identifier of the second network device, the error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the message from the second network device and sent to the first terminal device. VXLAN packets.
  • the first network device further includes:
  • a deletion module configured to delete the address of the first terminal device from the terminal access set of the first network device when it is determined that the first terminal device has left the first network device, where the terminal access set includes each device connected to the first network device The address of the end device.
  • delete modules are used to:
  • the sending module is also used for:
  • a terminal move-out notification is sent to the control device, where the terminal move-out notification includes the address of the first terminal device and the identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device.
  • delete modules are used to:
  • the terminal move-out instruction includes the address of the first terminal equipment, and the terminal move-out instruction is used to instruct the first terminal equipment to leave the first terminal Internet equipment.
  • the sending module is also used for:
  • the original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent to the control device through the VXLAN tunnel between the first network device and the control device.
  • the first network device when the first network device determines that the first terminal device is not connected to itself, it will send an error message pass message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device.
  • the notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time.
  • the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • the first network device provided in the above embodiment establishes a VXLAN tunnel
  • only the division of the above functional modules is used as an example for illustration.
  • the above functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above.
  • the first network device provided in the above embodiment and the method embodiment for establishing a VXLAN tunnel belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.
  • FIG. 7 is a schematic structural diagram of a control device provided by an embodiment of the present application. As shown in FIG. 7, the control device 700 includes:
  • the receiving module 701 is configured to receive an error message notification message from a first network device in the VXLAN, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device.
  • the message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives a VXLAN message from the second network device and sent to the first terminal device, where the VXLAN includes multiple network devices, The first network device and the second network device are two of the multiple network devices;
  • the sending module 702 is configured to send a terminal change message to the second network device, where the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates that the first terminal device is currently connected to the third network device.
  • the receiving module is further configured to receive a terminal relocation notification from the first network device, where the terminal relocation notification includes the address of the first terminal device and the identifier of the first network device, and the terminal relocation notification instructs the first terminal device to leave the first network equipment;
  • the control device further includes a deletion module configured to delete the address of the first terminal device from the terminal access set of the first network device, where the terminal access set includes addresses of each terminal device connected to the first network device.
  • the receiving module is further configured to receive a terminal access announcement message sent from a third network device, where the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, and the terminal access announcement message indicates that the first terminal device is connected at a third network device;
  • the control device further includes a deletion module, configured to delete the address of the first terminal device in the terminal access set of the first network device if the address of the first terminal device is included in the terminal access set of the first network device;
  • the sending module is further configured to send a terminal relocation instruction to the first network device, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device.
  • control device further includes:
  • the adding module is configured to add the address of the first terminal device to the terminal access set of the third network device.
  • the first network device when the first network device determines that the first terminal device is not connected to itself, it will send an error message pass message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device.
  • the notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time.
  • the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.
  • control device provided in the above embodiment establishes a VXLAN tunnel
  • only the division of the above functional modules is used as an example.
  • the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • control device provided in the above embodiment and the method embodiment for establishing a VXLAN tunnel belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.
  • FIG. 8 is a schematic structural diagram of a network device provided by an embodiment of the present application. Any network device or control device in the foregoing embodiments may be implemented by the network device shown in FIG. 8 .
  • the network device includes at least one processor 801 , a communication bus 802 , a memory 803 and at least one communication interface 804 .
  • the processor 801 may be a general-purpose central processing unit (central processing unit, CPU), an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the deletion module in the embodiment of FIG. 6 and the functions of the deletion module and the addition module in the embodiment of FIG. 7 can all be implemented by a processor.
  • Communication bus 802 may include a path to communicate information between the aforementioned components.
  • the memory 803 may be read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), optical disk (including compact disc read-only memory (CD-ROM), compact disc, laser disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk or other magnetic storage device, or capable of carrying or storing instructions or data A desired program code in a structured form and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 803 can exist independently and is connected to the processor 801 through the communication bus 802 .
  • the memory 803 may also be integrated with the processor 801 .
  • the memory 803 is used for storing the program code for executing the solution of the present application, and the execution is controlled by the processor 801 .
  • the processor 801 is used to execute program codes stored in the memory 803 .
  • One or more software modules may be included in the program code.
  • the network device or control device in FIGS. 1 to 6 may determine data for developing an application through the processor 801 and one or more software modules in the program code in the memory 803 .
  • Communication interface 804 using any transceiver-like device, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
  • RAN radio access network
  • WLAN wireless local area networks
  • the functions of the receiving module and the sending module in the embodiment of FIG. 6 or FIG. 7 may be implemented through a communication interface.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, digital versatile disc (DVD)), or semiconductor media (eg, solid state disk (SSD)) )Wait.

Landscapes

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

Abstract

Disclosed are a method for creating a VXLAN tunnel and related devices, which belongs to the technical field of communication. In the method, if a first terminal device migrates out from a first network device, even if a forwarding list at a second network device is not promptly updated which leads to a first VXLAN message being mistakenly sent to the first network device, a control device can still be notified of the migration circumstance by means of an error message notification message, so that the second network device is notified by means of the control device, and the second network device can promptly update the forwarding list. Therefore, when a terminal device migrates, the method provided in the present application dynamically changes a VXLAN tunnel that is created in the forwarding list, so that a VXLAN tunnel created in a network can characterize the VXLAN tunnel which is currently required in real time. The flexibility with which VXLAN tunnels are created is increased, so that the VXLAN does not need to keep all of the VXLAN tunnels between devices.

Description

建立VXLAN隧道的方法及相关设备Method and related equipment for establishing VXLAN tunnel

本申请实施例要求于2020年6月30日提交的申请号为202010615448.X、发明名称为“建立VXLAN隧道的方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请实施例中。The embodiments of this application claim the priority of the Chinese patent application with the application number 202010615448.X and the invention titled "Method for Establishing a VXLAN Tunnel and Related Equipment" filed on June 30, 2020, the entire contents of which are incorporated herein by reference application examples.

技术领域technical field

本申请涉及通信技术领域,特别涉及一种建立虚拟扩展局域网(virtual extensible local area network,VXLAN)隧道的方法及相关设备。The present application relates to the field of communication technologies, and in particular, to a method for establishing a virtual extensible local area network (VXLAN) tunnel and related equipment.

背景技术Background technique

VXLAN是一种在底层网络基础上构建的虚拟网络。VXLAN中包括边界(border)设备和边缘(edge)设备这两种角色的虚拟网络设备。边界设备作为VXLAN的网络出口,负责将VXLAN中的报文转发至其他VXLAN或非VXLAN。边缘设备作为VXLAN的业务接入点,负责将用户设备的报文转发至VXLAN中。边界设备和边缘设备之间、以及边缘设备和边缘设备建立有VXLAN隧道,以实现报文在VXLAN中的转发。VXLAN is a virtual network built on the underlying network. VXLAN includes virtual network devices with two roles of border (border) device and edge (edge) device. As the network egress of the VXLAN, the border device is responsible for forwarding the packets in the VXLAN to other VXLANs or non-VXLANs. As the service access point of the VXLAN, the edge device is responsible for forwarding the packets of the user equipment to the VXLAN. A VXLAN tunnel is established between the edge device and the edge device, as well as between the edge device and the edge device, to implement packet forwarding in the VXLAN.

相关技术中,对于VXLAN中包括的一个边界设备和多个边缘设备,预先通过动态路由的方式在任一边缘设备和边界设备之间、以及任意两个边缘设备之间建立VXLAN隧道。这种建立VXLAN隧道的方式需要建立VXLAN中所有设备之间的VXLAN隧道,导致建立VXLAN隧道的灵活性较低。In the related art, for one edge device and multiple edge devices included in the VXLAN, a VXLAN tunnel is established in advance between any edge device and the edge device, and between any two edge devices in a dynamic routing manner. This method of establishing a VXLAN tunnel requires establishing a VXLAN tunnel between all devices in the VXLAN, resulting in low flexibility in establishing a VXLAN tunnel.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种建立VXLAN隧道的方法及相关设备,可以提高建立VXLAN隧道的灵活性。该技术方案如下:The present application provides a method and related equipment for establishing a VXLAN tunnel, which can improve the flexibility of establishing a VXLAN tunnel. The technical solution is as follows:

第一方面,提供了一种建立虚拟扩展局域网VXLAN隧道的方法,该方法应用于VXLAN中的第一网络设备,VXLAN中包括多个网络设备,任一网络设备和控制设备之间建立有VXLAN隧道,第一网络设备为这多个网络设备中的一个。在该方法中,接收来自第二网络设备的第一VXLAN报文,第一VXLAN报文包括的原始帧的目的地址为第一终端设备的地址;如果第一网络设备所连接的终端设备中没有第一终端设备,则向控制设备发送错误报文通告消息,错误报文通告消息包括第一终端设备的地址、第一网络设备的标识以及第二网络设备的标识,错误报文通告消息指示第一终端设备没有与第一网络设备连接,但第一网络设备仍接收到来自第二网络设备且发送至第一终端设备的VXLAN报文。A first aspect provides a method for establishing a virtual extended local area network VXLAN tunnel, the method is applied to a first network device in the VXLAN, the VXLAN includes multiple network devices, and a VXLAN tunnel is established between any network device and a control device. , the first network device is one of the multiple network devices. In this method, a first VXLAN message from the second network device is received, and the destination address of the original frame included in the first VXLAN message is the address of the first terminal device; if there is no terminal device connected to the first network device The first terminal device sends an error message notification message to the control device, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device, and the error message notification message indicates the first terminal device. A terminal device is not connected to the first network device, but the first network device still receives the VXLAN packet from the second network device and sent to the first terminal device.

通过本申请提供的建立VXLAN隧道的方法,由于第一网络设备在确定第一终端设备没有与自身连接时,将向控制设备发送错误报文通过消息。因此,如果第一终端设备从第一网络设备处迁出,那么即使由于第二网络设备处的转发表没有及时更新导致将第一VXLAN报文错误地发送至第一网络设备,通过错误报文通告消息仍然可以将该迁出情况通知至控制设备,以通过控制设备来通告第二网络设备,从而使得第二网络设备及时更新转发表。因此, 通过本申请提供的方法,能够在终端设备发生迁移时动态变更转发表中已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。With the method for establishing a VXLAN tunnel provided by the present application, when the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device. The notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time. Therefore, the method provided by the present application can dynamically change the VXLAN tunnel established in the forwarding table when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the VXLAN tunnel currently required in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

需要说明的是,在本申请中,建立VXLAN隧道实质上就是获取VXLAN隧道的标识,然后建立报文的目的地址和隧道标识之间的对应关系,以便于后续发送至该目的地址的报文均能够通过该VXLAN隧道转发。该隧道标识可为VXLAN隧道对端设备的标识(如对端设备的IP地址)。该隧道标识还可除VXLAN隧道对端设备的标识之外的其他唯一能够标识隧道的符号,比如隧道标识为针对VXLAN隧道的一个唯一编号。网络设备用该编号可以索引到相应的表项,表项内存放有包括对端设备的IP地址在内的VXLAN隧道参数。It should be noted that, in this application, establishing a VXLAN tunnel is essentially to obtain the identifier of the VXLAN tunnel, and then establish a correspondence between the destination address of the packet and the tunnel identifier, so that subsequent packets sent to the destination address are all can be forwarded through this VXLAN tunnel. The tunnel identifier may be the identifier of the peer device of the VXLAN tunnel (eg, the IP address of the peer device). The tunnel identifier may also be other symbols uniquely capable of identifying the tunnel in addition to the identifier of the peer device of the VXLAN tunnel, for example, the tunnel identifier is a unique number for the VXLAN tunnel. The network device can use this number to index the corresponding entry, and the entry stores the VXLAN tunnel parameters including the IP address of the peer device.

基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,当第一终端设备离开第一网络设备时,从第一网络设备的终端接入集合中删除第一终端设备的地址,终端接入集合中包括连接第一网络设备的各个终端设备的地址。Based on the method provided by the first aspect, in a possible implementation manner, in the method, when the first terminal device leaves the first network device, the first terminal device is deleted from the terminal access set of the first network device address, the terminal access set includes the addresses of each terminal device connected to the first network device.

通过上述实现方式,各个网络设备在终端设备发生迁移时,能够及时更新终端接入集合,以使终端接入集合更够准备表征时下连接网络设备的各个终端设备,从而便于后续动态变更VXLAN隧道。Through the above implementation manner, each network device can update the terminal access set in time when the terminal device is migrated, so that the terminal access set is more ready to represent each terminal device currently connected to the network device, so as to facilitate the subsequent dynamic change of the VXLAN tunnel.

基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,如果检测到第一终端设备和第一网络设备断开通信,则确定第一终端设备离开第一网络设备。Based on the method provided by the first aspect, in a possible implementation manner, in the method, if it is detected that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device.

上述实现方式应用于第一网络设备能够感知到第一终端设备迁移出去的场景,这种场景下,如果第一网络设备检测到第一终端设备和第一网络设备断开通信,则确定第一终端设备从第一网络设备处迁移出去。The above implementation manner is applied to the scenario in which the first network device can perceive the migration of the first terminal device. In this scenario, if the first network device detects that the first terminal device and the first network device are disconnected from communication, the first The terminal device is migrated from the first network device.

基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,第一终端设备离开第一网络设备时,向控制设备发送终端迁出通知,终端迁出通知包括第一终端设备的地址和第一网络设备的标识,终端迁出通知指示第一终端设备离开第一网络设备。Based on the method provided by the first aspect, in a possible implementation manner, in the method, when the first terminal device leaves the first network device, it sends a terminal relocation notification to the control device, and the terminal relocation notification includes the first terminal The address of the device and the identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device.

由此可知,在第一网络设备能够感知到第一终端设备迁移的场景中,第一网络设备不仅删除本地的终端接入集合中第一终端设备的地址,还通告控制设备也删除第一网络设备的终端接入集合中第一终端设备的地址。这样做的技术效果为:能够使得控制设备和网络设备处存储的终端接入集合实时准确地表征终端设备的连接情况,如此才能在后续其他终端设备访问已经发生迁移的终端设备时,能够动态变更已经建立的VXLAN隧道。It can be seen from this that in the scenario where the first network device can perceive the migration of the first terminal device, the first network device not only deletes the address of the first terminal device in the local terminal access set, but also notifies the control device to delete the first network as well. The address of the first terminal device in the terminal access set of the device. The technical effect of this is that the terminal access set stored at the control device and the network device can accurately represent the connection status of the terminal device in real time, so that when other terminal devices access the terminal device that has been migrated, it can be dynamically changed. An established VXLAN tunnel.

基于第一方面提供的方法,在一种可能的实现方式中,上述确定第一终端设备离开第一网络设备的实现过程为:如果接收到来自控制设备的终端迁出指示,则确定第一终端设备离开第一网络设备,终端迁出指示包括第一终端设备的地址,终端迁出指示用于指示第一终端设备离开第一网络设备。Based on the method provided in the first aspect, in a possible implementation manner, the above-mentioned implementation process of determining that the first terminal device has left the first network device is: if a terminal move-out instruction from the control device is received, determining that the first terminal When the device leaves the first network device, the terminal move-out instruction includes the address of the first terminal device, and the terminal move-out instruction is used to instruct the first terminal device to leave the first network device.

上述实现方式应用于第一网络设备无法感知第一终端设备迁移出去的场景,因此在第一终端设备迁移出去时,第一网络设备并不能立即将第一终端设备的信息从终端信息中删除掉。而是借助控制设备的通告来确定第一终端设备迁移出去。The above implementation manner is applied to a scenario where the first network device cannot perceive the migration of the first terminal device. Therefore, when the first terminal device migrates out, the first network device cannot immediately delete the information of the first terminal device from the terminal information. . Instead, it is determined by the notification of the control device that the first terminal device has migrated out.

基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,将原始帧封装为第二VXLAN报文,将第二VXLAN报文经由第一网络设备到控制设备之间的VXLAN隧道发送至控制设备。Based on the method provided in the first aspect, in a possible implementation manner, in the method, the original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent via the first network device to the control device. The VXLAN tunnel is sent to the control device.

在第一网络设备接收到不是到达自身连接的终端设备的VXLAN报文的情况下,第一网络设备可将第一VXLAN报文重新封装由控制设备来转发。When the first network device receives a VXLAN packet that does not reach the terminal device connected to itself, the first network device may re-encapsulate the first VXLAN packet and forward it by the control device.

第二方面,提供了一种建立虚拟扩展局域网VXLAN隧道的方法,该方法应用于控制设备。在该方法中,接收来自VXLAN中的第一网络设备的错误报文通告消息,错误报文通告消息包括第一终端设备的地址、第一网络设备的标识以及第二网络设备的标识,错误报文通告消息指示第一终端设备没有与第一网络设备连接,但第一网络设备仍接收到来自第二网络设备且发送至第一终端设备的VXLAN报文,VXLAN中包括多个网络设备,第一网络设备和第二网络设备为多个网络设备中的两个;向第二网络设备发送终端变更消息,终端变更消息包括第一终端设备的地址和第三网络设备的标识,终端变更消息指示第一终端设备当前连接第三网络设备。In a second aspect, a method for establishing a virtual extended local area network VXLAN tunnel is provided, and the method is applied to a control device. In this method, an error message notification message from a first network device in the VXLAN is received, and the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device. The message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the VXLAN message from the second network device and sent to the first terminal device. The VXLAN includes multiple network devices. A network device and a second network device are two of multiple network devices; send a terminal change message to the second network device, the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates The first terminal device is currently connected to the third network device.

通过本申请提供的建立VXLAN隧道的方法,由于第一网络设备在确定第一终端设备没有与自身连接时,将向控制设备发送错误报文通过消息。因此,如果第一终端设备从第一网络设备处迁出,那么即使由于第二网络设备处的转发表没有及时更新导致将VXLAN报文错误地发送至第一网络设备,通过错误报文通告消息仍然可以将该迁出情况通知至控制设备,以通过控制设备来通告第二网络设备,从而使得第二网络设备及时更新转发表。因此,通过本申请提供的方法,能够在终端设备发生迁移时动态变更转发表中已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。With the method for establishing a VXLAN tunnel provided by the present application, when the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device moves out from the first network device, even if the VXLAN packet is erroneously sent to the first network device because the forwarding table at the second network device is not updated in time, the error message notification message is sent to the first network device. It is still possible to notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time. Therefore, the method provided by the present application can dynamically change the VXLAN tunnel that has been established in the forwarding table when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the VXLAN tunnel currently required in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

基于第二方面提供的方法,在一种可能的实现方式中。在该方法中,接收来自第一网络设备的终端迁出通知,终端迁出通知包括第一终端设备的地址和第一网络设备的标识,终端迁出通知指示第一终端设备离开第一网络设备;从第一网络设备的终端接入集合中删除第一终端设备的地址,终端接入集合中包括连接第一网络设备的各个终端设备的地址。Based on the method provided by the second aspect, in a possible implementation manner. In this method, a terminal move-out notification from a first network device is received, the terminal move-out notification includes an address of the first terminal device and an identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device ; delete the address of the first terminal device from the terminal access set of the first network device, where the terminal access set includes the addresses of each terminal device connected to the first network device.

由此可知,在第一网络设备能够感知到第一终端设备迁移的场景中,第一网络设备通告控制设备也删除第一网络设备的终端接入集合中第一终端设备的地址。这样做的技术效果为:能够使得控制设备存储的终端接入集合实时准确地表征终端设备的连接情况,如此才能在后续其他终端设备访问已经发生迁移的终端设备时,能够动态变更已经建立的VXLAN隧道。It can be seen from this that in a scenario where the first network device can perceive the migration of the first terminal device, the first network device notifies the control device to also delete the address of the first terminal device in the terminal access set of the first network device. The technical effect of this is that the terminal access set stored by the control device can accurately represent the connection status of the terminal device in real time, so that when other terminal devices access the terminal device that has been migrated, the established VXLAN can be dynamically changed. tunnel.

基于第二方面提供的方法,在一种可能的实现方式中,接收来自第三网络设备发送的终端接入通告消息,终端接入通告消息包括第一终端设备地址和第三网络设备的标识,终端接入通告消息指示第一终端设备连接在第三网络设备处;如果第一网络设备的终端接入集合中包括第一终端设备的地址,则删除第一网络设备的终端接入集合中第一终端设备的地址并向第一网络设备发送终端迁出指示,终端迁出指示包括第一终端设备的地址,终端迁出指示用于指示第一终端设备离开第一网络设备。Based on the method provided in the second aspect, in a possible implementation manner, a terminal access announcement message sent from a third network device is received, where the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, The terminal access announcement message indicates that the first terminal device is connected to the third network device; if the address of the first terminal device is included in the terminal access set of the first network device, delete the first terminal device in the terminal access set of the first network device. The address of a terminal device is sent to the first network device, and the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device.

上述实现方式应用于第一网络设备无法感知第一终端设备迁移出去的场景,因此在第一终端设备迁移出去时,第一网络设备并不能立即将第一终端设备的信息从终端接入集合中删除掉。而是借助第一终端设备新接入的网络设备的通告来确定第一终端设备迁移出去。The above implementation manner is applied to a scenario where the first network device cannot perceive the migration of the first terminal device. Therefore, when the first terminal device migrates out, the first network device cannot immediately remove the information of the first terminal device from the terminal access set. delete. Instead, it is determined that the first terminal device has migrated out by means of the advertisement of the network device newly accessed by the first terminal device.

基于第二方面提供的方法,在一种可能的实现方式中,在接收来自第三网络设备发送的终端接入通告消息之后,将第一终端设备的地址添加到第三网络设备的终端接入集合中。Based on the method provided in the second aspect, in a possible implementation manner, after receiving the terminal access announcement message sent from the third network device, the address of the first terminal device is added to the terminal access of the third network device in the collection.

在借助第一终端设备新接入的网络设备的通告来确定第一终端设备迁移出去的场景中,还可以基于第一终端设备新接入的网络设备的通告对新接入的网络设备的终端接入集合进行及时更新,以使控制设备处存储的终端接入集合实时准确地表征终端设备的连接情况。In the scenario in which it is determined that the first terminal device has migrated out based on the notification of the network device newly accessed by the first terminal device, the terminal of the newly accessed network device may also be notified based on the notification of the network device newly accessed by the first terminal device. The access set is updated in time, so that the terminal access set stored at the control device can accurately represent the connection situation of the terminal device in real time.

第三方面,提供了一种VXLAN中的第一网络设备,该第一网络设备具有实现上述第一方面中建立VXLAN隧道的方法行为的功能。该第一网络设备包括至少一个模块,该至少一个模块用于实现上述第一方面所提供的建立VXLAN隧道的方法。In a third aspect, a first network device in a VXLAN is provided, where the first network device has a function of implementing the behavior of the method for establishing a VXLAN tunnel in the first aspect. The first network device includes at least one module, and the at least one module is configured to implement the method for establishing a VXLAN tunnel provided by the above-mentioned first aspect.

第四方面,提供了一种控制设备,该控制设备具有实现上述第二方面中建立VXLAN隧道的方法行为的功能。该控制设备包括至少一个模块,该至少一个模块用于实现上述第二方面所提供的建立VXLAN隧道的方法。In a fourth aspect, a control device is provided, and the control device has a function of implementing the behavior of the method for establishing a VXLAN tunnel in the second aspect. The control device includes at least one module, and the at least one module is configured to implement the method for establishing a VXLAN tunnel provided in the second aspect above.

第五方面,提供了一种第一网络设备,第一网络设备的结构中包括处理器和存储器,存储器用于存储支持该装置执行上述第一方面所提供的建立VXLAN隧道的方法的程序,以及存储用于实现上述第一方面所提供的建立VXLAN隧道的方法所涉及的数据。处理器被配置为用于执行存储器中存储的程序。存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。A fifth aspect provides a first network device, the structure of the first network device includes a processor and a memory, and the memory is used to store a program that supports the apparatus to execute the method for establishing a VXLAN tunnel provided in the first aspect, and Data involved in implementing the method for establishing a VXLAN tunnel provided by the first aspect is stored. The processor is configured to execute programs stored in the memory. The operating means of the memory device may also include a communication bus for establishing a connection between the processor and the memory.

第六方面,提供了一种控制设备,该控制设备的结构中包括处理器和存储器,存储器用于存储支持该装置执行上述第二方面所提供的建立VXLAN隧道的方法的程序,以及存储用于实现上述第二方面所提供的建立VXLAN隧道的方法所涉及的数据。处理器被配置为用于执行存储器中存储的程序。存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。In a sixth aspect, a control device is provided, the structure of the control device includes a processor and a memory, and the memory is used to store a program that supports the apparatus to perform the method for establishing a VXLAN tunnel provided in the second aspect, and stores a program for Data involved in implementing the method for establishing a VXLAN tunnel provided in the second aspect above. The processor is configured to execute programs stored in the memory. The operating means of the memory device may also include a communication bus for establishing a connection between the processor and the memory.

第七方面,提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面的建立VXLAN隧道的方法。In a seventh aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer executes the method for establishing a VXLAN tunnel of the first aspect or the second aspect.

第八方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面的建立VXLAN隧道的方法。In an eighth aspect, there is provided a computer program product comprising instructions, which, when executed on a computer, cause the computer to perform the method for establishing a VXLAN tunnel of the first or second aspect above.

上述第三方面至第八方面所获得的技术效果与第一方面和第二方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the third aspect to the eighth aspect are similar to the technical effects obtained by the corresponding technical means in the first aspect and the second aspect, and will not be repeated here.

附图说明Description of drawings

图1是本申请实施例提供的一种VXLAN的系统示意图;Fig. 1 is a system schematic diagram of a VXLAN provided by an embodiment of the present application;

图2是本申请实施例提供的一种更新用户信息的流程示意图;FIG. 2 is a schematic flowchart of updating user information provided by an embodiment of the present application;

图3是本申请实施例提供的一种建立VXLAN隧道的方法流程图;3 is a flowchart of a method for establishing a VXLAN tunnel provided by an embodiment of the present application;

图4是本申请实施例提供的一种VXLAN报文的格式示意图;4 is a schematic diagram of a format of a VXLAN message provided by an embodiment of the present application;

图5本申请实施例提供的另一种建立VXLAN隧道的方法流程图;FIG. 5 is a flowchart of another method for establishing a VXLAN tunnel provided by an embodiment of the present application;

图6本申请实施例提供的一种第一网络设备的结构示意图;FIG. 6 is a schematic structural diagram of a first network device provided by an embodiment of the present application;

图7本申请实施例提供的一种控制设备的结构示意图;7 is a schematic structural diagram of a control device provided by an embodiment of the present application;

图8本申请实施例提供的一种网络设备的结构示意图。FIG. 8 is a schematic structural diagram of a network device provided by an embodiment of the present application.

具体实施方式detailed description

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

在对本申请实施例进行详细说明之前,先对本申请实施例涉及的应用场景进行详细解释说明。Before describing the embodiments of the present application in detail, the application scenarios involved in the embodiments of the present application are explained in detail.

VXLAN能够在任意路由可达的底层网络上叠加二层虚拟网络,通过VXLAN网关实现VXLAN网络内部的互通,同时,通过VXLAN网络也能够实现与传统的非VXLAN网络的互通。VXLAN技术通过采用媒介接入控制(Media Access Control,MAC)置入(in)用户报文协议(User Datagram Protocol,UDP)的封装方式来延伸二层网络,将以太报文封装在网络(internet protocol,IP)报文之上,通过VXLAN网关在网络中传输,无需关注虚拟机等终端设备的MAC地址。由于路由网络无网络结构限制,因此具备大规模扩展能力。所以通过路由网络,虚拟机等终端设备迁移不受网络架构限制。通过VXLAN能够满足数据中心网络的虚拟迁移和多租户的需求。同样,VXLAN也适用于园区网络中“一网多用”的场景。比如,将同一张承载网虚拟为多张业务网络,实现不同业务网络之间的相互隔离。VXLAN can superimpose Layer 2 virtual network on any routeable underlying network, realize intercommunication within VXLAN network through VXLAN gateway, and also realize intercommunication with traditional non-VXLAN network through VXLAN network. VXLAN technology extends the Layer 2 network by adopting the encapsulation method of Media Access Control (MAC) into (in) User Datagram Protocol (UDP), and encapsulates Ethernet packets in the network (internet protocol). , IP) packets are transmitted in the network through the VXLAN gateway, without paying attention to the MAC addresses of terminal devices such as virtual machines. Since the routing network has no network structure restrictions, it has the ability to expand on a large scale. Therefore, through the routing network, the migration of terminal devices such as virtual machines is not limited by the network architecture. VXLAN can meet the needs of virtual migration and multi-tenancy of data center networks. Similarly, VXLAN is also suitable for the scenario of "one network with multiple uses" in the campus network. For example, the same bearer network is virtualized into multiple service networks to achieve mutual isolation between different service networks.

为了后续便于说明,在此先对本申请实施例涉及的几个技术术语进行解释说明。For the convenience of subsequent descriptions, several technical terms involved in the embodiments of the present application are explained first.

VXLAN网络标识(VXLAN Network Identifier,VNI):类似于传统网络中的VLAN ID,用于区分VXLAN网段,不同VXLAN段的租户不能直接进行二层通信。一张网络可以划分一个或多个VNI。VXLAN Network Identifier (VNI): Similar to the VLAN ID in traditional networks, it is used to distinguish VXLAN network segments. Tenants in different VXLAN segments cannot directly communicate at Layer 2. A network can be divided into one or more VNIs.

广播域(Bridge Domain,BD):类似传统网络中采用VLAN划分广播域方法,在VXLAN网络中通过BD划分广播域。在VXLAN网络中,将VNI以1:1方式映射到广播域BD,一个BD就表示着一个广播域,同一个BD内的主机就可以进行二层互通。Broadcast domain (Bridge Domain, BD): Similar to the method of dividing the broadcast domain by VLAN in the traditional network, the broadcast domain is divided by BD in the VXLAN network. In a VXLAN network, a VNI is mapped to a broadcast domain BD in a 1:1 manner. A BD represents a broadcast domain, and hosts in the same BD can communicate at Layer 2.

VXLAN隧道端点(VXLAN Tunnel Endpoints,VTEP):VTEP可以对VXLAN报文进行封装和解封装。VXLAN报文中源IP地址为源端VTEP的IP地址,目的IP地址为目的端VTEP的IP地址。一对VTEP地址就对应着一条VXLAN隧道。在源端封装报文后通过隧道向目的端VTEP发送封装报文,目的端VTEP对接收到的封装报文进行解封装。VXLAN Tunnel Endpoints (VTEP): VTEP can encapsulate and decapsulate VXLAN packets. In a VXLAN packet, the source IP address is the IP address of the source VTEP, and the destination IP address is the IP address of the destination VTEP. A pair of VTEP addresses corresponds to a VXLAN tunnel. After the source end encapsulates the packet, the encapsulated packet is sent to the destination VTEP through the tunnel, and the destination VTEP decapsulates the received encapsulated packet.

虚拟接入点(Virtual Access Point,VAP):VXLAN业务接入点,可以基于VLAN或报文流封装类型接入业务。Virtual Access Point (VAP): VXLAN service access point, which can access services based on VLAN or packet flow encapsulation type.

网络虚拟边缘(Network Virtualization Edge,NVE):NVE是实现网络虚拟化功能的网络实体。报文经过NVE封装转换后,NVE间就可基于三层基础网络建立二层虚拟化网络。Network Virtualization Edge (NVE): NVE is a network entity that implements network virtualization functions. After the packets are encapsulated and converted by NVE, a Layer 2 virtualized network can be established between NVEs based on the Layer 3 basic network.

类似于传统的VLAN网络,VXLAN网络也有VXLAN网络内互访和VXLAN网络间互访。Similar to the traditional VLAN network, the VXLAN network also has mutual access within the VXLAN network and mutual access between the VXLAN networks.

二层网关:类似传统网络的二层接入设备,在VXLAN网络中通过二层网关解决租户接入VXLAN虚拟网络。二层网关也可用于同一VXLAN虚拟网络的子网通信。结合前述对边缘设备和边界设备的功能的解释,在VXLAN中,边缘设备即可作为二层网关来使用。Layer 2 gateway: Similar to a Layer 2 access device on a traditional network, in a VXLAN network, a Layer 2 gateway enables tenants to access the VXLAN virtual network. Layer 2 gateways can also be used for subnet communication within the same VXLAN virtual network. Combined with the foregoing explanation of the functions of edge devices and edge devices, in VXLAN, edge devices can be used as Layer 2 gateways.

三层网关:类似传统网络中不同VLAN的用户间不能直接进行二层互访,不同VNI之间 的VXLAN及VXLAN和非VXLAN之间也不能直接相互通信。为了使VXLAN之间,以及VXLAN和非VXLAN之间能够进行通信,引入了VXLAN三层网关的概念。三层网关用于VXLAN虚拟网络的跨子网通信以及外部网络的访问。同样地,结合前述对边缘设备和边界设备的功能的解释,在VXLAN中,边界设备即可作为三层网关来使用。Layer 3 gateway: Similar to traditional networks, users in different VLANs cannot directly communicate with each other at Layer 2, and VXLANs between different VNIs and between VXLANs and non-VXLANs cannot directly communicate with each other. To enable communication between VXLANs and between VXLANs and non-VXLANs, the concept of VXLAN Layer 3 gateways is introduced. Layer 3 gateways are used for cross-subnet communication of VXLAN virtual networks and access to external networks. Likewise, in conjunction with the foregoing explanations of the functions of the edge device and the edge device, in VXLAN, the edge device can be used as a Layer 3 gateway.

本申请实施例提供的方法就应用于上述通过VXLAN转发报文的场景中,目的在于实现在终端设备发生迁移时能够动态变更已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。The method provided by the embodiment of the present application is applied to the above scenario of forwarding packets through VXLAN, and the purpose is to dynamically change the established VXLAN tunnel when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demand in real time VXLAN tunnel. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

需要说明的是,在本申请实施例中,建立VXLAN隧道实质上就是获取VXLAN隧道的标识,然后建立报文的目的地址和隧道标识之间的对应关系,以便于后续发送至该目的地址的报文均能够通过该VXLAN隧道转发。该隧道标识可为VXLAN隧道对端设备的标识(如对端设备的IP地址),还可为除VXLAN隧道对端设备的标识之外的其他唯一能够标识隧道的符号,比如隧道标识为针对VXLAN隧道的一个唯一编号。网络设备用该编号可以索引到相应的表项,表项内存放有包括对端设备的IP地址在内的VXLAN隧道参数。It should be noted that, in this embodiment of the present application, establishing a VXLAN tunnel is essentially acquiring the identifier of the VXLAN tunnel, and then establishing a correspondence between the destination address of the packet and the tunnel identifier, so as to facilitate subsequent packets sent to the destination address. All messages can be forwarded through the VXLAN tunnel. The tunnel identifier can be the identifier of the peer device of the VXLAN tunnel (such as the IP address of the peer device), or it can be other unique symbols other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, the tunnel identifier is for VXLAN A unique number for the tunnel. The network device can use this number to index the corresponding entry, and the entry stores the VXLAN tunnel parameters including the IP address of the peer device.

下面对本申请实施例提供的建立VXLAN隧道的方法进行详细解释说明。本申请实施例提供的建立VXLAN隧道的方法应用于终端设备发生迁移时能够动态变更已经建立的VXLAN隧道的场景中。为了实现该技术效果,为VXLAN网络配置一个控制设备。在配置控制设备之后,在该控制设备和VXLAN中的各个网络设备之间进行如下配置。The method for establishing a VXLAN tunnel provided by the embodiment of the present application will be explained in detail below. The method for establishing a VXLAN tunnel provided by the embodiment of the present application is applied to a scenario in which an established VXLAN tunnel can be dynamically changed when a terminal device is migrated. To achieve this technical effect, configure a control device for the VXLAN network. After the control device is configured, the following configuration is performed between the control device and each network device in the VXLAN.

在一种可能的实现方式中,上述控制设备为VXLAN中的某个网络设备。控制设备也可以为上述VXLAN之外的设备,例如控制设备支持VXLAN但在和网络设备虚拟网络标识(VNI)不同的VXLAN中,或者,该控制设备可以不支持VXLAN。下面以控制设备为VXLAN中的某个网络设备为例说明配置过程。In a possible implementation manner, the above-mentioned control device is a certain network device in the VXLAN. The control device may also be a device other than the above VXLAN, for example, the control device supports VXLAN but is in a VXLAN different from the virtual network identifier (VNI) of the network device, or the control device may not support VXLAN. The following describes the configuration process by taking the control device as a network device in the VXLAN as an example.

控制设备处存储有VXLAN中任一网络设备的终端接入集合,任一网络设备本地也存储有自身的终端接入集合。任一网络设备的终端接入集合包括该网络设备所连接的各个终端设备的地址。并在终端设备发生迁移时,对控制设备处的终端接入集合以及网络设备处的终端接入集合进行更新。以便于后续在其他网络设备访问已经发生迁移的终端设备时,能够动态变更已经建立的VXLAN隧道。前述终端接入集合的数据结构可以为终端接入表、终端接入列表、终端接入链表等等,本申请实施例对终端接入集合的数据结构并不限定。The terminal access set of any network device in the VXLAN is stored at the control device, and any network device locally also stores its own terminal access set. The terminal access set of any network device includes the addresses of each terminal device connected to the network device. And when the terminal device migrates, the terminal access set at the control device and the terminal access set at the network device are updated. So that the established VXLAN tunnel can be dynamically changed when other network devices access the terminal device that has been migrated later. The data structure of the aforementioned terminal access set may be a terminal access list, a terminal access list, a terminal access linked list, etc. The embodiment of the present application does not limit the data structure of the terminal access set.

下述内容用于在终端设备发生迁移时,对控制设备处的终端接入集合以及网络设备处的终端接入集合进行更新进行详细解释说明。下述内容以第一终端设备从第一网络设备处迁移出去为例进行说明。第一网络设备为VXLAN中的任一设备,第一终端设备为接入第一网络设备的任一终端设备。The following content is used to explain in detail the update of the terminal access set at the control device and the terminal access set at the network device when the terminal device is migrated. The following content is described by taking the migration of the first terminal device from the first network device as an example. The first network device is any device in the VXLAN, and the first terminal device is any terminal device that accesses the first network device.

在一种可能的实现方式中,在第一终端设备接入第一网络设备之后,第一网络设备能够接收第一终端设备发送的报文,且该报文的源地址为第一终端设备。因此,如果第一网络设备首次接收到来自第一终端设备的报文,表明第一终端设备连接到第一网络设备处了,第一网络设备则将第一终端设备的地址添加到第一网络设备的终端接入集合中。后续,如果第一网络设备确定第一终端设备离开第一网络设备,则从第一网络设备的终端接入集合中删除第 一终端设备的地址。In a possible implementation manner, after the first terminal device accesses the first network device, the first network device can receive a packet sent by the first terminal device, and the source address of the packet is the first terminal device. Therefore, if the first network device receives a message from the first terminal device for the first time, it indicates that the first terminal device is connected to the first network device, and the first network device adds the address of the first terminal device to the first network In the terminal access set of the device. Subsequently, if the first network device determines that the first terminal device leaves the first network device, the address of the first terminal device is deleted from the terminal access set of the first network device.

需要说明的是,在某些场景下,第一网络设备能够感知到第一终端设备离开第一网络设备。但在某些场景下,第一网络设备无法感知到第一终端设备离开第一网络设备。下面分两种场景分别进行说明第一网络设备如何确定第一终端设备离开第一网络设备。It should be noted that, in some scenarios, the first network device can sense that the first terminal device leaves the first network device. However, in some scenarios, the first network device cannot sense that the first terminal device leaves the first network device. The following describes how the first network device determines that the first terminal device leaves the first network device in two scenarios.

(1)第一网络设备能够感知到第一终端设备离开(1) The first network device can sense that the first terminal device leaves

在这种场景下,如果第一网络设备检测到第一终端设备和第一网络设备断开通信,则确定第一终端设备离开第一网络设备。In this scenario, if the first network device detects that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device.

比如,第一终端设备是通过有线方式直接连接在第一网络设备,第一网络设备根据有线端口是否掉线(down)来确定第一终端设备是否离开第一网络设备。如果与第一终端设备连接的有线端口掉线,则确定第一终端设备离开第一网络设备。For example, the first terminal device is directly connected to the first network device in a wired manner, and the first network device determines whether the first terminal device leaves the first network device according to whether the wired port is down (down). If the wired port connected to the first terminal device is disconnected, it is determined that the first terminal device leaves the first network device.

又比如,第一网络设备作为第一终端设备的无线接入点,如果第一终端设备与该无线接入点解关联,第一网络设备能够识别到第一终端设备下线,那么第一网络设备则确定第一终端设备离开第一网络设备。For another example, the first network device is used as the wireless access point of the first terminal device. If the first terminal device is disassociated from the wireless access point and the first network device can recognize that the first terminal device is offline, then the first network device The device then determines that the first terminal device leaves the first network device.

又比如,如果第一网络设备在一定时长内接收到来自第一终端设备的流量,则确定第一终端设备离开第一网络设备。For another example, if the first network device receives traffic from the first terminal device within a certain period of time, it is determined that the first terminal device leaves the first network device.

在这种场景下,第一网络设备在检测到第一终端设备离开第一网络设备,除了从第一网络设备的终端接入集合中删除第一终端设备的标识,还向控制设备发送终端迁出通知,该终端迁出通知指示第一终端设备离开第一网络设备。控制设备接收第一网络设备发送的终端迁出通知,控制设备从第一网络设备的终端接入集合中删除第一终端设备的地址。In this scenario, when the first network device detects that the first terminal device leaves the first network device, in addition to deleting the identifier of the first terminal device from the terminal access set of the first network device, it also sends a terminal transition message to the control device. The terminal move-out notification instructs the first terminal device to leave the first network device. The control device receives the terminal migration notification sent by the first network device, and the control device deletes the address of the first terminal device from the terminal access set of the first network device.

由此可知,在第一网络设备能够感知到第一终端设备离开的场景中,第一网络设备不仅删除本地的终端接入集合中第一终端设备的地址,还通告控制设备也删除第一网络设备的终端接入集合中第一终端设备的地址。这样做的技术效果为:能够使得控制设备和网络设备处存储的终端接入集合实时准确地表征网络设备的所连接的终端设备是哪些,如此才能在后续其他终端设备访问已经发生迁移的终端设备时,能够动态变更已经建立的VXLAN隧道。It can be seen from this that in a scenario where the first network device can sense the departure of the first terminal device, the first network device not only deletes the address of the first terminal device in the local terminal access set, but also notifies the control device to delete the first network as well. The address of the first terminal device in the terminal access set of the device. The technical effect of this is: the terminal access set stored at the control device and the network device can accurately represent which terminal devices are connected to the network device in real time, so that other terminal devices can access the migrated terminal devices in the future. , the established VXLAN tunnel can be dynamically changed.

此外,为了能够实现VXLAN中的其他网络设备和控制设备的通信,在一种可能的实现方式中,预先在控制设备和VXLAN中的其他网络设备上部署虚拟网络控制协议(overlaycontrol protocol,OCP),以使控制设备作为OCP服务端(OCP server),VXLAN中的其他网络设备作为OCP客户端(OCP client)。In addition, in order to realize the communication between other network devices in VXLAN and the control device, in a possible implementation manner, a virtual network control protocol (overlaycontrol protocol, OCP) is pre-deployed on the control device and other network devices in VXLAN, So that the control device acts as the OCP server (OCP server), and other network devices in the VXLAN act as the OCP client (OCP client).

由于OCP客户端OCP服务端之间可以进行信息交互,因此,上述第一网络设备向控制设备发送的终端迁出通知能够通过OCP协议发送。Since the OCP client and the OCP server can exchange information, the terminal migration notification sent by the first network device to the control device can be sent through the OCP protocol.

此外,可选地,在VXLAN网络初始化时,任一网络设备可与控制设备先建立VXLAN隧道。以便于后续某个网络设备接收到目的地不是自己所连接的终端设备的VXLAN报文时,能够通过控制设备将VXLAN报文绕道转发。在任一网络设备与控制设备建立有VXLAN隧道的情况下,上述终端迁出通知便可通过VXLAN隧道转发。In addition, optionally, when the VXLAN network is initialized, any network device may first establish a VXLAN tunnel with the control device. Therefore, when a certain network device receives a VXLAN message whose destination is not the terminal device to which it is connected, it can forward the VXLAN message in a detour through the control device. When a VXLAN tunnel is established between any network device and the control device, the above-mentioned terminal migration notification can be forwarded through the VXLAN tunnel.

图1是本申请实施例提供的一种VXLAN的架构示意图。该VXLAN中包括5个VXLAN隧道端点(VXLAN Tunnel Endpoints,VTEP),分别标记为VTEP-1、VTEP-2、VTEP-3、VTEP-4、VTEP-5。其中,VTEP P-1、VTEP-2、VTEP-3、VTEP-4为网络设备,VTEP-5为控制设备。分别在VTEP-1、VTEP-2、VTEP-3、VTEP-4和VTEP-5上部署OCP协议,以使VTEP-5作为OCP服务端,VTEP P-1、VTEP-2、VTEP-3、VTEP-4作为OCP客户端。FIG. 1 is a schematic diagram of the architecture of a VXLAN provided by an embodiment of the present application. The VXLAN includes five VXLAN tunnel endpoints (VXLAN Tunnel Endpoints, VTEP), which are marked as VTEP-1, VTEP-2, VTEP-3, VTEP-4, and VTEP-5. Among them, VTEP P-1, VTEP-2, VTEP-3, VTEP-4 are network equipment, and VTEP-5 is control equipment. Deploy the OCP protocol on VTEP-1, VTEP-2, VTEP-3, VTEP-4, and VTEP-5 respectively, so that VTEP-5 acts as the OCP server, VTEP P-1, VTEP-2, VTEP-3, VTEP -4 as OCP client.

如图5所示,基于部署的OCP协议,VTEP-1、VTEP-2、VTEP-3、VTEP-4分别与VTEP-5建立VXLAN隧道,得到如图5所示的南北方向的4条VXLAN隧道。VTEP-1、VTEP-2、VTEP-3、VTEP-4之间并不建立VXLAN隧道。而是在后续基于流量需求动态建立网络设备之间的VXLAN隧道,并在终端设备发生迁移时动态变更网络设备之间的VXLAN隧道。需要说明的是,本申请实施例并不限定基于流量需求动态建立网络设备之间的VXLAN隧道的具体实现方式。As shown in Figure 5, based on the deployed OCP protocol, VTEP-1, VTEP-2, VTEP-3, and VTEP-4 establish VXLAN tunnels with VTEP-5 respectively, and obtain four VXLAN tunnels in the north-south direction as shown in Figure 5. . VXLAN tunnels are not established between VTEP-1, VTEP-2, VTEP-3, and VTEP-4. Instead, VXLAN tunnels between network devices are dynamically established later based on traffic requirements, and VXLAN tunnels between network devices are dynamically changed when terminal devices are migrated. It should be noted that the embodiments of the present application do not limit the specific implementation manner of dynamically establishing a VXLAN tunnel between network devices based on traffic requirements.

此外,上述OCP协议仅仅是实现控制设备和网络设备进行通信的一种可选的控制面协议。本申请实施例并不限定控制设备如何建立与各个网络设备之间的控制面协议。In addition, the above-mentioned OCP protocol is only an optional control plane protocol for realizing the communication between the control device and the network device. This embodiment of the present application does not limit how the control device establishes the control plane protocol with each network device.

另外,在基于流量需求动态建立网络设备之间的VXLAN隧道时,如果采用老化时间的方式来删除长久闲置的VXLAN隧道,对于终端设备迁移的情况,则不能及时变更VXLAN隧道,同样导致转发表资源的浪费。这种场景下,通过本申请实施例提供的建立VXLAN隧道的方法,在终端设备发生迁移时能够动态变更已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。In addition, when a VXLAN tunnel is dynamically established between network devices based on traffic requirements, if the aging time method is used to delete a VXLAN tunnel that has been idle for a long time, in the case of terminal device migration, the VXLAN tunnel cannot be changed in time, which also leads to forwarding table resources. of waste. In this scenario, through the method for establishing a VXLAN tunnel provided by the embodiments of the present application, the established VXLAN tunnel can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

(2)第一网络设备无法感知到第一终端设备离开(2) The first network device cannot sense that the first terminal device leaves

比如,第一终端设备是先连接HUB(集线器)设备,HUB设备再连接第一网络设备。这种情况下,如果第一终端设备与HUB设备断开连接,第一网络设备将无法感知到第一终端设备离开。For example, the first terminal device is first connected to a HUB (hub) device, and then the HUB device is connected to the first network device. In this case, if the first terminal device is disconnected from the HUB device, the first network device cannot sense the departure of the first terminal device.

又比如,第一网络设备作为第一终端设备的无线接入点,如果第一终端设备直接离开第一网络设备的SSID覆盖的范围,第一网络设备将无法感知到第一终端设备离开。For another example, if the first network device is the wireless access point of the first terminal device, if the first terminal device directly leaves the range covered by the SSID of the first network device, the first network device cannot sense that the first terminal device leaves.

由于第一网络设备无法感知第一终端设备离开,因此在第一终端设备迁移出去时,第一网络设备并不能立即将第一终端设备的地址从终端接入集合中删除掉。而是借助第一终端设备新接入的网络设备的通告来确定第一终端设备离开第一网络设备。Since the first network device cannot sense the departure of the first terminal device, when the first terminal device migrates out, the first network device cannot immediately delete the address of the first terminal device from the terminal access set. Instead, it is determined that the first terminal device leaves the first network device by means of the advertisement of the network device newly accessed by the first terminal device.

因此,在一种可能的实现方式中,在这种场景下,第一网络设备确定第一终端设备离开第一网络设备的实现方式可以为:控制设备接收第三网络设备发送的终端接入通告消息,该终端接入通告消息包括第一终端设备地址和第三网络设备的标识,该终端接入通告消息指示第一终端设备连接在第三网络设备处。如果第一网络设备的终端接入集合中包括第一终端设备的地址,控制设备便可获知第一终端设备从第一网络设备处迁移到了第三网络设备处,因此控制设备删除第一网络设备的终端接入集合中第一终端设备的标识。同时,控制设备向第一网络设备发送终端迁出指示,该终端迁出指示包括第一终端设备的地址,该终端迁出指示用于指示第一终端设备离开第一网络设备。因此,如果第一网络设备接收到控制设备发送的终端迁出指示,则确定第一终端设备离开第一网络设备。Therefore, in a possible implementation manner, in this scenario, the implementation manner for the first network device to determine that the first terminal device leaves the first network device may be: the control device receives the terminal access announcement sent by the third network device message, the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, and the terminal access announcement message indicates that the first terminal device is connected to the third network device. If the terminal access set of the first network device includes the address of the first terminal device, the control device can learn that the first terminal device has migrated from the first network device to the third network device, so the control device deletes the first network device The identifier of the first terminal device in the terminal access set. At the same time, the control device sends a terminal relocation instruction to the first network device, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device. Therefore, if the first network device receives the terminal relocation instruction sent by the control device, it is determined that the first terminal device leaves the first network device.

在这种场景下,由于第一网络设备是通过控制设备确定第一终端设备从第一网络设备处迁移出去,因此第一网络设备只需从第一网络设备的终端接入集合中删除第一终端设备的标识即可,控制设备处的终端接入集合更新过程无需关心。In this scenario, since the first network device determines that the first terminal device has migrated from the first network device through the control device, the first network device only needs to delete the first network device from the terminal access set of the first network device. The identification of the terminal device is sufficient, and the update process of the terminal access set at the control device does not need to be concerned.

同样地,如果在VXLAN网络初始化时,任一网络设备与控制设备先建立VXLAN隧道。这种场景下,上述上线通知消息,第二终端迁移消息均可以通过已经建立的南北向的VXLAN隧道来实现。Similarly, when the VXLAN network is initialized, any network device and the control device first establish a VXLAN tunnel. In this scenario, the above-mentioned online notification message and the second terminal relocation message can be implemented through the established north-south VXLAN tunnel.

图2是本申请实施例提供的一种更新终端接入集合的流程示意图,用于对上述场景(2)中的情况进一步详细说明。图2所示的流程包括以下几个步骤。FIG. 2 is a schematic flowchart of updating a terminal access set provided by an embodiment of the present application, which is used to further describe the situation in the above scenario (2) in detail. The flow shown in Figure 2 includes the following steps.

1)终端设备A从边缘设备1迁移到边缘设备2之后,终端设备A向边缘设备2发送流量。终端设备A向边缘设备2发送流量,是指终端设备A首次向边缘设备2发送的报文。可选地,该报文是上线通知消息,用于通告终端设备A接入边缘设备2。可选地,该报文为第一终端设备首次向第一网络设备发送的数据报文。1) After terminal device A migrates from edge device 1 to edge device 2, terminal device A sends traffic to edge device 2. The traffic sent by terminal device A to edge device 2 refers to the packets sent by terminal device A to edge device 2 for the first time. Optionally, the message is an online notification message, which is used to notify the terminal device A to access the edge device 2 . Optionally, the packet is a data packet sent by the first terminal device to the first network device for the first time.

2)边缘设备2会识别出终端设备A的地址(诸如MAC地址和/或IP地址),边缘设备2将终端设备A的地址添加到边缘设备2的终端接入集合中。2) The edge device 2 will recognize the address of the terminal device A (such as a MAC address and/or an IP address), and the edge device 2 will add the address of the terminal device A to the terminal access set of the edge device 2 .

3)边缘设备2将终端设备A的地址基于OCP协议通过终端接入通告消息的方式,上报给边界设备。3) The edge device 2 reports the address of the terminal device A to the edge device by means of a terminal access notification message based on the OCP protocol.

4)边界设备查找存储的各个边缘设备的终端接入集合,发现边缘设备1的终端接入集合中已有终端设备A的地址,且本次发送终端接入通告消息的是边缘设备2。因此,边界设备更新边缘设备2和边缘设备1的终端接入集合。并将终端设备A的迁移情况通告以终端迁出指示的方式给终端设备A之前接入的边缘设备,即边缘设备1。4) The edge device searches the stored terminal access set of each edge device, and finds that the address of terminal device A already exists in the terminal access set of edge device 1, and it is edge device 2 that sends the terminal access announcement message this time. Therefore, the edge device updates the terminal access sets of edge device 2 and edge device 1. The relocation situation of the terminal device A is notified to the edge device previously accessed by the terminal device A, that is, the edge device 1, in the form of a terminal relocation instruction.

5)边缘设备1收到边界设备的发送的终端迁出指示,将终端设备A的地址从本地的终端接入集合中删除。5) The edge device 1 receives the terminal migration instruction sent by the edge device, and deletes the address of the terminal device A from the local terminal access set.

基于图2所示的流程,在边缘设备无法感知到终端设备迁移的情况下,同样可以实现在终端设备离开第一网络设备之后,及时更新边缘设备处的终端接入集合以及边界设备处的终端接入集合。Based on the process shown in FIG. 2 , in the case where the edge device cannot perceive the terminal device migration, it can also be implemented to update the terminal access set at the edge device and the terminal at the edge device in time after the terminal device leaves the first network device. Access collection.

在终端设备发生迁移后,基于上述对控制设备处的终端接入集合以及网络设备处的终端接入集合进行更新的流程,在后续其他终端设备访问已经发生迁移的终端设备时,能够动态变更已经建立的VXLAN隧道。下述实施例用于对如何动态变更已经建立的VXLAN隧道进行详细解释说明。After the terminal device is migrated, based on the above process of updating the terminal access set at the control device and the terminal access set at the network device, when other terminal devices subsequently access the terminal device that has been migrated, it is possible to dynamically change the Established VXLAN tunnel. The following embodiments are used to explain in detail how to dynamically change the established VXLAN tunnel.

图3是本申请实施例提供的一种建立VXLAN隧道的方法流程图。如图3所示,该方法包括如下几个步骤。FIG. 3 is a flowchart of a method for establishing a VXLAN tunnel provided by an embodiment of the present application. As shown in Figure 3, the method includes the following steps.

步骤301:第一网络设备接收来自第二网络设备的第一VXLAN报文,第一VXLAN报文包括的原始帧的目的地址为第一终端设备的地址。Step 301: The first network device receives a first VXLAN packet from the second network device, and the destination address of the original frame included in the first VXLAN packet is the address of the first terminal device.

假设第一VXLAN报文中的原始帧是第二终端设备访问第一终端设备的流量中的报文,第二终端设备接入在第二网络设备处。本申请实施例的一种可能的应用场景为:在第一终端设备从第一网络设备迁移到第三网络设备前,第二终端设备已经访问过第一终端设备,因此第二网络设备的转发表中存储有第二网络设备到第一网络设备之间的VXLAN隧道的隧道标识与第一终端设备的地址的之间的对应关系。而在第一终端设备发生迁移后,第一网络设备并不会立即更新转发表,因此,如果第二终端设备再次访问第一终端设备,此时第二网络设备仍然根据未发生更新的转发表将该报文发送至第一网络设备,以期望通过第一网络设备访问第一终端设备。It is assumed that the original frame in the first VXLAN packet is a packet in the traffic of the second terminal device accessing the first terminal device, and the second terminal device is connected to the second network device. A possible application scenario of the embodiment of the present application is: before the first terminal device is migrated from the first network device to the third network device, the second terminal device has already accessed the first terminal device, so the transfer of the second network device The publication stores the correspondence between the tunnel identifier of the VXLAN tunnel between the second network device and the first network device and the address of the first terminal device. However, after the first terminal device is migrated, the first network device does not immediately update the forwarding table. Therefore, if the second terminal device accesses the first terminal device again, the second network device still uses the unupdated forwarding table at this time. The message is sent to the first network device to expect to access the first terminal device through the first network device.

为了后续便于说明,在此对第二网络设备的转发表进行解释说明。该转发表中包括多个终端设备地址和与各个终端设备地址对应的隧道标识。该转发表的功能为:通过与任一终端设备地址对应的隧道标识所指示的VXLAN隧道,能够将报文转发该终端设备地址所指示的 终端设备。For the convenience of subsequent description, the forwarding table of the second network device is explained here. The forwarding table includes a plurality of terminal device addresses and tunnel identifiers corresponding to the respective terminal device addresses. The function of the forwarding table is: through the VXLAN tunnel indicated by the tunnel identifier corresponding to any terminal device address, the message can be forwarded to the terminal device indicated by the terminal device address.

在一种可能的实现方式中,上述隧道标识是VXLAN隧道的接收端的VTEP的标识(如对端设备的IP地址)。比如,对于第二网络设备到第一网络设备的VXLAN隧道,该VXLAN隧道的隧道标识为第一网络设备的标识。In a possible implementation manner, the above-mentioned tunnel identifier is an identifier of the VTEP at the receiving end of the VXLAN tunnel (eg, the IP address of the peer device). For example, for a VXLAN tunnel from the second network device to the first network device, the tunnel identifier of the VXLAN tunnel is the identifier of the first network device.

在另一种可能的实现方式中,上述隧道标识为除VXLAN隧道对端设备的标识之外的其他唯一能够标识隧道的符号,比如隧道标识为针对VXLAN隧道的一个唯一编号。比如,对于第二边缘设备到第一边缘设备的VXLAN隧道,该VXLAN隧道的隧道标识为隧道1。需要说明的是,在该实现方式中,为了便于后续查询某个VXLAN隧道的对端,网络设备用该编号可以索引到相应的表项,表项内存放有包括对端设备的IP地址在内的VXLAN隧道参数。因此,在一种可能的实现方式中,第二网络设备还可以维护一个隧道列表,该隧道列表中包括与各个隧道标识一一对应的隧道的接收端的VTEP的标识。In another possible implementation manner, the above-mentioned tunnel identifier is a symbol other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, the tunnel identifier is a unique number for the VXLAN tunnel. For example, for the VXLAN tunnel from the second edge device to the first edge device, the tunnel identifier of the VXLAN tunnel is tunnel 1 . It should be noted that, in this implementation, in order to facilitate the subsequent query of the peer end of a certain VXLAN tunnel, the network device can use this number to index the corresponding entry, and the entry contains the IP address of the peer device. VXLAN tunnel parameters. Therefore, in a possible implementation manner, the second network device may also maintain a tunnel list, where the tunnel list includes the identifiers of the VTEPs of the receiving ends of the tunnels that correspond one-to-one with each tunnel identifier.

因此,第二网络设备在接收到源地址为第二终端设备地址,目标地址为第一终端设备地址的报文后,查询转发表发现可以通过第二网络设备到第一网络设备之间的VXLAN隧道发送该报文,如此,第二网络设备便将该报文作为原始帧封装为第一VXLAN报文,并将第一VXLAN报文通过第二网络设备到第一网络设备之间的VXLAN隧道发送至第一网络设备。Therefore, after receiving the packet whose source address is the address of the second terminal device and the destination address is the address of the first terminal device, the second network device queries the forwarding table and finds that the VXLAN between the second network device and the first network device can be passed through. The tunnel sends the packet. In this way, the second network device encapsulates the packet as an original frame into a first VXLAN packet, and passes the first VXLAN packet through the VXLAN tunnel between the second network device and the first network device. sent to the first network device.

上述将该报文作为原始帧封装为第一VXLAN报文是指:将第一网络设备作为第一VXLAN报文的目的地添加VXLAN帧头等外层帧头,以实现将第一VXLAN报文发送至第一网络设备。The above-mentioned encapsulating the message as the original frame into the first VXLAN message refers to: adding the outer frame header such as the VXLAN frame header to the first network device as the destination of the first VXLAN message, so as to realize the sending of the first VXLAN message to the first network device.

为了便于理解将原始帧封装为第一VXLAN报文,在此对VXLAN报文的封装格式也进行解释说明。如图4所示,原始帧(original L2frame)在封装过程中先被添加一个VXLAN帧头,再被封装在外层UDP帧头中,并使用承载网络的IP、MAC地址作为外层头进行封装,即可得到一个VXLAN报文。In order to facilitate the understanding of encapsulating the original frame into the first VXLAN packet, the encapsulation format of the VXLAN packet is also explained here. As shown in Figure 4, the original frame (original L2frame) is first added with a VXLAN frame header during the encapsulation process, and then encapsulated in the outer UDP frame header, and the IP and MAC addresses of the bearer network are used as the outer header for encapsulation. A VXLAN packet can be obtained.

上述VXLAN帧头、外层UDP帧头、外层IP帧头、以及外层以太网帧头中的各个字段的解释如表1所示。关于VXLAN报文中各个字段的含义在此就不再一一详细解释说明。The explanation of each field in the above VXLAN frame header, outer layer UDP frame header, outer layer IP frame header, and outer layer Ethernet frame header is shown in Table 1. The meaning of each field in the VXLAN packet will not be explained in detail here.

表1Table 1

Figure PCTCN2021100398-appb-000001
Figure PCTCN2021100398-appb-000001

Figure PCTCN2021100398-appb-000002
Figure PCTCN2021100398-appb-000002

步骤302:如果第一网络设备所连接的终端设备中没有第一终端设备,则向控制设备发送错误报文通告消息,控制设备接收来自第一网络设备的错误报文通告消息。Step 302: If there is no first terminal device in the terminal devices connected to the first network device, send an error message notification message to the control device, and the control device receives the error message notification message from the first network device.

基于上述对控制设备处的终端接入集合以及网络设备处的终端接入集合进行更新的流程可知,如果第一终端设备从第一网络设备处迁移出去,那么第一网络设备的终端接入集合中将不再有第一终端设备的标识。因此,第一网络设备在接收到第一VXLAN报文时,如果第一网络设备的终端接入集合中没有第一终端设备的地址,则表明第一终端设备没有连接第一网络设备。这种场景下,第一网络设备向控制设备发送错误报文通告消息。控制设备接收第一网络设备发送的错误报文通告消息。Based on the above process of updating the terminal access set at the control device and the terminal access set at the network device, it can be known that if the first terminal device migrates from the first network device, the terminal access set of the first network device will no longer have the identity of the first terminal device. Therefore, when the first network device receives the first VXLAN packet, if there is no address of the first terminal device in the terminal access set of the first network device, it indicates that the first terminal device is not connected to the first network device. In this scenario, the first network device sends an error message notification message to the control device. The control device receives the error message notification message sent by the first network device.

错误报文通告消息包括第一终端设备的地址、第一网络设备的标识以及第二网络设备的标识。该错误报文通告消息指示第一终端设备没有与第一网络设备连接,但第一网络设备仍接收到来自第二网络设备且发送至第一终端设备的VXLAN报文。The error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device. The error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the VXLAN packet from the second network device and sent to the first terminal device.

此外,需要说明的是,步骤302的执行场景为该接收到的报文为VXLAN格式封装的报文的情况。如果步骤301中的报文不是VXLAN格式封装的报文,则无需对已经建立的VXLAN隧道进行动态变更。In addition, it should be noted that the execution scenario of step 302 is a case where the received message is a message encapsulated in the VXLAN format. If the packet in step 301 is not a packet encapsulated in the VXLAN format, it is not necessary to dynamically change the established VXLAN tunnel.

控制设备在接收到错误报文通告消息后,便可从各个网络设备的终端接入集合中查询第一终端设备当前接入的网络设备。并将查询到的网络设备作为第三网络设备。After receiving the error message notification message, the control device may query the network device currently accessed by the first terminal device from the terminal access set of each network device. and use the queried network device as the third network device.

此外,第一网络设备在接收到第一VXLAN报文后,如果本地的终端接入集合中已经没有第一终端设备的地址,表明第一终端设备当前已经没有连接在第一网络设备处。这种场景下,如果VXLAN中的各个网络设备和控制设备之间建立有VXLAN隧道,此时,第一网络设备则将该第一VXLAN报文中的原始帧封装为第二VXLAN报文,将第二VXLAN报文经由第一网络设备到控制设备之间的VXLAN隧道发送至控制设备。控制设备接收来自第一网络设备的第二VXLAN报文。控制设备将该原始帧封装为第三VXLAN报文,将第三VXLAN报文经由控制设备到第三网络设备之间的VXLAN隧道发送至第三网络设备,以实现第二终端设备对迁移后的第一终端设备的访问。In addition, after the first network device receives the first VXLAN packet, if there is no address of the first terminal device in the local terminal access set, it indicates that the first terminal device is not currently connected to the first network device. In this scenario, if a VXLAN tunnel is established between each network device in the VXLAN and the control device, the first network device encapsulates the original frame in the first VXLAN packet into a second VXLAN packet, and encapsulates the original frame in the first VXLAN packet into a second VXLAN packet. The second VXLAN packet is sent to the control device via the VXLAN tunnel between the first network device and the control device. The control device receives the second VXLAN packet from the first network device. The control device encapsulates the original frame into a third VXLAN packet, and sends the third VXLAN packet to the third network device through the VXLAN tunnel between the control device and the third network device, so as to implement the second terminal device to the migrated Access to the first terminal device.

此外,控制设备在接收到错误报文通告消息后,还需通过下述步骤通告第二网络设备对已经建立的VXLAN隧道进行变更,以避免第二网络设备后续再次发送错误的报文给第一网络设备。In addition, after receiving the error message notification message, the control device needs to notify the second network device to change the established VXLAN tunnel through the following steps, so as to prevent the second network device from sending an error message to the first network device. Internet equipment.

步骤303:控制设备向第二网络设备发送终端变更消息,该终端变更消息包括第一终端设备的地址和第三网络设备的标识,该终端变更消息指示第一终端设备当前连接第三网络设备。Step 303: The control device sends a terminal change message to the second network device, the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates that the first terminal device is currently connected to the third network device.

第二网络设备在接收到终端变更消息后,获知第一终端设备已经从第一网络设备处迁移到第三网络设备处,因此,第二网络设备需对转发表进行更新,以避免第二网络设备后续再次发送错误的报文给第一网络设备。After receiving the terminal change message, the second network device learns that the first terminal device has been migrated from the first network device to the third network device. Therefore, the second network device needs to update the forwarding table to avoid the second network device The device subsequently sends the erroneous packet to the first network device again.

在一种可能的实现方式中,第二网络设备在接收终端变消息后,便可从转发表中删除第 二网络设备到第一网络的VXLAN隧道的隧道标识与第一终端设备的地址之间的对应关系。并在转发表中建立第二网络设备到第三网络的VXLAN隧道的隧道标识与第一终端设备的地址之间的对应关系。In a possible implementation manner, after receiving the terminal change message, the second network device may delete from the forwarding table the relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the first network and the address of the first terminal device corresponding relationship. A corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the third network and the address of the first terminal device is established in the forwarding table.

在转发表中的隧道标识是VXLAN隧道的接收端的VTEP的标识的场景中,上述第二网络设备到第三网络的VXLAN隧道的隧道标识即为第三网络设备的标识。第二网络设备到第一网络的VXLAN隧道的隧道标识即为第一网络设备的标识。In the scenario where the tunnel identifier in the forwarding table is the identifier of the VTEP of the receiving end of the VXLAN tunnel, the tunnel identifier of the VXLAN tunnel from the second network device to the third network is the identifier of the third network device. The tunnel identifier of the VXLAN tunnel from the second network device to the first network is the identifier of the first network device.

在转发表中的隧道标识为除VXLAN隧道对端设备的标识之外的其他唯一能够标识隧道的符号,比如隧道标识为针对VXLAN隧道的一个唯一编号的场景下,网络设备用该编号可以索引到相应的表项,表项内存放有包括对端设备的IP地址在内的VXLAN隧道参数。在一种可能的实现方式中,第二网络设备还维护一个隧道列表,该隧道列表中包括与各个隧道标识一一对应的隧道的接收端的VTEP的标识。在这种场景下,第二网络设备查找本地转发表中第二网络设备到第一网络设备之间的VXLAN隧道的隧道标识对应的终端设备地址,如果查找到的终端设备地址中只有第一终端设备的地址,则不仅从转发表中删除从隧道列表中第二网络设备到第一网络设备的VXLAN隧道的隧道标识与第一终端设备的地址之间的对应关系,还从隧道列表中删除第二网络设备到第一网络设备的VXLAN隧道的隧道标识与第一网络设备的标识之间的对应关系。如果查找到的终端设备地址中除了第一终端设备地址之外,还有其他终端设备地址,则不从隧道列表中删除第二网络设备到第一网络设备的VXLAN隧道的隧道标识与第一网络设备的标识之间的对应关系,但是删除转发表中第二网络设备到第一网络设备之间的VXLAN隧道的隧道标识和第一终端设备的地址之间的对应关系。If the tunnel identifier in the forwarding table is a symbol other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, for example, in the scenario where the tunnel identifier is a unique number for the VXLAN tunnel, the network device can use this number to index the Corresponding entry, the entry stores VXLAN tunnel parameters including the IP address of the peer device. In a possible implementation manner, the second network device also maintains a tunnel list, where the tunnel list includes the identifiers of the VTEPs of the receiving ends of the tunnels that correspond one-to-one with each tunnel identifier. In this scenario, the second network device searches the local forwarding table for the address of the terminal device corresponding to the tunnel identifier of the VXLAN tunnel between the second network device and the first network device. address of the device, not only deletes the correspondence between the tunnel identifier of the VXLAN tunnel from the second network device to the first network device in the tunnel list and the address of the first terminal device from the forwarding table, but also deletes the first terminal device from the tunnel list. The correspondence between the tunnel identifier of the VXLAN tunnel from the second network device to the first network device and the identifier of the first network device. If there are other terminal device addresses besides the first terminal device address in the found terminal device address, the tunnel identifier of the VXLAN tunnel from the second network device to the first network device and the first network device are not deleted from the tunnel list. The corresponding relationship between the device identifiers, but the corresponding relationship between the tunnel identifier of the VXLAN tunnel between the second network device and the first network device and the address of the first terminal device in the forwarding table is deleted.

需要说明的是,上述从隧道列表中删除第二网络设备到第一网络设备的VXLAN隧道的隧道标识与第一网络设备的标识之间的对应关系的过程,也称为删除第二网络设备到第一网络设备的VXLAN隧道的过程。It should be noted that the above process of deleting the corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the first network device and the identifier of the first network device from the tunnel list is also referred to as deleting the second network device to the first network device. The process of VXLAN tunneling of the first network device.

此外,在转发表中的隧道标识为除VXLAN隧道对端设备的标识之外的其他唯一能够标识隧道的符号的场景下,第二网络设备在接收到终端变更消息后,根据第三网络设备的标识,从隧道列表中查找对应的隧道接收端为第三网络设备VXLAN隧道的隧道标识,如果查找到一个隧道标识,该隧道标识即为第二网络设备到第三网络设备之间的VXLAN隧道的标识,表明当前已经建立有第二网络设备到第三网络设备的VXLAN隧道,只是没有将第一终端设备的地址和该VXLAN隧道的隧道标识之间的对应关系创建起来而已。如果没有查找到任何隧道标识,则基于隧道标识生成规则,生成第二网络设备到第三网络设备之间的VXLAN隧道的隧道标识。然后将生成的隧道标识和第三网络设备的标识之间的对应关系添加到隧道列表中。该隧道标识生成规则为设置的用于生成唯一标识VXLAN隧道的一个规则,本申请实施例对该规则并不做具体限定。比如,基于第二网络设备到其他网络设备的VXLAN隧道的数量来生成隧道标识。In addition, in the scenario where the tunnel identifier in the forwarding table is a symbol other than the identifier of the peer device of the VXLAN tunnel that can uniquely identify the tunnel, the second network device, after receiving the terminal change message, ID, find the tunnel ID of the VXLAN tunnel of the third network device corresponding to the tunnel receiving end from the tunnel list. If a tunnel ID is found, the tunnel ID is the ID of the VXLAN tunnel between the second network device and the third network device. The identifier indicates that a VXLAN tunnel from the second network device to the third network device is currently established, but the correspondence between the address of the first terminal device and the tunnel identifier of the VXLAN tunnel has not been created. If no tunnel identifier is found, the tunnel identifier of the VXLAN tunnel between the second network device and the third network device is generated based on the tunnel identifier generation rule. Then, the corresponding relationship between the generated tunnel identifier and the identifier of the third network device is added to the tunnel list. The tunnel identifier generation rule is a set rule for generating a unique identifier for a VXLAN tunnel, which is not specifically limited in this embodiment of the present application. For example, the tunnel identifier is generated based on the number of VXLAN tunnels from the second network device to other network devices.

需要说明的是,上述没有查找到隧道标识之后的流程还称为建立第二网络设备到第三网络设备之间的VXLAN隧道的过程。此时,上述过程能够这样描述:第二网络设备在接收到终端变更消息后,查找是否已经与第二网络设备到第三网络设备的VXLAN隧道,如果没有第二网络设备到第三网络设备的VXLAN隧道,则建立第二网络设备到第三网络设备的VXLAN隧道,并将第二网络设备到第三网络设备的VXLAN隧道的隧道标识和第一终端设备地址之间的对应关系添加到转发表中。如果已经建立有第二网络设备到第三网络设备的 VXLAN隧道,则只需将第二网络设备到第三网络设备的VXLAN隧道的隧道标识和第一终端设备的地址之间的对应关系添加到转发表中即可。It should be noted that the above process after the tunnel identifier is not found is also referred to as the process of establishing a VXLAN tunnel between the second network device and the third network device. At this time, the above process can be described as follows: after receiving the terminal change message, the second network device searches whether it has already connected with the VXLAN tunnel from the second network device to the third network device. If there is no VXLAN tunnel from the second network device to the third network device VXLAN tunnel, establish a VXLAN tunnel from the second network device to the third network device, and add the corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the third network device and the address of the first terminal device to the forwarding table middle. If a VXLAN tunnel from the second network device to the third network device has been established, it is only necessary to add the corresponding relationship between the tunnel identifier of the VXLAN tunnel from the second network device to the third network device and the address of the first terminal device to It can be forwarded.

下面以图5所示的实施例对图3所示的流程进一步详细解释说明,在图5所示的实施例中,控制设备为VXLAN网络中的边界设备。The flow shown in FIG. 3 is further explained in detail below with the embodiment shown in FIG. 5 . In the embodiment shown in FIG. 5 , the control device is a border device in the VXLAN network.

1、终端设备A迁移到边缘设备2后,如果终端设备A和终端设备B一段时间没有互访,那么边缘设备4设备上在老化时间内没有收到目的地址为终端设备A的流量。边缘设备4就删除转发表中终端设备A的表项,同时判断转发表中没有任何边缘设备1下的终端设备的表项,则删除到边缘设备4到边缘设备1的VXLAN隧道。1. After terminal device A is migrated to edge device 2, if terminal device A and terminal device B do not communicate with each other for a period of time, edge device 4 does not receive traffic destined for terminal device A within the aging time. The edge device 4 deletes the entry of the terminal device A in the forwarding table, and at the same time determines that there is no entry of the terminal device under the edge device 1 in the forwarding table, and deletes the VXLAN tunnel from the edge device 4 to the edge device 1.

2、终端设备迁移到边缘设备2后,如果终端设备A和终端设备B有互访。那么流程如图5所示。2. After the terminal device is migrated to the edge device 2, if the terminal device A and the terminal device B have mutual visits. Then the process is shown in Figure 5.

1)终端设备B发送流量访问终端设备A1) Terminal device B sends traffic to access terminal device A

2)边缘设备4根据转发表,将流量转发到边缘设备4到边缘设备1的VXLAN隧道。2) The edge device 4 forwards the traffic to the VXLAN tunnel from the edge device 4 to the edge device 1 according to the forwarding table.

3)边缘设备1收到终端设备B的流量,查询本设备的终端接入集合中无终端设备A,同时识别到接收到的流量为VXLAN报文。3) The edge device 1 receives the traffic of the terminal device B, inquires that there is no terminal device A in the terminal access set of the device, and at the same time recognizes that the received traffic is a VXLAN packet.

4)由于边缘设备1的终端接入集合中无终端设备A,因此将流量通过边缘设备1到边界设备的VXLAN隧道转发流量。4) Since there is no terminal device A in the terminal access set of the edge device 1, the traffic is forwarded through the VXLAN tunnel from the edge device 1 to the edge device.

5)边界设备收到流量,将流量通过边界设备到边缘设备2的VLXLAN隧道转发给边缘设备2。5) The border device receives the traffic and forwards the traffic to the edge device 2 through the VLXLAN tunnel from the border device to the edge device 2.

6)边缘设备2设备收到流量,根据转发表转发给终端设备A。6) The edge device 2 device receives the traffic and forwards it to the terminal device A according to the forwarding table.

7)边缘设备1设备转发流量的同时,触发错误报文通告消息,通过OCP协议通告边界设备终端设备B访问终端设备A的错误报文。7) When the edge device 1 forwards the traffic, it triggers an error message notification message, and notifies the edge device terminal device B to access the error message of the terminal device A through the OCP protocol.

8)边界设备查询各个终端设备的终端接入集合,发现终端设备B对应的VTEP是边缘设备4。8) The edge device queries the terminal access set of each terminal device, and finds that the VTEP corresponding to the terminal device B is the edge device 4 .

9)边界设备通过OCP协议发送通告给边缘设备4,以通告终端设备A对应的VTEP是边缘设备2。9) The edge device sends a notification to the edge device 4 through the OCP protocol to notify that the VTEP corresponding to the terminal device A is the edge device 2 .

10)边缘设备4收到通告后,通过下述步骤更新转发表中终端设备A的表项。10) After receiving the notification, the edge device 4 updates the entry of the terminal device A in the forwarding table through the following steps.

11)边缘设备4判断,如果边缘设备4到边缘设备2的VXLAN隧道未创建,则建立边缘设备4到边缘设备2的VXLAN隧道(此处建立边缘设备4->边缘设备2的VXLAN隧道是指:获取边缘设备4->边缘设备2的VXLAN隧道的隧道标识,并将该隧道标识与终端设备A的地址之间的对应关系添加到转发表中)。11) Edge device 4 judges that if the VXLAN tunnel from edge device 4 to edge device 2 has not been created, establish a VXLAN tunnel from edge device 4 to edge device 2 (here, establishing a VXLAN tunnel of edge device 4->edge device 2 refers to : Obtain the tunnel ID of the VXLAN tunnel of edge device 4->edge device 2, and add the corresponding relationship between the tunnel ID and the address of terminal device A to the forwarding table).

12)边缘设备4删除转发表中终端设备A的地址与边缘设备4到边缘设备1之间的VXLAN隧道的隧道标识之间的对应关系,并判断,如果本设备的转发表中没有包括该隧道标识的对应关系,表明转发表中没有任何边缘设备1所连接的终端设备的表项,则删除边缘设备4到边缘设备1的VXLAN隧道(此处删除边缘设备4到边缘设备1的VXLAN隧道是指:删除隧道列表中边缘设备4到边缘设备1的VXLAN隧道的隧道标识和边缘设备1的标识之间的对应关系)。12) Edge device 4 deletes the correspondence between the address of terminal device A in the forwarding table and the tunnel identifier of the VXLAN tunnel between edge device 4 and edge device 1, and judges that if the forwarding table of this device does not include the tunnel The corresponding relationship between the identifiers indicates that there is no entry of the terminal device connected to edge device 1 in the forwarding table, then delete the VXLAN tunnel from edge device 4 to edge device 1 (here, delete the VXLAN tunnel from edge device 4 to edge device 1 is Refers to: delete the corresponding relationship between the tunnel ID of the VXLAN tunnel from edge device 4 to edge device 1 and the ID of edge device 1 in the tunnel list).

13)边缘设备4到边缘设备2的VXLAN隧道建立后,终端设备B访问终端设备A的流量从边缘设备4到边缘设备2的VXLAN隧道转发。13) After the VXLAN tunnel from edge device 4 to edge device 2 is established, the traffic of terminal device B accessing terminal device A is forwarded from the VXLAN tunnel from edge device 4 to edge device 2.

通过本申请实施例提供的建立VXLAN隧道的方法,由于第一网络设备在确定第一终端 设备没有与自身连接时,将向控制设备发送错误报文通过消息。因此,如果第一终端设备从第一网络设备处迁出,那么即使由于第二网络设备处的转发表没有及时更新导致将第一VXLAN报文错误地发送至第一网络设备,通过错误报文通告消息仍然可以将该迁出情况通知至控制设备,以通过控制设备来通告第二网络设备,从而使得第二网络设备及时更新转发表。因此,通过本申请实施例提供的方法,能够在终端设备发生迁移时动态变更转发表中已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。With the method for establishing a VXLAN tunnel provided by the embodiment of the present application, when the first network device determines that the first terminal device is not connected to itself, it will send an error message passing message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device. The notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time. Therefore, with the method provided by the embodiments of the present application, the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

图6是本申请实施例提供的一种VXLAN中的第一网络设备的结构示意图,该VXLAN中包括多个网络设备,第一网络设备为多个网络设备中的一个。FIG. 6 is a schematic structural diagram of a first network device in a VXLAN provided by an embodiment of the present application. The VXLAN includes multiple network devices, and the first network device is one of the multiple network devices.

如图6所示,第一网络设备600包括:As shown in FIG. 6, the first network device 600 includes:

接收模块601,用于接收来自第二网络设备的第一VXLAN报文,第一VXLAN报文包括的原始帧的目的地址为第一终端设备的地址;A receiving module 601, configured to receive a first VXLAN message from a second network device, where the destination address of the original frame included in the first VXLAN message is the address of the first terminal device;

发送模块602,用于如果第一网络设备所连接的终端设备中没有第一终端设备,则向控制设备发送错误报文通告消息,错误报文通告消息包括第一终端设备的地址、第一网络设备的标识以及第二网络设备的标识,错误报文通告消息指示第一终端设备没有与第一网络设备连接,但第一网络设备仍接收到来自第二网络设备且发送至第一终端设备的VXLAN报文。The sending module 602 is configured to send an error message notification message to the control device if there is no first terminal device in the terminal device connected to the first network device, where the error message notification message includes the address of the first terminal device, the first network The identifier of the device and the identifier of the second network device, the error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives the message from the second network device and sent to the first terminal device. VXLAN packets.

可选地,第一网络设备还包括:Optionally, the first network device further includes:

删除模块,用于当确定第一终端设备离开第一网络设备时,从第一网络设备的终端接入集合中删除第一终端设备的地址,终端接入集合中包括连接第一网络设备的各个终端设备的地址。A deletion module, configured to delete the address of the first terminal device from the terminal access set of the first network device when it is determined that the first terminal device has left the first network device, where the terminal access set includes each device connected to the first network device The address of the end device.

可选地,删除模块用于:Optionally, delete modules are used to:

如果检测到第一终端设备和第一网络设备断开通信,则确定第一终端设备离开第一网络设备。If it is detected that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device.

可选地,发送模块还用于:Optionally, the sending module is also used for:

向控制设备发送终端迁出通知,终端迁出通知包括第一终端设备的地址和第一网络设备的标识,终端迁出通知指示第一终端设备离开第一网络设备。A terminal move-out notification is sent to the control device, where the terminal move-out notification includes the address of the first terminal device and the identifier of the first network device, and the terminal move-out notification instructs the first terminal device to leave the first network device.

可选地,删除模块用于:Optionally, delete modules are used to:

如果接收到来自控制设备的终端迁出指示,则确定第一终端设备离开第一网络设备,终端迁出指示包括第一终端设备的地址,终端迁出指示用于指示第一终端设备离开第一网络设备。If a terminal move-out instruction is received from the control device, it is determined that the first terminal equipment leaves the first network device, the terminal move-out instruction includes the address of the first terminal equipment, and the terminal move-out instruction is used to instruct the first terminal equipment to leave the first terminal Internet equipment.

可选地,发送模块还用于:Optionally, the sending module is also used for:

将原始帧封装为第二VXLAN报文,将第二VXLAN报文经由第一网络设备到控制设备之间的VXLAN隧道发送至控制设备。The original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent to the control device through the VXLAN tunnel between the first network device and the control device.

在本申请实施例中,由于第一网络设备在确定第一终端设备没有与自身连接时,将向控制设备发送错误报文通过消息。因此,如果第一终端设备从第一网络设备处迁出,那么即使由于第二网络设备处的转发表没有及时更新导致将第一VXLAN报文错误地发送至第一网络设备,通过错误报文通告消息仍然可以将该迁出情况通知至控制设备,以通过控制设备来通 告第二网络设备,从而使得第二网络设备及时更新转发表。因此,通过本申请实施例提供的方法,能够在终端设备发生迁移时动态变更转发表中已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。In this embodiment of the present application, when the first network device determines that the first terminal device is not connected to itself, it will send an error message pass message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device. The notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time. Therefore, with the method provided by the embodiments of the present application, the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

需要说明的是:上述实施例提供的第一网络设备在建立VXLAN隧道时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的第一网络设备与建立VXLAN隧道的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the first network device provided in the above embodiment establishes a VXLAN tunnel, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the first network device provided in the above embodiment and the method embodiment for establishing a VXLAN tunnel belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.

图7是本申请实施例提供的一种控制设备的结构示意图。如图7所示,该控制设备700包括:FIG. 7 is a schematic structural diagram of a control device provided by an embodiment of the present application. As shown in FIG. 7, the control device 700 includes:

接收模块701,用于接收来自VXLAN中的第一网络设备的错误报文通告消息,错误报文通告消息包括第一终端设备的地址、第一网络设备的标识以及第二网络设备的标识,错误报文通告消息指示第一终端设备没有与第一网络设备连接,但第一网络设备仍接收到来自第二网络设备且发送至第一终端设备的VXLAN报文,VXLAN中包括多个网络设备,第一网络设备和第二网络设备为多个网络设备中的两个;The receiving module 701 is configured to receive an error message notification message from a first network device in the VXLAN, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device. The message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives a VXLAN message from the second network device and sent to the first terminal device, where the VXLAN includes multiple network devices, The first network device and the second network device are two of the multiple network devices;

发送模块702,用于向第二网络设备发送终端变更消息,终端变更消息包括第一终端设备的地址和第三网络设备的标识,终端变更消息指示第一终端设备当前连接第三网络设备。The sending module 702 is configured to send a terminal change message to the second network device, where the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates that the first terminal device is currently connected to the third network device.

可选地,Optionally,

接收模块,还用于接收来自第一网络设备的终端迁出通知,终端迁出通知包括第一终端设备的地址和第一网络设备的标识,终端迁出通知指示第一终端设备离开第一网络设备;The receiving module is further configured to receive a terminal relocation notification from the first network device, where the terminal relocation notification includes the address of the first terminal device and the identifier of the first network device, and the terminal relocation notification instructs the first terminal device to leave the first network equipment;

控制设备还包括删除模块,用于从第一网络设备的终端接入集合中删除第一终端设备的地址,终端接入集合中包括连接第一网络设备的各个终端设备的地址。The control device further includes a deletion module configured to delete the address of the first terminal device from the terminal access set of the first network device, where the terminal access set includes addresses of each terminal device connected to the first network device.

可选地,Optionally,

接收模块,还用于接收来自第三网络设备发送的终端接入通告消息,终端接入通告消息包括第一终端设备地址和第三网络设备的标识,终端接入通告消息指示第一终端设备连接在第三网络设备处;The receiving module is further configured to receive a terminal access announcement message sent from a third network device, where the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, and the terminal access announcement message indicates that the first terminal device is connected at a third network device;

控制设备还包括删除模块,用于如果第一网络设备的终端接入集合中包括第一终端设备的地址,则删除第一网络设备的终端接入集合中第一终端设备的地址;The control device further includes a deletion module, configured to delete the address of the first terminal device in the terminal access set of the first network device if the address of the first terminal device is included in the terminal access set of the first network device;

发送模块,还用于向第一网络设备发送终端迁出指示,终端迁出指示包括第一终端设备的地址,终端迁出指示用于指示第一终端设备离开第一网络设备。The sending module is further configured to send a terminal relocation instruction to the first network device, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device.

可选地,控制设备还包括:Optionally, the control device further includes:

添加模块,用于将第一终端设备的地址添加到第三网络设备的终端接入集合中。The adding module is configured to add the address of the first terminal device to the terminal access set of the third network device.

在本申请实施例中,由于第一网络设备在确定第一终端设备没有与自身连接时,将向控制设备发送错误报文通过消息。因此,如果第一终端设备从第一网络设备处迁出,那么即使由于第二网络设备处的转发表没有及时更新导致将第一VXLAN报文错误地发送至第一网络设备,通过错误报文通告消息仍然可以将该迁出情况通知至控制设备,以通过控制设备来通 告第二网络设备,从而使得第二网络设备及时更新转发表。因此,通过本申请实施例提供的方法,能够在终端设备发生迁移时动态变更转发表中已经建立的VXLAN隧道,使得网络中建立的VXLAN隧道能够实时表征当前需求的VXLAN隧道。如此,不仅提高了建立VXLAN隧道的灵活性,并且使得VXLAN中无需保留全部的设备之间的VXLAN隧道,从而节省各个网络设备处的转发表资源。In this embodiment of the present application, when the first network device determines that the first terminal device is not connected to itself, it will send an error message pass message to the control device. Therefore, if the first terminal device migrates from the first network device, even if the forwarding table at the second network device is not updated in time, the first VXLAN packet is erroneously sent to the first network device. The notification message can still notify the control device of the migration situation, so as to notify the second network device through the control device, so that the second network device updates the forwarding table in time. Therefore, with the method provided by the embodiments of the present application, the established VXLAN tunnel in the forwarding table can be dynamically changed when the terminal device is migrated, so that the VXLAN tunnel established in the network can represent the current demanded VXLAN tunnel in real time. In this way, not only the flexibility of establishing a VXLAN tunnel is improved, but also it is unnecessary to reserve all VXLAN tunnels between devices in the VXLAN, thereby saving forwarding table resources at each network device.

需要说明的是:上述实施例提供的控制设备在建立VXLAN隧道时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的控制设备与建立VXLAN隧道的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the control device provided in the above embodiment establishes a VXLAN tunnel, only the division of the above functional modules is used as an example. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the control device provided in the above embodiment and the method embodiment for establishing a VXLAN tunnel belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.

图8是本申请实施例提供的一种网络设备的结构示意图。上述实施例中的任一网络设备或控制设备均可以通过图8所示的网络设备来实现。参见图8,该网络设备包括至少一个处理器801,通信总线802、存储器803以及至少一个通信接口804。FIG. 8 is a schematic structural diagram of a network device provided by an embodiment of the present application. Any network device or control device in the foregoing embodiments may be implemented by the network device shown in FIG. 8 . Referring to FIG. 8 , the network device includes at least one processor 801 , a communication bus 802 , a memory 803 and at least one communication interface 804 .

处理器801可以是一个通用中央处理器(central processing unit,CPU)、特定应用集成电路(application-specific integrated circuit,ASIC)或一个或多个用于控制本申请方案程序执行的集成电路。图6实施例中的删除模块,以及图7实施例中删除模块、添加模块的功能均可以通过处理器来实现。The processor 801 may be a general-purpose central processing unit (central processing unit, CPU), an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application. The deletion module in the embodiment of FIG. 6 and the functions of the deletion module and the addition module in the embodiment of FIG. 7 can all be implemented by a processor.

通信总线802可包括一通路,在上述组件之间传送信息。Communication bus 802 may include a path to communicate information between the aforementioned components.

存储器803可以是只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、光盘(包括只读光盘(compact disc read-only memory,CD-ROM)、压缩光盘、激光盘、数字通用光盘、蓝光光盘等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器803可以是独立存在,通过通信总线802与处理器801相连接。存储器803也可以和处理器801集成在一起。The memory 803 may be read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), optical disk ( including compact disc read-only memory (CD-ROM), compact disc, laser disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk or other magnetic storage device, or capable of carrying or storing instructions or data A desired program code in a structured form and any other medium that can be accessed by a computer, but is not limited thereto. The memory 803 can exist independently and is connected to the processor 801 through the communication bus 802 . The memory 803 may also be integrated with the processor 801 .

其中,存储器803用于存储执行本申请方案的程序代码,并由处理器801来控制执行。处理器801用于执行存储器803中存储的程序代码。程序代码中可以包括一个或多个软件模块。图1至图6中的网络设备或控制设备可以通过处理器801以及存储器803中的程序代码中的一个或多个软件模块,来确定用于开发应用的数据。Wherein, the memory 803 is used for storing the program code for executing the solution of the present application, and the execution is controlled by the processor 801 . The processor 801 is used to execute program codes stored in the memory 803 . One or more software modules may be included in the program code. The network device or control device in FIGS. 1 to 6 may determine data for developing an application through the processor 801 and one or more software modules in the program code in the memory 803 .

通信接口804,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。图6或图7实施例中的接收模块和发送模块的功能可以通过通信接口来实现。Communication interface 804, using any transceiver-like device, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. . The functions of the receiving module and the sending module in the embodiment of FIG. 6 or FIG. 7 may be implemented through a communication interface.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个 计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(digital subscriber line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如:固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, digital versatile disc (DVD)), or semiconductor media (eg, solid state disk (SSD)) )Wait.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请实施例的保护范围之内。The above-mentioned embodiments provided for this application are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of this application shall be included in the embodiments of this application. within the scope of protection.

Claims (21)

一种建立虚拟扩展局域网VXLAN隧道的方法,其特征在于,应用于VXLAN中的第一网络设备,所述VXLAN中包括多个网络设备,所述第一网络设备为所述多个网络设备中的一个;A method for establishing a virtual extended local area network VXLAN tunnel, characterized in that it is applied to a first network device in a VXLAN, the VXLAN includes multiple network devices, and the first network device is one of the multiple network devices. One; 所述方法包括:The method includes: 接收来自第二网络设备的第一VXLAN报文,所述第一VXLAN报文包括的原始帧的目的地址为第一终端设备的地址;receiving the first VXLAN message from the second network device, where the destination address of the original frame included in the first VXLAN message is the address of the first terminal device; 如果所述第一网络设备所连接的终端设备中没有所述第一终端设备,则向控制设备发送错误报文通告消息,所述错误报文通告消息包括所述第一终端设备的地址、所述第一网络设备的标识以及所述第二网络设备的标识,所述错误报文通告消息指示所述第一终端设备没有与所述第一网络设备连接,但所述第一网络设备仍接收到来自所述第二网络设备且发送至所述第一终端设备的VXLAN报文。If there is no first terminal device in the terminal devices connected to the first network device, send an error message notification message to the control device, where the error message notification message includes the address of the first terminal device, the The identifier of the first network device and the identifier of the second network device, the error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives to the VXLAN packet from the second network device and sent to the first terminal device. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises: 当所述第一终端设备离开所述第一网络设备时,从所述第一网络设备的终端接入集合中删除所述第一终端设备的地址,所述终端接入集合中包括连接所述第一网络设备的各个终端设备的地址。When the first terminal device leaves the first network device, delete the address of the first terminal device from the terminal access set of the first network device, where the terminal access set includes connecting the The address of each terminal device of the first network device. 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises: 如果检测到所述第一终端设备和所述第一网络设备断开通信,则确定所述第一终端设备离开所述第一网络设备。If it is detected that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device. 如权利要求2或3所述的方法,其特征在于所述方法还包括:The method according to claim 2 or 3, characterized in that the method further comprises: 所述第一终端设备离开所述第一网络设备时,向所述控制设备发送终端迁出通知,所述终端迁出通知包括所述第一终端设备的地址和所述第一网络设备的标识,所述终端迁出通知指示所述第一终端设备离开所述第一网络设备。When the first terminal device leaves the first network device, send a terminal move-out notification to the control device, where the terminal move-out notification includes the address of the first terminal device and the identifier of the first network device , the terminal move-out notification instructs the first terminal device to leave the first network device. 如权利要求2至4任一所述的方法,其特征在于,包括:The method of any one of claims 2 to 4, comprising: 如果接收到来自所述控制设备的终端迁出指示,则确定所述第一终端设备离开所述第一网络设备,所述终端迁出指示包括所述第一终端设备的地址,所述终端迁出指示用于指示所述第一终端设备离开所述第一网络设备。If a terminal relocation instruction is received from the control device, it is determined that the first terminal device leaves the first network device, the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction includes the address of the first terminal device. The output instruction is used to instruct the first terminal device to leave the first network device. 如权利要求1至5任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises: 将所述原始帧封装为第二VXLAN报文,将所述第二VXLAN报文经由所述第一网络设备到所述控制设备之间的VXLAN隧道发送至所述控制设备。The original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent to the control device via the VXLAN tunnel between the first network device and the control device. 一种建立虚拟扩展局域网VXLAN隧道的方法,其特征在于,应用于控制设备;A method for establishing a virtual extended local area network VXLAN tunnel, which is characterized in that it is applied to a control device; 所述方法包括:The method includes: 接收来自VXLAN中的第一网络设备的错误报文通告消息,所述错误报文通告消息包括第一终端设备的地址、所述第一网络设备的标识以及所述第二网络设备的标识,所述错误报文通告消息指示所述第一终端设备没有与所述第一网络设备连接,但所述第一网络设备仍接收到来自所述第二网络设备且发送至所述第一终端设备的VXLAN报文,所述VXLAN中包括多个网络设备,所述第一网络设备和所述第二网络设备为所述多个网络设备中的两个;Receive an error message notification message from the first network device in the VXLAN, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the identifier of the second network device, where The error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives messages from the second network device and sent to the first terminal device. VXLAN packet, the VXLAN includes multiple network devices, and the first network device and the second network device are two of the multiple network devices; 向所述第二网络设备发送终端变更消息,所述终端变更消息包括所述第一终端设备的地址和第三网络设备的标识,所述终端变更消息指示所述第一终端设备当前连接所述第三网络设备。Send a terminal change message to the second network device, where the terminal change message includes the address of the first terminal device and the identifier of the third network device, and the terminal change message indicates that the first terminal device is currently connected to the third network device. 如权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises: 接收来自所述第一网络设备的终端迁出通知,所述终端迁出通知包括所述第一终端设备的地址和所述第一网络设备的标识,所述终端迁出通知指示所述第一终端设备离开所述第一网络设备;Receive a terminal move-out notification from the first network device, the terminal move-out notification includes an address of the first terminal device and an identifier of the first network device, and the terminal move-out notification indicates the first The terminal device leaves the first network device; 从所述第一网络设备的终端接入集合中删除所述第一终端设备的地址,所述终端接入集合中包括连接所述第一网络设备的各个终端设备的地址。Delete the address of the first terminal device from a terminal access set of the first network device, where the terminal access set includes addresses of each terminal device connected to the first network device. 如权利要求7或8所述的方法,其特征在于,所述方法还包括:The method of claim 7 or 8, wherein the method further comprises: 接收来自所述第三网络设备发送的终端接入通告消息,所述终端接入通告消息包括所述第一终端设备地址和所述第三网络设备的标识,所述终端接入通告消息指示所述第一终端设备连接在所述第三网络设备处;Receive a terminal access announcement message sent from the third network device, the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, and the terminal access announcement message indicates the the first terminal device is connected to the third network device; 如果所述第一网络设备的终端接入集合中包括所述第一终端设备的地址,则删除所述第一网络设备的终端接入集合中所述第一终端设备的地址并向所述第一网络设备发送终端迁出指示,所述终端迁出指示包括所述第一终端设备的地址,所述终端迁出指示用于指示所述第一终端设备离开所述第一网络设备。If the terminal access set of the first network device includes the address of the first terminal device, delete the address of the first terminal device in the terminal access set of the first network device and send the address to the first terminal device. A network device sends a terminal relocation instruction, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to instruct the first terminal device to leave the first network device. 如权利要求9所述的方法,其特征在于,所述接收来自所述第三网络设备发送的终端接入通告消息之后,还包括:The method according to claim 9, wherein after receiving the terminal access announcement message sent from the third network device, the method further comprises: 将所述第一终端设备的地址添加到所述第三网络设备的终端接入集合中。The address of the first terminal device is added to the terminal access set of the third network device. 一种VXLAN中的第一网络设备,其特征在于,所述VXLAN中包括多个网络设备,所述第一网络设备为所述多个网络设备中的一个;A first network device in a VXLAN, wherein the VXLAN includes multiple network devices, and the first network device is one of the multiple network devices; 所述第一网络设备包括:The first network device includes: 接收模块,用于接收来自第二网络设备的第一VXLAN报文,所述第一VXLAN报文包括的原始帧的目的地址为第一终端设备的地址;a receiving module, configured to receive the first VXLAN message from the second network device, where the destination address of the original frame included in the first VXLAN message is the address of the first terminal device; 发送模块,用于如果所述第一网络设备所连接的终端设备中没有所述第一终端设备,则向控制设备发送错误报文通告消息,所述错误报文通告消息包括所述第一终端设备的地址、所述第一网络设备的标识以及所述第二网络设备的标识,所述错误报文通告消息指示所述第一终端设备没有与所述第一网络设备连接,但所述第一网络设备仍接收到来自所述第二网络 设备且发送至所述第一终端设备的VXLAN报文。a sending module, configured to send an error message notification message to a control device if the first terminal device is not included in the terminal devices connected to the first network device, where the error message notification message includes the first terminal The address of the device, the identifier of the first network device, and the identifier of the second network device, the error message notification message indicates that the first terminal device is not connected to the first network device, but the first terminal device is not connected to the first network device. A network device still receives the VXLAN packet from the second network device and sent to the first terminal device. 如权利要求11所述的第一网络设备,其特征在于,所述第一网络设备还包括:The first network device according to claim 11, wherein the first network device further comprises: 删除模块,用于当所述第一终端设备离开所述第一网络设备时,从所述第一网络设备的终端接入集合中删除所述第一终端设备的地址,所述终端接入集合中包括连接所述第一网络设备的各个终端设备的地址。a deletion module, configured to delete the address of the first terminal device from the terminal access set of the first network device when the first terminal device leaves the first network device, the terminal access set Include the address of each terminal device connected to the first network device. 如权利要求12所述的第一网络设备,其特征在于,所述删除模块用于:The first network device according to claim 12, wherein the deletion module is used for: 如果检测到所述第一终端设备和所述第一网络设备断开通信,则确定所述第一终端设备离开所述第一网络设备。If it is detected that the first terminal device and the first network device are disconnected from communication, it is determined that the first terminal device leaves the first network device. 如权利要求13所述的第一网络设备,其特征在于,所述发送模块还用于:The first network device according to claim 13, wherein the sending module is further configured to: 所述第一终端设备离开所述第一网络设备时,向所述控制设备发送终端迁出通知,所述终端迁出通知包括所述第一终端设备的地址和所述第一网络设备的标识,所述终端迁出通知指示所述第一终端设备离开所述第一网络设备。When the first terminal device leaves the first network device, send a terminal move-out notification to the control device, where the terminal move-out notification includes the address of the first terminal device and the identifier of the first network device , the terminal move-out notification instructs the first terminal device to leave the first network device. 如权利要求12至14任一所述的第一网络设备,其特征在于,所述删除模块用于:The first network device according to any one of claims 12 to 14, wherein the deletion module is configured to: 如果接收到来自所述控制设备的终端迁出指示,则确定所述第一终端设备离开所述第一网络设备,所述终端迁出指示包括所述第一终端设备的地址,所述终端迁出指示用于指示所述第一终端设备离开所述第一网络设备。If a terminal relocation instruction is received from the control device, it is determined that the first terminal device leaves the first network device, the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction includes the address of the first terminal device. The output instruction is used to instruct the first terminal device to leave the first network device. 如权利要求11至15任一所述的第一网络设备,其特征在于,所述发送模块还用于:The first network device according to any one of claims 11 to 15, wherein the sending module is further configured to: 将所述原始帧封装为第二VXLAN报文,将所述第二VXLAN报文经由所述第一网络设备到所述控制设备之间的VXLAN隧道发送至所述控制设备。The original frame is encapsulated into a second VXLAN packet, and the second VXLAN packet is sent to the control device via the VXLAN tunnel between the first network device and the control device. 一种控制设备,其特征在于,所述控制设备包括:A control device, characterized in that the control device comprises: 接收模块,用于接收来自VXLAN中的第一网络设备的错误报文通告消息,所述错误报文通告消息包括第一终端设备的地址、所述第一网络设备的标识以及所述第二网络设备的标识,所述错误报文通告消息指示所述第一终端设备没有与所述第一网络设备连接,但所述第一网络设备仍接收到来自所述第二网络设备且发送至所述第一终端设备的VXLAN报文,所述VXLAN中包括多个网络设备,所述第一网络设备和所述第二网络设备为所述多个网络设备中的两个;a receiving module, configured to receive an error message notification message from a first network device in the VXLAN, where the error message notification message includes the address of the first terminal device, the identifier of the first network device, and the second network device The identification of the device, the error message notification message indicates that the first terminal device is not connected to the first network device, but the first network device still receives from the second network device and sends it to the The VXLAN message of the first terminal device, the VXLAN includes multiple network devices, and the first network device and the second network device are two of the multiple network devices; 发送模块,用于向所述第二网络设备发送终端变更消息,所述终端变更消息包括所述第一终端设备的地址和第三网络设备的标识,所述终端变更消息指示所述第一终端设备当前连接所述第三网络设备。a sending module, configured to send a terminal change message to the second network device, where the terminal change message includes an address of the first terminal device and an identifier of a third network device, and the terminal change message indicates the first terminal The device is currently connected to the third network device. 如权利要求17所述的控制设备,其特征在于,The control device of claim 17, wherein: 所述接收模块,还用于接收来自所述第一网络设备的终端迁出通知,所述终端迁出通知包括所述第一终端设备的地址和所述第一网络设备的标识,所述终端迁出通知指示所述第一 终端设备离开所述第一网络设备;The receiving module is further configured to receive a terminal migration notification from the first network device, where the terminal migration notification includes the address of the first terminal device and the identifier of the first network device, and the terminal The move-out notification instructs the first terminal device to leave the first network device; 所述控制设备还包括删除模块,用于从所述第一网络设备的终端接入集合中删除所述第一终端设备的地址,所述终端接入集合中包括连接所述第一网络设备的各个终端设备的地址。The control device further includes a deletion module, configured to delete the address of the first terminal device from a terminal access set of the first network device, where the terminal access set includes a terminal connected to the first network device. The address of each terminal device. 如权利要求17或18所述的控制设备,其特征在于,A control device as claimed in claim 17 or 18, characterized in that, 所述接收模块,还用于接收来自所述第三网络设备发送的终端接入通告消息,所述终端接入通告消息包括所述第一终端设备地址和所述第三网络设备的标识,所述终端接入通告消息指示所述第一终端设备连接在所述第三网络设备处;The receiving module is further configured to receive a terminal access announcement message sent from the third network device, where the terminal access announcement message includes the address of the first terminal device and the identifier of the third network device, the the terminal access announcement message indicates that the first terminal device is connected to the third network device; 所述控制设备还包括删除模块,用于如果所述第一网络设备的终端接入集合中包括所述第一终端设备的地址,则删除所述第一网络设备的终端接入集合中所述第一终端设备的地址;The control device further includes a deletion module, configured to delete the address of the first terminal device in the terminal access set of the first network device if the address of the first terminal device is included in the terminal access set of the first network device. the address of the first terminal device; 所述发送模块,还用于向所述第一网络设备发送终端迁出指示,所述终端迁出指示包括所述第一终端设备的地址,所述终端迁出指示用于指示所述第一终端设备离开所述第一网络设备。The sending module is further configured to send a terminal relocation instruction to the first network device, where the terminal relocation instruction includes the address of the first terminal device, and the terminal relocation instruction is used to indicate the first terminal relocation instruction. The terminal device leaves the first network device. 如权利要求19所述的控制设备,其特征在于,所述控制设备还包括:The control device of claim 19, wherein the control device further comprises: 添加模块,用于将所述第一终端设备的地址添加到所述第三网络设备的终端接入集合中。The adding module is configured to add the address of the first terminal device to the terminal access set of the third network device. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行权利要求1-6任一项所述的方法、或者执行权利要求7-10任一项所述的方法。A computer-readable storage medium having instructions stored in the computer-readable storage medium, when running on a computer, causes the computer to execute the method of any one of claims 1-6, or execute the method of claim 7- 10. The method of any one.
PCT/CN2021/100398 2020-06-30 2021-06-16 Method for creating vxlan tunnel and related devices Ceased WO2022001666A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010615448.XA CN113872844B (en) 2020-06-30 2020-06-30 Method for establishing VXLAN tunnel and related equipment
CN202010615448.X 2020-06-30

Publications (1)

Publication Number Publication Date
WO2022001666A1 true WO2022001666A1 (en) 2022-01-06

Family

ID=78981462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/100398 Ceased WO2022001666A1 (en) 2020-06-30 2021-06-16 Method for creating vxlan tunnel and related devices

Country Status (2)

Country Link
CN (1) CN113872844B (en)
WO (1) WO2022001666A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346900A (en) * 2013-05-31 2013-10-09 华为技术有限公司 Route configuration method and gateway after thermal migration of virtual machine in large two-layer network
US20160119219A1 (en) * 2014-10-26 2016-04-28 Microsoft Technology Licensing, Llc Method for reachability management in computer networks
CN107547400A (en) * 2017-06-21 2018-01-05 新华三技术有限公司 A kind of virtual machine migration method and device
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259736A (en) * 2013-05-24 2013-08-21 杭州华三通信技术有限公司 Tunnel building method and network equipment
EP3386157B1 (en) * 2015-12-30 2020-03-04 Huawei Technologies Co., Ltd. Packet transmission method, device and system
CN106385354B (en) * 2016-08-30 2019-08-20 锐捷网络股份有限公司 Message forwarding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346900A (en) * 2013-05-31 2013-10-09 华为技术有限公司 Route configuration method and gateway after thermal migration of virtual machine in large two-layer network
US20160119219A1 (en) * 2014-10-26 2016-04-28 Microsoft Technology Licensing, Llc Method for reachability management in computer networks
CN107547400A (en) * 2017-06-21 2018-01-05 新华三技术有限公司 A kind of virtual machine migration method and device
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration

Also Published As

Publication number Publication date
CN113872844B (en) 2023-07-18
CN113872844A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN113872845B (en) Method for establishing VXLAN tunnel and related equipment
US9374323B2 (en) Communication between endpoints in different VXLAN networks
US9577958B2 (en) Method and apparatus for implementing communication between virtual machines
CN108347493B (en) Hybrid cloud management method and device and computing equipment
EP2974234B1 (en) Generating a host route
US11184842B2 (en) Conveying non-access stratum messages over ethernet
EP4037267B1 (en) Method, apparatus and system for sending message
US12074728B2 (en) Tunnel configuration method, apparatus, system, and device, and storage medium
CN105591916B (en) A kind of message transmitting method and device
CN104579954B (en) The cross-domain retransmission method of message, device and communication equipment
CN111736958B (en) Virtual machine migration method, system, computer equipment and storage medium
CN105763512A (en) SDN virtual network communication method and device
WO2014067280A1 (en) Processing method, apparatus and system for multicast
CN108270878A (en) Method, the VTEP equipment of ARP messages are sent in VXLAN
CN116235473A (en) Normalized lookup and forwarding for different VPNs
WO2021139304A1 (en) Method and device for multi-cloud interconnection
US20190007368A1 (en) DHCP in Layer-3 Overlay with Anycast Address Support and Network Address Transparency
JP7348403B2 (en) Method for sending reply packets, method for sending route advertisement messages, network device, and computer program
WO2018001339A1 (en) Method and apparatus for forwarding packet in virtual extensible local area network (vxlan)
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
CN114500171B (en) Network system and message transmission method
CN113872844B (en) Method for establishing VXLAN tunnel and related equipment
US11902166B2 (en) Policy based routing in extranet networks
CN113300931B (en) Virtual machine migration discovery method and VTEP
CN113472912A (en) ARP cache table item updating method, VTEP, VM and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21832150

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21832150

Country of ref document: EP

Kind code of ref document: A1