WO2014079246A1 - Multicast flow forwarding implementation method and routing bridge (rb) - Google Patents

Multicast flow forwarding implementation method and routing bridge (rb) Download PDF

Info

Publication number
WO2014079246A1
WO2014079246A1 PCT/CN2013/082327 CN2013082327W WO2014079246A1 WO 2014079246 A1 WO2014079246 A1 WO 2014079246A1 CN 2013082327 W CN2013082327 W CN 2013082327W WO 2014079246 A1 WO2014079246 A1 WO 2014079246A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast tree
multicast
information
forwarding device
allocation information
Prior art date
Application number
PCT/CN2013/082327
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 WO2014079246A1 publication Critical patent/WO2014079246A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge

Definitions

  • the present invention relates to network communication technologies, and more particularly to a multicast stream forwarding implementation method and a routing bridge (RB). Background technique
  • TRILL is the abbreviation of Transparent Interconnection of Lots of Links, which is used to solve the problem of multipath (or called Layer 2 Multiple Path) in the data center large Layer 2 network.
  • L2MP is implemented by introducing IS-IS (Intermediate System to Intermediate System) routing protocol into the Layer 2 network.
  • IS-IS Intermediate System to Intermediate System
  • RBridge also referred to as "RB”
  • Nickname alias
  • the TRILL network At the entrance of the TRILL network, it is responsible for encapsulating the original data frame of the end device into the TRILL format (that is, adding the TRILL header and the outer frame header in front of the original data frame, and the TRILL header mainly includes the TRILL network entry and the egress routing bridge.
  • the routing bridge of the Nickname and hop counts and injected into the TRILL network is called Ingress; at the exit of the TRILL network, it is responsible for decapsulating the TRILL data frame into the frame, which Ingress is imported into the TRILL network and forming the MAC information table ⁇ D-MAC , Ingress Nickname , ...... ⁇ . Because the Ingress and Egress routing bridges are at the edge of the TRILL network, they are also known as Edge RBridges.
  • the designated forwarding device (AF) of the VLAN On the shared link, the designated forwarding device (AF) of the VLAN.
  • AF forwarding device
  • the Ingress- Nickname changes in some MAC entries on the remote Egress; the end-system multi-homing through the point-to-point link (Multi -homing, than ⁇ port: Link Aggregation Group (LAG))
  • LAG Link Aggregation Group
  • the TRILL Working Group proposed the concept of a Routing Bridge Group (RBG) or Virtual RBridge (RBv).
  • RBG Routing Bridge Group
  • RBv Virtual RBridge
  • the group members share a Nickname, called the group Nickname.
  • the RBs in the RBv solve the above flip-flop problem by encapsulating the data frame with the group Nickname when importing the data frame into the TRILL network.
  • the TRILL protocol specifies that the RBridge must perform RPF (Reverse Path Forwarding) check when receiving the multicast frame.
  • the RPF check requires that any one of the routing bridges in any one of the multicast trees can receive the multicast frame sent by the other RBridge along the tree from one interface. The frame must be discarded if the check fails.
  • CMT Coordinated Multi-Destination Tree, calibrated multicast tree
  • the CMT specifies that the RBs in any RBv can only export the traffic distributed along the multicast tree allocated to it to the TRILL network, avoiding the end system.
  • the risk of receiving multiple multicast packets As shown in Figure 1, assuming five multicast trees, RB1, RB2, and RB3 advertise ⁇ RBI, RBv, Tl, T4 ⁇ , ⁇ RB2, RBv, ⁇ 2, ⁇ 5 ⁇ and ⁇ RBI, RBv, T3 ⁇ , respectively. 4.
  • the multicast tree is redistributed between RBs in the RBv. During this period, the receiver of the multicast stream cannot receive the expected data stream. In addition, when the multicast tree is redistributed. After that, the remote RB (such as RB4 in Figure 1) may re-select another multicast tree, which will result in longer service interruption.
  • the Customer Edge (CE) devices CE1 and CE2 can receive the traffic;
  • RB1-CE1 fails in RB link under LAG1, if another multicast tree is reselected on RB4, assuming T2, then according to the current CMT document, RB2
  • the multicast stream will be exported.
  • the receiver on LAG2 also receives traffic from another tree. That is to say, when there are multiple LAGs in one RBv, if only one LAG RB link fails, traffic to other LAGs will also be affected.
  • the technical problem to be solved by the present invention is to provide a multicast stream forwarding implementation method and a routing bridge (RB) to solve the problem that the multicast stream forwarding is greatly affected when the existing fault occurs.
  • RB routing bridge
  • the present invention provides a method for implementing multicast stream forwarding, and each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocated information of the stored multicast tree, where the multicast The multicast tree in the allocation information of the tree is allocated in the uplink direction and the downlink direction, respectively.
  • the present invention also provides a routing bridge (RB), the routing bridge includes:
  • the allocation information storage unit is configured to: store allocation information of the multicast tree, where the multicast tree is allocated in an uplink direction and a downlink direction, respectively;
  • the multicast stream forwarding unit is configured to: forward the uplink and/or downlink multicast streams according to the allocation information of the multicast tree.
  • the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the uplink direction group is not affected. Broadcast forwarding, which in turn enables high-reliability access of the end system to the TRILL network.
  • Figure 1 is a schematic diagram of the allocation of a CMT document to a multicast tree
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a method for implementing multicast stream forwarding according to the present invention
  • Embodiment 3 is a schematic flowchart of Embodiment 2 of a method for implementing multicast stream forwarding according to the present invention
  • Embodiment 4 is a schematic flowchart of Embodiment 3 of a method for implementing multicast stream forwarding according to the present invention
  • FIG. 5 is a schematic diagram of a process of multicast stream forwarding in Embodiment 3 of a method for implementing multicast stream forwarding according to the present invention
  • 6 is a schematic flowchart of Embodiment 4 of a method for implementing multicast stream forwarding according to the present invention
  • FIG. 7 and FIG. 8 are schematic diagrams of allocation of a multicast tree used in Application Examples 1 to 4 of the present invention
  • FIG-11 are block diagrams showing the structure of an embodiment of a routing bridge (RB) according to the present invention.
  • Preferred embodiment of the invention
  • each routing bridge forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and allocates the multicast tree.
  • the multicast tree in the information is allocated in the uplink direction and the downlink direction respectively.
  • the method includes: Step 201: The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv). The multicast tree in the allocation information of the multicast tree is allocated in an uplink direction and a downlink direction, respectively;
  • the allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm.
  • the allocation may be performed based on a load balancing policy.
  • the present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv).
  • the multicast tree can be allocated according to the existing CMT mechanism.
  • mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
  • a routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree.
  • Step 202 Each routing bridge (RB) performs uplink and/or downlink according to allocation information of the multicast tree. Multicast stream forwarding.
  • the process of performing uplink and/or downlink multicast stream forwarding by each RB according to the allocation information of the multicast tree includes:
  • the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made.
  • RBs routing bridges
  • RBv routing bridge group
  • each routing bridge forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and allocates the multicast tree.
  • the multicast tree in the information is allocated in the uplink direction and the downlink direction respectively.
  • the method includes:
  • Step 301 The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv), where the multicast tree in the allocation information of the multicast tree is respectively in the uplink direction and the downlink direction.
  • the multicast tree may be balanced according to the number of multicast trees corresponding to the multicast flows that each RB is responsible for forwarding. .
  • the present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv).
  • mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
  • a routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree.
  • Step 302 Each routing bridge (RB) performs uplink and/or downlink multicast forwarding according to the allocation information of the multicast tree.
  • the process of forwarding the downlink multicast stream by using the multicast tree allocated by the RB in the downlink direction includes: receiving a multicast stream in a downlink direction along the multicast tree;
  • the multicast device Determining, according to the allocation information, whether the multicast device is a forwarding device in a downlink direction of a link aggregation group (LAG) or a local local area network (LAN);
  • LAG link aggregation group
  • LAN local local area network
  • the multicast stream is forwarded, otherwise the multicast stream is discarded.
  • the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made. When a path fails, it does not affect the forwarding of the upstream multicast stream.
  • the multicast tree is allocated in the downlink direction in each link aggregation group (LAG) or local area network (LAN), which can make one of the LAGs or LANs. When a link fails, it does not affect the multicast forwarding of other LAGs or LANs.
  • LAG link aggregation group
  • LAN local area network
  • the third embodiment of the present invention focuses on forwarding the multicast stream in the downlink direction, and each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, where the multicast tree is allocated information.
  • the multicast tree is allocated in the uplink direction and the downlink direction.
  • the multicast stream forwarding implementation method includes:
  • Step 401 The routing bridge (RB) acquires and stores allocation information of the multicast tree of the routing bridge group (RBv) in the downlink direction, where the multicast tree is in each link aggregation group (LAG) or local area network.
  • LAG link aggregation group
  • LAN local area network
  • a routing bridge (RB) allocated by a multicast tree in the downlink direction includes an active forwarding device and a standby forwarding device;
  • the allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm.
  • the allocation may be performed based on a load balancing policy.
  • the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv) is not limited.
  • the mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
  • a routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree.
  • one or all of the multicast trees in the downlink direction are assigned one primary forwarding device and one standby forwarding device.
  • the primary forwarding device and its corresponding link are normal, when the primary forwarding device implements the broadcast forwarding of the corresponding multicast tree, the multicast forwarding function of the standby forwarding device is enabled.
  • Step 402 Each routing bridge (RB) forwards the downlink multicast stream according to the allocation information of the multicast tree in the downlink direction.
  • the process of forwarding the downlink multicast stream by each routing bridge (RB) according to the multicast tree allocated in the downlink direction includes:
  • Step 501 Receive a multicast stream in a downlink direction of the multicast tree.
  • Step 502 Determine, according to the allocation information, whether it is an active forwarding device in a downlink direction of the multicast tree.
  • the routing bridge can establish a flag bit for each multicast tree allocated to it to indicate whether the current routing bridge is the primary forwarding device or the standby forwarding device of the multicast tree.
  • Step 503 If yes, forward the multicast stream, otherwise discard the multicast stream.
  • the multicast tree may be allocated in the uplink direction and the downlink direction respectively between the routing bridges (RBvs) of the routing bridge group (RBv), so that When the downlink routing bridge or its corresponding link fails, the uplink multicast stream is not affected.
  • the multicast tree is in the downlink aggregation group (LAG) or local area network (LAN). Allocation, when one of the LAG or LAN links fails, does not affect the multicast stream forwarding of other LAGs or LANs; the routing bridge (RB) allocated by the same multicast tree in the downlink direction includes a primary forwarding.
  • the device and an alternate forwarding device may be configured to upgrade the backup forwarding device of the affected multicast tree to the primary forwarding device of the multicast tree to implement multicast forwarding when the primary forwarding device or its corresponding link fails. Send, thus implementing the routing bridge group (RBv) Fast protection.
  • RBv routing bridge group
  • a multicast tree explicitly allocates an alternate forwarding device and a routing bridge in the downlink direction.
  • the fault-related node When (RB) or its corresponding link fails, the fault-related node sends fault information to all other routing bridges (RBs) in the RBv; the alternate forwarding device of the affected multicast tree is upgraded to the multicast tree.
  • the primary forwarding device When (RB) or its corresponding link fails, the fault-related node sends fault information to all other routing bridges (RBs) in the RBv; the alternate forwarding device of the affected multicast tree is upgraded to the multicast tree.
  • the primary forwarding device When (RB) or its corresponding link fails, the fault-related node sends fault information to all other routing bridges (RBs) in the RBv; the alternate forwarding device of the affected multicast tree is upgraded to the multicast tree.
  • the primary forwarding device When (RB) or its corresponding link fails, the fault-related node sends fault information to all other routing bridges (RBs) in the RBv; the alternate forwarding device of the affected multicast tree is upgraded to the multicast tree.
  • the CE is a fault-related node; if the RB link is faulty, and the RB and the CE corresponding to the link sense the fault, the fault-related point may be RB and/or CE.
  • the content of the fault information is different for different multicast tree allocation information generation methods, such as:
  • each RB is configured with only the allocation information of its own (ie, the current RB), that is, the allocation information acquired and stored by each routing bridge (RB) includes only the allocation information of its own multicast tree.
  • the fault information needs to carry the affected multicast tree information. If it is allocated in the LAG or the LAN, it also needs to carry the relevant LAG or LAN information, so that the standby forwarding device that receives the multicast fault information can determine that it needs to turn.
  • the primary forwarding device of the affected multicast tree if the configuration mode is adopted, and each RB is configured not only with its own allocation information but also with other RB allocation information (configuration synchronization), or each RB uses the same allocation.
  • each RB not only knows its own allocation information, but also knows the allocation information of other RBs, or each RB only configures its own allocation information, and realizes synchronization (interactive synchronization) of allocation information through interaction.
  • the allocation information of each RB is synchronized, that is, the points of the multicast tree acquired and stored by each routing bridge (RB) in the RBv.
  • the information includes the allocation information of the multicast tree of itself and other RBs, and the multicast fault information does not carry the affected multicast tree information and/or LAG or LAN information, and the alternate forwarding device of the affected multicast tree also It can be smoothly transferred to the primary forwarding device to perform the corresponding multicast stream forwarding.
  • the above fault information is used to notify all other routing bridges (RBs) in the RBv by means of multicast, and alternatively, the allocation information of the multicast trees acquired and stored by the routing bridges (RBs) of the same RBv includes itself and
  • the allocation information of the multicast trees of the other RBs may be specifically synchronized by the foregoing interaction synchronization or configuration synchronization or algorithm; when the routing bridge (RB) or its corresponding link fails, the fault-related nodes are allocated according to the multicast tree.
  • the information is sent to the alternate forwarding device of the affected multicast tree. Information;
  • the alternate forwarding device that receives the fault information is upgraded to the primary forwarding device of the multicast tree.
  • Each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively.
  • the embodiment of the present invention focuses on the forwarding of the multicast stream in the downlink direction.
  • the method for implementing the multicast stream forwarding includes:
  • Step 601 The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv) in the downlink direction, and the multicast tree is allocated in the downlink direction in each link aggregation group (LAG) or A distribution routing bridge (RB) in a local area network (LAN), and a multicast tree in the downlink direction includes an active forwarding device and a plurality of alternate forwarding devices;
  • the allocation information of the multicast tree acquired and stored by each routing bridge (RB) in the RBv includes allocation information of the multicast tree of itself and other RBs.
  • the allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm.
  • the allocation may be performed based on a load balancing policy.
  • the present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv).
  • mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
  • a multicast tree explicitly or implicitly allocates a plurality of alternate forwarding devices in the downlink direction.
  • Step 602 Each routing bridge (RB) forwards the downlink multicast stream according to the allocation information of the multicast tree in the downlink direction.
  • the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made.
  • the multicast tree is allocated in each link aggregation group (LAG) or local area network (LAN) in the downlink direction, which may make one of them.
  • LAG link aggregation group
  • LAN local area network
  • the routing bridge (RB) allocated by the multicast tree in the downlink direction includes one active forwarding device and several standby forwarding devices. When the primary forwarding device or its corresponding link fails, the backup forwarding device of one of the affected multicast trees is upgraded to the primary forwarding device of the multicast tree to implement multicast forwarding, thereby implementing Fast protection of the routing bridge group (RBv).
  • the fault-related node when the routing bridge (RB) or its corresponding link fails, the fault-related node sends fault information to an alternate forwarding device of the affected multicast tree in the RBv; and receives the fault information.
  • the forwarding device is upgraded to the primary forwarding device of the affected multicast tree.
  • a plurality of alternate forwarding devices are allocated in a multicast tree. Therefore, the above fault information is unicast to notify one of the alternate forwarding devices to be upgraded to the primary forwarding device of the multicast tree.
  • the fault-related node determines to upgrade the standby forwarding device of the primary forwarding device based on the load balancing policy according to the allocation information of the multicast tree.
  • the active forwarding device reverts to the standby forwarding device.
  • the multicast tree is allocated between the RBs of the RBv according to the mechanism of the existing CMT document. It is assumed that the result of the RB1 allocation is ⁇ Tl, T4 ⁇ , and the result of the RB2 allocation is ⁇ T2, T5 ⁇ , and the result of the RB3 allocation is ⁇ T3 ⁇ ;
  • the multicast tree is allocated within the LAG of the RBv. If all RBs of the RBv are also RBs of a LAG of the RBv, the same allocation result as the uplink allocation may be used for the LAG, and the primary forwarding device of the RB in the downlink direction of the LAG in each LAG may also be used.
  • Different multicast tree forwarding roles are allocated to the LAGs in the downlink direction.
  • the allocation result is the same for the multicast tree in the uplink direction and the multicast tree in the downlink direction.
  • the processing on the RB follows the existing CMT document; and for the case where the allocation result is different, whether the RB needs to forward the received downlink traffic to the downlink needs to be changed, that is, according to the multicast tree allocated in each LAG.
  • the forwarding role in the downstream direction determines whether to forward. For details, see the last two application examples in this document.
  • Each RB advertises the allocated multicast tree information to other RBs to implement information synchronization between the RBs in the RBv. This can be synchronized via ESADK End Station Address Distribution Information, protocol or tunnel technology, but not limited to ESADI or Channel.
  • the RB or RB link failure notification is performed in the multicast mode. Because the failure is advertised through multicast, multiple RBs will receive the announcement. In order to prevent multiple RBs from being a forwarding device of a multicast tree at the same time, only one RB can be allocated as an alternate forwarder of a multicast tree when multicast tree allocation is performed in the downlink direction.
  • the primary and the alternate forwarding devices of the multicast trees are explicitly specified on each RB, and the allocation information of the uplink and downlink multicast trees as shown in FIG. 3 is in the LAG1.
  • RB1 is the primary forwarding device of T1 and T4, and is the alternate forwarding device of T3.
  • RB1 is the primary forwarding device of T2 and T3, and is the standby forwarding device of T1.
  • the primary and backup forwarding devices of a multicast tree need to be explicitly specified.
  • the primary and backup forwarding devices of a multicast tree need to be explicitly specified.
  • For each multicast tree only one RB in the LAG of the RB v is its primary forwarding device and standby. Forward the device.
  • the RB After receiving the multicast advertisement message, the RB can determine whether the received multicast stream needs to be forwarded according to the locally saved information and the fault information carried in the advertisement message.
  • an RB When an RB receives the multicast stream in the downlink direction of the multicast tree, it determines whether the RB is the primary forwarding device in the downlink direction of the LAG, and if so, from the corresponding LAG interface. Export the traffic; otherwise, discard the traffic;
  • the node related to the fault (specifically, if it is an RB failure, the announcement message is sent by the CE; if it is the RB link failure) If the RB and the CE corresponding to the link are aware of the fault, then the RB or the CE or both can advertise.
  • the fault information is in the RBv through the multicast message (which can be a control plane message or a data plane OAM message, etc.). Flooding, the message indicates which RB is faulty on the interface under which LAG. In other words, the stream on the multicast tree in which the RB is the primary forwarding device cannot be forwarded to the CE through the interface of the RB in the LAG.
  • the other RBs After receiving the advertisement message, the other RBs determine, according to the locally stored multicast tree allocation information and the received advertisement message, whether it is the backup forwarding device of the multicast tree specified in the message under the LAG.
  • the RB is upgraded to the primary forwarding device of the multicast tree in the LAG, and the multicast stream is forwarded through the corresponding LAG interface; otherwise, the received multicast stream is discarded.
  • the multicast stream affected by the fault is the forwarding of T1 and T4 on the LAG1 interface.
  • RB2 and RB3 receive the multicast message and learn the fault
  • RB2 judges that it is the alternate forwarding device of T1 and T4 of RB1 under LAG1
  • RB2 upgrades itself to the main T1 and T4 under LAG1.
  • RB3 determines that it is not the alternate forwarding device of the primary multicast tree T1 and T4 allocated by RB1 under LAG1, and will not receive it.
  • the incoming stream is forwarded through the interface of LAG1.
  • the downlink forwarding of each RB on the interface to which LAG2 belongs is not affected.
  • Specify which multicast tree's primary forwarding device is only on each RB In the scenario of RB or RB link failure notification in unicast mode. In this case, only one RB will receive the fault advertised by the faulty RB, and multiple RBs will not appear as the primary forwarding device of a multicast tree.
  • the application instance can display the settings or implicitly default the rest. Or all RBs are alternate forwarding devices of a multicast tree, so that no matter which RB fails, the fast protection in the RBv can be quickly realized.
  • the allocation information of the allocated uplink and downlink multicast trees, in LAG1 assigns the binding relationship of ⁇ LAGl, Tl, T4 ⁇ to RB1, then it can be known that RB1 is T1 and T4 is in LAG1.
  • the internal forwarding device can be used as the backup forwarding device of T2, ⁇ 3, and ⁇ 5; in addition, ⁇ LAG1, ⁇ 2, ⁇ 5 ⁇ is also allocated for RB2, then it can be known that RB2 is the primary forwarding device of ⁇ 2 and ⁇ 5 in LAG1. It can be used as an alternate forwarding device for T1, ⁇ 3, and ⁇ 4.
  • RB3 is the primary forwarding device of ⁇ 3 in LAG1, and can be used as an alternate forwarding device for T1, ⁇ 2, ⁇ 4, and ⁇ 5, which can be seen that ⁇ 3 is under LAG1.
  • RB1 or RB2 needs to be notified by unicast failure notification mode, and one of them is forwarded by protection.
  • the fault-related node (such as the RB of the faulty link) automatically selects one of the devices from the remaining RBs of the RBv or randomly based on the load balancing principle.
  • the forwarding device of the multicast tree affected by the fault and unicasts the fault information.
  • the device that receives the unicast failure information automatically upgrades itself to the primary forwarding device of the multicast tree affected by the failure. It is not necessary to use Application Instance 2 to determine whether forwarding is required based on locally saved information and received notification messages.
  • an RB When an RB receives the multicast stream in the downlink direction of the multicast tree, it is determined whether the RB is the primary forwarding device in the downlink direction of the LAG, and if yes, the traffic is derived from the corresponding LAG interface. Otherwise, discard the traffic;
  • the barrier-related node For each RB, when the RB or RB link of a LAG of the RB fails, The barrier-related node sends an advertisement message to one of the remaining RBs in a unicast manner. When the RB receives the message, it knows that it needs to be the primary forwarding device of the multicast tree affected by the fault.
  • RB1 or CE1 advertises the fault recovery information to other RBs. This can be ESADI to advertise or OAM messages.
  • RB2 receives the above-mentioned notification message, and combines the locally saved information to determine that RB1 is the primary forwarding device of T1 and T4 in LAG1, then RB2 is rolled back to the alternate forwarding device of T1 and T4 in LAG1, and the information is Announced to RB1.
  • the RBI receives the RB2 reply and assigns RB1 as the primary forwarding device for T1 and T4 in LAG1.
  • the present invention further provides a routing bridge (RB).
  • the routing bridge includes:
  • An allocation information storage unit configured to store allocation information of a multicast tree, where the multicast tree is separately allocated in an uplink direction and a downlink direction;
  • the multicast stream forwarding unit is configured to forward the uplink and/or downlink multicast stream to the multicast tree.
  • the multicast stream forwarding unit includes:
  • a multicast stream receiving module configured to receive a multicast stream in an uplink or a downlink direction of the multicast tree; and a multicast stream determining module, configured to determine, according to the allocation information, whether the forwarding device is a forwarding device of the multicast tree in a corresponding direction;
  • the multicast stream forwarding module is configured to forward the multicast stream when it is determined to be a forwarding device of the multicast tree, or discard the multicast stream.
  • the multicast tree is allocated in a downlink direction in each link aggregation group (LAG) or a local area network (LAN).
  • LAG link aggregation group
  • LAN local area network
  • the RB allocated by the multicast tree in the downlink direction includes one primary forwarding device and one or several standby forwarding devices, and the multicast flow determining module determines the primary forwarding device of the multicast tree in the downlink direction.
  • the multicast stream forwarding module determines that it is the primary forwarding device of the multicast tree, the multicast stream forwarding module forwards the multicast stream. Otherwise, the multicast stream is discarded.
  • the routing bridge (RB) further includes:
  • An information receiving unit configured to receive fault information when the routing bridge (RB) or its corresponding link fails
  • the status update unit updates the active forwarding device of the multicast tree to the backup forwarding device that receives the fault information and the routing bridge (RB) is the affected multicast tree.
  • the RB allocated in the downlink direction of the multicast tree includes an active forwarding device and a standby forwarding device, and the fault information is sent by the fault-related node in a multicast manner.
  • the allocation information stored by the allocation information storage unit includes only the allocation information of the multicast tree of the own, and one multicast tree explicitly allocates an alternate forwarding device in the downlink direction, and the fault information is multicast by the node related to the fault.
  • the multicast fault information includes the affected multicast tree information or the LAG or LAN information of the affected multicast tree; or
  • the allocation information of the multicast tree stored by the allocation information storage unit includes allocation information of the multicast tree of itself and other RBs, and one multicast tree explicitly allocates one or several standby forwarding devices in the downlink direction, and the fault information The fault-related node sends the unicast to the alternate forwarding device.
  • a multicast tree explicitly or implicitly allocates a plurality of standby forwarding devices in the downlink direction
  • the allocation information of the multicast tree stored by the allocation information storage unit includes allocation information of the multicast tree of itself and other RBs.
  • the fault information is sent in a unicast manner, and the RB that receives the fault information is one of the alternate forwarding devices of the affected multicast tree.
  • the routing bridge further includes a fault information sending unit, configured to The unicast object sent by the fault information is determined according to the allocation information of the multicast tree randomly or based on a load balancing policy.
  • the allocation information storage unit uses the same multicast tree allocation algorithm or configuration to obtain the allocation information of the multicast tree of itself and other RBs, or configures the allocation information of the multicast tree of its own, and acquires other RBs interactively. Multicast tree information.
  • the information receiving unit is further configured to: when the routing bridge is the current primary forwarding device, receive failure recovery information of the original primary forwarding device or its corresponding link;
  • the status update unit updates to the alternate forwarding device of the multicast tree after receiving the failure recovery information.
  • the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the multicast forwarding in the uplink direction is not affected.
  • the remote RB does not need to detect the fault, and the RB in the RBv quickly protects the multicast data in the downlink direction to ensure the protection.
  • the end system normally receives traffic.
  • the invention provides a scenario in which only one LAG is deployed in one RBv, and a scenario in which multiple LAGs are deployed in one RBv, that is, the forwarding allocation of the multicast tree in the downlink direction on the RBv is at the granularity of the LAG.
  • the unit/module described in the embodiment of the present invention is only an example of dividing according to its function. It can be understood that one or more other functional divisions can be given by those skilled in the art in the case of implementing the same function. In the specific application, any one or more of the functional modules may be implemented by using one functional entity device or unit, and the above transformation manner is undeniably within the protection scope of the present application.
  • the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the uplink direction group is not affected. Broadcast forwarding, which in turn enables high-reliability access of the end system to the TRILL network.

Abstract

A multicast flow forwarding implementation method and routing bridge (RB). Each routing bridge (RB) forwarding a received uplink or downlink multicast flow according to allocation information of multicast trees, wherein multicast trees in the allocation information of the multicast trees are respectively allocated in an uplink direction and a downlink direction. When the downlink direction fails, multicast flow forwarding in the uplink direction will not be influenced.

Description

组播流转发实现方法和路由网桥(RB )  Multicast stream forwarding implementation method and routing bridge (RB)
技术领域 Technical field
本发明涉及网络通信技术, 更具体的说, 是一种组播流转发实现方法和 路由网桥(RB ) 。 背景技术  The present invention relates to network communication technologies, and more particularly to a multicast stream forwarding implementation method and a routing bridge (RB). Background technique
TRILL是多链接透明互连 ( Transparent Interconnection of Lots of Links ) 的英文缩写,用于解决数据中心大二层网络中的多路径(或称为 L2MP( Layer 2 Multiple Path ) ) 问题。 通过将 IS-IS(Intermediate System to Intermediate System, 中间系统对中间系统)路由协议引入二层网络实现了 L2MP。 在 TRILL网络中, 运行 TRILL协议的设备称为 RBridge (路由网桥, 下文中也 称为 "RB" ) , 并由 Nickname (别名)唯一标识一台 RBridge。 在 TRILL 网络的入口, 负责将端设备( End Station ) 的原始数据帧封装成 TRILL格式 (即在原始数据帧前面添加 TRILL 头和外部帧头, TRILL 头中主要包括 TRILL网络入口和出口路由网桥的 Nickname和跳数 )并注入 TRILL网络的 路由网桥称为 Ingress; 在 TRILL网络的出口, 负责将 TRILL数据帧解封为 述帧是哪个 Ingress 导入 TRILL 网络的并形成 MAC 信息表 {D— MAC , Ingress Nickname , …… }。 因为 Ingress和 Egress路由网桥在 TRILL网络中 处在边缘位置, 因此又被称为边缘路由网桥(Edge RBridge ) 。  TRILL is the abbreviation of Transparent Interconnection of Lots of Links, which is used to solve the problem of multipath (or called Layer 2 Multiple Path) in the data center large Layer 2 network. L2MP is implemented by introducing IS-IS (Intermediate System to Intermediate System) routing protocol into the Layer 2 network. In a TRILL network, a device running the TRILL protocol is called RBridge (also referred to as "RB"), and a Nickname (alias) uniquely identifies an RBridge. At the entrance of the TRILL network, it is responsible for encapsulating the original data frame of the end device into the TRILL format (that is, adding the TRILL header and the outer frame header in front of the original data frame, and the TRILL header mainly includes the TRILL network entry and the egress routing bridge. The routing bridge of the Nickname and hop counts and injected into the TRILL network is called Ingress; at the exit of the TRILL network, it is responsible for decapsulating the TRILL data frame into the frame, which Ingress is imported into the TRILL network and forming the MAC information table {D-MAC , Ingress Nickname , ...... }. Because the Ingress and Egress routing bridges are at the edge of the TRILL network, they are also known as Edge RBridges.
为了避免环路,在 TRILL网络的边界,在任何一个 VLAN ( Virtual Local Area Network,虚拟局域网)内只能由一个 RBridge为一个端系统提供服务, 这个 RBridge称为这个端系统的服务提供者, 比如共享链路上, VLAN的指 定转发设备( Appointed Forwarder, AF ) 。 这虽然能有效的避免环路, 但是 也引起了一些问题, 比如: AF切换后, 远端 Egress上某些 MAC表项中的 发生 Ingress— Nickname变化;在端系统通过点对点链路多归属( Multi-homing, 比 ^口: 通过链路聚合组(Link Aggregation Group, LAG ) ) J多个 RBridge 上时, RB 链路上的负荷分担会引起远端 RBridge 上某些 MAC 表项的 Ingress— Nickname频繁波动(称为 flip-flop ) , 从而引起回来的流量的乱序与 丟报, 导致会话中断。 In order to avoid loops, at the border of the TRILL network, only one RBridge can serve one end system in any VLAN (Virtual Local Area Network). This RBridge is called the service provider of this end system, for example. On the shared link, the designated forwarding device (AF) of the VLAN. Although this can effectively avoid the loop, it also causes some problems. For example, after the AF switch, the Ingress- Nickname changes in some MAC entries on the remote Egress; the end-system multi-homing through the point-to-point link (Multi -homing, than ^ port: Link Aggregation Group (LAG)) When multiple RBridges are used, load sharing on the RB link causes some MAC entries on the remote RBridge. Ingress—The Nickname fluctuates frequently (called a flip-flop), causing out-of-order traffic and loss of traffic, causing session interruptions.
为此, TRILL工作组提出了路由网桥组( RBridge Group, RBG )或称为 虚拟路由网桥(Virtual RBridge, RBv ) 的概念。 在一个 RBv内, 组员共享 一个 Nickname, 称为组 Nickname, RBv内的 RB在将数据帧导入 TRILL网 络时, 用组 Nickname封装数据帧, 解决了上述 flip-flop问题。  To this end, the TRILL Working Group proposed the concept of a Routing Bridge Group (RBG) or Virtual RBridge (RBv). In an RBv, the group members share a Nickname, called the group Nickname. The RBs in the RBv solve the above flip-flop problem by encapsulating the data frame with the group Nickname when importing the data frame into the TRILL network.
为了避免组播报文转发中的临时环路, TRILL协议规定 RBridge收到组 播帧时, 必须做 RPF ( Reverse Path Forwarding, 反向路径转发)检查。 RPF 检查要求在任何一棵组播树上任何一台路由网桥, 仅能从一个接口收到另一 个 RBridge 沿着该树发送的组播帧, 检查失败必须丟弃该帧。 工作组文稿 draft-ietf-trill-cmt-01.txt (简称 CMT, Coordinated Multi-Destination Tree, 标 定组播树 )通过在 RBv内的成员 RB之间分配可用组播树, 重点关注并解决 了多个 RBv内的成员 RB导入(上行方向 )组播数据帧时存在的 RPF问题。 对于经过 RBv内的成员 RB离开(下行方向)TRILL网络的组播数据帧, CMT 规定任何 RBv内的 RB只能将沿着分配给它的组播树分发的流量导出 TRILL 网络, 避免了端系统收到多份组播报文的风险。 如图 1所示, 假设有 5棵组 播树, RB1、 RB2和 RB3分别通告了 {RBI , RBv, Tl , T4}、 {RB2, RBv, Τ2, Τ5}和 {RBI , RBv, T3} , 4叚设 RB4沿着 Tl (如图 1中粗实线所示的组 播树)发出组播流量, 那么在该 RBv中, 只能由 RB1将组播流导出 TRILL 网络, RB2和 RB3丟弃该组播流。 但是, 这种机制在 RB或者接入链路故障 时, 会出现以下问题。  To avoid the temporary loop in multicast packet forwarding, the TRILL protocol specifies that the RBridge must perform RPF (Reverse Path Forwarding) check when receiving the multicast frame. The RPF check requires that any one of the routing bridges in any one of the multicast trees can receive the multicast frame sent by the other RBridge along the tree from one interface. The frame must be discarded if the check fails. The working group document draft-ietf-trill-cmt-01.txt (referred to as CMT, Coordinated Multi-Destination Tree, calibrated multicast tree) focuses on and solves many problems by allocating available multicast trees among member RBs in RBv. The RPF problem that exists when a member RB in an RBv imports (upstream) a multicast data frame. For a multicast data frame that leaves the (downlink) TRILL network through the member RBs in the RBv, the CMT specifies that the RBs in any RBv can only export the traffic distributed along the multicast tree allocated to it to the TRILL network, avoiding the end system. The risk of receiving multiple multicast packets. As shown in Figure 1, assuming five multicast trees, RB1, RB2, and RB3 advertise {RBI, RBv, Tl, T4}, {RB2, RBv, Τ2, Τ5} and {RBI, RBv, T3}, respectively. 4. Let RB4 send multicast traffic along T1 (the multicast tree shown by the thick solid line in Figure 1). In this RBv, the multicast stream can only be exported to the TRILL network by RB1, and RB2 and RB3 are discarded. The multicast stream. However, this mechanism has the following problems when the RB or access link fails.
首先,当某个 RB故障时,会导致组播树在 RBv内的 RB之间重新分配, 在这期间, 组播流接收者无法收到期望的数据流; 另外, 当组播树重新分配 完成后, 远端 RB (如图 1 中的 RB4 )可能会重新选择另外一个组播树, 这 样导致业务中断的时间较长。  First, when an RB fails, the multicast tree is redistributed between RBs in the RBv. During this period, the receiver of the multicast stream cannot receive the expected data stream. In addition, when the multicast tree is redistributed. After that, the remote RB (such as RB4 in Figure 1) may re-select another multicast tree, which will result in longer service interruption.
其次, 在对于沿着 T1下发的流量, RB1下的 LAG1的 RB链路都正常 时(即无故障时) , 用户边缘( Customer Edge, CE )设备 CE1和 CE2能收 到该流量; 但是当 RB1-CE1在 LAG1下的 RB链路故障时, 如果 RB4上重 新选择另外一颗组播树, 假设是 T2的话, 那么按照现行的 CMT文稿, RB2 会将组播流导出。 这样带来的一个问题就是, 因为 LAG1的 RB链路故障, 而导致 LAG2上的接收者也要从另外一颗树上去接收流量。 也就是说, 当一 个 RBv下有多个 LAG时, 若只有其中一个 LAG的 RB链路发生故障, 也会 导致到其他 LAG的流量也受到影响。 Second, when the RB link of LAG1 under RB1 is normal for the traffic sent along T1 (that is, when there is no fault), the Customer Edge (CE) devices CE1 and CE2 can receive the traffic; When RB1-CE1 fails in RB link under LAG1, if another multicast tree is reselected on RB4, assuming T2, then according to the current CMT document, RB2 The multicast stream will be exported. One problem with this is that because the RB link of LAG1 fails, the receiver on LAG2 also receives traffic from another tree. That is to say, when there are multiple LAGs in one RBv, if only one LAG RB link fails, traffic to other LAGs will also be affected.
发明内容 Summary of the invention
本发明要解决的技术问题是提供一种组播流转发实现方法和路由网桥 ( RB ) , 以解决现有出现故障时, 组播流转发受影响较大的问题。  The technical problem to be solved by the present invention is to provide a multicast stream forwarding implementation method and a routing bridge (RB) to solve the problem that the multicast stream forwarding is greatly affected when the existing fault occurs.
为解决上述技术问题, 本发明提供了一种组播流转发实现方法, 各路由 网桥( RB )根据存储的组播树的分配信息转发接收到的上行或下行组播流, 所述组播树的分配信息中的组播树是按上行方向和下行方向分别分配的。  To solve the above technical problem, the present invention provides a method for implementing multicast stream forwarding, and each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocated information of the stored multicast tree, where the multicast The multicast tree in the allocation information of the tree is allocated in the uplink direction and the downlink direction, respectively.
为解决上述技术问题, 本发明还提供了一种路由网桥(RB ) , 该路由网 桥包括:  To solve the above technical problem, the present invention also provides a routing bridge (RB), the routing bridge includes:
分配信息存储单元, 设置为: 存储组播树的分配信息, 所述组播树是按 上行方向和下行方向分别分配的;  The allocation information storage unit is configured to: store allocation information of the multicast tree, where the multicast tree is allocated in an uplink direction and a downlink direction, respectively;
组播流转发单元, 设置为: 根据组播树的分配信息转发上行和 /或下行组 播流。  The multicast stream forwarding unit is configured to: forward the uplink and/or downlink multicast streams according to the allocation information of the multicast tree.
本发明实施例方法和路由网桥, 所述组播树的分配信息中的组播树是按 上行方向和下行方向分别分配的, 因此, 当下行方向发生故障时, 不会影响 上行方向的组播流转发, 进而实现了端系统对 TRILL网络的高可靠性接入。  In the method and the routing bridge of the embodiment of the present invention, the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the uplink direction group is not affected. Broadcast forwarding, which in turn enables high-reliability access of the end system to the TRILL network.
附图概述 BRIEF abstract
图 1 是 CMT文档对组播树的分配示意图;  Figure 1 is a schematic diagram of the allocation of a CMT document to a multicast tree;
图 2 是本发明组播流转发实现方法实施例 1的流程示意图;  2 is a schematic flowchart of Embodiment 1 of a method for implementing multicast stream forwarding according to the present invention;
图 3是本发明组播流转发实现方法实施例 2的流程示意图;  3 is a schematic flowchart of Embodiment 2 of a method for implementing multicast stream forwarding according to the present invention;
图 4是本发明组播流转发实现方法实施例 3的流程示意图;  4 is a schematic flowchart of Embodiment 3 of a method for implementing multicast stream forwarding according to the present invention;
图 5是本发明组播流转发实现方法实施例 3中组播流转发的过程示意图; 图 6是本发明组播流转发实现方法实施例 4的流程示意图; 图 7、 8是本发明应用实例一至四所釆用组播树分配示意图; 5 is a schematic diagram of a process of multicast stream forwarding in Embodiment 3 of a method for implementing multicast stream forwarding according to the present invention; 6 is a schematic flowchart of Embodiment 4 of a method for implementing multicast stream forwarding according to the present invention; FIG. 7 and FIG. 8 are schematic diagrams of allocation of a multicast tree used in Application Examples 1 to 4 of the present invention;
图 9-11是本发明路由网桥(RB ) 实施例的模块结构示意图。 本发明的较佳实施方式  9-11 are block diagrams showing the structure of an embodiment of a routing bridge (RB) according to the present invention. Preferred embodiment of the invention
下面结合附图和具体实施例对本发明所述技术方案作进一步的详细描述, 以使本领域的技术人员可以更好的理解本发明并能予以实施, 但所举实施例 不作为对本发明的限定。 需要说明的是, 在不冲突的情况下, 本申请中的实 施例及实施例中的特征可以相互组合。  The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments to enable those skilled in the art to understand the invention. . It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
实施例 1  Example 1
如图 2所示, 本发明实施例 1组播流转发实现方法, 各路由网桥(RB ) 根据组播树的分配信息转发接收到的上行或下行组播流, 所述组播树的分配 信息中的组播树是按上行方向和下行方向分别分配的,具体地,该方法包括: 步骤 201 : 路由网桥(RB )获取并存储路由网桥组(RBv ) 的组播树的 分配信息, 所述组播树的分配信息中的组播树是按上行方向和下行方向分别 分配的;  As shown in FIG. 2, in the embodiment 1 of the present invention, a method for forwarding a multicast stream, each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and allocates the multicast tree. The multicast tree in the information is allocated in the uplink direction and the downlink direction respectively. Specifically, the method includes: Step 201: The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv). The multicast tree in the allocation information of the multicast tree is allocated in an uplink direction and a downlink direction, respectively;
所述组播树的分配信息具体可釆用配置方式生成或各路由网桥基于相同 的分配算法获得, 优选地, 可基于负载均衡策略进行分配。  The allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm. Preferably, the allocation may be performed based on a load balancing policy.
本发明对路由网桥 ( RB )获取路由网桥组(RBv ) 的组播树的分配信息 的具体方法不做限定。 在上行方向, 可按照现有的 CMT机制进行组播树的 分配。  The present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv). In the uplink direction, the multicast tree can be allocated according to the existing CMT mechanism.
可理解地, 主要是建立路由网桥与组播树之间的映射关系, 其即可描述 为将组播树分配给路由网桥, 也可描述为将路由网桥分配给组播树, 二者无 实质差别。  Obviously, the mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
分配了某个组播树的路由网桥即为该组播树的转发设备。  A routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree.
步骤 202: 各路由网桥( RB )根据组播树的分配信息进行上行和 /或下行 组播流转发。 Step 202: Each routing bridge (RB) performs uplink and/or downlink according to allocation information of the multicast tree. Multicast stream forwarding.
所述各 RB根据组播树的分配信息进行上行和 /或下行组播流转发的过程 包括:  The process of performing uplink and/or downlink multicast stream forwarding by each RB according to the allocation information of the multicast tree includes:
接收到沿组播树上行或下行方向的组播流;  Receiving a multicast stream in the uplink or downlink direction along the multicast tree;
根据分配信息判断其是否为该组播树在相应方向上的转发设备; 若是, 则转发该组播流, 否则丟弃该组播流。  Determining whether it is a forwarding device of the multicast tree in a corresponding direction according to the allocation information; if yes, forwarding the multicast stream, otherwise discarding the multicast stream.
以上实施例中, 将组播树在路由网桥组(RBv )的路由网桥 ( RB )之间 按上行方向和下行方向分别分配, 从而可使得, 在下行的路由网桥或其对应 的链路发生故障时, 不会影响上行组播流的转发。  In the above embodiment, the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made. When a road fails, it does not affect the forwarding of upstream multicast streams.
实施例 2 Example 2
如图 3所示, 本发明实施例 2组播流转发实现方法, 各路由网桥(RB ) 根据组播树的分配信息转发接收到的上行或下行组播流, 所述组播树的分配 信息中的组播树是按上行方向和下行方向分别分配的, 具体地, 包括:  As shown in FIG. 3, in the embodiment 2 of the present invention, a method for forwarding a multicast stream, each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and allocates the multicast tree. The multicast tree in the information is allocated in the uplink direction and the downlink direction respectively. Specifically, the method includes:
步骤 301 : 路由网桥(RB )获取并存储路由网桥组(RBv ) 的组播树的 分配信息, 所述组播树的分配信息中的组播树是按上行方向和下行方向分别  Step 301: The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv), where the multicast tree in the allocation information of the multicast tree is respectively in the uplink direction and the downlink direction.
Area Network, LAN ) 内分配; Area Network, LAN )
比如存在 6棵组播树、 3个 LAG,则在 3个 LAG内均分配 6棵组播树。 所述组播树的分配信息具体可釆用配置方式生成或各路由网桥基于相同 的分配算法获得, 优选地, 可基于各个 RB负责转发的组播流对应的组播树 的数目进行均衡分配。  For example, if there are 6 multicast trees and 3 LAGs, 6 multicast trees are allocated in all 3 LAGs. The allocation information of the multicast tree may be specifically configured by using a configuration manner or the routing bridges are obtained by using the same allocation algorithm. Preferably, the multicast tree may be balanced according to the number of multicast trees corresponding to the multicast flows that each RB is responsible for forwarding. .
本发明对路由网桥 ( RB )获取路由网桥组(RBv ) 的组播树的分配信息 的具体方法不做限定。  The present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv).
可理解地, 主要是建立路由网桥与组播树之间的映射关系, 其即可描述 为将组播树分配给路由网桥, 也可描述为将路由网桥分配给组播树, 二者无 实质差别。 分配了某个组播树的路由网桥即为该组播树的转发设备。 Obviously, the mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference. A routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree.
步骤 302: 各路由网桥( RB )根据组播树的分配信息进行上行和 /或下行 组播流转发。  Step 302: Each routing bridge (RB) performs uplink and/or downlink multicast forwarding according to the allocation information of the multicast tree.
所述各 RB根据下行方向分配的组播树进行下行组播流转发的过程包括: 接收到沿组播树下行方向的组播流;  The process of forwarding the downlink multicast stream by using the multicast tree allocated by the RB in the downlink direction includes: receiving a multicast stream in a downlink direction along the multicast tree;
根据分配信息判断其是否为该组播树在链路聚合组(LAG )或本地局域 网 (LAN ) 下行方向上的转发设备;  Determining, according to the allocation information, whether the multicast device is a forwarding device in a downlink direction of a link aggregation group (LAG) or a local local area network (LAN);
若是, 则转发该组播流, 否则丟弃该组播流。  If yes, the multicast stream is forwarded, otherwise the multicast stream is discarded.
以上实施例中, 将组播树在路由网桥组(RBv )的路由网桥 ( RB )之间 按上行方向和下行方向分别分配, 从而可使得, 在下行的路由网桥或其对应 的链路发生故障时, 不会影响上行组播流的转发, 另外, 组播树在下行方向 在各个链路聚合组(LAG )或本地局域网 (LAN ) 内分配, 可使得其中某一 LAG或 LAN的链路发生故障时,不会影响其他 LAG或 LAN的组播流转发。  In the above embodiment, the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made. When a path fails, it does not affect the forwarding of the upstream multicast stream. In addition, the multicast tree is allocated in the downlink direction in each link aggregation group (LAG) or local area network (LAN), which can make one of the LAGs or LANs. When a link fails, it does not affect the multicast forwarding of other LAGs or LANs.
实施例 3 Example 3
本发明实施例 3着重对下行方向组播流转发进行说明,各路由网桥( RB ) 根据组播树的分配信息转发接收到的上行或下行组播流, 所述组播树的分配 信息中的组播树是按上行方向和下行方向分别分配的,具体地,如图 4所示, 组播流转发实现方法包括:  The third embodiment of the present invention focuses on forwarding the multicast stream in the downlink direction, and each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, where the multicast tree is allocated information. The multicast tree is allocated in the uplink direction and the downlink direction. Specifically, as shown in FIG. 4, the multicast stream forwarding implementation method includes:
步骤 401 : 路由网桥( RB )获取并存储路由网桥组( RBv ) 的组播树在 下行方向上的分配信息, 所述组播树在下行方向在各个链路聚合组(LAG ) 或本地局域网( LAN )内分配,一个组播树在下行方向分配的路由网桥( RB ) 包括一个主用转发设备和一个备用转发设备;  Step 401: The routing bridge (RB) acquires and stores allocation information of the multicast tree of the routing bridge group (RBv) in the downlink direction, where the multicast tree is in each link aggregation group (LAG) or local area network. (LAN), a routing bridge (RB) allocated by a multicast tree in the downlink direction includes an active forwarding device and a standby forwarding device;
所述组播树的分配信息具体可釆用配置方式生成或各路由网桥基于相同 的分配算法获得, 优选地, 可基于负载均衡策略进行分配。  The allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm. Preferably, the allocation may be performed based on a load balancing policy.
本发明对路由网桥 ( RB )获取路由网桥组(RBv ) 的组播树的分配信息 的具体方法不做限定。 可理解地, 主要是建立路由网桥与组播树之间的映射关系, 其即可描述 为将组播树分配给路由网桥, 也可描述为将路由网桥分配给组播树, 二者无 实质差别。 The specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv) is not limited. Obviously, the mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
分配了某个组播树的路由网桥即为该组播树的转发设备。 该实施例中, 在下行方向上部分或全部组播树分配一个主用转发设备和一个备用转发设备。 在主用转发设备及其对应的链路正常时, 由主用转发设备实现对应组播树的 播流转发时, 才启用备用转发设备的组播流转发功能。  A routing bridge to which a multicast tree is assigned is the forwarding device of the multicast tree. In this embodiment, one or all of the multicast trees in the downlink direction are assigned one primary forwarding device and one standby forwarding device. When the primary forwarding device and its corresponding link are normal, when the primary forwarding device implements the broadcast forwarding of the corresponding multicast tree, the multicast forwarding function of the standby forwarding device is enabled.
步骤 402: 各路由网桥( RB )根据组播树在下行方向上的分配信息进行 下行组播流转发。 Step 402: Each routing bridge (RB) forwards the downlink multicast stream according to the allocation information of the multicast tree in the downlink direction.
如图 5所示, 各路由网桥(RB )根据下行方向分配的组播树进行下行组 播流转发的过程包括:  As shown in FIG. 5, the process of forwarding the downlink multicast stream by each routing bridge (RB) according to the multicast tree allocated in the downlink direction includes:
步骤 501: 接收沿组播树下行方向的组播流;  Step 501: Receive a multicast stream in a downlink direction of the multicast tree.
步骤 502: 根据分配信息判断其是否为组播树在下行方向上的主用转发 设备;  Step 502: Determine, according to the allocation information, whether it is an active forwarding device in a downlink direction of the multicast tree.
具体地, 路由网桥可通过对为其分配的各个组播树建立标志位, 用于表 明当前路由网桥是该组播树的主用转发设备还是备用转发设备。  Specifically, the routing bridge can establish a flag bit for each multicast tree allocated to it to indicate whether the current routing bridge is the primary forwarding device or the standby forwarding device of the multicast tree.
步骤 503: 若是, 则转发该组播流, 否则丟弃该组播流。  Step 503: If yes, forward the multicast stream, otherwise discard the multicast stream.
以上实施例中, 虽然着重对下行方向进行说明, 但仍可将组播树在路由 网桥组(RBv )的路由网桥 ( RB )之间按上行方向和下行方向分别分配, 从 而可使得, 在下行的路由网桥或其对应的链路发生故障时, 不会影响上行组 播流的转发, 另外, 组播树在下行方向在各个链路聚合组(LAG )或本地局 域网 (LAN ) 内分配, 可使得其中某一 LAG或 LAN的链路发生故障时, 不 会影响其他 LAG或 LAN的组播流转发; 同一组播树在下行方向分配的路由 网桥(RB )包括一个主用转发设备和一个备用转发设备, 可使得在主用转发 设备或其对应的链路发生故障时, 由受影响的组播树的备用转发设备升级为 该组播树的主用转发设备实现组播流转发, 从而实现路由网桥组(RBv ) 的 快速保护。 In the above embodiment, although the downlink direction is mainly described, the multicast tree may be allocated in the uplink direction and the downlink direction respectively between the routing bridges (RBvs) of the routing bridge group (RBv), so that When the downlink routing bridge or its corresponding link fails, the uplink multicast stream is not affected. In addition, the multicast tree is in the downlink aggregation group (LAG) or local area network (LAN). Allocation, when one of the LAG or LAN links fails, does not affect the multicast stream forwarding of other LAGs or LANs; the routing bridge (RB) allocated by the same multicast tree in the downlink direction includes a primary forwarding. The device and an alternate forwarding device may be configured to upgrade the backup forwarding device of the affected multicast tree to the primary forwarding device of the multicast tree to implement multicast forwarding when the primary forwarding device or its corresponding link fails. Send, thus implementing the routing bridge group (RBv) Fast protection.
具体地, 一个组播树在下行方向显式分配一个备用转发设备, 路由网桥 Specifically, a multicast tree explicitly allocates an alternate forwarding device and a routing bridge in the downlink direction.
( RB )或其对应的链路发生故障时, 故障相关的节点向所在 RBv 内的其他 所有路由网桥(RB )发送故障信息; 受影响的组播树的备用转发设备升级为 该组播树的主用转发设备。 When (RB) or its corresponding link fails, the fault-related node sends fault information to all other routing bridges (RBs) in the RBv; the alternate forwarding device of the affected multicast tree is upgraded to the multicast tree. The primary forwarding device.
具体地, 如果是 RB故障, 则 CE是故障相关的节点; 如果是 RB链路故 障, 链路对应的 RB和 CE都感知到故障, 则故障相关的点可以是 RB和 /或 CE。  Specifically, if the RB is faulty, the CE is a fault-related node; if the RB link is faulty, and the RB and the CE corresponding to the link sense the fault, the fault-related point may be RB and/or CE.
针对不同的组播树的分配信息生成方式, 故障信息的内容有所不同, 比 如:  The content of the fault information is different for different multicast tree allocation information generation methods, such as:
若釆用配置方式, 且各 RB仅配置自身 (即当前 RB ) 的分配信息, 即, 各路由网桥(RB )获取并存储的分配信息仅包括自身的组播树的分配信息, 这种情况下, 故障信息需要携带受影响的组播树信息, 若在 LAG或 LAN内 分配, 还需要携带相关的 LAG或 LAN的信息, 这样接收到组播的故障信息 的备用转发设备才能确定其需要转为被影响组播树的主用转发设备; 若釆用 配置方式, 且各 RB不仅配置有自身的分配信息也配置有其他各 RB的分配 信息 (配置同步) , 或各 RB釆用相同的分配算法(算法同步) , 则各 RB 不仅了解自身的分配信息, 也了解其他各 RB的分配信息, 或各 RB仅配置 自身的分配信息, 通过交互后实现分配信息的同步(交互同步) , 此三种情 况下, 各 RB的分配信息是同步的, 即所述 RBv内的各路由网桥(RB )获取 并存储的组播树的分配信息包括自身及其他各 RB的组播树的分配信息, 则 组播的故障信息即使不携带受影响的组播树信息和 /或 LAG、 LAN信息, 受 影响的组播树的备用转发设备也可顺利转为主用转发设备执行相应的组播流 的转发。  If the configuration mode is adopted, and each RB is configured with only the allocation information of its own (ie, the current RB), that is, the allocation information acquired and stored by each routing bridge (RB) includes only the allocation information of its own multicast tree. The fault information needs to carry the affected multicast tree information. If it is allocated in the LAG or the LAN, it also needs to carry the relevant LAG or LAN information, so that the standby forwarding device that receives the multicast fault information can determine that it needs to turn. The primary forwarding device of the affected multicast tree; if the configuration mode is adopted, and each RB is configured not only with its own allocation information but also with other RB allocation information (configuration synchronization), or each RB uses the same allocation. Algorithm (algorithm synchronization), each RB not only knows its own allocation information, but also knows the allocation information of other RBs, or each RB only configures its own allocation information, and realizes synchronization (interactive synchronization) of allocation information through interaction. In this case, the allocation information of each RB is synchronized, that is, the points of the multicast tree acquired and stored by each routing bridge (RB) in the RBv. The information includes the allocation information of the multicast tree of itself and other RBs, and the multicast fault information does not carry the affected multicast tree information and/or LAG or LAN information, and the alternate forwarding device of the affected multicast tree also It can be smoothly transferred to the primary forwarding device to perform the corresponding multicast stream forwarding.
以上故障信息釆用组播的方式通知 RBv内的其他所有路由网桥( RB ) , 可替换地, 若同一 RBv的各路由网桥(RB )获取并存储的组播树的分配信 息包括自身及其他各 RB的组播树的分配信息, 具体可通过上述交互同步或 配置同步或算法同步; 路由网桥(RB )或其对应的链路发生故障时, 故障相 关的节点根据组播树的分配信息向受影响的组播树的备用转发设备发送故障 信息; 接收故障信息的备用转发设备升级为该组播树的主用转发设备。 The above fault information is used to notify all other routing bridges (RBs) in the RBv by means of multicast, and alternatively, the allocation information of the multicast trees acquired and stored by the routing bridges (RBs) of the same RBv includes itself and The allocation information of the multicast trees of the other RBs may be specifically synchronized by the foregoing interaction synchronization or configuration synchronization or algorithm; when the routing bridge (RB) or its corresponding link fails, the fault-related nodes are allocated according to the multicast tree. The information is sent to the alternate forwarding device of the affected multicast tree. Information; The alternate forwarding device that receives the fault information is upgraded to the primary forwarding device of the multicast tree.
实施例 4 Example 4
各路由网桥(RB )根据组播树的分配信息转发接收到的上行或下行组播 流,所述组播树的分配信息中的组播树是按上行方向和下行方向分别分配的, 本发明实施例 4着重对下行方向组播流转发进行说明,具体地,如图 6所示, 组播流转发实现方法包括:  Each routing bridge (RB) forwards the received uplink or downlink multicast stream according to the allocation information of the multicast tree, and the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. The embodiment of the present invention focuses on the forwarding of the multicast stream in the downlink direction. Specifically, as shown in FIG. 6, the method for implementing the multicast stream forwarding includes:
步骤 601 : 路由网桥(RB )获取并存储路由网桥组(RBv ) 的组播树在 下行方向上的分配信息, 所述组播树在下行方向分配是在各个链路聚合组 ( LAG )或本地局域网 ( LAN ) 内分配, 且一个组播树在下行方向的分配路 由网桥(RB ) 包括一个主用转发设备和若干个备用转发设备;  Step 601: The routing bridge (RB) acquires and stores the allocation information of the multicast tree of the routing bridge group (RBv) in the downlink direction, and the multicast tree is allocated in the downlink direction in each link aggregation group (LAG) or A distribution routing bridge (RB) in a local area network (LAN), and a multicast tree in the downlink direction includes an active forwarding device and a plurality of alternate forwarding devices;
该实施例中, 所述 RBv 内的各路由网桥(RB )获取并存储的组播树的 分配信息包括自身及其他各 RB的组播树的分配信息。  In this embodiment, the allocation information of the multicast tree acquired and stored by each routing bridge (RB) in the RBv includes allocation information of the multicast tree of itself and other RBs.
所述组播树的分配信息具体可釆用配置方式生成或各路由网桥基于相同 的分配算法获得, 优选地, 可基于负载均衡策略进行分配。  The allocation information of the multicast tree may be specifically generated by using a configuration manner or each routing bridge is obtained based on the same allocation algorithm. Preferably, the allocation may be performed based on a load balancing policy.
本发明对路由网桥 ( RB )获取路由网桥组(RBv ) 的组播树的分配信息 的具体方法不做限定。  The present invention does not limit the specific method for the routing bridge (RB) to obtain the allocation information of the multicast tree of the routing bridge group (RBv).
可理解地, 主要是建立路由网桥与组播树之间的映射关系, 其即可描述 为将组播树分配给路由网桥, 也可描述为将路由网桥分配给组播树, 二者无 实质差别。  Obviously, the mapping relationship between the routing bridge and the multicast tree is mainly established, which may be described as assigning a multicast tree to a routing bridge, or as a routing bridge to a multicast tree. There is no substantive difference.
具体地, 一个组播树在下行方向显式或隐式分配若干个备用转发设备, 步骤 602: 各路由网桥( RB )根据组播树在下行方向上的分配信息进行 下行组播流转发。  Specifically, a multicast tree explicitly or implicitly allocates a plurality of alternate forwarding devices in the downlink direction. Step 602: Each routing bridge (RB) forwards the downlink multicast stream according to the allocation information of the multicast tree in the downlink direction.
以上实施例中, 将组播树在路由网桥组(RBv )的路由网桥 ( RB )之间 按上行方向和下行方向分别分配, 从而可使得, 在下行的路由网桥或其对应 的链路发生故障时, 不会影响上行组播流的转发, 另外, 组播树在下行方向 在各个链路聚合组(LAG )或本地局域网 (LAN ) 内分配, 可使得其中某一 LAG或 LAN的链路发生故障时,不会影响其他 LAG或 LAN的组播流转发; 一个组播树在下行方向分配的路由网桥( RB )包括一个主用转发设备和若干 个备用转发设备, 可使得在主用转发设备或其对应的链路发生故障时, 由其 中一个受影响的组播树的备用转发设备升级为该组播树的主用转发设备实现 组播流转发, 从而实现路由网桥组(RBv ) 的快速保护。 In the above embodiment, the multicast tree is allocated in the uplink direction and the downlink direction between the routing bridges (RBs) of the routing bridge group (RBv), so that the downlink routing bridge or its corresponding chain can be made. When the path fails, the forwarding of the upstream multicast stream is not affected. In addition, the multicast tree is allocated in each link aggregation group (LAG) or local area network (LAN) in the downlink direction, which may make one of them. When the link of the LAG or the LAN fails, the multicast stream forwarding of other LAGs or LANs is not affected. The routing bridge (RB) allocated by the multicast tree in the downlink direction includes one active forwarding device and several standby forwarding devices. When the primary forwarding device or its corresponding link fails, the backup forwarding device of one of the affected multicast trees is upgraded to the primary forwarding device of the multicast tree to implement multicast forwarding, thereby implementing Fast protection of the routing bridge group (RBv).
该实施例中, 路由网桥( RB )或其对应的链路发生故障时, 故障相关的 节点向所在 RBv内的受影响组播树的一个备用转发设备发送故障信息;接收 该故障信息的备用转发设备升级为受影响组播树的主用转发设备。  In this embodiment, when the routing bridge (RB) or its corresponding link fails, the fault-related node sends fault information to an alternate forwarding device of the affected multicast tree in the RBv; and receives the fault information. The forwarding device is upgraded to the primary forwarding device of the affected multicast tree.
因一个组播树分配了多个备用转发设备, 因此以上故障信息釆用单播的 方式通知其中一个备用转发设备升级为该组播树的主用转发设备。 故障相关 的节点根据所述组播树的分配信息基于负载均衡策略确定升级为主用转发设 备的备用转发设备。  A plurality of alternate forwarding devices are allocated in a multicast tree. Therefore, the above fault information is unicast to notify one of the alternate forwarding devices to be upgraded to the primary forwarding device of the multicast tree. The fault-related node determines to upgrade the standby forwarding device of the primary forwarding device based on the load balancing policy according to the allocation information of the multicast tree.
以上各实施例中, 当前主用转发设备收到原主用转发设备或其对应的链 路的故障恢复信息后, 重新转为备用转发设备。  In the foregoing embodiments, after the current primary forwarding device receives the fault recovery information of the original primary forwarding device or its corresponding link, the active forwarding device reverts to the standby forwarding device.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
下面结合附图和应用实例进一步对发明实施例进行说明。 The embodiments of the invention are further described below in conjunction with the accompanying drawings and application examples.
应用实例一  Application example one
以图 7为例, 一个 RBv下部署了两个 LAG, 整个 TRILL网络计算出 5 分另1 己为 Tl , T2, T3 , T4和 T5。 Taking Figure 7 as an example, two LAGs are deployed under one RBv, and the entire TRILL network calculates 5 points and 1 is Tl, T2, T3, T4 and T5.
针对上行方向 , 按照现有 CMT文稿的机制在 RBv的 RB之间分配组播 树, 假设 RB1分配的结果为 {Tl , T4}, RB2分配的结果为 { T2, T5},RB3分 配的结果为 { T3} ; 针对下行方向, 将组播树在 RBv的 LAG内进行分配。 如果 RBv的所有 RB同时也是 RBv某个 LAG的 RB , 则针对该 LAG可釆用与上行分配相同 的分配结果, 某一 RB在各个 LAG内组播树在下行方向上的主用转发设备, 也可以针对各个 LAG在下行方向上分配不同的组播树转发角色; RBv从某 组播树上接收到下行组播流时, 针对上行方向上组播树和下行方向上组播树 分配结果相同的情况,在 RB上的处理遵循现有的 CMT文稿; 而针对分配结 果不同的情况, RB 是否需要将收到的下行流量转发到下行链路需要做些改 变, 即按照在各个 LAG 内分配的组播树在下行方向的转发角色决定是否转 发。 具体可参见本文档的后两个应用实例。 For the uplink direction, the multicast tree is allocated between the RBs of the RBv according to the mechanism of the existing CMT document. It is assumed that the result of the RB1 allocation is {Tl, T4}, and the result of the RB2 allocation is {T2, T5}, and the result of the RB3 allocation is { T3} ; For the downlink direction, the multicast tree is allocated within the LAG of the RBv. If all RBs of the RBv are also RBs of a LAG of the RBv, the same allocation result as the uplink allocation may be used for the LAG, and the primary forwarding device of the RB in the downlink direction of the LAG in each LAG may also be used. Different multicast tree forwarding roles are allocated to the LAGs in the downlink direction. When the RBv receives the downlink multicast stream from a multicast tree, the allocation result is the same for the multicast tree in the uplink direction and the multicast tree in the downlink direction. The processing on the RB follows the existing CMT document; and for the case where the allocation result is different, whether the RB needs to forward the received downlink traffic to the downlink needs to be changed, that is, according to the multicast tree allocated in each LAG. The forwarding role in the downstream direction determines whether to forward. For details, see the last two application examples in this document.
每个 RB将分配的组播树信息通告给其它 RBs , 实现 RBv内的 RB之间 的信息同步。这可以通过 ESADK End Station Address Distribution Information, 端系统地址分发信息)协议或隧道(Channel )技术来同步, 但不仅仅局限于 ESADI或 Channel的方式。  Each RB advertises the allocated multicast tree information to other RBs to implement information synchronization between the RBs in the RBv. This can be synchronized via ESADK End Station Address Distribution Information, protocol or tunnel technology, but not limited to ESADI or Channel.
应用实例 2 Application example 2
该应用实例 2中, 通过组播方式进行 RB或者 RB链路故障通告的场景 下。 因为通过组播通告故障, 所以会有多个 RB收到通告。 为了避免多个 RB 同时在成为一个组播树的转发设备, 所以在下行方向上组播树分配时, 只能 将一个 RB分配为一个组播树的备用转发者。  In the application example 2, the RB or RB link failure notification is performed in the multicast mode. Because the failure is advertised through multicast, multiple RBs will receive the announcement. In order to prevent multiple RBs from being a forwarding device of a multicast tree at the same time, only one RB can be allocated as an alternate forwarder of a multicast tree when multicast tree allocation is performed in the downlink direction.
具体地, 在每个 RB上显式指定是哪些组播树的主用以及是哪些组播树 的备用转发设备, 如图 3所示的上行和下行的组播树的分配信息, 在 LAG1 内, RB1是 T1和 T4的主用转发,是 T3的备用转发设备; 在 LAG2内, RB1 是 T2和 T3的主用转发设备, 是 T1的备用转发设备。  Specifically, the primary and the alternate forwarding devices of the multicast trees are explicitly specified on each RB, and the allocation information of the uplink and downlink multicast trees as shown in FIG. 3 is in the LAG1. RB1 is the primary forwarding device of T1 and T4, and is the alternate forwarding device of T3. In LAG2, RB1 is the primary forwarding device of T2 and T3, and is the standby forwarding device of T1.
在该方式中, 是需要显式指定某个组播树的主用和备用转发设备, 针对 各个组播树, 在 RB v的某 LAG下, 只能有一个 RB是其主用转发设备和备 用转发设备。 这样当 RB收到组播的通告消息后, 根据本地保存的信息以及 通告消息中携带的故障信息, 就可以判断出是否需要转发收到的组播流。  In this mode, the primary and backup forwarding devices of a multicast tree need to be explicitly specified. For each multicast tree, only one RB in the LAG of the RB v is its primary forwarding device and standby. Forward the device. After receiving the multicast advertisement message, the RB can determine whether the received multicast stream needs to be forwarded according to the locally saved information and the fault information carried in the advertisement message.
当某 RB接收到沿组播树下行方向的组播流时, 判断所述 RB是否为该 组播树在某 LAG下行方向上的主用转发设备, 若是, 则从对应的 LAG接口 导出该流量; 否则, 丟弃该流量; When an RB receives the multicast stream in the downlink direction of the multicast tree, it determines whether the RB is the primary forwarding device in the downlink direction of the LAG, and if so, from the corresponding LAG interface. Export the traffic; otherwise, discard the traffic;
如图 7当 RB4沿着 T1组播树转发的流到达 RBv时, RBI , RB2和 RB3 都能接收到该流, 但是由于 RB1是 LAG1下 T1的主用转发设备, 那么 RB1 会将该流剥掉 TRILL头后通过 LAG1内的接口转发到 CE1 , 而 RB2和 RB3 不会通过 LAG1内的接口转发该流; 同时 RB2是在 LAG2下 T1的主用转发 设备,那么 RB2也会将该流剥掉 TRILL头后通过 LAG2内的接口转发到 CE2 , 而 RB1和 RB3不会将该流通过 LAG2内的接口转发。  As shown in Figure 7, when the flow forwarded by RB4 along the T1 multicast tree reaches RBv, RBI, RB2, and RB3 can receive the flow. However, since RB1 is the primary forwarding device of T1 under LAG1, RB1 strips the flow. After the TRILL header is removed, it is forwarded to CE1 through the interface in LAG1, and RB2 and RB3 do not forward the flow through the interface in LAG1. At the same time, RB2 is the primary forwarding device of T1 under LAG2, then RB2 will also strip the stream. The TRILL header is forwarded to CE2 through the interface in LAG2, and RB1 and RB3 do not forward the flow through the interface in LAG2.
针对各个 RB , 当所述 RB故障或者某 LAG下对应的 RB链路发生故障 时, 和该故障相关的节点 (具体地, 如果是 RB故障, 那么由 CE发出通告 消息; 如果是 RB链路故障, 链路对应的 RB和 CE都感知到故障, 那么可以 是 RB或者 CE或者两者都发出通告)通过组播消息 (可以是控制面消息或 者是数据面 OAM消息等)将故障信息在 RBv内洪泛, 该消息中指明了是哪 个 RB在哪个 LAG下的接口发生故障。 换句话说, 也就是以该 RB为主用转 发设备的组播树上的流无法通过该 RB在该 LAG内的接口转发到 CE。 当其 他 RB收到通告消息后, 根据本地保存的组播树的分配信息以及收到的通告 消息, 判断自己是否是该消息中指明的组播树在所述 LAG 下的备用转发设 备,如果是,则将所述 RB升级为所述组播树在所述 LAG下的主用转发设备, 并通过对应的 LAG接口转发组播流; 否则, 丟弃收到的组播流。  For each RB, when the RB fails or the corresponding RB link under a LAG fails, the node related to the fault (specifically, if it is an RB failure, the announcement message is sent by the CE; if it is the RB link failure) If the RB and the CE corresponding to the link are aware of the fault, then the RB or the CE or both can advertise. The fault information is in the RBv through the multicast message (which can be a control plane message or a data plane OAM message, etc.). Flooding, the message indicates which RB is faulty on the interface under which LAG. In other words, the stream on the multicast tree in which the RB is the primary forwarding device cannot be forwarded to the CE through the interface of the RB in the LAG. After receiving the advertisement message, the other RBs determine, according to the locally stored multicast tree allocation information and the received advertisement message, whether it is the backup forwarding device of the multicast tree specified in the message under the LAG. The RB is upgraded to the primary forwarding device of the multicast tree in the LAG, and the multicast stream is forwarded through the corresponding LAG interface; otherwise, the received multicast stream is discarded.
如图 7, 当 RB1-CE1之间在 LAG1的 RB链路发生故障, 受到故障影响 的组播流是 T1和 T4在 LAG1接口的转发。 那么 RB2和 RB3接收到所述组 播消息得知所述故障后, RB2判断自己是 RB1在 LAG1下的 T1和 T4的备 用转发设备, 那么 RB2将自身升级为在 LAG1下的 T1和 T4的主用转发设 备, 并通过在 LAG1下的接口将 T1和 T4上的流转发到 CE1 , RB3判断自己 不是 RB1在 LAG1下分配的主用组播树 T1和 T4的备用转发设备, 则不会 将收到的流通过 LAG1的接口转发下去。 各个 RB在 LAG2所属的接口上的 下行转发不受影响。  As shown in Figure 7, when the RB link of LAG1 fails between RB1-CE1, the multicast stream affected by the fault is the forwarding of T1 and T4 on the LAG1 interface. Then, after RB2 and RB3 receive the multicast message and learn the fault, RB2 judges that it is the alternate forwarding device of T1 and T4 of RB1 under LAG1, then RB2 upgrades itself to the main T1 and T4 under LAG1. Using the forwarding device, and forwarding the traffic on T1 and T4 to CE1 through the interface under LAG1, RB3 determines that it is not the alternate forwarding device of the primary multicast tree T1 and T4 allocated by RB1 under LAG1, and will not receive it. The incoming stream is forwarded through the interface of LAG1. The downlink forwarding of each RB on the interface to which LAG2 belongs is not affected.
应用实例 3 Application example 3
只在每个 RB上指定是哪些组播树的主用转发设备 应用实例 3中釆用单播方式进行 RB或者 RB链路故障通告的场景下。 在这种情况下, 仅有一个 RB会收到故障 RB通告的故障, 不会出现多个 RB 同时作为一个组播树的主用转发设备, 该应用实例可以显示设置或隐式默认 其余多个或所有 RB为一个组播树的备用转发设备, 进而无论哪个 RB出现 故障了, 总能快速实现 RBv内的快速保护。 Specify which multicast tree's primary forwarding device is only on each RB In the scenario of RB or RB link failure notification in unicast mode. In this case, only one RB will receive the fault advertised by the faulty RB, and multiple RBs will not appear as the primary forwarding device of a multicast tree. The application instance can display the settings or implicitly default the rest. Or all RBs are alternate forwarding devices of a multicast tree, so that no matter which RB fails, the fast protection in the RBv can be quickly realized.
如图 8所示的分配的上行和下行的组播树的分配信息, 在 LAG1内, 为 RB1分配了 {LAGl , Tl , T4}的绑定关系, 那么可以得知 RB1是 T1和 T4在 LAG1内的主用转发设备, 可作为 T2、 Τ3和 Τ5的备用转发设备; 另外还为 RB2分配了 {LAGl , Τ2, Τ5} , 那么可以得知 RB2是 Τ2和 Τ5在 LAG1内的 主用转发设备,可作为是 Tl、 Τ3和 Τ4的备用转发设备。为 RB3分配了 {LAG1 , Τ3} , 可以得知 RB3是 Τ3在 LAG1内的主用转发设备, 可作为 Tl、 Τ2、 Τ4 和 Τ5的备用转发设备, 由此可以看出, 针对 Τ3在 LAG1下有两个备用转发 设备 RB1和 RB2, 那么当 Τ3的主用转发设备故障时, 需要通过单播的故障 通告方式告知 RB1或者 RB2, 由其中的一个保护转发。 即在这种方式下, 当 某个 RB链路故障时, 该故障相关的节点(如故障链路的 RB )会从所在 RBv 的剩余 RB中随机或基于负载均衡原则自动选择其中的一个设备作为受所述 故障影响的组播树的转发设备并单播故障信息。 收到单播故障信息的设备, 自动将自己升级为受所述故障影响的组播树的主用转发设备。 而不需要像应 用实例二根据本地保存的信息以及收到的通告消息来判断是否需要转发。 当某 RB接收到沿组播树下行方向的组播流时, 判断所述 RB是否为该 组播树在某 LAG下行方向上的主用转发设备, 若是, 则从对应的 LAG接口 导出该流量; 否则, 丟弃该流量;  As shown in Figure 8, the allocation information of the allocated uplink and downlink multicast trees, in LAG1, assigns the binding relationship of {LAGl, Tl, T4} to RB1, then it can be known that RB1 is T1 and T4 is in LAG1. The internal forwarding device can be used as the backup forwarding device of T2, Τ3, and Τ5; in addition, {LAG1, Τ2, Τ5} is also allocated for RB2, then it can be known that RB2 is the primary forwarding device of Τ2 and Τ5 in LAG1. It can be used as an alternate forwarding device for T1, Τ3, and Τ4. By assigning {LAG1, Τ3} to RB3, it can be known that RB3 is the primary forwarding device of Τ3 in LAG1, and can be used as an alternate forwarding device for T1, Τ2, Τ4, and Τ5, which can be seen that Τ3 is under LAG1. There are two standby forwarding devices RB1 and RB2. When the primary forwarding device of Τ3 fails, RB1 or RB2 needs to be notified by unicast failure notification mode, and one of them is forwarded by protection. That is, in this mode, when an RB link fails, the fault-related node (such as the RB of the faulty link) automatically selects one of the devices from the remaining RBs of the RBv or randomly based on the load balancing principle. The forwarding device of the multicast tree affected by the fault and unicasts the fault information. The device that receives the unicast failure information automatically upgrades itself to the primary forwarding device of the multicast tree affected by the failure. It is not necessary to use Application Instance 2 to determine whether forwarding is required based on locally saved information and received notification messages. When an RB receives the multicast stream in the downlink direction of the multicast tree, it is determined whether the RB is the primary forwarding device in the downlink direction of the LAG, and if yes, the traffic is derived from the corresponding LAG interface. Otherwise, discard the traffic;
如图 8当 RB4沿着 T3组播树转发的流到达 RBv时, RBI , RB2和 RB3 都能接收到该流, 但是由于 RB3是 LAG1下 T3的主用转发设备, 那么 RB3 会将该流剥掉 TRILL头后通过 LAG1的接口转发到 CE1 , 而 RB1和 RB2不 会通过 LAG1的接口转发该流;同时 RB1是在 LAG2下 T3的主用转发设备, 那么 RB1也会将该流剥掉 TRILL头后通过 LAG2的接口转发到 CE2,而 RB2 和 RB3不会将该流通过 LAG2的接口转发。  As shown in Figure 8, when the RB4 flows along the T3 multicast tree to the RBv, RBI, RB2, and RB3 can receive the flow. However, since RB3 is the primary forwarding device of T3 under LAG1, RB3 will strip the flow. After the TRILL header is removed, it is forwarded to CE1 through the interface of LAG1, and RB1 and RB2 do not forward the flow through the interface of LAG1. Meanwhile, RB1 is the primary forwarding device of T3 under LAG2, and RB1 also strips the flow from the TRILL header. Afterwards, it is forwarded to CE2 through the interface of LAG2, and RB2 and RB3 will not forward the flow through the interface of LAG2.
针对各个 RB, 当该 RB的某 LAG的 RB或者 RB链路发生故障时, 故 障相关的节点通过单播的方式向剩余的 RB之一发送通告消息, 当所述 RB 收到该消息后, 就知道需要作为受该故障影响的组播树的主用转发设备。 For each RB, when the RB or RB link of a LAG of the RB fails, The barrier-related node sends an advertisement message to one of the remaining RBs in a unicast manner. When the RB receives the message, it knows that it needs to be the primary forwarding device of the multicast tree affected by the fault.
如图 8, 当 RB3-CE1之间在 LAG1的 RB链路发生故障,那么 RB3选择 将该故障消息单播告知 RB2, RB2将自己升级为在 LAG1 下分配的组播树 T3的主用转发设备, 当 RB2从 T3接收到组播流, 则会从 LAG1的接口导出 该组播流。 各个 RB在 LAG2所属的接口上的下行转发不受影响。  As shown in Figure 8, when the RB link of LAG1 fails between RB3-CE1, RB3 chooses to unicast the fault message to RB2, and RB2 upgrades itself to the primary forwarding device of multicast tree T3 allocated under LAG1. When RB2 receives the multicast stream from T3, it will derive the multicast stream from the interface of LAG1. The downlink forwarding of each RB on the interface to which LAG2 belongs is not affected.
应用实例四 Application example four
该应用实例着重说明故障恢复后的流程:  This application example focuses on the process after failure recovery:
以图 7为例, 当 RB1-CE1在 LAG1上的链路恢复后, RB1或者 CE1将 故障恢复信息通告给其它 RB。 这里可以是 ESADI来通告或者是 OAM消息 等方式。  As shown in Figure 7, after the link of RB1-CE1 on LAG1 is restored, RB1 or CE1 advertises the fault recovery information to other RBs. This can be ESADI to advertise or OAM messages.
RB2收到上述所述的通告消息, 再结合本地保存的信息, 判断 RB1 是 LAG1 内 T1和 T4的主用转发设备, 那么将 RB2回退为 LAG1 内 T1和 T4 的备用转发设备, 并且将信息通告给 RB1。  RB2 receives the above-mentioned notification message, and combines the locally saved information to determine that RB1 is the primary forwarding device of T1 and T4 in LAG1, then RB2 is rolled back to the alternate forwarding device of T1 and T4 in LAG1, and the information is Announced to RB1.
RBI收到 RB2回复的通告, 将 RB1分配为 LAG1内 T1和 T4的主用转 发设备。  The RBI receives the RB2 reply and assigns RB1 as the primary forwarding device for T1 and T4 in LAG1.
对应于前述方法, 本发明还提供了一种路由网桥(RB ) , 如图 9所示, 该路由网桥包括: Corresponding to the foregoing method, the present invention further provides a routing bridge (RB). As shown in FIG. 9, the routing bridge includes:
分配信息存储单元, 用于存储组播树的分配信息, 所述组播树是按上行 方向和下行方向分别分配的;  An allocation information storage unit, configured to store allocation information of a multicast tree, where the multicast tree is separately allocated in an uplink direction and a downlink direction;
组播流转发单元, 用于组播树的分配信息转发上行和 /或下行组播流。 可选地, 所述组播流转发单元包括:  The multicast stream forwarding unit is configured to forward the uplink and/or downlink multicast stream to the multicast tree. Optionally, the multicast stream forwarding unit includes:
组播流接收模块, 用于接收到沿组播树上行或下行方向的组播流; 组播流判断模块, 用于根据分配信息判断其是否为该组播树在相应方向 上的转发设备; 组播流转发模块, 用于在判断为组播树的转发设备时, 转发该组播流, 否则丟弃该组播流。 a multicast stream receiving module, configured to receive a multicast stream in an uplink or a downlink direction of the multicast tree; and a multicast stream determining module, configured to determine, according to the allocation information, whether the forwarding device is a forwarding device of the multicast tree in a corresponding direction; The multicast stream forwarding module is configured to forward the multicast stream when it is determined to be a forwarding device of the multicast tree, or discard the multicast stream.
优选地, 所述组播树在下行方向在各个链路聚合组(LAG )或本地局域 网 (LAN ) 内分配。  Preferably, the multicast tree is allocated in a downlink direction in each link aggregation group (LAG) or a local area network (LAN).
优选地, 一个组播树在下行方向分配的 RB包括一个主用转发设备和一 个或若干个备用转发设备, 所述组播流判断模块判断其在下行方向上组播树 的主用转发设备, 所述组播流转发模块在判断为组播树的主用转发设备时, 转发该组播流, 否则丟弃该组播流。  Preferably, the RB allocated by the multicast tree in the downlink direction includes one primary forwarding device and one or several standby forwarding devices, and the multicast flow determining module determines the primary forwarding device of the multicast tree in the downlink direction. When the multicast stream forwarding module determines that it is the primary forwarding device of the multicast tree, the multicast stream forwarding module forwards the multicast stream. Otherwise, the multicast stream is discarded.
如图 10所示, 所述路由网桥 ( RB )还包括:  As shown in FIG. 10, the routing bridge (RB) further includes:
信息接收单元, 用于在该路由网桥(RB )或其对应的链路发生故障时, 接收故障信息;  An information receiving unit, configured to receive fault information when the routing bridge (RB) or its corresponding link fails;
状态更新单元, 在接收到故障信息且该路由网桥(RB )是受影响的组播 树的备用转发设备, 更新为该组播树的主用转发设备。  The status update unit updates the active forwarding device of the multicast tree to the backup forwarding device that receives the fault information and the routing bridge (RB) is the affected multicast tree.
具体地, 所述组播树在下行方向分配的 RB包括一个主用转发设备和一 个备用转发设备, 所述故障信息由故障相关的节点通过组播的方式发送。  Specifically, the RB allocated in the downlink direction of the multicast tree includes an active forwarding device and a standby forwarding device, and the fault information is sent by the fault-related node in a multicast manner.
所述分配信息存储单元存储的分配信息仅包括自身的组播树的分配信息, 一个组播树在下行方向显式分配一个备用转发设备, 所述故障信息由故障相 关的节点通过组播的方式发送, 所述组播的故障信息包括受影响的组播树信 息或受影响的组播树所在的 LAG或 LAN信息; 或,  The allocation information stored by the allocation information storage unit includes only the allocation information of the multicast tree of the own, and one multicast tree explicitly allocates an alternate forwarding device in the downlink direction, and the fault information is multicast by the node related to the fault. Sending, the multicast fault information includes the affected multicast tree information or the LAG or LAN information of the affected multicast tree; or
所述分配信息存储单元存储的组播树的分配信息包括自身及其他各 RB 的组播树的分配信息, 一个组播树在下行方向显式分配一个或若干个备用转 发设备, 所述故障信息由故障相关的节点通过单播的方式发送给备用转发设 备。  The allocation information of the multicast tree stored by the allocation information storage unit includes allocation information of the multicast tree of itself and other RBs, and one multicast tree explicitly allocates one or several standby forwarding devices in the downlink direction, and the fault information The fault-related node sends the unicast to the alternate forwarding device.
可选地, 一个组播树在下行方向显式或隐式分配若干个备用转发设备, 所述分配信息存储单元存储的组播树的分配信息包括自身及其他各 RB的组 播树的分配信息, 所述故障信息通过单播的方式发送, 接收所述故障信息的 RB是受影响组播树的其中一个备用转发设备。  Optionally, a multicast tree explicitly or implicitly allocates a plurality of standby forwarding devices in the downlink direction, and the allocation information of the multicast tree stored by the allocation information storage unit includes allocation information of the multicast tree of itself and other RBs. The fault information is sent in a unicast manner, and the RB that receives the fault information is one of the alternate forwarding devices of the affected multicast tree.
优选地, 如图 11所示, 所述路由网桥还包括故障信息发送单元, 用于根 据所述组播树的分配信息随机或基于负载均衡策略确定故障信息发送的单播 对象。 Preferably, as shown in FIG. 11, the routing bridge further includes a fault information sending unit, configured to The unicast object sent by the fault information is determined according to the allocation information of the multicast tree randomly or based on a load balancing policy.
具体地, 所述分配信息存储单元利用同一组播树分配算法或配置获取自 身及其他各 RB的组播树的分配信息,或配置获取自身的组播树的分配信息, 并交互获取其他各 RB的组播树信息。  Specifically, the allocation information storage unit uses the same multicast tree allocation algorithm or configuration to obtain the allocation information of the multicast tree of itself and other RBs, or configures the allocation information of the multicast tree of its own, and acquires other RBs interactively. Multicast tree information.
可理解地,如上文所述, 当 RB发生故障时,故障信息是由 CE发送的。 优选地,信息接收单元,还用于在所述路由网桥为当前主用转发设备时, 接收原主用转发设备或其对应的链路的故障恢复信息;  Understandably, as described above, when the RB fails, the failure information is sent by the CE. Preferably, the information receiving unit is further configured to: when the routing bridge is the current primary forwarding device, receive failure recovery information of the original primary forwarding device or its corresponding link;
状态更新单元, 在接收到故障恢复信息后, 更新为该组播树的备用转发 设备。  The status update unit updates to the alternate forwarding device of the multicast tree after receiving the failure recovery information.
本发明方法和路由网桥, 所述组播树的分配信息中的组播树是按上行方 向和下行方向分别分配的, 因此, 当下行方向发生故障时, 不会影响上行方 向的组播流转发, 另外, 该发明方案在 RBv场景下, 当接入链路或者接入 RB故障时, 不需要远端 RB感知到故障, 由 RBv内的 RB对下行方向的组 播数据进行快速保护, 确保端系统正常接收业务流量。 另外, 该发明方案不 仅支持一个 RBv下仅部署一个 LAG的场景, 还支持一个 RBv下部署多个 LAG的场景,即组播树在下行方向在 RBv上的转发分配是在 LAG的粒度上, 当某 RB在属于某 LAG的 RB接口故障时,只有受该故障影响的组播流才会 由备用转发设备去转发, 进而实现了端系统对 TRILL网络的高可靠性接入。 In the method and the routing bridge of the present invention, the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the multicast forwarding in the uplink direction is not affected. In the RBv scenario, when the access link or the access RB fails, the remote RB does not need to detect the fault, and the RB in the RBv quickly protects the multicast data in the downlink direction to ensure the protection. The end system normally receives traffic. In addition, the invention provides a scenario in which only one LAG is deployed in one RBv, and a scenario in which multiple LAGs are deployed in one RBv, that is, the forwarding allocation of the multicast tree in the downlink direction on the RBv is at the granularity of the LAG. When an RB is faulty on an RB interface belonging to a LAG, only the multicast stream affected by the fault is forwarded by the standby forwarding device, thereby achieving high reliability access of the end system to the TRILL network.
本发明实施例中所描述的单元 /模块仅是根据其功能进行划分的一种示 例, 可理解地, 在实现相同功能的情况下, 本领域技术人员可给出一种或多 种其他功能划分方式, 在具体应用时可将其中任意一个或多个功能模块釆用 一个功能实体装置或单元实现, 不可否认地, 以上变换方式均在本申请保护 范围之内。 The unit/module described in the embodiment of the present invention is only an example of dividing according to its function. It can be understood that one or more other functional divisions can be given by those skilled in the art in the case of implementing the same function. In the specific application, any one or more of the functional modules may be implemented by using one functional entity device or unit, and the above transformation manner is undeniably within the protection scope of the present application.
本文所描述的实施例仅仅是本发明一部分实施例, 而非全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动的前提 下所获得的所有其他实施例, 都属于本发明保护的范围。 The embodiments described herein are only a part of the embodiments of the invention, and not all of the embodiments. Based on the embodiments of the present invention, those skilled in the art are not required to make creative labor. All other embodiments obtained below are within the scope of the invention.
工业实用性 Industrial applicability
本发明实施例方法和路由网桥, 所述组播树的分配信息中的组播树是按 上行方向和下行方向分别分配的, 因此, 当下行方向发生故障时, 不会影响 上行方向的组播流转发, 进而实现了端系统对 TRILL网络的高可靠性接入。  In the method and the routing bridge of the embodiment of the present invention, the multicast tree in the allocation information of the multicast tree is allocated in the uplink direction and the downlink direction respectively. Therefore, when the downlink direction fails, the uplink direction group is not affected. Broadcast forwarding, which in turn enables high-reliability access of the end system to the TRILL network.

