A message transmission system, method, device, equipment and medium

In the EVPN VPLS standard networking scheme of the new metropolitan area network, the load sharing method and tag encapsulation mechanism are used to solve the MAC address learning pressure of the S-Leaf device and the packet loss problem caused by the A-Leaf device's unicast message filtering, achieving more efficient message transmission and quality assurance.

CN115695306BActive Publication Date: 2025-04-18BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211328732.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-04-18
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

In the EVPN VPLS standard networking scheme of the new metropolitan area network, the MAC capacity of the S-Leaf device in the aggregation layer limits the number of terminals accessing the network due to the high pressure of media access control address learning. When the A-Leaf device as a BDF node receives a unicast message but does not find the corresponding MAC address in the local saved MAC address table, the packet will be filtered and packet loss will be affected, affecting the message transmission quality.

Method used

By introducing a load sharing method and tag encapsulation mechanism between the S-Leaf device and the A-Leaf device, if the S-Leaf device determines that the target message to be sent is a unicast message, the target message is encapsulated using the first tag corresponding to the pre-saved target A-Leaf device and sent to the target A-Leaf device; if the A-Leaf device does not save the target MAC address locally, the target message is broadcast to each port associated with the target A-Leaf device under the EVPN instance to avoid packet loss.

Benefits of technology

It effectively avoids packet loss caused by filtering unknown unicast messages when A-Leaf devices are BDF nodes, and improves the quality and reliability of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695306B_ABST
    Figure CN115695306B_ABST
Patent Text Reader

Abstract

The present application provides a message transmission system, method, apparatus, device and medium. The system includes an S-Leaf device and at least one A-Leaf device, wherein each A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node; if the S-Leaf device determines that a target message is a unicast message, the S-Leaf device uses a first label corresponding to the target A-Leaf device for identifying a unicast message to encapsulate the target message before sending the target message to the target A-Leaf device, so that after receiving the target message, if the target A-Leaf device, whether it is a DF node or a BDF node, does not find the target MAC address of the target message in the local MAC address table, the target message is broadcast to each port associated with the target A-Leaf device under the EVPN instance, thereby avoiding packet loss and improving the quality of message transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a message transmission system, method, device, equipment and medium. Background Art

[0002] In the standard networking scheme of Ethernet Virtual Private Network Virtual Private Lan Service (EVPN VPLS) in the new metropolitan area network, the network includes at least an aggregation layer and an access layer, wherein a service-side (Serve Leaf, S-Leaf) device in the aggregation layer usually communicates with multiple access-side (Access Leaf, A-Leaf) devices in the access layer. Therefore, the Media Access Control Address (Media Access Control Address, MAC) address learning pressure of the S-Leaf device in the aggregation layer is very high, and the MAC capacity of the S-Leaf device in the aggregation layer will limit the number of terminals accessing the network.

[0003] In order to solve the above problems, the existing technology introduces UMR technology in the new metropolitan area network. UMR technology can be simply understood as that only the default MAC address is stored in the S-Leaf device. The S-Leaf device sends the message to the A-Leaf device through a load balancing method, and the A-Leaf device then forwards the message to the corresponding port based on the stored MAC address.

[0004] However, in actual applications, A-Leaf devices are divided into Designated Forwarder (DF) nodes and Backup Designated Forwarder (BDF) nodes, where the A-Leaf device as a BDF node will filter the message after receiving the broadcast, multicast and unknown unicast (BUM) message, and will not forward or broadcast the message. Based on this, if the message received by the A-Leaf device as a BDF node is a unicast message, and the MAC address of the message is not found in the saved MAC address table, the A-Leaf device as a BDF node will determine that the message is a BUM message, and filter the message, resulting in packet loss during the message transmission process, thereby affecting the quality of message transmission. Summary of the invention

[0005] The present application provides a message transmission system, method, apparatus, equipment and medium, which are used to solve the problem in the prior art that when the message received by the A-Leaf device as a BDF node is a unicast message and the MAC address corresponding to the unicast message cannot be found in the locally stored MAC address table, the message is discarded, resulting in packet loss and poor message transmission quality during the message transmission process.

[0006] The embodiment of the present application provides a message transmission system, the system comprising: an S-Leaf device and at least one A-Leaf device, wherein each A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node;

[0007] The S-Leaf device is used to determine, if it is determined that the target message to be sent is a unicast message, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device according to the load sharing method; encapsulate the target message using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance, and send the encapsulated target message to the target A-Leaf device;

[0008] The target A-Leaf device is used to obtain the target MAC address carried in the received target message encapsulated with the first label; if the stored MAC address table does not contain the target MAC address, broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance.

[0009] Furthermore, the target A-Leaf device is further configured to search the MAC address table for a target port corresponding to the target MAC address if the MAC address table contains the target MAC address, and send the target message to the target port.

[0010] Further, the target A-Leaf device is further used to send the first label for identifying the unicast message to the S-Leaf device;

[0011] The S-Leaf device is further configured to receive the first tag and store the first tag and the identification information of the target A-Leaf device in correspondence with each other.

[0012] Furthermore, the S-Leaf device is specifically used to obtain the target MAC address carried in the target message. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and the UMR route is stored locally, the target message is determined to be a unicast message.

[0013] Further, the S-Leaf device is further configured to, if the target MAC address is not stored locally and the UMR route is not stored locally, determine that the target message is a BUM message; for each A-Leaf device, use a pre-stored second label corresponding to the A-Leaf device for identifying the BUM message to encapsulate the target message, and send the encapsulated target message to the A-Leaf device;

[0014] The target A-Leaf device is further configured to strip the received target message encapsulated by the second label, and process the target message according to the attribute of the target A-Leaf device.

[0015] Furthermore, the target A-Leaf device is specifically used to broadcast the target message to each AC port under the EVPN instance if the target A-Leaf device is a DF node; if the target A-Leaf device is a backup designated forwarder BDF node, filter the target message.

