WO2020168854A1 - Evpn multicast method, apparatus and system - Google Patents

Evpn multicast method, apparatus and system Download PDF

Info

Publication number
WO2020168854A1
WO2020168854A1 PCT/CN2020/071291 CN2020071291W WO2020168854A1 WO 2020168854 A1 WO2020168854 A1 WO 2020168854A1 CN 2020071291 W CN2020071291 W CN 2020071291W WO 2020168854 A1 WO2020168854 A1 WO 2020168854A1
Authority
WO
WIPO (PCT)
Prior art keywords
root node
multicast traffic
multicast
node
evpn
Prior art date
Application number
PCT/CN2020/071291
Other languages
French (fr)
Chinese (zh)
Inventor
王海林
段方红
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020168854A1 publication Critical patent/WO2020168854A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular to an Ethernet Virtual Private Network (EVPN) multicast method, device, and system.
  • EVPN Ethernet Virtual Private Network
  • Figure 1 shows the EVPN multicast network architecture.
  • the provider edge device (PE) 1 is configured as the root node of the multicast service
  • PE2 ⁇ PE4 are the leaf nodes of the multicast service
  • PE1 uses It is the root of itself
  • PE2 to PE4 are leaves
  • P2MP point-to-multiple point
  • the EVPN multicast service adopts the EVPN multicast network architecture shown in Figure 2.
  • CE 201 is dual-homed to the root node PE 202 and root node PE 203, providing the root node PE 202 and root node PE 203 respectively
  • the two root tunnels transmit multicast traffic to improve transmission reliability.
  • a local Ethernet link aggregation interface (Eth-Trunk) is configured for CE 201, and a root node PE 202 and root node PE 203 are configured with cross-device Ethernet link aggregation interfaces (E-Trunk) , If the multicast service is realized through dual-active mode or single-active mode.
  • the E-Trunk works in dual-active mode, and the access control (AC) side interfaces of the root node PE 202 and the root node PE 203 are both active (UP); in single-active mode.
  • E-Trunk works in single-active mode, and the AC-side interfaces of the root node PE 202 and root node PE 203 only have one UP.
  • a bidirectional forwarding detection (BFD) session is usually configured in the primary PE.
  • One of the BFD sessions is connected to the local access controller (AC) interface (Eth- Trunk main interface) linkage, and another BFD session is configured with linkage quick cut under the Eth-Trunk main interface.
  • AC interface access controller
  • Another BFD session is configured with linkage quick cut under the Eth-Trunk main interface.
  • the AC interface is disconnected, the associated BFD session is associated and dropped.
  • the non-primary PE senses that the BFD session is offline and informs the primary PE to switch quickly to reduce the packet loss time due to AC interface failure.
  • This application provides an EVPN multicast method, device, and system, which reduce the burden on the PE through simple configuration and improve the switching performance when a link or node fails.
  • an EVPN multicast method is provided, which is applied to a leaf node PE in an EVPN multicast network.
  • the EVPN multicast method provided in this application may include: the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE respectively; the leaf node PE forwards the multicast traffic according to the receiving instruction information.
  • the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
  • the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic.
  • Complete the multicast service Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short.
  • the configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
  • the EVPN multicast network further includes a first root node PE and a second root node PE; the leaf node PE that executes the EVPN multicast method provided in this application is any leaf node in the EVPN multicast system.
  • the first node PE is the main root node, and the main root node PE is mainly responsible for the transmission of multicast traffic; the second root node PE is the alternate root node, and the alternate root node PE serves as the backup of the main root node.
  • the main root node PE fails, obtain the link
  • the leaf node PE switches to forward the multicast traffic received from the alternate root node PE.
  • the EVPN multicast method provided in this application may further include: the leaf node PE receives type indication information sent by the first root node PE or the second root node PE, and the type indication The information is used to indicate that the first root node PE is the main root node, or the second root node PE is an alternative root node; the leaf node PE is configured to receive indication information, so that the reception indication information is used to indicate to forward the group received from the first root node PE Broadcast traffic, discard the multicast traffic received from the second root node PE.
  • This implementation provides a specific solution for configuring the instruction content of the receiving instruction information, that is, in the initial configuration stage of the EVPN multicast system, the receiving instruction information is configured according to the active/standby type, which is used to preferentially receive multicast traffic from the primary root node PE Complete the multicast service.
  • the EVPN multicast method provided in this application may further include: the leaf node PE receives the first root node PE or the second root node PE The routing information sent; the routing information includes type indication information; the routing information may also include at least one of the following information: tunnel type, tunnel identifier, and address of the root node PE that sends the routing information; the leaf nodes PE separately according to the routing information Establish a multicast label distribution protocol (multicast label distribution protocol, MLDP) tunnel with the first root node PE and the second root node PE.
  • MLDP multicast label distribution protocol
  • the foregoing routing information is an integrated multicast (inclusive multicast ethernet tag, IMET) routing, and the foregoing type indication information is included in the IMET routing
  • IMET integrated multicast ethernet tag
  • PMSI provider multicast service interface
  • the reception indication information is used to instruct to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE.
  • the EVPN multicast method provided in this application may further include: the leaf node PE determines that the disconnection duration of the first root node PE is greater than or equal to the first preset duration, and the leaf node PE configures the receiving instruction information so that the receiving The indication information is used to instruct to forward the multicast traffic received from the second root node PE, and discard the multicast traffic received from the first root node PE.
  • This implementation provides a specific solution for configuring the instruction content of receiving instruction information, that is, when the link where the primary root node of the EVPN multicast system is located fails, the leaf node PE configures receiving instruction information and switches to the secondary root node PE Selectively receive multicast traffic to complete the multicast service.
  • the reception indication information is used to indicate the multicast traffic received from the second root node PE, and the multicast traffic received from the first root node PE is discarded.
  • the EVPN multicast method provided in this application may further include: the leaf node PE receives the multicast traffic sent by the first root node PE; the leaf node PE determines the second preset duration, and the leaf node PE configures the receiving instruction information , So that the reception indication information is used to indicate to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE.
  • This implementation provides a specific solution for configuring the instruction content of the receiving instruction information, that is, due to the link failure of the primary root node PE of the EVPN multicast system, switch to the standby root node PE to selectively receive multicast traffic to complete the multicast After the service, if the leaf node PE receives multicast traffic from the primary root node PE again, the leaf node PE configures the receiving instruction information, and switches to selectively receive multicast traffic from the primary root node PE to complete the multicast service.
  • the leaf node PE after the primary root node PE resumes traffic, the leaf node PE waits for the second preset period of time, and then configures the receiving instruction to switch to the secondary root node PE selectively receives multicast traffic.
  • This application does not specifically limit the content of the second preset duration.
  • a timer may be set, and the timer may time out, so that the leaf node PE waits for the second preset time period.
  • the second preset duration may be between the time when the main root node PE resumes traffic and the time when the alternate root node PE is cut off. time interval. This application does not specifically limit the content of the second preset duration.
  • a detection period T can be configured, and the leaf node PE uses T as the period to perform traffic statistics to determine whether the root node is disconnected or recovers the traffic.
  • another EVPN multicast method is provided, which is applied to the customer edge device (CE) in the EVPN multicast network, the member port of the first outgoing port in the CE, and the first root node PE and the second The root node PE is connected separately, and the first outgoing port is configured to enable dual sending.
  • the EVPN multicast method may include: the CE receives the multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, the CE sends the multicast to each member port of the first egress port flow.
  • the broadcast table includes the address corresponding to each outgoing port in the CE.
  • the outgoing port of the root node PE connected to the active and standby in the CE is configured to enable dual transmission, and the same source and dual transmission is realized on the CE to ensure the active and standby root node PEs.
  • the root node PE receives two copies of the same multicast traffic from the same source and sends them to the leaf node PE; the leaf node PE selects and receives the dual-root traffic according to the instructions of the receiving instruction information, and forwards the multicast traffic to complete the multicast service, and then Realize the multicast service that has no burden on the PE and improves the switching performance.
  • the EVPN multicast network also includes a first root node PE, a second root node PE, and two or more leaf nodes PE; the first root node PE is the main root node, and the second root node PE is the backup root node .
  • the CE is dual homed to the first root node PE and the second root node PE, and the CE configures the first egress port and binds the first root node PE and the second root node.
  • the AC port of the PE serves as the member port of the first outgoing port.
  • the first outgoing port is configured with enabling dual sending, which can be specifically implemented as follows: configuring enabling dual sending under the first outgoing port Command issued.
  • the EVPN multicast method provided in this application may further include: the control plane of the CE generates the first The dual-transmission mark of an outgoing port is sent to the broadcast table record to indicate that the first outgoing port is configured with the same-origin dual transmission.
  • another EVPN multicast method is provided, which is applied to the root node PE in an EVPN multicast network;
  • the EVPN multicast network includes a first root node PE, a second root node PE, CE, and two or two The above leaf node PE;
  • the root node PE that executes the EVPN multicast method is the first root node PE or the second root node PE.
  • the first node PE is the main root node, and the second root node PE is the backup root node.
  • the EVPN multicast method may include: the root node PE receives multicast traffic from the CE, and the multicast traffic is dual-transmitted from the CE to the first root node PE and the second root node PE; the root node PE passes between the leaf nodes PE The MLDP tunnel that sends the multicast traffic to the leaf node PE.
  • the primary and backup root node PEs receive two identical multicast traffic from the same source and send them to the leaf node PE, so that the leaf node PE selects from the dual-root traffic according to the instructions of the receiving instruction information.
  • the multicast traffic is forwarded to complete the multicast service, thereby realizing the multicast service that has no burden on the PE and improves the switching performance.
  • the EVPN multicast method provided in this application may further include: the root node PE sends routing information to each leaf node PE, and the routing information includes at least one of the following information : Tunnel type, tunnel identifier, and address of the root node PE; the routing information is used to instruct the leaf node PE to establish an MLDP tunnel with the root node PE.
  • the routing information is IMET routing.
  • the routing information may further include type indication information, and the type indication information is used to indicate that the root node PE is the main root node or an alternative root node.
  • the EVPN multicast method provided in this application may further include: the root node PE sends type indication information to each leaf node PE.
  • the indication information is used to indicate that the root node PE is the main root node or alternative root node.
  • another EVPN multicast method is provided, which is characterized by being applied to an EVPN multicast system.
  • the EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or two The above leaf node PE.
  • the member port of the first egress port in the CE is respectively connected to the first root node PE and the second root node PE, and the first egress port is configured to enable dual transmission.
  • the EVPN multicast method may include: the CE receives the multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, the CE sends the multicast traffic to each member port of the first egress port; Among them, the broadcast table includes the address corresponding to each outgoing port in the CE.
  • the first node PE receives multicast traffic from CE, and the first root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; the second root node PE receives the same source from CE The second root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel between each leaf node PE; each leaf node PE receives the first root node PE and the second root node PE respectively The same multicast traffic; each leaf node PE forwards the multicast traffic according to the receiving instruction information.
  • the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
  • the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic.
  • Complete the multicast service Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short.
  • the configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
  • the specific implementation of the EVPN multicast method provided by the fourth aspect may refer to the specific implementations of the aforementioned first aspect to the third aspect, which will not be repeated here.
  • an embodiment of the present application also provides an EVPN multicast device for implementing the method described in the first aspect.
  • the EVPN multicast device is a leaf node PE or a communication device that supports the leaf node PE to implement the method described in the first aspect.
  • the communication device includes a chip system.
  • the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit.
  • the receiving unit is configured to receive the same multicast traffic from the first root node PE and the second root node PE respectively;
  • the processing unit is configured to forward the received multicast traffic through the sending unit according to the instruction of the receiving instruction information.
  • the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
  • each unit in the fifth aspect is the same as the corresponding method description in the first aspect, and will not be repeated here.
  • the embodiments of the present application also provide an EVPN multicast device for implementing the method described in the second aspect.
  • the EVPN multicast device is a CE or a communication device that supports the CE to implement the method described in the second aspect.
  • the communication device includes a chip system.
  • the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit.
  • the receiving unit is configured to receive multicast traffic and the destination address of the multicast traffic;
  • the processing unit is configured to, if the first outgoing port in the broadcast table corresponds to the destination address, send the sending unit to each member of the first outgoing port Port to send the multicast traffic.
  • the broadcast table includes the address corresponding to each outgoing port in the CE.
  • the embodiments of the present application also provide an EVPN multicast device for implementing the method described in the third aspect.
  • the EVPN multicast device is a root node PE or a communication device that supports the root node PE to implement the method described in the third aspect.
  • the communication device includes a chip system.
  • the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is used to receive multicast traffic from the CE; the processing unit is used to send the multicast traffic to the leaf node PE through the MLDP tunnel with the leaf node PE using the sending unit.
  • this application provides an EVPN multicast system.
  • the EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or more leaf nodes PE.
  • the member port of the first egress port in the CE is respectively connected to the first root node PE and the second root node PE, and the first egress port is configured to enable dual transmission.
  • CE is used to receive multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, send the multicast traffic to each member port of the first egress port; where, broadcast The table includes the address corresponding to each outgoing port in the CE; the first root node PE is used to receive multicast traffic from the CE, and send multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; The second root node PE is used to receive multicast traffic from the CE and send multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; the leaf node PE is used to receive the group from the first root node PE Broadcast traffic, receiving multicast traffic from the second root node PE; forwarding the received multicast traffic according to the receiving instruction information; wherein the receiving instruction information is used to instruct forwarding from one of the first root node PE and the second root node PE The multicast traffic received by the root node PE discards the multicast traffic received from another root
  • the functional modules of the fifth, sixth, seventh, and eighth aspects described above can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the transceiver is used to complete the functions of the receiving unit and the transmitting unit
  • the processor is used to complete the function of the processing unit
  • the memory is used to process the program instructions of the method of the embodiment of the present application.
  • the processor, the transceiver, and the memory are connected through a bus and communicate with each other.
  • this application provides an EVPN multicast device, which can implement the function of the leaf node PE in the above method example.
  • the function can be implemented by hardware or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the aforementioned functions.
  • the EVPN multicast device can exist in the form of a chip product.
  • the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method.
  • the transceiver is used to support communication between the EVPN multicast device and other devices.
  • the EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
  • this application provides an EVPN multicast device, which can implement the function of the CE in the foregoing method example, and the function can be implemented by hardware or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the aforementioned functions.
  • the EVPN multicast device can exist in the form of a chip product.
  • the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method.
  • the transceiver is used to support communication between the EVPN multicast device and other devices.
  • the EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
  • this application provides an EVPN multicast device, which can implement the function of the root node PE in the above method example.
  • the function can be implemented by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules corresponding to the aforementioned functions.
  • the EVPN multicast device can exist in the form of a chip product.
  • the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method.
  • the transceiver is used to support communication between the EVPN multicast device and other devices.
  • the EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
  • a leaf node PE in a twelfth aspect, includes an EVPN multicast device that executes the EVPN multicast method provided in the first aspect or any one of the possible implementations of the first aspect.
  • a CE in a thirteenth aspect, includes an EVPN multicast device that executes the EVPN multicast method provided by the second aspect or any one of the possible implementation manners of the second aspect.
  • a root node PE is provided, and the root node PE includes an EVPN multicast device that executes the EVPN multicast method provided by the third aspect or any one of the possible implementation manners of the third aspect.
  • this application provides an EVPN multicast system, including two or more leaf nodes PE described in any one of the foregoing aspects or any possible implementation manner, and any one of the foregoing aspects or any one of the possible
  • a computer-readable storage medium including instructions, which when run on a computer, cause the computer to execute the EVPN multicast method provided by any one of the foregoing aspects or any possible implementation manner.
  • a computer program product containing instructions which when running on a computer, causes the computer to execute the EVPN multicast method provided by any one of the above aspects or any possible implementation manner.
  • Figure 1 is a schematic diagram of an EVPN multicast network architecture
  • Figure 2 is a schematic diagram of another EVPN multicast network architecture
  • FIG. 3 is a schematic structural diagram of a PE provided by an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of a CE provided by an embodiment of this application.
  • FIG. 5 is a schematic flowchart of an EVPN multicast method provided by an embodiment of this application.
  • FIG. 6 is a schematic structural diagram of an EVPN multicast device provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of the application.
  • FIG. 8 is a schematic structural diagram of still another EVPN multicast device provided by an embodiment of this application.
  • FIG. 9 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application.
  • FIG. 10 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application.
  • FIG. 11 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application.
  • FIG. 12 is a schematic structural diagram of a leaf node PE provided by an embodiment of this application.
  • FIG. 13 is a schematic structural diagram of a CE provided by an embodiment of this application.
  • FIG. 14 is a schematic structural diagram of a root node PE provided by an embodiment of this application.
  • FIG. 15 is a schematic structural diagram of an EVPN multicast system provided by an embodiment of this application.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • EVPN technology is a point-to-point proprietary network technology virtualized on the public data network through tunnel technology.
  • the basic principle of VPN is to use tunneling technology to encapsulate messages in tunnels and use the EVPN backbone network to establish a dedicated data transmission channel to achieve transparent transmission of messages.
  • Multicast (Multicast) transmission refers to the point-to-multipoint network connection between the sender and each receiver, which improves the efficiency of data transmission and reduces the possibility of congestion in the backbone network.
  • Video multicast services have been widely used in Internet protocol (IP) radio access networks (RAN), and EVPN is used to implement video multicast services.
  • IP Internet protocol
  • RAN radio access networks
  • EVPN uses IMET routing to guide multicast traffic forwarding, and PEs send IMET routes to each other to form a multicast traffic member table to realize P2MP tunnel forwarding of multicast traffic, improve traffic forwarding efficiency and save public network bandwidth.
  • an EVPN multicast network architecture with CE dual-homing to PE as shown in Figure 2 is adopted.
  • the dual-homing architecture improves transmission reliability by providing two tunnels with two root node PEs as the root respectively to transmit multicast traffic.
  • the tunnel of a certain root fails, the multicast service is switched to another root, which reflects the reliability of the multicast service.
  • the current switch is implemented by configuring a BFD session, which not only complicates the implementation and increases the burden on the PE, but also has low switching performance.
  • the embodiment of the application provides an EVPN multicast method, the basic principle of which is: the root node PE of CE dual-homing is configured as the active and standby root node, and the two tunnels rooted at the active and standby root nodes transmit the same Multicast traffic is selectively received by the leaf node PE.
  • the leaf node PE implements switching through selective reception, without increasing the burden on the PE and simply improving the switching performance.
  • the primary root node PE is mainly responsible for the transmission of multicast traffic, and the alternate root node PE serves as the backup of the primary root node.
  • the leaf node PE switches to forwarding the data received from the alternate root node PE Multicast traffic.
  • the EVPN multicast method provided in this application can be applied to the EVPN multicast network architecture shown in Figure 2.
  • One of the two root nodes PE in the EVPN multicast network architecture is configured as the primary root node and the other as the alternate root. node.
  • the EVPN multicast network architecture includes CE 301, root node PE 202 (configured as the primary root node), root node PE 203 (configured as an alternate root node), multiple leaf nodes PE 204, multiple CE 205 and P node 206.
  • CE 201 is used as a switch or router device connected to the multicast video server.
  • the root node PE 202 and the root node PE 203 are routers close to the multicast source side and serve as the root node of the EVPN MLDP tunnel, that is, the entrance of the tunnel.
  • the root node PE 203 serves as an alternative PE of the root node PE 202.
  • CE 201 is dual homed to root node PE 202 and root node PE 203.
  • Multiple leaf nodes PE 204 are routers on the user side, and serve as leaf nodes of the EVPN MLDP tunnel, that is, the exit of the tunnel.
  • Multiple CEs 205 are switches or routers that connect video multicast service users.
  • the P node 206 is a public network switching node with a heavy EVPN multicast network architecture.
  • Figure 2 is only an example description of the EVPN multicast network architecture, and the number of nodes included in the network architecture can be configured according to actual requirements.
  • the root node PE 202 and the root node PE 203 include an EVPN module
  • the leaf node PE 204 includes a label distribution protocol (label distribution protocol, LDP) module.
  • label distribution protocol label distribution protocol
  • the root node PE 202 and the root node PE 203 will notify the LDP module of the IMET route through the EVPN module to notify the leaf node PE 204 to create a P2MP MLDP tunnel.
  • the LDP module of the leaf node PE 204 triggers the creation of a P2MP MLDP tunnel from the leaf to the root.
  • the leaf node searches for the route to the root node and sends the label map one hop
  • the (label mapping) message indicates the completion of the tunnel establishment.
  • IMET routing may include information such as tunnel type, tunnel identifier, and address of the root node PE.
  • EVPN multicast traffic is carried on the public network P2MP MLDP tunnel, as shown by the black tree-shaped arrow line in Figure 2.
  • the CE 201 device receives the multicast traffic from the multicast source server, it sends the multicast traffic to the root node PE 202 and the root node PE 203 from the same source.
  • the root node PE 202 and the root node PE 203 both import the multicast traffic into their respective MLDP tunnels for multicast stream distribution, and finally the leaf nodes receive the same duplicate multicast streams.
  • the leaf node PE 204 selects traffic according to the received instruction information, forwards the multicast traffic received from one root node PE of the root node PE 202 and root node PE 203, and discards the multicast traffic received from the other root node PE to prevent Multi-packet traffic.
  • the root node PE After the root node PE receives the multicast traffic from the CE, it encapsulates the multicast traffic into a message, and imports the message into the MLDP tunnel for multicast stream distribution.
  • the message includes the root node PE and the leaf nodes Ingress label of the tunnel between PEs.
  • Multicast traffic can be used as the payload of packets.
  • the description of the root node PE sending multicast traffic is equivalent to the root node PE encapsulating the multicast traffic into a message to send; the leaf node PE receiving the multicast traffic is equivalent to the leaf node PE receiving from the tunnel. Packets of multicast traffic.
  • the process of encapsulating the message by the root node PE will not be repeated in this embodiment of the application. The equivalent content can be substituted for each other. This will not be explained one by one later.
  • each network element in FIG. 2 can be configured according to actual requirements, and FIG. 2 only illustrates the type of each network element by way of example, and does not specifically limit this.
  • FIG. 3 shows a type of PE 30 related to various embodiments of the present application.
  • the PE 30 may include a processor 301, a memory 302, and a transceiver 303.
  • the memory 302 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory).
  • volatile memory such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory).
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk
  • solid-state drive solid-state drive
  • the processor 301 is the control center of the PE 30, which can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or is configured to implement the embodiments of this application
  • One or more integrated circuits such as one or more microprocessors (digital digital processors, DSP), or one or more field programmable gate arrays (FPGA).
  • the transceiver 303 is used for communication with other devices and data transmission.
  • PE 30 can be configured as a leaf node PE 204 in the EVPN multicast network architecture shown in FIG. 2.
  • the processor 301 runs or executes software programs and/or modules stored in the memory 302, and calls The data stored in the memory 302 performs the following functions:
  • the multicast traffic received by one root node PE in the PE discards the multicast traffic received from another root node PE.
  • the PE 30 can be configured as the root node PE 202 or the root node PE 203 in the EVPN multicast network architecture shown in FIG. 2, and the processor 301 runs or executes the software program and/or stored in the memory 302 Or module, and call the data stored in the memory 302, perform the following functions:
  • the transceiver 303 receives multicast traffic from the CE, and sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
  • an embodiment of the present application provides a CE 40.
  • Figure 4 shows a CE 40 related to various embodiments of the present application.
  • the CE 40 may include: a processor 401, a memory 402, and a transceiver 403.
  • the memory 402 may be a volatile memory (volatile memory), such as RAM; or a non-volatile memory, such as read-only memory (ROM), flash memory (flash memory), HDD or SSD; or the above
  • volatile memory such as RAM
  • non-volatile memory such as read-only memory (ROM), flash memory (flash memory), HDD or SSD; or the above
  • the processor 401 is the control center of the CE 40. It can be a CPU, an ASIC, or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more DSPs, or, one or Multiple FPGAs.
  • the processor 401 can execute various functions of the CE 40 by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402.
  • the transceiver 403 is used for the CE 40 to interact with other units.
  • the processor 401 executes the following functions by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402:
  • the multicast traffic and the destination address of the multicast traffic are received through the transceiver 403; if the outgoing port corresponding to the destination address in the broadcast table is configured with dual sending enabled, the multicast traffic is sent to each member port of the outgoing port.
  • the embodiments of the present application provide an EVPN multicast method, which is applied to an EVPN multicast system.
  • the EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or more Leaf node PE.
  • the CE is dual homed to the first root node PE and the second root node PE; the member port of the first egress port in the CE is connected to the first root node PE and the second root node PE respectively, and the first egress port is configured with an enable Double shot.
  • the first node PE is configured as the main root node, and the second root node PE is configured as the alternate root node.
  • a process in which the CE, the first root node PE, the second root node PE, and the leaf node PE implement a multicast service through interaction is taken as an example to describe the EVPN multicast method provided in this application in detail.
  • the EVPN multicast system can be the EVPN multicast network architecture shown in Figure 2.
  • the CE in the following content can be CE 201 in Figure 2, and the first root node PE can be the root node as the master root node in Figure 2.
  • PE 202, the second root node PE may be the root node PE 203 as a candidate root node in FIG. 2, and the leaf node PE may be the leaf node PE 204 in FIG. 2.
  • the administrator configures the attributes of the PE to configure the primary root node, alternative root nodes, and leaf nodes.
  • the following configuration may be performed on the first root node PE, and the attributes of the first root node PE may be configured as the main root node:
  • the following configuration may be performed on the second root node PE, and the attributes of the second root node PE may be configured as candidate root nodes:
  • the following configuration can be performed on the leaf node PE, and the attribute of the leaf node PE is configured as the leaf node:
  • the root node PE sends an IMET route to the leaf node PE.
  • the leaf node PE triggers the creation of a P2MP MLDP tunnel from the leaf to the root according to the content of the IMET route, which is used to carry multicast traffic.
  • the administrator configures CE to achieve dual transmission from the same source. Specifically, you can configure the first egress port on the CE, configure the same-source dual command under the Eth-Trunk interface, and connect the first egress port and the CE to the AC ports of the first root node PE and the second root node PE. Binding, as the member port of the first out port.
  • the control plane of the CE obtains the configured dual-source command of the same source, generates a dual-transfer flag of the first outgoing port, and downloads the dual-transfer flag to the broadcast table for recording to instruct the first outgoing port to perform dual-source dual sending.
  • the same-source dual-sending command can be configured as: multicast-dual-sending enable.
  • the first outgoing port is the Eth-Trunk interface.
  • the EVPN multicast method provided by the embodiment of the present application may include:
  • the CE receives the multicast traffic and the destination address of the multicast traffic.
  • the CE receives the multicast traffic and the destination address of the multicast traffic from the multicast video server.
  • the multicast traffic is business data of the current multicast service, and the destination address is used to indicate the destination device to which the multicast traffic is sent.
  • the CE can query the broadcast table according to the destination address, determine the outgoing port corresponding to the destination address in the broadcast table, and then send the multicast traffic out through the outgoing port.
  • the outgoing port is connected to the root node PE of the EVPN network, and the multicast traffic can be sent to the root node PE.
  • the broadcast table is a layer 2 forwarding table, used to instruct the CE to send multicast traffic.
  • the broadcast table includes the address corresponding to each egress port in the CE. In the broadcast table, one address can correspond to at least one egress port.
  • the CE receives multicast traffic, it searches for the corresponding egress port in the broadcast table according to the destination address of the multicast traffic, and sends the multicast traffic from the corresponding egress port to realize the transmission of multicast traffic.
  • the broadcast table is configured by the CE operator according to the EVPN network architecture. This application does not limit the specific content and configuration process of the broadcast table.
  • the first outgoing port since the first outgoing port is recorded in the broadcast table for dual transmission of the same origin, if the first outgoing port in the broadcast table corresponds to the destination address, it indicates that the multicast traffic received by the CE in S501 is dual transmitted from the same origin.
  • the member port of the first egress port is the AC port connecting the first root node PE and the second root node PE, and the CE sends multicast traffic to each member port of the first egress port, then the multicast traffic is sent Arriving at the first root node PE and the second root node PE, the first root node PE and the second root node PE have received two copies of the same multicast traffic from the same source.
  • the first root node PE receives the multicast traffic from the CE, and the first root node PE sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
  • the second root node PE receives the multicast traffic from the CE, and the second root node PE sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
  • the multicast traffic received by the first root node PE/second root node PE in S503 and S504 is the multicast traffic of the same source and dual transmission of CE in S502.
  • the first root node PE/the second root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE, which can be specifically implemented as: the first root node PE /The second root node PE encapsulates the multicast traffic carrying the incoming label of the MLDP tunnel between it and the leaf node PE into a message, and sends the encapsulated message to the leaf node PE.
  • the incoming label in the message is used for the message to be forwarded in the MLDP tunnel according to the label forwarding protocol.
  • the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE.
  • the multicast traffic received by the leaf node PE in S505 is the multicast traffic in the packet sent by the first root node PE/second root node PE in S503 and S504 encapsulated and sent.
  • S506 The leaf node PE forwards the multicast traffic according to the receiving instruction information.
  • the receiving instruction information is used to indicate which root node the leaf node PE is currently receiving multicast traffic from. It can also be understood that the receiving instruction information is used to instruct the leaf node PE to forward the multicast traffic received from which root node. Specifically, the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
  • the leaf node PE forwards the multicast traffic received from the root node PE that receives the multicast traffic indicated by the receiving instruction information to the video multicast service user side according to the destination address according to the instruction of the receiving instruction information.
  • CE to complete the multicast service; the leaf node PE discards the multicast traffic received from the root node PE that discards the multicast traffic indicated by the receiving instruction information, so as to prevent the traffic from being multi-packetized.
  • the reception indication information may be X-bit indication information, and different values are assigned to the reception indication information to indicate different content.
  • the value of X can be configured according to actual needs, which is not specifically limited in the embodiment of the present application.
  • the receiving indication information may be 1-bit indication information. Assign a value of 0 to the reception indication information to indicate to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE; to assign a value of 1 to the reception indication information to indicate to forward the multicast traffic received from the first root node PE The multicast traffic received by the root node PE discards the multicast traffic received from the second root node PE.
  • the receiving indication information may be a root node PE working state mapping relationship.
  • the mapping relationship the identifiers of the first root node PE and the second root node PE correspond to their respective working states, and the working state Assign different values to indicate whether to forward the multicast traffic sent by the root node PE.
  • the identifiers of the first root node PE and the second root node PE are used to uniquely identify the root node PE, and the content of the identifiers of the first root node PE and the second root node PE is not specifically limited in this application.
  • the identifiers of the first root node PE and the second root node PE may be the inbound labels of the MLDP tunnel between the PE and the leaf node PE.
  • the identifiers of the first root node PE and the second root node PE may be their addresses.
  • the address can be an IP address or a MAC address.
  • Table 1 illustrates a mapping relationship of the working state of the root node PE.
  • the identifiers of the first root node PE and the second root node PE can be the inbound label of the MLDP tunnel between the PE and the leaf node PE, and the working state assignment 1 indicates that the packet containing the corresponding inbound label is forwarded.
  • the working status is assigned 0 to indicate that the packet containing its corresponding incoming label is discarded.
  • Table 1 merely illustrates the solution of receiving the indication information as the working state mapping relationship of the root node PE by way of example, and does not specifically limit the content and form of the mapping relationship.
  • the configuration for receiving the indication information can be configured according to actual requirements, which is not specifically limited in the embodiment of the present application.
  • the configuration of the leaf node PE to receive the instruction information refers to that the service node PE adjusts the instruction content of the receiving instruction information and changes the root node PE of the leaf node PE to selectively receive multicast traffic.
  • the first implementation In the initial stage of the EVPN network, the leaf node PE receives the type indication information sent by the first root node PE or the second root node PE.
  • the type indication information is used to indicate the attributes of the root node PE, that is, to indicate the first root node PE.
  • the node PE is the main root node or the second root node PE is the candidate root node. Based on this, the leaf node PE configures the receiving instruction information, so that the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE and discard the multicast traffic received from the second root node PE.
  • the type indication information may be separately sent by the root node PE to the leaf node PE.
  • the type indication information can be sent by the first root node PE to the leaf node PE, can also be sent by the second root node PE to the leaf node PE, and can also be sent by the first root node PE and the second node PE to the leaf node.
  • the leaf node PE receives the first root node PE sent by the first root node PE as the master root node, or the leaf node PE receives the second root node sent by the second root node PE as the candidate root node.
  • the type indication information may be included in the routing information sent by the root node PE to the leaf node PE for establishing the tunnel.
  • the leaf node PE receives routing information sent by the first root node PE and the second root node PE, and the routing information includes the foregoing type indication information.
  • the routing information is used to instruct the leaf node PE to respectively establish MLDP tunnels with the first root node PE and the second root node PE.
  • the routing information may also include at least one of the following information: tunnel type, tunnel identifier, and the address of the root node PE that sends the routing information.
  • the foregoing routing information may be an IMET route, and the foregoing type indication information is included in a flag field of the PTMSI attribute in the IMET route.
  • the 6th bit in the Flag field 1 represents Master, that is, the primary root, and 0 represents Slave, that is, the backup root.
  • the foregoing example only illustrates the position and form of the type indication information in the routing information by way of example, and does not specifically limit this.
  • the position of the type indication information in the routing information is not specifically limited in the embodiment of the present application, and can be configured according to actual requirements.
  • the second implementation when the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE and discard the multicast traffic received from the second root node PE, if the leaf node PE determines that the first root node PE is disconnected
  • the flow duration is greater than or equal to the first preset duration, that is, the leaf node PE determines that the link where the primary root node PE is located is faulty and cannot receive multicast traffic (including the primary root node PE failure, or the AC port of the primary root node PE connected to the CE fails. , Or other reasons), at this time, the leaf node PE is configured to receive instruction information, so that the receiving instruction information is used to instruct to forward the multicast traffic received from the second root node PE, and discard the multicast traffic received from the first root node PE.
  • the value of the first preset duration can be configured according to actual needs, which is not specifically limited in the embodiment of the present application.
  • the third implementation when the receiving instruction information is used to indicate the multicast traffic received from the second root node PE, and the multicast traffic received from the first root node PE is discarded, the leaf node PE receives the transmission from the first root node PE again If the multicast traffic of the primary root node PE is restored, the leaf node PE determines the second preset duration and configures the receiving instruction information so that the receiving instruction information is used to instruct to forward the multicast received from the first root node PE Traffic, discarding the multicast traffic received from the second root node PE, that is, switching back to receiving the multicast traffic sent by the primary root node PE.
  • the leaf node PE waits for the second preset period of time, and then configures receiving instruction information to switch to selectively receiving multicast traffic from the primary root node PE.
  • This application does not specifically limit the content of the second preset duration, and the value of the second preset duration can be configured according to actual needs.
  • a timer may be set, and the timer may time out, so that the leaf node PE waits for the second preset period of time.
  • the second preset duration may be the time interval between the time when the main root node PE resumes traffic and the time when the candidate root node PE cuts off traffic.
  • a detection period T can be configured, and the leaf node PE uses T as the period to perform traffic statistics to determine whether the root node is disconnected.
  • T can be configured according to actual requirements, which is not specifically limited in the embodiment of the present application.
  • the shorter the T configuration the shorter the switching time. For example, assuming that T is set to 20ms, when a fault occurs, the switching time does not exceed 50ms, which can meet the reliability requirements of the video multicast service.
  • the leaf node PE records the multicast traffic counted in the period T as a traffic statistics value.
  • the traffic statistics value can be recorded separately or combined with the working state mapping relationship of the root node PE. This embodiment of the application There is no specific limitation on this.
  • Table 2 illustrates a recording method for the leaf node PE to perform traffic statistics.
  • each leaf node PE performs the same operation. In the following embodiments, only the process of one leaf node PE performing the EVPN multicast method is described, and the rest will not be described one by one.
  • FIG. 5 the execution order of the steps included in FIG. 5 can be configured according to actual requirements.
  • FIG. 5 only illustrates a possible execution order of the steps, and is not a specific limitation on this.
  • the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic.
  • Complete the multicast service Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short.
  • the configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
  • the PE and CE included in the above-mentioned EVPN multicast system include hardware structures and/or software modules corresponding to each function.
  • the functional unit in PE and CE that implements the above-mentioned EVPN multicast method is called an EVPN multicast device.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the EVPN multicast device into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 6 shows a possible schematic structural diagram of the EVPN multicast device 60 deployed in the leaf node PE involved in the foregoing embodiment.
  • the EVPN multicast device 60 may be the leaf node PE itself, or may be a functional module or chip in the leaf node PE.
  • the EVPN multicast device 60 may include: a receiving unit 601, a processing unit 602, and a sending unit 603.
  • the receiving unit 601 is used to perform the process S505 in FIG. 5; the processing unit 602 is used to perform the process S506 in FIG. 5 through the sending unit 603.
  • all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
  • the EVPN multicast device 60 may further include a configuration unit 604 and an establishment unit 605.
  • the configuration unit 604 is used to configure the receiving instruction information
  • the establishing unit 605 is used to establish an MLDP tunnel with the first root node PE and the second root node PE.
  • FIG. 7 shows a possible schematic structural diagram of the EVPN multicast device 70 deployed in the leaf node PE involved in the foregoing embodiment.
  • the EVPN multicast device 70 may be the leaf node PE itself, or may be a functional module or chip in the leaf node PE.
  • the EVPN multicast device 70 may include: a processing module 701 and a communication module 702.
  • the processing module 701 is used to control and manage the actions of the EVPN multicast device 70.
  • the processing module 701 is used to execute the process S506 in FIG. 5; the communication module 702 is used to execute the process S505 in FIG.
  • the EVPN multicast device 70 may further include a storage module 703 for storing program codes and data of the EVPN multicast device 70.
  • the processing module 701 may be the processor 301 in the physical structure of the PE 30 shown in FIG. 3, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processor 701 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication module 702 may be the transceiver 303 in the physical structure of the PE 30 shown in FIG.
  • the communication module 702 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface.
  • the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function.
  • the above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices.
  • the storage module 703 may be the memory 303 in the physical structure of the PE 30 shown in FIG. 3.
  • the processing module 701 is a processor
  • the communication module 702 is a transceiver
  • the storage module 703 is a memory
  • the EVPN multicast device 70 involved in FIG. 7 in the embodiment of the present application may be the PE 30 shown in FIG. 3.
  • the EVPN multicast device 60 or the EVPN multicast device 70 provided by the embodiments of the present application can be used to implement the functions of the leaf node PE in the methods implemented in the above embodiments of the present application.
  • the EVPN multicast device 60 or the EVPN multicast device 70 provided by the embodiments of the present application can be used to implement the functions of the leaf node PE in the methods implemented in the above embodiments of the present application.
  • FIG. 8 shows a possible schematic structural diagram of the EVPN multicast device 80 deployed in the CE involved in the foregoing embodiment.
  • the EVPN multicast device 80 may be the CE itself, or a functional module or chip in the CE.
  • the EVPN multicast device 80 may include: a receiving unit 801, a processing unit 802, and a sending unit 803.
  • the receiving unit 801 is configured to execute the process S501 in FIG. 5;
  • the processing unit 802 is configured to execute the process S502 in FIG. 5 through the sending unit 803.
  • all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
  • FIG. 9 shows a schematic diagram of a possible structure of the EVPN multicast device 90 deployed in the CE involved in the foregoing embodiment.
  • the EVPN multicast device 90 may be the CE itself, or a functional module or chip in the CE.
  • the EVPN multicast device 90 may include: a processing module 901 and a communication module 902.
  • the processing module 901 is used to control and manage the actions of the EVPN multicast device 90.
  • the processing module 901 is used to execute the process S501 in FIG. 5; the communication module 902 is used to execute the process S502 in FIG.
  • the EVPN multicast device 90 may further include a storage module 903 for storing program codes and data of the EVPN multicast device 90.
  • the processing module 901 may be the processor 401 in the physical structure of the CE 40 shown in FIG. 4, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processor 901 may also be a combination that implements computing functions, for example, it includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication module 902 may be the transceiver 403 in the physical structure of the CE 40 shown in FIG.
  • the communication module 902 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface.
  • the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function.
  • the above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices.
  • the storage module 903 may be the memory 403 in the physical structure of the CE 40 shown in FIG. 4.
  • the processing module 901 is a processor
  • the communication module 902 is a transceiver
  • the storage module 903 is a memory
  • the EVPN multicast device 90 involved in FIG. 9 of the embodiment of the present application may be the CE 40 shown in FIG. 4.
  • the EVPN multicast device 80 or the EVPN multicast device 90 provided by the embodiments of the present application can be used to implement the functions of the CE in the methods implemented by the various embodiments of the present application.
  • the implementation of the present application is shown.
  • FIG. 10 shows a possible schematic structural diagram of the EVPN multicast device 100 deployed in the root node PE involved in the foregoing embodiment.
  • the EVPN multicast device 100 may be the root node PE itself, or may be a functional module or chip in the root node PE.
  • the EVPN multicast device 100 may include: a receiving unit 1001, a processing unit 1002, and a sending unit 1003.
  • the receiving unit 1001 is used to execute the processes S503 and S504 in FIG. 5;
  • the processing unit 1002 is used to execute the processes S503 and S504 in FIG. 5 through the sending unit 1003.
  • all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
  • FIG. 11 shows a schematic diagram of a possible structure of the EVPN multicast device 110 deployed in the root node PE involved in the foregoing embodiment.
  • the EVPN multicast device 110 may be the root node PE itself, or may be a functional module or chip in the root node PE.
  • the EVPN multicast device 110 may include: a processing module 1101 and a communication module 1102.
  • the processing module 1101 is used to control and manage the actions of the EVPN multicast device 110.
  • the processing module 1101 is used to execute the processes S503 and S504 in FIG. 5; the communication module 1102 is used to execute the processes S503 and S504 in FIG.
  • the EVPN multicast device 110 may further include a storage module 1103 for storing program codes and data of the EVPN multicast device 110.
  • the processing module 1101 may be the processor 301 in the physical structure of the PE 30 shown in FIG. 3, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processor 1101 may also be a combination that implements computing functions, for example, includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication module 1102 may be the transceiver 303 in the physical structure of the PE 30 shown in FIG.
  • the communication module 1102 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface.
  • the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function.
  • the above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices.
  • the storage module 1103 may be the memory 303 in the physical structure of the PE 30 shown in FIG. 3.
  • the processing module 1101 is a processor
  • the communication module 1102 is a transceiver
  • the storage module 1103 is a memory
  • the EVPN multicast device 110 involved in FIG. 11 in the embodiment of the present application may be the PE 30 shown in FIG. 3.
  • the EVPN multicast device 100 or the EVPN multicast device 110 provided in the embodiments of the present application can be used to implement the functions of the root node PE in the methods implemented in the various embodiments of the present application.
  • the EVPN multicast device 100 or the EVPN multicast device 110 provided in the embodiments of the present application can be used to implement the functions of the root node PE in the methods implemented in the various embodiments of the present application.
  • an embodiment of the present application provides a leaf node PE 120, which includes an EVPN multicast device 60 or an EVPN multicast device 70.
  • an embodiment of the present application provides a CE 130, which includes an EVPN multicast device 80 or an EVPN multicast device 90.
  • an embodiment of the present application provides a root node PE 140, which includes an EVPN multicast device 100 or an EVPN multicast device 110.
  • the embodiment of the application provides an EVPN multicast system, which includes two or more leaf nodes PE 120 and CE 130, a root node PE 140 configured as a primary root node, and a root node PE 140 configured as an alternate root node.
  • an embodiment of the present application provides an EVPN multicast system 150, which includes a CE 1501, a first root node PE 1502, a second root node PE 1503, and two or more leaf nodes PE 1504.
  • the member port of the first egress port in CE 1501 is respectively connected to the first root node PE 1502 and the second root node PE 1503, and the first egress port is configured to enable dual transmission.
  • CE 1501 is used to receive multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, send the multicast traffic to each member port of the first egress port; where, The broadcast table includes the address corresponding to each egress port in the CE.
  • the first node PE 1502 is used to receive multicast traffic from CE 1501, and send multicast traffic to the leaf node PE 1504 through the MLDP tunnel with each leaf node PE 1504.
  • the second root node PE 1503 is used to receive multicast traffic from the CE 1501, and send multicast traffic to the leaf node PE 1504 through the MLDP tunnel with each leaf node PE 1504.
  • the leaf node PE 1504 is used to receive multicast traffic from the first root node PE 1502, and receive multicast traffic from the second root node PE 1502; forward the received multicast traffic according to the receiving instruction information; among them, the receiving instruction information is used To instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
  • a computer-readable storage medium is provided, and an instruction is stored thereon.
  • the intention processing method in the foregoing method embodiment is executed.
  • a computer program product containing instructions is provided, and when the instructions are executed, the intention processing method in the foregoing method embodiment is executed.
  • the functions described in this application can be implemented by hardware, software, firmware or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may be separately physically included, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
  • the above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute some steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

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