Claims

权 利 要 求 书 claims
1、 一种组播流转发实现方法, 包括: 各路由网桥(RB )根据组播树 的分配信息转发接收到的上行或下行组播流, 所述组播树是按上行方向和下 行方向分别分配的。 1. A method for implementing multicast flow forwarding, including: Each routing bridge (RB) forwards the received uplink or downlink multicast flow according to the allocation information of the multicast tree. The multicast tree is based on the uplink direction and the downlink direction. assigned separately.
2、 如权利要求 1所述的方法, 其中, 所述各路由网桥(RB )根据组 播树的分配信息转发接收到的上行或下行组播流的过程包括: 2. The method according to claim 1, wherein the process of forwarding the received uplink or downlink multicast flow by each routing bridge (RB) according to the allocation information of the multicast tree includes:
接收到组播树上行或下行方向的组播流; Receive multicast streams in the upstream or downstream direction of the multicast tree;
根据分配信息判断其是否为所述组播树在对应方向上的转发设备; 若是, 则转发该组播流, 否则丟弃该组播流。 Determine whether it is the forwarding device of the multicast tree in the corresponding direction according to the allocation information; if so, forward the multicast flow, otherwise discard the multicast flow.
3、 如权利要求 1 所述的方法, 其中, 所述组播树在下行方向是在各 个链路聚合组(LAG )或本地局域网 (LAN ) 内分配的。 3. The method of claim 1, wherein the multicast tree is allocated in each link aggregation group (LAG) or local area network (LAN) in the downlink direction.
4、 如权利要求 1 所述的方法, 其中, 一个组播树在下行方向分配的 路由网桥(RB )包括一个主用转发设备和一个或若干个备用转发设备, 所述 路由网桥(RB )判断其为组播树的主用转发设备时转发所述组播树的组播流, 否则丟弃该组播流。 4. The method of claim 1, wherein a routing bridge (RB) allocated by a multicast tree in the downlink direction includes a primary forwarding device and one or several backup forwarding devices, and the routing bridge (RB) ) forwards the multicast stream of the multicast tree when it is determined to be the active forwarding device of the multicast tree; otherwise, the multicast stream is discarded.
5、 如权利要求 4 所述的方法, 其中, 所述组播树的分配信息仅包括 当前 RB的组播树的分配信息, 在下行方向上一个组播树显式分配一个备用 转发设备, 路由网桥(RB )或其对应的链路发生故障, 故障相关的节点向所 在 RBv 内的其他所有路由网桥(RB )组播故障信息; 所述组播的故障信息 包括受影响的组播树信息或 /和受影响的组播树所在的 LAG或 LAN信息;接 收到故障信息且为受影响的组播树的备用转发设备升级为该组播树的主用转 发设备。 5. The method of claim 4, wherein the allocation information of the multicast tree only includes the allocation information of the multicast tree of the current RB, and a multicast tree in the downlink direction explicitly allocates a backup forwarding device, and the routing network When a bridge (RB) or its corresponding link fails, the fault-related node multicasts fault information to all other routing bridges (RB) in the RBv; the multicast fault information includes the affected multicast tree information. Or/and the LAG or LAN information where the affected multicast tree is located; the backup forwarding device that receives the fault information and is the affected multicast tree is upgraded to the active forwarding device of the multicast tree.
6、 如权利要求 4 所述的方法, 其中, 所述组播树的分配信息包括当 前 RB及其他各 RB的组播树的分配信息, 在下行方向上一个组播树显式分 配一个备用转发设备时, 路由网桥( RB )或其对应的链路发生故障, 故障相 关的节点向受影响组播树的备用转发设备发送故障信息; 接收到故障信息的 备用转发设备升级为该组播树的主用转发设备。 6. The method of claim 4, wherein the allocation information of the multicast tree includes the allocation information of the multicast tree of the current RB and other RBs, and a multicast tree in the downlink direction explicitly allocates a backup forwarding device. When , the routing bridge (RB) or its corresponding link fails, and the node related to the failure sends fault information to the backup forwarding device of the affected multicast tree; the node that receives the fault information The backup forwarding device is upgraded to the active forwarding device of the multicast tree.
7、 如权利要求 4 所述的方法, 其中, 所述组播树的分配信息包括当 前 RB及其他各 RB的组播树的分配信息, 在下行方向上一个组播树显式或 隐式分配若干个备用转发设备时,路由网桥( RB )或其对应的链路发生故障, 故障相关的节点向所在 RBv 内的受影响组播树的一个备用转发设备发送故 障信息; 接收该故障信息的备用转发设备升级为受影响组播树的主用转发设 备。 7. The method according to claim 4, wherein the allocation information of the multicast tree includes the allocation information of the multicast tree of the current RB and other RBs. In the downlink direction, one multicast tree explicitly or implicitly allocates several RBs. When there is a backup forwarding device, the routing bridge (RB) or its corresponding link fails, and the fault-related node sends fault information to a backup forwarding device of the affected multicast tree in the RBv; the backup device that receives the fault information The forwarding device is upgraded to the active forwarding device of the affected multicast tree.
8、 如权利要求 7 所述的方法, 其中, 故障相关的节点根据所述组播 树的分配信息随机或基于负载均衡策略确定升级为主用转发设备的备用转发 设备。 8. The method of claim 7, wherein the node related to the fault determines the backup forwarding device to be upgraded to the main forwarding device randomly or based on the load balancing policy according to the allocation information of the multicast tree.
9、 如权利要求 6或 7所述的方法, 其中, 各路由网桥( RB )利用同 一组播树分配算法或配置获取所述组播树的分配信息, 或配置获取自身的组 播树的分配信息后通过交互获取其他各 RB的组播树信息。 9. The method according to claim 6 or 7, wherein each routing bridge (RB) uses the same multicast tree allocation algorithm or configuration to obtain the allocation information of the multicast tree, or configures to obtain the allocation information of its own multicast tree. After allocating information, the multicast tree information of other RBs is obtained through interaction.
10、 如权利要求 5 所述的方法, 其中, 当前主用转发设备收到原主用 转发设备或其对应的链路的故障恢复信息后, 重新转为备用转发设备。 10. The method of claim 5, wherein the current active forwarding device switches to the backup forwarding device again after receiving the fault recovery information of the original active forwarding device or its corresponding link.
11、 一种路由网桥(RB ) , 该路由网桥包括: 11. A routing bridge (RB), which includes:
分配信息存储单元, 设置为: 存储组播树的分配信息, 所述组播树是按 上行方向和下行方向分别分配的; The allocation information storage unit is configured to: store the allocation information of the multicast tree, where the multicast tree is allocated in the uplink direction and the downlink direction respectively;
组播流转发单元, 设置为: 根据组播树的分配信息转发上行和 /或下行组 播流。 The multicast flow forwarding unit is configured to: forward the uplink and/or downlink multicast flow according to the allocation information of the multicast tree.
12、 如权利要求 11所述的路由网桥(RB ) , 其中, 所述组播流转发单 元包括: 12. The routing bridge (RB) as claimed in claim 11, wherein the multicast stream forwarding unit includes:
组播流接收模块,设置为:接收到组播树上的上行或下行方向的组播流; 组播流判断模块, 设置为: 根据分配信息判断其是否为该组播树在相应 方向上的转发设备; The multicast stream receiving module is configured to: receive the multicast stream in the upstream or downstream direction on the multicast tree; the multicast stream judgment module is configured to: determine whether it is the multicast stream in the corresponding direction of the multicast tree based on the allocation information. forwarding equipment;
组播流转发模块, 设置为: 在判断为组播树上的转发设备时, 转发该组 播流, 否则丟弃该组播流。 Multicast stream forwarding module, set to: When it is determined to be a forwarding device on the multicast tree, forward the group stream, otherwise the multicast stream is discarded.
13、 如权利要求 11所述的路由网桥(RB ) , 其中, 所述组播树在下行 方向在各个链路聚合组(LAG )或本地局域网 (LAN ) 内分配。 13. The routing bridge (RB) as claimed in claim 11, wherein the multicast tree is allocated in each link aggregation group (LAG) or local area network (LAN) in the downstream direction.
14、 如权利要求 11所述的路由网桥(RB ) , 其中, 所述组播流判断模 块设置为: 一个组播树在下行方向分配的 RB包括一个主用转发设备和一个 或若干个备用转发设备 ,判断其是否为组播树在下行方向上的主用转发设备 , 所述组播流转发模块在判断为组播树的主用转发设备时, 转发该组播流, 否 则丟弃该组播流。 14. The routing bridge (RB) according to claim 11, wherein the multicast flow judgment module is configured to: the RB allocated by a multicast tree in the downlink direction includes a primary forwarding device and one or several backup devices. The forwarding device determines whether it is the primary forwarding device of the multicast tree in the downlink direction. When the multicast stream forwarding module determines that it is the primary forwarding device of the multicast tree, it forwards the multicast stream, otherwise it discards the group. Streaming.
15、 如权利要求 14所述的路由网桥( RB ) ,其中,所述路由网桥( RB ) 还包括: 15. The routing bridge (RB) as claimed in claim 14, wherein the routing bridge (RB) further includes:
信息接收单元, 设置为: 在该路由网桥(RB )或其对应的链路发生故障 时, 接收故障信息; The information receiving unit is set to: receive fault information when the routing bridge (RB) or its corresponding link fails;
状态更新单元, 设置为: 在接收到故障信息且该路由网桥(RB )是受影 响的组播树的备用转发设备, 更新为该组播树的主用转发设备。 The status update unit is set to: after receiving the fault information and the routing bridge (RB) is the backup forwarding device of the affected multicast tree, update the main forwarding device of the multicast tree.
16、 如权利要求 15所述的路由网桥(RB ) , 其中, 所述分配信息存储 单元存储的分配信息仅包括自身的组播树的分配信息, 在下行方向上一个组 播树显式分配一个备用转发设备, 所述故障信息由故障相关的节点通过组播 的方式发送, 所述组播的故障信息包括受影响的组播树信息或受影响的组播 树所在的 LAG或 LAN信息; 或, 所述分配信息存储单元存储的组播树的分 配信息包括自身及其他各 RB的组播树的分配信息, 在下行方向上一个组播 树显式分配一个备用转发设备, 所述故障信息由故障相关的节点通过单播的 方式发送给备用转发设备。 16. The routing bridge (RB) as claimed in claim 15, wherein the allocation information stored in the allocation information storage unit only includes allocation information of its own multicast tree, and each multicast tree explicitly allocates a multicast tree in the downlink direction. Backup forwarding device, the fault information is sent by the node related to the fault through multicast, and the multicast fault information includes the affected multicast tree information or the LAG or LAN information where the affected multicast tree is located; or , the allocation information of the multicast tree stored in the allocation information storage unit includes the allocation information of the multicast tree of itself and other RBs. In the downlink direction, a multicast tree is explicitly allocated a backup forwarding device, and the fault information is determined by the fault. The relevant nodes are sent to the backup forwarding device through unicast.
17、 如权利要求 15所述的路由网桥(RB ) , 其中, 所述分配信息存储 单元存储的组播树的分配信息包括自身及其他各 RB的组播树的分配信息, 在下行方向上一个组播树显式或隐式分配若干个备用转发设备, 所述故障信 息通过单播的方式发送, 接收所述故障信息的 RB是受影响组播树的其中一 个备用转发设备。 17. The routing bridge (RB) according to claim 15, wherein the allocation information of the multicast tree stored in the allocation information storage unit includes the allocation information of the multicast tree of itself and other RBs, one in the downlink direction. The multicast tree explicitly or implicitly allocates several backup forwarding devices, the fault information is sent in a unicast manner, and the RB that receives the fault information is one of the backup forwarding devices in the affected multicast tree.
18、 如权利要求 11所述的路由网桥( RB ) ,其中,所述路由网桥( RB ) 还包括: 18. The routing bridge (RB) as claimed in claim 11, wherein the routing bridge (RB) further includes:
分配信息同步单元, 设置为: 与同一 RBv的 RB同步各自的组播树的分 配信息; The allocation information synchronization unit is set to: synchronize the allocation information of their respective multicast trees with RBs of the same RBv;
所述故障信息由故障相关的节点根据同步的分配信息通过单播的方式发 送。 The fault information is sent by the fault-related nodes in a unicast manner according to the synchronized allocation information.
19、 如权利要求 17所述的路由网桥(RB ) , 其中, 所述路由网桥还包 括故障信息发送单元, 设置为: 根据所述组播树的分配信息随机或基于负载 均衡策略确定故障信息发送的单播对象。 19. The routing bridge (RB) according to claim 17, wherein the routing bridge further includes a fault information sending unit, configured to: determine the fault randomly according to the allocation information of the multicast tree or based on a load balancing policy The unicast object to which the information is sent.
20、 如权利要求 16或 17所述的路由网桥, 其中, 所述分配信息存储 单元设置为: 利用同一组播树分配算法或配置获取自身及其他各 RB的组播 树的分配信息,或配置获取自身的组播树的分配信息,并交互获取其他各 RB 的组播树信息。 20. The routing bridge according to claim 16 or 17, wherein the allocation information storage unit is configured to: obtain the allocation information of the multicast tree of itself and other RBs using the same multicast tree allocation algorithm or configuration, or Configure to obtain the distribution information of its own multicast tree, and interactively obtain the multicast tree information of other RBs.
21、 如权利要求 15所述的路由网桥(RB ) , 其中, 信息接收单元, 还 设置为: 在所述路由网桥为当前主用转发设备时, 接收原主用转发设备或其 对应的链路的故障恢复信息; 21. The routing bridge (RB) as claimed in claim 15, wherein the information receiving unit is further configured to: when the routing bridge is the current active forwarding device, receive the original active forwarding device or its corresponding link. Road fault recovery information;
状态更新单元, 设置为: 在接收到故障恢复信息后, 更新为该组播树的 备用转发设备。 The status update unit is set to: after receiving the fault recovery information, update the backup forwarding device of the multicast tree.
PCT/CN2013/082327 2012-11-20 2013-08-27 Multicast flow forwarding implementation method and routing bridge (rb) WO2014079246A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210470320.4A CN102970231B (en) 2012-11-20 2012-11-20 Multicast data flow forwards implementation method and route-bridge(RB)
CN201210470320.4 2012-11-20