[0016] Further, the target A-Leaf device is further used to send the second label for identifying the BUM message to the S-Leaf device;

[0017] The S-Leaf device is further configured to receive the second tag and store the second tag and the identification information of the target A-Leaf device in correspondence with each other.

[0018] The embodiment of the present application also provides a message transmission method, which is applied to an S-Leaf device, and the method includes:

[0019] If it is determined that the target message to be sent is a unicast message, determining a target A-Leaf device for transmitting the target message in at least one A-Leaf device according to the load sharing method;

[0020] The target message is encapsulated by using the pre-saved first label corresponding to the target A-Leaf device and used to identify the unicast message, and the encapsulated target message is sent to the target A-Leaf device.

[0021] Further, if it is determined that the target message to be sent is a unicast message, before determining the target A-Leaf device for transmitting the target message according to the load sharing method, the method further includes:

[0022] A first label for identifying a unicast message sent by the target A-Leaf device is received, and the first label and identification information of the target A-Leaf device are stored in correspondence.

[0023] Further, the process of determining that the target message to be sent is a unicast message includes:

[0024] The target MAC address carried in the target message is obtained. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and a UMR route is stored locally, the target message is determined to be a unicast message.

[0025] Furthermore, the method further comprises:

[0026] If the target MAC address is not stored locally and the UMR route is not stored locally, determining that the target message is a broadcast, multicast, or unknown unicast BUM message;

[0027] For each A-Leaf device, the target message is encapsulated using the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message, and the encapsulated target message is sent to the A-Leaf device.

[0028] Further, if it is determined that the target message to be sent is a unicast message, before determining the target A-Leaf device for transmitting the target message according to the load sharing method, the method further includes:

[0029] The second tag is received, and the second tag and the identification information of the target A-Leaf device are stored in correspondence.

[0030] The embodiment of the present application also provides a message transmission method, which is applied to an A-Leaf device, and the method includes:

[0031] Obtaining a target MAC address carried in a received target message encapsulated with a first label, wherein the first label is used to identify a unicast message;

[0032] If the stored MAC address table does not contain the target MAC address, the target message is broadcast to each port associated with the target A-Leaf device under the EVPN instance.

[0033] Furthermore, the method further comprises:

[0034] If the MAC address table contains the target MAC address, the target port corresponding to the target MAC address is searched in the MAC address table, and the target message is sent to the target port.

[0035] Furthermore, before stripping the received target message encapsulated by the first label, the method further includes:

[0036] Sending the first label for identifying the unicast message to the S-Leaf device.

[0037] Furthermore, the method further comprises:

[0038] The received target message encapsulated by the second label is stripped, and the target message is processed according to the attribute of the target A-Leaf device.

[0039] Further, the processing the target message according to the attribute of the target A-Leaf device includes:

[0040] If the target A-Leaf device is a DF node, broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance;

[0041] If the target A-Leaf device is a BDF node, a filtering operation is performed on the target message.

[0042] Furthermore, before stripping the received target message encapsulated by the first label, the method further includes:

[0043] The second label for identifying the BUM message is sent to the S-Leaf device.

[0044] The embodiment of the present application further provides a message transmission device, which is applied to an S-Leaf device, and the device includes:

[0045] A processing module, configured to, if it is determined that the target message to be sent is a unicast message, determine, according to the load sharing method, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device; and encapsulate the target message using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance;

[0046] The sending module is used to send the encapsulated target message to the target A-Leaf device.

[0047] Furthermore, the processing module is further configured to receive a first label for identifying a unicast message sent by the target A-Leaf device, and store the first label and identification information of the target A-Leaf device in correspondence with each other.

[0048] Furthermore, the processing module is specifically used to obtain the target MAC address carried in the target message. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and the UMR route is stored locally, the target message is determined to be a unicast message.

[0049] Further, the processing module is also used to determine that the target message is a broadcast, multicast and unknown unicast BUM message if the target MAC address is not stored locally and the UMR route is not stored locally; for each A-Leaf device, use the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message to encapsulate the target message;

[0050] The sending module is also used to send the encapsulated target message to the A-Leaf device.

[0051] Furthermore, the processing module is further configured to receive the second tag, and store the second tag and the identification information of the target A-Leaf device in correspondence with each other.

[0052] The embodiment of the present application further provides a message transmission device, which is applied to an A-Leaf device, and the device includes:

[0053] A processing module, configured to obtain a target MAC address carried in a received target message encapsulated with a first label; wherein the first label is used to identify a unicast message;

[0054] The sending module is used to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the stored MAC address table does not contain the target MAC address.

[0055] Furthermore, the sending module is further configured to search the MAC address table for a target port corresponding to the target MAC address if the MAC address table contains the target MAC address, and send the target message to the target port.

[0056] Furthermore, the sending module is further used to send the first label for identifying the unicast message to the S-Leaf device.

[0057] Furthermore, the processing module is further configured to obtain a target MAC address carried in the received target message encapsulated by the second label, and process the target message according to the target MAC address and the attributes of the target A-Leaf device.

[0058] Furthermore, the processing module is specifically used to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the target A-Leaf device is a DF node; if the target A-Leaf device is a BDF node, filter the target message.

[0059] Furthermore, the sending module is further used to send the second label for identifying the BUM message to the S-Leaf device.

[0060] An embodiment of the present application also provides an electronic device, which includes at least a processor and a memory, and the processor is used to implement the steps of any of the message transmission methods described above when executing a computer program stored in the memory.

[0061] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, which implements the steps of any of the message transmission methods described above when the computer program is executed by a processor.

[0062] In an embodiment of the present application, a message transmission system includes an S-Leaf device and at least one A-Leaf device, wherein each A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node; the S-Leaf device is used to determine, if it is determined that the target message to be sent is a unicast message, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device according to a load sharing method; the target message is encapsulated using a first label corresponding to the target A-Leaf device that is pre-saved and used to identify the unicast message, and the encapsulated target message is sent to the target A-Leaf device; the target A-Leaf device is used to obtain a target MAC address carried in a received target message encapsulated using the first label; if the target MAC address is not included in the saved MAC address table, the target message is broadcast to each port associated with the target A-Leaf device under the EVPN instance. In an embodiment of the present application, if the target message of the S-Leaf device is a unicast message, before the S-Leaf device sends the target message to the target A-Leaf device, the S-Leaf device will use the first label corresponding to the target A-Leaf device for identifying the unicast message to encapsulate the target message, so that after receiving the target message, if the target A-Leaf device, whether it is a DF node or a BDF node, does not find the target MAC address of the target message in the local MAC address table, the target A-Leaf device will broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance, thereby avoiding packet loss and improving the quality of message transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 Logical topology diagram of metropolitan area network provided by existing technology;

[0065] Figure 2 A schematic diagram of a first packet loss scenario provided by the prior art;

[0066] Figure 3 A schematic diagram of a second packet loss scenario provided by the prior art;

[0067] Figure 4 A schematic diagram of a third packet loss scenario provided by the prior art;

[0068] Figure 5 A schematic diagram of the structure of a message transmission system provided in an embodiment of the present application;

[0069] Figure 6 A schematic diagram of a message transmission scenario provided in an embodiment of the present application;

[0070] Figure 7 A schematic diagram of a message transmission process provided by an embodiment of the present invention;

[0071] Figure 8 A schematic diagram of a message transmission process provided by an embodiment of the present invention;

[0072] Fig. 9 A schematic diagram of the structure of a message transmission device provided by an embodiment of the present invention;

[0073] Fig.10 A schematic diagram of the structure of a message transmission device provided by an embodiment of the present invention;

[0074] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all 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.

[0076] Figure 1 The logical topology diagram of the metropolitan area network provided by the existing technology is as follows: Figure 1As shown, the metropolitan area network includes A-Leaf devices, S-Leaf devices, routers (Spine), home gateways (Home Gateway, HG), optical line terminals (Optical Line Terminal, OLT), core routers (Core Router, CR), user planes (User Plane, UP), and control planes (Control Plane, CP).

[0077] Among them, OLT connects HG to the metropolitan area network, so that HG provides Internet access services to users; A-Leaf devices forward messages sent by the user side to S-Leaf devices and CR through Spine, and forward messages sent by S-Leaf devices to HG through OLT; S-Leaf devices forward messages sent by A-Leaf devices to UP, and forward messages sent by UP to A-Leaf devices through Spine; UP is responsible for responding to messages sent by the user side; CP can control the messages responded by UP.

[0078] The network deployment between A-Leaf devices and S-Leaf devices is EVPN VPLS+UMR over SRv6 network. EVPN multi-active mode is deployed between A-Leaf devices, and DF nodes and BDF nodes are elected between A-Leaf devices based on VLAN or IP address. BDF nodes are used to filter broadcast packets, and DF nodes are used to broadcast forward broadcast packets.

[0079] In addition, the MAC addresses on different A-Leaf devices may be different, so the MAC addresses are synchronized between A-Leaf devices through the Border Gateway Protocol (BGP). However, during the period when the MAC addresses between A-Leaf devices are not synchronized or when the MAC address on the A-Leaf device ages, the S-Leaf device will not perceive the change of the MAC address on the A-Leaf device, but will still send a unicast message to a certain A-Leaf device. If the A-Leaf device that receives the unicast message is a BDF node, but the BDF node does not locally store the MAC address corresponding to the unicast message, the BDF node will discard the unicast message, so that the message cannot reach the terminal, and there will be problems such as unsuccessful user online, user service periodic packet loss or long-term packet loss, which seriously affects the user's service experience.

[0080] Specifically, the scenarios of packet loss in the prior art include but are not limited to the following:

[0081] Scenario 1: When a terminal dials up to the Internet, the dial-up fails, affecting the user's service experience.

[0082] Figure 2 A schematic diagram of a first packet loss scenario provided by the prior art, such as the Figure 2 As shown, it includes a terminal, an A-Leaf1 device, an A-Leaf2 device, an S-Leaf1 device, and an S-Leaf2 device, wherein the A-Leaf1 device is a BDF node and the A-Leaf2 device is a DF node. The terminal with the MAC1 address performs a Point To Point Protocol Over Ethernet (PPPOE) dial-up to the Internet, and the terminal broadcasts the PPPOE message to the A-Leaf2 device. The A-Leaf2 device learns and saves the MAC1 address, but the A-Leaf1 device does not save the MAC1 address.

[0083] The A-Leaf2 device broadcasts and copies the PPPOE message to the S-Leaf1 device and the S-Leaf2 device, and the S-Leaf1 device and the S-Leaf2 device broadcast the PPPOE message to the UP. The UP responds to the PPPOE broadcast packet and sends a unicast response message to the S-Leaf1 device. Based on the load balancing method, the S-Leaf1 device may send the response message to the A-Leaf1 device. Since the MAC1 address is not learned and saved on the A-Leaf1 device, the A-Leaf1 device, as a BDF node, will process the response message as a BUM message and filter out the response message, resulting in the terminal being unable to receive the response message from the UP, and a dial-up failure will occur.

[0084] Scenario 2: After the terminal dials up successfully, the MAC2 address in the A-Leaf1 device ages, causing packet loss during the terminal's service cycle.

[0085] Figure 3 A schematic diagram of a second packet loss scenario provided by the prior art, such as the Figure 3 As shown, it includes a terminal, an A-Leaf1 device, an A-Leaf2 device, an S-Leaf1 device, and an S-Leaf2 device, wherein the A-Leaf1 device is a BDF node and the A-Leaf2 device is a DF node. The terminal with the MAC2 address sends an uplink service message to the A-Leaf2 device, which forwards the uplink service message to the S-Leaf2 device, which then forwards the uplink service message to the UP. The UP responds to the uplink service message and sends a downlink service message in response to the S-Leaf1 device. Based on the load balancing method, the S-Leaf1 device may send the response message to the A-Leaf1 device.

