CN106161258B - It is used for transmission the method, equipment and system of multicast protocol message - Google Patents
It is used for transmission the method, equipment and system of multicast protocol message Download PDFInfo
- Publication number
- CN106161258B CN106161258B CN201510133882.3A CN201510133882A CN106161258B CN 106161258 B CN106161258 B CN 106161258B CN 201510133882 A CN201510133882 A CN 201510133882A CN 106161258 B CN106161258 B CN 106161258B
- Authority
- CN
- China
- Prior art keywords
- equipment
- private network
- bsm
- address
- multicast protocol
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,特别是涉及一种用于传输组播协议报文的方法、设备及系统。The invention relates to the technical field of communication, in particular to a method, device and system for transmitting multicast protocol messages.
背景技术Background technique
组播虚拟专用网(Multicast Virtual Private Network,MVPN),是一种基于边界网关协议(Border Gateway Protocol,BGP)和多协议标签交换(Multiprotocol LabelSwitching,MPLS)技术,在虚拟专用网(Virtual Private Network,VPN)中实现组播报文的传输的技术。Multicast Virtual Private Network (MVPN) is a technology based on Border Gateway Protocol (BGP) and Multiprotocol Label Switching (MPLS). The technology to realize the transmission of multicast packets in VPN).
MVPN技术中,运营商边缘(provider edge,PE)设备接收私网的用户边缘(customer edge,CE)设备发送的组播报文。PE设备根据设定的公网隧道所支持的报文格式,对组播报文进行封装,获得封装后的组播报文。PE通过指定的公网隧道,向组播报文的接收者发送封装后的组播报文,实现组播报文在私网之间的传输。In the MVPN technology, a provider edge (provider edge, PE) device receives a multicast message sent by a private network user edge (customer edge, CE) device. The PE device encapsulates the multicast packet according to the packet format supported by the set public network tunnel, and obtains the encapsulated multicast packet. The PE sends the encapsulated multicast message to the receiver of the multicast message through the specified public network tunnel, so as to realize the transmission of the multicast message between private networks.
若组播报文为组播协议报文,则PE设备可根据设定的公网隧道所支持的报文格式,对组播协议报文进行封装,获得封装后的组播协议报文。若组播报文为组播数据报文,则PE设备可根据设定的公网隧道所支持的报文格式,对组播数据报文进行封装,获得封装后的组播数据报文。PE设备可通过公网隧道发送封装后的组播数据报文和/或封装后的组播协议报文。由于公网隧道中传输的封装后的组播数据报文和封装后的组播协议报文的报文格式相同,因此,接收封装后的组播报文的设备需要对封装后的组播报文进行识别,以确定接收到的封装后的组播报文是封装后的组播协议报文,还是封装后的组播数据报文,降低了组播数据报文的转发效率。If the multicast packet is a multicast protocol packet, the PE device can encapsulate the multicast protocol packet according to the packet format supported by the set public network tunnel to obtain the encapsulated multicast protocol packet. If the multicast packet is a multicast data packet, the PE device can encapsulate the multicast data packet according to the packet format supported by the set public network tunnel to obtain the encapsulated multicast data packet. The PE device can send encapsulated multicast data packets and/or encapsulated multicast protocol packets through the public network tunnel. Since the encapsulated multicast data packet and the encapsulated multicast protocol packet transmitted in the public network tunnel have the same packet format, the device receiving the encapsulated multicast packet needs to The packet is identified to determine whether the received encapsulated multicast packet is an encapsulated multicast protocol packet or an encapsulated multicast data packet, which reduces the forwarding efficiency of the multicast data packet.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种用于传输组播协议报文的方法、设备及系统,能够将组播协议报文的传输与组播数据报文的传输进行分离,有助于提高组播数据报文的转发效率低。In view of this, the embodiments of the present invention provide a method, device and system for transmitting multicast protocol packets, which can separate the transmission of multicast protocol packets from the transmission of multicast data packets, which facilitates Improving the forwarding efficiency of multicast data packets is low.
本发明实施例提供的技术方案如下。The technical solutions provided by the embodiments of the present invention are as follows.
第一方面,提供了一种用于传输组播协议报文的方法,包括:In the first aspect, a method for transmitting multicast protocol packets is provided, including:
第一PE设备获取组播协议报文;The first PE device obtains the multicast protocol packet;
所述第一PE设备根据所述组播协议报文所属的下一代组播虚拟专用网(NextGeneration Multicast Virtual Private Network,NG MVPN),获得第二PE设备的标识,所述第二PE设备为部署了所述NG MVPN的PE设备;The first PE device obtains the identifier of the second PE device according to the next-generation multicast virtual private network (NextGeneration Multicast Virtual Private Network, NG MVPN) to which the multicast protocol message belongs, and the second PE device is deployed The PE device of the NG MVPN;
所述第一PE设备根据私网单播路由表和所述第二PE设备的标识,查询所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网互联网协议(Internet Protocol,IP)地址,所述私网IP地址与所述第二PE设备的公网IP地址相同;The first PE device queries the private network unicast route from the first PE device to the second PE device according to the private network unicast routing table and the identifier of the second PE device, and the first PE device The destination address of the private network unicast route to the second PE device is the private network Internet Protocol (Internet Protocol, IP) address of the second PE device in the NG MVPN, and the private network IP address is the same as the The public network IP address of the second PE device is the same;
所述第一PE设备根据所述第二PE设备的公网IP地址,以单播的形式向所述第二PE设备发送所述组播协议报文。The first PE device sends the multicast protocol message to the second PE device in a unicast form according to the public network IP address of the second PE device.
在第一方面的第一种可能的实现方式中,还包括:In the first possible implementation manner of the first aspect, it also includes:
所述第一PE设备根据所述组播协议报文所属的NG MVPN,获得第三PE设备的标识,所述第三PE设备为部署了所述NG MVPN的PE设备;The first PE device obtains the identifier of a third PE device according to the NG MVPN to which the multicast protocol message belongs, and the third PE device is the PE device on which the NG MVPN is deployed;
所述第一PE设备根据所述私网单播路由表和所述第三PE设备的标识,查询所述第一PE设备到所述第三PE设备的私网单播路由,所述第一PE设备到所述第三PE设备的私网单播路由的目的地址为所述第三PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第三PE设备的公网IP地址相同;The first PE device queries the private network unicast route from the first PE device to the third PE device according to the private network unicast routing table and the identifier of the third PE device, and the first PE device The destination address of the private network unicast route from the PE device to the third PE device is the private network IP address of the third PE device in the NG MVPN, and the private network IP address is the same as that of the third PE device The public IP addresses are the same;
所述第一PE设备根据所述第三PE设备的公网IP地址,以单播的形式向所述第三PE设备发送所述组播协议报文。The first PE device sends the multicast protocol packet to the third PE device in a unicast form according to the public network IP address of the third PE device.
结合上述第一方面或第一方面的第一种可能的实现方式,还提供了第一方面的第二种可能的实现方式,所述第一PE设备获取组播协议报文包括:In combination with the above first aspect or the first possible implementation manner of the first aspect, a second possible implementation manner of the first aspect is also provided, where the acquisition of the multicast protocol packet by the first PE device includes:
所述第一PE设备接收第一CE设备发送的第一自举报文(Boot Strap Message,BSM);The first PE device receives a first self-report message (Boot Strap Message, BSM) sent by the first CE device;
所述第一PE设备执行反向路径转发(Reverse Path Forwarding,RPF)检查,检查所述第一PE设备到生成所述第一BSM的CE设备的单播路由是否最优,所述第一BSM由所述第一CE设备或者第二CE设备生成;The first PE device performs a reverse path forwarding (Reverse Path Forwarding, RPF) check to check whether the unicast route from the first PE device to the CE device generating the first BSM is optimal, and the first BSM generated by the first CE device or the second CE device;
若所述第一PE设备到生成所述第一BSM的CE设备的单播路由最优,则所述第一PE设备将所述第一BSM作为所述组播协议报文。If the unicast route from the first PE device to the CE device generating the first BSM is optimal, the first PE device uses the first BSM as the multicast protocol packet.
结合上述第一方面、第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,还提供了第一方面的第三种可能的实现方式,所述第一PE设备获取组播协议报文包括:In combination with the first aspect, the first possible implementation of the first aspect, or the second possible implementation of the first aspect, a third possible implementation of the first aspect is also provided, the first PE The multicast protocol packets obtained by the device include:
所述第一PE设备接收第三CE设备发送的第二BSM,所述第二BSM是第四PE设备生成的BSM,所述第二BSM包括所述第四PE设备的私网IP地址,所述第四PE设备为部署了所述NGMVPN且与所述第三CE设备相连的PE设备;The first PE device receives the second BSM sent by the third CE device, the second BSM is a BSM generated by the fourth PE device, the second BSM includes the private network IP address of the fourth PE device, and the The fourth PE device is a PE device deployed with the NGMVPN and connected to the third CE device;
所述第一PE设备根据所述第四PE设备的私网IP地址执行RPF检查,检查所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由是否最优;The first PE device performs an RPF check according to the private network IP address of the fourth PE device, and checks whether the unicast route from the first PE device to the fourth PE device via the third CE device is optimal ;
若所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由最优,则所述第一PE设备将所述第二BSM作为所述组播协议报文。If the unicast route from the first PE device to the fourth PE device via the third CE device is optimal, the first PE device uses the second BSM as the multicast protocol packet.
第二方面,提供了一种用于传输组播协议报文的方法,包括:In the second aspect, a method for transmitting multicast protocol packets is provided, including:
第二PE设备接收第一PE设备以单播形式发送的组播协议报文,所述第二PE设备配置了所述组播协议报文所属的NG MVPN;The second PE device receives the multicast protocol packet sent by the first PE device in unicast form, and the second PE device is configured with the NG MVPN to which the multicast protocol packet belongs;
所述第二PE设备根据所述组播协议报文的类型执行处理。The second PE device performs processing according to the type of the multicast protocol packet.
在第二方面的第一种可能的实现方式中,所述组播协议报文为BSM,所述第二PE设备根据所述组播协议报文的类型执行处理包括:In a first possible implementation manner of the second aspect, the multicast protocol message is a BSM, and the processing performed by the second PE device according to the type of the multicast protocol message includes:
所述第二PE设备从所述BSM中获得生成所述BSM的设备的私网IP地址;The second PE device obtains the private network IP address of the device generating the BSM from the BSM;
所述第二PE设备利用生成所述BSM的设备的私网IP地址执行RPF检查,检查所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由是否最优;The second PE device uses the private network IP address of the device generating the BSM to perform an RPF check to check whether the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal ;
若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由最优,则所述第二PE设备向与所述第二PE设备相连的CE设备广播所述BSM。If the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal, the second PE device broadcasts the BSM to the CE device connected to the second PE device. BSM.
第三方面,提供了一种第一PE设备,包括:In a third aspect, a first PE device is provided, including:
第一获取单元,用于获取组播协议报文;The first obtaining unit is used to obtain the multicast protocol message;
第二获取单元,用于根据所述组播协议报文所属的NG MVPN,获得第二PE设备的标识,所述第二PE设备为部署了所述NG MVPN的PE设备;The second obtaining unit is configured to obtain the identifier of a second PE device according to the NG MVPN to which the multicast protocol message belongs, and the second PE device is the PE device on which the NG MVPN is deployed;
第一查询单元,用于根据私网单播路由表和所述第二PE设备的标识,查询所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第二PE设备的公网IP地址相同;The first query unit is configured to query the private network unicast route from the first PE device to the second PE device according to the private network unicast routing table and the identifier of the second PE device, and the first PE device The destination address of the private network unicast route from the device to the second PE device is the private network IP address of the second PE device in the NG MVPN, and the private network IP address is the same as the public network address of the second PE device. The network IP addresses are the same;
第一发送单元,用于根据所述第二PE设备的公网IP地址,以单播的形式向所述第二PE设备发送所述组播协议报文。The first sending unit is configured to send the multicast protocol message to the second PE device in unicast form according to the public network IP address of the second PE device.
在第三方面的第一种可能的实现方式中,还包括:In the first possible implementation manner of the third aspect, it also includes:
第三获取单元,用于根据所述组播协议报文所属的NG MVPN,获得第三PE设备的标识,所述第三PE设备为部署了所述NG MVPN的PE设备;A third obtaining unit, configured to obtain an identifier of a third PE device according to the NG MVPN to which the multicast protocol message belongs, where the third PE device is the PE device on which the NG MVPN is deployed;
第二查询单元,用于根据所述私网单播路由表和所述第三PE设备的标识,查询所述第一PE设备到所述第三PE设备的私网单播路由,所述第一PE设备到所述第三PE设备的私网单播路由的目的地址为所述第三PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第三PE设备的公网IP地址相同;The second query unit is configured to query the private network unicast route from the first PE device to the third PE device according to the private network unicast routing table and the identifier of the third PE device, the first PE device The destination address of the private network unicast route from a PE device to the third PE device is the private network IP address of the third PE device in the NG MVPN, and the private network IP address and the third PE device The public IP addresses of the two are the same;
第二发送单元,用于根据所述第三PE设备的公网IP地址,以单播的形式向所述第三PE设备发送所述组播协议报文。The second sending unit is configured to send the multicast protocol packet to the third PE device in unicast form according to the public network IP address of the third PE device.
结合上述第三方面或第三方面的第一种可能的实现方式,还提供了第三方面的第二种可能的实现方式,In combination with the above third aspect or the first possible implementation of the third aspect, a second possible implementation of the third aspect is also provided,
所述第一获取单元具体用于接收第一用户边缘CE设备发送的第一BSM;The first obtaining unit is specifically configured to receive the first BSM sent by the first user edge CE device;
所述第一获取单元具体用于执行RPF检查,检查所述第一PE设备到生成所述第一BSM的CE设备的单播路由是否最优,所述第一BSM由所述第一CE设备或者第二CE设备生成;The first obtaining unit is specifically configured to perform an RPF check to check whether the unicast route from the first PE device to the CE device generating the first BSM is optimal, and the first BSM is provided by the first CE device or generated by the second CE device;
若所述第一PE设备到生成所述第一BSM的CE设备的单播路由最优,则所述第一获取单元将所述第一BSM作为所述组播协议报文。If the unicast route from the first PE device to the CE device generating the first BSM is optimal, the first acquiring unit uses the first BSM as the multicast protocol message.
结合上述第三方面、第三方面的第一种可能的实现方式或第三方面的第二种可能的实现方式,还提供了第三方面的第三种可能的实现方式,In combination with the above third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, a third possible implementation manner of the third aspect is also provided,
所述第一获取单元具体用于接收第三CE设备发送的第二BSM,所述第二BSM是第四PE设备生成的BSM,所述第二BSM包括所述第四PE设备的私网IP地址,所述第四PE设备为部署了所述NG MVPN且与所述第三CE设备相连的PE;The first obtaining unit is specifically configured to receive a second BSM sent by the third CE device, the second BSM is a BSM generated by the fourth PE device, and the second BSM includes the private network IP of the fourth PE device address, the fourth PE device is the PE deployed with the NG MVPN and connected to the third CE device;
所述第一获取单元具体用于根据所述第四PE设备的私网IP地址执行RPF检查,检查所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由是否最优;The first obtaining unit is specifically configured to perform an RPF check according to the private network IP address of the fourth PE device, and check a unicast route from the first PE device to the fourth PE device via the third CE device Is it optimal;
若所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由最优,则所述第一获取单元具体用于将所述第二BSM作为所述组播协议报文。If the unicast route from the first PE device to the fourth PE device via the third CE device is optimal, the first obtaining unit is specifically configured to use the second BSM as the multicast protocol message.
第四方面,提供了一种第二PE设备,包括:In a fourth aspect, a second PE device is provided, including:
接收单元,用于接收第一PE设备以单播形式发送的组播协议报文,所述第二PE设备部署了所述组播协议报文所属的NG MVPN;A receiving unit, configured to receive a multicast protocol message sent by the first PE device in unicast form, and the second PE device deploys the NG MVPN to which the multicast protocol message belongs;
处理单元,用于根据所述组播协议报文的类型执行处理。A processing unit, configured to perform processing according to the type of the multicast protocol packet.
在第四方面的第一种可能的实现方式中,所述组播协议报文为BSM,In a first possible implementation of the fourth aspect, the multicast protocol message is a BSM,
所述处理单元具体用于从所述BSM中获得生成所述BSM的设备的私网IP地址;The processing unit is specifically configured to obtain the private network IP address of the device generating the BSM from the BSM;
所述处理单元具体用于利用生成所述BSM的设备的私网IP地址执行RPF检查,检查所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由是否最优;The processing unit is specifically configured to use the private network IP address of the device generating the BSM to perform an RPF check, and check whether the unicast route from the second PE device to the device generating the BSM via the first PE device is the best excellent;
若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由最优,则所述处理单元向与所述第二PE设备相连的CE设备广播所述BSM。If the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal, the processing unit broadcasts the BSM to CE devices connected to the second PE device.
第五方面,提供了一种用于传输组播协议报文的系统,包括:上述第三方面或第三方面的任意一种可能的实现方式提供的第一PE设备,以及第四方面或第四方面的任意一种可能的实现方式提供的第二PE设备。The fifth aspect provides a system for transmitting multicast protocol packets, including: the third aspect or the first PE device provided by any possible implementation of the third aspect, and the fourth aspect or the first PE device A second PE device provided in any possible implementation manner of the four aspects.
通过上述技术方案可知,本发明实施例有如下有益效果:It can be seen from the above technical solutions that the embodiments of the present invention have the following beneficial effects:
本发明实施例提供了用于传输组播协议报文的方法、设备及系统,第一PE设备获取组播协议报文,根据所述组播协议报文所属的NG MVPN获得第二PE设备的标识。所述第一PE设备根据私网单播路由表和所述第二PE设备的标识,查询获得所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第二PE设备的公网IP地址相同;所述第一PE设备根据所述第二PE设备的公网IP地址,以单播的形式向所述第二PE设备发送所述组播协议报文。本发明实施例提供的方法、设备和系统,能够在公网中实现对组播协议报文的单独传输,组播数据报文依旧通过公网中的隧道进行传输,将组播协议报文的传输和组播数据报文的传输分离,接收到组播报文的网络设备无需解析接收到的组播报文以区分组播数据报文和组播协议报文,提高了组播数据报文的转发效率。Embodiments of the present invention provide a method, device and system for transmitting multicast protocol messages. The first PE device obtains the multicast protocol message, and obtains the second PE device's NG MVPN according to the NG MVPN to which the multicast protocol message belongs. logo. The first PE device queries and obtains a private network unicast route from the first PE device to the second PE device according to the private network unicast routing table and the identifier of the second PE device, and the first PE device The destination address of the private network unicast route from the device to the second PE device is the private network IP address of the second PE device in the NG MVPN, and the private network IP address is the same as the public network address of the second PE device. The network IP addresses are the same; the first PE device sends the multicast protocol packet to the second PE device in a unicast form according to the public network IP address of the second PE device. The method, device, and system provided by the embodiments of the present invention can realize the separate transmission of multicast protocol messages in the public network, and the multicast data messages are still transmitted through the tunnel in the public network, and the The transmission and transmission of multicast data packets are separated, and the network equipment that receives the multicast packets does not need to parse the received multicast packets to distinguish between multicast data packets and multicast protocol packets, which improves the efficiency of multicast data packets. forwarding efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的一种用于传输组播协议报文的方法流程图;FIG. 1 is a flowchart of a method for transmitting a multicast protocol message provided by an embodiment of the present invention;
图2为本发明实施例提供的获取组播协议报文的第一场景示意图;FIG. 2 is a schematic diagram of a first scenario for obtaining a multicast protocol message provided by an embodiment of the present invention;
图3为本发明实施例提供的获取组播协议报文的第二场景示意图;FIG. 3 is a schematic diagram of a second scenario for obtaining a multicast protocol packet provided by an embodiment of the present invention;
图4为本发明实施例提供的获取组播协议报文的第三场景示意图;FIG. 4 is a schematic diagram of a third scenario for obtaining a multicast protocol packet provided by an embodiment of the present invention;
图5为本发明实施例提供的NG MVPN组网结构示意图;FIG. 5 is a schematic diagram of an NG MVPN networking structure provided by an embodiment of the present invention;
图6为本发明实施例提供的另一种用于传输组播协议报文的方法流程图;FIG. 6 is a flow chart of another method for transmitting multicast protocol packets provided by an embodiment of the present invention;
图7为本发明实施例提供的应用场景网络结构示意图;FIG. 7 is a schematic diagram of an application scenario network structure provided by an embodiment of the present invention;
图8为本发明实施例提供的一种第一PE设备的结构示意图;FIG. 8 is a schematic structural diagram of a first PE device provided by an embodiment of the present invention;
图9为本发明实施例提供的一种第二PE设备的结构示意图;FIG. 9 is a schematic structural diagram of a second PE device provided by an embodiment of the present invention;
图10为本发明实施例提供的一种用于传输组播协议报文的系统结构示意图;FIG. 10 is a schematic structural diagram of a system for transmitting multicast protocol packets provided by an embodiment of the present invention;
图11为本发明实施例提供的第一PE设备的硬件结构示意图;FIG. 11 is a schematic diagram of a hardware structure of a first PE device provided by an embodiment of the present invention;
图12为本发明实施例提供的第二PE设备的硬件结构示意图;FIG. 12 is a schematic diagram of a hardware structure of a second PE device provided by an embodiment of the present invention;
图13为本发明实施例提供的用于传输组播协议报文的系统的硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of a system for transmitting multicast protocol packets provided by an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了用于传输组播协议报文的方法、设备及系统,为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述。Embodiments of the present invention provide methods, devices, and systems for transmitting multicast protocol messages. In order to make the purpose, technical solutions, and advantages of the embodiments of the present invention clearer, the following will describe the present invention in conjunction with the drawings in the embodiments of the present invention The technical solutions in the embodiments of the invention are clearly described.
通常的组播报文在VPN的传输过程中,网络设备对所接收到的组播协议报文和组播数据报文的处理流程不同。由于在指定的公网隧道中传输的封装后的组播数据报文和封装后的组播协议报文的报文格式相同,因此,一个网络设备接收到一个公网隧道传输的组播报文后,需要先解析该组播报文是组播数据报文还是组播协议报文,再根据所接收的组播报文的类型对该组播报文执行不同的处理。通常的用于传输组播报文的方法中,网络设备需要对所接收到的每个组播报文进行解析,解析获得所述组播报文为组播数据报文后,转发所述组播数据报文,降低了组播数据报文的转发效率。Generally, during the transmission of multicast packets through the VPN, network devices process the received multicast protocol packets and multicast data packets differently. Since the encapsulated multicast data packet and the encapsulated multicast protocol packet transmitted in the specified public network tunnel have the same packet format, a network device receives a multicast packet transmitted by a public network tunnel Finally, it is necessary to analyze whether the multicast packet is a multicast data packet or a multicast protocol packet, and then perform different processing on the multicast packet according to the type of the received multicast packet. In the usual method for transmitting multicast packets, the network device needs to analyze each received multicast packet, and after the analysis obtains that the multicast packets are multicast data packets, forward the group broadcast data packets, reducing the forwarding efficiency of multicast data packets.
图1为本发明实施例提供的一种用于传输组播协议报文的方法流程图。图1对应的实施例是从第一PE侧,对本发明实施例提供的方法进行说明。下面结合图1,对本发明实施例提供的方法进行详细说明。FIG. 1 is a flowchart of a method for transmitting multicast protocol packets provided by an embodiment of the present invention. The embodiment corresponding to FIG. 1 illustrates the method provided by the embodiment of the present invention from the side of the first PE. The method provided by the embodiment of the present invention will be described in detail below with reference to FIG. 1 .
101:第一PE设备获取组播协议报文。101: The first PE device obtains the multicast protocol packet.
举例说明,若所述组播协议报文是由第一PE设备生成的组播协议报文,则所述第一PE设备获取自身所生成的组播协议报文。所述组播协议报文可以是hello组播协议报文,也可以是协议无关组播(Protocol Independent Multicast,PIM)加入(join)或者PIM剪枝(prune)报文,还可以是自举报文(Boot Strap Message,BSM),或者其它向协议无关组播PIM路由器广播的协议报文。For example, if the multicast protocol packet is a multicast protocol packet generated by the first PE device, the first PE device obtains the multicast protocol packet generated by itself. The multicast protocol message can be a hello multicast protocol message, or a protocol independent multicast (Protocol Independent Multicast, PIM) join (join) or PIM pruning (prune) message, or a self-report message (Boot Strap Message, BSM), or other protocol messages broadcast to the protocol-independent multicast PIM router.
举例说明,所述组播协议报文也可以是由第一PE设备以外的设备生成的组播协议报文,至少有如下两种可能的实现方式:For example, the multicast protocol message may also be a multicast protocol message generated by a device other than the first PE device, and there are at least two possible implementations as follows:
第一种可能的实现方式,所述第一PE设备获取组播协议报文包括:所述第一PE设备接收第一CE设备发送的第一BSM;所述第一PE设备执行反向路径转发(reverse pathforwarding,RPF)检查,检查所述第一PE设备到生成所述第一BSM的CE设备的单播路由是否最优,所述第一BSM由所述第一CE设备或第二CE设备生成;若所述第一PE设备到生成所述第一BSM的CE设备的单播路由最优,则所述第一PE设备将所述第一BSM作为所述组播协议报文。In a first possible implementation manner, the acquisition of the multicast protocol packet by the first PE device includes: the first PE device receives the first BSM sent by the first CE device; the first PE device performs reverse path forwarding (reverse pathforwarding, RPF) check, check whether the unicast route from the first PE device to the CE device generating the first BSM is optimal, and the first BSM is provided by the first CE device or the second CE device Generate; if the unicast route from the first PE device to the CE device generating the first BSM is optimal, the first PE device uses the first BSM as the multicast protocol packet.
举例说明,第一种可能的实现方式包括两种实现场景。第一实现场景中,如图2所示,第一BSM报文由所述第一CE设备201生成,所述第一CE设备201与所述第一PE设备202直连,则所述第一BSM中携带有所述第一CE设备201的私网IP地址,所述第一CE设备201将生成的第一BSM报文发送至所述第一PE设备202。第一PE设备202接收到第一CE设备201发送的第一BSM报文时,执行RPF检查,检查所述第一PE设备202到生成所述第一BSM的第一CE设备201的单播路由是否最优。当所述第一PE设备202到生成所述第一BSM的第一CE设备201的单播路由最优时,则所述第一PE设备202将所述第一BSM作为所述组播协议报文。For example, the first possible implementation manner includes two implementation scenarios. In the first implementation scenario, as shown in FIG. 2 , the first BSM message is generated by the first CE device 201, and the first CE device 201 is directly connected to the first PE device 202, then the first The BSM carries the private network IP address of the first CE device 201 , and the first CE device 201 sends the generated first BSM message to the first PE device 202 . When the first PE device 202 receives the first BSM message sent by the first CE device 201, it performs an RPF check to check the unicast route from the first PE device 202 to the first CE device 201 that generated the first BSM Is it optimal. When the unicast route from the first PE device 202 to the first CE device 201 generating the first BSM is optimal, the first PE device 202 uses the first BSM as the multicast protocol report arts.
举例说明,当所述第一PE设备202到生成所述第一BSM的第一CE设备201的单播路由不是最优时,则所述第一PE设备202丢弃所述第一BSM。For example, when the unicast route from the first PE device 202 to the first CE device 201 generating the first BSM is not optimal, the first PE device 202 discards the first BSM.
举例说明,第一种可能的实现方式包括的第二实现场景中,如图3所示,第一BSM报文由所述第二CE设备301生成,则所述第一BSM中携带有所述第二CE设备301的私网IP地址,所述第二CE设备301将生成的第一BSM发送至所述第一CE设备201,第一CE设备201再将所接收到的第一BSM发送至与所述第一CE设备201直连的所述第一PE设备202。其中,所述第二CE设备301可以是与所述第一CE设备201直连的CE设备,也可以是通过至少一个CE设备与所述第一CE设备201间接连接的CE设备。第一PE设备202接收到第一CE设备201发送的第一BSM报文时,执行RPF检查,检查所述第一PE设备202到生成所述第一BSM的第二CE设备301的单播路由是否最优。当所述第一PE设备202到生成所述第一BSM的第二CE设备301的单播路由最优时,则所述第一PE设备202将所述第一BSM作为所述组播协议报文。For example, in the second implementation scenario included in the first possible implementation, as shown in FIG. 3 , the first BSM message is generated by the second CE device 301, and the first BSM carries the The private network IP address of the second CE device 301, the second CE device 301 sends the generated first BSM to the first CE device 201, and the first CE device 201 then sends the received first BSM to the The first PE device 202 directly connected to the first CE device 201. Wherein, the second CE device 301 may be a CE device directly connected to the first CE device 201, or may be a CE device indirectly connected to the first CE device 201 through at least one CE device. When the first PE device 202 receives the first BSM message sent by the first CE device 201, it performs an RPF check to check the unicast route from the first PE device 202 to the second CE device 301 that generated the first BSM Is it optimal. When the unicast route from the first PE device 202 to the second CE device 301 generating the first BSM is optimal, the first PE device 202 uses the first BSM as the multicast protocol report arts.
举例说明,当所述第一PE设备202到生成所述第一BSM的第二CE设备301的单播路由不是最优时,则所述第一PE设备202丢弃所述第一BSM。For example, when the unicast route from the first PE device 202 to the second CE device 301 generating the first BSM is not optimal, the first PE device 202 discards the first BSM.
第二种可能的实现方式,所述第一PE设备获取组播协议报文包括:所述第一PE设备接收第三CE设备发送的第二BSM,所述第二BSM是第四PE设备生成的BSM,所述第二BSM包括所述第四PE设备的私网IP地址,所述第四PE设备为部署了所述NG MVPN且与所述第三CE设备相连的PE设备;所述第一PE设备根据所述第四PE设备的私网IP地址执行RPF检查,检查所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由是否最优;若所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由最优,则所述第一PE设备将所述第二BSM作为所述组播协议报文。其中,所述第三CE设备可以与所述第一CE设备相同,也可以与所述第一CE设备不同。In a second possible implementation manner, the acquisition of the multicast protocol packet by the first PE device includes: the first PE device receives a second BSM sent by the third CE device, and the second BSM is generated by the fourth PE device BSM, the second BSM includes the private network IP address of the fourth PE device, the fourth PE device is the PE device deployed with the NG MVPN and connected to the third CE device; A PE device performs an RPF check according to the private network IP address of the fourth PE device, and checks whether the unicast route from the first PE device to the fourth PE device via the third CE device is optimal; if the If the unicast route from the first PE device to the fourth PE device via the third CE device is optimal, the first PE device uses the second BSM as the multicast protocol packet. Wherein, the third CE device may be the same as the first CE device, or may be different from the first CE device.
如图4所示,第二BSM由第四PE设备401生成,所述第二BSM携带有所述第四PE设备401的私网IP地址。所述第四PE设备401上配置了第二BSM所属的NG MVPN,并将所述第二BSM发送至所述第三CE设备402。所述第三CE设备402再将所述第二BSM发送至所述第一PE设备403。所述第一PE设备403也部配置了第二BSM所属的NG MVPN,则定义配置了相同的NG MVPN的至少两个PE设备之间互为所述NG MVPN下的邻居PE设备。则第一PE设备403和第四PE设备401之间互为邻居PE设备。As shown in FIG. 4 , the second BSM is generated by the fourth PE device 401 , and the second BSM carries the private network IP address of the fourth PE device 401 . The NG MVPN to which the second BSM belongs is configured on the fourth PE device 401 , and sends the second BSM to the third CE device 402 . The third CE device 402 then sends the second BSM to the first PE device 403 . The first PE device 403 is also configured with the NG MVPN to which the second BSM belongs, and at least two PE devices configured with the same NG MVPN are defined as neighbor PE devices under the NG MVPN. Then the first PE device 403 and the fourth PE device 401 are neighbor PE devices.
举例说明,所述第一PE设备403接收到所述第二BSM后,获取所述第二BSM中携带的所述第四PE设备401的私网IP地址,执行RPF检查,检查第一PE设备403经由所述第三CE设备402到所述第四PE设备401的单播路由是否最优。当所述第一PE设备403经由所述第三CE设备402到所述第四PE设备401的单播路由最优时,则所述第一PE设备403将所述第二BSM作为所述组播协议报文。For example, after the first PE device 403 receives the second BSM, it obtains the private network IP address of the fourth PE device 401 carried in the second BSM, performs an RPF check, and checks the first PE device 403 Whether the unicast route from the third CE device 402 to the fourth PE device 401 is optimal. When the unicast route from the first PE device 403 to the fourth PE device 401 via the third CE device 402 is optimal, the first PE device 403 uses the second BSM as the group broadcast protocol packets.
举例说明,当所述第一PE设备403经由所述第三CE设备402到所述第四PE设备401的单播路由不是最优时,则所述第一PE设备403将丢弃所述第二BSM。For example, when the unicast route from the first PE device 403 to the fourth PE device 401 via the third CE device 402 is not optimal, the first PE device 403 will discard the second BSM.
102:所述第一PE设备根据所述组播协议报文所属的NG MVPN,获得第二PE设备的标识,所述第二PE设备为部署了所述NG MVPN的PE设备。102: The first PE device obtains an identifier of a second PE device according to the NG MVPN to which the multicast protocol packet belongs, and the second PE device is the PE device on which the NG MVPN is deployed.
举例说明,位于提供商骨干网的每个PE设备配置了一个NG MVPN后,会通过边界网关协议(Border Gateway Protocol,BGP)向整个提供商骨干网中的所有其他PE设备发布MVPN自动发现(Auto-Discovery,AD)路由信息,所述MVPN AD路由信息携带有发布该MVPNAD路由信息的PE设备上配置的NG MVPN的隧道信息。For example, after each PE device on the provider's backbone network is configured with an NG MVPN, it will issue the MVPN auto-discovery (Auto -Discovery, AD) routing information, the MVPN AD routing information carries the NG MVPN tunnel information configured on the PE device that issues the MVPN AD routing information.
举例说明,若提供商骨干网的其他PE设备收到一个PE设备发布的MVPN AD路由信息,则提供商骨干网的其它PE设备可获知该PE设备配置了所述NG MVPN。一个PE设备上可以配置多种NG MVPN。一个PE设备可以根据所接收的其它PE设备发布的AD路由信息,获知提供商骨干网中与该PE设备配置了同一个NG MVPN的其它PE设备。提供商骨干网中配置了同一个NG MVPN的PE设备互为邻居PE设备。提供商骨干网中的每个PE设备中,可建立NG MVPN与该PE设备在所述NG MVPN下的邻居PE设备的对应关系。For example, if other PE devices in the provider's backbone network receive the MVPN AD routing information advertised by a PE device, other PE devices in the provider's backbone network can know that the PE device is configured with the NG MVPN. Multiple NG MVPNs can be configured on a PE. A PE device can know other PE devices configured with the same NG MVPN as the PE device in the provider's backbone network according to the received AD routing information released by other PE devices. PEs configured with the same NG MVPN on the provider backbone network are neighbor PEs. In each PE device in the provider backbone network, a corresponding relationship between the NG MVPN and the PE device's neighbor PE devices under the NG MVPN may be established.
举例说明,如图5所示,提供商骨干网包括的PE1设备、PE2设备、PE3设备和PE4设备都配置了同一个NG MVPN。提供商骨干网包括的PE5设备和PE6设备没有部署所述NG MVPN。提供商骨干网中,PE1设备、PE2设备、PE3设备和PE4设备互为所述NG MVPN的邻居PE设备,而PE5设备不是PE1设备、PE2设备、PE3设备或PE4设备在所述NG MVPN的邻居PE设备,PE6设备也不是PE1设备、PE2设备、PE3设备或PE4设备在所述NG MVPN的邻居PE设备。For example, as shown in Figure 5, the PE1, PE2, PE3, and PE4 devices included in the provider's backbone network are all configured with the same NG MVPN. The PE5 and PE6 devices included in the provider's backbone network are not deployed with the NG MVPN. In the provider backbone network, PE1, PE2, PE3, and PE4 are neighbors of the NG MVPN, but PE5 is not a neighbor of PE1, PE2, PE3, or PE4 in the NG MVPN. Neither PE nor PE6 is a neighbor PE of PE1, PE2, PE3 or PE4 in the NG MVPN.
举例说明,PE1设备、PE2设备、PE3设备和PE4设备可通过BGP协议,分别向提供商骨干网中的所有PE设备发布AD路由信息,所述AD路由信息携带NG MVPN的隧道信息,所述NGMVPN为发布AD路由信息的PE设备所属的NG MVPN。以PE1设备为例,PE1设备通过BGP协议,向提供商骨干网中的所有PE设备发布携带有所述NG MVPN的隧道信息的AD路由信息。PE2设备、PE3设备和PE4设备接收到所述AD路由信息后,由于PE2设备、PE3设备和PE4设备也配置了所述NG MVPN,则PE2设备、PE3设备和PE4设备分别将PE1设备作为所述NG MVPN的邻居PE设备。以此类推,PE1设备、PE2设备、PE3设备和PE4设备互为所述NG MVPN的邻居PE设备。而PE5设备和PE6设备没有配置所述NG MVPN,则不能作为PE1设备、PE2设备、PE3设备或PE4设备的所述NG MVPN的邻居PE设备。For example, PE1, PE2, PE3, and PE4 can respectively publish AD routing information to all PE devices in the provider's backbone network through the BGP protocol. The AD routing information carries NG MVPN tunnel information, and the NGMVPN Indicates the NG MVPN to which the PE that advertises AD routing information belongs to. Taking the PE1 device as an example, the PE1 device publishes the AD routing information carrying the tunnel information of the NG MVPN to all PE devices in the provider's backbone network through the BGP protocol. After PE2, PE3, and PE4 receive the AD routing information, since PE2, PE3, and PE4 are also configured with the NG MVPN, PE2, PE3, and PE4 respectively use PE1 as the The neighbor PE device of the NG MVPN. By analogy, PE1, PE2, PE3, and PE4 are neighbor PEs of the NG MVPN. However, if the NG MVPN is not configured on the PE5 and PE6 devices, they cannot serve as neighbor PE devices of the NG MVPN of the PE1, PE2, PE3 or PE4 devices.
举例说明,PE1设备中建立了所述NG MVPN与PE2设备、PE3设备和PE4设备的对应关系。PE2设备中建立了所述NG MVPN与PE1设备、PE3设备和PE4设备的对应关系。PE3设备中建立了所述NG MVPN与PE1设备、PE2设备和PE4设备的对应关系。PE4设备中建立了所述NGMVPN与PE1设备、PE2设备和PE4设备的对应关系。For example, the PE1 device establishes the corresponding relationship between the NG MVPN and the PE2 device, the PE3 device, and the PE4 device. The corresponding relationship between the NG MVPN and the PE1, PE3, and PE4 devices is established in the PE2 device. The corresponding relationship between the NG MVPN and the PE1, PE2, and PE4 devices is established in the PE3 device. The corresponding relationship between the NGMVPN and the PE1 device, the PE2 device, and the PE4 device is established in the PE4 device.
举例说明,所述第一PE设备接收到所述组播协议报文后,根据所述组播协议报文所属的NG MVPN,获得一个配置了所述NG MVPN的第二PE设备的标识,即所述第一PE设备获得了一个所述第一PE设备在所述NG MVPN下的邻居PE设备。所述第二PE设备的标识可以是所述第二PE设备的序号、所述第二PE设备的IP地址、所述第二PE设备的名称等可唯一标识所述第二PE设备的信息,在此不再逐一举例说明。For example, after receiving the multicast protocol packet, the first PE device obtains an identifier of a second PE device configured with the NG MVPN according to the NG MVPN to which the multicast protocol packet belongs, that is, The first PE device obtains a neighbor PE device of the first PE device under the NG MVPN. The identifier of the second PE device may be the serial number of the second PE device, the IP address of the second PE device, the name of the second PE device, and other information that can uniquely identify the second PE device, No more examples are given here.
103:所述第一PE设备根据私网单播路由表和所述第二PE设备的标识,查询所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第二PE设备的公网IP地址相同。103: The first PE device queries the private network unicast route from the first PE device to the second PE device according to the private network unicast routing table and the identifier of the second PE device, and the first PE device The destination address of the private network unicast route from the PE device to the second PE device is the private network IP address of the second PE device in the NG MVPN, and the private network IP address is the same as the private network IP address of the second PE device The public IP addresses are the same.
举例说明,提供商骨干网的一个PE设备配置了一个NG MVPN后,该PE设备可被设置一个与所述NG MVPN对应的接口。所述与所述NG MVPN对应的接口可被配置一个私网IP地址。所述私网IP地址与该PE设备的公网IP地址相同。该PE设备通过BGP,向整个提供商骨干网中的PE设备发布VPN V4路由信息,所述VPN V4路由信息携带有该PE设备在所述NG MVPN中的私网IP地址。在提供商骨干网中,该PE设备的在所述NG MVPN下的邻居PE设备接收到该PE设备发布的VPN V4路由信息后,根据所述VPN V4路由信息携带的私网IP地址,获取该邻居PE设备到该PE设备的私网单播路由。其中,该PE设备的公网IP地址可用于在公网中标识该PE设备。For example, after a PE device of the provider's backbone network is configured with an NG MVPN, the PE device can be configured with an interface corresponding to the NG MVPN. The interface corresponding to the NG MVPN may be configured with a private network IP address. The private network IP address is the same as the public network IP address of the PE device. The PE device publishes VPN V4 routing information to PE devices in the entire provider backbone network through BGP, and the VPN V4 routing information carries the private network IP address of the PE device in the NG MVPN. In the provider backbone network, after receiving the VPN V4 routing information released by the PE device, the neighbor PE device of the PE device under the NG MVPN obtains the VPN V4 routing information according to the private network IP address carried in the VPN V4 routing information. Private network unicast route from a neighbor PE to this PE. Wherein, the public network IP address of the PE device can be used to identify the PE device in the public network.
举例说明,在私网中的网络设备无法获知该PE设备的公网IP地址。为了将组播协议报文发送至该PE设备,该PE设备的私网IP地址被设置为与该PE设备的公网IP地址相同。这样,该PE设备在所述NG MVPN的邻居PE设备根据来自该PE设备的VPN V4路由信息,可获知该PE设备的公网IP地址。For example, a network device in a private network cannot obtain the public network IP address of the PE device. In order to send the multicast protocol packet to the PE device, the private network IP address of the PE device is set to be the same as the public network IP address of the PE device. In this way, the neighbor PE device of the PE device in the NG MVPN can learn the public network IP address of the PE device according to the VPN V4 routing information from the PE device.
如图5所示,在PE1设备上指定一个接口与所述NG MVPN绑定,给绑定所述NG MVPN的接口配置一个私网IP地址,所述私网IP地址与PE1设备的公网IP地址相同。PE1设备通过BGP协议,向配置了所述NG MVPN的邻居PE设备发送VPN V4路由信息,所述VPN V4路由信息携带有PE1设备的私网IP地址。PE2设备、PE3设备和PE4设备接收到所述VPN V4路由信息后,分别获得PE1设备的私网IP地址。PE2设备根据PE1设备的私网IP地址,获取PE2设备到PE1设备的私网单播路由。PE3设备和PE4设备也可按照PE2设备采用的方法获得相应的私网单播路由。同理,PE1设备、PE2设备、PE3设备或PE4设备可获得到达其它邻居设备的私网单播路由,在此不再赘述。As shown in Figure 5, specify an interface on the PE1 device to bind to the NG MVPN, configure a private network IP address for the interface bound to the NG MVPN, and the private network IP address is the same as the public network IP of the PE1 device The address is the same. The PE1 device sends VPN V4 routing information to the neighbor PE device configured with the NG MVPN through the BGP protocol, and the VPN V4 routing information carries the private network IP address of the PE1 device. After receiving the VPN V4 routing information, the PE2 device, the PE3 device and the PE4 device respectively obtain the private network IP address of the PE1 device. PE2 obtains the private network unicast route from PE2 to PE1 according to the private network IP address of PE1. PE3 and PE4 can also obtain corresponding private network unicast routes according to the method adopted by PE2. Similarly, PE1, PE2, PE3, or PE4 can obtain private network unicast routes to other neighboring devices, which will not be repeated here.
举例说明,PE1设备可以获知配置了所述NG MVPN的邻居PE设备包括PE2设备、PE3设备和PE4设备后,建立私网单播路由表。所述PE1设备上的私网单播路由表包括:PE1设备到PE2设备的私网单播路由、PE1设备到PE3设备的私网单播路由和PE1设备到PE4设备的私网单播路由。PE2设备可以获知配置了所述NG MVPN的邻居PE设备为PE1设备、PE3设备和PE4设备后,建立私网单播路由表,所述PE2设备上的私网单播路由表包括PE2设备到PE1设备的私网单播路由、PE2设备到PE3设备的私网单播路由和PE2设备到PE4设备的私网单播路由。PE3设备可以获知配置了所述NG MVPN的邻居PE设备为PE1设备、PE2设备和PE4设备后,建立私网单播路由表。所述PE3设备上的私网单播路由表包括:PE3设备到PE1设备的私网单播路由、PE3设备到PE2设备的私网单播路由和PE3到PE4设备的私网单播路由。PE4设备可以获知配置了所述NG MVPN的所有邻居PE设备为PE1设备、PE2设备和PE3设备后,建立私网单播路由表。所述PE4上的私网单播路由表包括:PE4设备到PE1设备的私网单播路由、PE4设备到PE2设备的私网单播路由和PE4设备到PE3设备的私网单播路由。For example, the PE1 device may establish a private network unicast routing table after learning that the neighbor PE devices configured with the NG MVPN include the PE2 device, the PE3 device, and the PE4 device. The private network unicast routing table on the PE1 device includes: the private network unicast route from the PE1 device to the PE2 device, the private network unicast route from the PE1 device to the PE3 device, and the private network unicast route from the PE1 device to the PE4 device. After learning that the neighbor PE devices configured with the NG MVPN are PE1, PE3 and PE4, the PE2 device can establish a private network unicast routing table, and the private network unicast routing table on the PE2 device includes PE2 device to PE1 device The private network unicast route of the device, the private network unicast route from PE2 to PE3, and the private network unicast route from PE2 to PE4. The PE3 device can establish a private network unicast routing table after learning that the neighbor PE devices configured with the NG MVPN are the PE1 device, the PE2 device, and the PE4 device. The private network unicast routing table on the PE3 device includes: the private network unicast route from the PE3 device to the PE1 device, the private network unicast route from the PE3 device to the PE2 device, and the private network unicast route from PE3 to the PE4 device. The PE4 device can establish a private network unicast routing table after learning that all neighboring PE devices configured with the NG MVPN are the PE1 device, the PE2 device, and the PE3 device. The private network unicast routing table on PE4 includes: private network unicast routes from PE4 to PE1, private network unicast routes from PE4 to PE2, and private network unicast routes from PE4 to PE3.
104:所述第一PE设备根据所述第二PE设备的公网IP地址,以单播的形式向所述第二PE设备发送所述组播协议报文。104: The first PE device sends the multicast protocol packet to the second PE device in a unicast form according to the public network IP address of the second PE device.
举例说明,所述第一PE设备可根据第二PE设备的标识,查询到所述第一PE设备到所述第二PE设备的私网单播路由。所述第一PE设别到所述第二PE设备的私网单播路由包括所述第二PE设备的私网IP地址和所述第二PE设备的标识。所述第一PE设备可以从所述私网单播路由中获取所述第二PE设备的私网IP地址。所述第二PE设备的私网IP地址与所述第二PE设备的公网IP地址相同。所述第一PE设备利用所述第二PE设备的公网IP地址,以单播形式向所述第二PE设备发送所述组播协议报文。For example, the first PE device may query the private network unicast route from the first PE device to the second PE device according to the identifier of the second PE device. The private network unicast route identified by the first PE to the second PE device includes the private network IP address of the second PE device and the identifier of the second PE device. The first PE device may acquire the private network IP address of the second PE device from the private network unicast route. The private network IP address of the second PE device is the same as the public network IP address of the second PE device. The first PE device uses the public network IP address of the second PE device to send the multicast protocol packet to the second PE device in unicast form.
可选地,101之后,本发明实施例提供的方法还包括:所述第一PE设备根据所述组播协议报文所属的NG MVPN,获得第三PE设备的标识,所述第三PE设备为部署了所述NGMVPN的PE设备;所述第一PE设备根据所述私网单播路由表和所述第三PE设备的标识,查询所述第一PE设备到所述第三PE设备的私网单播路由,所述第一PE设备到所述第三PE设备的私网单播路由的目的地址为所述第三PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第三PE设备的公网IP地址相同;所述第一PE设备根据所述第三PE设备的公网IP地址,以单播的形式向所述第三PE设备发送所述组播协议报文。Optionally, after step 101, the method provided by this embodiment of the present invention further includes: the first PE device obtains an identifier of a third PE device according to the NG MVPN to which the multicast protocol packet belongs, and the third PE device It is the PE device where the NGMVPN is deployed; the first PE device queries the connection between the first PE device and the third PE device according to the private network unicast routing table and the identifier of the third PE device Private network unicast routing, the destination address of the private network unicast route from the first PE device to the third PE device is the private network IP address of the third PE device in the NG MVPN, and the private network The IP address is the same as the public network IP address of the third PE device; the first PE device sends the Multicast protocol packets.
举例说明,所述第一PE设备还可以按照上述方式,以单播形式向提供商骨干网中的所有配置了所述NG MVPN的PE设备发送所述组播协议报文,在此不再赘述。For example, the first PE device can also send the multicast protocol message to all PE devices configured with the NG MVPN in the provider's backbone network in unicast according to the above method, and details will not be repeated here. .
本发明实施例提供的方法中,第一PE设备能够以单播的方式,向第二PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the method provided by the embodiment of the present invention, the first PE device can send a multicast protocol message to the second PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network, realizing The separation of the transmission of the multicast protocol message and the transmission of the multicast data message helps to improve the forwarding efficiency of the multicast data message.
图6为本发明实施例提供的另一种用于传输组播协议报文方法流程图。图6对应的实施例是从第二PE设备侧,对本发明实施例提供的方法进行说明。下面结合图6,对本发明实施例提供的用于传输组播协议报文的方法进行说明。FIG. 6 is a flow chart of another method for transmitting multicast protocol packets provided by an embodiment of the present invention. The embodiment corresponding to FIG. 6 illustrates the method provided by the embodiment of the present invention from the side of the second PE device. The method for transmitting a multicast protocol packet provided by the embodiment of the present invention will be described below with reference to FIG. 6 .
601:第二PE设备接收第一PE设备以单播形式发送的组播协议报文,所述第二PE设备配置了所述组播协议报文所属的NG MVPN。601: The second PE device receives a multicast protocol packet sent in unicast by the first PE device, and the second PE device is configured with the NG MVPN to which the multicast protocol packet belongs.
举例说明,所述第二PE设备是所述第一PE设备在所述NG MVPN的邻居PE设备。所述第二PE设备可以与所述第一PE设备连接同一CE,也可以通过骨干网中的提供商(provider,P)设备连接所述第一PE设备。For example, the second PE device is a neighbor PE device of the first PE device in the NG MVPN. The second PE device may be connected to the same CE as the first PE device, or may be connected to the first PE device through a provider (provider, P) device in the backbone network.
602:所述第二PE设备根据所述组播协议报文的类型执行处理。602: The second PE device performs processing according to the type of the multicast protocol packet.
举例说明,所述组播协议报文并没有封装成指定的公网隧道所支持的报文格式。所述组播协议报文采用了组播协议报文原有的报文格式,即所述组播协议报文是以单播形式从所述第一PE设备发送至所述第二PE设备。这样,所述第二PE设备接收到所述组播协议报文后,可以直接识别所接收的报文是组播协议报文。所述第二PE设备接收以单播形式发送的组播协议报文,还可接收以公网隧道的方式发送的组播数据报文,即所述第二PE设备可直接转发以公网隧道的方式发送的组播数据报文,提高了组播数据报文的转发效率。For example, the multicast protocol packet is not encapsulated into a packet format supported by the specified public network tunnel. The multicast protocol message adopts the original message format of the multicast protocol message, that is, the multicast protocol message is sent from the first PE device to the second PE device in unicast form. In this way, after receiving the multicast protocol packet, the second PE device can directly identify that the received packet is a multicast protocol packet. The second PE device receives the multicast protocol message sent in the form of unicast, and can also receive the multicast data message sent in the form of a public network tunnel, that is, the second PE device can directly forward the message sent in the form of a public network tunnel Multicast data packets sent in the same way, which improves the forwarding efficiency of multicast data packets.
在一个具体的实施例中,所述组播协议报文为BSM,所述第二PE设备根据所述组播协议报文的类型执行处理包括:所述第二PE设备从所述BSM中获得生成所述BSM的设备的私网IP地址;所述第二PE设备利用生成所述BSM的设备的私网IP地址执行RPF检查,检查所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由是否最优;若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由最优,则所述第二PE设备向与所述第二PE设备相连的CE设备广播所述BSM。In a specific embodiment, the multicast protocol packet is a BSM, and the processing performed by the second PE device according to the type of the multicast protocol packet includes: the second PE device obtains from the BSM The private network IP address of the device that generates the BSM; the second PE device uses the private network IP address of the device that generates the BSM to perform an RPF check, and checks that the second PE device passes through the first PE device to the generated Whether the unicast route of the BSM device is optimal; if the unicast route from the second PE device to the device generating the BSM is optimal via the first PE device, then the second PE device sends The CE device connected to the second PE device broadcasts the BSM.
举例说明,若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由不是最优,则所述第二PE设备丢弃从所述第一PE设备接收到的BSM。For example, if the unicast route from the second PE device to the device generating the BSM via the first PE device is not optimal, the second PE device discards the BSM.
本发明实施例提供的方法中,第二PE设备能够以单播的方式,接收第一PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输。第二PE设备可根据不同的传输方式获得组播协议报文和组播数据报文,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the method provided by the embodiment of the present invention, the second PE device can receive the multicast protocol message sent by the first PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network. The second PE device can obtain multicast protocol packets and multicast data packets according to different transmission methods, realizing the separation of multicast protocol packet transmission and multicast data packet transmission, which helps to improve the multicast data Packet forwarding efficiency.
下面结合具体应用场景举例说明,应用于候选自举路由器(Candidate-BootStrap Router,C-BSR)向候选汇聚点(Candidate-Rendezvous Point,C-RP)发送BSM。如图7所示,所述C-BSR分别与PE1设备和PE2设备直连。PE1设备、PE2设备、PE3设备以及PE4设备互为配置了同一NG MVPN的邻居设备。PE3设备与一个C-RP1设备直连,PE4设备与一个C-RP2设备直连。The following describes with an example in conjunction with a specific application scenario, which is applied to a candidate bootstrapping router (Candidate-BootStrap Router, C-BSR) sending a BSM to a candidate rendezvous point (Candidate-Rendezvous Point, C-RP). As shown in FIG. 7, the C-BSR is directly connected to PE1 and PE2 respectively. PE1, PE2, PE3, and PE4 are neighbors configured with the same NG MVPN. PE3 is directly connected to a C-RP1 device, and PE4 is directly connected to a C-RP2 device.
C-BSR生成BSM,并将所述BSM广播至与所述BSM所属的MVPN绑定的所有PIM接口。所述BSM携带所述C-BSR的私网IP地址。The C-BSR generates a BSM, and broadcasts the BSM to all PIM interfaces bound to the MVPN to which the BSM belongs. The BSM carries the private network IP address of the C-BSR.
所述PE1设备接收到所述C-BSR发送的BSM,根据所述BSM所携带的所述C-BSR的私网IP地址,执行RPF检查,检查所述PE1设备到所述C-BSR的单播路由是否最优。若所述PE1设备到所述C-BSR的单播路由最优,则所述PE1设备将所述BSM作为组播协议报文。若所述PE1设备到所述C-BSR的单播路由不是最优,则所述PE1设备丢弃所述BSM。在本实施场景中,由于所述PE1设备与所述C-BSR直连,所述PE1设备到所述C-BSR的单播路由最优,所述PE1设备将所述C-BSR发送的BSM作为组播协议报文。所述单播路由最优可以是单播路由对应的路径最短,还可以是其它判定条件,在此不再逐一举例说明。The PE1 device receives the BSM sent by the C-BSR, and performs an RPF check according to the private network IP address of the C-BSR carried in the BSM, and checks the single link between the PE1 device and the C-BSR. Whether the broadcast route is optimal. If the unicast route from the PE1 device to the C-BSR is optimal, the PE1 device uses the BSM as a multicast protocol message. If the unicast route from the PE1 device to the C-BSR is not optimal, the PE1 device discards the BSM. In this implementation scenario, since the PE1 device is directly connected to the C-BSR, the unicast route from the PE1 device to the C-BSR is optimal, and the PE1 device sends the BSM As a multicast protocol packet. The optimal unicast route may be that the path corresponding to the unicast route is the shortest, or may be other determination conditions, which will not be described one by one here.
所述PE1设备根据接收所述BSM的接口,确定所述BSM所属的MVPN。若所述PE1设备上配置了与所述MVPN对应的NG MVPN,则所述PE1设备查询获得配置了所述NG MVPN的邻居PE设备,比如所述PE1设备的邻居PE设备为PE2设备、PE3设备以及PE4设备。The PE1 device determines the MVPN to which the BSM belongs according to the interface receiving the BSM. If the NG MVPN corresponding to the MVPN is configured on the PE1 device, the PE1 device queries to obtain the neighbor PE device configured with the NG MVPN, for example, the neighbor PE devices of the PE1 device are PE2 and PE3 devices and PE4 equipment.
所述PE1设备可根据私网单播路由表和所述PE1设备的邻居PE设备的标识,获得所述PE1设备到达其邻居PE设备的私网单播路由。比如:所述PE1设备到所述PE2设备的私网单播路由的目的地址为所述PE2设备的私网IP地址,所述PE2设备的私网IP地址与所述PE2设备的公网IP地址相同。所述PE1设备到所述PE3设备的私网单播路由的目的地址为所述PE3设备的私网IP地址,所述PE3设备的私网IP地址与所述PE3设备的公网IP地址相同。所述PE1设备到所述PE4设备的私网单播路由的目的地址为所述PE4设备的私网IP地址,所述PE4设备的私网IP地址与所述PE4设备的公网IP地址相同。The PE1 device may obtain a private network unicast route from the PE1 device to its neighbor PE device according to the private network unicast routing table and the identifier of the neighbor PE device of the PE1 device. For example: the destination address of the private network unicast route from the PE1 device to the PE2 device is the private network IP address of the PE2 device, and the private network IP address of the PE2 device and the public network IP address of the PE2 device same. The destination address of the private network unicast route from the PE1 device to the PE3 device is the private network IP address of the PE3 device, and the private network IP address of the PE3 device is the same as the public network IP address of the PE3 device. The destination address of the private network unicast route from the PE1 device to the PE4 device is the private network IP address of the PE4 device, and the private network IP address of the PE4 device is the same as the public network IP address of the PE4 device.
所述PE1设备根据所述PE2设备的公网IP地址,以单播形式向所述PE2设备发送所述BSM报文。同理,所述PE1设备根据所述PE3设备的公网IP地址,以单播形式向所述PE3设备发送所述BSM报文。所述PE1设备根据所述PE4设备的公网IP地址,以单播形式向所述PE4设备发送所述BSM报文。The PE1 device sends the BSM packet to the PE2 device in unicast form according to the public network IP address of the PE2 device. Similarly, the PE1 device sends the BSM message to the PE3 device in unicast form according to the public network IP address of the PE3 device. The PE1 device sends the BSM packet to the PE4 device in unicast form according to the public network IP address of the PE4 device.
同理,所述PE2设备可以单播形式,分别向所述PE1设备、所述PE3设备以及所述PE4设备发送所述BSM。Similarly, the PE2 device may send the BSM to the PE1 device, the PE3 device, and the PE4 device in unicast form.
所述PE1设备还可以接收到所述PE2设备以单播形式发送的所述BSM,所述PE2的BSM是所述C-BSR生成的。由于所述PE1设备与所述C-BSR直连,因此,所述PE1设备经由所述PE2到所述C-BSR的单播路由不是最优,所述PE1设备丢弃从所述PE2接收的BSM。The PE1 device may also receive the BSM sent by the PE2 device in unicast form, and the BSM of the PE2 is generated by the C-BSR. Since the PE1 is directly connected to the C-BSR, the unicast route from the PE1 to the C-BSR via the PE2 is not optimal, and the PE1 discards the BSM received from the PE2 .
同理,所述PE2设备接收到所述PE1设备以单播形式发送的所述BSM,PE2设备经由所述PE1到所述C-BSR的单播路由不是最优,所述PE2丢弃从所述PE1接收的BSM。Similarly, the PE2 device receives the BSM sent by the PE1 device in unicast form, and the unicast route from the PE2 device to the C-BSR via the PE1 is not optimal, and the PE2 discards the The BSM received by PE1.
PE3设备接收到PE1设备以单播形式发送的BSM,PE3设备检查经由PE1设备到C-BSR的单播路由是否最优。若PE3设备经由PE1设备到C-BSR的单播路由最优,则PE3设备将从PE1设备接收的BSM广播至与其相连的C-RP1。PE3设备还可接收到PE2设备以单播形式发送的BSM,PE3设备检查经由PE2设备到C-BSR的单播路由是否最优。若PE3设备经由PE2设备到C-BSR的单播路由不是最优,则PE3设备丢弃从PE2设备接收的所述BSM。PE3 receives the BSM sent by PE1 in unicast mode, and PE3 checks whether the unicast route from PE1 to the C-BSR is optimal. If the unicast route from PE3 to C-BSR via PE1 is optimal, PE3 broadcasts the BSM received from PE1 to C-RP1 connected to it. The PE3 device can also receive the BSM sent by the PE2 device in unicast form, and the PE3 device checks whether the unicast route to the C-BSR via the PE2 device is optimal. If the unicast route from the PE3 device to the C-BSR via the PE2 device is not optimal, the PE3 device discards the BSM received from the PE2 device.
同理,PE4设备接收PE1设备以单播形式发送的所述BSM,PE4设备经由PE1设备到C-BSR的单播路由不是最优,PE4设备丢弃从PE1设备接收的所述BSM。PE4设备接收PE2设备以单播形式发送的所述BSM,PE4设备经由PE2设备到C-BSR的单播路由最优,PE4设备将从PE2设备接收的所述BSM广播至与其相连的C-RP2。Similarly, PE4 receives the BSM sent by PE1 in unicast form, and the unicast route from PE4 to the C-BSR via PE1 is not optimal, and PE4 discards the BSM received from PE1. The PE4 device receives the BSM sent by the PE2 device in unicast form, the unicast route from the PE4 device to the C-BSR via the PE2 device is optimal, and the PE4 device broadcasts the BSM received from the PE2 device to the connected C-RP2 .
C-RP1以及C-RP2按照上述BSM传输过程,接收到多个C-BSR发送的BSM,从多个C-BSR中竞选出一个BSR。然后每个C-RP以单播的形式向竞选出的BSR发送C-RP信息,BSR根据所接收到的C-RP信息汇总得到RP集合信息。BSR将该RP集合信息通过BSM广播至MVPN私网中所有的设备,实现该MVPN私网中RP动态学习的目的。According to the above BSM transmission process, C-RP1 and C-RP2 receive BSMs sent by multiple C-BSRs, and elect a BSR from multiple C-BSRs. Then each C-RP sends C-RP information to the elected BSR in the form of unicast, and the BSR obtains RP set information based on the received C-RP information. The BSR broadcasts the RP set information to all devices in the MVPN private network through the BSM, so as to realize the purpose of dynamic learning of RPs in the MVPN private network.
上述场景实例只是为了更好的说明本发明实施例提供的一种用于传输组播协议报文方法的实现方式,并不仅限于上述场景实例中所描述的具体应用场景,还可以应用于其他的应用场景。The above scenario examples are just to better illustrate the implementation of a method for transmitting multicast protocol packets provided by the embodiments of the present invention, and are not limited to the specific application scenarios described in the above scenario examples, and can also be applied to other Application scenarios.
图8为本发明实施例提供的一种第一PE设备的结构示意图。所述第一PE设备可采用图1对应的实施例提供的方法。所述第一PE设备包括:第一获取单元801、第二获取单元802、第一查询单元803和第一发送单元804。FIG. 8 is a schematic structural diagram of a first PE device provided by an embodiment of the present invention. The first PE device may adopt the method provided in the embodiment corresponding to FIG. 1 . The first PE device includes: a first acquiring unit 801 , a second acquiring unit 802 , a first querying unit 803 and a first sending unit 804 .
所述第一获取单元801用于获取组播协议报文。The first acquiring unit 801 is configured to acquire multicast protocol packets.
所述第二获取单元802用于根据所述组播协议报文所属的NG MVPN,获得第二PE设备的标识,所述第二PE设备为部署了所述NG MVPN的PE设备。The second obtaining unit 802 is configured to obtain an identifier of a second PE device according to the NG MVPN to which the multicast protocol packet belongs, and the second PE device is the PE device on which the NG MVPN is deployed.
所述第一查询单元803用于根据私网单播路由表和所述第二PE设备的标识,查询所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第二PE设备的公网IP地址相同。The first query unit 803 is configured to query the private network unicast route from the first PE device to the second PE device according to the private network unicast routing table and the identifier of the second PE device. The destination address of the private network unicast route from a PE device to the second PE device is the private network IP address of the second PE device in the NG MVPN, and the private network IP address and the second PE device The public IP addresses of the two are the same.
所述第一发送单元804用于根据所述第二PE设备的公网IP地址,以单播的形式向所述第二PE设备发送所述组播协议报文。The first sending unit 804 is configured to send the multicast protocol packet to the second PE device in a unicast form according to the public network IP address of the second PE device.
在一个实施例中,所述第一PE设备还包括:第三获取单元、第二查询单元和第二发送单元。In an embodiment, the first PE device further includes: a third acquiring unit, a second querying unit, and a second sending unit.
所述第三获取单元用于根据所述组播协议报文所属的NG MVPN,获得第三PE设备的标识,所述第三PE设备为部署了所述NG MVPN的PE设备。The third obtaining unit is configured to obtain an identifier of a third PE device according to the NG MVPN to which the multicast protocol packet belongs, and the third PE device is the PE device on which the NG MVPN is deployed.
所述第二查询单元用于根据所述私网单播路由表和所述第三PE设备的标识,查询所述第一PE设备到所述第三PE设备的私网单播路由,所述第一PE设备到所述第三PE设备的私网单播路由的目的地址为所述第三PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第三PE设备的公网IP地址相同。The second query unit is configured to query the private network unicast route from the first PE device to the third PE device according to the private network unicast routing table and the identifier of the third PE device, the The destination address of the private network unicast route from the first PE device to the third PE device is the private network IP address of the third PE device in the NG MVPN, and the private network IP address is the same as that of the third PE device The public IP addresses of the devices are the same.
所述第二发送单元用于根据所述第三PE设备的公网IP地址,以单播的形式向所述第三PE设备发送所述组播协议报文。The second sending unit is configured to send the multicast protocol packet to the third PE device in a unicast form according to the public network IP address of the third PE device.
在另一个实施例中,所述第一获取单元801具体用于接收第一用户边缘CE设备发送的第一BSM;所述第一获取单元801具体用于执行RPF检查,检查所述第一PE设备到生成所述第一BSM的CE设备的单播路由是否最优,所述第一BSM由所述第一CE设备或者第二CE设备生成;若所述第一PE设备到生成所述第一BSM的CE设备的单播路由最优,则所述第一获取单元801具体用于将所述第一BSM作为所述组播协议报文。In another embodiment, the first acquiring unit 801 is specifically configured to receive the first BSM sent by the first user edge CE device; the first acquiring unit 801 is specifically configured to perform an RPF check, check the first PE Whether the unicast route from the device to the CE device that generates the first BSM is optimal, and the first BSM is generated by the first CE device or the second CE device; if the first PE device generates the first BSM If the unicast route of the CE device of a BSM is optimal, the first acquiring unit 801 is specifically configured to use the first BSM as the multicast protocol packet.
在另一个实施例中,所述第一获取单元801具体用于接收第三CE设备发送的第二BSM,所述第二BSM是第四PE设备生成的BSM,所述第二BSM包括所述第四PE设备的私网IP地址,所述第四PE设备为部署了所述NG MVPN且与所述第三CE设备相连的PE设备;所述第一获取单元801具体用于根据所述第四PE设备的私网IP地址执行RPF检查,检查所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由是否最优;若所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由最优,则所述第一获取单元801具体用于将所述第二BSM作为所述组播协议报文。In another embodiment, the first obtaining unit 801 is specifically configured to receive the second BSM sent by the third CE device, the second BSM is a BSM generated by the fourth PE device, and the second BSM includes the The private network IP address of the fourth PE device, the fourth PE device is the PE device deployed with the NG MVPN and connected to the third CE device; the first obtaining unit 801 is specifically configured to The private network IP address of the four PE devices performs an RPF check to check whether the unicast route from the first PE device to the fourth PE device via the third CE device is optimal; if the first PE device passes through the If the unicast route from the third CE device to the fourth PE device is optimal, the first obtaining unit 801 is specifically configured to use the second BSM as the multicast protocol packet.
本发明实施例提供的第一PE设备中,第一PE设备能够以单播的方式,向第二PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the first PE device provided by the embodiment of the present invention, the first PE device can send a multicast protocol message to the second PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network , realizes the separation of the transmission of the multicast protocol message and the transmission of the multicast data message, and helps to improve the forwarding efficiency of the multicast data message.
图9为本发明实施例提供的一种第二PE设备的结构示意图。本发明实施例提供的第二PE设备可以执行图6对应的实施例提供的方法。所述第二PE设备包括:接收单元901和处理单元902。FIG. 9 is a schematic structural diagram of a second PE device provided by an embodiment of the present invention. The second PE device provided in this embodiment of the present invention may execute the method provided in the embodiment corresponding to FIG. 6 . The second PE device includes: a receiving unit 901 and a processing unit 902 .
所述接收单元901用于接收第一PE设备以单播形式发送的组播协议报文,所述第二PE设备部署了所述组播协议报文所属的NG MVPN。The receiving unit 901 is configured to receive the multicast protocol packet sent by the first PE device in unicast form, and the second PE device deploys the NG MVPN to which the multicast protocol packet belongs.
所述处理单元902用于根据所述组播协议报文的类型执行处理。The processing unit 902 is configured to perform processing according to the type of the multicast protocol packet.
在一个实施例中,所述处理单元802具体用于从所述BSM中获得生成所述BSM的设备的私网IP地址;所述处理单元802具体用于利用生成所述BSM的设备的私网IP地址执行RPF检查,检查所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由是否最优;所述处理单元802具体用于若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由最优,则向与所述第二PE设备相连的CE设备广播所述BSM。In one embodiment, the processing unit 802 is specifically configured to obtain the private network IP address of the device generating the BSM from the BSM; the processing unit 802 is specifically configured to use the private network IP address of the device generating the BSM The IP address performs an RPF check to check whether the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal; the processing unit 802 is specifically configured to if the second PE device The unicast route from the first PE device to the device generating the BSM is optimal, and broadcast the BSM to CE devices connected to the second PE device.
本发明实施例提供的第二PE设备中,第二PE设备能够以单播的方式,接收第一PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输。第二PE设备可根据不同的传输方式获得组播协议报文和组播数据报文,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the second PE device provided by the embodiment of the present invention, the second PE device can receive the multicast protocol message sent by the first PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network . The second PE device can obtain multicast protocol packets and multicast data packets according to different transmission methods, realizing the separation of multicast protocol packet transmission and multicast data packet transmission, which helps to improve the multicast data Packet forwarding efficiency.
图10为本发明实施例提供的一种用于传输组播协议报文的系统结构示意图,所述系统包括:图8所示的第一PE设备1001,以及至少一个图9所示的第二PE设备1002。在此不再对具体结构进行赘述。Figure 10 is a schematic structural diagram of a system for transmitting multicast protocol packets provided by an embodiment of the present invention, the system includes: the first PE device 1001 shown in Figure 8, and at least one second PE device 1001 shown in Figure 9 PE device 1002. The specific structure will not be repeated here.
图11为本发明实施例提供的第一PE设备的硬件结构示意图。本发明实施例提供的第一PE设备可执行图1对应的实施例提供的方法。所述第一PE设备包括:存储器1101、发送器1102以及分别与所述存储器1101和所述接收器1102连接的处理器1103。所述存储器1101用于存储一组程序指令。FIG. 11 is a schematic diagram of a hardware structure of a first PE device provided by an embodiment of the present invention. The first PE device provided in this embodiment of the present invention may execute the method provided in the embodiment corresponding to FIG. 1 . The first PE device includes: a memory 1101, a transmitter 1102, and a processor 1103 respectively connected to the memory 1101 and the receiver 1102. The memory 1101 is used to store a set of program instructions.
所述处理器1103用于调用所述存储器1101存储的程序指令执行如下操作:The processor 1103 is used to call the program instructions stored in the memory 1101 to perform the following operations:
设备获取组播协议报文;The device obtains the multicast protocol packet;
根据所述组播协议报文所属的NG MVPN,获得第二PE设备的标识,所述第二PE设备为部署了所述NG MVPN的PE设备;Obtaining an identifier of a second PE device according to the NG MVPN to which the multicast protocol message belongs, where the second PE device is the PE device on which the NG MVPN is deployed;
根据私网单播路由表和所述第二PE设备的标识,查询所述第一PE设备到所述第二PE设备的私网单播路由,所述第一PE设备到所述第二PE设备的私网单播路由的目的地址为所述第二PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第二PE设备的公网IP地址相同;According to the private network unicast routing table and the identifier of the second PE device, query the private network unicast route from the first PE device to the second PE device, and from the first PE device to the second PE device The destination address of the private network unicast route of the device is the private network IP address of the second PE device in the NG MVPN, and the private network IP address is the same as the public network IP address of the second PE device;
根据所述第二PE设备的公网IP地址,通过所述发送器1102,以单播的形式向所述第二PE设备发送所述组播协议报文。According to the public network IP address of the second PE device, the sender 1102 sends the multicast protocol message to the second PE device in a unicast form.
在一个实施例中,所述处理器1103还用于调用所述存储器1101存储的程序指令执行如下操作:In one embodiment, the processor 1103 is further configured to call the program instructions stored in the memory 1101 to perform the following operations:
根据所述组播协议报文所属的NG MVPN,获得第三PE设备的标识,所述第三PE设备为部署了所述NG MVPN的PE设备;Obtain an identifier of a third PE device according to the NG MVPN to which the multicast protocol message belongs, where the third PE device is the PE device on which the NG MVPN is deployed;
根据所述私网单播路由表和所述第三PE设备的标识,查询所述第一PE设备到所述第三PE设备的私网单播路由,所述第一PE设备到所述第三PE设备的私网单播路由的目的地址为所述第三PE设备在所述NG MVPN的私网IP地址,所述私网IP地址与所述第三PE设备的公网IP地址相同;According to the private network unicast routing table and the identifier of the third PE device, query the private network unicast route from the first PE device to the third PE device, and from the first PE device to the third PE device The destination address of the private network unicast route of the three PE devices is the private network IP address of the third PE device in the NG MVPN, and the private network IP address is the same as the public network IP address of the third PE device;
根据所述第三PE设备的公网IP地址,通过所述发送器1102,以单播的形式向所述第三PE设备发送所述组播协议报文。According to the public network IP address of the third PE device, the sender 1102 sends the multicast protocol packet to the third PE device in a unicast form.
在另一个实施例中,所述处理器1103用于调用所述存储器1101存储的程序指令执行获取组播协议报文包括:In another embodiment, the processor 1103 is used to call the program instructions stored in the memory 1101 to execute and obtain the multicast protocol message including:
接收第一用户边缘CE设备发送的第一BSM;receiving the first BSM sent by the first user edge CE device;
执行RPF检查,检查所述第一PE设备到生成所述第一BSM的CE设备的单播路由是否最优,所述第一BSM由所述第一CE设备或者第二CE设备生成;Executing an RPF check to check whether the unicast route from the first PE device to the CE device that generates the first BSM is optimal, the first BSM is generated by the first CE device or the second CE device;
若所述第一PE设备到生成所述第一BSM的CE设备的单播路由最优,将所述第一BSM作为所述组播协议报文。If the unicast route from the first PE device to the CE device generating the first BSM is optimal, use the first BSM as the multicast protocol packet.
在另一个实施例中,所述处理器1103用于调用所述存储器1101存储的程序指令执行获取组播协议报文包括:In another embodiment, the processor 1103 is used to call the program instructions stored in the memory 1101 to execute and obtain the multicast protocol message including:
接收第三CE设备发送的第二BSM,所述第二BSM是第四PE设备生成的BSM,所述第二BSM包括所述第四PE设备的私网IP地址,所述第四PE设备为部署了所述NG MVPN且与所述第三CE设备相连的PE设备;receiving a second BSM sent by the third CE device, the second BSM is a BSM generated by a fourth PE device, the second BSM includes the private network IP address of the fourth PE device, and the fourth PE device is A PE device on which the NG MVPN is deployed and connected to the third CE device;
根据所述第四PE设备的私网IP地址执行RPF检查,检查所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由是否最优;performing an RPF check according to the private network IP address of the fourth PE device, and checking whether the unicast route from the first PE device to the fourth PE device via the third CE device is optimal;
若所述第一PE设备经由所述第三CE设备到所述第四PE设备的单播路由最优,将所述第二BSM作为所述组播协议报文。If the unicast route from the first PE device to the fourth PE device via the third CE device is optimal, use the second BSM as the multicast protocol packet.
本发明实施例提供的第一PE设备中,处理器能够以单播的方式,向第二PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the first PE device provided by the embodiment of the present invention, the processor can send a multicast protocol message to the second PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network, realizing The transmission of the multicast protocol message and the transmission of the multicast data message are separated, which helps to improve the forwarding efficiency of the multicast data message.
图12为本发明实施例提供的第二PE设备的硬件结构示意图。本发明实施例提供的第二PE设备可采用图6对应的实施例提供的方法。所述第二PE设备包括:接收器1201、存储器1202以及分别与所述接收器1201和所述存储器1202连接的处理器1203。所述存储器1202用于存储一组程序指令。FIG. 12 is a schematic diagram of a hardware structure of a second PE device provided by an embodiment of the present invention. The second PE device provided in the embodiment of the present invention may adopt the method provided in the embodiment corresponding to FIG. 6 . The second PE device includes: a receiver 1201, a memory 1202, and a processor 1203 respectively connected to the receiver 1201 and the memory 1202. The memory 1202 is used to store a set of program instructions.
所述接收器1201,用于接收第一PE设备以单播形式发送的组播协议报文,所述第二PE设备配置了所述组播协议报文所属的NG MVPN。The receiver 1201 is configured to receive the multicast protocol packet sent by the first PE device in unicast form, and the second PE device is configured with the NG MVPN to which the multicast protocol packet belongs.
所述处理器1203用于调用所述存储器1202存储的程序指令执行如下操作:根据所述组播协议报文的类型执行处理。The processor 1203 is configured to call the program instructions stored in the memory 1202 to perform the following operations: perform processing according to the type of the multicast protocol packet.
在一个实施例中,所述处理器1203用于调用所述存储器1202存储的程序指令执行根据所述组播协议报文的类型执行处理包括:In one embodiment, the processor 1203 is used to call the program instructions stored in the memory 1202 to perform processing according to the type of the multicast protocol message including:
从所述BSM中获得生成所述BSM的设备的私网IP地址;Obtain the private IP address of the device that generates the BSM from the BSM;
利用生成所述BSM的设备的私网IP地址执行RPF检查,检查所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由是否最优;Using the private network IP address of the device generating the BSM to perform an RPF check to check whether the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal;
若所述第二PE设备经由所述第一PE设备到生成所述BSM的设备的单播路由最优,向与所述第二PE设备相连的CE设备广播所述BSM。If the unicast route from the second PE device to the device generating the BSM via the first PE device is optimal, broadcast the BSM to CE devices connected to the second PE device.
本发明实施例提供的第二PE设备中,处理器能够以单播的方式,接收第一PE设备发送组播协议报文,组播数据报文可仍旧通过公网中的隧道进行传输。第二PE设备可根据不同的传输方式获得组播协议报文和组播数据报文,实现了组播协议报文的传输和组播数据报文的传输的分离,有助于提高组播数据报文的转发效率。In the second PE device provided by the embodiment of the present invention, the processor can receive the multicast protocol message sent by the first PE device in a unicast manner, and the multicast data message can still be transmitted through the tunnel in the public network. The second PE device can obtain multicast protocol packets and multicast data packets according to different transmission methods, realizing the separation of multicast protocol packet transmission and multicast data packet transmission, which helps to improve the multicast data Packet forwarding efficiency.
图13为本发明实施例提供的用于传输组播协议报文的系统的硬件结构示意图,所述系统包括:图11所示的第一PE设备1301,以及至少一个图12所示的第二PE设备1302。Fig. 13 is a schematic diagram of the hardware structure of a system for transmitting multicast protocol packets provided by an embodiment of the present invention. The system includes: the first PE device 1301 shown in Fig. 11 , and at least one second PE device 1302.
上述处理器可以是微处理器或者该处理器也可以是任何常规的处理器。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。当使用软件实现时,可以将实现上述功能的代码存储在计算机可读介质中。计算机可读介质包括计算机存储介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以是随机存取存储器(英文全称为random access memory,英文缩写为RAM)、只读存储器(英文全称为read-only memory,英文缩写为ROM)、电可擦可编程只读存储器(英文全称为electrically erasableprogrammable read-only memory,英文缩写为EEPROM)、只读光盘(英文全称为compactdisc read-only memory,英文缩写为CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的程序代码并能够由计算机存取的任何其他介质。计算机可读介质可以是压缩光碟(英文全称为compact disc,英文缩写为CD)、激光碟、数字视频光碟(英文全称为digital video disc,英文缩写为DVD)、软盘或者蓝光碟。The aforementioned processor may be a microprocessor or the processor may be any conventional processor. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. When implemented in software, codes for realizing the functions described above can be stored in a computer-readable medium. Computer-readable media includes computer storage media. A storage media may be any available media that can be accessed by a computer. Take this as an example but not limited to: the computer readable medium can be random access memory (full name in English is random access memory, English abbreviation is RAM), read-only memory (full name in English is read-only memory, English abbreviation is ROM), Electrically Erasable Programmable Read-Only Memory (English full name is electrically erasableprogrammable read-only memory, English abbreviation is EEPROM), read-only CD (English full name is compactdisc read-only memory, English abbreviation is CD-ROM) or other optical disc storage, Disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store program code in the form of instructions or data structures and can be accessed by a computer. The computer-readable medium may be a compact disc (compact disc in English, abbreviated as CD in English), laser disc, digital video disc (digital video disc in English, abbreviated as DVD in English), floppy disk or Blu-ray disc.
最后应说明的是:以上实施例仅用于示例性说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明及本发明带来的有益效果进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention and the beneficial effects brought by the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art Those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the present invention Scope of Claims.
Claims (13)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510133882.3A CN106161258B (en) | 2015-03-25 | 2015-03-25 | It is used for transmission the method, equipment and system of multicast protocol message |
| PCT/CN2016/077214 WO2016150394A1 (en) | 2015-03-25 | 2016-03-24 | Method, device and system for transmitting multicast protocol packet |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510133882.3A CN106161258B (en) | 2015-03-25 | 2015-03-25 | It is used for transmission the method, equipment and system of multicast protocol message |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106161258A CN106161258A (en) | 2016-11-23 |
| CN106161258B true CN106161258B (en) | 2019-10-01 |
Family
ID=56977736
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510133882.3A Active CN106161258B (en) | 2015-03-25 | 2015-03-25 | It is used for transmission the method, equipment and system of multicast protocol message |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106161258B (en) |
| WO (1) | WO2016150394A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112054962B (en) | 2019-06-06 | 2021-12-14 | 华为技术有限公司 | Method and device for realizing multicast |
| CN115225427B (en) * | 2021-04-20 | 2024-05-17 | 华为技术有限公司 | A method and device for transmitting data message |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102075439A (en) * | 2011-02-22 | 2011-05-25 | 杭州华三通信技术有限公司 | Multicast message transmitting method and routing equipment |
| CN102299848A (en) * | 2011-08-23 | 2011-12-28 | 福建星网锐捷网络有限公司 | Multicast message transmission method and provider edge device (PE) |
| CN103326918A (en) * | 2013-05-17 | 2013-09-25 | 杭州华三通信技术有限公司 | Message forwarding method and message forwarding equipment |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7720994B2 (en) * | 2005-01-13 | 2010-05-18 | Cisco Technology, Inc. | Method for suppression of multicast join/prune messages from extranet receivers |
| US8289978B2 (en) * | 2008-10-15 | 2012-10-16 | At&T Intellectual Property I, Lp | Broadcast interactive television system |
| CN101567847B (en) * | 2009-06-01 | 2012-01-11 | 杭州华三通信技术有限公司 | Method and equipment for sending bootstrapping messages in multi-cast virtual private network |
| WO2011144065A2 (en) * | 2011-05-23 | 2011-11-24 | 华为技术有限公司 | Method and apparatus for transferring bootstrap message |
| CN102916888B (en) * | 2012-09-21 | 2015-07-22 | 杭州华三通信技术有限公司 | Multicast data transmission method and multicast data transmission device |
-
2015
- 2015-03-25 CN CN201510133882.3A patent/CN106161258B/en active Active
-
2016
- 2016-03-24 WO PCT/CN2016/077214 patent/WO2016150394A1/en active Application Filing
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102075439A (en) * | 2011-02-22 | 2011-05-25 | 杭州华三通信技术有限公司 | Multicast message transmitting method and routing equipment |
| CN102299848A (en) * | 2011-08-23 | 2011-12-28 | 福建星网锐捷网络有限公司 | Multicast message transmission method and provider edge device (PE) |
| CN103326918A (en) * | 2013-05-17 | 2013-09-25 | 杭州华三通信技术有限公司 | Message forwarding method and message forwarding equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016150394A1 (en) | 2016-09-29 |
| CN106161258A (en) | 2016-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7123174B2 (en) | MULTICAST DATA TRANSMISSION METHOD, RELATED DEVICE, AND SYSTEM | |
| EP3435595B1 (en) | Maximally redundant trees to redundant multicast source nodes for multicast protection | |
| US8571029B1 (en) | Label switched path hierarchy for intra-area segments of inter-area point-to-multipoint label switched paths | |
| US8339973B1 (en) | Multicast traceroute over MPLS/BGP IP multicast VPN | |
| CN103748835B (en) | The dynamic renewal of label switched path | |
| CN113726667B (en) | A reverse path forwarding RPF check method and device | |
| WO2017059708A1 (en) | Bier information transmission method and reception method, and related device | |
| WO2019214589A1 (en) | Multicast data transmission method, related apparatus and system | |
| WO2018072704A1 (en) | Message transmission method and apparatus, node and computer storage medium | |
| CN100481817C (en) | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP | |
| US12192092B2 (en) | BIER packet forwarding method, device, apparatus, and storage medium | |
| CN103973459B (en) | The transmission method and device of multicast message between IPv6 multicast isolated island | |
| CN112491706B (en) | Data message processing method and device, storage medium and electronic device | |
| WO2021143279A1 (en) | Method and device for segment routing service processing, routing equipment, and storage medium | |
| CN106921579A (en) | Communication method and device based on service function chain SFC | |
| US20160352529A1 (en) | Network device configured to track multicast receivers | |
| CN103326944B (en) | A kind of multicast transmission method, device and network system | |
| WO2017177756A1 (en) | Method, apparatus and system for transmitting information | |
| US20140082161A1 (en) | Method and device for transferring bootstrap message | |
| CN106817308A (en) | A kind of repeater system of multicast data flow, method and device | |
| CN106357541B (en) | Information transmission method and device | |
| WO2018010566A1 (en) | Information notification method, forwarding item generation method and device | |
| CN106161258B (en) | It is used for transmission the method, equipment and system of multicast protocol message | |
| CN114598634A (en) | Message transmission method, device and system for acquiring corresponding relation | |
| CN107547377A (en) | A kind of multicast traffic transport method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |