[go: up one dir, main page]

CN115955430A - Multicast routing method and routing equipment - Google Patents

Multicast routing method and routing equipment Download PDF

Info

Publication number
CN115955430A
CN115955430A CN202111176338.9A CN202111176338A CN115955430A CN 115955430 A CN115955430 A CN 115955430A CN 202111176338 A CN202111176338 A CN 202111176338A CN 115955430 A CN115955430 A CN 115955430A
Authority
CN
China
Prior art keywords
node
multicast
root
leaf
routing message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111176338.9A
Other languages
Chinese (zh)
Inventor
刘亚新
付叶伟
张耀坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN202111176338.9A priority Critical patent/CN115955430A/en
Publication of CN115955430A publication Critical patent/CN115955430A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例提供一种组播路由方法及路由设备,涉及通信技术领域,用于解决在组播路由同时部署接入侧双归保护和双根1+1保护的场景下,在公网侧存在四份相同的流量,造成公网侧带宽冗余的问题,实现降低公网侧带宽冗余,减少客户运营成本的技术效果。通过第一节点接收第一路由消息,第一路由消息包括扩展团体属性,扩展团体属性包括根节点信息,根节点信息用于指示第一节点具有根节点能力,第一节点为备叶子节点,第一节点使能根节点能力,向第二节点发送根节点信息,第二节点为主叶子节点,第一节点接收第二节点的第二路由消息,第二路由消息用于指示第一节点向第二节点传递组播流量。本申请实施例用于组播路由的过程中。

Figure 202111176338

The embodiment of the present application provides a multicast routing method and routing equipment, which relate to the field of communication technology and are used to solve the problem of deploying dual-homing protection on the access side and dual-root 1+1 protection on the multicast routing at the same time. There are four copies of the same traffic, causing the problem of bandwidth redundancy on the public network side, achieving the technical effect of reducing bandwidth redundancy on the public network side and reducing customer operating costs. The first routing message is received by the first node, the first routing message includes an extended community attribute, the extended community attribute includes root node information, and the root node information is used to indicate that the first node has root node capabilities, the first node is a standby leaf node, and the first node is a backup leaf node. A node enables the root node capability, sends root node information to the second node, the second node is the main leaf node, the first node receives the second routing message of the second node, and the second routing message is used to instruct the first node to send Two nodes deliver multicast traffic. The embodiment of the present application is used in the process of multicast routing.

Figure 202111176338

Description

一种组播路由方法及路由设备A multicast routing method and routing device

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种组播路由方法及路由设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to a multicast routing method and routing equipment.

背景技术Background technique

组播即使用组播路由协议,在组播接收端和组播源之间逐跳建立组播路由表项,最终构 造出一棵以组播源为根,以组播接收端为叶子的树状结构(即组播分发树),组播流量从根 节点开始朝着叶子节点的方向,在每个组播路由器上进行复制,直到发送至组播接收端。目 前,在组播网络中,当叶子节点与根节点之间的链路出现故障时,根节点的流量将无法传输 到叶子节点,此时该组播网络会经历一个收敛过程,即刷新组播路由表项,重新从根节点向 叶子节点转发组播流量,但是这一过程的收敛时间较长,导致组播接收端等待接收组播流量 的时间较长。Multicast is to use the multicast routing protocol to establish multicast routing table items hop by hop between the multicast receiver and the multicast source, and finally construct a multicast tree with the multicast source as the root and the multicast receiver as the leaf. Tree structure (that is, multicast distribution tree), multicast traffic starts from the root node and moves towards the direction of leaf nodes, and is replicated on each multicast router until it is sent to the multicast receiver. At present, in the multicast network, when the link between the leaf node and the root node fails, the traffic of the root node will not be transmitted to the leaf node. At this time, the multicast network will undergo a convergence process, that is, refresh the multicast routing table entry, and re-forward multicast traffic from the root node to the leaf node, but this process takes a long time to converge, resulting in a long waiting time for the multicast receiver to receive multicast traffic.

目前,提出了接入侧双归保护和双根1+1保护同时部署的方法,与组播源直接连接有两 个根节点,一个主根节点,一个备根节点,与组播接收端也直接连接有两个叶子节点,一个 主叶子节点,一个备叶子节点。两个根节点能够通过四条链路向两个叶子节点转发四份组播 流量,该四条链路包括主叶子节点到主备根节点的主链路和备链路,以及备叶子节点到主备 根节点的主链路和备链路,当主叶子节点的主链路出现故障时,可以通过其余三条链路将组 播流量转发给接收端。但由于该方法在公网侧(根节点与叶子节点之间)存在四份相同的流 量,会造成公网侧带宽冗余,导致客户运营成本高。At present, a method of simultaneous deployment of dual-homing protection on the access side and dual-root 1+1 protection is proposed. There are two root nodes directly connected to the multicast source, one primary root node and one backup root node, which are also directly connected to the multicast receiving end. The connection has two leaf nodes, one primary leaf node and one standby leaf node. Two root nodes can forward four copies of multicast traffic to two leaf nodes through four links, including the main link and backup link from the active leaf node to the active and standby root nodes, and the backup link from the standby leaf node to the active and standby nodes. The main link and backup link of the root node, when the main link of the main leaf node fails, the multicast traffic can be forwarded to the receiving end through the remaining three links. However, since this method has four copies of the same traffic on the public network side (between the root node and the leaf node), it will cause bandwidth redundancy on the public network side, resulting in high operating costs for customers.

发明内容Contents of the invention

本申请实施例提供一种组播路由方法及路由设备,可以在接入侧双归保护和双根1+1保 护同时部署的组播路由的过程中,只占用公网侧的两条链路,能够减少公网侧的带宽冗余, 降低客户运营成本。The embodiment of this application provides a multicast routing method and routing equipment, which can only occupy two links on the public network side during the multicast routing process where dual-homing protection and dual-root 1+1 protection are deployed simultaneously on the access side. It can reduce bandwidth redundancy on the public network side and reduce customer operating costs.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

第一方面,本申请实施例提供一种组播路由方法,该方法包括:第一节点接收第一路由 消息,第一路由消息包括扩展团体属性,扩展团体属性包括根节点信息,根节点信息用于指 示第一节点具有根节点能力;第一节点为组播源和组播接收端之间的备叶子节点;第一节点 使能根节点能力,向第二节点发送根节点信息;第二节点为组播源和组播接收端之间的主叶 子节点;第一节点接收第二节点的第二路由消息,第二路由消息用于指示第一节点向第二节 点传递组播流量。In the first aspect, the embodiment of the present application provides a multicast routing method, the method includes: a first node receives a first routing message, the first routing message includes an extended community attribute, the extended community attribute includes root node information, and the root node information uses To indicate that the first node has the root node capability; the first node is a standby leaf node between the multicast source and the multicast receiver; the first node enables the root node capability, and sends root node information to the second node; The node is the main leaf node between the multicast source and the multicast receiver; the first node receives the second routing message from the second node, and the second routing message is used to instruct the first node to deliver multicast traffic to the second node .

由此,本申请提供的组播路由方法,通过在路由中携带扩展团体属性,扩展团体属性包 括根节点信息,使得第一节点(即备叶子节点)具备根节点能力,第一节点通过使能根节点 能力,作为第二节点(即主叶子节点)的根节点(即备根节点),向第二节点传递组播流量。 相比于现有技术中通过严格规划cost值来控制主备根流量的传递路径,且在各站点互为组播 源的场景下公网侧依旧存在相同的四份带宽冗余,本申请能够使第一节点作为第二节点的根 节点,使第二节点从第一节点处接收组播流量,实现叶子节点的备根流量在叶子节点之间共 路,因此公网侧只存在两份相同的流量,降低了公网侧的带宽冗余,减少了客户的运营成本, 并且在各站点互为组播源的场景下也依旧能够降低公网侧的带宽冗余。Therefore, the multicast routing method provided by the present application carries the extended community attribute in the route, and the extended community attribute includes root node information, so that the first node (i.e., the standby leaf node) has the root node capability, and the first node uses Root Node Capability, as the root node (i.e. standby root node) of the second node (i.e. the primary leaf node) to deliver multicast traffic to the second node. Compared with the existing technology that strictly plans the cost value to control the transmission path of the primary and secondary root traffic, and in the scenario where each site is a multicast source for each other, there are still the same four bandwidth redundancy on the public network side, this application can Let the first node serve as the root node of the second node, make the second node receive multicast traffic from the first node, and realize the backup root traffic of the leaf nodes to share the path between the leaf nodes, so there are only two identical copies on the public network side traffic, which reduces the bandwidth redundancy on the public network side, reduces the customer's operating costs, and can still reduce the bandwidth redundancy on the public network side in the scenario where each site is a multicast source for each other.

在一种可能的设计中,第一节点接收第一路由消息包括:第一节点接收通过边界网关协 议BGP发布的第一路由消息,第一路由消息用于选择主叶子节点和备叶子节点的主根节点和 备根节点。由此,第一路由消息能够确定出主叶子节点和备叶子节点的主根节点和备根节点, 相比于现有技术中通过单播路由的方式确定主备根节点,不能更改主备根节点,使公网侧存 在相同的四份带宽冗余,本申请能够将主叶子节点和备叶子节点配置为互为备根节点,实现 叶子节点的备根流量在叶子节点之间共路,因此公网侧只存在两份相同的流量,降低了公网 侧的带宽冗余,减少了客户的运营成本,并且在各站点互为组播源的场景下也依旧能够降低 公网侧的带宽冗余。In a possible design, the first node receiving the first routing message includes: the first node receiving the first routing message issued through the Border Gateway Protocol BGP, the first routing message is used to select the active leaf node and the standby leaf node primary root node and backup root node. Therefore, the first routing message can determine the primary root node and standby root node of the active leaf node and the standby leaf node. , so that there are the same four copies of bandwidth redundancy on the public network side. This application can configure the main leaf node and the backup leaf node as backup root nodes for each other, so that the backup root traffic of the leaf nodes can share the path between the leaf nodes. Therefore There are only two copies of the same traffic on the public network side, which reduces bandwidth redundancy on the public network side, reduces customer operating costs, and can still reduce bandwidth redundancy on the public network side in the scenario where each site is a multicast source for each other. Remain.

在一种可能的设计中,第一节点接收第二节点的第二路由消息之前,该方法还包括:第 一节点向第二节点发送第一隧道建立请求,第一隧道建立请求用于建立第一节点与第二节点 之间的第一隧道,第一隧道用于第一节点和第二节点之间传递组播流量。由此,第一节点通 过发送隧道建立请求,与第二节点之间的第一隧道,第一节点通过第一隧道向第二节点之间 传递组播流量,使得叶子节点的备根流量在叶子节点之间共路,降低了公网侧的带宽冗余, 减少了客户的运营成本。In a possible design, before the first node receives the second routing message of the second node, the method further includes: the first node sends a first tunnel establishment request to the second node, and the first tunnel establishment request is used to establish the first tunnel establishment request. A first tunnel between a node and a second node, the first tunnel is used to transfer multicast traffic between the first node and the second node. Thus, the first node transmits multicast traffic to the second node through the first tunnel between the first node and the second node by sending a tunnel establishment request, so that the backup root traffic of the leaf node is The shared path between leaf nodes reduces bandwidth redundancy on the public network side and reduces operating costs for customers.

在一种可能的设计中,当第二节点携带网络组管理协议IGMP表,第一节点未携带IGMP 表时,该方法还包括:第一节点通过第一隧道接收第二节点发送的第二路由消息后,第一节 点向第三节点发送本地的第三路由消息,第三节点为与组播源直接连接的根节点,第三路由 消息用于指示第三节点向第一节点传递组播流量。由此,当出现第一节点处没有组播流量的 情况时,第一节点能够通过接收第二节点的第二路由消息,并向第三节点(即与组播源直接 连接的根节点)发送本地的第三路由消息,从而将第三节点处的组播流量引到第一节点处, 使得第一节点能够向第二节点传递组播流量,实现叶子节点的备根流量在叶子节点之间共路, 因此降低了公网侧的带宽冗余,减少了客户的运营成本。In a possible design, when the second node carries an IGMP table and the first node does not carry an IGMP table, the method further includes: the first node receives the second route sent by the second node through the first tunnel After the message, the first node sends a local third routing message to the third node, the third node is the root node directly connected to the multicast source, and the third routing message is used to instruct the third node to deliver the multicast message to the first node flow. Thus, when there is no multicast traffic at the first node, the first node can send the second routing message to the third node (i.e. the root node directly connected to the multicast source) by receiving the second routing message from the second node The local third routing message, so as to lead the multicast traffic at the third node to the first node, so that the first node can transmit the multicast traffic to the second node, and realize that the backup root traffic of the leaf nodes is between the leaf nodes Therefore, the bandwidth redundancy on the public network side is reduced, and the operating cost of customers is reduced.

第二方面,本申请实施例提供一种组播路由方法,该方法包括:第二节点接收第一节点 的根节点信息,根节点信息用于指示第一节点具有根节点能力;第一节点为组播源和组播接 收端之间的备叶子节点;第二节点为组播源和组播接收端之间的主叶子节点;第二节点向第 一节点发送第二路由消息,第二路由消息用于指示第一节点向第二节点传递组播流量。In a second aspect, the embodiment of the present application provides a multicast routing method, the method comprising: the second node receives root node information of the first node, and the root node information is used to indicate that the first node has a root node capability; the first node is The standby leaf node between the multicast source and the multicast receiver; the second node is the main leaf node between the multicast source and the multicast receiver; the second node sends the second routing message to the first node, and the second The routing message is used to instruct the first node to deliver multicast traffic to the second node.

由此,本申请提供的组播路由方法,第二节点通过接收第一节点发送的根节点信息,获 知第一节点具有作为根节点的能力,第二节点通过向第一节点发送第二路由消息,从而能够 从第一节点处接收组播流量。相比于现有技术中通过严格规划cost值来控制主备根流量的传 递路径,且在各站点互为组播源的场景下公网侧依旧存在相同的四份带宽冗余,本申请使第 一节点作为第二节点的根节点,第二节点从第一节点处获取组播流量,使得叶子节点的备根 流量在叶子节点之间共路,因此降低了公网侧的带宽冗余,减少了客户的运营成本,并且在 各站点互为组播源的场景下也依旧能够降低公网侧的带宽冗余。Thus, in the multicast routing method provided by this application, the second node learns that the first node has the ability to serve as the root node by receiving the root node information sent by the first node, and the second node sends the second routing information to the first node. message, thereby being able to receive multicast traffic from the first node. Compared with the existing technology that strictly plans the cost value to control the transmission path of the primary and secondary root traffic, and in the scenario where each site is a multicast source for each other, the public network still has the same four bandwidth redundancy, this application Let the first node act as the root node of the second node, and the second node obtains multicast traffic from the first node, so that the backup root traffic of the leaf nodes is shared between the leaf nodes, thus reducing the bandwidth redundancy on the public network side , which reduces the customer's operating costs, and can still reduce the bandwidth redundancy on the public network side in the scenario where each site is a multicast source for each other.