[0086] However, the A-Leaf1 device has not received any uplink service message sent by the terminal with the MAC2 address within the set time. For example, the uplink service message of the terminal with the MAC2 address has been forwarded through the A-Leaf2 device, resulting in the A-Leaf1 device having no uplink service message of MAC2. At this time, the A-Leaf1 device has performed MAC address aging processing on the MAC2 address, that is, the MAC2 address has been deleted from the locally stored MAC address table.

[0087] Based on this, when the A-Leaf1 device receives a downlink service message with a MAC2 address, since the MAC2 address on the A-Leaf1 device has aged and the A-Leaf1 device is a BDF node, it will process the response message as a BUM message and filter out the downlink service message, resulting in packet loss during the service cycle of the terminal with the MAC2 address.

[0088] Scenario 3: After the terminal dials up successfully, the MAC addresses in the A-Leaf and A-Leaf2 devices age, causing packet loss for a long time, affecting the user experience.

[0089] Figure 4 A schematic diagram of a third type of packet loss scenario provided by the prior art, such as the Figure 4 As shown, the service of the terminal with MAC2 address is mainly receiving downlink service messages by the terminal. If the terminal does not send uplink service messages within the set time, the A-Leaf1 device and the A-Leaf2 device will age the saved MAC2.

[0090] On this basis, if the A-Leaf1 device receives a downlink service message sent to the MAC2 address, and the A-Leaf1 device is a BDF node, it will process the response message as a BUM message and filter out the downlink service message, resulting in a long period of packet loss for the terminal service at the MAC2 address.

[0091] In order to avoid packet loss during message transmission and improve the effect of message transmission, the embodiments of the present application provide a message transmission system, method, apparatus, device and medium.

[0092] Embodiment 1:

[0093] Figure 5 A schematic diagram of a message transmission system structure provided in an embodiment of the present application, the system includes: an S-Leaf device 501 and at least one A-Leaf device 502, wherein each A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node;

[0094] The S-Leaf device 501 is used to determine, if it is determined that the target message to be sent is a unicast message, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device according to the load sharing method; encapsulate the target message using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance, and send the encapsulated target message to the target A-Leaf device;

[0095] The target A-Leaf device is used to obtain the target MAC address carried in the received target message encapsulated with the first label; if the stored MAC address table does not contain the target MAC address, broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance.

[0096] A message transmission system provided in an embodiment of the present application is applied to a metropolitan area network, and the message transmission system includes at least an S-Leaf device and an A-Leaf device.

[0097] In an embodiment of the present application, the message transmission system includes at least an S-Leaf device and an A-Leaf device, wherein an EVPN VPLS+UMR network is deployed between the A-Leaf device and the S-Leaf device, so that the A-Leaf device and the S-Leaf device can communicate with each other. In addition, an S-Leaf device communicates with at least two A-Leaf devices, one of which will be elected as a DF node, and the other will be elected as a BDF node. Among them, the S-Leaf device can send messages to only one A-Leaf device, which can be understood as the S-Leaf device sending a unicast message to the A-Leaf device.

[0098] Based on this, in an embodiment of the present application, if the S-Leaf device determines that the target message to be sent is a unicast message, the S-Leaf device will determine the target A-Leaf device for transmitting the target message according to the load sharing method. The load sharing method is a prior art, including but not limited to determining the hash value of each A-Leaf device through a hash algorithm, and determining the target A-Leaf device according to the hash value of each A-Leaf device.

[0099] In an embodiment of the present application, the S-Leaf device stores the first label sent by each A-Leaf device, and the first label is used to identify the message as a unicast message, wherein the first label of each A-Leaf device is different. After the S-Leaf device determines the target A-Leaf device for transmitting the target message, the S-Leaf device obtains the first label corresponding to the target A-Leaf device that is stored, and uses the first label as the destination address to encapsulate the target message, and then sends the encapsulated target message to the target A-Leaf device.

[0100] It should be noted that, in the embodiment of the present application, when the S-Leaf device encapsulates the target message, it encapsulates the outer message header for the target message and uses the first label as the destination address.

[0101] In an embodiment of the present application, after receiving the target message, the target A-Leaf device determines that the target message is a unicast message based on the first label encapsulated outside the target message. The target A-Leaf device will strip the target message and determine the target MAC address of the inner layer of the target message. The target A-Leaf device will search the locally stored MAC address table for the target MAC address corresponding to the target message. If the MAC address table does not contain the target MAC address, regardless of whether the target A-Leaf device is a DF node or a BDF node, the target A-Leaf device will broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance.

[0102] In the embodiment of the present application, the target A-Leaf device strips the target message, that is, performs an unsealing operation on the target message.

[0103] It should be noted that in the embodiment of the present application, the EVPN instance may also be an EVPN routing forwarding table, and the EVPN instance includes the routes of the terminals associated with each A-Leaf device, and which port each A-Leaf device uses to send a message to which terminal. In other words, the EVPN instance stores information about each port associated with each A-Leaf device. The port may be an attachment circuit (AC) port or other ports.

[0104] Moreover, the message transmission system provided in the embodiment of the present application is applicable to multiple scenarios, such as EVPN multi-home multi-active networking scenarios, EVPN VPLS over SRv6 scenarios, and EVPN VPLS over MPLS scenarios.

[0105] In an embodiment of the present application, if the target message is a unicast message, before the S-Leaf device sends the target message to the target A-Leaf device, the S-Leaf device will encapsulate the target message using the first label corresponding to the target A-Leaf device for identifying the unicast message, so that after receiving the target message, if the target A-Leaf device, whether it is a DF node or a BDF node, does not find the target MAC address of the target message in the local MAC address table, the target A-Leaf device will broadcast the target message to each AC port under the EVPN instance, thereby avoiding packet loss and improving the quality of message transmission.

