A method, device and storage medium for sending BUM messages in a VXLAN network
By configuring loopback interface and ACL rules in VXLAN network, using switching chips to copy and encapsulate BUM messages, the problems of high occupancy and large delay when the CPU sends BUM messages are solved, and the system stability and universality are improved .
Patent Information
- Application Number
- CN202211136952.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-09-19
AI Technical Summary
In an environment with a large number of VXLAN tunnels, the CPU has a high occupancy rate and a large delay when sending BUM messages, which can easily lead to system instability.
By configuring the loopback interface and ACL rules in the switching chip, the loopback interface and ACL rules are used to forward the BUM message data to be sent to the VXLAN network to be broadcast, and the switching chip replicates and adds tunnel packaging information to reduce the load on the CPU.
It reduces CPU load, enhances system stability, and does not need to rely on switching chips to support multicast packetization methods, making it more versatile.
Smart Images

Figure CN115567464B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device and storage medium for sending a BUM message in a VXLAN network. Background Art
[0002] In the existing VXLAN spine-leaf network, the spine is configured with a vxlan interface, and the spine is connected to each leaf by a VXLAN tunnel. Each leaf is connected to N servers, and each server has several virtual machines (VMs) connected to the vxlan network.
[0003] For example, please refer to Figure 1 A typical VXLAN Spine-Leaf network structure diagram is shown in Figure 1 As shown in the figure, two interface vxlan layer 3 interfaces are configured on the Spine. The Spine establishes VXLAN tunnels with Leaf1, Leaf2, ..., Leafn respectively. Each Leaf is connected to N servers. There are several virtual machines VM on each server, some VMs are connected to vxlan 1, and some VMs are connected to vxlan 2. When the corresponding vxlan gateway needs to send BUM (broadcast, unknown unicast, unknown multicast) messages to all VMs under this VXLAN, the gateway on the Spine needs to send messages with vxlan tunnel encapsulation to all leafs, and then reach the Leaf, decapsulate the tunnel message, and then flood a copy of the traffic to the corresponding VM on the Leaf.
[0004] Based on the above content, if the number of VXLAN tunnels between the VXLAN gateway and the Leaf increases, the CPU will send BUM messages with vxlan tunnel encapsulation one by one, which will inevitably be inefficient and affect the performance of the system. Summary of the invention
[0005] The embodiments of the present application provide a method, device and storage medium for sending BUM messages in a VXLAN network, which are used to solve the following technical problems: in an environment with a large number of VXLAN tunnels, the CPU has a high occupancy rate and a large delay when sending BUM messages, which can easily lead to system instability.
[0006] In the first aspect, an embodiment of the present application provides a BUM message sending method in a VXLAN network, characterized in that it is applied to a BUM message sending system, the BUM message sending system includes: spine, leaf, VM, the spine includes a CPU and a switching chip, and the method includes: the CPU determines the BUM message data to be sent, and sends the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes interface information of the loopback interface and network information of the vxlan network to be broadcast; the switching chip sends and receives the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent; the switching chip reads the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and forwards the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast.
[0007] In one implementation of the present application, before sending and receiving the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent, the method also includes: configuring the loopback interface; configuring the loopback interface, specifically including: determining any idle interface as the interface to be configured; setting the interface to be configured according to the preset loopback configuration name so that the sending signal and the receiving signal of the interface to be configured can be connected.
[0008] In one implementation of the present application, after configuring the loopback interface, the method further includes: executing a MAC address learning function disabling instruction based on the interface information of the loopback interface to disable the MAC address learning function of the loopback interface.
[0009] In one implementation of the present application, before reading the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, the method also includes: configuring the ACL rule; configuring the ACL rule, specifically including: setting the interface bound to the ACL rule as a loopback interface; constructing a reading instruction for the BUM message data to be sent, so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcast of the BUM message; and constructing an action instruction to forward the BUM message to the vxlan network to be broadcast.
[0010] In one implementation of the present application, after forwarding the BUM message data to be sent to the vxlan network to be broadcast, the method also includes: the switching chip copies the BUM message data to be sent according to the number of connected leafs, and adds tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and sends it to the corresponding leaf; after receiving the BUM message data to be sent with the added tunnel encapsulation information, the leaf decapsulates it, and according to the number of VMs of the connected VXLAN 1, copies it and sends it to the corresponding VM.
[0011] In the second aspect, an embodiment of the present application also provides a BUM message sending system in a VXLAN network, characterized in that the BUM message sending system includes: spine, leaf, VM, the spine includes a CPU and a switching chip; the CPU is used to determine the BUM message data to be sent, and send the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes interface information of the loopback interface and network information of the vxlan network to be broadcast; the switching chip is used to send and receive the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent; the switching chip is also used to read the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and forward the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast.
[0012] In one implementation of the present application, the switching chip is also used to configure the loopback interface; configuring the loopback interface specifically includes: determining any idle interface as an interface to be configured; setting the interface to be configured according to a preset loopback configuration name so that the sending signal and the receiving signal of the interface to be configured can be connected.
[0013] In one implementation of the present application, the switching chip is also used to configure ACL rules; configuring ACL rules specifically includes: setting the interface bound to the ACL rule as a loopback interface; constructing a reading instruction for the BUM message data to be sent, so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcast of the BUM message; and constructing an action instruction to forward the BUM message to the vxlan network to be broadcast.
[0014] In one implementation of the present application, the switching chip is also used to copy the BUM message data to be sent according to the number of connected leafs, and add tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and then send it to the corresponding leaf; after receiving the BUM message data to be sent with the tunnel encapsulation information added, the leaf decapsulates it and copies it and sends it to the corresponding VM according to the number of VMs of the connected VXLAN 1.
[0015] In the third aspect, an embodiment of the present application also provides a non-volatile computer storage medium for sending BUM messages in a VXLAN network, storing computer executable instructions, characterized in that the computer executable instructions are set to: determine BUM message data to be sent, and send the BUM message data to be sent to a switching chip; wherein the BUM message data to be sent includes interface information of the loopback interface and network information of the vxlan network to be broadcast; based on the interface information of the loopback interface contained in the BUM message data to be sent, the BUM message data to be sent is sent and received through the loopback interface; the BUM message data to be sent is read through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and the BUM message data to be sent is forwarded to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through a leaf through the vxlan network to be broadcast.
[0016] The embodiment of the present application provides a method, device and storage medium for sending BUM messages in a VXLAN network. Through the above solution, the CPU only needs to send one message, and the switching chip will copy and add different tunnel information, which can significantly reduce the CPU load and enhance system stability. In addition, through the above solution, the present application does not need to rely on the switching chip to support multicast packet sending, nor does it need to consume additional multicast resources. As long as the switching chip supports the VXLAN function, it can support it, and it is more versatile. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 A typical VXLAN Spine-Leaf network structure diagram provided for an embodiment of the present application;
[0019] Figure 2 A schematic diagram of a CPU software packaging mode provided in an embodiment of the present application;
[0020] Figure 3A schematic diagram of a multicast group packet sending mode provided in an embodiment of the present application;
[0021] Figure 4 A flow chart of a method for sending a BUM message in a VXLAN network provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of an ACL loopback packet sending mode provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the internal structure of a BUM message sending system in a VXLAN network provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0025] There are two main methods for sending BUM messages in existing VXLAN networks:
[0026] 1. CPU software packet sending mode: The message content is completely controlled by the CPU. The CPU needs to query the table and add the tunnel information of the vxlan message. Since each leaf has a vxlan 1 VM, the CPU needs to send a message with its own vxlan tunnel information to each leaf. A total of N messages need to be sent, and the sent messages need the CPU software to encapsulate the VXLAN tunnel information. The specific process is as follows: Figure 2 A schematic diagram of a CPU software packet sending mode is shown.
[0027] Due to the CPU software packet sending mode, the CPU needs to encapsulate VXLAN tunnel information packets and send them to VTEP one by one. This leads to high CPU usage, increased packet sending delay, low efficiency, and system instability.
[0028] 2. Based on the multicast group packet sending mode: This solution is described in patent CN107171966A "A VXLAN message sending method, VTEP and VXLAN system". When sending ARP broadcast to vxlan 1, first create a multicast group, add all the vxlan tunnels established between Spine and Leaf to this multicast group, and then the CPU only needs to specify the multicast group and send a BUM message without a vxlan tunnel. Then the switching chip will encapsulate the tunnel according to the tunnel members in the multicast group and forward it. The specific process is as follows Figure 3 A schematic diagram of a multicast group packet sending mode is shown.
[0029] Based on the multicast group packet sending mode, although the CPU only needs to send one message, many switching chips do not support the CPU to specify a multicast group for packet sending. This solution is not very universal and requires additional application for multicast resources.
[0030] The embodiments of the present application provide a method, device and storage medium for sending BUM messages in a VXLAN network, which are used to solve the following technical problems: in an environment with a large number of VXLAN tunnels, the CPU has a high occupancy rate and a large delay when sending BUM messages, which can easily lead to system instability.
[0031] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0032] Figure 4 A flow chart of a method for sending a BUM message in a VXLAN network provided in an embodiment of the present application. Figure 4 As shown, a BUM message sending method in a VXLAN network provided in an embodiment of the present application is applied to a BUM message sending system, the BUM message sending system includes: spine, leaf, VM, the spine includes a CPU and a switching chip, and specifically includes the following steps:
[0033] Step 401: The CPU determines the BUM message data to be sent, and sends the BUM message data to be sent to the switching chip.
[0034] In one embodiment of the present application, in order to implement a BUM message sending method in a VXLAN network of the present application, firstly, some additional configurations need to be performed on the switch, and the specific configurations are as follows:
[0035] 1. Configure a loopback interface.
[0036] In one embodiment of the present application, to configure a loopback interface, it is first necessary to determine an idle interface as the interface to be configured; it should be noted that the idle interface can be an idle port of the switch, or an unused port inside the switching chip, or an unused loopback port built into the switching chip.
[0037] Furthermore, the interface to be configured is set according to the preset loopback configuration naming so that the sending signal and the receiving signal of the interface to be configured can be connected. It is understandable that after the loopback interface is configured, the BUM message data to be sent sent by the CPU can be received back for distribution processing after being sent, so that the CPU only needs to determine one BUM message data to be sent. It should also be noted that the loopback configuration naming can select any existing one, and this application does not limit it here.
[0038] 2. Disable the MAC address learning function of the loopback interface.
[0039] In one embodiment of the present application, when configuring a loopback interface, the embodiment of the present application executes an instruction to disable the MAC address learning function based on the interface information of the loopback interface to disable the MAC address learning function of the loopback interface.
[0040] It should also be noted that by default, the MAC address learning function of the device is turned on. When a data frame is received from a peripheral device, the source MAC address of the data frame is parsed, and then combined with the interface that receives the data frame into a MAC address table entry and added to the MAC address table. When the device receives a data frame destined for the destination MAC address in the future, it can directly query the MAC address table to obtain the correct sending interface, so that it can no longer broadcast. Therefore, in order to avoid conflicts, the embodiment of the present application turns off the MAC learning function of the loopback interface after configuring the loopback interface.
[0041] 3. Configure ACL rules.
[0042] In one embodiment of the present application, to configure the ACL rule, first, it is necessary to set the interface bound to the ACL rule as a loopback interface. Then, in order to be able to send the BUM message data to be sent to the corresponding vxlan network, construct a BUM message data reading instruction to be sent so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcasted by the BUM message; and construct an action instruction to forward the BUM message to the vxlan network to be broadcasted.
[0043] In one embodiment of the present application, after completing the above additional configuration, when the corresponding vxlan gateway needs to send a BUM (broadcast, unknown unicast, unknown multicast) message to all VMs under this VXLAN, the CPU determines the BUM message data to be sent and sends the BUM message data to be sent to the switching chip. It can be understood that the CPU only needs to determine one BUM message data to be sent; it should also be noted that the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast, which is used to send the BUM message data to be sent on the loopback interface, and to determine on which vxlan network to forward the BUM message data to be sent.
[0044] Step 402: The switching chip sends and receives the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent.
[0045] In one embodiment of the present application, after the CPU sends the BUM message data to be sent to the switching chip, the switching chip first reads the BUM message data to be sent to determine the interface information of the loopback interface contained in the BUM message data to be sent. Then the BUM message data to be sent is sent out on the loopback interface. Due to the loopback characteristics of the loopback interface, it can be understood that the BUM message data to be sent will be received on the loopback interface.
[0046] Step 403, the switching chip reads the BUM message data to be sent through the preset ACL rules to determine the vxlan network to be broadcast of the BUM message data to be sent, and forwards the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast.
[0047] In one embodiment of the present application, after the loopback interface re-receives the BUM message data to be sent, since the ACL rule is bound to the loopback interface, the ACL rule will execute the reading of the BUM message data to be sent to determine the vxlan network to be broadcasted of the BUM message data to be sent. Then the BUM message data to be sent is forwarded to the vxlan network to be broadcasted.
[0048] Furthermore, the switching chip copies the BUM message data to be sent according to the number of connected leafs, and adds tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and then sends it to the corresponding leaf.
[0049] Furthermore, after receiving the BUM message data to be sent with the tunnel encapsulation information added, the leaf decapsulates it and, according to the number of VMs of the connected VXLAN 1, copies it and sends it to the corresponding VM.
[0050] The embodiment of the present application provides a method for sending a BUM message in a VXLAN network, such as Figure 5 As shown, Figure 5 A schematic diagram of an ACL loopback packet sending mode provided in an embodiment of the present application.
[0051] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a BUM message sending system in a VXLAN network, whose structure is as follows: Figure 6 shown.
[0052] Figure 6 The internal structure diagram of a BUM message sending system in a VXLAN network provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the system includes: spine, leaf, and VM. The spine includes a CPU and a switching chip; the CPU is used to determine the BUM message data to be sent, and send the BUM message data to be sent to the switching chip; the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast; the switching chip is used to send and receive the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent; the switching chip is also used to read the BUM message data to be sent through the preset ACL rules to determine the vxlan network to be broadcast of the BUM message data to be sent, and forward the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast.
[0053] In one embodiment of the present application, the switching chip is also used to configure the loopback interface; configuring the loopback interface specifically includes: determining any idle interface as an interface to be configured; setting the interface to be configured according to a preset loopback configuration name so that the sending signal and the receiving signal of the interface to be configured can be connected.
[0054] In one embodiment of the present application, the switching chip is further used to execute a MAC address learning function disable instruction based on the interface information of the loopback interface after configuring the loopback interface, so as to disable the MAC address learning function of the loopback interface.
[0055] In one embodiment of the present application, the switching chip is also used to configure ACL rules; configuring ACL rules specifically includes: setting the interface bound to the ACL rule as a loopback interface; constructing a reading instruction for the BUM message data to be sent, so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcast of the BUM message; constructing an action instruction to forward the BUM message to the vxlan network to be broadcast.
[0056] In one embodiment of the present application, the switching chip is also used to copy the BUM message data to be sent according to the number of connected leafs, and add tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and send it to the corresponding leaf; after receiving the BUM message data to be sent with the tunnel encapsulation information added, the leaf decapsulates it, and according to the number of VMs of the connected VXLAN 1, copies it and sends it to the corresponding VM.
[0057] Some embodiments of the present application provide corresponding Figure 4 A non-volatile computer storage medium for sending a BUM message in a VXLAN network, storing computer executable instructions, wherein the computer executable instructions are set to:
[0058] Determine the BUM message data to be sent, and send the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast;
[0059] Based on the interface information of the loopback interface contained in the BUM message data to be sent, the BUM message data to be sent is sent and received through the loopback interface;
[0060] The BUM message data to be sent is read through the preset ACL rules to determine the vxlan network to be broadcast of the BUM message data to be sent, and the BUM message data to be sent is forwarded to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast.
[0061] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0062] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.
[0063] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0064] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0065] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0067] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0068] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0069] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0070] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0071] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for sending a BUM message in a VXLAN network, characterized in that: Applied to a BUM message sending system, the BUM message sending system includes: spine, leaf, VM, the spine includes a CPU and a switching chip, and the method includes: The CPU determines the BUM message data to be sent, and sends the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast; The switching chip sends and receives the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent; The switching chip reads the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and forwards the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast; Before sending and receiving the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent, the method further includes: Configuring the loopback interface; The configuring of the loopback interface specifically includes: Determine any idle interface as the interface to be configured; The interface to be configured is set according to a preset loopback configuration name so that a sending signal and a receiving signal of the interface to be configured can be connected; After configuring the loopback interface, the method further includes: Based on the interface information of the loopback interface, an instruction to disable the MAC address learning function is executed to disable the MAC address learning function of the loopback interface.
2. The method for sending a BUM message in a VXLAN network according to claim 1, characterized in that: Before reading the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcasted of the BUM message data to be sent, the method further includes: Configure the ACL rule; The configuring of the ACL rule specifically includes: Set the interface bound to the ACL rule to be the loopback interface; Construct a BUM message data reading instruction to be sent, so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcasted of the BUM message; Construct an action instruction to forward the BUM message to the vxlan network to be broadcast.
3. The method for sending a BUM message in a VXLAN network according to claim 1, characterized in that: After forwarding the BUM message data to be sent to the vxlan network to be broadcast, the method further includes: The switching chip copies the BUM message data to be sent according to the number of the connected leafs, and adds tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and then sends it to the corresponding leaf; After receiving the BUM message data to be sent with added tunnel encapsulation information, the leaf decapsulates it and, based on the number of VMs connected to the vxlan network to be broadcast, copies it and sends it to the corresponding VM.
4. A BUM message sending system in a VXLAN network, characterized in that: The BUM message sending system includes: spine, leaf, VM, and the spine includes a CPU and a switching chip; The CPU is used to determine the BUM message data to be sent, and send the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast; The switching chip is used to send and receive the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent; The switching chip is also used to read the BUM message data to be sent through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and forward the BUM message data to be sent to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast; The switching chip is further used to configure the loopback interface; The configuring of the loopback interface specifically includes: Determine any idle interface as the interface to be configured; The interface to be configured is set according to a preset loopback configuration name so that a sending signal and a receiving signal of the interface to be configured can be connected; The switching chip is also used to execute a MAC address learning function disabling instruction based on the interface information of the loopback interface after configuring the loopback interface, so as to disable the MAC address learning function of the loopback interface.
5. The BUM message sending system in a VXLAN network according to claim 4, characterized in that: The switching chip is also used to configure the ACL rules; The configuring of the ACL rule specifically includes: Set the interface bound to the ACL rule to be the loopback interface; Construct a BUM message data reading instruction to be sent, so that the ACL rule can read the BUM message data to be sent to determine the vxlan network to be broadcasted of the BUM message; Construct an action instruction to forward the BUM message to the vxlan network to be broadcast.
6. The BUM message sending system in a VXLAN network according to claim 4, characterized in that: The switching chip is also used to copy the BUM message data to be sent according to the number of the connected leafs, and add tunnel encapsulation information to the BUM message data to be sent through the corresponding vxlan tunnel connected to each leaf, and then send it to the corresponding leaf; After receiving the BUM message data to be sent with added tunnel encapsulation information, the leaf decapsulates it and, based on the number of VMs connected to the vxlan, copies it and sends it to the corresponding VM.
7. A non-volatile computer storage medium for sending BUM messages in a VXLAN network, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Determine the BUM message data to be sent, and send the BUM message data to be sent to the switching chip; wherein the BUM message data to be sent includes the interface information of the loopback interface and the network information of the vxlan network to be broadcast; Based on the interface information of the loopback interface contained in the BUM message data to be sent, sending and receiving the BUM message data to be sent through the loopback interface; The BUM message data to be sent is read through a preset ACL rule to determine the vxlan network to be broadcast of the BUM message data to be sent, and the BUM message data to be sent is forwarded to the vxlan network to be broadcast, so as to send the BUM message data to be sent to the VM through the leaf through the vxlan network to be broadcast; Before sending and receiving the BUM message data to be sent through the loopback interface based on the interface information of the loopback interface contained in the BUM message data to be sent, the method further includes: Configuring the loopback interface; The configuring of the loopback interface specifically includes: Determine any idle interface as the interface to be configured; The interface to be configured is set according to a preset loopback configuration name so that a sending signal and a receiving signal of the interface to be configured can be connected; After configuring the loopback interface, the method further includes: Based on the interface information of the loopback interface, an instruction to disable the MAC address learning function is executed to disable the MAC address learning function of the loopback interface.