在一种可能的设计中,根节点信息是由扩展团体属性指示的,扩展团体属性包括在第一 路由消息中,第一路由消息是第一节点通过边界网关协议BGP接收的,第一路由消息用于选 择主叶子节点和备叶子节点的主根节点和备根节点。由此,第一路由消息能够确定出主叶子 节点和备叶子节点的主根节点和备根节点,相比于现有技术中通过单播路由的方式确定主备 根节点,不能更改主备根节点,使公网侧存在相同的四份带宽冗余,本申请能够将主叶子节 点和备叶子节点配置为互为备根节点,实现叶子节点的备根流量在叶子节点之间共路,因此 公网侧只存在两份相同的流量,降低了公网侧的带宽冗余,减少了客户的运营成本,并且在 各站点互为组播源的场景下也依旧能够降低公网侧的带宽冗余。In a possible design, the root node information is indicated by an extended community attribute, and the extended community attribute is included in the first routing message. The first routing message is received by the first node through the Border Gateway Protocol BGP. The first routing message The main root node and standby root node used to select the main leaf node and standby leaf node. Therefore, the first routing message can determine the main root node and backup root node of the main leaf node and the backup leaf node. , so that there are the same four copies of bandwidth redundancy on the public network side, this application can configure the main leaf node and the backup leaf node as backup root nodes for each other, so that the backup root traffic of the leaf nodes can share the path between the leaf nodes, so There are only two copies of the same traffic on the public network side, which reduces bandwidth redundancy on the public network side and reduces customer operating costs, and can still reduce bandwidth redundancy on the public network side in the scenario where each site is a multicast source for each other. Remain.

在一种可能的设计中,第二节点向第一节点发送第二路由消息之前,方法还包括:第二 节点接收第一节点的第一隧道建立请求,第一隧道建立请求用于建立第一节点与第二节点之 间的第一隧道,第一隧道用于第一节点和第二节点之间传递组播流量。由此,第二节点通过 接收第一节点发送的隧道建立请求,建立与第一节点之间的第一隧道,第一节点通过第一隧 道向第二节点之间传递组播流量,使得叶子节点的备根流量在叶子节点之间共路,降低了公 网侧的带宽冗余,减少了客户的运营成本。In a possible design, before the second node sends the second routing message to the first node, the method further includes: the second node receives the first tunnel establishment request of the first node, and the first tunnel establishment request is used to establish the first tunnel establishment request. The first tunnel between the node and the second node, the first tunnel is used to transfer multicast traffic between the first node and the second node. Thus, the second node establishes the first tunnel with the first node by receiving the tunnel establishment request sent by the first node, and the first node transmits multicast traffic to the second node through the first tunnel, so that the leaf The backup root traffic of the node is shared between the leaf nodes, which reduces the bandwidth redundancy on the public network side and reduces the customer's operating costs.

在一种可能的设计中,当第二节点携带网络组管理协议IGMP表,第一节点未携带IGMP 表时,该方法还包括:第二节点通过第一隧道向第一节点发送第二路由消息;第二节点接收 第一节点传递的组播流量。由此,当出现第一节点处没有组播流量的情况时,第二节点通过 第一隧道向第一节点发送第二路由消息,从第一节点处获取组播流量,实现叶子节点的备根 流量在叶子节点之间共路,因此降低了公网侧的带宽冗余,减少了客户的运营成本。In a possible design, when the second node carries an IGMP table and the first node does not carry an IGMP table, the method further includes: the second node sends a second routing message to the first node through the first tunnel ; The second node receives the multicast traffic delivered by the first node. Therefore, when there is no multicast traffic at the first node, the second node sends a second routing message to the first node through the first tunnel, and obtains multicast traffic from the first node to realize the backup root of the leaf node Traffic is shared between leaf nodes, thus reducing bandwidth redundancy on the public network side and reducing operating costs for customers.

在一种可能的设计中,第二节点向第四节点发送第四路由消息,第四节点为第二节点的 主根节点,第四路由消息用于指示第四节点向第二节点传递组播流量;第二节点接收第四节 点传递的组播流量。由此,第二节点还能够向第四节点(即主根节点)发送第四路由消息, 从第四节点处获取组播流量(即主根流量)。In a possible design, the second node sends a fourth routing message to the fourth node, the fourth node is the main root node of the second node, and the fourth routing message is used to instruct the fourth node to deliver multicast traffic to the second node ; The second node receives the multicast traffic delivered by the fourth node. Therefore, the second node can also send a fourth routing message to the fourth node (ie, the main root node), and obtain multicast traffic (ie, the main root traffic) from the fourth node.

第三方面,本申请实施例提供一种节点,该节点为第一节点,该第一节点包括:接收单 元,用于接收第一路由消息,第一路由消息包括扩展团体属性,扩展团体属性包括根节点信 息,根节点信息用于指示第一节点具有根节点能力;第一节点为组播源和组播接收端之间的 备叶子节点;发送单元,用于使能根节点能力,向第二节点发送根节点信息;第二节点为组 播源和组播接收端之间的主叶子节点;接收单元,还用于接收第二节点的第二路由消息,第 二路由消息用于指示第一节点向第二节点传递组播流量。第三方面所达到的有益效果可以参 见第一方面中有益效果。In a third aspect, the embodiment of the present application provides a node, the node is a first node, and the first node includes: a receiving unit for receiving a first routing message, the first routing message includes an extended community attribute, and the extended community attribute Including the root node information, the root node information is used to indicate that the first node has the root node capability; the first node is a standby leaf node between the multicast source and the multicast receiver; the sending unit is used to enable the root node capability, Send root node information to the second node; the second node is the main leaf node between the multicast source and the multicast receiver; the receiving unit is also used to receive the second routing message of the second node, and the second routing message is used for The first node is instructed to deliver multicast traffic to the second node. The beneficial effect achieved in the third aspect can refer to the beneficial effect in the first aspect.

在一种可能的设计中,接收单元还用于:接收通过边界网关协议BGP发布的第一路由消 息,第一路由消息用于选择主叶子节点和备叶子节点的主根节点和备根节点。In a possible design, the receiving unit is also used to: receive the first routing message issued by the Border Gateway Protocol BGP, and the first routing message is used to select the main root node and the standby root node of the active leaf node and the standby leaf node.

在一种可能的设计中,第一节点接收第二节点的第二路由消息之前,发送单元还用于: 向第二节点发送第一隧道建立请求,第一隧道建立请求用于建立第一节点与第二节点之间的 第一隧道,第一隧道用于第一节点和第二节点之间传递组播流量。In a possible design, before the first node receives the second routing message of the second node, the sending unit is further configured to: send a first tunnel establishment request to the second node, and the first tunnel establishment request is used to establish the first tunnel establishment request of the first node The first tunnel with the second node, the first tunnel is used to transfer multicast traffic between the first node and the second node.

在一种可能的设计中,接收单元还用于:当第二节点携带网络组管理协议IGMP表,第一 节点未携带IGMP表时,通过第一隧道接收第二节点发送的第二路由消息;发送单元,还用于 向第三节点发送本地的第三路由消息,第三节点为与组播源直接连接的根节点,第三路由消 息用于指示第三节点向第一节点传递组播流量。In a possible design, the receiving unit is also used for: when the second node carries the network group management protocol IGMP table, and the first node does not carry the IGMP table, receive the second routing message sent by the second node through the first tunnel; The sending unit is also used to send a local third routing message to the third node, the third node is the root node directly connected to the multicast source, and the third routing message is used to instruct the third node to deliver multicast to the first node flow.

第四方面,本申请实施例提供一种节点,该节点为第二节点,该第二节点包括:接收单 元,用于接收第一节点的根节点信息,根节点信息用于指示第一节点具有根节点能力;第一 节点为组播源和组播接收端之间的备叶子节点;第二节点为组播源和组播接收端之间的主叶 子节点;发送单元,用于向第一节点发送第二路由消息,第二路由消息用于指示第一节点向 第二节点传递组播流量。第四方面所达到的有益效果可以参见第二方面中有益效果。In a fourth aspect, the embodiment of the present application provides a node, the node is a second node, and the second node includes: a receiving unit, configured to receive root node information of the first node, and the root node information is used to indicate that the first node It has root node capability; the first node is the standby leaf node between the multicast source and the multicast receiver; the second node is the main leaf node between the multicast source and the multicast receiver; the sending unit is used to The first node sends a second routing message, and the second routing message is used to instruct the first node to deliver multicast traffic to the second node. The beneficial effects achieved in the fourth aspect can be referred to the beneficial effects in the second aspect.

在一种可能的设计中,根节点信息是由扩展团体属性指示的,扩展团体属性包括在第一 路由消息中,第一路由消息是第一节点通过边界网关协议BGP接收的,第一路由消息用于选 择主叶子节点和备叶子节点的主根节点和备根节点。In a possible design, the root node information is indicated by an extended community attribute, and the extended community attribute is included in the first routing message. The first routing message is received by the first node through the Border Gateway Protocol BGP. The first routing message The main root node and standby root node used to select the main leaf node and standby leaf node.

在一种可能的设计中,第二节点向第一节点发送第二路由消息之前,接收单元还用于: 接收第一节点的第一隧道建立请求,第一隧道建立请求用于建立第一节点与第二节点之间的 第一隧道,第一隧道用于第一节点和第二节点之间传递组播流量。In a possible design, before the second node sends the second routing message to the first node, the receiving unit is further configured to: receive a first tunnel establishment request from the first node, and the first tunnel establishment request is used to establish the first tunnel establishment request of the first node The first tunnel with the second node, the first tunnel is used to transfer multicast traffic between the first node and the second node.

在一种可能的设计中,发送单元还用于:当第二节点携带网络组管理协议IGMP表,第一 节点未携带IGMP表时,通过第一隧道向第一节点发送第二路由消息;接收单元,还用于接收 第一节点传递的组播流量。In a possible design, the sending unit is also used for: when the second node carries the network group management protocol IGMP table, and the first node does not carry the IGMP table, send the second routing message to the first node through the first tunnel; receive The unit is also used to receive the multicast traffic delivered by the first node.

在一种可能的设计中,发送单元,还用于向第四节点发送第四路由消息,第四节点为第 二节点的主根节点,第四路由消息用于指示第四节点向第二节点传递组播流量;接收单元, 还用于接收第四节点传递的组播流量。In a possible design, the sending unit is also used to send a fourth routing message to the fourth node, where the fourth node is the main root node of the second node, and the fourth routing message is used to instruct the fourth node to transfer the routing message to the second node. Multicast traffic; the receiving unit is also configured to receive multicast traffic delivered by the fourth node.

第五方面,一种计算机可读存储介质,包括计算机指令,当计算机指令在计算机或处理 器上运行时,使得计算机或处理器执行上述第一方面以及第一方面中的任一种可能的设计方 法或上述第二方面以及第二方面中的任一种可能的设计方法。In the fifth aspect, a computer-readable storage medium includes computer instructions, and when the computer instructions are run on the computer or the processor, the computer or the processor executes any possible design in the above-mentioned first aspect and the first aspect method or the above-mentioned second aspect and any possible design method in the second aspect.

第六方面,一种计算机程序产品,计算机程序产品中包括计算机指令,当计算机指令在 计算机或处理器上运行时,使得计算机或处理器执行上述第一方面以及第一方面中的任一种 可能的设计方法或上述第二方面以及第二方面中的任一种可能的设计方法。In the sixth aspect, a computer program product, the computer program product includes computer instructions, and when the computer instructions are run on the computer or the processor, the computer or the processor executes any one of the above-mentioned first aspect and the first aspect. The design method of the above-mentioned second aspect and any possible design method in the second aspect.

上述其他方面对应的有益效果,可以参见关于方法方面的有益效果的描述,此处不予赘 述。For the beneficial effects corresponding to the above-mentioned other aspects, please refer to the description about the beneficial effects of the method, and will not repeat them here.

附图说明Description of drawings

图1为一种组播路由的示意图;Fig. 1 is a schematic diagram of a multicast routing;

图2为一种组播路由的示意图;Fig. 2 is a schematic diagram of a multicast routing;

图3为一种组播路由的示意图;Fig. 3 is a schematic diagram of a multicast routing;

图4A为一种组播路由的示意图;FIG. 4A is a schematic diagram of a multicast routing;

图4B为一种组播路由的示意图;FIG. 4B is a schematic diagram of a multicast routing;

图5为一种组播路由的示意图;Fig. 5 is a schematic diagram of a multicast routing;

图6为本申请实施例提供的一种组播路由方法的应用场景示意图;FIG. 6 is a schematic diagram of an application scenario of a multicast routing method provided by an embodiment of the present application;

图7为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;

图8为本申请实施例提供的一种组播路由方法的流程示意图;FIG. 8 is a schematic flowchart of a multicast routing method provided by an embodiment of the present application;

图9为本申请实施例提供的一种组播路由的示意图;FIG. 9 is a schematic diagram of a multicast routing provided by an embodiment of the present application;

图10为本申请实施例提供的一种组播路由方法的流程示意图;FIG. 10 is a schematic flowchart of a multicast routing method provided by an embodiment of the present application;

图11为本申请实施例提供的一种组播路由方法的组播流量的传递路径示意图;FIG. 11 is a schematic diagram of a transmission path of multicast traffic in a multicast routing method provided by an embodiment of the present application;

图12为本申请实施例提供的一种电子设备的结构组成示意图;FIG. 12 is a schematic diagram of the structure and composition of an electronic device provided by an embodiment of the present application;

图13为本申请实施例提供的一种电子设备的结构组成示意图。FIG. 13 is a schematic diagram of the structure and composition of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了便于理解,示例性地给出了部分与本申请实施例相关概念的说明以供参考。如下所 示:In order to facilitate understanding, descriptions of some concepts related to the embodiments of the present application are provided by way of example for reference. As follows:

用户边缘路由器(customer edge,CE):用户边缘设备,服务提供商所连接的用户端路 由器。CE路由器通过连接一个或多个运营商边缘路由器(provider edge,PE),为用户提 供服务接入。CE路由器通常是一台互联网协议(internet protocol,IP)路由器,它与连接的PE路由器建立邻接关系。本申请实施例中,CE路由器可以为组播源或组播接收端。Customer edge router (customer edge, CE): customer edge equipment, the customer end router to which the service provider is connected. The CE router provides service access for users by connecting one or more provider edge routers (PE). A CE router is usually an Internet Protocol (IP) router, and it establishes an adjacency relationship with a connected PE router. In the embodiment of the present application, the CE router may be a multicast source or a multicast receiver.

运营商边缘路由器(provider edge,PE):是提供商的边缘设备,服务提供商骨干网的 边缘路由器,相当于多协议标签交换(multi-protocol label switching,MPLS)网络中的 标签边缘路由器(label edge router,LER)。PE路由器连接CE路由器和运营商骨干路由器 (provider,P),是最重要的网络节点。用户的流量通过PE路由器流入用户网络,或者通 过PE路由器流到MPLS骨干网。本申请实施例中,PE路由器可以为与CE路由器直接连接的根节点或叶子节点。Provider edge router (provider edge, PE): is the edge device of the provider, the edge router of the service provider backbone network, equivalent to the label edge router (label) in the multi-protocol label switching (multi-protocol label switching, MPLS) network edge router, LER). The PE router connects the CE router and the carrier's backbone router (provider, P), and is the most important network node. User traffic flows into the user network through the PE router, or flows to the MPLS backbone network through the PE router. In this embodiment of the present application, the PE router may be a root node or a leaf node directly connected to the CE router.

运营商骨干路由器(provider,P):是核心层设备,提供商路由器,服务提供商是不连 接任何CE路由器的骨干网路由设备,相当于标签交换路由器(label switchingrouter, LSR)。本申请实施例中,P路由器为连接根节点与叶子节点的P节点。Provider backbone router (provider, P): is the core layer equipment, provider router, and service provider is the backbone network routing device not connected to any CE router, which is equivalent to label switching router (label switching router, LSR). In the embodiment of the present application, the P router is a P node connecting the root node and the leaf nodes.