[0106] That is to say, in an embodiment of the present application, when the target message received by the target A-Leaf device becomes an unknown unicast message, the target A-Leaf device will not be restricted by the DF and BDF status, but will broadcast the target message as a normal broadcast message, and will not filter the target message, thereby ensuring the user's service experience.

[0107] Embodiment 2:

[0108] In order to avoid packet loss during message transmission and improve the quality of message transmission, based on the above embodiments, in an embodiment of the present application, the target A-Leaf device is also used to search the target port corresponding to the target MAC address in the MAC address table if the target MAC address is included in the MAC address table, and send the target message to the target port.

[0109] In the embodiment of the present application, after the target A-Leaf device determines that the target message is a unicast message, the target A-Leaf device obtains the target MAC address carried in the target message and searches the local MAC address table. If the MAC address table contains the target MAC address, it means that the target A-Leaf device can determine which AC port to send the target message through.

[0110] Specifically, in an embodiment of the present application, the MAC address table stored in the target A-Leaf device stores the correspondence between the MAC address and the AC port. If the MAC address table contains the target MAC address, the target A-Leaf device can find the target AC port corresponding to the target MAC address in the MAC address table and send the target message to the target AC port.

[0111] Embodiment 3:

[0112] In order to improve the quality of message transmission, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the S-Leaf device is specifically used to obtain the target MAC address carried in the target message. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and the UMR route is stored locally, the target message is determined to be a unicast message.

[0113] In the prior art, UMR technology is introduced in the EVPN VPLS solution of the new metropolitan area network. UMR technology can be simply understood as publishing the default MAC route in the L3 default route mode of the network transmission. A UMR route is generated and published to the RR on the A-Leaf device of the access layer, and the MAC address details are no longer published to the RR, thereby reducing the pressure on the RR to learn the MAC address. At the same time, the RR only reflects the UMR route sent by the A-Leaf device to the S-Leaf device, which not only relieves the pressure on the S-Leaf device to learn the MAC address, but also avoids the MAC capacity of the S-Leaf device limiting the number of access users.

[0114] Since the S-Leaf device of the metropolitan area network that has introduced the UMR technology only stores the UMR route, all the messages sent by the S-Leaf device to the A-Leaf device are unicast messages.

[0115] Based on this, in an embodiment of the present application, the S-Leaf device obtains the target MAC address carried in the target message, and if the target MAC address is stored locally, the target message is determined to be a unicast message. If the S-Leaf device determines that the target MAC address is not stored locally, the S-Leaf device can determine whether to send the target message as a unicast message based on whether the UMR route is stored locally. Specifically, in an embodiment of the present application, if it is determined that the UMR route is stored locally, the S-Leaf device determines that the target message is a unicast message.

[0116] Embodiment 4:

[0117] In order to improve the quality of message transmission, on the basis of the above embodiments, in the embodiment of the present application, the S-Leaf device is further used to determine that the target message is a broadcast, multicast and unknown unicast BUM message if the target MAC address is not stored locally and the UMR route is not stored locally; for each A-Leaf device, the target message is encapsulated using the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message, and the encapsulated target message is sent to the A-Leaf device;

[0118] The target A-Leaf device is further used to obtain a target MAC address carried in the received target message encapsulated by the second label, and process the target message according to the target MAC address and the attribute of the target A-Leaf device.

[0119] In an embodiment of the present application, if the S-Leaf device does not locally store the target MAC address carried in the target message, and the S-Leaf device does not find the UMR route locally, the S-Leaf device will broadcast the target message as a BUM message to each A-Leaf device.

[0120] Specifically, in an embodiment of the present application, after the S-Leaf device determines that the target message is a BUM message, the S-Leaf device obtains the second label corresponding to each A-Leaf device for identifying the BUM message. For each A-Leaf device, the S-Leaf device uses the second label corresponding to the A-Leaf device as the destination address, encapsulates the target message, and sends the encapsulated target message to the A-Leaf device.

[0121] In the embodiment of the present application, after receiving the target message, the target A-Leaf device determines that the target message is a BUM message by the second label encapsulated outside the target A-Leaf device. After that, the target A-Leaf device will strip the target message, obtain the target MAC address carried in the target message, and process the target message according to the attributes of the target A-Leaf device.

[0122] The attribute of the target A-Leaf device is a DF node or a BDF node.

[0123] Embodiment 5:

[0124] In order to further improve the effect of message transmission, on the basis of the above embodiments, in an embodiment of the present application, the target A-Leaf device is specifically used to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the target A-Leaf device is a designated forwarder node; if the target A-Leaf device is a backup designated forwarder node, filter the parsed target message.

[0125] In an embodiment of the present application, after the target A-Leaf device receives the target message, since the target message is a BUM message, the A-Leaf device as a DF node will forward the target message to each port associated with the target A-Leaf device under the EVPN instance. On this basis, the A-Leaf device as a BDF node can filter out the target message to avoid each terminal from repeatedly receiving the target message.

[0126] Based on this, in the embodiment of the present application, after receiving the target message, the target A-Leaf device will determine whether it is a DF node or a BDF node. Specifically, if the target A-Leaf device determines that it is a DF node, the target A-Leaf device will forward the target message to each port associated with the target A-Leaf device under the EVPN instance for broadcast; if the target A-Leaf device determines that it is a BDF node, the target A-Leaf device will filter out the target message.

[0127] Embodiment 6:

[0128] In order to enable the A-Leaf device to determine whether the target message is a unicast message, on the basis of the above embodiments, in the embodiment of the present application, the target A-Leaf device is further used to send the first label for identifying the unicast message to the S-Leaf device;

[0129] The S-Leaf device is further configured to receive the first tag and store the first tag and the identification information of the target A-Leaf device in correspondence with each other.