Abstract

Disclosed are an EVPN multicast method, apparatus and system. The burden on a PE is reduced through simple configuration, and the switching performance is improved when a link or a node fails. The specific solution is: a leaf node PE receiving the same multicast traffic from a first root node PE and a second root node PE respectively; and the leaf node PE forwarding the multicast traffic according to reception instruction information, wherein the reception instruction information is used for instructing to perform the forwarding of the multicast traffic received from one root node PE in the first root node PE and the second root node PE, and the discarding of the multicast traffic received from the other root node PE.

Description

一种EVPN组播方法、装置及系统An EVPN multicast method, device and system
本申请要求于2019年02月19日提交中国国家知识产权局、申请号为201910128906.4、申请名称为“一种EVPN组播方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910128906.4, and the application name is "An EVPN multicast method, device and system" on February 19, 2019, the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种以太虚拟私有网络(Ethernet Virtual Private Network,EVPN)组播方法、装置及系统。The embodiments of the present application relate to the field of communication technology, and in particular to an Ethernet Virtual Private Network (EVPN) multicast method, device, and system.
背景技术Background technique
图1示意了EVPN组播网络架构,如图1所示,配置运营商边界设备(provider edge device,PE)1为组播业务的根节点,PE2~PE4为组播业务的叶子节点,PE1以自己为根,PE2~PE4为叶子,建立点对多点(point to multiple point,P2MP)隧道。之后,PE1从CE1接收的组播流量即可导入该P2MP隧道,在隧道中进行复制,传输到叶子节点PE2~PE4。Figure 1 shows the EVPN multicast network architecture. As shown in Figure 1, the provider edge device (PE) 1 is configured as the root node of the multicast service, PE2~PE4 are the leaf nodes of the multicast service, and PE1 uses It is the root of itself, and PE2 to PE4 are leaves, and a point-to-multiple point (P2MP) tunnel is established. After that, the multicast traffic received by PE1 from CE1 can be imported into the P2MP tunnel, replicated in the tunnel, and transmitted to the leaf nodes PE2 to PE4.
视频组播业务对卡顿、花屏等现象无法忍受,因此,运营商对EVPN组播业务的可靠性要求较高。当前,EVPN组播业务采用如图2所示的EVPN组播网络架构,该架构中CE 201双归至根节点PE 202及根节点PE 203组网,提供根节点PE 202及根节点PE 203分别为根的两条隧道传输组播流量,以提高传输可靠性。在图2示意的EVPN组播网络架构中,对CE 201配置本地以太链路聚合接口(Eth-Trunk),根节点PE 202和根节点PE 203配置跨设备以太链路聚合接口(E-Trunk),若并通过双活模式或者单活模式实现组播业务。在双活模式下,E-Trunk工作在双主模式,根节点PE 202和根节点PE 203的接入控制(access control,AC)侧接口均激活(UP);在单活模式。E-Trunk工作在单主模式,根节点PE 202和根节点PE 203的AC侧接口只有1个UP。Video multicast services cannot tolerate phenomena such as jams and screens. Therefore, operators have higher requirements for the reliability of EVPN multicast services. Currently, the EVPN multicast service adopts the EVPN multicast network architecture shown in Figure 2. In this architecture, CE 201 is dual-homed to the root node PE 202 and root node PE 203, providing the root node PE 202 and root node PE 203 respectively The two root tunnels transmit multicast traffic to improve transmission reliability. In the EVPN multicast network architecture shown in Figure 2, a local Ethernet link aggregation interface (Eth-Trunk) is configured for CE 201, and a root node PE 202 and root node PE 203 are configured with cross-device Ethernet link aggregation interfaces (E-Trunk) , If the multicast service is realized through dual-active mode or single-active mode. In the dual-active mode, the E-Trunk works in dual-active mode, and the access control (AC) side interfaces of the root node PE 202 and the root node PE 203 are both active (UP); in single-active mode. E-Trunk works in single-active mode, and the AC-side interfaces of the root node PE 202 and root node PE 203 only have one UP.
为了保证链路或者节点故障时的切换性能,通常在主PE中配置双向转发检测(bidirectional forwarding detection,BFD)会话,其中一个BFD会话与本地接入控制器(access controller,AC)接口(Eth-Trunk主接口)联动,另一个BFD会话在Eth-Trunk主接口下配置联动快切。当该AC接口断流后,与其联动的BFD会话被联动掉线,非主PE感知到BFD会话掉线,通知主PE快切,以减少由于AC口故障导致的丢包时间。In order to ensure the handover performance when a link or node fails, a bidirectional forwarding detection (BFD) session is usually configured in the primary PE. One of the BFD sessions is connected to the local access controller (AC) interface (Eth- Trunk main interface) linkage, and another BFD session is configured with linkage quick cut under the Eth-Trunk main interface. When the AC interface is disconnected, the associated BFD session is associated and dropped. The non-primary PE senses that the BFD session is offline and informs the primary PE to switch quickly to reduce the packet loss time due to AC interface failure.
但是,上述配置BFD会话实现切换的方式十分复杂,增加了PE的负担,在链路或节点故障时,切换性能不高。However, the above-mentioned method of configuring a BFD session to implement switching is very complicated, which increases the burden on the PE. When a link or node fails, the switching performance is not high.
发明内容Summary of the invention
本申请提供一种EVPN组播方法、装置及系统,通过简单配置降低PE负担,在链路或节点故障时提高切换性能。This application provides an EVPN multicast method, device, and system, which reduce the burden on the PE through simple configuration and improve the switching performance when a link or node fails.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the foregoing objectives, the following technical solutions are adopted in the embodiments of this application:
第一方面,提供一种EVPN组播方法,应用于EVPN组播网络中的叶子节点PE。本申请提供的EVPN组播方法可以包括:叶子节点PE从第一根节点PE、第二根节点PE分别接收同样的组播流量;叶子节点PE根据接收指示信息,转发该组播流量。其中,该接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。In the first aspect, an EVPN multicast method is provided, which is applied to a leaf node PE in an EVPN multicast network. The EVPN multicast method provided in this application may include: the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE respectively; the leaf node PE forwards the multicast traffic according to the receiving instruction information. Wherein, the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
通过本申请提供的EVPN组播方法,叶子节点PE从第一根节点PE、第二根节点PE接收同样的组播流量,按照接收指示信息的指示从双根流量中选收,进行组播流量转发完成组播业务。因此,在链路或节点故障时,只需配置接收指示信息的指示内容,即可在双根流量的选收时实现切换,该过程耗时短配置简单,对PE无负担且很好的提高了切换性能。Through the EVPN multicast method provided by this application, the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic. Complete the multicast service. Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short. The configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
其中,该EVPN组播网络还包括第一根节点PE、第二根节点PE;执行本申请提供的EVPN组播方法的叶子节点PE为该EVPN组播系统中任一个叶子节点。第一根节点PE为主根节点,由主根节点PE主要负责组播流量的传输;第二根节点PE为备选根节点,备选根节点PE作为主根节点的备份,在主根节点PE故障获取链路故障时,叶子节点PE切换到转发从备选根节点PE接收的组播流量。The EVPN multicast network further includes a first root node PE and a second root node PE; the leaf node PE that executes the EVPN multicast method provided in this application is any leaf node in the EVPN multicast system. The first node PE is the main root node, and the main root node PE is mainly responsible for the transmission of multicast traffic; the second root node PE is the alternate root node, and the alternate root node PE serves as the backup of the main root node. When the main root node PE fails, obtain the link When the path fails, the leaf node PE switches to forward the multicast traffic received from the alternate root node PE.
结合第一方面,在一种可能的实现方式中,本申请提供的EVPN组播方法还可以包括:叶子节点PE接收第一根节点PE或第二根节点PE发送的类型指示信息,该类型指示信息用于指示第一根节点PE为主根节点,或者第二根节点PE为备选根节点;叶子节点PE配置接收指示信息,使得接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量。该实现方式提供了一种配置接收指示信息的指示内容的具体方案,即在EVPN组播系统的初始配置阶段,根据主备类型配置接收指示信息,用于优选从主根节点PE选收组播流量完成组播业务。With reference to the first aspect, in a possible implementation manner, the EVPN multicast method provided in this application may further include: the leaf node PE receives type indication information sent by the first root node PE or the second root node PE, and the type indication The information is used to indicate that the first root node PE is the main root node, or the second root node PE is an alternative root node; the leaf node PE is configured to receive indication information, so that the reception indication information is used to indicate to forward the group received from the first root node PE Broadcast traffic, discard the multicast traffic received from the second root node PE. This implementation provides a specific solution for configuring the instruction content of the receiving instruction information, that is, in the initial configuration stage of the EVPN multicast system, the receiving instruction information is configured according to the active/standby type, which is used to preferentially receive multicast traffic from the primary root node PE Complete the multicast service.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,本申请提供的EVPN组播方法还可以包括:叶子节点PE接收第一根节点PE或第二根节点PE发送的路由信息;该路由信息包括类型指示信息;路由信息还可以包括下述信息中至少一项:隧道类型、隧道标识、发送路由信息的根节点PE的地址;叶子节点PE根据路由信息,分别建立与第一根节点PE、第二根节点PE间的组播标签转发协议(multicast label distribution protocol,MLDP)隧道。With reference to the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the EVPN multicast method provided in this application may further include: the leaf node PE receives the first root node PE or the second root node PE The routing information sent; the routing information includes type indication information; the routing information may also include at least one of the following information: tunnel type, tunnel identifier, and address of the root node PE that sends the routing information; the leaf nodes PE separately according to the routing information Establish a multicast label distribution protocol (multicast label distribution protocol, MLDP) tunnel with the first root node PE and the second root node PE.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,上述路由信息为集成多播(inclusive multicast ethernet tag,IMET)路由,上述类型指示信息包含于IMET路由中的运营商组播业务接口(provider multicast service interface,PMSI)属性的标志位(Flag)字段。In combination with the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the foregoing routing information is an integrated multicast (inclusive multicast ethernet tag, IMET) routing, and the foregoing type indication information is included in the IMET routing The flag field of the operator's multicast service interface (provider multicast service interface, PMSI) attribute.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,在接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量时,本申请提供的EVPN组播方法还可以包括:叶子节点PE确定第一根节点PE断流时长大于或等于第一预设时长,叶子节点PE配置接收指示信息,使得接收指示信息用于指示转发从第二根节点PE接收的组播流量,丢弃从第一根节点PE接收的组播流量。该实现方式提供了一种配置接收指示信息的指示内容的具体方案,即 在EVPN组播系统的主根节点所处的链路故障时,叶子节点PE配置接收指示信息,切换至从备根节点PE选收组播流量完成组播业务。With reference to the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the reception indication information is used to instruct to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE. When receiving multicast traffic, the EVPN multicast method provided in this application may further include: the leaf node PE determines that the disconnection duration of the first root node PE is greater than or equal to the first preset duration, and the leaf node PE configures the receiving instruction information so that the receiving The indication information is used to instruct to forward the multicast traffic received from the second root node PE, and discard the multicast traffic received from the first root node PE. This implementation provides a specific solution for configuring the instruction content of receiving instruction information, that is, when the link where the primary root node of the EVPN multicast system is located fails, the leaf node PE configures receiving instruction information and switches to the secondary root node PE Selectively receive multicast traffic to complete the multicast service.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,在接收指示信息用于指示从第二根节点PE接收的组播流量,丢弃从第一根节点PE接收的组播流量时,本申请提供的EVPN组播方法还可以包括:叶子节点PE接收第一根节点PE发送的组播流量;叶子节点PE确定第二预设时长,叶子节点PE配置接收指示信息,使得接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量。该实现方式提供了一种配置接收指示信息的指示内容的具体方案,即在由于EVPN组播系统的主根节点PE所处的链路故障切换至从备根节点PE选收组播流量完成组播业务之后,若叶子节点PE重新从主根节点PE接收到组播流量,叶子节点PE配置接收指示信息,切换至从主根节点PE选收组播流量完成组播业务。With reference to the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the reception indication information is used to indicate the multicast traffic received from the second root node PE, and the multicast traffic received from the first root node PE is discarded. For multicast traffic, the EVPN multicast method provided in this application may further include: the leaf node PE receives the multicast traffic sent by the first root node PE; the leaf node PE determines the second preset duration, and the leaf node PE configures the receiving instruction information , So that the reception indication information is used to indicate to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE. This implementation provides a specific solution for configuring the instruction content of the receiving instruction information, that is, due to the link failure of the primary root node PE of the EVPN multicast system, switch to the standby root node PE to selectively receive multicast traffic to complete the multicast After the service, if the leaf node PE receives multicast traffic from the primary root node PE again, the leaf node PE configures the receiving instruction information, and switches to selectively receive multicast traffic from the primary root node PE to complete the multicast service.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,主根节点PE恢复流量之后,叶子节点PE等待第二预设时长之后,配置接收指示信息切换至从主根节点PE选收组播流量。本申请对于第二预设时长的内容不进行具体限定。Combining the first aspect or any of the foregoing possible implementations, in a possible implementation, after the primary root node PE resumes traffic, the leaf node PE waits for the second preset period of time, and then configures the receiving instruction to switch to the secondary root node PE selectively receives multicast traffic. This application does not specifically limit the content of the second preset duration.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,可以通过设置定时器,通过定时器超时,实现叶子节点PE等待第二预设时长。With reference to the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, a timer may be set, and the timer may time out, so that the leaf node PE waits for the second preset time period.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,第二预设时长可以为主根节点PE恢复流量之后,与备选根节点PE断流的时刻之间的时间间隔。本申请对于第二预设时长的内容不进行具体限定。In combination with the first aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the second preset duration may be between the time when the main root node PE resumes traffic and the time when the alternate root node PE is cut off. time interval. This application does not specifically limit the content of the second preset duration.
结合第一方面或上述任一种可能的实现方式,在一种可能的实现方式中,可以配置检测周期T,叶子节点PE以T为周期,进行流量统计,以判断根节点断流或者回复流量。Combining the first aspect or any of the foregoing possible implementations, in one possible implementation, a detection period T can be configured, and the leaf node PE uses T as the period to perform traffic statistics to determine whether the root node is disconnected or recovers the traffic. .
第二方面,提供另一种EVPN组播方法,应用于EVPN组播网络中的用户边界设备(customer edge device,CE),CE中第一出端口的成员口与第一根节点PE及第二根节点PE分别连接,第一出端口配置了使能双发。该EVPN组播方法可以包括:CE接收组播流量以及组播流量的目的地址;若广播表中第一出端口与该目的地址对应,CE向第一出端口的每个成员口发送该组播流量。其中,广播表包括CE中每个出端口对应的地址。In the second aspect, another EVPN multicast method is provided, which is applied to the customer edge device (CE) in the EVPN multicast network, the member port of the first outgoing port in the CE, and the first root node PE and the second The root node PE is connected separately, and the first outgoing port is configured to enable dual sending. The EVPN multicast method may include: the CE receives the multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, the CE sends the multicast to each member port of the first egress port flow. Among them, the broadcast table includes the address corresponding to each outgoing port in the CE.
通过本申请提供的EVPN组播方法,在CE中连接主备的根节点PE的出端口配置使能双发,在CE上实现对主、备根节点PE进行同源双发,以保证主备的根节点PE收到同源的两份相同的组播流量并发送给叶子节点PE;叶子节点PE按照接收指示信息的指示从双根流量中选收,进行组播流量转发完成组播业务,进而实现对PE无负担且很好的提高了切换性能的组播业务。Through the EVPN multicast method provided in this application, the outgoing port of the root node PE connected to the active and standby in the CE is configured to enable dual transmission, and the same source and dual transmission is realized on the CE to ensure the active and standby root node PEs. The root node PE receives two copies of the same multicast traffic from the same source and sends them to the leaf node PE; the leaf node PE selects and receives the dual-root traffic according to the instructions of the receiving instruction information, and forwards the multicast traffic to complete the multicast service, and then Realize the multicast service that has no burden on the PE and improves the switching performance.
其中,该EVPN组播网络还包括第一根节点PE、第二根节点PE、及两个或两个以上叶子节点PE;第一根节点PE为主根节点,第二根节点PE为备用根节点。Wherein, the EVPN multicast network also includes a first root node PE, a second root node PE, and two or more leaf nodes PE; the first root node PE is the main root node, and the second root node PE is the backup root node .
结合第二方面,在一种可能的实现方式中,CE双归至第一根节点PE、第二根节点PE,CE配置第一出端口并绑定连接第一根节点PE、第二根节点PE的AC口,作为第一出端口的成员口。With reference to the second aspect, in a possible implementation manner, the CE is dual homed to the first root node PE and the second root node PE, and the CE configures the first egress port and binds the first root node PE and the second root node. The AC port of the PE serves as the member port of the first outgoing port.
结合第二方面或上述任一种可能的实现方式中,在一种可能的实现方式中,第一出端口配置了使能双发,具体可以实现为:在第一出端口下配置使能双发的命令。In combination with the second aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the first outgoing port is configured with enabling dual sending, which can be specifically implemented as follows: configuring enabling dual sending under the first outgoing port Command issued.
结合第二方面或上述任一种可能的实现方式中,在一种可能的实现方式中,本申请提供的EVPN组播方法还可以包括:CE的控制面根据使能双发的命令,生成第一出端口的双发标记,并发送到广播表记录,用于指示第一出端口配置同源双发。With reference to the second aspect or any of the foregoing possible implementation manners, in a possible implementation manner, the EVPN multicast method provided in this application may further include: the control plane of the CE generates the first The dual-transmission mark of an outgoing port is sent to the broadcast table record to indicate that the first outgoing port is configured with the same-origin dual transmission.
第三方面,提供再一种EVPN组播方法,应用于EVPN组播网络中的根节点PE;该EVPN组播网络包括第一根节点PE、第二根节点PE、CE及两个或两个以上叶子节点PE;执行该EVPN组播方法的根节点PE为第一根节点PE或者第二根节点PE。第一根节点PE为主根节点,第二根节点PE为备用根节点。该EVPN组播方法可以包括:根节点PE从CE接收组播流量,该组播流量由CE同源双发至第一根节点PE和第二根节点PE;根节点PE通过与叶子节点PE间的MLDP隧道,向叶子节点PE发送该组播流量。In the third aspect, another EVPN multicast method is provided, which is applied to the root node PE in an EVPN multicast network; the EVPN multicast network includes a first root node PE, a second root node PE, CE, and two or two The above leaf node PE; the root node PE that executes the EVPN multicast method is the first root node PE or the second root node PE. The first node PE is the main root node, and the second root node PE is the backup root node. The EVPN multicast method may include: the root node PE receives multicast traffic from the CE, and the multicast traffic is dual-transmitted from the CE to the first root node PE and the second root node PE; the root node PE passes between the leaf nodes PE The MLDP tunnel that sends the multicast traffic to the leaf node PE.
通过该EVPN组播方法,主、备根节点PE收到同源的两份相同的组播流量并发送给叶子节点PE,以使得叶子节点PE按照接收指示信息的指示从双根流量中选收,进行组播流量转发完成组播业务,进而实现对PE无负担且很好的提高了切换性能的组播业务。Through this EVPN multicast method, the primary and backup root node PEs receive two identical multicast traffic from the same source and send them to the leaf node PE, so that the leaf node PE selects from the dual-root traffic according to the instructions of the receiving instruction information. The multicast traffic is forwarded to complete the multicast service, thereby realizing the multicast service that has no burden on the PE and improves the switching performance.
结合第三方面,在一种可能的实现方式中,本申请提供的EVPN组播方法还可以包括:根节点PE向每个叶子节点PE发送路由信息,该路由信息包括下述信息中至少一项:隧道类型、隧道标识、根节点PE的地址;该路由信息用于指示叶子节点PE建立与根节点PE间的MLDP隧道。With reference to the third aspect, in a possible implementation manner, the EVPN multicast method provided in this application may further include: the root node PE sends routing information to each leaf node PE, and the routing information includes at least one of the following information : Tunnel type, tunnel identifier, and address of the root node PE; the routing information is used to instruct the leaf node PE to establish an MLDP tunnel with the root node PE.
结合第三方面或任一种可能的实现方式,在一种可能的实现方式中,路由信息为IMET路由。With reference to the third aspect or any possible implementation manner, in a possible implementation manner, the routing information is IMET routing.
结合第三方面或任一种可能的实现方式,在一种可能的实现方式中,路由信息还可以包括类型指示信息,该类型指示信息用于指示根节点PE为主根节点或者备选根节点。With reference to the third aspect or any possible implementation manner, in a possible implementation manner, the routing information may further include type indication information, and the type indication information is used to indicate that the root node PE is the main root node or an alternative root node.
结合第三方面或任一种可能的实现方式,在一种可能的实现方式中,本申请提供的EVPN组播方法还可以包括:根节点PE向每个叶子节点PE发送类型指示信息,该类型指示信息用于指示根节点PE为主根节点或者备选根节点。With reference to the third aspect or any possible implementation manner, in a possible implementation manner, the EVPN multicast method provided in this application may further include: the root node PE sends type indication information to each leaf node PE. The indication information is used to indicate that the root node PE is the main root node or alternative root node.
第四方面,提供再一种EVPN组播方法,其特征在于,应用于EVPN组播系统,该EVPN组播系统包括CE、第一根节点PE、第二根节点PE、及两个或两个以上叶子节点PE。CE中第一出端口的成员口与第一根节点PE及所述第二根节点PE分别连接,第一出端口配置了使能双发。该EVPN组播方法可以包括:CE接收组播流量以及组播流量的目的地址;若广播表中第一出端口与目的地址对应,CE向第一出端口的每个成员口发送组播流量;其中,广播表包括CE中每个出端口对应的地址。第一根节点PE从CE接收组播流量,第一根节点PE通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量;第二根节点PE从CE接收同源的相同的组播流量,第二根节点PE通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量;每个叶子节点PE分别从第一根节点PE及第二根节点PE接收相同的组播流量;每个叶子节点PE根据接收指示信息,转发组播流量。其中,接收指示信息用于指示转发从 第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。In a fourth aspect, another EVPN multicast method is provided, which is characterized by being applied to an EVPN multicast system. The EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or two The above leaf node PE. The member port of the first egress port in the CE is respectively connected to the first root node PE and the second root node PE, and the first egress port is configured to enable dual transmission. The EVPN multicast method may include: the CE receives the multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, the CE sends the multicast traffic to each member port of the first egress port; Among them, the broadcast table includes the address corresponding to each outgoing port in the CE. The first node PE receives multicast traffic from CE, and the first root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; the second root node PE receives the same source from CE The second root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel between each leaf node PE; each leaf node PE receives the first root node PE and the second root node PE respectively The same multicast traffic; each leaf node PE forwards the multicast traffic according to the receiving instruction information. Wherein, the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
通过本申请提供的EVPN组播方法,叶子节点PE从第一根节点PE、第二根节点PE接收同样的组播流量,按照接收指示信息的指示从双根流量中选收,进行组播流量转发完成组播业务。因此,在链路或节点故障时,只需配置接收指示信息的指示内容,即可在双根流量的选收时实现切换,该过程耗时短配置简单,对PE无负担且很好的提高了切换性能。Through the EVPN multicast method provided by this application, the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic. Complete the multicast service. Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short. The configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
需要说明的是,第四方面提供的EVPN组播方法的具体实现,可以参照前述第一方面至第三方面的具体实现,此处不再一一赘述。It should be noted that the specific implementation of the EVPN multicast method provided by the fourth aspect may refer to the specific implementations of the aforementioned first aspect to the third aspect, which will not be repeated here.
第五方面,本申请实施例还提供了一种EVPN组播装置,用于实现上述第一方面描述的方法。EVPN组播装置为叶子节点PE或支持叶子节点PE实现该第一方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如,该EVPN组播装置包括:接收单元、处理单元和发送单元。所述接收单元,用于分别从第一根节点PE和第二根节点PE接收同一组播流量;处理单元用于,根据接收指示信息的指示,通过发送单元转发接收的组播流量。接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。In the fifth aspect, an embodiment of the present application also provides an EVPN multicast device for implementing the method described in the first aspect. The EVPN multicast device is a leaf node PE or a communication device that supports the leaf node PE to implement the method described in the first aspect. For example, the communication device includes a chip system. For example, the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is configured to receive the same multicast traffic from the first root node PE and the second root node PE respectively; the processing unit is configured to forward the received multicast traffic through the sending unit according to the instruction of the receiving instruction information. The receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
需要说明的是,第五方面的各个单元具体实现同第一方面中相应的方法描述,这里不再赘述。It should be noted that the specific implementation of each unit in the fifth aspect is the same as the corresponding method description in the first aspect, and will not be repeated here.
第六方面,本申请实施例还提供了一种EVPN组播装置,用于实现上述第二方面描述的方法。EVPN组播装置为CE或支持CE实现该第二方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如,该EVPN组播装置包括:接收单元、处理单元和发送单元。所述接收单元,用于接收组播流量以及组播流量的目的地址;处理单元用于,若广播表中第一出端口与该目的地址对应,通过发送单元向第一出端口的每个成员口发送该组播流量。其中,广播表包括CE中每个出端口对应的地址。In the sixth aspect, the embodiments of the present application also provide an EVPN multicast device for implementing the method described in the second aspect. The EVPN multicast device is a CE or a communication device that supports the CE to implement the method described in the second aspect. For example, the communication device includes a chip system. For example, the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is configured to receive multicast traffic and the destination address of the multicast traffic; the processing unit is configured to, if the first outgoing port in the broadcast table corresponds to the destination address, send the sending unit to each member of the first outgoing port Port to send the multicast traffic. Among them, the broadcast table includes the address corresponding to each outgoing port in the CE.
需要说明的是,第六方面的具体实现同第二方面中相应的描述,这里不再赘述。It should be noted that the specific implementation of the sixth aspect is the same as the corresponding description in the second aspect, and will not be repeated here.
第七方面,本申请实施例还提供了一种EVPN组播装置,用于实现上述第三方面描述的方法。EVPN组播装置为根节点PE或支持根节点PE实现该第三方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如,该EVPN组播装置包括:接收单元、处理单元和发送单元。所述接收单元,用于从CE接收组播流量;处理单元用于,通过与叶子节点PE间的MLDP隧道,采用发送单元向叶子节点PE发送该组播流量。In the seventh aspect, the embodiments of the present application also provide an EVPN multicast device for implementing the method described in the third aspect. The EVPN multicast device is a root node PE or a communication device that supports the root node PE to implement the method described in the third aspect. For example, the communication device includes a chip system. For example, the EVPN multicast device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is used to receive multicast traffic from the CE; the processing unit is used to send the multicast traffic to the leaf node PE through the MLDP tunnel with the leaf node PE using the sending unit.
需要说明的是,第七方面的具体实现同第三方面中相应的描述,这里不再赘述。It should be noted that the specific implementation of the seventh aspect is the same as the corresponding description in the third aspect, and will not be repeated here.
第八方面,本申请提供一种EVPN组播系统,该EVPN组播系统包括CE、第一根节点PE、第二根节点PE、及两个或两个以上叶子节点PE。该CE中第一出端口的成员口与第一根节点PE及第二根节点PE分别连接,第一出端口配置了使能双发。其中,CE用于,接收组播流量以及组播流量的目的地址;若广播表中第一出端口与目的地址对应,向第一出端口的每个成员口发送该组播流量;其中,广播表包括所述CE中每个出端口对应的地址;第一根节点PE用于,从CE接收组播流量,通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量;第二根节点PE用于,从 CE接收组播流量,通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量;叶子节点PE用于,从第一根节点PE接收组播流量,从第二根节点PE接收组播流量;根据接收指示信息,转发接收到的组播流量;其中,接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。In an eighth aspect, this application provides an EVPN multicast system. The EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or more leaf nodes PE. The member port of the first egress port in the CE is respectively connected to the first root node PE and the second root node PE, and the first egress port is configured to enable dual transmission. Among them, CE is used to receive multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, send the multicast traffic to each member port of the first egress port; where, broadcast The table includes the address corresponding to each outgoing port in the CE; the first root node PE is used to receive multicast traffic from the CE, and send multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; The second root node PE is used to receive multicast traffic from the CE and send multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE; the leaf node PE is used to receive the group from the first root node PE Broadcast traffic, receiving multicast traffic from the second root node PE; forwarding the received multicast traffic according to the receiving instruction information; wherein the receiving instruction information is used to instruct forwarding from one of the first root node PE and the second root node PE The multicast traffic received by the root node PE discards the multicast traffic received from another root node PE.
需要说明的是,上述第五方面、第六方面、第七方面以及第八方面的功能模块可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。例如,收发器,用于完成接收单元和发送单元的功能,处理器,用于完成处理单元的功能,存储器,用于处理器处理本申请实施例的方法的程序指令。处理器、收发器和存储器通过总线连接并完成相互间的通信。It should be noted that the functional modules of the fifth, sixth, seventh, and eighth aspects described above can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. For example, the transceiver is used to complete the functions of the receiving unit and the transmitting unit, the processor is used to complete the function of the processing unit, and the memory is used to process the program instructions of the method of the embodiment of the present application. The processor, the transceiver, and the memory are connected through a bus and communicate with each other.
第九方面,本申请提供了一种EVPN组播装置,该EVPN组播装置可以实现上述方法示例中的叶子节点PE的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。该EVPN组播装置可以以芯片的产品形态存在。In a ninth aspect, this application provides an EVPN multicast device, which can implement the function of the leaf node PE in the above method example. The function can be implemented by hardware or by hardware executing corresponding software. . The hardware or software includes one or more modules corresponding to the aforementioned functions. The EVPN multicast device can exist in the form of a chip product.
结合第九方面,在一种可能的实现方式中,该EVPN组播装置的结构中包括处理器和收发器,该处理器被配置为支持该EVPN组播装置执行上述方法中相应的功能。该收发器用于支持该EVPN组播装置与其他设备之间的通信。该EVPN组播装置还可以包括存储器,该存储器用于与处理器耦合,其保存该EVPN组播装置必要的程序指令和数据。With reference to the ninth aspect, in a possible implementation manner, the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method. The transceiver is used to support communication between the EVPN multicast device and other devices. The EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
第十方面,本申请提供了一种EVPN组播装置,该EVPN组播装置可以实现上述方法示例中的CE的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。该EVPN组播装置可以以芯片的产品形态存在。In a tenth aspect, this application provides an EVPN multicast device, which can implement the function of the CE in the foregoing method example, and the function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions. The EVPN multicast device can exist in the form of a chip product.
结合第十方面,在一种可能的实现方式中,该EVPN组播装置的结构中包括处理器和收发器,该处理器被配置为支持该EVPN组播装置执行上述方法中相应的功能。该收发器用于支持该EVPN组播装置与其他设备之间的通信。该EVPN组播装置还可以包括存储器,该存储器用于与处理器耦合,其保存该EVPN组播装置必要的程序指令和数据。With reference to the tenth aspect, in a possible implementation manner, the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method. The transceiver is used to support communication between the EVPN multicast device and other devices. The EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
第十一方面,本申请提供了一种EVPN组播装置,该EVPN组播装置可以实现上述方法示例中的根节点PE的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。该EVPN组播装置可以以芯片的产品形态存在。In an eleventh aspect, this application provides an EVPN multicast device, which can implement the function of the root node PE in the above method example. The function can be implemented by hardware, or the corresponding software can be executed by hardware. achieve. The hardware or software includes one or more modules corresponding to the aforementioned functions. The EVPN multicast device can exist in the form of a chip product.
结合第十一方面,在一种可能的实现方式中,该EVPN组播装置的结构中包括处理器和收发器,该处理器被配置为支持该EVPN组播装置执行上述方法中相应的功能。该收发器用于支持该EVPN组播装置与其他设备之间的通信。该EVPN组播装置还可以包括存储器,该存储器用于与处理器耦合,其保存该EVPN组播装置必要的程序指令和数据。With reference to the eleventh aspect, in a possible implementation manner, the structure of the EVPN multicast device includes a processor and a transceiver, and the processor is configured to support the EVPN multicast device to perform corresponding functions in the foregoing method. The transceiver is used to support communication between the EVPN multicast device and other devices. The EVPN multicast device may further include a memory, which is used for coupling with the processor and stores the necessary program instructions and data of the EVPN multicast device.
第十二方面,提供一种叶子节点PE,该叶子节点PE包括执行上述第一方面或第一方面的任一种可能的实现方式提供的EVPN组播方法的EVPN组播装置。In a twelfth aspect, a leaf node PE is provided, and the leaf node PE includes an EVPN multicast device that executes the EVPN multicast method provided in the first aspect or any one of the possible implementations of the first aspect.
第十三方面,提供一种CE,该CE包括执行上述第二方面或第二方面的任一种可能的实现方式提供的EVPN组播方法的EVPN组播装置。In a thirteenth aspect, a CE is provided, and the CE includes an EVPN multicast device that executes the EVPN multicast method provided by the second aspect or any one of the possible implementation manners of the second aspect.
第十四方面,提供一种根节点PE,该根节点PE包括执行上述第三方面或第三方面的任一种可能的实现方式提供的EVPN组播方法的EVPN组播装置。In a fourteenth aspect, a root node PE is provided, and the root node PE includes an EVPN multicast device that executes the EVPN multicast method provided by the third aspect or any one of the possible implementation manners of the third aspect.
第十五方面,本申请提供一种EVPN组播系统,包括两个或两个以上上述任一方面或任一种可能的实现方式描述的叶子节点PE、上述任一方面或任一种可能的实现方式描述的CE、配置为主根节点的上述任一方面或任一种可能的实现方式描述的描述的根节点PE、配置为备选根节点的上述任一方面或任一种可能的实现方式描述的描述的根节点PE。In a fifteenth aspect, this application provides an EVPN multicast system, including two or more leaf nodes PE described in any one of the foregoing aspects or any possible implementation manner, and any one of the foregoing aspects or any one of the possible The CE described in the implementation mode, the root node PE described in any one of the foregoing aspects or any possible implementation mode configured as the primary root node, any one of the foregoing aspects or any possible implementation mode configured as an alternative root node Description of the root node PE of the description.
第十六方面,提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述任一方面或任一种可能的实现方式提供的EVPN组播方法。In a sixteenth aspect, a computer-readable storage medium is provided, including instructions, which when run on a computer, cause the computer to execute the EVPN multicast method provided by any one of the foregoing aspects or any possible implementation manner.
第十七方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一方面或任一种可能的实现方式提供的EVPN组播方法。In a seventeenth aspect, a computer program product containing instructions is provided, which when running on a computer, causes the computer to execute the EVPN multicast method provided by any one of the above aspects or any possible implementation manner.
其中,需要说明的是,上述各个方面中的任意一个方面的各种可能的实现方式,在方案不矛盾的前提下,均可以进行组合。Among them, it should be noted that various possible implementation manners of any one of the above aspects can be combined on the premise that the solutions are not contradictory.
附图说明Description of the drawings
图1为一种EVPN组播网络架构示意图;Figure 1 is a schematic diagram of an EVPN multicast network architecture;
图2为另一种EVPN组播网络架构示意图;Figure 2 is a schematic diagram of another EVPN multicast network architecture;
图3为本申请实施例提供的一种PE的结构示意图;FIG. 3 is a schematic structural diagram of a PE provided by an embodiment of the application;
图4为本申请实施例提供的一种CE的结构示意图;FIG. 4 is a schematic structural diagram of a CE provided by an embodiment of this application;
图5为本申请实施例提供的一种EVPN组播方法的流程示意图;FIG. 5 is a schematic flowchart of an EVPN multicast method provided by an embodiment of this application;
图6为本申请实施例提供的一种EVPN组播装置的结构示意图;6 is a schematic structural diagram of an EVPN multicast device provided by an embodiment of the application;
图7为本申请实施例提供的另一种EVPN组播装置的结构示意图;FIG. 7 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of the application;
图8为本申请实施例提供的再一种EVPN组播装置的结构示意图;FIG. 8 is a schematic structural diagram of still another EVPN multicast device provided by an embodiment of this application;
图9为本申请实施例提供的又一种EVPN组播装置的结构示意图;FIG. 9 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application;
图10为本申请实施例提供的又一种EVPN组播装置的结构示意图;FIG. 10 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application;
图11为本申请实施例提供的又一种EVPN组播装置的结构示意图;FIG. 11 is a schematic structural diagram of another EVPN multicast device provided by an embodiment of this application;
图12为本申请实施例提供的一种叶子节点PE的结构示意图;FIG. 12 is a schematic structural diagram of a leaf node PE provided by an embodiment of this application;
图13为本申请实施例提供的一种CE的结构示意图;FIG. 13 is a schematic structural diagram of a CE provided by an embodiment of this application;
图14为本申请实施例提供的一种根节点PE的结构示意图;FIG. 14 is a schematic structural diagram of a root node PE provided by an embodiment of this application;
图15为本申请实施例提供的一种EVPN组播系统的结构示意图。FIG. 15 is a schematic structural diagram of an EVPN multicast system provided by an embodiment of this application.
具体实施方式detailed description
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second", and "third" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的” 或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:In order to make the description of the following embodiments clear and concise, a brief introduction of related technologies is first given:
EVPN技术就是通过隧道技术在公共数据网络上虚拟出的一条点到点的专有网络的技术。VPN的基本原理是利用隧道(tunneling)技术将报文封装在隧道中,利用EVPN骨干网建立专用数据传输通道,实现报文的透明传输。EVPN technology is a point-to-point proprietary network technology virtualized on the public data network through tunnel technology. The basic principle of VPN is to use tunneling technology to encapsulate messages in tunnels and use the EVPN backbone network to establish a dedicated data transmission channel to achieve transparent transmission of messages.
组播(Multicast)传输,是指在发送者和每一接收者之间实现点对多点的网络连接,提高了数据传送效率,减少了骨干网络出现拥塞的可能性。Multicast (Multicast) transmission refers to the point-to-multipoint network connection between the sender and each receiver, which improves the efficiency of data transmission and reduces the possibility of congestion in the backbone network.
视频组播业务在互联网协议(internet protocol,IP)无线接入网(radio access network,RAN)已有广泛应用,EVPN被用于实现视频组播业务。EVPN使用IMET路由指导组播流量转发,PE之间互相发送IMET路由,以形成组播流量成员表,实现组播流量的P2MP隧道转发,提高流量转发效率且节省公网带宽。Video multicast services have been widely used in Internet protocol (IP) radio access networks (RAN), and EVPN is used to implement video multicast services. EVPN uses IMET routing to guide multicast traffic forwarding, and PEs send IMET routes to each other to form a multicast traffic member table to realize P2MP tunnel forwarding of multicast traffic, improve traffic forwarding efficiency and save public network bandwidth.
为了提高组播业务的可靠性,采用如图2所示的CE双归至PE的EVPN组播网络架构。双归架构通过提供两个根节点PE分别为根的两条隧道传输组播流量,以提高传输可靠性。但是,当某一个根的隧道故障时,将组播业务切换到另一个根实现,更反映了组播业务的可靠性。如前所述,图2示意的EVPN组播网络架构中,当前采用配置BFD会话的方式实现切换,不仅实现复杂增加了PE的负担,而且切换性能不高。In order to improve the reliability of the multicast service, an EVPN multicast network architecture with CE dual-homing to PE as shown in Figure 2 is adopted. The dual-homing architecture improves transmission reliability by providing two tunnels with two root node PEs as the root respectively to transmit multicast traffic. However, when the tunnel of a certain root fails, the multicast service is switched to another root, which reflects the reliability of the multicast service. As mentioned above, in the EVPN multicast network architecture shown in Figure 2, the current switch is implemented by configuring a BFD session, which not only complicates the implementation and increases the burden on the PE, but also has low switching performance.
基于此,本申请实施例提供了一种EVPN组播方法,其基本原理是:将CE双归的根节点PE配置为主备根节点,以主备根节点为根的两条隧道传输相同的组播流量,由叶子节点PE择一选收,在链路或节点故障时,叶子节点PE通过选收实现切换,无需增加PE负担且实现简单的提高了切换性能。Based on this, the embodiment of the application provides an EVPN multicast method, the basic principle of which is: the root node PE of CE dual-homing is configured as the active and standby root node, and the two tunnels rooted at the active and standby root nodes transmit the same Multicast traffic is selectively received by the leaf node PE. When a link or node fails, the leaf node PE implements switching through selective reception, without increasing the burden on the PE and simply improving the switching performance.
其中,由主根节点PE主要负责组播流量的传输,备选根节点PE作为主根节点的备份,在主根节点PE故障获取链路故障时,叶子节点PE切换到转发从备选根节点PE接收的组播流量。Among them, the primary root node PE is mainly responsible for the transmission of multicast traffic, and the alternate root node PE serves as the backup of the primary root node. When the primary root node PE fails to obtain the link failure, the leaf node PE switches to forwarding the data received from the alternate root node PE Multicast traffic.
本申请提供的EVPN组播方法,可以应用于图2示意的EVPN组播网络架构中,将该EVPN组播网络架构中的两个根节点PE一个配置为主根节点,另一个配置为备选根节点。如图2所示,该EVPN组播网络架构中包括CE 301、根节点PE 202(配置为主根节点)、根节点PE 203(配置为备选根节点)、多个叶子节点PE 204、多个CE 205以及P节点206。The EVPN multicast method provided in this application can be applied to the EVPN multicast network architecture shown in Figure 2. One of the two root nodes PE in the EVPN multicast network architecture is configured as the primary root node and the other as the alternate root. node. As shown in Figure 2, the EVPN multicast network architecture includes CE 301, root node PE 202 (configured as the primary root node), root node PE 203 (configured as an alternate root node), multiple leaf nodes PE 204, multiple CE 205 and P node 206.
其中,CE 201作为连接组播视频服务器的交换机或路由器设备。根节点PE 202、根节点PE 203为靠近组播源侧的路由器,作为EVPN MLDP隧道的根节点,即隧道的入口。根节点PE 203作为根节点PE 202的备选替代PE。CE 201双归至根节点PE 202、根节点PE 203。多个叶子节点PE 204为用户侧的路由器,作为EVPN MLDP隧道的叶子节点,即隧道的出口。多个CE 205为连接视频组播业务用户的交换机或路由器设备。P节点206为EVPN组播网络架构重的公网交换节点。Among them, CE 201 is used as a switch or router device connected to the multicast video server. The root node PE 202 and the root node PE 203 are routers close to the multicast source side and serve as the root node of the EVPN MLDP tunnel, that is, the entrance of the tunnel. The root node PE 203 serves as an alternative PE of the root node PE 202. CE 201 is dual homed to root node PE 202 and root node PE 203. Multiple leaf nodes PE 204 are routers on the user side, and serve as leaf nodes of the EVPN MLDP tunnel, that is, the exit of the tunnel. Multiple CEs 205 are switches or routers that connect video multicast service users. The P node 206 is a public network switching node with a heavy EVPN multicast network architecture.
需要说明的是,图2仅是对EVPN组播网络架构的示例描述,该网络架构中包括的各个节点的数量可以根据实际实际需求配置。It should be noted that Figure 2 is only an example description of the EVPN multicast network architecture, and the number of nodes included in the network architecture can be configured according to actual requirements.
具体的,根节点PE 202、根节点PE 203包括EVPN模块,叶子节点PE 204包括标签分发协议(label distribution protocol,LDP)模块。Specifically, the root node PE 202 and the root node PE 203 include an EVPN module, and the leaf node PE 204 includes a label distribution protocol (label distribution protocol, LDP) module.
在EVPN组播的初始阶段,根节点PE 202、根节点PE 203会通过EVPN模块, 向LDP模块通知IMET路由,以通知叶子节点PE 204创建P2MP MLDP隧道。叶子节点PE 204收到每个根节点的IMET路由后,叶子节点PE 204的LDP模块触发从叶子往根创建P2MP MLDP隧道,叶子节点通过查找去往根节点的路由,一跳跳的发送标签地图(label mapping)消息,指示完成隧道建立。其中,IMET路由可包括隧道类型、隧道标识、根节点PE的地址等信息。In the initial stage of EVPN multicast, the root node PE 202 and the root node PE 203 will notify the LDP module of the IMET route through the EVPN module to notify the leaf node PE 204 to create a P2MP MLDP tunnel. After the leaf node PE 204 receives the IMET route of each root node, the LDP module of the leaf node PE 204 triggers the creation of a P2MP MLDP tunnel from the leaf to the root. The leaf node searches for the route to the root node and sends the label map one hop The (label mapping) message indicates the completion of the tunnel establishment. Among them, IMET routing may include information such as tunnel type, tunnel identifier, and address of the root node PE.
需要说明的是,本申请实施例对于根节点PE与叶子节点PE间建立隧道的过程不再进行赘述,具体过程可以参考征求修正意见书(request for comments,RFC)6388。It should be noted that, in the embodiment of this application, the process of establishing a tunnel between the root node PE and the leaf node PE will not be repeated. For the specific process, please refer to Request for Comments (RFC) 6388.
在EVPN组播的过程中,EVPN组播流量承载在公网P2MP MLDP隧道上,如图2中黑色树状箭头线示意。当CE 201设备从组播源服务器收到组播流量后,将组播流量同源双发至根节点PE 202、根节点PE 203。根节点PE 202、根节点PE 203都将组播流量导入各自的MLDP隧道,进行组播流分发,最终叶子节点收到相同的双份组播流两。叶子节点PE 204根据接收指示信息进行流量选收,转发从根节点PE 202、根节点PE 203中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量,以防止流量多包。In the process of EVPN multicast, EVPN multicast traffic is carried on the public network P2MP MLDP tunnel, as shown by the black tree-shaped arrow line in Figure 2. When the CE 201 device receives the multicast traffic from the multicast source server, it sends the multicast traffic to the root node PE 202 and the root node PE 203 from the same source. The root node PE 202 and the root node PE 203 both import the multicast traffic into their respective MLDP tunnels for multicast stream distribution, and finally the leaf nodes receive the same duplicate multicast streams. The leaf node PE 204 selects traffic according to the received instruction information, forwards the multicast traffic received from one root node PE of the root node PE 202 and root node PE 203, and discards the multicast traffic received from the other root node PE to prevent Multi-packet traffic.
需要说明的是,根节点PE从CE接收到组播流量后,将组播流量封装为报文,将报文导入MLDP隧道,进行组播流分发,该报文中包括根节点PE与叶子节点PE间隧道的入标签。组播流量可以作为报文的payload。在本申请全文中,描述的根节点PE发送组播流量,等价于根节点PE将组播流量封装为报文发送;叶子节点PE接收组播流量,等价于叶子节点PE从隧道接收包括组播流量的报文。对于根节点PE封装报文的过程,本申请实施例不再进行赘述。相互等价的内容可以相互替代。后续不再对此进行一一说明。It should be noted that after the root node PE receives the multicast traffic from the CE, it encapsulates the multicast traffic into a message, and imports the message into the MLDP tunnel for multicast stream distribution. The message includes the root node PE and the leaf nodes Ingress label of the tunnel between PEs. Multicast traffic can be used as the payload of packets. In the full text of this application, the description of the root node PE sending multicast traffic is equivalent to the root node PE encapsulating the multicast traffic into a message to send; the leaf node PE receiving the multicast traffic is equivalent to the leaf node PE receiving from the tunnel. Packets of multicast traffic. The process of encapsulating the message by the root node PE will not be repeated in this embodiment of the application. The equivalent content can be substituted for each other. This will not be explained one by one later.
需要说明的是,图2中各个网元的实际产品形态可以根据实际需求配置,图2中只是举例示意了各个网元的类型,并不是对此的具体限定。It should be noted that the actual product form of each network element in FIG. 2 can be configured according to actual requirements, and FIG. 2 only illustrates the type of each network element by way of example, and does not specifically limit this.
下面结合附图,对本申请的实施例进行具体阐述。The embodiments of the present application will be described in detail below in conjunction with the drawings.
一方面,本申请实施例提供一种PE 30。图3示出的是与本申请各实施例相关的一种PE 30。如图3所示,PE 30可以包括处理器301、存储器302以及收发器303。On the one hand, an embodiment of the present application provides a PE 30. FIG. 3 shows a type of PE 30 related to various embodiments of the present application. As shown in FIG. 3, the PE 30 may include a processor 301, a memory 302, and a transceiver 303.
下面结合图3对PE 30的各个构成部件进行具体的介绍:The following describes the components of PE 30 in detail with reference to Figure 3:
其中,存储器302可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、配置文件或其他内容。The memory 302 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory). memory, ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memory, used to store materials that can implement the method of this application Program code, configuration files or other content.
处理器301是PE 30的控制中心,可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。The processor 301 is the control center of the PE 30, which can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or is configured to implement the embodiments of this application One or more integrated circuits, such as one or more microprocessors (digital digital processors, DSP), or one or more field programmable gate arrays (FPGA).
收发器303用于与其他设备之间通信以及数据传输。The transceiver 303 is used for communication with other devices and data transmission.
一种可能的实现中,PE 30可以配置为图2示意的EVPN组播网络架构中的叶子 节点PE 204,处理器301通过运行或执行存储在存储器302内的软件程序和/或模块,以及调用存储在存储器302内的数据,执行如下功能:In a possible implementation, PE 30 can be configured as a leaf node PE 204 in the EVPN multicast network architecture shown in FIG. 2. The processor 301 runs or executes software programs and/or modules stored in the memory 302, and calls The data stored in the memory 302 performs the following functions:
通过收发器303从第一根节点PE和第二根节点PE接收同一组播流量;根据接收指示信息,转发组播流量,接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。Receive the same multicast traffic from the first root node PE and the second root node PE through the transceiver 303; forward the multicast traffic according to the receiving instruction information, and the receiving instruction information is used to instruct the forwarding from the first root node PE and the second root node The multicast traffic received by one root node PE in the PE discards the multicast traffic received from another root node PE.
一种可能的实现中,PE 30可以配置为图2示意的EVPN组播网络架构中的根节点PE 202或者根节点PE 203,处理器301通过运行或执行存储在存储器302内的软件程序和/或模块,以及调用存储在存储器302内的数据,执行如下功能:In a possible implementation, the PE 30 can be configured as the root node PE 202 or the root node PE 203 in the EVPN multicast network architecture shown in FIG. 2, and the processor 301 runs or executes the software program and/or stored in the memory 302 Or module, and call the data stored in the memory 302, perform the following functions:
通过收发器303从CE接收组播流量,通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量。The transceiver 303 receives multicast traffic from the CE, and sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
另一方面,本申请实施例提供一种CE 40。图4示出的是与本申请各实施例相关的一种CE 40。如图4所示,CE 40可以包括:处理器401、存储器402、收发器403。On the other hand, an embodiment of the present application provides a CE 40. Figure 4 shows a CE 40 related to various embodiments of the present application. As shown in FIG. 4, the CE 40 may include: a processor 401, a memory 402, and a transceiver 403.
下面结合图4对CE 40的各个构成部件进行具体的介绍:The following is a detailed introduction to the components of CE 40 in conjunction with Figure 4:
存储器402,可以是易失性存储器(volatile memory),例如RAM;或者non-volatile memory,例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),HDD或SSD;或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、以及配置文件。The memory 402 may be a volatile memory (volatile memory), such as RAM; or a non-volatile memory, such as read-only memory (ROM), flash memory (flash memory), HDD or SSD; or the above A combination of different types of memories is used to store program codes and configuration files that can implement the method of the present application.
处理器401是CE 40的控制中心,可以是一个CPU,也可以是ASIC,或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个DSP,或,一个或者多个FPGA。处理器401可以通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行CE 40的各种功能。The processor 401 is the control center of the CE 40. It can be a CPU, an ASIC, or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more DSPs, or, one or Multiple FPGAs. The processor 401 can execute various functions of the CE 40 by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402.
收发器403用于CE 40与其他单元进行交互。The transceiver 403 is used for the CE 40 to interact with other units.
具体的,处理器401通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行如下功能:Specifically, the processor 401 executes the following functions by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402:
通过收发器403接收组播流量以及组播流量的目的地址;若广播表中与目的地址对应的出端口配置了使能双发,向该出端口的每个成员口发送组播流量。The multicast traffic and the destination address of the multicast traffic are received through the transceiver 403; if the outgoing port corresponding to the destination address in the broadcast table is configured with dual sending enabled, the multicast traffic is sent to each member port of the outgoing port.
再一方面,本申请实施例提供一种EVPN组播方法,应用于EVPN组播系统,该EVPN组播系统包括CE、第一根节点PE、第二根节点PE、及两个或两个以上叶子节点PE。其中,CE双归至第一根节点PE、第二根节点PE;CE中第一出端口的成员口与第一根节点PE及第二根节点PE分别连接,第一出端口配置了使能双发。第一根节点PE配置为主根节点,第二根节点PE配置为备选根节点。下面以CE、第一根节点PE、第二根节点PE、叶子节点PE通过交互实现组播业务的过程为例,对本申请提供的EVPN组播方法进行详细描述。In another aspect, the embodiments of the present application provide an EVPN multicast method, which is applied to an EVPN multicast system. The EVPN multicast system includes a CE, a first root node PE, a second root node PE, and two or more Leaf node PE. Among them, the CE is dual homed to the first root node PE and the second root node PE; the member port of the first egress port in the CE is connected to the first root node PE and the second root node PE respectively, and the first egress port is configured with an enable Double shot. The first node PE is configured as the main root node, and the second root node PE is configured as the alternate root node. In the following, a process in which the CE, the first root node PE, the second root node PE, and the leaf node PE implement a multicast service through interaction is taken as an example to describe the EVPN multicast method provided in this application in detail.
其中,该EVPN组播系统可以为图2示意的EVPN组播网络架构,下述内容中的CE可以为图2中的CE 201,第一根节点PE可以为图2中作为主根节点的根节点PE 202,第二根节点PE可以为图2中作为备选根节点的根节点PE 203,叶子节点PE可以为图2中的叶子节点PE 204。The EVPN multicast system can be the EVPN multicast network architecture shown in Figure 2. The CE in the following content can be CE 201 in Figure 2, and the first root node PE can be the root node as the master root node in Figure 2. PE 202, the second root node PE may be the root node PE 203 as a candidate root node in FIG. 2, and the leaf node PE may be the leaf node PE 204 in FIG. 2.
在进行组播之前,需先对EVPN组播系统进行配置,下面简单描述。Before multicasting, you need to configure the EVPN multicast system, which is briefly described below.
首先,由管理员配置PE的属性,以配置主根节点、备选根节点以及叶子节点。First, the administrator configures the attributes of the PE to configure the primary root node, alternative root nodes, and leaf nodes.
示例性的,可以对第一根节点PE进行如下配置,将第一根节点PE的属性配置为主根节点:Exemplarily, the following configuration may be performed on the first root node PE, and the attributes of the first root node PE may be configured as the main root node:
evpn vpn-instance xxxevpn vpn-instance xxx
inclusive-provider-tunnelinclusive-provider-tunnel
rootroot
mastermaster
示例性的,可以对第二根节点PE进行如下配置,将第二根节点PE的属性配置为备选根节点:Exemplarily, the following configuration may be performed on the second root node PE, and the attributes of the second root node PE may be configured as candidate root nodes:
evpn vpn-instance xxxevpn vpn-instance xxx
inclusive-provider-tunnelinclusive-provider-tunnel
rootroot
slaveslave
示例性的,可以对叶子节点PE进行如下配置,将叶子节点PE的属性配置为叶子节点:Exemplarily, the following configuration can be performed on the leaf node PE, and the attribute of the leaf node PE is configured as the leaf node:
evpn vpn-instance xxxevpn vpn-instance xxx
inclusive-provider-tunnelinclusive-provider-tunnel
leafleaf
需要说明的是,上述示例的配置内容仅为举例说明,并不构成具体限定。It should be noted that the configuration content of the foregoing example is only an example and does not constitute a specific limitation.
在初始阶段,根节点PE向叶子节点PE发送IMET路由,叶子节点PE在收到IMET路由后,根据IMET路由的内容,触发从叶子往根创建P2MP MLDP隧道,用于承载组播流量。In the initial stage, the root node PE sends an IMET route to the leaf node PE. After receiving the IMET route, the leaf node PE triggers the creation of a P2MP MLDP tunnel from the leaf to the root according to the content of the IMET route, which is used to carry multicast traffic.
其次,由管理员配置CE实现同源双发。具体的,可以在CE配置第一出端口,在Eth-Trunk接口下配置同源双发的命令,将该第一出端口与CE中连接第一根节点PE、第二根节点PE的AC口绑定,作为第一出端口的成员口。CE的控制面获取配置的同源双发的命令,生成第一出端口的双发标记,将该双发标记下到广播表中记录,以指示该第一出端口进行同源双发。Secondly, the administrator configures CE to achieve dual transmission from the same source. Specifically, you can configure the first egress port on the CE, configure the same-source dual command under the Eth-Trunk interface, and connect the first egress port and the CE to the AC ports of the first root node PE and the second root node PE. Binding, as the member port of the first out port. The control plane of the CE obtains the configured dual-source command of the same source, generates a dual-transfer flag of the first outgoing port, and downloads the dual-transfer flag to the broadcast table for recording to instruct the first outgoing port to perform dual-source dual sending.
示例性的,同源双发的命令可以配置为:multicast-dual-sending enable。第一出端口为Eth-Trunk接口。Exemplarily, the same-source dual-sending command can be configured as: multicast-dual-sending enable. The first outgoing port is the Eth-Trunk interface.
下面描述具体的组播过程,如图5所示,本申请实施例提供的EVPN组播方法可以包括:The following describes the specific multicast process. As shown in FIG. 5, the EVPN multicast method provided by the embodiment of the present application may include:
S501、CE接收组播流量以及组播流量的目的地址。S501. The CE receives the multicast traffic and the destination address of the multicast traffic.
具体的,S501中CE从组播视频服务器接收组播流量以及组播流量的目的地址。其中,组播流量是当前组播业务的业务数据,目的地址用于指示该组播流量发送的目的设备。CE可以根据目的地址查询广播表,确定广播表中与该目的地址对应的出端口,然后通过该出端口将该组播流量发送出去。出端口连接了EVPN网络的根节点PE,就可以将组播流量发送到根节点PE。Specifically, in S501, the CE receives the multicast traffic and the destination address of the multicast traffic from the multicast video server. Among them, the multicast traffic is business data of the current multicast service, and the destination address is used to indicate the destination device to which the multicast traffic is sent. The CE can query the broadcast table according to the destination address, determine the outgoing port corresponding to the destination address in the broadcast table, and then send the multicast traffic out through the outgoing port. The outgoing port is connected to the root node PE of the EVPN network, and the multicast traffic can be sent to the root node PE.
其中,广播表为二层转发表,用于指示CE发送组播流量。广播表中包括CE中每个出端口对应的地址,在广播表中,一个地址可以对应至少一个出端口。CE在接收到组播流量时,根据组播流量的目的地址,在广播表中查找对应的出端口,从对应的出 端口发送组播流量,实现组播流量的传输。广播表由CE的管路员根据EVPN网络的架构进行配置,本申请对于广播表的具体内容以及配置过程不进行限定。Among them, the broadcast table is a layer 2 forwarding table, used to instruct the CE to send multicast traffic. The broadcast table includes the address corresponding to each egress port in the CE. In the broadcast table, one address can correspond to at least one egress port. When the CE receives multicast traffic, it searches for the corresponding egress port in the broadcast table according to the destination address of the multicast traffic, and sends the multicast traffic from the corresponding egress port to realize the transmission of multicast traffic. The broadcast table is configured by the CE operator according to the EVPN network architecture. This application does not limit the specific content and configuration process of the broadcast table.
S502、若广播表中第一出端口与目的地址对应,CE向第一出端口的每个成员口发送组播流量。S502: If the first egress port in the broadcast table corresponds to the destination address, the CE sends multicast traffic to each member port of the first egress port.
其中,由于广播表中记录了第一出端口进行同源双发,若广播表中第一出端口与目的地址对应,说明S501中CE接收的组播流量同源双发。Wherein, since the first outgoing port is recorded in the broadcast table for dual transmission of the same origin, if the first outgoing port in the broadcast table corresponds to the destination address, it indicates that the multicast traffic received by the CE in S501 is dual transmitted from the same origin.
具体的,第一出端口的成员口为连接第一根节点PE、第二根节点PE的AC口,CE向第一出端口的每个成员口发送组播流量,则将该组播流量发送到了第一根节点PE、第二根节点PE,第一根节点PE、第二根节点PE收到了同源的两份相同的组播流量。Specifically, the member port of the first egress port is the AC port connecting the first root node PE and the second root node PE, and the CE sends multicast traffic to each member port of the first egress port, then the multicast traffic is sent Arriving at the first root node PE and the second root node PE, the first root node PE and the second root node PE have received two copies of the same multicast traffic from the same source.
S503、第一根节点PE从CE接收组播流量,第一根节点PE通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量。S503. The first root node PE receives the multicast traffic from the CE, and the first root node PE sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
S504、第二根节点PE从CE接收组播流量,第二根节点PE通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量。S504. The second root node PE receives the multicast traffic from the CE, and the second root node PE sends the multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE.
其中,S503、S504中第一根节点PE/第二根节点PE接收的组播流量,即S502中CE同源双发的组播流量。Among them, the multicast traffic received by the first root node PE/second root node PE in S503 and S504 is the multicast traffic of the same source and dual transmission of CE in S502.
具体的,S503、S504中,第一根节点PE/第二根节点PE通过与每个叶子节点PE间的MLDP隧道,向叶子节点PE发送组播流量,具体可以实现为:第一根节点PE/第二根节点PE将组播流量携带其与叶子节点PE间MLDP隧道的入标签封装为报文,向叶子节点PE发送封装后的报文。报文中的入标签用于报文在MLDP隧道中按照标签转发协议转发。Specifically, in S503 and S504, the first root node PE/the second root node PE sends multicast traffic to the leaf node PE through the MLDP tunnel with each leaf node PE, which can be specifically implemented as: the first root node PE /The second root node PE encapsulates the multicast traffic carrying the incoming label of the MLDP tunnel between it and the leaf node PE into a message, and sends the encapsulated message to the leaf node PE. The incoming label in the message is used for the message to be forwarded in the MLDP tunnel according to the label forwarding protocol.
S505、叶子节点PE从第一根节点PE和第二根节点PE接收同一组播流量。S505: The leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE.
其中,S505中叶子节点PE接收的组播流量,即S503、S504中第一根节点PE/第二根节点PE封装发送的报文中的组播流量。The multicast traffic received by the leaf node PE in S505 is the multicast traffic in the packet sent by the first root node PE/second root node PE in S503 and S504 encapsulated and sent.
S506、叶子节点PE根据接收指示信息,转发组播流量。S506: The leaf node PE forwards the multicast traffic according to the receiving instruction information.
其中,接收指示信息用于指示叶子节点PE当前从哪个根节点选收组播流量,也可以理解为,接收指示信息用于指示叶子节点PE转发从哪个根节点接收的组播流量。具体的,接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。Wherein, the receiving instruction information is used to indicate which root node the leaf node PE is currently receiving multicast traffic from. It can also be understood that the receiving instruction information is used to instruct the leaf node PE to forward the multicast traffic received from which root node. Specifically, the receiving instruction information is used to instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
具体的,在S505中,叶子节点PE按照接收指示信息的指示,将从接收指示信息指示的选收组播流量的根节点PE接收的组播流量,按照目的地址转发至视频组播业务用户侧的CE,完成组播业务;叶子节点PE将从接收指示信息指示的丢弃组播流量的根节点PE接收的组播流量丢弃,以防止流量多包。Specifically, in S505, the leaf node PE forwards the multicast traffic received from the root node PE that receives the multicast traffic indicated by the receiving instruction information to the video multicast service user side according to the destination address according to the instruction of the receiving instruction information. CE to complete the multicast service; the leaf node PE discards the multicast traffic received from the root node PE that discards the multicast traffic indicated by the receiving instruction information, so as to prevent the traffic from being multi-packetized.
一种可能的实现中,接收指示信息可以为X个比特位的指示信息,通过对接收指示信息赋值不同的数值,指示不同的内容。X的数值可以根据实际需求配置,本申请实施例对此不进行具体限定。In a possible implementation, the reception indication information may be X-bit indication information, and different values are assigned to the reception indication information to indicate different content. The value of X can be configured according to actual needs, which is not specifically limited in the embodiment of the present application.
示例性的,接收指示信息可以为1个比特位的指示信息。对接收指示信息赋值0,用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量;对接收指示信息赋值1,用于指示转发从第一根节点PE接收的组播流量,丢弃从 第二根节点PE接收的组播流量。Exemplarily, the receiving indication information may be 1-bit indication information. Assign a value of 0 to the reception indication information to indicate to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE; to assign a value of 1 to the reception indication information to indicate to forward the multicast traffic received from the first root node PE The multicast traffic received by the root node PE discards the multicast traffic received from the second root node PE.
一种可能的实现中,接收指示信息可以为根节点PE工作状态映射关系,在该映射关系中,第一根节点PE、第二根节点PE的标识分别对应各自的工作状态,对该工作状态赋值不同的数值,指示是否转发该根节点PE发送的组播流量。In a possible implementation, the receiving indication information may be a root node PE working state mapping relationship. In the mapping relationship, the identifiers of the first root node PE and the second root node PE correspond to their respective working states, and the working state Assign different values to indicate whether to forward the multicast traffic sent by the root node PE.
其中,第一根节点PE、第二根节点PE的标识用于唯一识别根节点PE,本申请对第一根节点PE、第二根节点PE的标识的内容不进行具体限定。Wherein, the identifiers of the first root node PE and the second root node PE are used to uniquely identify the root node PE, and the content of the identifiers of the first root node PE and the second root node PE is not specifically limited in this application.
一种可能的实现中,第一根节点PE、第二根节点PE的标识可以为其与叶子节点PE间MLDP隧道的入标签。In a possible implementation, the identifiers of the first root node PE and the second root node PE may be the inbound labels of the MLDP tunnel between the PE and the leaf node PE.
另一种可能的实现中,第一根节点PE、第二根节点PE的标识可以为其地址。该地址可以为IP地址或者MAC地址。In another possible implementation, the identifiers of the first root node PE and the second root node PE may be their addresses. The address can be an IP address or a MAC address.
示例性的,表1示意了一种根节点PE工作状态映射关系。在表1示意的映射关系中,第一根节点PE、第二根节点PE的标识可以为其与叶子节点PE间MLDP隧道的入标签,工作状态赋值1指示转发包含其对应的入标签的报文中的组播流量,工作状态赋值0指示丢弃包含其对应的入标签的报文。Exemplarily, Table 1 illustrates a mapping relationship of the working state of the root node PE. In the mapping relationship shown in Table 1, the identifiers of the first root node PE and the second root node PE can be the inbound label of the MLDP tunnel between the PE and the leaf node PE, and the working state assignment 1 indicates that the packet containing the corresponding inbound label is forwarded. For the multicast traffic in the text, the working status is assigned 0 to indicate that the packet containing its corresponding incoming label is discarded.
表1Table 1
Figure PCTCN2020071291-appb-000001
Figure PCTCN2020071291-appb-000001
需要说明的是,表1只是通过举例的形式对接收指示信息为根节点PE工作状态映射关系的方案进行示例说明,并不是对该映射关系的内容以及形式的具体限定。It should be noted that Table 1 merely illustrates the solution of receiving the indication information as the working state mapping relationship of the root node PE by way of example, and does not specifically limit the content and form of the mapping relationship.
具体的,对于接收指示信息的配置,可以根据实际需求配置,本申请实施例对此不进行具体限定。Specifically, the configuration for receiving the indication information can be configured according to actual requirements, which is not specifically limited in the embodiment of the present application.
下面描述几种叶子节点PE配置接收指示信息的指示内容的具体实现(下述三种实现)。其中,叶子节点PE配置接收指示信息,是指业务节点PE调整接收指示信息的指示内容,更改叶子节点PE选收组播流量的根节点PE。The following describes several specific implementations (the following three implementations) for configuring the instruction content of the leaf node PE to receive the instruction information. The configuration of the leaf node PE to receive the instruction information refers to that the service node PE adjusts the instruction content of the receiving instruction information and changes the root node PE of the leaf node PE to selectively receive multicast traffic.
第一种实现:在EVPN网络初始阶段,叶子节点PE接收第一根节点PE或第二根节点PE发送的类型指示信息,该类型指示信息用于指示根节点PE的属性,即指示第一根节点PE为主根节点或者第二根节点PE为备选根节点。基于此,叶子节点PE配置接收指示信息,使得接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量。The first implementation: In the initial stage of the EVPN network, the leaf node PE receives the type indication information sent by the first root node PE or the second root node PE. The type indication information is used to indicate the attributes of the root node PE, that is, to indicate the first root node PE. The node PE is the main root node or the second root node PE is the candidate root node. Based on this, the leaf node PE configures the receiving instruction information, so that the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE and discard the multicast traffic received from the second root node PE.
可选的,类型指示信息可以由根节点PE单独发送给叶子节点PE。该类型指示信息可以由第一根节点PE发送给叶子节点PE,也可以由第二根节点PE发送给叶子节点PE,还可以由第一根节点PE和第二节点PE发送给叶子节点。例如叶子节点PE接收第一根节点PE发送的第一根节点PE为主根节点,或者叶子节点PE接收第二根节点PE发送的第二根节点为备选根节点等。Optionally, the type indication information may be separately sent by the root node PE to the leaf node PE. The type indication information can be sent by the first root node PE to the leaf node PE, can also be sent by the second root node PE to the leaf node PE, and can also be sent by the first root node PE and the second node PE to the leaf node. For example, the leaf node PE receives the first root node PE sent by the first root node PE as the master root node, or the leaf node PE receives the second root node sent by the second root node PE as the candidate root node.
可选的,类型指示信息可以包含在根节点PE发送给叶子节点PE用于建立隧道的路由信息中。Optionally, the type indication information may be included in the routing information sent by the root node PE to the leaf node PE for establishing the tunnel.
一种可能的实现中,叶子节点PE接收第一根节点PE、第二根节点PE发送的路由信息,该路由信息中包括上述类型指示信息。该路由信息用于指示叶子节点PE分别建立与第一根节点PE、第二根节点PE间的MLDP隧道。该路由信息还可以包括下述信息中至少一项:隧道类型、隧道标识、发送所述路由信息的根节点PE的地址。In a possible implementation, the leaf node PE receives routing information sent by the first root node PE and the second root node PE, and the routing information includes the foregoing type indication information. The routing information is used to instruct the leaf node PE to respectively establish MLDP tunnels with the first root node PE and the second root node PE. The routing information may also include at least one of the following information: tunnel type, tunnel identifier, and the address of the root node PE that sends the routing information.
示例性的,上述路由信息可以为IMET路由,上述类型指示信息包含于IMET路由中的PTMSI属性的标志位(Flag)字段。例如,扩展PTMSI属性的Flag字段,Flag字段中的第6比特,1代表Master,即主根,0代表Slave,即备根。Exemplarily, the foregoing routing information may be an IMET route, and the foregoing type indication information is included in a flag field of the PTMSI attribute in the IMET route. For example, in the Flag field of the extended PTMSI attribute, the 6th bit in the Flag field, 1 represents Master, that is, the primary root, and 0 represents Slave, that is, the backup root.
上述示例只是通过举例的形式说明类型指示信息在路由信息中的位置以及形式,并不是对此了具体限定。类型指示信息在路由信息中的位置,本申请实施例不进行具体限定,可以根据实际需求配置。The foregoing example only illustrates the position and form of the type indication information in the routing information by way of example, and does not specifically limit this. The position of the type indication information in the routing information is not specifically limited in the embodiment of the present application, and can be configured according to actual requirements.
第二种实现:在接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量时,若叶子节点PE确定第一根节点PE断流时长大于或等于第一预设时长,即叶子节点PE确定主根节点PE所处的链路故障,无法收到组播流量(包括主根节点PE故障,或者主根节点PE连接CE的AC口发生故障,或者其他原因),此时,叶子节点PE配置接收指示信息,使得接收指示信息用于指示转发从第二根节点PE接收的组播流量,丢弃从第一根节点PE接收的组播流量。The second implementation: when the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE and discard the multicast traffic received from the second root node PE, if the leaf node PE determines that the first root node PE is disconnected The flow duration is greater than or equal to the first preset duration, that is, the leaf node PE determines that the link where the primary root node PE is located is faulty and cannot receive multicast traffic (including the primary root node PE failure, or the AC port of the primary root node PE connected to the CE fails. , Or other reasons), at this time, the leaf node PE is configured to receive instruction information, so that the receiving instruction information is used to instruct to forward the multicast traffic received from the second root node PE, and discard the multicast traffic received from the first root node PE.
其中,第一预设时长的取值,可以根据实际需求配置,本申请实施例对此不进行具体限定。Among them, the value of the first preset duration can be configured according to actual needs, which is not specifically limited in the embodiment of the present application.
第三种实现:在接收指示信息用于指示从第二根节点PE接收的组播流量,丢弃从第一根节点PE接收的组播流量时,叶子节点PE重新接收到第一根节点PE发送的组播流量,则说明主根节点PE所在的链路故障恢复,叶子节点PE确定第二预设时长,配置接收指示信息,使得接收指示信息用于指示转发从第一根节点PE接收的组播流量,丢弃从第二根节点PE接收的组播流量,即回切至接收主根节点PE发送的组播流量。The third implementation: when the receiving instruction information is used to indicate the multicast traffic received from the second root node PE, and the multicast traffic received from the first root node PE is discarded, the leaf node PE receives the transmission from the first root node PE again If the multicast traffic of the primary root node PE is restored, the leaf node PE determines the second preset duration and configures the receiving instruction information so that the receiving instruction information is used to instruct to forward the multicast received from the first root node PE Traffic, discarding the multicast traffic received from the second root node PE, that is, switching back to receiving the multicast traffic sent by the primary root node PE.
在一种可能的实现方式中,主根节点PE恢复流量之后,叶子节点PE等待第二预设时长之后,配置接收指示信息切换至从主根节点PE选收组播流量。本申请对于第二预设时长的内容不进行具体限定,可以根据实际需求配置第二预设时长的取值。In a possible implementation manner, after the primary root node PE restores traffic, the leaf node PE waits for the second preset period of time, and then configures receiving instruction information to switch to selectively receiving multicast traffic from the primary root node PE. This application does not specifically limit the content of the second preset duration, and the value of the second preset duration can be configured according to actual needs.
示例性的,可以通过设置定时器,通过定时器超时,实现叶子节点PE等待第二预设时长。Exemplarily, a timer may be set, and the timer may time out, so that the leaf node PE waits for the second preset period of time.
在一种可能的实现方式中,第二预设时长可以为主根节点PE恢复流量的时刻,与备选根节点PE断流的时刻之间的时间间隔。In a possible implementation manner, the second preset duration may be the time interval between the time when the main root node PE resumes traffic and the time when the candidate root node PE cuts off traffic.
进一步的,可以配置检测周期T,叶子节点PE以T为周期,进行流量统计,以判断根节点断流。Further, a detection period T can be configured, and the leaf node PE uses T as the period to perform traffic statistics to determine whether the root node is disconnected.
对于T的取值,可以根据实际需求配置,本申请实施例对此不进行具体限定。T配置的越短,切换时间越短。例如,假设T设置为20ms,故障发生时,切换时长不超过50ms,可以达到视频组播业务的可靠性要求。The value of T can be configured according to actual requirements, which is not specifically limited in the embodiment of the present application. The shorter the T configuration, the shorter the switching time. For example, assuming that T is set to 20ms, when a fault occurs, the switching time does not exceed 50ms, which can meet the reliability requirements of the video multicast service.
一种可能的实现中,叶子节点PE将周期T内统计的组播流量记录为流量统计值,该流量统计值可以单独记录,也可以与根节点PE工作状态映射关系合并记录,本申请实施例对此不进行具体限定。In a possible implementation, the leaf node PE records the multicast traffic counted in the period T as a traffic statistics value. The traffic statistics value can be recorded separately or combined with the working state mapping relationship of the root node PE. This embodiment of the application There is no specific limitation on this.
示例性的,表2示意了叶子节点PE进行流量统计的一种记录方式。Exemplarily, Table 2 illustrates a recording method for the leaf node PE to perform traffic statistics.
表2Table 2
Figure PCTCN2020071291-appb-000002
Figure PCTCN2020071291-appb-000002
需要说明的是,上述三种实现只是列举了几种可能的配置接收指示信息的情况,但并不是对配置接收指示信息的具体限定。It should be noted that the above three implementations only enumerate several possible situations of configuring receiving instruction information, but do not specifically limit the configuration receiving instruction information.
需要说明的是,在EVPN组播网络架构中,每个叶子节点PE执行相同的操作,下述实施例中仅描述一个叶子节点PE执行EVPN组播方法的过程,其他不再一一赘述。It should be noted that in the EVPN multicast network architecture, each leaf node PE performs the same operation. In the following embodiments, only the process of one leaf node PE performing the EVPN multicast method is described, and the rest will not be described one by one.
还需要说明的是,图5中包括的各个步骤的执行顺序可以根据实际需求配置,图5仅示意了各个步骤的一种可能的执行顺序,并不是对此的具体限定。It should also be noted that the execution order of the steps included in FIG. 5 can be configured according to actual requirements. FIG. 5 only illustrates a possible execution order of the steps, and is not a specific limitation on this.
通过本申请提供的EVPN组播方法,叶子节点PE从第一根节点PE、第二根节点PE接收同样的组播流量,按照接收指示信息的指示从双根流量中选收,进行组播流量转发完成组播业务。因此,在链路或节点故障时,只需配置接收指示信息的指示内容,即可在双根流量的选收时实现切换,该过程耗时短配置简单,对PE无负担且很好的提高了切换性能。Through the EVPN multicast method provided by this application, the leaf node PE receives the same multicast traffic from the first root node PE and the second root node PE, and selects the dual-root traffic according to the instructions of the receiving instruction information, and then forwards the multicast traffic. Complete the multicast service. Therefore, in the event of a link or node failure, you only need to configure the instruction content of the receiving instruction information to realize the switch when the dual-root traffic is selectively received. This process is time-consuming and short. The configuration is simple, and it does not burden the PE and is very good. Improved switching performance.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,上述EVPN组播系统中包括的PE、CE为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。将PE、CE中实现上述EVPN组播方法的功能单元,称之为EVPN组播装置。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution provided by the embodiment of the present application from the perspective of interaction between various network elements. It can be understood that, in order to realize the above functions, the PE and CE included in the above-mentioned EVPN multicast system include hardware structures and/or software modules corresponding to each function. The functional unit in PE and CE that implements the above-mentioned EVPN multicast method is called an EVPN multicast device. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对EVPN组播装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the EVPN multicast device into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图6示出了上述实施例中所涉及的叶子节点PE中部署的EVPN组播装置60的一种可能的结构示意图。该EVPN组播装置60可以为叶子节点PE本身,也可以为叶子节点PE中的功能模块或者芯片。如图6所示,EVPN组播装置60可以包括:接收单元601、处理单元602、发送单元603。接收单元601用于执行图5中的过程S505;处理单元602用于通过发送单元603执行图5中的过程S506。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case of dividing each functional module corresponding to each function, FIG. 6 shows a possible schematic structural diagram of the EVPN multicast device 60 deployed in the leaf node PE involved in the foregoing embodiment. The EVPN multicast device 60 may be the leaf node PE itself, or may be a functional module or chip in the leaf node PE. As shown in FIG. 6, the EVPN multicast device 60 may include: a receiving unit 601, a processing unit 602, and a sending unit 603. The receiving unit 601 is used to perform the process S505 in FIG. 5; the processing unit 602 is used to perform the process S506 in FIG. 5 through the sending unit 603. Among them, all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
进一步的,如图6所示,EVPN组播装置60还可以包括配置单元604、建立单元605。其中,配置单元604用于配置接收指示信息;建立单元605用于建立与第一根节点PE、第二根节点PE间的MLDP隧道。Further, as shown in FIG. 6, the EVPN multicast device 60 may further include a configuration unit 604 and an establishment unit 605. Wherein, the configuration unit 604 is used to configure the receiving instruction information; the establishing unit 605 is used to establish an MLDP tunnel with the first root node PE and the second root node PE.
在采用集成的单元的情况下,图7示出了上述实施例中所涉及的叶子节点PE中部署的EVPN组播装置70的一种可能的结构示意图。该EVPN组播装置70可以为叶子节点PE本身,也可以为叶子节点PE中的功能模块或者芯片。EVPN组播装置70可以包括:处理模块701、通信模块702。处理模块701用于对EVPN组播装置70的动作进行控制管理。例如,处理模块701用于执行图5中的过程S506;通信模块702用于执行图5中的过程S505。EVPN组播装置70还可以包括存储模块703,用于存储EVPN组播装置70的程序代码和数据。In the case of using an integrated unit, FIG. 7 shows a possible schematic structural diagram of the EVPN multicast device 70 deployed in the leaf node PE involved in the foregoing embodiment. The EVPN multicast device 70 may be the leaf node PE itself, or may be a functional module or chip in the leaf node PE. The EVPN multicast device 70 may include: a processing module 701 and a communication module 702. The processing module 701 is used to control and manage the actions of the EVPN multicast device 70. For example, the processing module 701 is used to execute the process S506 in FIG. 5; the communication module 702 is used to execute the process S505 in FIG. The EVPN multicast device 70 may further include a storage module 703 for storing program codes and data of the EVPN multicast device 70.
其中,处理模块701可以为图3所示的PE 30的实体结构中的处理器301,可以是处理器或控制器。例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器701也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块702可以为图3所示的PE 30的实体结构中的收发器303,通信模块702可以是通信端口,或者可以是收发器、收发电路或通信接口等。或者,上述通信接口可以通过上述具有收发功能的元件,实现与其他设备的通信。上述具有收发功能的元件可以由天线和/或射频装置实现。存储模块703可以是图3所示的PE 30的实体结构中的存储器303。The processing module 701 may be the processor 301 in the physical structure of the PE 30 shown in FIG. 3, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 701 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication module 702 may be the transceiver 303 in the physical structure of the PE 30 shown in FIG. 3, and the communication module 702 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface. Alternatively, the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function. The above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices. The storage module 703 may be the memory 303 in the physical structure of the PE 30 shown in FIG. 3.
当处理模块701为处理器,通信模块702为收发器,存储模块703为存储器时,本申请实施例图7所涉及的EVPN组播装置70可以为图3所示的PE 30。When the processing module 701 is a processor, the communication module 702 is a transceiver, and the storage module 703 is a memory, the EVPN multicast device 70 involved in FIG. 7 in the embodiment of the present application may be the PE 30 shown in FIG. 3.
如前述,本申请实施例提供的EVPN组播装置60或EVPN组播装置70可以用于实施上述本申请各实施例实现的方法中叶子节点PE的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the EVPN multicast device 60 or the EVPN multicast device 70 provided by the embodiments of the present application can be used to implement the functions of the leaf node PE in the methods implemented in the above embodiments of the present application. For ease of description, only the For the relevant parts of the application embodiment, and the specific technical details are not disclosed, please refer to each embodiment of the application.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的CE中部署的EVPN组播装置80的一种可能的结构示意图。该EVPN组播装置80可以为CE本身,也可以为CE中的功能模块或者芯片。如图8所示,EVPN组播装置80可以包括:接收单元801、处理单元802、发送单元803。接收单元801用于执行图5中的过程S501;处理单元802用于通过发送单元803执行图5中的过程S502。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case of dividing each functional module corresponding to each function, FIG. 8 shows a possible schematic structural diagram of the EVPN multicast device 80 deployed in the CE involved in the foregoing embodiment. The EVPN multicast device 80 may be the CE itself, or a functional module or chip in the CE. As shown in FIG. 8, the EVPN multicast device 80 may include: a receiving unit 801, a processing unit 802, and a sending unit 803. The receiving unit 801 is configured to execute the process S501 in FIG. 5; the processing unit 802 is configured to execute the process S502 in FIG. 5 through the sending unit 803. Among them, all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
在采用集成的单元的情况下,图9示出了上述实施例中所涉及的CE中部署的EVPN组播装置90的一种可能的结构示意图。该EVPN组播装置90可以为CE本身,也可以为CE中的功能模块或者芯片。EVPN组播装置90可以包括:处理模块901、通信模块902。处理模块901用于对EVPN组播装置90的动作进行控制管理。例如,处理模块901用于执行图5中的过程S501;通信模块902用于执行图5中的过程S502。EVPN组播装置90还可以包括存储模块903,用于存储EVPN组播装置90的程序代码和数据。In the case of using an integrated unit, FIG. 9 shows a schematic diagram of a possible structure of the EVPN multicast device 90 deployed in the CE involved in the foregoing embodiment. The EVPN multicast device 90 may be the CE itself, or a functional module or chip in the CE. The EVPN multicast device 90 may include: a processing module 901 and a communication module 902. The processing module 901 is used to control and manage the actions of the EVPN multicast device 90. For example, the processing module 901 is used to execute the process S501 in FIG. 5; the communication module 902 is used to execute the process S502 in FIG. The EVPN multicast device 90 may further include a storage module 903 for storing program codes and data of the EVPN multicast device 90.
其中,处理模块901可以为图4所示的CE 40的实体结构中的处理器401,可以是处理器或控制器。例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器901也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块902可以为图4所示的CE 40的实体结构中的收发器403,通信模块902可以是通信端口,或者可以是收发器、收发电路或通信接口等。或者,上述通信接口可以通过上述具有收发功能的元件,实现与其他设备的通信。上述具有收发功能的元件可以由天线和/或射频装置实现。存储模块903可以是图4所示的CE 40的实体结构中的存储器403。The processing module 901 may be the processor 401 in the physical structure of the CE 40 shown in FIG. 4, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 901 may also be a combination that implements computing functions, for example, it includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication module 902 may be the transceiver 403 in the physical structure of the CE 40 shown in FIG. 4, and the communication module 902 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface. Alternatively, the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function. The above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices. The storage module 903 may be the memory 403 in the physical structure of the CE 40 shown in FIG. 4.
当处理模块901为处理器,通信模块902为收发器,存储模块903为存储器时,本申请实施例图9所涉及的EVPN组播装置90可以为图4所示的CE 40。When the processing module 901 is a processor, the communication module 902 is a transceiver, and the storage module 903 is a memory, the EVPN multicast device 90 involved in FIG. 9 of the embodiment of the present application may be the CE 40 shown in FIG. 4.
如前述,本申请实施例提供的EVPN组播装置80或EVPN组播装置90可以用于实施上述本申请各实施例实现的方法中CE的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the EVPN multicast device 80 or the EVPN multicast device 90 provided by the embodiments of the present application can be used to implement the functions of the CE in the methods implemented by the various embodiments of the present application. For ease of description, only the implementation of the present application is shown. For the relevant parts of the example, and the specific technical details are not disclosed, please refer to the embodiments of this application.
在采用对应各个功能划分各个功能模块的情况下,图10示出了上述实施例中所涉及的根节点PE中部署的EVPN组播装置100的一种可能的结构示意图。该EVPN组播装置100可以为根节点PE本身,也可以为根节点PE中的功能模块或者芯片。如图10所示,EVPN组播装置100可以包括:接收单元1001、处理单元1002、发送单元1003。接收单元1001用于执行图5中的过程S503、S504;处理单元1002用于通过发送单元1003执行图5中的过程S503、S504。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case of dividing each functional module corresponding to each function, FIG. 10 shows a possible schematic structural diagram of the EVPN multicast device 100 deployed in the root node PE involved in the foregoing embodiment. The EVPN multicast device 100 may be the root node PE itself, or may be a functional module or chip in the root node PE. As shown in FIG. 10, the EVPN multicast device 100 may include: a receiving unit 1001, a processing unit 1002, and a sending unit 1003. The receiving unit 1001 is used to execute the processes S503 and S504 in FIG. 5; the processing unit 1002 is used to execute the processes S503 and S504 in FIG. 5 through the sending unit 1003. Among them, all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
在采用集成的单元的情况下,图11示出了上述实施例中所涉及的根节点PE中部署的EVPN组播装置110的一种可能的结构示意图。该EVPN组播装置110可以为根节点PE本身,也可以为根节点PE中的功能模块或者芯片。EVPN组播装置110可以包括:处理模块1101、通信模块1102。处理模块1101用于对EVPN组播装置110的动作进行控制管理。例如,处理模块1101用于执行图5中的过程S503、S504;通信模块1102用于执行图5中的过程S503、S504。EVPN组播装置110还可以包括存储模块1103,用于存储EVPN组播装置110的程序代码和数据。In the case of using an integrated unit, FIG. 11 shows a schematic diagram of a possible structure of the EVPN multicast device 110 deployed in the root node PE involved in the foregoing embodiment. The EVPN multicast device 110 may be the root node PE itself, or may be a functional module or chip in the root node PE. The EVPN multicast device 110 may include: a processing module 1101 and a communication module 1102. The processing module 1101 is used to control and manage the actions of the EVPN multicast device 110. For example, the processing module 1101 is used to execute the processes S503 and S504 in FIG. 5; the communication module 1102 is used to execute the processes S503 and S504 in FIG. The EVPN multicast device 110 may further include a storage module 1103 for storing program codes and data of the EVPN multicast device 110.
其中,处理模块1101可以为图3所示的PE 30的实体结构中的处理器301,可以是处理器或控制器。例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器1101也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1102可以为图3所示的PE 30的实体结构中的收发器303,通信模块1102可以是通信端口,或者可以是收发器、收发电路或通信接口等。或者,上述通信接口可以通过上述具有收发功能的元件,实现与其他设备的通信。上述具有收发功能的元件可以由天线和/或射频装置实现。存储模块1103可以是图3所示的PE 30的实体结构中的存储器303。The processing module 1101 may be the processor 301 in the physical structure of the PE 30 shown in FIG. 3, and may be a processor or a controller. For example, it may be a CPU, a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 1101 may also be a combination that implements computing functions, for example, includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication module 1102 may be the transceiver 303 in the physical structure of the PE 30 shown in FIG. 3, and the communication module 1102 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface. Alternatively, the above-mentioned communication interface may realize communication with other devices through the above-mentioned element having a transceiver function. The above-mentioned elements with transceiving functions can be implemented by antennas and/or radio frequency devices. The storage module 1103 may be the memory 303 in the physical structure of the PE 30 shown in FIG. 3.
当处理模块1101为处理器,通信模块1102为收发器,存储模块1103为存储器时,本申请实施例图11所涉及的EVPN组播装置110可以为图3所示的PE 30。When the processing module 1101 is a processor, the communication module 1102 is a transceiver, and the storage module 1103 is a memory, the EVPN multicast device 110 involved in FIG. 11 in the embodiment of the present application may be the PE 30 shown in FIG. 3.
如前述,本申请实施例提供的EVPN组播装置100或EVPN组播装置110可以用于实施上述本申请各实施例实现的方法中根节点PE的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the EVPN multicast device 100 or the EVPN multicast device 110 provided in the embodiments of the present application can be used to implement the functions of the root node PE in the methods implemented in the various embodiments of the present application. For ease of description, only the For the relevant parts of the embodiments and the specific technical details that are not disclosed, please refer to the embodiments of this application.
如图12所示,本申请实施例提供一种叶子节点PE 120,包括EVPN组播装置60或EVPN组播装置70。As shown in FIG. 12, an embodiment of the present application provides a leaf node PE 120, which includes an EVPN multicast device 60 or an EVPN multicast device 70.
如图13所示,本申请实施例提供一种CE 130,包括EVPN组播装置80或EVPN组播装置90。As shown in FIG. 13, an embodiment of the present application provides a CE 130, which includes an EVPN multicast device 80 or an EVPN multicast device 90.
如图14所示,本申请实施例提供一种根节点PE 140,包括EVPN组播装置100或EVPN组播装置110。As shown in FIG. 14, an embodiment of the present application provides a root node PE 140, which includes an EVPN multicast device 100 or an EVPN multicast device 110.
本申请实施例提供一种EVPN组播系统,包括两个或两个以上叶子节点PE 120、CE 130、配置为主根节点的根节点PE 140、配置为备选根节点的根节点PE 140。The embodiment of the application provides an EVPN multicast system, which includes two or more leaf nodes PE 120 and CE 130, a root node PE 140 configured as a primary root node, and a root node PE 140 configured as an alternate root node.
如图15所示,本申请实施例提供一种EVPN组播系统150,包括CE 1501、第一根节点PE 1502、第二根节点PE 1503、及两个或两个以上叶子节点PE 1504。其中,CE 1501中第一出端口的成员口与第一根节点PE 1502及第二根节点PE 1503分别连接,第一出端口配置了使能双发。As shown in FIG. 15, an embodiment of the present application provides an EVPN multicast system 150, which includes a CE 1501, a first root node PE 1502, a second root node PE 1503, and two or more leaf nodes PE 1504. Among them, the member port of the first egress port in CE 1501 is respectively connected to the first root node PE 1502 and the second root node PE 1503, and the first egress port is configured to enable dual transmission.
其中,CE 1501用于,接收组播流量以及组播流量的目的地址;若广播表中第一出端口与目的地址对应,向第一出端口的每个成员口发送该组播流量;其中,广播表包括所述CE中每个出端口对应的地址。Among them, CE 1501 is used to receive multicast traffic and the destination address of the multicast traffic; if the first egress port in the broadcast table corresponds to the destination address, send the multicast traffic to each member port of the first egress port; where, The broadcast table includes the address corresponding to each egress port in the CE.
第一根节点PE 1502用于,从CE 1501接收组播流量,通过与每个叶子节点PE 1504间的MLDP隧道,向叶子节点PE 1504发送组播流量。The first node PE 1502 is used to receive multicast traffic from CE 1501, and send multicast traffic to the leaf node PE 1504 through the MLDP tunnel with each leaf node PE 1504.
第二根节点PE 1503用于,从CE 1501接收组播流量,通过与每个叶子节点PE 1504间的MLDP隧道,向叶子节点PE 1504发送组播流量。The second root node PE 1503 is used to receive multicast traffic from the CE 1501, and send multicast traffic to the leaf node PE 1504 through the MLDP tunnel with each leaf node PE 1504.
叶子节点PE 1504用于,从第一根节点PE 1502接收组播流量,从第二根节点PE 1502接收组播流量;根据接收指示信息,转发接收到的组播流量;其中,接收指示信息用于指示转发从第一根节点PE、第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。The leaf node PE 1504 is used to receive multicast traffic from the first root node PE 1502, and receive multicast traffic from the second root node PE 1502; forward the received multicast traffic according to the receiving instruction information; among them, the receiving instruction information is used To instruct to forward the multicast traffic received from one of the first root node PE and the second root node PE, and discard the multicast traffic received from the other root node PE.
作为本实施例的另一种形式,提供一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的意图处理方法。As another form of this embodiment, a computer-readable storage medium is provided, and an instruction is stored thereon. When the instruction is executed, the intention processing method in the foregoing method embodiment is executed.
作为本实施例的另一种形式,提供一种包含指令的计算机程序产品,该指令被执行时执行上述方法实施例中的意图处理方法。As another form of this embodiment, a computer program product containing instructions is provided, and when the instructions are executed, the intention processing method in the foregoing method embodiment is executed.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计 算机能够存取的任何可用介质。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented by hardware, software, firmware or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer. Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may be separately physically included, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute some steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (11)

  1. 一种EVPN组播方法,其特征在于,应用于以太虚拟私有网络EVPN组播网络中的叶子节点运营商边界设备PE,所述方法包括:An EVPN multicast method, characterized in that it is applied to a leaf node operator boundary device PE in an Ethernet virtual private network EVPN multicast network, and the method includes:
    所述叶子节点PE从第一根节点PE接收组播流量;The leaf node PE receives multicast traffic from the first root node PE;
    所述叶子节点PE从第二根节点PE接收所述组播流量;The leaf node PE receives the multicast traffic from the second root node PE;
    所述叶子节点PE根据接收指示信息,转发所述组播流量,所述接收指示信息用于指示转发从所述第一根节点PE、所述第二根节点PE中一个根节点PE接收的所述组播流量,丢弃从另一个根节点PE接收的所述组播流量。The leaf node PE forwards the multicast traffic according to receiving instruction information, where the receiving instruction information is used to instruct to forward all received from one of the first root node PE and the second root node PE. The multicast traffic is discarded from the multicast traffic received from another root node PE.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述叶子节点PE接收所述第一根节点PE或所述第二根节点PE发送的类型指示信息,所述类型指示信息用于指示所述第一根节点PE为主根节点或者所述第二根节点PE为备选根节点;The leaf node PE receives type indication information sent by the first root node PE or the second root node PE, where the type indication information is used to indicate that the first root node PE is the master root node or the second root node PE The root node PE is a candidate root node;
    所述叶子节点PE配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第一根节点PE接收的所述组播流量,丢弃从所述第二根节点PE接收的所述组播流量。The leaf node PE configures the receiving instruction information so that the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE, and discard all the received from the second root node PE. The multicast traffic.
  3. 根据权利要求1或2所述的方法,其特征在于,在所述接收指示信息用于指示转发从所述第一根节点PE接收的所述组播流量,丢弃从所述第二根节点PE接收的所述组播流量时,所述方法还包括:The method according to claim 1 or 2, wherein the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE. When the multicast traffic is received, the method further includes:
    所述叶子节点PE确定所述第一根节点PE断流时长大于或等于第一预设时长,所述叶子节点PE配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第二根节点PE接收的所述组播流量,丢弃从所述第一根节点PE接收的所述组播流量。The leaf node PE determines that the disconnection duration of the first root node PE is greater than or equal to the first preset duration, and the leaf node PE configures the receiving instruction information so that the receiving instruction information is used to instruct forwarding from the The multicast traffic received by the second root node PE discards the multicast traffic received from the first root node PE.
  4. 根据权利要求3所述的方法,其特征在于,在所述接收指示信息用于指示从所述第二根节点PE接收的所述组播流量,丢弃从所述第一根节点PE接收的所述组播流量时,所述方法还包括:The method according to claim 3, wherein the receiving instruction information is used to instruct the multicast traffic received from the second root node PE to discard all the multicast traffic received from the first root node PE When the multicast traffic is described, the method further includes:
    所述叶子节点PE接收所述第一根节点PE发送的所述组播流量;The leaf node PE receives the multicast traffic sent by the first root node PE;
    所述叶子节点PE确定第二预设时长,配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第一根节点PE接收的所述组播流量,丢弃从所述第二根节点PE接收的所述组播流量。The leaf node PE determines a second preset duration, configures the reception instruction information so that the reception instruction information is used to instruct to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the first root node PE. The multicast traffic received by the second root node PE.
  5. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    所述叶子节点PE接收所述第一根节点PE或所述第二根节点PE发送的路由信息;所述路由信息包括所述类型指示信息;所述路由信息还包括下述信息中至少一项:隧道类型、隧道标识、发送所述路由信息的根节点PE的地址;The leaf node PE receives routing information sent by the first root node PE or the second root node PE; the routing information includes the type indication information; the routing information further includes at least one of the following information : Tunnel type, tunnel identifier, and address of the root node PE that sends the routing information;
    所述叶子节点PE根据所述路由信息,分别建立与所述第一根节点PE、所述第二根节点PE间的组播标签转发协议MLDP隧道。The leaf node PE separately establishes a multicast label forwarding protocol MLDP tunnel with the first root node PE and the second root node PE according to the routing information.
  6. 一种EVPN组播方法,其特征在于,应用于以太虚拟私有网络EVPN组播系统,所述EVPN组播系统包括用户边界设备CE、第一根节点PE、第二根节点PE、及两个或两个以上叶子节点PE,所述CE中第一出端口的成员口与所述第一根节点PE及所述第二根节点PE分别连接,所述第一出端口配置了使能双发,所述方法包括:An EVPN multicast method, characterized in that it is applied to an Ethernet virtual private network EVPN multicast system. The EVPN multicast system includes a user border device CE, a first root node PE, a second root node PE, and two or Two or more leaf nodes PE, member ports of the first egress port in the CE are respectively connected to the first root node PE and the second root node PE, and the first egress port is configured to enable dual transmission, The method includes:
    所述CE接收组播流量以及所述组播流量的目的地址;The CE receives the multicast traffic and the destination address of the multicast traffic;
    若广播表中所述第一出端口与所述目的地址对应,所述CE向所述第一出端口的每个成员口发送所述组播流量,其中,所述广播表包括所述CE的每个出端口对应的地址;If the first egress port in the broadcast table corresponds to the destination address, the CE sends the multicast traffic to each member port of the first egress port, where the broadcast table includes the CE’s The address corresponding to each out port;
    所述第一根节点PE从所述CE接收所述组播流量,所述第一根节点PE通过与每个所述叶子节点PE间的组播标签分发协议MLDP隧道,向所述叶子节点PE发送所述组播流量;The first root node PE receives the multicast traffic from the CE, and the first root node PE transmits the multicast label distribution protocol MLDP tunnel with each of the leaf nodes PE to the leaf node PE Sending the multicast traffic;
    所述第二根节点PE从所述CE接收所述组播流量,所述第二根节点PE通过与每个所述叶子节点PE间的MLDP隧道,向所述叶子节点PE发送所述组播流量;The second root node PE receives the multicast traffic from the CE, and the second root node PE sends the multicast traffic to the leaf node PE through the MLDP tunnel with each of the leaf nodes PE flow;
    每个所述叶子节点PE分别从所述第一根节点PE接收所述组播流量;Each of the leaf nodes PE receives the multicast traffic from the first root node PE;
    每个所述叶子节点PE分别从所述第二根节点PE接收所述组播流量;Each of the leaf nodes PE receives the multicast traffic from the second root node PE;
    每个所述叶子节点PE根据接收指示信息,转发所述组播流量;其中,所述接收指示信息用于指示转发从所述第一根节点PE、第二根节点PE中一个根节点PE接收的所述组播流量,丢弃从另一个根节点PE接收的所述组播流量。Each of the leaf nodes PE forwards the multicast traffic according to receiving instruction information; wherein, the receiving instruction information is used to instruct the forwarding to receive from one of the first root node PE and the second root node PE And discard the multicast traffic received from another root node PE.
  7. 一种EVPN组播装置,其特征在于,所述装置包括接收单元、处理单元及发送单元,其中,An EVPN multicast device, characterized in that the device includes a receiving unit, a processing unit, and a sending unit, wherein,
    所述接收单元,用于分别从第一根节点PE和第二根节点PE接收同一组播流量;The receiving unit is configured to receive the same multicast traffic from the first root node PE and the second root node PE respectively;
    所述处理单元,用于根据接收指示信息,通过所述发送单元转发所述接收单元接收的所述组播流量,所述接收指示信息用于指示转发从所述第一根节点PE、所述第二根节点PE中一个根节点PE接收的组播流量,丢弃从另一个根节点PE接收的组播流量。The processing unit is configured to forward the multicast traffic received by the receiving unit through the sending unit according to receiving instruction information, and the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE, the The multicast traffic received by one root node PE in the second root node PE discards the multicast traffic received from another root node PE.
  8. 根据权利要求7所述的装置,其特征在于,The device according to claim 7, wherein:
    所述接收单元还用于,接收所述第一根节点PE或所述第二根节点PE发送的类型指示信息,所述类型指示信息用于指示所述第一根节点PE为主根节点或者所述第二根节点PE为备选根节点;The receiving unit is further configured to receive type indication information sent by the first root node PE or the second root node PE, where the type indication information is used to indicate that the first root node PE is the main root node or The second root node PE is a candidate root node;
    所述装置还包括配置单元,用于在所述接收单元接收到所述类型指示信息时,配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第一根节点PE接收的所述组播流量,丢弃从所述第二根节点PE接收的所述组播流量。The device further includes a configuration unit, configured to configure the reception indication information when the receiving unit receives the type indication information, so that the reception indication information is used to instruct to forward the reception from the first root node PE And discard the multicast traffic received from the second root node PE.
  9. 根据权利要求7或8所述的装置,其特征在于,在所述接收指示信息用于指示转发从所述第一根节点PE接收的所述组播流量,丢弃从所述第二根节点PE接收的所述组播流量时,所述装置还包括:The apparatus according to claim 7 or 8, wherein the receiving instruction information is used to instruct to forward the multicast traffic received from the first root node PE, and discard the multicast traffic received from the second root node PE When the multicast traffic is received, the apparatus further includes:
    配置单元,用于在确定所述第一根节点PE断流时长大于或等于第一预设时长时,配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第二根节点PE接收的所述组播流量,丢弃从所述第一根节点PE接收的所述组播流量。The configuration unit is configured to configure the receiving instruction information when it is determined that the PE disconnection duration of the first root node is greater than or equal to the first preset duration, so that the receiving instruction information is used to instruct forwarding from the second root node The multicast traffic received by the node PE discards the multicast traffic received from the first root node PE.
  10. 根据权利要求9所述的装置,其特征在于,在所述接收指示信息用于指示从所述第二根节点PE接收的组播流量,丢弃从所述第一根节点PE接收的组播流量时,所述配置单元还用于:The apparatus according to claim 9, wherein the receiving instruction information is used to indicate that the multicast traffic received from the second root node PE is discarded the multicast traffic received from the first root node PE When, the configuration unit is also used to:
    在所述接收单元接收到所述第一根节点PE发送的组播流量时,确定第二预设时长,配置所述接收指示信息,使得所述接收指示信息用于指示转发从所述第一根节点PE接收的组播流量,丢弃从所述第二根节点PE接收的组播流量。When the receiving unit receives the multicast traffic sent by the first root node PE, it determines a second preset duration, and configures the receiving instruction information so that the receiving instruction information is used to instruct forwarding from the first root node PE. The multicast traffic received by the root node PE discards the multicast traffic received from the second root node PE.
  11. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, wherein:
    所述接收单元还用于:接收所述第一根节点PE或所述第二根节点PE发送的路由信息;所述路由信息包括所述类型指示信息;所述路由信息还包括下述信息中至少一项:隧道类型、隧道标识、发送所述路由信息的根节点PE的地址;The receiving unit is further configured to: receive routing information sent by the first root node PE or the second root node PE; the routing information includes the type indication information; the routing information further includes the following information At least one item: tunnel type, tunnel identifier, and address of the root node PE that sends the routing information;
    所述装置还包括建立单元,用于根据所述路由信息,分别建立与所述第一根节点PE、所述第二根节点PE间的组播标签转发协议MLDP隧道。The device further includes an establishment unit, configured to establish a multicast label forwarding protocol MLDP tunnel with the first root node PE and the second root node PE, respectively, according to the routing information.