开销(cost)值:指到达某个路由所指的目的地址的代价,可通过手动或自动设置。本 申请实施例中,路由时会根据cost值最小的路径传递组播流量。Cost (cost) value: refers to the cost of reaching the destination address indicated by a certain route, which can be set manually or automatically. In the embodiment of this application, when routing, the multicast traffic will be delivered according to the path with the smallest cost value.

接入侧双归保护:在组播网络中设置两个与组播接收端直接连接的叶子节点,一个作为 主叶子节点,另一个作为备叶子节点,与组播源直接连接的根节点会向主叶子节点和备叶子 节点都传递组播流量。在根节点到主叶子节点这一链路正常的情况下,只有主叶子节点会将 组播流量传递给组播接收端,备叶子节点不向组播接收端传递组播流量。在主叶子节点整体 故障的情况下,备叶子节点才会向组播接收端传递组播流量。从而在主叶子节点整体故障时, 能够实现组播接收端快速接收到组播流量,避免组播接收端等待时间较长。Dual-homing protection on the access side: Set two leaf nodes directly connected to the multicast receiver in the multicast network, one as the primary leaf node and the other as the backup leaf node, and the root node directly connected to the multicast source will send Both the active leaf node and the standby leaf node transmit multicast traffic. When the link from the root node to the main leaf node is normal, only the main leaf node will pass the multicast traffic to the multicast receiving end, and the standby leaf node will not pass the multicast traffic to the multicast receiving end. In the event of an overall failure of the primary leaf node, the standby leaf node will deliver multicast traffic to the multicast receiver. Therefore, when the main leaf node fails as a whole, the multicast receiving end can quickly receive multicast traffic, avoiding a long waiting time for the multicast receiving end.

双根1+1保护:在组播网络中设置两个与组播源直接连接的根节点,一个作为主根节点, 另一个作为备根节点,主根节点和备根节点都会向与组播接收端直接连接的叶子节点传递组 播流量。在主根节点到叶子节点这一链路正常的情况下,叶子节点会将从主根节点接收的组 播流量传递给组播接收端,叶子节点不向组播接收端传递从备根节点接收的组播流量。在主 根节点到叶子节点这一链路故障的情况下,叶子节点才会向组播接收端传递从备根节点接收 的组播流量。从而在主根节点到叶子节点这一链路故障时,能够实现组播接收端快速接收到 组播流量,避免组播接收端等待时间较长。Dual-root 1+1 protection: Set two root nodes directly connected to the multicast source in the multicast network, one as the primary root node and the other as the backup root node, both the primary root node and the backup root node will communicate with the multicast receiver Directly connected leaf nodes pass multicast traffic. When the link from the main root node to the leaf node is normal, the leaf node will pass the multicast traffic received from the main root node to the multicast receiving end, and the leaf node will not pass the multicast traffic received from the standby root node to the multicast receiving end. broadcast traffic. When the link from the primary root node to the leaf node fails, the leaf node will transmit the multicast traffic received from the standby root node to the multicast receiving end. Therefore, when the link from the main root node to the leaf node fails, the multicast receiving end can quickly receive the multicast traffic, avoiding the long waiting time of the multicast receiving end.

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在 本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本实 施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is only a description of associated objects The association relationship of indicates that there may be three kinds of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. In addition, in the description of this embodiment, unless otherwise specified, "plurality" means two or more.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示 或者隐含地包括一个或者更多个该特征。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of these features.

互联网协议第6版网络封装的比特索引显式复制(bit index explicitreplication internet protocol version 6encapsulation,BIERv6)是目前组播领域存在的一种组播 技术。在互联网协议第6版(internet protocol version 6,IPv6)网络中,即公网为IPv6 网络中,使用本地IPv6(native IPv6)网络的封装来承载组播业务,例如公网组播和组播 虚拟专用网络(multicast virtual private network,MVPN)组播业务等。内部网关协议 (interior gateway protocol,IGP)使用IS-IS for IPv6建立BIERv6的转发表,边界网关 协议(border gateway protocol,BGP)使用IPv6传输控制协议(transmission control protocol,TCP)建立连接,使用BGP-MP发布vpnv4、vpnv6、unicast4、unicast6、mvpn4 或mvpn6等各种地址族的路由。Bit index explicit replication internet protocol version 6 encapsulation (BIERv6) of Internet Protocol version 6 network encapsulation is a multicast technology that currently exists in the multicast field. In the Internet protocol version 6 (internet protocol version 6, IPv6) network, that is, the public network is an IPv6 network, the encapsulation of the local IPv6 (native IPv6) network is used to carry multicast services, such as public network multicast and multicast virtual Private network (multicast virtual private network, MVPN) multicast service, etc. The interior gateway protocol (IGP) uses IS-IS for IPv6 to establish a BIERv6 forwarding table, the border gateway protocol (border gateway protocol, BGP) uses the IPv6 transmission control protocol (transmission control protocol, TCP) to establish connections, and uses BGP- MP publishes routes of various address families such as vpnv4, vpnv6, unicast4, unicast6, mvpn4 or mvpn6.

BIERv6在BGP层面传递信息时,MVPN over BIERv6(组播VPN业务迭代到BIERv6隧道) 控制消息用于实现MVPN成员自动发现,建立和维护选择性运营商组播服务接口(provider mmulticast service interface,PMSI)隧道,传递用户侧组播加入路由(Customer multicast route,C-multicast route)以便实现私网组播成员加入与离开等功能。其中,BGP MVPN路 由共分为7类,即组播虚拟专用网络A-D(multicast virtualprivate network auto-discovery,MVPN A-D)路由(包括5类路由)和C-multicast路由(包括2类路由)。 MVPN A-D路由主要用于MVPN成员自动发现和协助MPLS进行PMSI隧道的建立。C-multicast 路由即来自于私网的组播路由,主要用于发起私网用户加入、离开和指导私网组播数据流量 传递。其中,C-multicast路由中携带C-multicast Import RT,即到组播源单播路由的VRF Route Import Extended Community,Import RT主要在多个发送者PE(Sender PE)中,用 于帮助发送者站点PE(Sender Site PE)识别接收者站点PE(ReceiverSite PE)发来的 BGP C-multicast路由是不是该由自己处理,以及该路由应该安装到自己的哪一个VPN实例 路由表。C-multicast路由支持MVPN的PE发布的VPN-IP路由(BGP VPNv4传递的私网IPv4 单播路由)包含C-multicast Import RT属性,该属性属于IP类型的扩展团体属性,主要用 于C-multicast路由的发布,私网或者汇聚点(rendezvous point,RP)的VPN-IP路由发布 时必须携带此属性,而其他路由没有必要携带此属性。When BIERv6 transmits information at the BGP level, the MVPN over BIERv6 (multicast VPN service iteration to BIERv6 tunnel) control message is used to realize the automatic discovery of MVPN members, establish and maintain the selective operator multicast service interface (provider mmulticast service interface, PMSI) The tunnel transmits the customer multicast route (Customer multicast route, C-multicast route) so as to realize functions such as private network multicast members joining and leaving. Among them, BGP MVPN routes are divided into 7 types, namely multicast virtual private network A-D (multicast virtual private network auto-discovery, MVPN A-D) routes (including 5 types of routes) and C-multicast routes (including 2 types of routes). MVPN A-D routing is mainly used for automatic discovery of MVPN members and assisting MPLS in establishing PMSI tunnels. The C-multicast route is the multicast route from the private network, which is mainly used to initiate private network users to join, leave and guide the transmission of private network multicast data traffic. Among them, the C-multicast route carries C-multicast Import RT, that is, the VRF Route Import Extended Community to the multicast source unicast route. Import RT is mainly used in multiple sender PEs (Sender PEs) to help sender sites PE (Sender Site PE) identifies whether the BGP C-multicast route sent by the receiver site PE (ReceiverSite PE) should be processed by itself, and which VPN instance routing table the route should be installed in. C-multicast routing supports the VPN-IP routing (private network IPv4 unicast routing transmitted by BGP VPNv4) issued by the PE of MVPN, which contains the C-multicast Import RT attribute, which belongs to the extended community attribute of IP type and is mainly used for C-multicast This attribute must be carried when the VPN-IP route of the private network or rendezvous point (RP) is advertised, but other routes do not need to carry this attribute.

参考图1,对组播路由的过程大致进行介绍。其中,根节点(Root)发布给叶子节点(Leaf) 的VPNv4路由中包含VRF Route Import Extended Community(以下简称VRFImport RT)属 性,Leaf在向Root发送BGP C-multicast route(BGP C组播路由)时会将此属性附带在路 由中,因此当存在多个Root时,接收到BGP C-multicast route的Root就可以识别Leaf发 来的BGP C-multicast route是不是该由自己处理,以及该路由应该安装到自己的哪一个VPN 实例路由表中。Referring to FIG. 1 , the process of multicast routing is roughly introduced. Among them, the VPNv4 route released by the root node (Root) to the leaf node (Leaf) contains the VRF Route Import Extended Community (hereinafter referred to as VRFImport RT) attribute, and the Leaf is sending a BGP C-multicast route (BGP C multicast route) to the Root This attribute will be attached to the route, so when there are multiple Roots, the Root that receives the BGP C-multicast route can identify whether the BGP C-multicast route sent by the Leaf should be handled by itself, and the route Which VPN instance routing table should be installed.

VRF Import RT的取值格式是Administrator field:Local Administratorfield,其 中Administrator field的取值是本机MVPN ID,Local Administrator field是Sender PE 本地VPN实例的标识(VRF Index ID)。The value format of VRF Import RT is Administrator field: Local Administratorfield, where the value of Administrator field is the local MVPN ID, and the Local Administrator field is the identifier of the Sender PE local VPN instance (VRF Index ID).

如图1所示,PE1和PE2都是Root,PE3是Leaf。PE1和PE2都与vpn1和vpn2相连, PE1上vpn1的RF Import RT是1.1.1.9:1,vpn2的RF Import RT是1.1.1.9:2;PE2上 vpn1的RFImport RT是2.2.2.9:1,vpn2的RF Import RT是2.2.2.9:2。As shown in Figure 1, both PE1 and PE2 are roots, and PE3 is a leaf. Both PE1 and PE2 are connected to vpn1 and vpn2, the RF Import RT of vpn1 on PE1 is 1.1.1.9:1, the RF Import RT of vpn2 is 1.1.1.9:2; the RFI Import RT of vpn1 on PE2 is 2.2.2.9:1, vpn2 The RF Import RT is 2.2.2.9:2.

当PE1、PE2都与PE3建立BGP MVPN地址族的BGP邻居后,PE1和PE2都会向PE3发布到组播源192.168.1.2的VPNv4路由,此时PE1发布的VPNv4路由携带的VRF Import RT是1.1.1.9:1,PE2发布的VPNv4路由携带的VRF Import RT是2.2.2.9:1,PE3收到VPNv4 路由后,会将优选的路由安装到vpn1的路由表中,然后将路由的RF Import RT存储下来, 用于构造BGP C-multicast route。After PE1 and PE2 have established BGP MVPN address family BGP neighbors with PE3, both PE1 and PE2 will advertise the VPNv4 route to the multicast source 192.168.1.2 to PE3. At this time, the VRF Import RT carried in the VPNv4 route advertised by PE1 is 1.1. 1.9:1, the VRF Import RT carried by the VPNv4 route published by PE2 is 2.2.2.9:1, after PE3 receives the VPNv4 route, it will install the preferred route into the routing table of vpn1, and then store the RF Import RT of the route , used to construct a BGP C-multicast route.

假设优选的路由是PE1发布的,也即路由的RF Import RT是1.1.1.9:1。当PE3收到CE3的PIM加入消息后,会构造BGP C-multicast route,然后向PE1和PE2发送,其中这 个路由携带Rt-import属性,取值是之前存储的RF Import RT,也即1.1.1.9:1。当PE1收 到BGPC-multicast route后,发现BGP C-multicast route的Rt-import属性里 Administratorfield是1.1.1.9,也就是本机的MVPN ID,所以接收此路由,然后发现Local Administratorfield是1,所以将这条路由安装到vpn1的路由表中。Assume that the preferred route is advertised by PE1, that is, the RF Import RT of the route is 1.1.1.9:1. When PE3 receives CE3's PIM join message, it will construct a BGP C-multicast route, and then send it to PE1 and PE2. The route carries the Rt-import attribute, and the value is the previously stored RF Import RT, which is 1.1. 1.9:1. When PE1 receives the BGPC-multicast route, it finds that the Administrator field in the Rt-import attribute of the BGP C-multicast route is 1.1.1.9, which is the local MVPN ID, so it receives this route and finds that the Local Administrator field is 1, so it will This route is installed into the routing table of vpn1.

当PE2收到BGP C-multicast route后,发现BGP C-multicast route的Rt-import属 性里Administrator field是1.1.1.9,与本机的MVPN ID 2.2.2.9不匹配,所以丢弃该BGP C-multicast route,不进行处理。When PE2 receives the BGP C-multicast route, it finds that the Administrator field in the Rt-import attribute of the BGP C-multicast route is 1.1.1.9, which does not match the local MVPN ID 2.2.2.9, so it discards the BGP C-multicast route, do not process.

在MVPN over BIERv6场景中,当节点或链路发生故障时,组播业务只能等待BGP邻居收 敛后才能恢复,而BGP邻居故障收敛的时间较长,难以满足高可靠性的组播业务诉求。因此 通过配置BFD for BGP,可以一定程度上降低BGP故障的收敛时间,从而加快组播业务的故 障收敛。为了进一步提升组播业务的收敛性能,部署了双根1+1保护方案。In the MVPN over BIERv6 scenario, when a node or link fails, the multicast service can only be restored after the BGP neighbor converges, and the BGP neighbor failure takes a long time to converge, which makes it difficult to meet the requirements of high reliability multicast services . Therefore, by configuring BFD for BGP, the convergence time of BGP faults can be reduced to a certain extent, thereby speeding up the fault convergence of multicast services. To further improve the convergence performance of multicast services, a dual-root 1+1 protection scheme is deployed.

MVPN over BIERv6双根1+1保护方案例如按照图2所示的方式部署,同时部署两个Sender PE,即Root1和Root2。在Root1和Root2中分别创建以自身为比特转发入口路由器(bit forwarding ingress router,BFIR)的PMSI隧道,Leaf为这两个隧道的叶子节点。For example, the MVPN over BIERv6 dual-root 1+1 protection scheme is deployed as shown in Figure 2, and two Sender PEs, namely Root1 and Root2, are deployed at the same time. Create PMSI tunnels with themselves as bit forwarding ingress routers (BFIR) in Root1 and Root2 respectively, and Leaf is the leaf node of these two tunnels.

在Leaf中部署VPN快速重路由(Fast ReRoute,FRR),使Leaf到同一组播源存在主备 两条路由,其中以Root1发布的路由为主用路由,以Root2发布的路由为备用路由。Deploy VPN Fast ReRoute (FRR) in the Leaf so that there are two primary and secondary routes from the Leaf to the same multicast source. The route advertised by Root1 is the active route, and the route advertised by Root2 is the backup route.

在Leaf中部署私网组播快速重路由(C-multicast FRR)功能,并指定检测方式为流量 检测。当链路正常时,相同的组播数据流量同时沿主用和备用两条链路转发。叶子节点PE1 会接收以Root1为BFIR的主用隧道流量,丢弃以Root2为BFIR的备用隧道流量。Deploy the private network multicast fast rerouting (C-multicast FRR) function in Leaf, and specify the detection method as traffic detection. When the link is normal, the same multicast data traffic is forwarded along the active and standby links at the same time. The leaf node PE1 will receive the primary tunnel traffic with Root1 as the BFIR, and discard the backup tunnel traffic with Root2 as the BFIR.