[0130] In order to enable the A-Leaf device to determine whether the target message is a BUM message, on the basis of the above embodiments, in the embodiment of the present application, the target A-Leaf device is further used to send the second label for identifying the BUM message to the S-Leaf device;

[0131] The S-Leaf device is further configured to receive the second tag and store the second tag and the identification information of the target A-Leaf device in correspondence with each other.

[0132] The A-Leaf device uses BGP to advertise two types of labels to the S-Leaf device. One type is the unicast label that carries the unicast MAC address route and is used for unicast message forwarding encapsulation. The other type is the second label that is used for BUM message forwarding encapsulation.

[0133] Specifically, in order to enable the A-Leaf device to determine whether the target message is a unicast message, and to avoid the situation where the target A-Leaf device, as a BDF node, receives a target message that is a unicast message, and the target MAC address carried in the target message is not stored locally, causing the target A-Leaf device to filter the target message, resulting in packet loss during message transmission, in an embodiment of the present application, the target A-Leaf device will also send a first label for identifying a unicast message to the S-Leaf device. The S-Leaf device receives the first label and saves the first label in correspondence with the identification information of the target A-Leaf device.

[0134] It should be noted that, in the embodiment of the present application, if the underlay network deployed between the target A-Leaf device and the S-Leaf device is an SRv6 network, the first label may be an End.DT2U SID.

[0135] In order to enable the A-Leaf device to determine whether the target message is a BUM message and avoid the terminal receiving the target message multiple times during the message transmission process, in the embodiment of the present application, the target A-Leaf device also sends a second label for identifying the BUM message to the S-Leaf device. The S-Leaf device receives the second label and stores the second label in correspondence with the identification information of the target A-Leaf device.

[0136] It should be noted that, in the embodiment of the present application, if the underlay network deployed between the target A-Leaf device and the S-Leaf device is an SRv6 network, the second label may be End.DT2MSID.

[0137] Specifically, in the embodiment of the present application, the A-Leaf device sends an EVPN route to the S-Leaf device, thereby establishing an EVPN neighbor relationship between the A-Leaf device and the S-Leaf device. Based on this, when the target A-Leaf device publishes an EVPN route to the S-Leaf device, it carries the End.DT2U SID address and the End.DT2M SID address in the EVPN route, thereby establishing an SRv6 tunnel from the target A-Leaf device to the S-Leaf device.

[0138] Figure 6 A schematic diagram of a message transmission scenario provided in an embodiment of the present application, such as the Figure 6 As shown in the figure, an EVPN neighbor relationship is established between the A-Leaf device and the S-Leaf device. A DF node and a BDF node are elected between the A-Leaf devices. It is assumed that A-Leaf1 is the BDF node and A-Leaf2 is the DF node.

[0139] The A-Leaf2 device sends the second label End.DT2M SID used to identify the BUM message to the S-Leaf device through BGP. After receiving the second label, the S-Leaf device uses the second label to identify the BUM message. After receiving the message encapsulated with the second label, the A-Leaf2 device broadcasts the target message to each port associated with the A-Leaf2 device under the EVPN instance.

[0140] In addition, the A-Leaf2 device also sends the first label End.DT2U SID used to identify the unicast message to the S-Leaf device through BGP. After receiving the second label, the S-Leaf device uses the second label to identify the BUM message. After the A-Leaf2 device receives the message encapsulated with the second label, if the saved MAC address table does not contain the target MAC address carried in the message, it will broadcast the target message to each port associated with the A-Leaf2 device under the EVPN instance.

[0141] In addition, the message transmission system provided in the embodiment of the present application is applicable to various scenarios.

[0142] Scenario 1: In the EVPN multi-home multi-active networking scenario, for the target message forwarded from the unicast channel, when the A-Leaf device cannot find the target MAC address in the saved routing table, regardless of whether the A-Leaf device's attribute is a DF node or a BDF node, the A-Leaf device will not filter the target message, but will continue to broadcast the target message. For the target message forwarded from the BUM channel, the A-Leaf device will process the target message normally according to its own attribute, whether it is a DF node or a BDF node.

[0143] Scenario 2: In the EVPN VPLS over SRv6 scenario, unicast packets and BUM packets implement transparent transmission of Layer 2 data packets through SRv6 SID. When the SRv6 SID address carried by the packet indicates that the target packet is a unicast packet, and the A-Leaf device cannot find the target MAC address in the saved routing table, regardless of whether the attribute of the A-Leaf device is a DF node or a BDF node, the A-Leaf device does not filter the target packet, but continues to broadcast the target packet.

[0144] Scenario 3: In the EVPN VPLS over MPLS scenario, unicast packets and BUM packets implement transparent transmission of Layer 2 data packets through MPLS labels. When the MPLS label carried by the packet indicates that the target packet is a unicast packet, and the A-Leaf device cannot find the target MAC address corresponding to the unicast packet in the saved routing table, regardless of whether the attribute of the A-Leaf device is a DF node or a BDF node, the A-Leaf device will not filter the target packet, but continue to broadcast the target packet.

[0145] Embodiment 7:

[0146] Figure 7 A schematic diagram of a message transmission process provided in an embodiment of the present application, the process includes:

[0147] S701: If it is determined that the target message to be sent is a unicast message, determine a target A-Leaf device for transmitting the target message in at least one A-Leaf device according to a load sharing method.

[0148] S702: Encapsulate the target message by using the pre-saved first label corresponding to the target A-Leaf device and used to identify the unicast message, and send the encapsulated target message to the target A-Leaf device.

[0149] A message transmission method provided in an embodiment of the present application is applied to an S-Leaf device.

[0150] In a possible implementation manner, if it is determined that the target message to be sent is a unicast message, before determining, according to the load sharing method, a target A-Leaf device for transmitting the target message, the method further includes:

[0151] A first label for identifying a unicast message sent by the target A-Leaf device is received, and the first label and identification information of the target A-Leaf device are stored in correspondence.

[0152] In a possible implementation manner, the process of determining that the target message to be sent is a unicast message includes:

[0153] The target MAC address carried in the target message is obtained. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and a UMR route is stored locally, the target message is determined to be a unicast message.

[0154] In a possible implementation, the method further includes:

[0155] If the target MAC address is not stored locally and the UMR route is not stored locally, determining that the target message is a broadcast, multicast, or unknown unicast BUM message;

[0156] For each A-Leaf device, the target message is encapsulated using the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message, and the encapsulated target message is sent to the A-Leaf device.

[0157] In a possible implementation manner, if it is determined that the target message to be sent is a unicast message, before determining, according to the load sharing method, a target A-Leaf device for transmitting the target message, the method further includes:

[0158] The second tag is received, and the second tag and the identification information of the target A-Leaf device are stored in correspondence.

[0159] Embodiment 8:

[0160] Figure 8 A schematic diagram of a message transmission process provided in an embodiment of the present application, the process includes:

[0161] S801: Obtain a target MAC address carried in a received target message encapsulated with a first label; wherein the first label is used to identify a unicast message.

[0162] S802: If the stored MAC address table does not contain the target MAC address, broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance.

[0163] A message transmission method provided in an embodiment of the present application is applied to an A-Leaf device.

[0164] In a possible implementation, the method further includes:

[0165] If the MAC address table contains the target MAC address, the target port corresponding to the target MAC address is searched in the MAC address table, and the target message is sent to the target port.

[0166] In a possible implementation manner, before stripping the received target message encapsulated by the first label, the method further includes:

[0167] Sending the first label for identifying the unicast message to the S-Leaf device.

[0168] In a possible implementation, the method further includes:

[0169] The received target message encapsulated by the second label is stripped, and the target message is processed according to the attribute of the target A-Leaf device.

[0170] In a possible implementation manner, the processing the target message according to the attribute of the target A-Leaf device includes:

[0171] If the target A-Leaf device is a DF node, broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance;

[0172] If the target A-Leaf device is a BDF node, a filtering operation is performed on the target message.

[0173] In a possible implementation manner, before stripping the received target message encapsulated by the first label, the method further includes:

[0174] The second label for identifying the BUM message is sent to the S-Leaf device.

[0175] Embodiment 9:

[0176] Fig. 9 A schematic diagram of the structure of a message transmission device provided in an embodiment of the present application, the device comprising:

[0177] The processing module 901 is used to determine, if it is determined that the target message to be sent is a unicast message, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device according to the load sharing method; and encapsulate the target message using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance;

[0178] The sending module 902 is used to send the encapsulated target message to the target A-Leaf device.

[0179] In a possible implementation manner, the processing module 901 is further configured to receive a first label sent by the target A-Leaf device for identifying a unicast message, and store the first label and identification information of the target A-Leaf device in correspondence with each other.

[0180] In a possible implementation, the processing module 901 is specifically used to obtain the target MAC address carried in the target message. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and the UMR route is stored locally, the target message is determined to be a unicast message.

[0181] In a possible implementation, the processing module 901 is further used to determine that the target message is a broadcast, multicast, and unknown unicast BUM message if the target MAC address is not stored locally and the UMR route is not stored locally; for each A-Leaf device, use the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message to encapsulate the target message;

[0182] The sending module is also used to send the encapsulated target message to the A-Leaf device.

[0183] In a possible implementation manner, the processing module 901 is further configured to receive the second tag, and store the second tag and the identification information of the target A-Leaf device in correspondence with each other.

[0184] Embodiment 10:

[0185] Fig.10 A schematic diagram of the structure of a message transmission device provided in an embodiment of the present application, the device comprising:

[0186] The processing module 1001 is used to obtain a target MAC address carried in a received target message encapsulated with a first label; wherein the first label is used to identify a unicast message;

[0187] The sending module 1002 is configured to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the stored MAC address table does not contain the target MAC address.

[0188] In a possible implementation, the sending module 1002 is further configured to search the MAC address table for a target port corresponding to the target MAC address if the MAC address table contains the target MAC address, and send the target message to the target port.

[0189] In a possible implementation manner, the sending module 1002 is further configured to send the first label for identifying the unicast message to the S-Leaf device.

[0190] In a possible implementation, the processing module 1001 is further configured to obtain a target MAC address carried in a received target message encapsulated with the second label, and process the target message according to the target MAC address and attributes of the target A-Leaf device.

[0191] In a possible implementation, the processing module 1001 is specifically used to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the target A-Leaf device is a DF node; if the target A-Leaf device is a BDF node, filter the target message.

[0192] In a possible implementation manner, the sending module 1002 is further configured to send the second label for identifying the BUM message to the S-Leaf device.

[0193] Embodiment 11:

[0194] Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Based on the above embodiments, an embodiment of the present invention further provides an electronic device, such as Fig.11 As shown, it includes: a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104;

[0195] The memory 1103 stores a computer program. When the program is executed by the processor 1101, the processor 1101 executes the message transmission method applied to the S-Leaf device or the A-Leaf device as described in the above embodiments.

[0196] Since the principle of solving the problem by the above electronic device is similar to the message transmission method applied to the S-Leaf device or the message transmission method applied to the A-Leaf device, the implementation of the above electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0197] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0198] The communication interface 1102 is used for communication between the above electronic device and other devices.

[0199] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0200] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0201] Embodiment 12:

[0202] Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a processor. When the program runs on the processor, the processor implements the message transmission method applied to an S-Leaf device or an A-Leaf device as described in the above embodiments.

[0203] Since the principle of solving the problem by the computer-readable medium provided above is similar to the message transmission method applied to the S-Leaf device or the message transmission method applied to the A-Leaf device, after the processor executes the computer program in the above-mentioned computer-readable medium, the implemented steps can refer to the other embodiments above, and the repeated parts will not be repeated.