PCT/CN2020/071291 2019-02-19 2020-01-10 Evpn multicast method, apparatus and system WO2020168854A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910128906.4 2019-02-19
CN201910128906.4A CN111585899A (en) 2019-02-19 2019-02-19 EVPN multicast method, device and system

Publications (1)

Publication Number Publication Date
WO2020168854A1 true WO2020168854A1 (en) 2020-08-27

Family

ID=72124349

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071291 WO2020168854A1 (en) 2019-02-19 2020-01-10 Evpn multicast method, apparatus and system

Country Status (2)

Country Link
CN (1) CN111585899A (en)
WO (1) WO2020168854A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992565A (en) * 2021-09-29 2022-01-28 新华三大数据技术有限公司 Multicast message processing method and device
CN114430393A (en) * 2020-10-16 2022-05-03 华为技术有限公司 Message processing method, device and storage medium
CN114765591A (en) * 2020-12-31 2022-07-19 大唐移动通信设备有限公司 Data transmission method, device and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4250675A4 (en) * 2020-12-21 2024-04-17 Huawei Technologies Co., Ltd. Load sharing method and system, root node device, and leaf node device
CN113542136B (en) * 2021-06-07 2022-11-18 新华三信息安全技术有限公司 Interface attribute adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135420A (en) * 2014-07-31 2014-11-05 华为技术有限公司 A method, apparatus and system for forwarding message
CN105790996A (en) * 2014-12-26 2016-07-20 北京华为朗新科技有限公司 Distributed gateway backup processing method and network equipment
US20170099180A1 (en) * 2015-10-01 2017-04-06 Juniper Networks, Inc. Fast convergence of evpn networks for multi homing topologies
CN108512739A (en) * 2017-02-27 2018-09-07 丛林网络公司 The multicast state between more host's routers in Ethernet Virtual Private Network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756072B1 (en) * 2005-12-30 2010-07-13 At&T Intellectual Property Ii, L.P. System and method for passively monitoring customer control messages in a multicast VPN
JP5678678B2 (en) * 2011-01-18 2015-03-04 富士通株式会社 Provider network and provider edge device
CN103326940B (en) * 2012-03-22 2017-04-26 华为技术有限公司 Method for forwarding message in network and edge device of operator
US10051022B2 (en) * 2016-03-30 2018-08-14 Juniper Networks, Inc. Hot root standby support for multicast
US10193812B2 (en) * 2017-03-31 2019-01-29 Juniper Networks, Inc. Multicast load balancing in multihoming EVPN networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135420A (en) * 2014-07-31 2014-11-05 华为技术有限公司 A method, apparatus and system for forwarding message
CN105790996A (en) * 2014-12-26 2016-07-20 北京华为朗新科技有限公司 Distributed gateway backup processing method and network equipment
US20170099180A1 (en) * 2015-10-01 2017-04-06 Juniper Networks, Inc. Fast convergence of evpn networks for multi homing topologies
CN108512739A (en) * 2017-02-27 2018-09-07 丛林网络公司 The multicast state between more host's routers in Ethernet Virtual Private Network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430393A (en) * 2020-10-16 2022-05-03 华为技术有限公司 Message processing method, device and storage medium
CN114430393B (en) * 2020-10-16 2022-12-06 华为技术有限公司 Message processing method, device and storage medium
CN114765591A (en) * 2020-12-31 2022-07-19 大唐移动通信设备有限公司 Data transmission method, device and storage medium
CN114765591B (en) * 2020-12-31 2023-07-18 大唐移动通信设备有限公司 Data transmission method, device and storage medium
CN113992565A (en) * 2021-09-29 2022-01-28 新华三大数据技术有限公司 Multicast message processing method and device
CN113992565B (en) * 2021-09-29 2023-11-07 新华三大数据技术有限公司 Multicast message processing method and device