由上述原理可知,MVPN Over BIERv6双根1+1保护方案在部署时,建议尽量确保主用隧 道和备用隧道的路径分离,从而避免两条隧道同时故障导致组播业务长时间中断。但是当前 技术实现只能通过规划IGP开销(cost)值来规避,对场景的限制较大。Based on the above principles, when deploying the MVPN Over BIERv6 dual-root 1+1 protection scheme, it is recommended to ensure that the paths of the active tunnel and the backup tunnel are separated as far as possible, so as to avoid the long-term interruption of multicast services caused by the failure of the two tunnels at the same time. However, the current technical implementation can only be avoided by planning the IGP cost (cost) value, which has relatively large restrictions on scenarios.

目前,使用接入侧双归保护和双根1+1保护同时部署的方法,会使公网侧存在四份相同 的组播流量,如图3、图4A和图4B所示。图3中示出了两个叶子节点的备根流量在两个根 节点之间共路的场景,对叶子节点-1(Leaf-1)来说,根节点-1(Root-1)为主根,Root-1到Leaf-1的链路为主链路,根节点-2(Root-2)为备根,Root-2到Leaf-1的链路为备链路。对叶子节点-2(Leaf-2)来说,Root-2为主根,Root-2到Leaf-2的链路为主链路,Root-1 为备根,Root-1到Leaf-2的链路为备链路。图3中Leaf-1的主链路(Root-1到Leaf-1的 链路)中的流量是从Root-1到P-1再到Leaf-1,Leaf-1的备链路(Root-2到Leaf-1的链 路)中的流量是从Root-2到Root-1再到P-1最后到Leaf-1,Leaf-2的主链路(Root-2到 Leaf-2的链路)中的流量是从Root-2到P-2再到Leaf-2,Leaf-2的备链路(Root-1到Leaf-2 的链路)中的流量是从Root-1到Root-2再到P-2最后到Leaf-2。可以看出,根节点处的组 播流量有两个走向,以Root-1为例,一个走向是从Root-1到Leaf-1的方向,另一个走向是 从Root-1到Root-2的方向,因此Leaf-1和Leaf-2的备根流量会在Root-1到Root-2之间 共路,使得公网侧(根节点与叶子节点之间)存在四份相同的组播流量。At present, the simultaneous deployment of dual-homing protection on the access side and dual-root 1+1 protection will result in four copies of the same multicast traffic on the public network side, as shown in Figure 3, Figure 4A, and Figure 4B. Figure 3 shows the scenario where the alternate root traffic of two leaf nodes is shared between two root nodes. For leaf node-1 (Leaf-1), root node-1 (Root-1) is the main root , the link from Root-1 to Leaf-1 is the primary link, the root node-2 (Root-2) is the backup root, and the link from Root-2 to Leaf-1 is the backup link. For leaf node-2 (Leaf-2), Root-2 is the main root, the link from Root-2 to Leaf-2 is the main link, Root-1 is the backup root, and the link from Root-1 to Leaf-2 The road is the backup link. In Figure 3, the traffic on the primary link of Leaf-1 (the link from Root-1 to Leaf-1) is from Root-1 to P-1 and then to Leaf-1, and the traffic on the backup link of Leaf-1 (Root-1 2 to Leaf-1 link) traffic is from Root-2 to Root-1 to P-1 and finally to Leaf-1, the main link of Leaf-2 (Root-2 to Leaf-2 link The traffic in ) is from Root-2 to P-2 and then to Leaf-2, and the traffic in the standby link of Leaf-2 (the link from Root-1 to Leaf-2) is from Root-1 to Root-2 Then to P-2 and finally to Leaf-2. It can be seen that the multicast traffic at the root node has two directions. Taking Root-1 as an example, one direction is from Root-1 to Leaf-1, and the other direction is from Root-1 to Root-2. Therefore, the backup root traffic of Leaf-1 and Leaf-2 will share the path between Root-1 and Root-2, so that there are four copies of the same multicast traffic on the public network side (between the root node and the leaf node).

图4A和图4B中示出了两个叶子节点的备根流量在两个P节点之间共路的场景,图4A和 图4B表示的含义相同,其中,Leaf-1和Leaf-2的主备根与图3中相同,Leaf-1和Leaf-2的主链路中的流量传递路径也与图3中相同,此处不过多赘述。图4A和图4B中Leaf-1的备链路(Root-2到Leaf-1的链路)中的流量是从Root-2到P-2再到P-1最后到Leaf-1,Leaf-2的备链路(Root-1到Leaf-2的链路)中的流量是从Root-1到P-1再到P-2最后到Leaf-2, 因此Leaf-1和Leaf-2的备根流量会在P-1到P-2之间共路。可以看出,P节点处组播流量 有两个走向,以P-1为例,一个走向是从P-1到Leaf-1的方向,另一个走向是P-1到P-2的 方向,因此Leaf-1和Leaf-2的备根流量在两个P节点之间共路,而由于根节点处的组播流 量只一个走向,相当于在Root-1到P-1这条链路上只有一份组播流量,因此相比图3中的带 宽冗余来说,图4A和图4B中的带宽冗余会有所降低,但公网侧的P节点到叶子节点之间依 旧存在四份相同的组播流量。Figure 4A and Figure 4B show the scenario where the backup root traffic of two leaf nodes is shared between two P nodes, and Figure 4A and Figure 4B represent the same meaning, where the main The backup root is the same as that in Figure 3, and the traffic transmission paths in the main links of Leaf-1 and Leaf-2 are also the same as in Figure 3, so we won't repeat them here. In Figure 4A and Figure 4B, the traffic in the backup link of Leaf-1 (the link from Root-2 to Leaf-1) is from Root-2 to P-2 to P-1 and finally to Leaf-1, Leaf- The traffic on the backup link of 2 (the link from Root-1 to Leaf-2) is from Root-1 to P-1, then to P-2, and finally to Leaf-2. Therefore, the backup links of Leaf-1 and Leaf-2 Root traffic will be shared between P-1 and P-2. It can be seen that the multicast traffic at the P node has two directions. Taking P-1 as an example, one direction is from P-1 to Leaf-1, and the other direction is from P-1 to P-2. Therefore, the backup root traffic of Leaf-1 and Leaf-2 share the path between the two P nodes, and since the multicast traffic at the root node has only one direction, it is equivalent to the link from Root-1 to P-1 There is only one copy of multicast traffic on the Internet, so compared to the bandwidth redundancy in Figure 3, the bandwidth redundancy in Figure 4A and Figure 4B will be reduced, but the connection between the P node and the leaf node on the public network side is still There are four copies of the same multicast traffic.

在接入侧双归保护和双根1+1保护同时部署时,最理想的场景是两个叶子节点的备根流 量在两个叶子节点之间共路,如图5所示,其中,Leaf-1和Leaf-2的主备根与图3、图4A 和图4B中相同,Leaf-1和Leaf-2的主链路中的流量传递路径也与图3和图4A和图4B中相同,此处不过多赘述。图5中Root-2到Leaf-1的链路中的流量是从Root-2到P-2再到Leaf-2最后到Leaf-1,Root-1到Leaf-2的链路中的流量是从Root-1到P-1再到Leaf-1最后到Leaf-2。可以看出,叶子节点处组播流量有两个走向,以Leaf-1为例,一个走向是从Leaf-1到Leaf-2的方向,另一个走向是Leaf-1到组播接收端的方向(图5中未示出),因此Leaf-1和Leaf-2的备根流量会在Leaf-1和Leaf-2之间共路,使得公网侧只存在两份相同的组播流量,能够有效减少公网侧的带宽冗余,降低客户运营成本。When dual-homing protection on the access side and dual-root 1+1 protection are deployed at the same time, the ideal scenario is that the backup root traffic of the two leaf nodes shares the path between the two leaf nodes, as shown in Figure 5, where The primary and backup roots of Leaf-1 and Leaf-2 are the same as in Figure 3, Figure 4A and Figure 4B, and the traffic transmission paths in the main links of Leaf-1 and Leaf-2 are also the same as those in Figure 3 and Figure 4A and Figure 4B The same, so I won't go into details here. In Figure 5, the traffic on the link from Root-2 to Leaf-1 is from Root-2 to P-2 to Leaf-2 and finally to Leaf-1, and the traffic on the link from Root-1 to Leaf-2 is From Root-1 to P-1 to Leaf-1 and finally to Leaf-2. It can be seen that the multicast traffic at the leaf node has two directions. Taking Leaf-1 as an example, one direction is from Leaf-1 to Leaf-2, and the other direction is from Leaf-1 to the multicast receiver ( Not shown in Figure 5), so the backup root traffic of Leaf-1 and Leaf-2 will share the path between Leaf-1 and Leaf-2, so that there are only two copies of the same multicast traffic on the public network side, which can effectively Reduce bandwidth redundancy on the public network side and reduce customer operating costs.

为了控制组播流量的路由传递路径,就需要严格规划组播网络中的cost值,确保主链路 和备链路的路径分离,从而避免主备链路同时故障导致组播业务长时间中断的情况。由于路 由时会根据cost值最小的路径传递组播流量,因此为了使组播流量的路由传递路径能够如图 5所示,即两个叶子节点的备根流量在两个叶子节点之间共路,就需要在规划cost值时使两 个叶子节点之间的链路的cost值比两个根节点之间的链路的cost值和两个P节点之间的链 路的cost值更小。例如图5中将两个叶子节点之间的链路的cost值设置为800,将两个P 节点之间的链路的cost值设置为1000,将两个根节点之间的链路的cost值设置为1000,由 于从Root-2到Leaf-1的链路以Root-2到P-2再到Leaf-2最后到Leaf-1的路径传递组播流 量时cost值最小,因此这样规划cost值能够使两个叶子节点的备根流量在两个叶子节点之 间共路。In order to control the routing transmission path of multicast traffic, it is necessary to strictly plan the cost value in the multicast network to ensure that the paths of the primary link and the backup link are separated, so as to avoid the long-term interruption of multicast services caused by the simultaneous failure of the primary and backup links Condition. Since the multicast traffic will be transmitted according to the path with the smallest cost value during routing, in order to make the routing transmission path of the multicast traffic as shown in Figure 5, that is, the alternate root traffic of the two leaf nodes is shared between the two leaf nodes. When planning the cost value, it is necessary to make the cost value of the link between the two leaf nodes smaller than the cost value of the link between the two root nodes and the cost value of the link between the two P nodes . For example, in Figure 5, set the cost value of the link between the two leaf nodes to 800, set the cost value of the link between the two P nodes to 1000, and set the cost value of the link between the two root nodes to The value is set to 1000. Since the link from Root-2 to Leaf-1 uses the path from Root-2 to P-2 to Leaf-2 and finally to Leaf-1, the cost value of the multicast traffic is the smallest, so this Planning the cost value can make the backup root traffic of the two leaf nodes share the path between the two leaf nodes.

但是,通过规划组播网络中的cost值在部分场景下依旧不能避免公网侧带宽冗余的问 题,例如在视频会议业务等各站点互为组播源的场景下,由于组播源和组播接收端的身份可 以调换,即组播源也可以是组播接收端,组播接收端也可以是组播源,因此若按照图5所示 来规划组播网络中的cost值,当组播源和组播接收端身份调换时,依旧会出现图3中两个叶 子节点的备根流量在两个根节点之间共路的场景,使得公网侧存在四份相同的组播流量,无 法解决公网侧的带宽冗余的问题。However, planning the cost value in the multicast network still cannot avoid the problem of bandwidth redundancy on the public network side in some scenarios. The identity of the multicast receiver can be switched, that is, the multicast source can also be the multicast receiver, and the multicast receiver can also be the multicast source. Therefore, if the cost value in the multicast network is planned as shown in Figure 5, when When the identities of the multicast source and the multicast receiver are swapped, the scene in Figure 3 that the standby root traffic of the two leaf nodes is shared between the two root nodes still occurs, so that there are four copies of the same multicast traffic on the public network side. traffic, which cannot solve the problem of bandwidth redundancy on the public network side.

因此,本申请提出一种组播路由方法。考虑到现有技术中接入侧双归保护和双根1+1保 护同时部署时在公网侧存在四份相同的流量,造成公网侧带宽冗余的问题,本申请在接入侧 双归保护和双根1+1保护同时部署的组播路由的场景下,通过使叶子节点互为指定根节点, 从而使叶子节点的备根流量在叶子节点之间共路,使得公网侧只存在两份相同的流量,因此 降低了公网侧的带宽冗余,减少了客户的运营成本,并且在各站点互为组播源的场景下也依 旧能够降低公网侧的带宽冗余。Therefore, this application proposes a multicast routing method. Considering that in the prior art, when dual-homing protection on the access side and dual-root 1+1 protection are deployed at the same time, there are four copies of the same traffic on the public network side, resulting in bandwidth redundancy on the public network side. In the scenario of multicast routing where dual-homing protection and dual-root 1+1 protection are deployed at the same time, by making the leaf nodes mutually designated root nodes, the backup root traffic of the leaf nodes can share the path between the leaf nodes, making the public network side There are only two copies of the same traffic, so the bandwidth redundancy on the public network side is reduced, the customer’s operating costs are reduced, and the bandwidth redundancy on the public network side can still be reduced in the scenario where each site is a multicast source for each other .

如图6所示,本申请实施例提出的组播路由方法可以应用于组播路由的场景中,具体为 接入侧双归保护和双根1+1保护同时部署的组播路由的场景中,该场景中包括多个路由器, 具体的,该多个路由器中的部分路由器可以是CE路由器,部分路由器可以是PE路由器,部 分路由器可以是P路由器等,CE路由器可以为组播源或组播接收端,PE路由器可以为与组播 源直接连接的根节点,或者为与组播接收端直接连接的叶子节点。图6中以组播网络中包括 两个P路由器、两个CE路由器和四个PE路由器为例,两个CE路由器中一个CE路由器作为 组播源,另一个CE路由器作为组播接收端,组播源用于为组播接收端提供服务,将组播流量 传递给组播接收端,组播接收端用于为用户提供服务接入,接收组播源传递的组播流量。四 个PE路由器中两个作为根节点,两个根节点包括一个主根节点和备根节点,另外两个作为叶 子节点,两个叶子节点包括一个主叶子节点和备用叶子节点,根节点用于接收组播源的组播 流量,将组播源的组播流量传递到叶子节点,叶子节点用于将组播流量传递给组播接收端。 例如,组播源可以理解为电视台,组播接收端可以理解为用户,当用户点播了一个电视节目, 相当于用户从主叶子节点点播了一个电视节目,电视台的组播流量(电视节目的数据)会通 过两个根节点传递到两个叶子节点处,两个叶子节点中的主叶子节点会将组播流量传递给用 户。As shown in Figure 6, the multicast routing method proposed in the embodiment of the present application can be applied to the scenario of multicast routing, specifically the scenario of multicast routing where dual-homing protection and dual-root 1+1 protection are deployed at the same time on the access side , this scenario includes multiple routers. Specifically, some routers among the multiple routers can be CE routers, some routers can be PE routers, some routers can be P routers, etc. CE routers can be multicast sources or group The PE router can be the root node directly connected to the multicast source, or the leaf node directly connected to the multicast receiver. In Figure 6, the multicast network includes two P routers, two CE routers, and four PE routers as an example. Among the two CE routers, one CE router is used as the multicast source, and the other CE router is used as the multicast receiver. The broadcast source is used to provide services for the multicast receiver and deliver the multicast traffic to the multicast receiver. The multicast receiver is used to provide service access for users and receive the multicast traffic delivered by the multicast source. Two of the four PE routers serve as root nodes. The two root nodes include a primary root node and a backup root node. The other two serve as leaf nodes. The two leaf nodes include a primary Receive the multicast traffic of the multicast source, and deliver the multicast traffic of the multicast source to the leaf node, and the leaf node is used to deliver the multicast traffic to the multicast receiver. For example, the multicast source can be understood as a TV station, and the multicast receiver can be understood as a user. When a user orders a TV program, it is equivalent to the user ordering a TV program from the main leaf node. The multicast traffic of the TV station (the data of the TV program ) will be passed to two leaf nodes through two root nodes, and the main leaf node in the two leaf nodes will pass the multicast traffic to the user.