Publications (1)

Publication Number Publication Date
WO2014079246A1 true WO2014079246A1 (en) 2014-05-30

Family

ID=47800118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082327 WO2014079246A1 (en) 2012-11-20 2013-08-27 Multicast flow forwarding implementation method and routing bridge (rb)

Country Status (2)

Country Link
CN (1) CN102970231B (en)
WO (1) WO2014079246A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822097A (en) * 2019-11-15 2021-05-18 华为技术有限公司 Message forwarding method, first network device and first device group

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970231B (en) * 2012-11-20 2018-05-01 中兴通讯股份有限公司 Multicast data flow forwards implementation method and route-bridge(RB)
CN103973471B (en) * 2013-01-31 2018-11-02 中兴通讯股份有限公司 A kind of notifying method and device of TRILL distribution trees failure
CN104426777B (en) * 2013-09-03 2018-07-13 华为技术有限公司 Route renewing method and routing device
CN104601477B (en) * 2013-10-31 2018-08-21 华为技术有限公司 The cut-in method and route bridging equipment of TRILL network
CN104702506B (en) * 2013-12-09 2018-10-19 华为技术有限公司 A kind of message transmitting method, network node and message transfer system
CN104717140B (en) 2013-12-11 2018-03-09 华为技术有限公司 The fault handling method and device of edge route bridge device in TRILL network
EP3132574B1 (en) * 2014-05-13 2020-07-08 Huawei Technologies Co. Ltd. Active-active access to transparent interconnection of lots of links (trill) edges
CN106330703A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Route selection method and device, routing bridge and network
CN111988220B (en) * 2020-08-14 2021-05-28 山东大学 Multi-target disaster backup method and system among data centers based on reinforcement learning

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025541A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for realizing multicast protection
CN102970231A (en) * 2012-11-20 2013-03-13 中兴通讯股份有限公司 Multicast flow forwarding implementation method and routing bridge (RB)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005244319A (en) * 2004-02-24 2005-09-08 Casio Comput Co Ltd Information distribution system and information distribution method
US7653075B2 (en) * 2005-05-23 2010-01-26 Juniper Networks, Inc. Processing communication flows in asymmetrically routed networks
CN101170503B (en) * 2007-11-23 2010-08-18 中兴通讯股份有限公司 An optimization method for multicast route ant group algorithm
CN101459596B (en) * 2007-12-14 2012-07-04 华为技术有限公司 Method, system and equipment for multicast data transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025541A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for realizing multicast protection
CN102970231A (en) * 2012-11-20 2013-03-13 中兴通讯股份有限公司 Multicast flow forwarding implementation method and routing bridge (RB)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SENEVIRATHNE, T. ET AL.: "Coordinated Multicast Trees (CMT) for TRILL, draft-ietf-trill-cmt-Ol.txt", 8 November 2012 (2012-11-08), pages 1 - 14 *
YU, WENXUE: "Application of multicast technology in FTTH EPON system", COMMUNICATIONS WORLD, 31 December 2011 (2011-12-31), pages 26 - 27 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822097A (en) * 2019-11-15 2021-05-18 华为技术有限公司 Message forwarding method, first network device and first device group