Also Published As

Publication number Publication date
CN111585899A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
WO2020168854A1 (en) Evpn multicast method, apparatus and system
US8339973B1 (en) Multicast traceroute over MPLS/BGP IP multicast VPN
US10193812B2 (en) Multicast load balancing in multihoming EVPN networks
US9036466B2 (en) Methods and apparatus for improving network communication using ethernet switching protection
US9059902B2 (en) Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
US8705526B1 (en) Extending VPLS support for CE lag multi-homing
US9166807B2 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
US8537816B2 (en) Multicast VPN support for IP-VPN lite
EP3425858B1 (en) Signaling multicast information to a redundant multi-homing router for a layer 2 virtual private network
KR102342286B1 (en) DCN message processing method, network device, and network system
US11057317B2 (en) Synchronizing multicast router capability towards ethernet virtual private network (EVPN) multi-homed protocol independent multicast (PIM) device
WO2012075831A1 (en) Method and system for multicast protection
US9258267B1 (en) Highly scalable data center architecture with address resolution protocol (ARP)-free servers
US7990965B1 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
US20180367451A1 (en) Optimized protocol independent multicast assert mechanism
WO2013113218A1 (en) Intersecting ring protection method, device and system
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
WO2022253087A1 (en) Data transmission method, node, network manager, and system
US8675658B2 (en) Using multiple IGMP queriers in a layer 2 network
WO2020147683A1 (en) Method for creating connectivity detection session, and network device and system
US20230155921A1 (en) Multicast packet sending method, apparatus, and system
WO2009097796A1 (en) Multicast method of provider backbone transport loop and multicast loop network and node device
WO2023035983A1 (en) Method and device for electing designated forwarder (df)
WO2022121638A1 (en) Packet processing method and device

Legal Events

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

Ref document number: 20758868

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20758868

Country of ref document: EP

Kind code of ref document: A1