本申请实施例提出的组播路由方法可以应用于上述介绍的BIERv6 MVPN,也可以应用于BIERv4、MPLS等MVPN,本申请不予限制。The multicast routing method proposed in the embodiment of this application can be applied to the BIERv6 MVPN introduced above, and can also be applied to MVPNs such as BIERv4 and MPLS, which are not limited in this application.

如图7所示,本申请实施例提出一种电子设备的硬件结构示意图。该电子设备可以为路 由设备,图7中以电子设备700示例的电子设备。电子设备700可以包括处理器701、存储 器702和通信接口703等。As shown in FIG. 7 , an embodiment of the present application proposes a schematic diagram of a hardware structure of an electronic device. The electronic device may be a routing device, such as the electronic device 700 shown in FIG. 7 . The electronic device 700 may include a processor 701, a memory 702, a communication interface 703, and the like.

可以理解的是,本申请实施例示意的结构并不构成对电子设备700的具体限定。在本申 请另一些实施例中,电子设备700可以包括比图示更多或更少的部件,或者组合某些部件, 或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组 合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 700 . In other embodiments of the present application, the electronic device 700 may include more or fewer components than shown in the illustration, or combine some components, or separate some components, or arrange different components. The illustrated components can be implemented in hardware, software or a combination of software and hardware.

处理器701可以包括一个或多个处理单元。例如:处理器701可以包括图形处理器(graphics processing unit,GPU)、中央处理器(central processing unit,CPU)、控 制器、和/或神经网络处理器(neural network processing unit,NPU)等。其中,不同的 处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设 备700也可以包括一个或多个处理器701。本申请实施例中,处理器701可以对存储器702 中存储的指令或信息进行运行或读取,对通信接口703传输的信息进行处理。Processor 701 may include one or more processing units. For example: the processor 701 may include a graphics processing unit (graphics processing unit, GPU), a central processing unit (central processing unit, CPU), a controller, and/or a neural network processor (neural network processing unit, NPU), etc. Wherein, different processing units can be independent components, and can also be integrated in one or more processors. In some embodiments, the electronic device 700 may also include one or more processors 701. In the embodiment of the present application, the processor 701 may execute or read instructions or information stored in the memory 702, and process information transmitted by the communication interface 703.

其中,处理器701是电子设备700的神经中枢和指挥中心。可以根据指令操作码和时序 信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the processor 701 is the nerve center and command center of the electronic device 700 . According to the instruction opcode and timing signal, the operation control signal can be generated to complete the control of fetching and executing instructions.

存储器702可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。 处理器701可以通过运行存储在存储器702的上述指令,从而使得电子设备700执行本申请 一些实施例中所提供的数据中心的负荷系数的计算方法等。存储器702可以包括代码存储区 和数据存储区。其中,数据存储区可存储电子设备700使用过程中所创建的数据等。此外, 存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁 盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。本申请的 实施例中,存储器702可以存储组播路由表项以及配置的代码等。Memory 702 may be used to store one or more computer programs comprising instructions. The processor 701 may run the above-mentioned instructions stored in the memory 702, so that the electronic device 700 executes the calculation method of the load factor of the data center provided in some embodiments of the present application, etc. Memory 702 may include code storage and data storage. Wherein, the data storage area can store data created during the use of the electronic device 700 and the like. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (universal flash storage, UFS) and the like. In the embodiment of the present application, the memory 702 may store multicast routing entries, configuration codes, and the like.

通信接口703可以用于与外部设备进行通信,可以是集成至少一个通信处理模块的一个 或多个器件。本申请的实施例中,通信接口703可以与其他节点的通信接口进行通信。The communication interface 703 can be used to communicate with external equipment, and can be one or more devices integrating at least one communication processing module. In the embodiment of the present application, the communication interface 703 may communicate with communication interfaces of other nodes.

应用上述本申请提供的电子设备700,下面结合附图对本申请针对电子设备700所提出 的组播路由方法中,在组播路由时,通过使叶子节点互为指定根节点,从而使叶子节点的备 根流量在叶子节点之间共路的过程进行介绍。Using the above-mentioned electronic device 700 provided by the present application, in the multicast routing method proposed by the present application for the electronic device 700 in conjunction with the accompanying drawings, in the multicast routing, by making the leaf nodes mutually designated root nodes, so that the leaf nodes The process of the backup root traffic co-pathing between the leaf nodes is introduced.

如图8所示,为本申请实施例提供的一种组播路由方法的流程示意图,该方法应用于电 子设备。以图7示出的电子设备700的硬件结构为例,该方法包括:As shown in FIG. 8, it is a schematic flow diagram of a multicast routing method provided by the embodiment of the present application, and the method is applied to electronic equipment. Taking the hardware structure of the electronic device 700 shown in FIG. 7 as an example, the method includes:

步骤801、第一节点接收第一路由消息。Step 801, the first node receives a first routing message.

其中,第一节点为与组播接收端直接连接的叶子节点,作为组播源和组播接收端之间的 备叶子节点,第一节点可以为PE路由器。第一路由消息为第二节点向第一节点发布的路由消 息,第二节点为与组播接收端直接连接的叶子节点,作为组播源和组播接收端之间的主叶子 节点,第二节点可以为PE路由器。第一路由消息中包括扩展团体属性,可以理解为第一路由 消息中携带扩展团体属性,例如当组播网络为BIERv6网络时,第一路由消息中携带IPv6扩 展团体属性即为VRF Route Import Extended Community,此外,第一路由消息中还可以包 括BGP VPNv4单播路由信息等。扩展团体属性包括根节点信息,可以理解为扩展团体属性能 够用来识别根节点。根节点信息例如可以为根节点标识,根节点信息用于指示第一节点具有 根节点能力,可以理解为第一节点能够作为叶子节点的根节点,向叶子节点传递组播流量, 还可以理解为叶子节点到组播源的路由的下一跳节点可以为第一节点。Wherein, the first node is a leaf node directly connected with the multicast receiving end, as a standby leaf node between the multicast source and the multicast receiving end, the first node may be a PE router. The first routing message is the routing message issued by the second node to the first node. The second node is a leaf node directly connected to the multicast receiving end, and serves as the main leaf node between the multicast source and the multicast receiving end. The second node may be a PE router. The first routing message includes the extended community attribute, which can be understood as carrying the extended community attribute in the first routing message. For example, when the multicast network is a BIERv6 network, the IPv6 extended community attribute carried in the first routing message is VRF Route Import Extended Community, in addition, BGP VPNv4 unicast routing information etc. can also be included in the first routing message. The extended community attribute includes root node information, which can be understood as the extended community attribute can be used to identify the root node. The root node information can be, for example, the root node identifier. The root node information is used to indicate that the first node has the root node capability. It can be understood that the first node can serve as the root node of the leaf node and transmit multicast traffic to the leaf node. It can also be understood as The next hop node of the route from the leaf node to the multicast source may be the first node.

在一些实施例中,第一节点接收第一路由消息包括:第一节点接收通过边界网关协议BGP 发布的第一路由消息。In some embodiments, the first node receiving the first routing message includes: the first node receiving the first routing message published through the Border Gateway Protocol BGP.

其中,第一路由消息为第二节点通过边界网关协议(border gateway protocol,BGP) 发布的路由消息,该第一路由消息可以为组播虚拟专用网络A-D(multicast virtualprivate network auto-discovery,MVPN A-D)路由消息。MVPN A-D路由用于MVPN成员自动发现和 协助MPLS进行运营商组播服务接口(provider mmulticast service interface,PMSI)隧 道的建立,在MVPN A-D路由中携带扩展团体属性能够使MVPN A-D路由所经过的节点都携带 根节点信息,使这些节点都具备作为根节点的能力,可以看作是为后续指定根做铺垫,因此 通过MVPN A-D路由中携带扩展团体属性能够选择出叶子节点对应的主根节点和备根节点,可 以理解为第一路由消息用于选择主叶子节点和备叶子节点的主根节点和备根节点。Wherein, the first routing message is a routing message issued by the second node through a border gateway protocol (border gateway protocol, BGP), and the first routing message may be a multicast virtual private network A-D (multicast virtual private network auto-discovery, MVPN A-D) Route messages. MVPN A-D routing is used for automatic discovery of MVPN members and assisting MPLS in establishing provider multicast service interface (PMSI) tunnels. Carrying extended community attributes in MVPN A-D routes can make the nodes that MVPN A-D routes pass through Both carry root node information, so that these nodes have the ability to be root nodes, which can be regarded as paving the way for the subsequent designated root. Therefore, the main root node and backup root corresponding to the leaf node can be selected by carrying the extended community attribute in the MVPN A-D route. node, it can be understood that the first routing message is used to select the primary root node and standby root node of the primary leaf node and standby leaf node.

示例性的,如图9所示,第一节点可以为叶子节点-2(备叶子节点),叶子节点-2接收 通过BGP发布的MVPN A-D路由,该MVPN A-D路由中携带扩展团体属性,扩展团体属性中携 带根节点信息,因此该叶子节点-2具有作为根节点的能力。Exemplarily, as shown in Figure 9, the first node may be leaf node-2 (standby leaf node), and leaf node-2 receives the MVPN A-D route issued by BGP, and the MVPN A-D route carries the extended community attribute, the extended community The attribute carries the root node information, so the leaf node-2 has the ability to be the root node.

步骤802、第一节点使能根节点能力,向第二节点发送根节点信息。Step 802, the first node enables the root node capability, and sends root node information to the second node.

其中,第二节点为与组播接收端直接连接的叶子节点,作为组播源和组播接收端之间的 主叶子节点,第二节点可以为PE路由器。第一节点具有根节点能力后,第一节点使能该根节 点能力,向第二节点发送根节点信息,第二节点接收第一节点的根节点信息,可以理解为第 一节点能够作为第二节点的根节点,即第一节点为指定根节点,以此让第二节点能够获知第 一节点具有作为根节点的能力。具体为第一节点先使能根节点能力,再通过指定备根的 MVPN-id进行关联,例如,可以在第一节点中配置使能根节点能力的代码以及关联MVPN-id 的代码,第一节点先执行使能根节点能力的代码assigned sender-enable,然后再执行关 联备根的MVPN-id的代码backup root mvpn MVPN-id,从而能够使能根节点能力并关联备根 的MVPN-id,再向第二节点发送根节点信息,相当于指定第一节点为第二节点的指定根节点 (指定备根节点)。Wherein, the second node is a leaf node directly connected with the multicast receiving end, as the main leaf node between the multicast source and the multicast receiving end, and the second node may be a PE router. After the first node has the root node capability, the first node enables the root node capability, sends root node information to the second node, and the second node receives the root node information of the first node. It can be understood that the first node can serve as the first node The root node of the second node, that is, the first node is the designated root node, so that the second node can know that the first node has the ability to be a root node. Specifically, the first node first enables the root node capability, and then associates by specifying the MVPN-id of the backup root. The node first executes the code assigned sender-enable that enables the capability of the root node, and then executes the code backup root mvpn MVPN-id associated with the MVPN-id of the backup root, so that the capability of the root node can be enabled and the MVPN-id of the backup root can be associated , and then send root node information to the second node, which is equivalent to designating the first node as the designated root node of the second node (designated backup root node).

示例性的,如图9所示,第一节点可以为叶子节点-1(主叶子节点),叶子节点-2使能 根节点能力,向叶子节点-1发送根节点信息,以此让叶子节点-1能够获知叶子节点-2具有 作为根节点的能力,从而选择叶子节点-2作为备根。Exemplarily, as shown in Figure 9, the first node can be a leaf node-1 (main leaf node), and the leaf node-2 enables the root node capability, and sends root node information to the leaf node-1, so that the leaf node -1 can learn that leaf node-2 has the ability to be the root node, so leaf node-2 is selected as the backup root.

第二节点接收第一节点的根节点信息后,即可获知第一节点具备作为根节点的能力,因 此能够选择第一节点作为第二节点的根节点(备根节点)。After the second node receives the root node information of the first node, it can know that the first node has the ability to be a root node, so it can select the first node as the root node (standby root node) of the second node.

步骤803、第一节点接收第二节点的第二路由消息。Step 803, the first node receives the second routing message from the second node.

其中,第二节点向第一节点发送第二路由消息,第二路由消息用于指示第一节点向第二 节点传递组播流量。第二路由消息例如可以为用户侧组播加入路由(customer-multicast route,C-multicast route)消息,又称C组播路由消息,C组播路由消息中包括组播成员 的加入信息,C组播路由用于发起私网用户加入、离开和指导私网组播数据流量传递。步骤 801中的第一路由消息中包括的扩展团体属性是进行C组播路由时需要的扩展团体属性,可 以理解为进行C组播路由时能够通过该扩展团体属性确定出根节点,从而向根节点发送C组 播路由消息。第二节点向第一节点发送C组播路由,第一节点接收第二节点的第二路由消息 后,第一节点即能够将组播流量传递给第二节点,相当于第一节点作为第二节点的根节点, 可以理解为第一节点作为第二节点的备根节点。Wherein, the second node sends a second routing message to the first node, and the second routing message is used to instruct the first node to deliver multicast traffic to the second node. For example, the second routing message can be a customer-multicast route (customer-multicast route, C-multicast route) message for user-side multicast, also known as C-multicast routing message, including the joining information of multicast members in the C-multicast routing message, C group Multicast routing is used to initiate private network users to join, leave and guide private network multicast data traffic transmission. The extended community attribute included in the first routing message in step 801 is the extended community attribute required when performing C multicast routing, it can be understood that the extended community attribute can be used to determine the root node when performing C multicast routing, so as to Root node sends C multicast routing message. The second node sends the C multicast route to the first node. After the first node receives the second route message from the second node, the first node can pass the multicast traffic to the second node, which is equivalent to the first node as the second node. The root node of a node can be understood as the first node as the backup root node of the second node.

示例性的,如图9所示,叶子节点-1向叶子节点-2发送第二路由消息,叶子节点-2接 收叶子节点-1的第二路由消息,因此叶子节点-2能够传递组播流量给叶子节点-1,作为叶子 节点-1的根节点(备根节点)。Exemplarily, as shown in Figure 9, the leaf node-1 sends the second routing message to the leaf node-2, and the leaf node-2 receives the second routing message of the leaf node-1, so the leaf node-2 can transmit the multicast The traffic is sent to leaf node-1 as the root node (standby root node) of leaf node-1.

在一些实施例中,在步骤803之前,该方法还包括:第一节点向第二节点发送第一隧道 建立请求,第二节点接收第一节点的第一隧道建立请求。In some embodiments, before step 803, the method further includes: the first node sends a first tunnel establishment request to the second node, and the second node receives the first tunnel establishment request of the first node.