[0204] 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.

[0205] 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 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 produce 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.

[0206] 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 including 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.

[0207] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0208] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A message transmission system, characterized in that: The system comprises: a service-side S-Leaf device and at least one access-side A-Leaf device, wherein each A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node; The S-Leaf device is used to determine, if it is determined that the target message to be sent is a unicast message, a target A-Leaf device for transmitting the target message among the at least one A-Leaf device according to the load sharing method; encapsulate the target message using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance, and send the encapsulated target message to the target A-Leaf device; The target A-Leaf device is used to obtain the target MAC address carried in the received target message encapsulated with the first label; if the stored MAC address table does not contain the target MAC address, the target message is broadcast to each port associated with the target A-Leaf device under the Ethernet virtual private network EVPN instance.

2. The system according to claim 1, characterized in that The target A-Leaf device is further configured to search the MAC address table for a target port corresponding to the target MAC address if the MAC address table contains the target MAC address, and send the target message to the target port.

3. The system according to claim 1, characterized in that The target A-Leaf device is further used to send the first label for identifying the unicast message to the S-Leaf device; The S-Leaf device is further configured to receive the first tag and store the first tag and the identification information of the target A-Leaf device in correspondence with each other.

4. The system according to claim 1, characterized in that The S-Leaf device is specifically used to obtain the target MAC address carried in the target message. If the target MAC address is stored locally, the target message is determined to be a unicast message; if it is determined that the target MAC address is not stored locally and an unknown MAC route UMR route is stored locally, the target message is determined to be a unicast message.

5. The system according to claim 4, characterized in that The S-Leaf device is further used to determine that the target message is a broadcast, multicast, and unknown unicast BUM message if the target MAC address is not stored locally and the UMR route is not stored locally; for each A-Leaf device, use the pre-stored second label corresponding to the A-Leaf device for identifying the BUM message to encapsulate the target message, and send the encapsulated target message to the A-Leaf device; The target A-Leaf device is further used to obtain a target MAC address carried in the received target message encapsulated by the second label, and process the target message according to the target MAC address and the attribute of the target A-Leaf device.

6. The system according to claim 5, characterized in that The target A-Leaf device is specifically used to broadcast the target message to each port associated with the target A-Leaf device under the EVPN instance if the target A-Leaf device is a DF node; if the target A-Leaf device is a BDF node, filter the target message.

7. The system according to claim 5, characterized in that The target A-Leaf device is further used to send the second label for identifying the BUM message to the S-Leaf device; The S-Leaf device is further configured to receive the second tag and store the second tag and the identification information of the target A-Leaf device in correspondence with each other.

8. A message transmission method, characterized in that: Applied to a service-side S-Leaf device, the method includes: If it is determined that the target message to be sent is a unicast message, determining a target A-Leaf device for transmitting the target message in at least one A-Leaf device according to the load sharing method; The target message is encapsulated using a first label for identifying a unicast message corresponding to the target A-Leaf device that is pre-saved, and the encapsulated target message is sent to the target A-Leaf device; wherein, when the target A-Leaf device is a backup designated forwarder BDF node, the first label is used to instruct the target A-Leaf device to obtain the target MAC address carried in the target message, so that when the target A-Leaf device does not include the target MAC address in the saved MAC address table, the target message is broadcast to each port associated with the target A-Leaf device under the Ethernet virtual private network EVPN instance.

9. A message transmission method, characterized in that: Applied to an access-side A-Leaf device, wherein the A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node, the method includes: Obtain a target MAC address carried in a received target message encapsulated with a first label; wherein the first label is used to identify a unicast message; the first label is used to encapsulate the target message when the service-side S-Leaf device confirms that the target message is a unicast message, wherein the first label is pre-saved by the service-side S-Leaf device and corresponds to the A-Leaf device; If the stored MAC address table does not contain the target MAC address, the target message is broadcast to each port associated with the target A-Leaf device under the Ethernet virtual private network EVPN instance.

10. A message transmission device, characterized in that: Applied to a service-side S-Leaf device, the device includes: A processing module, used for, if it is determined that the target message to be sent is a unicast message, determining, according to a load sharing method, a target A-Leaf device in at least one A-Leaf device for transmitting the target message; using a first label for identifying a unicast message corresponding to the target A-Leaf device that is stored in advance to encapsulate the target message; wherein, when the target A-Leaf device is a backup designated forwarder BDF node, the first label is used to instruct the target A-Leaf device to obtain a target MAC address carried in the target message, so that when the target A-Leaf device does not include the target MAC address in a stored MAC address table, the target message is broadcast to each port associated with the target A-Leaf device under an Ethernet virtual private network EVPN instance; The sending module is used to send the encapsulated target message to the target A-Leaf device.

11. A message transmission device, characterized in that: Applied to an A-Leaf device on the access side, wherein the A-Leaf device is a designated forwarder DF node or a backup designated forwarder BDF node, the apparatus comprises: A processing module, configured to obtain a target MAC address carried in a received target message encapsulated with a first label; wherein the first label is used to identify a unicast message; the first label is used to encapsulate the target message when the service-side S-Leaf device confirms that the target message is a unicast message, wherein the first label is pre-saved by the service-side S-Leaf device and corresponds to the A-Leaf device; The sending module is used to broadcast the target message to each port associated with the target A-Leaf device under the Ethernet virtual private network EVPN instance if the stored MAC address table does not contain the target MAC address.

12. An electronic device, characterized in that: The electronic device comprises at least a processor and a memory, and the processor is used to implement the steps of the message transmission method as claimed in claim 8 or 9 when executing a computer program stored in the memory.

13. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the steps of the message transmission method as claimed in claim 8 or 9.

Citation Information

Patent Citations

  • Message broadcasting method and device

    CN108881015A

  • Message processing method and device

    CN111711555A