Also Published As

Publication number Publication date
CN102970231A (en) 2013-03-13
CN102970231B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
WO2014079246A1 (en) Multicast flow forwarding implementation method and routing bridge (rb)
US8953590B1 (en) Layer two virtual private network having control plane address learning supporting multi-homed customer networks
US9197583B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
US8964531B2 (en) Resilient attachment to provider link state bridging (PLSB) networks
US8767731B2 (en) Method and apparatus for MPLS label allocation for a BGP MAC-VPN
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
US8537816B2 (en) Multicast VPN support for IP-VPN lite
US9100203B2 (en) IP multicast over multi-chassis trunk
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
US20230090072A1 (en) Protocol independent multicast (pim) designated router (dr) election
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
US8902794B2 (en) System and method for providing N-way link-state routing redundancy without peer links in a network environment
WO2018184496A1 (en) Multi-home access method, apparatus, and multi-home node
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2018171396A1 (en) Data transmission method, device and system
WO2014117530A1 (en) Advertising method and apparatus for trill distribution tree fault
WO2013107323A1 (en) Method and device for noticing link information
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
WO2020136661A1 (en) First node, second node, third node and methods performed thereby for handling data traffic in an ethernet segment
JP7475349B2 (en) First-hop gateway redundancy in a network computing environment.
CN114915588A (en) Upstream multicast hop UMH extension for anycast deployments
Artham Virtual Private Lan Service (Architecture)

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: 13856849

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: 13856849

Country of ref document: EP

Kind code of ref document: A1