其中,第一隧道建立请求例如可以为MVPN AD路由,第一隧道建立请求用于建立第一节 点与第二节点之间的第一隧道,第一隧道例如可以为PMSI隧道,第一隧道用于第一节点和第 二节点之间传递组播流量,可以理解为叶子节点-1需要通过第一隧道向叶子节点-2传递组播 流量。Wherein, the first tunnel establishment request can be, for example, an MVPN AD route, and the first tunnel establishment request is used to establish a first tunnel between the first node and the second node. The first tunnel can be, for example, a PMSI tunnel, and the first tunnel uses To transmit multicast traffic between the first node and the second node, it can be understood that leaf node-1 needs to transmit multicast traffic to leaf node-2 through the first tunnel.

示例性的,如图9所示,叶子节点-2向叶子节点-1发送第一隧道建立请求,叶子节点-1 接收叶子节点-2发送的第一隧道建立请求之后,会向叶子节点-2发送第一隧道建立请求应 答。以BIERv6网络场景为例,根节点(叶子节点-2)通过BGP邻居关系向根节点((叶子节 点-1)送Intra-AS I-PMSI A-D route,该路由携带了下列信息,MVPN RT(RouteTarget)、 PMSI Tunnel Attribute。叶子节点收到根节点发送的路由后,回应Leaf A-Droute,该路 由携带了下列信息,Sub-domain-id、BFR-ID、BFR-prefix。根节点收到叶子节点发送的路由 后,记录MVPN的叶子节点成员,将隧道对应BIERv6 bit string中各个叶子节点对应的bit position置1,从而将各个叶子节点加入BIERv6 I-PMSI隧道,从而根节点(叶子节点-2) 与叶子节点(叶子节点-1)之间的第一隧道建立完成。Exemplarily, as shown in Figure 9, the leaf node-2 sends the first tunnel establishment request to the leaf node-1, and after the leaf node-1 receives the first tunnel establishment request sent by the leaf node-2, it sends a tunnel establishment request to the leaf node-2. Send the first tunnel establishment request response. Taking the BIERv6 network scenario as an example, the root node (leaf node-2) sends an Intra-AS I-PMSI A-D route to the root node ((leaf node-1) through the BGP neighbor relationship. This route carries the following information, MVPN RT( RouteTarget), PMSI Tunnel Attribute. After the leaf node receives the route sent by the root node, it responds to Leaf A-Droute. The route carries the following information, Sub-domain-id, BFR-ID, BFR-prefix. The root node receives After the route sent by the leaf node, record the leaf node members of the MVPN, and set the bit position corresponding to each leaf node in the BIERv6 bit string corresponding to the tunnel to 1, so as to add each leaf node to the BIERv6 I-PMSI tunnel, so that the root node (leaf node- 2) The first tunnel with the leaf node (leaf node-1) is established.

在一些实施例中,当第二节点携带网络组管理协议(internet group managementprotocol,IGMP)表,第一节点未携带IGMP表时,第二节点通过第一隧道向第一节点发送第二路由消息,第一节点向第三节点发送本地的第三路由消息,第二节点接收第一节点传递的 组播流量。In some embodiments, when the second node carries an Internet Group Management Protocol (Internet Group Management Protocol, IGMP) table and the first node does not carry the IGMP table, the second node sends the second routing message to the first node through the first tunnel, The first node sends a local third routing message to the third node, and the second node receives the multicast traffic delivered by the first node.

其中,IGMP表用于传递组播成员的加入信息,组播成员的加入信息例如可以为PIM(C-*, C-G)或PIM(C-S,C-G),用于引组播流量。正常情况下,当有组播成员加入到该组播网络时 (一般从与组播接收端直接连接的主叶子节点处加入到组播网络中),主叶子节点处会产生 一个IGMP表,用于传递组播成员的加入信息,此外,IGMP表中的远端备份模板(remote backup profi le,RBP)还会在备叶子节点处备份一个IGMP表,使得备叶子节点处也能获知组播成员 的加入信息。当叶子节点收到组播成员的加入消息时,会通过PIM协议生成PIM Join消息, 然后通过BGP邻居关系向组播源发布C组播路由,可以理解为叶子节点有组播成员加入时表 示叶子节点需要从组播源处获取组播流量传递给组播接收端,因此若叶子节点未携带IGMP 表,则该叶子节点无法获取组播成员的加入信息,进而无法从组播源处获取组播流量。当第 二节点携带IGMP表,第一节点未携带IGMP表时,可以理解为第二节点能够从组播源处获取 组播流量,而第一节点无法从组播源处获取组播流量,即第一节点处没有组播流量,因此第 一节点就需要从组播源处将组播流量引到第一节点,具体为从与组播源直接连接的根节点处 将组播流量引到第一节点,使根节点将组播流量传递到第一节点。Wherein, the IGMP table is used to transfer the joining information of the multicast member, and the joining information of the multicast member may be, for example, PIM (C-*, C-G) or PIM (C-S, C-G), which is used to guide the multicast traffic. Under normal circumstances, when a multicast member joins the multicast network (generally joins the multicast network from the main leaf node directly connected to the multicast receiving end), an IGMP table will be generated at the main leaf node, using In addition, the remote backup profile (RBP) in the IGMP table will also back up an IGMP table at the standby leaf node, so that the standby leaf node can also know the multicast members join information. When the leaf node receives the joining message of the multicast member, it will generate a PIM Join message through the PIM protocol, and then publish the C multicast route to the multicast source through the BGP neighbor relationship. It can be understood that when the leaf node has a multicast member joining The leaf node needs to obtain multicast traffic from the multicast source and pass it to the multicast receiver. Therefore, if the leaf node does not carry the IGMP table, the leaf node cannot obtain the joining information of the multicast member, and thus cannot obtain the group traffic from the multicast source. broadcast traffic. When the second node carries the IGMP table and the first node does not carry the IGMP table, it can be understood that the second node can obtain multicast traffic from the multicast source, but the first node cannot obtain multicast traffic from the multicast source, that is There is no multicast traffic at the first node, so the first node needs to direct the multicast traffic from the multicast source to the first node, specifically, direct the multicast traffic to the first node from the root node directly connected to the multicast source A node that enables the root node to pass the multicast traffic to the first node.

由于第一节点处没有组播流量,因此当第二节点通过第一隧道向第一节点发送第二路由 消息时,第二节点无法从第一节点处获取组播流量。此时,第一节点会将从第二节点处接收 的第二路由消息转换为本地的第三路由消息,第三路由消息例如可以为C组播路由消息,用 于引组播流量。第一节点向第三节点发送本地的第三路由消息,第三节点为与组播源直接连 接的根节点,第三节点可以为PE路由器,可以理解为第一节点通过第一隧道接收第二节点发 送的第二路由消息后,向第三节点发送本地的第三路由消息,第三路由消息用于指示第三节 点向第一节点传递组播流量,相当于第一节点从第三节点处获得组播流量,以此传递给第二 节点,第二节点接收第一节点传递的组播流量。Since there is no multicast traffic at the first node, when the second node sends the second routing message to the first node through the first tunnel, the second node cannot obtain the multicast traffic from the first node. At this point, the first node will convert the second routing message received from the second node into a local third routing message. The third routing message can be, for example, a C multicast routing message for leading multicast traffic. The first node sends a local third routing message to the third node. The third node is the root node directly connected to the multicast source. The third node can be a PE router. It can be understood that the first node receives the third routing message through the first tunnel. After the second routing message sent by the second node, a local third routing message is sent to the third node, and the third routing message is used to instruct the third node to deliver multicast traffic to the first node, which is equivalent to the first node sending multicast traffic from the first node The multicast traffic obtained at the three nodes is transmitted to the second node, and the second node receives the multicast traffic transmitted by the first node.

示例性的,如图9所示,第三节点可以为根节点-2或根节点-1,以第三节点为根节点-2 为例,当叶子节点-1携带IGMP表,叶子节点-2未携带IGMP表时,叶子节点-1向叶子节点 -2发送第二路由消息以此从叶子节点-2处引组播流量,叶子节点-2收到叶子节点-1发送的 第二路由消息后,会将第二路由消息转换为本地的第三路由消息,叶子节点-2向根节点-2发 送本地的第三路由消息以此从根节点-2处引组播流量,再将从根节点-2处收到的组播流量传 递到叶子节点-1处,叶子节点-1接收叶子节点-2传递的组播流量。Exemplarily, as shown in Figure 9, the third node can be root node-2 or root node-1, taking the third node as root node-2 as an example, when leaf node-1 carries an IGMP table, leaf node-2 When the IGMP table is not carried, leaf node-1 sends a second routing message to leaf node-2 to direct multicast traffic from leaf node-2, and leaf node-2 receives the second routing message sent by leaf node-1 , will convert the second routing message into the local third routing message, and the leaf node-2 will send the local third routing message to the root node-2 to guide the multicast traffic from the root node-2, and then send the multicast traffic from the root node-2 The multicast traffic received at node-2 is transmitted to leaf node-1, and leaf node-1 receives the multicast traffic transmitted by leaf node-2.

在一些实施例中,第二节点向第四节点发送第四路由消息,第二节点接收第四节点传递 的组播流量。In some embodiments, the second node sends a fourth routing message to the fourth node, and the second node receives the multicast traffic delivered by the fourth node.

其中,第四节点为与组播源直接连接的根节点,作为第二节点的主根节点,第四节点可 以为PE路由器。第四路由消息例如可以为C组播路由消息,用于引组播流量,可以理解为第 四路由消息用于指示第四节点向第二节点传递组播流量。Wherein, the fourth node is the root node directly connected with the multicast source, and as the main root node of the second node, the fourth node can be a PE router. The fourth routing message may be, for example, a C multicast routing message, which is used to induce multicast traffic. It can be understood that the fourth routing message is used to instruct the fourth node to deliver multicast traffic to the second node.

示例性的,如图9所示,第四节点可以为根节点-1,对叶子节点-1来说,根节点-1可以 作为叶子节点-1的主根节点,叶子节点-2可以作为叶子节点-1的指定备根节点。叶子节点 -1会向根节点-1发送第四路由消息,接收根节点-1传递的组播流量,叶子节点-1还会向叶 子节点-2发送第二路由消息,接收叶子节点-2传递的组播流量。Exemplarily, as shown in Figure 9, the fourth node can be the root node-1, and for the leaf node-1, the root node-1 can be used as the main root node of the leaf node-1, and the leaf node-2 can be used as the leaf node -1 specifies the backup root node. Leaf node-1 will send the fourth routing message to root node-1, receive the multicast traffic delivered by root node-1, leaf node-1 will also send the second routing message to leaf node-2, and receive leaf node-2 Passed multicast traffic.

本申请实施例中的第一节点和第二节点均为与组播接收端直接连接的叶子节点,第一节 点和第二节点可以互为指定根,即第一节点能够作为第二节点的指定备根节点,第二节点也 能够作为第一节点的指定备根节点。Both the first node and the second node in the embodiment of the present application are leaf nodes directly connected to the multicast receiving end, and the first node and the second node can be mutually designated roots, that is, the first node can be used as the root node of the second node Specify the backup root node, and the second node can also be the designated backup root node of the first node.

由此,本申请实施例提供的一种组播路由方法,可以应用于电子设备,例如路由器中。 在进行组播路由,且接入侧双归保护和双根1+1保护同时部署时,本申请通过在MVPNA-D路 由中携带扩展团体属性,使得叶子节点具备根节点能力,从而通过配置使得两个叶子节点互 为指定备根节点,备根流量在两个叶子节点之间共路。相比于现有技术中通过单播路由的方 式选择叶子节点的主备根节点,选择与组播源直接连接的根节点作为叶子节点的主备根节点, 且需要通过严格规划cost值来控制主备根流量的传递路径,因此存在公网侧的带宽冗余的问 题,本申请的方案能够使得公网侧只存在两份相同的流量,有效降低了公网侧的带宽冗余, 减少了客户的运营成本,并且在各站点互为组播源的场景下也依旧能够降低公网侧的带宽冗 余。Therefore, the multicast routing method provided in the embodiment of the present application can be applied to electronic devices, such as routers. When performing multicast routing, and the access-side dual-homing protection and dual-root 1+1 protection are deployed at the same time, this application carries the extended community attribute in the MVPNA-D route, so that the leaf node has the root node capability, so that through the configuration Make the two leaf nodes mutually designated backup root nodes, and the backup root traffic is shared between the two leaf nodes. Compared with selecting the active and standby root nodes of the leaf nodes through unicast routing in the prior art, the root node directly connected to the multicast source is selected as the active and standby root nodes of the leaf nodes, and the cost value needs to be strictly planned. Control the transmission path of the primary and backup root traffic, so there is a problem of bandwidth redundancy on the public network side. The solution of this application can make only two copies of the same traffic exist on the public network side, effectively reducing the bandwidth redundancy on the public network side. It reduces the customer's operating costs, and can still reduce the bandwidth redundancy on the public network side in the scenario where each site is a multicast source for each other.

如图10所示,以组播路由中包括组播源、组播接收端、两个叶子节点、两个根节点以及 两个P节点为例,其中,两个叶子节点分别为叶子节点-1和叶子节点-2,两个根节点分别为 根节点-1和根节点-2,两个P节点分别为P-1和P-2。下面具体对本申请提出的组播路由方 法进行详细介绍。As shown in Figure 10, taking the multicast routing including multicast source, multicast receiver, two leaf nodes, two root nodes and two P nodes as an example, the two leaf nodes are respectively leaf node-1 and leaf node-2, the two root nodes are root node-1 and root node-2, and the two P nodes are P-1 and P-2 respectively. The multicast routing method proposed in this application will be described in detail below.

步骤1001、叶子节点-1同时向根节点-1和叶子节点-2发布MVPN A-D路由。Step 1001, the leaf node-1 publishes the MVPN A-D route to the root node-1 and the leaf node-2 at the same time.

其中,MVPN A-D路由中包括扩展团体属性,扩展团体属性中包括根节点信息,可以理解 为根节点-1和叶子节点-2携带根节点信息,具备作为根节点的能力。Among them, the MVPN A-D route includes extended community attributes, and the extended community attributes include root node information. It can be understood that root node-1 and leaf node-2 carry root node information and have the ability to serve as root nodes.

步骤1002、根节点-1和叶子节点-2使能根节点能力,向叶子节点-1发送根节点信息。Step 1002, root node-1 and leaf node-2 enable root node capabilities, and send root node information to leaf node-1.

可以理解为根节点-1和叶子节点-2配置了使能根节点能力的代码,根节点-1和叶子节 点-2运行该代码从而使能根节点能力,向叶子节点-1发送根节点信息,以此让叶子节点-1 获知该根节点-1和叶子节点-2都具备作为根节点的能力。It can be understood that root node-1 and leaf node-2 are configured with codes that enable root node capabilities, root node-1 and leaf node-2 run the code to enable root node capabilities, and send root nodes to leaf node-1 Information, so that the leaf node-1 can know that both the root node-1 and the leaf node-2 have the ability to be the root node.

步骤1003、叶子节点-1向根节点-1和叶子节点-2发布C组播路由。Step 1003, the leaf node-1 advertises the C multicast route to the root node-1 and the leaf node-2.

其中,步骤801中MVPN A-D路由中携带的扩展团体属性是进行C组播路由时需要的扩展 团体属性,进行C组播路由时能够通过该扩展团体属性确定出根节点。可以理解为,叶子节 点-1发布C组播路由时能够根据MVPN A-D路由中携带的扩展团体属性确定出主根节点为根 节点-1,备根节点为叶子节点-2,从而向根节点-1和叶子节点-2发布C组播路由,以此使根 节点-1和叶子节点-2传递组播流量给叶子节点-1。Wherein, the extended community attribute carried in the MVPN A-D route in step 801 is the extended community attribute required when performing C multicast routing, and the root node can be determined through the extended community attribute when performing C multicast routing. It can be understood that when leaf node-1 advertises C multicast routes, it can determine that the primary root node is root node-1 and the backup root node is leaf node-2 according to the extended community attribute carried in the MVPN A-D route, so that the root node- 1 and leaf node-2 publish C multicast routes, so that root node-1 and leaf node-2 deliver multicast traffic to leaf node-1.

至此,该组播网络中已完成路由发布,可以理解为该组播网络已完成了叶子节点-1的主 备根选择,其中主根节点为根节点-1,备根节点(又称指定根节点)为叶子节点-2。接下来 介绍路由发布后,在相容性运营商组播服务接口隧道(inclusive providermulticast service interface tunnel,I-PMSI Tunnel)和选择性运营商组播服务接口隧道(Selective Provider Multicast Service Interface Tunnel,S-PMSI Tunnel)中的处理过程。其中, I-PMSI隧道和S-PMSI隧道为组播路由中的两种隧道类型,当I-PMSI隧道中传递的组播流量 达到阈值后,会切换到S-PMSI隧道中进行流量传递。So far, the multicast network has completed routing publishing, which can be understood as the multicast network has completed the selection of the primary and backup roots of the leaf node-1, wherein the primary root node is the root node-1, and the backup root node (also known as the designated root node ) is the leaf node -2. Next, after the route is released, the inclusive provider multicast service interface tunnel (I-PMSI Tunnel) and the selective provider multicast service interface tunnel (Selective Provider Multicast Service Interface Tunnel, S-PMSI Tunnel) The processing in PMSI Tunnel). Among them, I-PMSI tunnel and S-PMSI tunnel are two types of tunnels in multicast routing. When the multicast traffic transmitted in the I-PMSI tunnel reaches the threshold, it will switch to the S-PMSI tunnel for traffic transmission.

在I-PMSI隧道处理过程中,存在步骤1004、步骤1005、步骤1006和步骤1007。In the I-PMSI tunneling process, there are step 1004, step 1005, step 1006 and step 1007.

步骤1004、根节点-1向叶子节点-1发送域内相容性运营商组播服务接口自动发现路由 (Intranal autonomous system Inclusive Provider Multicast ServiceInterface auto-discovery route,Intra-AS I-PMSI A-D route)。Step 1004, the root node-1 sends an Intra-AS I-PMSI A-D route (Intra-AS I-PMSI A-D route) to the leaf node-1.

步骤1005、叶子节点-1向根节点-1发送叶子节点自动发现路由(Leaf A-Droute)。Step 1005, the leaf node-1 sends the leaf node automatic discovery route (Leaf A-Droute) to the root node-1.

步骤1004和步骤1005可以理解为在根节点-1和叶子节点-1之间建立I-PMSI隧道,使 得组播源发出的组播流量到达根节点-1时,根节点-1能够通过I-PMSI隧道向叶子节点-1传 递组播流量。Step 1004 and step 1005 can be understood as establishing the I-PMSI tunnel between the root node-1 and the leaf node-1, so that when the multicast traffic sent by the multicast source reaches the root node-1, the root node-1 can pass through the I-PMSI tunnel. -PMSI tunnel transmits multicast traffic to leaf node-1.

步骤1006、叶子节点-2向叶子节点-1发送I-PMSI A-D路由。Step 1006, the leaf node-2 sends the I-PMSI A-D route to the leaf node-1.

步骤1007、叶子节点-1向叶子节点-2发送Leaf A-D路由。Step 1007, the leaf node-1 sends the Leaf A-D route to the leaf node-2.

步骤1006和步骤1007可以理解为在叶子节点-2和叶子节点-1之间建立I-PMSI隧道, 使得叶子节点-2能够通过I-PMSI隧道向叶子节点-1传递组播流量。Steps 1006 and 1007 can be understood as establishing an I-PMSI tunnel between leaf node-2 and leaf node-1, so that leaf node-2 can transmit multicast traffic to leaf node-1 through the I-PMSI tunnel.

至此,根节点-1和叶子节点-1之间的I-PMSI隧道以及叶子节点-2和叶子节点-1之间的 I-PMSI隧道建立完成,叶子节点-1向根节点-1和叶子节点-2发送用户侧组播加入路由 (Customer multicast route,C-multicast route)后,根节点-1和叶子节点-2即可通过I-PMSI 隧道向叶子节点-1传递组播流量。So far, the I-PMSI tunnel between root node-1 and leaf node-1 and the I-PMSI tunnel between leaf node-2 and leaf node-1 have been established, and leaf node-1 communicates with root node-1 and leaf node -2 After sending the customer multicast route (Customer multicast route, C-multicast route), the root node-1 and the leaf node-2 can transmit multicast traffic to the leaf node-1 through the I-PMSI tunnel.

当I-PMSI隧道中的组播流量达到阈值时,组播流量可以从I-PMSI隧道切换到S-PMSI隧 道中进行传递,存在步骤1008、步骤1009、步骤1010和步骤1011。When the multicast traffic in the I-PMSI tunnel reaches the threshold, the multicast traffic can be switched from the I-PMSI tunnel to the S-PMSI tunnel for delivery, there are steps 1008, 1009, 1010 and 1011.

步骤1008、根节点-1向叶子节点-1发送选择性运营商组播服务接口自动发现路由(S-PMSI A-D route),其中S-PMSI A-D route会携带组播服务隧道属性(PMSI TunnelAttribute)。Step 1008, the root node-1 sends a selective operator multicast service interface automatic discovery route (S-PMSI A-D route) to the leaf node-1, wherein the S-PMSI A-D route will carry the multicast service tunnel attribute (PMSI TunnelAttribute).

步骤1009、叶子节点-1向根节点-1发送Leaf A-D路由。Step 1009, the leaf node-1 sends the Leaf A-D route to the root node-1.

步骤1008和步骤1009可以理解为在根节点-1和叶子节点-1之间建立S-PMSI隧道,使 得组播源发出的组播流量到达根节点-1时,根节点-1能够通过S-PMSI隧道向叶子节点-1传 递组播流量。Step 1008 and step 1009 can be understood as establishing an S-PMSI tunnel between the root node-1 and the leaf node-1, so that when the multicast traffic sent by the multicast source reaches the root node-1, the root node-1 can pass through the S-PMSI tunnel. -PMSI tunnel transmits multicast traffic to leaf node-1.

步骤1010、叶子节点-2向叶子节点-1发送S-PMSI A-D route,其中S-PMSI A-Droute 会携带PMSI Tunnel Attribute。Step 1010, leaf node-2 sends S-PMSI A-D route to leaf node-1, wherein S-PMSI A-D route will carry PMSI Tunnel Attribute.

步骤1011、叶子节点-1向叶子节点-2发送Leaf A-D路由。Step 1011, the leaf node-1 sends the Leaf A-D route to the leaf node-2.

步骤1010和步骤1011可以理解为在叶子节点-2和叶子节点-1之间建立S-PMSI隧道, 使得组播源发出的组播流量到达叶子节点-2时,叶子节点-2能够通过S-PMSI隧道向叶子节 点-1传递组播流量。Step 1010 and step 1011 can be understood as establishing an S-PMSI tunnel between leaf node-2 and leaf node-1, so that when the multicast traffic sent by the multicast source reaches leaf node-2, leaf node-2 can pass S-PMSI tunnel The PMSI tunnel transmits multicast traffic to leaf node-1.

至此,根节点-1和叶子节点-1之间的S-PMSI隧道以及叶子节点-2和叶子节点-1之间的 S-PMSI隧道建立完成,当I-PMSI隧道中的组播流量达到阈值时,根节点-1和叶子节点-2能 够将I-PMSI隧道切换为S-PMSI隧道,通过S-PMSI隧道向叶子节点-1传递组播流量。So far, the S-PMSI tunnel between the root node-1 and the leaf node-1 and the S-PMSI tunnel between the leaf node-2 and the leaf node-1 have been established. When the multicast traffic in the I-PMSI tunnel reaches the threshold , the root node-1 and the leaf node-2 can switch the I-PMSI tunnel to the S-PMSI tunnel, and pass the multicast traffic to the leaf node-1 through the S-PMSI tunnel.

上述步骤1001-步骤1011是在叶子节点-1和叶子节点-2中都有组播成员加入时的正常 流程,若叶子节点-1处有组播成员加入,叶子节点-2处没有组播成员加入,即叶子节点-1 处携带IGMP表,叶子节点-2处未携带IGMP表时,还存在步骤1012、步骤1013和步骤1014。The above step 1001-step 1011 is the normal process when there are multicast members joining in leaf node-1 and leaf node-2. If there are multicast members joining in leaf node-1, there is no multicast member in leaf node-2. Add, that is, when the leaf node-1 carries the IGMP table, and the leaf node-2 does not carry the IGMP table, there are still steps 1012, 1013 and 1014.

步骤1012、叶子节点-1向根节点-1和叶子节点-2发送C-multicast route。Step 1012, leaf node-1 sends C-multicast route to root node-1 and leaf node-2.

步骤1012可以理解为叶子节点-1从根节点-1和叶子节点-2处引组播流量,但由于叶子 节点-2处未携带IGMP表,因此叶子节点-2处并没有组播流量,叶子节点-1无法从叶子节点 -2处接收组播流量。Step 1012 can be understood as leaf node-1 directs multicast traffic from root node-1 and leaf node-2, but since leaf node-2 does not carry an IGMP table, leaf node-2 does not have multicast traffic, and leaf node-2 does not carry multicast traffic. Node-1 cannot receive multicast traffic from leaf node-2.

步骤1013、叶子节点-2使能根节点能力,将叶子节点-1向叶子节点-2发送的C-multicast route转换为本地的C-multicast route向根节点-2发送。Step 1013, the leaf node-2 enables the root node capability, and converts the C-multicast route sent from the leaf node-1 to the leaf node-2 into a local C-multicast route and sends it to the root node-2.

步骤1013可以理解为叶子节点-2从根节点-2处引组播流量,之后叶子节点-2能够将该 组播流量传递给叶子节点-1。Step 1013 can be understood as leaf node-2 leading multicast traffic from root node-2, and then leaf node-2 can deliver the multicast traffic to leaf node-1.

步骤1014、叶子节点-2将根节点-2到叶子节点-2的隧道和叶子节点-2到叶子节点-1的 新隧道拼接。Step 1014, leaf node-2 splices the tunnel from root node-2 to leaf node-2 and the new tunnel from leaf node-2 to leaf node-1.

步骤1014可以理解为在叶子节点-2处做隧道拼接,使得根节点-2处的组播流量能够传 递到以叶子节点-2为根节点,叶子节点-1为叶子节点的新隧道上,即根节点-2处的组播流 量能够传递到叶子节点-1处。隧道拼接例如可以通过环回处理进行隧道拼接,本申请不予限 制。Step 1014 can be understood as doing tunnel splicing at the leaf node-2, so that the multicast traffic at the root node-2 can be transmitted to the new tunnel with leaf node-2 as the root node and leaf node-1 as the leaf node, That is, the multicast traffic at the root node-2 can be delivered to the leaf node-1. Tunnel splicing, for example, can be performed through loopback processing, which is not limited in this application.

隧道拼接完成之后,组播流量的传递路径如图11所示,根节点-1作为叶子节点-1的主 根,叶子节点-2作为叶子节点-1的指定备根。根节点-1向叶子节点-1传递一份组播流量, 作为叶子节点-1的主根流量,叶子节点-2向叶子节点-1传递一份组播流量,作为叶子节点 -1的备根流量,其中,叶子节点-2向叶子节点-1传递的组播流量是从根节点-2接收的。After the tunnel splicing is completed, the transmission path of the multicast traffic is shown in Figure 11. The root node-1 is the primary root of the leaf node-1, and the leaf node-2 is the designated backup root of the leaf node-1. The root node-1 transmits a multicast traffic to the leaf node-1 as the main root traffic of the leaf node-1, and the leaf node-2 transmits a multicast traffic to the leaf node-1 as the backup root traffic of the leaf node-1 , wherein the multicast traffic transmitted from leaf node-2 to leaf node-1 is received from root node-2.

上述步骤1001-步骤1014中是以主叶子节点为叶子节点-1,备叶子节点为叶子节点-2进 行介绍的,其中,主叶子节点还可以是叶子节点-2,备叶子节点还可以是叶子节点-1,具体 过程参见上述步骤1001-步骤1014,此处不过多赘述。In the above step 1001-step 1014, the main leaf node is leaf node-1, and the standby leaf node is leaf node-2. The main leaf node can also be leaf node-2, and the standby leaf node can also be leaf node-2. For leaf node-1, refer to the above step 1001-step 1014 for the specific process, which will not be described in detail here.

由此,本申请实施例提供的一种组播路由方法,可以应用于电子设备,例如路由器中。 在进行组播路由,且接入侧双归保护和双根1+1保护同时部署时,能够使得公网侧只存在两 份相同的流量,有效降低了公网侧的带宽冗余,减少了客户的运营成本。并且在叶子节点-1 处有组播成员加入,叶子节点-2处没有组播成员加入的特殊场景中,也能够通过叶子节点-2 向根节点-2发送C组播路由,使得叶子节点-2处接收到组播流量,从而叶子节点-2能够向 叶子节点-1传递组播流量,实现备根流量在两个叶子节点之间共路,有效降低了公网侧的带 宽冗余,减少了客户的运营成本。Therefore, the multicast routing method provided by the embodiment of the present application can be applied to electronic devices, such as routers. When multicast routing is performed and dual-homing protection on the access side and dual-root 1+1 protection are deployed at the same time, only two copies of the same traffic can exist on the public network side, effectively reducing bandwidth redundancy on the public network side and reducing Customer's operating costs. And in the special scenario where there are multicast members joining at leaf node-1 and no multicast members joining at leaf node-2, it is also possible to send C multicast routes to root node-2 through leaf node-2, so that leaf node- 2 receives multicast traffic, so that leaf node-2 can transmit multicast traffic to leaf node-1, so that the backup root traffic can share the path between the two leaf nodes, effectively reducing the bandwidth redundancy on the public network side. Reduced operating costs for customers.

可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结 构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各 示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。 某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和 设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned electronic equipment includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered as exceeding the scope of the embodiments of the present application.

本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以 对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。 上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说 明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时 可以有另外的划分方式。The embodiment of the present application can divide the above-mentioned electronic device into functional modules according to the above-mentioned method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,图12示出了上述实施例中涉及的电子 设备1200的一种可能的组成示意图,电子设备1200可以理解为上述实施例中涉及到的电子 设备700,电子设备1200可以理解为上述实施例中涉及到的第一节点(叶子节点-2)或第二 节点(叶子节点-1)。如图12所示,该电子设备1200可以包括:接收单元1201和发送单元 1202。In the case of dividing each functional module corresponding to each function, FIG. 12 shows a possible composition diagram of the electronic device 1200 involved in the above-mentioned embodiment, and the electronic device 1200 can be understood as the electronic device involved in the above-mentioned embodiment. 700, the electronic device 1200 can be understood as the first node (leaf node-2) or the second node (leaf node-1) involved in the foregoing embodiments. As shown in Figure 12, the electronic device 1200 may include: a receiving unit 1201 and a sending unit 1202.

其中,接收单元1201可以用于支持电子设备1200执行上述步骤801、步骤803等,和/ 或用于本文所描述的技术的其他过程。Wherein, the receiving unit 1201 can be used to support the electronic device 1200 to execute the above step 801, step 803, etc., and/or other processes for the technologies described herein.

发送单元1202可以用于支持电子设备1200执行上述步骤802等,和/或用于本文所描述 的技术的其他过程。The sending unit 1202 may be used to support the electronic device 1200 to execute the above step 802, etc., and/or other processes for the technology described herein.

需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模 块的功能描述,在此不再赘述。It should be noted that all relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional module, and will not be repeated here.

本实施例提供的电子设备1200,用于执行上述组播路由方法,因此可以达到与上述实现 方法相同的效果。The electronic device 1200 provided in this embodiment is used to execute the above-mentioned multicast routing method, so it can achieve the same effect as the above-mentioned implementation method.

在采用集成的单元的情况下,如图13所示,本申请实施例公开了一种电子设备1300, 该电子设备1300可以为上述实施例中的电子设备700。电子设备1300可以包括处理模块、 存储模块和通信模块。其中,处理模块可以用于对电子设备1300的动作进行控制管理,例如, 可以用于支持电子设备1300执行上述判断节点是否具有根节点能力、使能根节点能力、传递 组播流量等的步骤。存储模块可以用于支持电子设备1300存储程序代码和数据等。通信模块 可以用于支持电子设备1300与其他设备的通信,例如,可以用于支持电子设备1300执行上 述接收单元1201和发送单元1202执行的步骤。In the case of using an integrated unit, as shown in FIG. 13 , the embodiment of the present application discloses an electronic device 1300, and the electronic device 1300 may be the electronic device 700 in the above embodiment. The electronic device 1300 may include a processing module, a storage module and a communication module. Wherein, the processing module can be used to control and manage the actions of the electronic device 1300, for example, it can be used to support the electronic device 1300 to perform the above-mentioned steps of judging whether the node has the root node capability, enabling the root node capability, and transmitting multicast traffic, etc. The storage module can be used to support the electronic device 1300 to store program codes, data, and the like. The communication module can be used to support communication between the electronic device 1300 and other devices, for example, it can be used to support the electronic device 1300 to perform the steps performed by the receiving unit 1201 and the sending unit 1202.

当然,上述电子设备1300中的单元模块包括但不限于上述处理模块、存储模块和通信模 块。Certainly, the unit modules in the above-mentioned electronic device 1300 include but are not limited to the above-mentioned processing module, storage module and communication module.

其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述 的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一 个或多个微处理器组合等。存储模块可以是存储器。通信模块具体可以为与其他外部设备交 互的设备。例如,处理模块为处理器701,存储模块可以为存储器702,通信模块可以为通信 接口703。本申请实施例所提供的电子设备1300可以为图7所示的电子设备700。其中,上 述处理器701、存储器702、通信接口703等可以连接在一起,例如通过总线连接。Wherein, the processing module may be a processor or a controller. It may implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination that realizes computing functions, such as a combination of one or more microprocessors. The storage module may be a memory. Specifically, the communication module can be a device that interacts with other external devices. For example, the processing module is a processor 701, the storage module can be a memory 702, and the communication module can be a communication interface 703. The electronic device 1300 provided in this embodiment of the present application may be the electronic device 700 shown in FIG. 7 . Wherein, the above-mentioned processor 701, memory 702, communication interface 703, etc. may be connected together, such as through a bus.

本申请实施例还提供一种电子设备,包括一个或多个处理器以及一个或多个存储器。该 一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码, 计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执 行上述相关方法步骤实现上述实施例中的组播路由方法。The embodiment of the present application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled with one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs Perform the above related method steps to realize the multicast routing method in the above embodiment.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机 程序代码,当计算机指令在计算机或处理器上运行时,使得计算机或处理器执行上述实施例 中播路由方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer program codes, and when the computer instructions run on the computer or the processor, the computer or the processor executes the above-mentioned embodiment broadcasting routing method.

本申请的实施例还提供了一种计算机程序产品,计算机程序产品中包括计算机指令,当 计算机指令在计算机或处理器上运行时,使得计算机或处理器执行上述相关步骤,以实现上 述实施例中电子设备执行的播路由方法。The embodiment of the present application also provides a computer program product, the computer program product includes computer instructions, when the computer instructions are run on the computer or processor, the computer or processor is made to perform the above-mentioned related steps, so as to realize the above-mentioned embodiments A broadcast routing method performed by an electronic device.

其中,本实施例提供的电子设备、计算机存储介质和计算机程序产品均包括上文所提供 的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果, 此处不再赘述。Wherein, the electronic equipment, computer storage medium, and computer program product provided in this embodiment all include the corresponding method provided above, therefore, the beneficial effect that it can achieve can refer to the beneficial effect in the corresponding method provided above. effect, which will not be repeated here.

通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅 以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不 同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或 者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned by different The functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的 方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块或单元的划分, 仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结 合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的 相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信 连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods during actual implementation. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部 件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同 地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate part may or may not be physically separated, and the part shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different place. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个 单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以 采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以 存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对 现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该 软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等) 或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介 质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc, etc., which can store program codes. .

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉 本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the application. covered within the scope of protection of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (20)

1. A multicast routing method, the method comprising:
a first node receives a first routing message, wherein the first routing message comprises an extended community attribute, the extended community attribute comprises root node information, and the root node information is used for indicating that the first node has root node capability; the first node is a standby leaf node between a multicast source and a multicast receiving end;
enabling the root node capability by the first node, and sending the root node information to a second node; the second node is a main leaf node between the multicast source and the multicast receiving end;
and the first node receives a second routing message of the second node, wherein the second routing message is used for instructing the first node to transmit multicast traffic to the second node.
2. The method of claim 1, wherein receiving, by the first node, the first routing message comprises:
and the first node receives the first routing message published by a Border Gateway Protocol (BGP), and the first routing message is used for selecting a main root node and a standby root node of the main leaf node and the standby leaf node.
3. The method according to claim 1 or 2, wherein before the first node receives the second routing message of the second node, the method further comprises:
the first node sends a first tunnel establishment request to the second node, wherein the first tunnel establishment request is used for establishing a first tunnel between the first node and the second node, and the first tunnel is used for transmitting multicast traffic between the first node and the second node.
4. The method of claim 3, wherein when the second node carries a network group management protocol, IGMP, table and the first node does not carry the IGMP table, the method further comprises:
after the first node receives the second routing message sent by the second node through the first tunnel, the first node sends a local third routing message to a third node, where the third node is a root node directly connected to the multicast source, and the third routing message is used to instruct the third node to transmit multicast traffic to the first node.
5. A multicast routing method, the method comprising:
a second node receives root node information of a first node, wherein the root node information is used for indicating that the first node has root node capability; the first node is a standby leaf node between a multicast source and a multicast receiving end; the second node is a main leaf node between the multicast source and the multicast receiving end;
and the second node sends a second routing message to the first node, wherein the second routing message is used for indicating the first node to transmit the multicast flow to the second node.
6. The method of claim 5,
the root node information is indicated by an extended community attribute, the extended community attribute is included in a first routing message, the first routing message is received by the first node through a Border Gateway Protocol (BGP), and the first routing message is used for selecting a main root node and a standby root node of the main leaf node and the standby leaf node.
7. The method according to claim 5 or 6, wherein before the second node sends the second routing message to the first node, the method further comprises:
the second node receives a first tunnel establishment request of the first node, wherein the first tunnel establishment request is used for establishing a first tunnel between the first node and the second node, and the first tunnel is used for transmitting multicast traffic between the first node and the second node.
8. The method of claim 7, wherein when the second node carries an IGMP table and the first node does not carry the IGMP table, the method further comprises:
the second node sends the second routing message to the first node through the first tunnel;
and the second node receives the multicast traffic transmitted by the first node.
9. The method of claim 8,
the second node sends a fourth routing message to the fourth node, the fourth node is the primary root node of the second node, and the fourth routing message is used for indicating the fourth node to transmit multicast traffic to the second node;
and the second node receives the multicast traffic transmitted by the fourth node.
10. A node, wherein the node is a first node, and wherein the first node comprises:
a receiving unit, configured to receive a first routing message, where the first routing message includes an extended community attribute, where the extended community attribute includes root node information, and the root node information is used to indicate that the first node has root node capability; the first node is a standby leaf node between a multicast source and a multicast receiving end;
a sending unit, configured to enable the root node capability, and send the root node information to a second node; the second node is a main leaf node between the multicast source and the multicast receiving end;
the receiving unit is further configured to receive a second routing message of the second node, where the second routing message is used to instruct the first node to transmit the multicast traffic to the second node.
11. The node of claim 10, wherein the receiving unit is further configured to:
and receiving the first routing message issued through a Border Gateway Protocol (BGP), wherein the first routing message is used for selecting a main root node and a standby root node of the main leaf node and the standby leaf node.
12. The node according to claim 10 or 11, wherein before the first node receives the second routing message of the second node, the sending unit is further configured to:
sending a first tunnel establishment request to the second node, where the first tunnel establishment request is used to establish a first tunnel between the first node and the second node, and the first tunnel is used to transfer multicast traffic between the first node and the second node.
13. The node of claim 12, wherein the receiving unit is further configured to: when the second node carries a network group management protocol IGMP table and the first node does not carry the IGMP table,
receiving the second routing message sent by the second node through the first tunnel;
the sending unit is further configured to send a local third routing message to a third node, where the third node is a root node directly connected to the multicast source, and the third routing message is used to instruct the third node to transmit multicast traffic to the first node.
14. A node, wherein the node is a second node, and wherein the second node comprises:
a receiving unit, configured to receive root node information of a first node, where the root node information is used to indicate that the first node has root node capability; the first node is a standby leaf node between a multicast source and a multicast receiving end; the second node is a main leaf node between the multicast source and the multicast receiving end;
a sending unit, configured to send a second routing message to the first node, where the second routing message is used to instruct the first node to transmit a multicast traffic to the second node.
15. The node of claim 14,
the root node information is indicated by an extended community attribute, the extended community attribute is included in a first routing message, the first routing message is received by the first node through a Border Gateway Protocol (BGP), and the first routing message is used for selecting a main root node and a standby root node of the main leaf node and the standby leaf node.
16. The node according to claim 14 or 15, wherein before the second node sends the second routing message to the first node, the receiving unit is further configured to:
receiving a first tunnel establishment request of the first node, where the first tunnel establishment request is used to establish a first tunnel between the first node and the second node, and the first tunnel is used to transfer multicast traffic between the first node and the second node.
17. The node of claim 16, wherein the sending unit is further configured to: when the second node carries a network group management protocol IGMP table and the first node does not carry the IGMP table,
sending the second routing message to the first node through the first tunnel;
the receiving unit is further configured to receive the multicast traffic transmitted by the first node.
18. The node of claim 17,
the sending unit is further configured to send a fourth routing message to the fourth node, where the fourth node is the root node of the second node, and the fourth routing message is used to instruct the fourth node to transmit multicast traffic to the second node;
the receiving unit is further configured to receive the multicast traffic transmitted by the fourth node.
19. A computer readable storage medium comprising computer instructions which, when run on a computer or processor, cause the computer or processor to perform the method of any of claims 1-4 or 5-9 above.
20. A computer program product comprising computer instructions which, when run on a computer or processor, cause the computer instructions to perform the method of any one of claims 1 to 4 or 5 to 9 when run on the computer or processor.
CN202111176338.9A 2021-10-09 2021-10-09 Multicast routing method and routing equipment Pending CN115955430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111176338.9A CN115955430A (en) 2021-10-09 2021-10-09 Multicast routing method and routing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111176338.9A CN115955430A (en) 2021-10-09 2021-10-09 Multicast routing method and routing equipment

Publications (1)

Publication Number Publication Date
CN115955430A true CN115955430A (en) 2023-04-11

Family

ID=87288245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111176338.9A Pending CN115955430A (en) 2021-10-09 2021-10-09 Multicast routing method and routing equipment

Country Status (1)

Country Link
CN (1) CN115955430A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195848A (en) * 2010-03-10 2011-09-21 中兴通讯股份有限公司 Multicast service stream protection realization method, device and system
WO2013117165A1 (en) * 2012-02-08 2013-08-15 中兴通讯股份有限公司 Method and node for realizing e-tree service based on vpls
WO2017166918A1 (en) * 2016-03-30 2017-10-05 中兴通讯股份有限公司 Multicast traffic control method and apparatus
WO2018040809A1 (en) * 2016-08-31 2018-03-08 中兴通讯股份有限公司 Method, apparatus, system and device for p2mp multicast tunnel protection
CN111585899A (en) * 2019-02-19 2020-08-25 华为技术有限公司 EVPN multicast method, device and system
CN111917622A (en) * 2019-09-23 2020-11-10 华为技术有限公司 A kind of reverse path forwarding RPF inspection method and device
CN112054962A (en) * 2019-06-06 2020-12-08 华为技术有限公司 Method and device for realizing multicast

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195848A (en) * 2010-03-10 2011-09-21 中兴通讯股份有限公司 Multicast service stream protection realization method, device and system
WO2013117165A1 (en) * 2012-02-08 2013-08-15 中兴通讯股份有限公司 Method and node for realizing e-tree service based on vpls
WO2017166918A1 (en) * 2016-03-30 2017-10-05 中兴通讯股份有限公司 Multicast traffic control method and apparatus
WO2018040809A1 (en) * 2016-08-31 2018-03-08 中兴通讯股份有限公司 Method, apparatus, system and device for p2mp multicast tunnel protection
CN111585899A (en) * 2019-02-19 2020-08-25 华为技术有限公司 EVPN multicast method, device and system
CN112054962A (en) * 2019-06-06 2020-12-08 华为技术有限公司 Method and device for realizing multicast
CN111917622A (en) * 2019-09-23 2020-11-10 华为技术有限公司 A kind of reverse path forwarding RPF inspection method and device

Similar Documents

Publication Publication Date Title
EP3767881B1 (en) Maximally redundant trees to redundant multicast source nodes for multicast protection
US8705526B1 (en) Extending VPLS support for CE lag multi-homing
CN111510379B (en) EVPN message processing method, device and system
US8537816B2 (en) Multicast VPN support for IP-VPN lite
CN103685022B (en) Message forwarding method and service provider network edge equipment
CN103748835B (en) The dynamic renewal of label switched path
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
EP1563644B1 (en) System and method for interconnecting heterogeneous layer 2 vpn applications
CN113726667B (en) A reverse path forwarding RPF check method and device
WO2021258754A1 (en) Message indication method and apparatus, and device and storage medium
CN111726286A (en) EVPN packet processing method, device and system
US9288067B2 (en) Adjacency server for virtual private networks
US9008118B2 (en) Multicast data delivery over mixed multicast and non-multicast networks
WO2018103099A1 (en) Method, device and system for sending and receiving message
JP7306642B2 (en) Loop avoidance communication method, loop avoidance communication device and loop avoidance communication system
CN103326940A (en) Method for forwarding message in network and edge device of operator
CN112422307A (en) Method, device and system for coexistence of EVPN and VPLS
CN111585899A (en) EVPN multicast method, device and system
WO2020098611A1 (en) Method and apparatus for acquiring routing information
WO2021082812A1 (en) Message sending method and first network device
WO2011103759A1 (en) Method for establishing associated bidirectional label switching path and system thereof
JP7536093B2 (en) Packet forwarding method, first network device, and first device group
CN111885630B (en) Data transmission method and communication device
WO2022257773A1 (en) Routing detection method, device, system, and storage medium
CN103634210B (en) Find the method and apparatus of the opposite end PE equipment of VPLS example

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination