[go: up one dir, main page]

CN105591942B - Method and device for optimizing multicast protocol - Google Patents

Method and device for optimizing multicast protocol Download PDF

Info

Publication number
CN105591942B
CN105591942B CN201410571429.6A CN201410571429A CN105591942B CN 105591942 B CN105591942 B CN 105591942B CN 201410571429 A CN201410571429 A CN 201410571429A CN 105591942 B CN105591942 B CN 105591942B
Authority
CN
China
Prior art keywords
optimizing
multicast protocol
members
downstream router
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.)
Active
Application number
CN201410571429.6A
Other languages
Chinese (zh)
Other versions
CN105591942A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410571429.6A priority Critical patent/CN105591942B/en
Priority to PCT/CN2015/086234 priority patent/WO2016062150A1/en
Publication of CN105591942A publication Critical patent/CN105591942A/en
Application granted granted Critical
Publication of CN105591942B publication Critical patent/CN105591942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种优化组播协议的方法,通过建立下游路由器所有成员的邻居跟踪表;如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。本发明还公开了一种优化组播协议的装置。本发明提供的优化组播协议的方法,提升了网络传输效率,减轻了上游路由器负担。

The invention discloses a method for optimizing the multicast protocol, by establishing the neighbor tracking table of all members of the downstream router; When the member is offline, delete the relevant information of all members in the neighbor tracking table; generate a pruning echo message according to the state of the neighbor tracking table, and return it to the downstream router. The invention also discloses a device for optimizing the multicast protocol. The method for optimizing the multicast protocol provided by the invention improves the network transmission efficiency and reduces the burden on the upstream router.

Description

优化组播协议的方法和装置Method and device for optimizing multicast protocol

技术领域technical field

本发明涉及网络传输领域,尤其涉及优化组播协议的方法和装置。The invention relates to the field of network transmission, in particular to a method and device for optimizing a multicast protocol.

背景技术Background technique

PIM(Protocol Independent Multicast,协议独立组播)协议是组播服务的核心协议。是由一组标准协议组成,包括PIM-DM(Protocol Independent Multicast DenseMode,协议独立组播-密集模式)、PIM-SM(Protocol Independent Multicast-SparseMode,协议独立组播—稀疏模式)、PIM-SSM(Protocol Independent Multicast SourceSpecific Mode,协议独立组播—指定信源组播模式)等。其中,PIM SM是组播路由协议的一种,即稀疏模式的PIM协议。主要用于组播接收者分散、拓扑复杂的网络中。在组播数据接收者和发送者之间建立组播转发树,从而正确转发组播数据。The PIM (Protocol Independent Multicast, Protocol Independent Multicast) protocol is a core protocol of the multicast service. It is composed of a set of standard protocols, including PIM-DM (Protocol Independent Multicast DenseMode, Protocol Independent Multicast-Dense Mode), PIM-SM (Protocol Independent Multicast-Sparse Mode, Protocol Independent Multicast-Sparse Mode), PIM-SSM ( Protocol Independent Multicast SourceSpecific Mode, protocol independent multicast - specified source multicast mode), etc. Wherein, PIM SM is a kind of multicast routing protocol, that is, the PIM protocol in sparse mode. It is mainly used in networks with dispersed multicast receivers and complex topologies. A multicast forwarding tree is established between the multicast data receiver and the sender, so that the multicast data can be forwarded correctly.

组播邻居跟踪(Neighbor Tracking)是PIM-SM协议支持的一种降低链路上剪枝延迟的方案。使能此功能需链路上所有组播路由器都支持邻居跟踪,并且协商通过。上游路由器可以跟踪记录下游邻居的加入状态,下游路由器则禁止自己的加入抑制。然而如按RFC(Request For Comments,请求注解)协议实现此功能,会产生一些问题:由于禁止了下游的加入抑制,每当下游有加入的路由器离开时,所有其他加入的路由器都会发送一个新的加入,在下游加入很多的情况下,下游链路短时内负担会加重,上游路由器的处理负担也会加重,而如果有设备在不稳定的情形下反复加入和离开,这种影响会更加严重。Multicast neighbor tracking (Neighbor Tracking) is a scheme supported by the PIM-SM protocol to reduce the pruning delay on the link. To enable this function, all multicast routers on the link must support neighbor tracking, and the negotiation must pass. Upstream routers can track and record the joining status of downstream neighbors, and downstream routers prohibit their own joining suppression. However, if this function is implemented according to the RFC (Request For Comments) protocol, there will be some problems: due to the prohibition of downstream joining suppression, whenever a downstream joining router leaves, all other joining routers will send a new Join, in the case of many downstream joins, the burden on the downstream link will increase in a short time, and the processing burden on the upstream router will also increase, and if there are devices that join and leave repeatedly in an unstable situation, the impact will be more serious .

发明内容Contents of the invention

本发明的主要目的在于提供一种优化组播协议的方法和装置,旨在解决网络传输效率低下,上游路由器负担过重的问题。The main purpose of the present invention is to provide a method and device for optimizing the multicast protocol, aiming at solving the problems of low network transmission efficiency and heavy burden of upstream routers.

为实现上述目的,本发明提供的一种优化组播协议的方法,所述优化组播协议的方法包括以下步骤:In order to achieve the above object, the present invention provides a method for optimizing the multicast protocol, the method for optimizing the multicast protocol includes the following steps:

建立下游路由器所有成员的邻居跟踪表;Establish a neighbor tracking table for all members of the downstream router;

如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;If receiving the pruning message sent by all members of the downstream router through the neighbor tracking link, it is judged that all members are offline, and the relevant information of all members in the neighbor tracking table is deleted;

根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。Generate a prune echo message according to the state of the neighbor tracking table, and return it to the downstream router.

优选地,所述如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息的步骤之后还包括:Preferably, if the prune message sent by all members of the downstream router through the neighbor tracking link is received, it is judged that all members are offline, and after the step of deleting the relevant information of all members in the neighbor tracking table, it also includes :

将当前上游路由器的状态从加入状态切换为未加入状态。Switch the status of the current upstream router from joining to not joining.

所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之前还包括:The step of generating a pruning echo message according to the state of the neighbor tracking table and returning to the downstream router also includes:

判断所述要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。Judging whether the source IP address of the message to be returned is consistent with the address of the destination upstream field, and if the addresses are consistent, returning the pruned echo message to the downstream router.

优选地,所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之前还包括:Preferably, the step of generating a pruning echo message according to the state of the neighbor tracking table, and returning to the downstream router further includes:

设置超时定时器,待超时时间到,返回剪枝回显报文。Set the timeout timer, and return the pruning echo message when the timeout expires.

所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之后还包括:The step of generating a pruning echo message according to the state of the neighbor tracking table and returning to the downstream router also includes:

如果接收到下游路由器离线的成员发送的加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中。After receiving the joining message sent by the offline member of the downstream router, it is judged that the member is online, and the related information of the member is added to the neighbor tracking table.

为了解决上述的技术问题,本发明进一步提供一种优化组播协议的装置,所述优化组播协议的装置包括:In order to solve the above-mentioned technical problems, the present invention further provides a device for optimizing the multicast protocol, the device for optimizing the multicast protocol includes:

建立模块,用于建立下游路由器所有成员的邻居跟踪表;Establishing a module for establishing the neighbor tracking table of all members of the downstream router;

剪枝模块,用于如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;A pruning module, configured to determine that all members are offline and delete relevant information of all members in the neighbor tracking table if receiving a pruning message sent by all members of the downstream router through the neighbor tracking link;

反馈模块,用于根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。A feedback module, configured to generate a prune echo message according to the state of the neighbor tracking table, and return it to the downstream router.

优选地,所述优化组播协议的装置还包括:Preferably, the device for optimizing the multicast protocol further includes:

切换模块,用于将当前上游路由器的状态从加入状态切换为未加入状态。The switching module is used to switch the state of the current upstream router from the joining state to the non-joining state.

优选地,所述优化组播协议的装置还包括:Preferably, the device for optimizing the multicast protocol further includes:

判断模块,用于判断所述要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。A judging module, configured to judge whether the source IP address of the message to be returned is consistent with the destination upstream field address, and if the addresses are consistent, return the pruned echo message to the downstream router.

优选地,所述优化组播协议的装置还包括:Preferably, the device for optimizing the multicast protocol further includes:

超时模块,用于设置超时定时器,待超时时间到,返回剪枝回显报文。The timeout module is used to set the timeout timer, and when the timeout expires, the pruning echo message will be returned.

优选地,所述优化组播协议的装置还包括:Preferably, the device for optimizing the multicast protocol further includes:

加入模块,用于如果接收到下游路由器离线的成员发送的Join加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中,并返回Prune Echo剪枝回显报文给所述下游路由器。The joining module is used to determine that the member is online after receiving the Join message sent by the offline member of the downstream router, add the relevant information of the member to the neighbor tracking table, and return the Prune Echo pruning echo message to the downstream router.

本发明提供的优化组播协议的方法,通过建立下游路由器所有成员的邻居跟踪表;如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。本发明提供的优化组播协议的方法,提升了网络传输效率,减轻了上游路由器负担。The method for optimizing the multicast protocol provided by the present invention establishes the neighbor tracking table of all members of the downstream router; if the pruning message sent by all members of the downstream router through the neighbor tracking link is received, it is judged that all members are offline , delete relevant information of all members in the neighbor tracking table; generate a pruning echo message according to the state of the neighbor tracking table, and return it to the downstream router. The method for optimizing the multicast protocol provided by the invention improves the network transmission efficiency and reduces the burden on the upstream router.

附图说明Description of drawings

图1为本发明优化组播协议的方法第一实施例的流程示意图;Fig. 1 is a schematic flow chart of the first embodiment of the method for optimizing the multicast protocol of the present invention;

图2为本发明优化组播协议的方法第二实施例的流程示意图;FIG. 2 is a schematic flow diagram of a second embodiment of a method for optimizing a multicast protocol in the present invention;

图3为本发明优化组播协议的方法第三实施例的流程示意图;FIG. 3 is a schematic flow diagram of a third embodiment of a method for optimizing a multicast protocol according to the present invention;

图4为本发明优化组播协议的方法第四实施例的流程示意图;FIG. 4 is a schematic flowchart of a fourth embodiment of a method for optimizing a multicast protocol according to the present invention;

图5为本发明优化组播协议的方法第五实施例的流程示意图;FIG. 5 is a schematic flowchart of a fifth embodiment of a method for optimizing a multicast protocol according to the present invention;

图6为本发明优化组播协议的装置第一实施例的功能模块示意图;FIG. 6 is a schematic diagram of the functional modules of the first embodiment of the device for optimizing the multicast protocol according to the present invention;

图7为本发明优化组播协议的装置第二实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a second embodiment of a device for optimizing a multicast protocol according to the present invention;

图8为本发明优化组播协议的装置第三实施例的功能模块示意图;FIG. 8 is a schematic diagram of functional modules of a third embodiment of a device for optimizing a multicast protocol according to the present invention;

图9为本发明优化组播协议的装置第四实施例的功能模块示意图;FIG. 9 is a schematic diagram of functional modules of a fourth embodiment of an apparatus for optimizing a multicast protocol according to the present invention;

图10为本发明优化组播协议的装置第五实施例的功能模块示意图;FIG. 10 is a schematic diagram of functional modules of a fifth embodiment of an apparatus for optimizing a multicast protocol according to the present invention;

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明提供一种优化组播协议的方法,参照图1,图1为本发明优化组播协议的方法第一实施例的流程示意图,在第一实施例中,所述优化组播协议的方法包括以下步骤:The present invention provides a method for optimizing a multicast protocol. Referring to FIG. 1, FIG. 1 is a schematic flow chart of a first embodiment of a method for optimizing a multicast protocol in the present invention. In the first embodiment, the method for optimizing a multicast protocol Include the following steps:

步骤S100、建立下游路由器所有成员的邻居跟踪表。Step S100, establishing a neighbor tracking table of all members of the downstream router.

上游路由器的优化组播协议的装置建立邻居跟踪表,该邻居跟踪表包括下游路由器所有成员的相关信息,比如邻居跟踪表的所有成员包括A、B、C、D、E和F成员。The device for optimizing the multicast protocol of the upstream router establishes a neighbor tracking table, which includes relevant information of all members of the downstream router, for example, all members of the neighbor tracking table include A, B, C, D, E and F members.

步骤S200、如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息。Step S200, if the prune message sent by all members of the downstream router through the neighbor tracking link is received, it is judged that all members are offline, and the related information of all members in the neighbor tracking table is deleted.

上游路由器的优化组播协议的装置如果接收到下游路由器的所有成员通过邻居跟踪Neighbor Tracking链路发送的Prune剪枝报文时,则判断所有成员离线,在邻居跟踪表中删除所有成员的相关信息,此时,该邻居跟踪表为空列表。If the device for optimizing the multicast protocol of the upstream router receives the Prune message sent by all members of the downstream router through the Neighbor Tracking link, it will judge that all members are offline, and delete the relevant information of all members in the neighbor tracking table , at this point, the neighbor tracking table is an empty list.

步骤S300、根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。Step S300, generate a prune echo message according to the state of the neighbor tracking table, and return it to the downstream router.

上游路由器的优化组播协议的装置识别到所有成员离线后,生成Prune Echo剪枝回显报文,并将Prune Echo剪枝回显报文返回给下游路由器,触发离线的下游路由器成员重新加入,而下游路由器如果检测到接收的不是Prune Echo剪枝回显报文,而是其他下游路由器发送的Prune剪枝报文时则不予处理,从而减少了报文处理的数量,减轻了下游链路的负担。After the device of the optimized multicast protocol of the upstream router recognizes that all members are offline, it generates a Prune Echo prune echo message and returns the Prune Echo prune echo message to the downstream router, triggering the offline downstream router members to rejoin. If the downstream router detects that it is not the Prune Echo prune echo message, but the Prune prune message sent by other downstream routers, it will not process it, thereby reducing the number of message processing and reducing the burden on the downstream link. burden.

本实施例提供的优化组播协议的方法,减少了报文处理的数量;减轻了下游链路的负担;从而提升了网络传输效率,减轻了上游路由器负担。The method for optimizing the multicast protocol provided in this embodiment reduces the number of message processing, reduces the burden on the downstream link, thus improves the network transmission efficiency and reduces the burden on the upstream router.

具体地,参见图2,图2为本发明优化组播协议的方法第二实施例的流程示意图,在第一实施例的基础上,所述步骤S200之后还包括:Specifically, referring to FIG. 2, FIG. 2 is a schematic flow diagram of the second embodiment of the method for optimizing the multicast protocol in the present invention. On the basis of the first embodiment, after the step S200, it also includes:

步骤S200A、将当前上游路由器的状态从加入状态切换为未加入状态。Step S200A, switch the state of the current upstream router from the joined state to the unjoined state.

上游路由器的优化组播协议的装置如果接收到下游路由器的所有成员发送的Prune剪枝报文时,则判断所有成员都离线,删除该邻居跟踪表所有成员的相关信息,此时,该邻居跟踪表为空列表,从加入Join状态切换为未加入No Info状态。If the device for optimizing the multicast protocol of the upstream router receives the Prune prune message sent by all members of the downstream router, it will judge that all members are offline, and delete the relevant information of all members of the neighbor tracking table. At this time, the neighbor tracking The table is an empty list, and it is switched from the Join state to the No Info state.

进一步地,参见图3,图3为本发明优化组播协议的方法第三实施例的流程示意图,在第一实施例的基础上,所述步骤S300之前包括:Further, referring to FIG. 3 , FIG. 3 is a schematic flowchart of a third embodiment of a method for optimizing a multicast protocol according to the present invention. On the basis of the first embodiment, the steps before S300 include:

步骤S300A、判断所述要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。Step S300A, judging whether the source IP address of the message to be returned is consistent with the address of the destination upstream field, and if the addresses are consistent, returning the prune echo message to the downstream router.

上游路由器的优化组播协议的装置判断将要返回的报文的源IP地址和目的上流Up-Stream字段地址是否一致,如果地址一致,则判断该报文为Prune Echo剪枝回显报文,则将此报文返回给所述下游路由器;如果不一致,则判断此报文不是Prune Echo剪枝回显报文,不将此报文返回给所述下游路由器,从而减少了报文的处理量。The device for optimizing the multicast protocol of the upstream router judges whether the source IP address of the message to be returned is consistent with the address of the upstream Up-Stream field of the destination, and if the addresses are consistent, it is judged that the message is a Prune Echo pruning echo message, then This message is returned to the downstream router; if inconsistent, it is judged that the message is not a Prune Echo pruning echo message, and the message is not returned to the downstream router, thereby reducing the processing capacity of the message.

进一步地,参见图4,图4为本发明优化组播协议的方法第四实施例的流程示意图,在第一实施例的基础上,所述步骤S300之前还包括:Further, referring to FIG. 4 , FIG. 4 is a schematic flowchart of a fourth embodiment of a method for optimizing a multicast protocol in the present invention. On the basis of the first embodiment, the step S300 also includes:

步骤S300B、设置超时定时器,待超时时间到,返回剪枝回显报文。Step S300B, setting a timeout timer, and returning a pruning echo message when the timeout expires.

上游路由器的优化组播协议的装置设置超时定时器,待设定的超时时间到时,则返回Prune Echo剪枝回显报文,从而避免了短时间内路由链路壅塞。超时定时器的设定时间可以根据实际的报文处理时间自由调整。The device for optimizing the multicast protocol of the upstream router sets a timeout timer, and when the set timeout time expires, it returns a Prune Echo message, thereby avoiding routing link congestion in a short period of time. The setting time of the timeout timer can be adjusted freely according to the actual packet processing time.

进一步地,参见图4,图4为本发明优化组播协议的方法第四实施例的流程示意图,在第一实施例的基础上,所述步骤S300之后还包括:Further, referring to FIG. 4 , FIG. 4 is a schematic flowchart of a fourth embodiment of a method for optimizing a multicast protocol in the present invention. On the basis of the first embodiment, after the step S300, it further includes:

步骤S400、如果接收到下游路由器离线的成员发送的加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中。Step S400: After receiving the joining message sent by the offline member of the downstream router, it is judged that the member is online, and the related information of the member is added to the neighbor tracking table.

下游路由器离线的成员接收到上游路由器发送的Prune剪枝回显报文后,发送一个Join加入报文,上游路由器的优化组播协议的装置接收到下游路由器离线的成员发送的Join加入报文后,则判断离线的成员重新上线,从而增加所述成员的相关信息至该邻居跟踪表中,而下游路由器如果检测到接收的不是Prune Echo剪枝回显报文,而是其他下游路由器发送的Prune剪枝报文时则不予处理,从而减少了报文处理的数量,减轻了下游链路的负担。After receiving the Prune prune echo message sent by the upstream router, the offline member of the downstream router sends a Join message, and the device optimizing the multicast protocol of the upstream router receives the Join message sent by the offline member of the downstream router , it is judged that the offline member is back online, so as to add the relevant information of the member to the neighbor tracking table, and if the downstream router detects that it is not the Prune Echo prune echo message received, but the Prune echo message sent by other downstream routers When pruning the message, it will not be processed, thereby reducing the number of message processing and reducing the burden on the downstream link.

进一步地,本发明还提供一种优化组播协议的装置,参见图6,图6为本发明优化组播协议的装置第一实施例的功能模块示意图,在第一实施例中,所述优化组播协议的装置包括:Further, the present invention also provides a device for optimizing a multicast protocol, see FIG. 6 , which is a schematic diagram of the functional modules of the first embodiment of the device for optimizing a multicast protocol according to the present invention. In the first embodiment, the optimized Devices for the multicast protocol include:

建立模块10,用于建立下游路由器所有成员的邻居跟踪表;Build module 10, be used for setting up the neighbor tracking table of all members of downstream router;

剪枝模块20,用于如果接收到下游路由器的其中一个成员通过邻居跟踪链路发送的Prune剪枝报文时,则判断所述成员离线,删除该邻居跟踪表中所述成员的相关信息;Pruning module 20, for if when receiving the Prune pruning message sent by one of the members of the downstream router through the neighbor tracking link, then judge that the member is offline, delete the relevant information of the member in the neighbor tracking table;

反馈模块30,用于根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器。The feedback module 30 is configured to generate a prune echo message according to the state of the neighbor tracking table, and return it to the downstream router.

上游路由器的优化组播协议的装置的建立模块10建立邻居跟踪表,该邻居跟踪表包括下游路由器所有成员的相关信息,比如邻居跟踪表的所有成员包括A、B、C、D、E和F成员。The establishment module 10 of the device for optimizing the multicast protocol of the upstream router establishes a neighbor tracking table, which includes relevant information of all members of the downstream router, such as all members of the neighbor tracking table include A, B, C, D, E and F member.

上游路由器的优化组播协议的装置的剪枝模块20如果接收到下游路由器的所有成员通过邻居跟踪Neighbor Tracking链路发送的Prune剪枝报文时,则判断所有成员离线,在邻居跟踪表中删除所有成员的相关信息,此时,该邻居跟踪表为空列表。If the pruning module 20 of the device for optimizing the multicast protocol of the upstream router receives the Prune pruning message sent by all members of the downstream router through the neighbor tracking Neighbor Tracking link, then it is judged that all members are offline and deleted in the neighbor tracking table Information about all members. At this point, the neighbor tracking table is an empty list.

上游路由器的优化组播协议的装置的反馈模块30识别到所有成员离线后,生成Prune Echo剪枝回显报文,并将Prune Echo剪枝回显报文返回给下游路由器,触发离线的下游路由器成员重新加入,而下游路由器如果检测到接收的不是Prune Echo剪枝回显报文,而是其他下游路由器发送的Prune剪枝报文时则不予处理,从而减少了报文处理的数量,减轻了下游链路的负担。After the feedback module 30 of the device for optimizing the multicast protocol of the upstream router recognizes that all members are offline, it generates a Prune Echo prune echo message, and returns the Prune Echo prune echo message to the downstream router, triggering the offline downstream router If the downstream router detects that the received Prune Echo message is not the Prune Echo message, but the Prune message sent by other downstream routers, it will not process it, thereby reducing the number of message processing and reducing the burden on the downstream link.

本实施例提供的优化组播协议的装置,减少了报文处理的数量;减轻了下游链路的负担;从而提升了网络传输效率,减轻了上游路由器负担。The device for optimizing the multicast protocol provided in this embodiment reduces the number of message processing, reduces the burden on the downstream link, thereby improving the network transmission efficiency and reducing the burden on the upstream router.

具体地,参见图7,本实施例提供的优化组播协议的装置,所述优化组播协议的装置还包括:Specifically, referring to FIG. 7, the device for optimizing the multicast protocol provided in this embodiment further includes:

切换模块40,用于将当前上游路由器的状态从加入状态切换为未加入状态。The switching module 40 is configured to switch the state of the current upstream router from the joining state to the non-joining state.

上游路由器的优化组播协议的装置的切换模块40如果接收到下游路由器的所有成员发送的Prune报文时,则判断所有成员都离线,删除该邻居跟踪表所有成员的相关信息,此时,该邻居跟踪表为空列表,从加入Join状态切换为未加入No Info状态。If the switching module 40 of the device for optimizing the multicast protocol of the upstream router receives the Prune message sent by all the members of the downstream router, then it is judged that all members are offline, and the relevant information of all members of the neighbor tracking table is deleted. The neighbor tracking table is an empty list, and it is switched from the Join state to the No Info state.

具体地,参见图8,本实施例提供的优化组播协议的装置,所述优化组播协议的装置还包括:Specifically, referring to FIG. 8, the device for optimizing the multicast protocol provided in this embodiment further includes:

判断模块50,用于判断所述要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。The judging module 50 is used to judge whether the source IP address of the message to be returned is consistent with the destination upstream field address, and if the addresses are consistent, return the pruned echo message to the downstream router.

上游路由器的优化组播协议的装置的判断模块50判断将要返回的报文的源IP地址和目的上流Up-Stream字段地址是否一致,如果地址一致,则判断该报文为Prune Echo剪枝回显报文,则将此报文返回给所述下游路由器;如果不一致,则判断此报文不是PruneEcho剪枝回显报文,不将此报文返回给所述下游路由器,从而减少了报文的处理量。The judging module 50 of the device for optimizing the multicast protocol of the upstream router judges whether the source IP address of the message to be returned is consistent with the destination upstream Up-Stream field address, and if the addresses are consistent, then it is judged that the message is a Prune Echo pruning echo message, then this message is returned to the downstream router; if inconsistent, then it is judged that this message is not a PruneEcho pruning echo message, and this message is not returned to the downstream router, thereby reducing the number of packets. throughput.

优选地,参见图9,本实施例提供的优化组播协议的装置,所述优化组播协议的装置还包括:Preferably, referring to FIG. 9, the device for optimizing the multicast protocol provided in this embodiment further includes:

超时模块60,用于设置超时定时器,待超时时间到,返回Prune Echo剪枝回显报文。The timeout module 60 is configured to set a timeout timer, and return a Prune Echo message when the timeout expires.

上游路由器的优化组播协议的装置的超时模块60设置超时定时器,待设定的超时时间到时,则返回Prune Echo剪枝回显报文,从而避免了短时间内路由链路壅塞。超时定时器的设定时间可以根据实际的报文处理时间自由调整。The timeout module 60 of the device for optimizing the multicast protocol of the upstream router sets a timeout timer, and when the timeout period to be set expires, a Prune Echo message is returned, thereby avoiding routing link congestion in a short period of time. The setting time of the timeout timer can be adjusted freely according to the actual packet processing time.

优选地,参见图10,本实施例提供的优化组播协议的装置,所述优化组播协议的装置还包括:Preferably, referring to FIG. 10, the device for optimizing the multicast protocol provided in this embodiment further includes:

加入模块70,用于如果接收到下游路由器离线的成员发送的加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中。The join module 70 is configured to determine that the member is online after receiving the join message sent by the offline member of the downstream router, and add the relevant information of the member to the neighbor tracking table.

下游路由器离线的成员接收到上游路由器发送的Prune剪枝回显报文后,发送一个Join加入报文,上游路由器的优化组播协议的装置的加入模块70接收到下游路由器离线的成员发送的Join加入报文后,则判断离线的成员重新上线,从而增加所述成员的相关信息至该邻居跟踪表中,而下游路由器如果检测到接收的不是Prune Echo剪枝回显报文,而是其他下游路由器发送的Prune剪枝报文时则不予处理,从而减少了报文处理的数量,减轻了下游链路的负担。After receiving the Prune prune echo message sent by the upstream router, the offline member of the downstream router sends a Join message, and the join module 70 of the device optimizing the multicast protocol of the upstream router receives the Join message sent by the offline member of the downstream router. After adding the message, it is judged that the offline member is back online, so as to add the relevant information of the member to the neighbor tracking table, and if the downstream router detects that it is not the Prune Echo pruning echo message, but other downstream routers Prune packets sent by routers are not processed, thereby reducing the number of packets to be processed and reducing the burden on downstream links.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种优化组播协议的方法,其特征在于,所述优化组播协议的方法包括以下步骤:建立下游路由器所有成员的邻居跟踪表;1. a method for optimizing multicast protocol, is characterized in that, the method for described optimization multicast protocol comprises the following steps: set up the neighbor tracking table of all members of downstream router; 如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;If receiving the pruning message sent by all members of the downstream router through the neighbor tracking link, it is judged that all members are offline, and the relevant information of all members in the neighbor tracking table is deleted; 根据邻居跟踪表的状态生成剪枝回显报文,将所述剪枝回显报文返回给所述下游路由器以触发所述下游路由器重新加入,其中,所述下游路由器不处理其他下游路由器的剪枝报文。Generate a prune echo message according to the state of the neighbor tracking table, and return the prune echo message to the downstream router to trigger the downstream router to rejoin, wherein the downstream router does not process other downstream routers Prune packets. 2.如权利要求1的所述的优化组播协议的方法,其特征在于,所述如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息的步骤之后还包括:2. the method for optimizing multicast protocol as claimed in claim 1, is characterized in that, if all members of described downstream router receive the prune message that sends by neighbor tracking link, then judge that all members Offline, after the step of deleting the relevant information of all members in the neighbor tracking table, it also includes: 将当前上游路由器的状态从加入状态切换为未加入状态。Switch the status of the current upstream router from joining to not joining. 3.如权利要求1的所述的优化组播协议的方法,其特征在于,所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之前还包括:3. the method for optimizing the multicast protocol as claimed in claim 1, is characterized in that, described according to the state of neighbor tracking table generation pruning echo message, before returning to the step of described downstream router, also comprises: 判断要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。It is judged whether the source IP address of the message to be returned is consistent with the address of the destination upstream field, and if the addresses are consistent, the prune echo message is returned to the downstream router. 4.如权利要求1的所述的优化组播协议的方法,其特征在于,所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之前还包括:4. the method for optimizing multicast protocol as claimed in claim 1, is characterized in that, described according to the state of neighbor tracking table generation pruning echo message, before returning to the step of described downstream router, also comprises: 设置超时定时器,待超时时间到,返回剪枝回显报文。Set the timeout timer, and return the pruning echo message when the timeout expires. 5.如权利要求1至4任一项所述的优化组播协议的方法,其特征在于,所述根据邻居跟踪表的状态生成剪枝回显报文,返回给所述下游路由器的步骤之后还包括:5. The method for optimizing the multicast protocol according to any one of claims 1 to 4, characterized in that, after the step of generating a pruning echo message according to the state of the neighbor tracking table, returning to the downstream router Also includes: 如果接收到下游路由器离线的成员发送的加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中。After receiving the joining message sent by the offline member of the downstream router, it is judged that the member is online, and the related information of the member is added to the neighbor tracking table. 6.一种优化组播协议的装置,其特征在于,所述优化组播协议的装置包括:建立模块,用于建立下游路由器所有成员的邻居跟踪表;6. A device for optimizing a multicast protocol, characterized in that, the device for optimizing a multicast protocol comprises: a module for setting up a neighbor tracking table for all members of a downstream router; 剪枝模块,用于如果接收到所述下游路由器的所有成员通过邻居跟踪链路发送的剪枝报文时,则判断所有成员离线,删除该邻居跟踪表中所有成员的相关信息;A pruning module, configured to determine that all members are offline and delete relevant information of all members in the neighbor tracking table if receiving a pruning message sent by all members of the downstream router through the neighbor tracking link; 反馈模块,用于根据邻居跟踪表的状态生成剪枝回显报文,将所述剪枝回显报文返回给所述下游路由器以触发所述下游路由器重新加入,其中,所述下游路由器不处理其他下游路由器的剪枝报文。A feedback module, configured to generate a prune echo message according to the state of the neighbor tracking table, and return the prune echo message to the downstream router to trigger the downstream router to rejoin, wherein the downstream router does not Process the pruned packets of other downstream routers. 7.如权利要求6的所述的优化组播协议的装置,其特征在于,所述优化组播协议的装置的切换模块,用于将当前上游路由器的状态从加入状态切换为未加入状态。7. The device for optimizing a multicast protocol according to claim 6, wherein the switching module of the device for optimizing a multicast protocol is configured to switch the state of the current upstream router from a joining state to a non-joining state. 8.如权利要求6的所述的优化组播协议的装置,其特征在于,所述优化组播协议的装置还包括:8. The device for optimizing the multicast protocol according to claim 6, wherein the device for optimizing the multicast protocol further comprises: 判断模块,用于判断要返回的报文的源IP地址和目的上流字段地址是否一致,如果地址一致,则将剪枝回显报文返回给所述下游路由器。The judging module is used to judge whether the source IP address of the message to be returned is consistent with the destination upstream field address, and if the addresses are consistent, return the pruned echo message to the downstream router. 9.如权利要求6的所述的优化组播协议的装置,其特征在于,所述优化组播协议的装置还包括:9. The device for optimizing the multicast protocol according to claim 6, wherein the device for optimizing the multicast protocol further comprises: 超时模块,用于设置超时定时器,待超时时间到,返回剪枝回显报文。The timeout module is used to set the timeout timer, and when the timeout expires, the pruning echo message will be returned. 10.如权利要求6至9任一项所述的优化组播协议的装置,其特征在于,所述优化组播协议的装置还包括:10. The device for optimizing the multicast protocol according to any one of claims 6 to 9, wherein the device for optimizing the multicast protocol further comprises: 加入模块,用于如果接收到下游路由器离线的成员发送的加入报文后,则判断所述成员上线,增加所述成员的相关信息至该邻居跟踪表中。The join module is configured to determine that the member is online after receiving the join message sent by the offline member of the downstream router, and add the relevant information of the member to the neighbor tracking table.
CN201410571429.6A 2014-10-23 2014-10-23 Method and device for optimizing multicast protocol Active CN105591942B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410571429.6A CN105591942B (en) 2014-10-23 2014-10-23 Method and device for optimizing multicast protocol
PCT/CN2015/086234 WO2016062150A1 (en) 2014-10-23 2015-08-06 Multicast protocol optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410571429.6A CN105591942B (en) 2014-10-23 2014-10-23 Method and device for optimizing multicast protocol

Publications (2)

Publication Number Publication Date
CN105591942A CN105591942A (en) 2016-05-18
CN105591942B true CN105591942B (en) 2019-12-17

Family

ID=55760258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410571429.6A Active CN105591942B (en) 2014-10-23 2014-10-23 Method and device for optimizing multicast protocol

Country Status (2)

Country Link
CN (1) CN105591942B (en)
WO (1) WO2016062150A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600738B (en) * 2020-03-30 2022-12-09 福建天泉教育科技有限公司 Method for optimizing timeout processing and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167311A (en) * 2005-04-25 2008-04-23 汤姆森特许公司 Multicast route protocol in gridding network
CN101764756A (en) * 2010-01-14 2010-06-30 福建星网锐捷网络有限公司 Method and device for pruning forwarding path of multicast data and network equipment
CN102970236A (en) * 2012-12-03 2013-03-13 杭州华三通信技术有限公司 Multicast distribution tree switching method and device
CN104509044A (en) * 2012-06-01 2015-04-08 瑞典爱立信有限公司 Enhancements of the protocol independent multicast (PIM) fast re-route methodology with downstream notification packets
CN104662851A (en) * 2012-06-01 2015-05-27 瑞典爱立信有限公司 Enhancements to PIM fast re-route with upstream activation packets

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7746858B2 (en) * 2006-01-03 2010-06-29 Cisco Technology, Inc. Scaling enhancement for PIM control messages in multicast VPNs
US7969981B2 (en) * 2008-09-02 2011-06-28 Cisco Technology, Inc. System and method for multicasting in an internet protocol virtual private network environment
CN101917346B (en) * 2010-09-01 2012-07-04 杭州华三通信技术有限公司 Message transmitting method and equipment
CN102075417B (en) * 2010-09-30 2013-11-06 杭州华三通信技术有限公司 Multicast cutting method, protocol independent multicast router
CN102404205B (en) * 2011-11-04 2017-11-28 中兴通讯股份有限公司 A kind of method and apparatus for suppressing Multicast Routing concussion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167311A (en) * 2005-04-25 2008-04-23 汤姆森特许公司 Multicast route protocol in gridding network
CN101764756A (en) * 2010-01-14 2010-06-30 福建星网锐捷网络有限公司 Method and device for pruning forwarding path of multicast data and network equipment
CN104509044A (en) * 2012-06-01 2015-04-08 瑞典爱立信有限公司 Enhancements of the protocol independent multicast (PIM) fast re-route methodology with downstream notification packets
CN104662851A (en) * 2012-06-01 2015-05-27 瑞典爱立信有限公司 Enhancements to PIM fast re-route with upstream activation packets
CN102970236A (en) * 2012-12-03 2013-03-13 杭州华三通信技术有限公司 Multicast distribution tree switching method and device

Also Published As

Publication number Publication date
WO2016062150A1 (en) 2016-04-28
CN105591942A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US8780908B2 (en) Method and apparatus for tracing a multicast flow
CN109150580B (en) Protocol independent multicast join entropy
WO2010110100A1 (en) Wireless communication apparatus, wireless network system, data transfer method, and recording medium
EP2571209A1 (en) Multicast packet transmission method, related device and system
KR101344015B1 (en) Join message load control system and the method in network that use PIM-SSM
CN102724048B (en) Method and device for notifying rendezvous point by sparse-mode protocol independent multicast
CN105099937B (en) A kind of determination method and apparatus of PMTU
EP2234344B1 (en) Methods, system and routers for realizing switching between layer-2 and layer-3 multicast route tracing
CN104348736A (en) Method for selecting route under multicast load scene and routers
CN105591942B (en) Method and device for optimizing multicast protocol
CN101873260A (en) Multicast streaming forwarding method and routing equipment
EP2736204A1 (en) Rendezvous Point Convergence Method and Apparatus
WO2015032337A1 (en) Method for optimizing pim-sm multicast route establishment
CN111600798B (en) Method and equipment for sending and obtaining assertion message
CN102624604A (en) A multicast control method, routing device and multicast system
CN102843303B (en) Multicast message processing method in PIM and device
CN106101009B (en) A kind of electoral machinery and device of Protocol Independent Multicast PIM
CN104283796A (en) Multicast distribution tree establishment method and device
CN102347908B (en) Multi-cast route constructing method based on network coding
WO2013185650A1 (en) Reply message transmission method and node
CN101286925B (en) Method and device for detecting whether repeated multicasting datagram appears
KR101562225B1 (en) Method and apparatus for preventing unnecessary assert message in network
CN109195117B (en) Method for improving PIM-SM (personal information management-SM) in broadcast type multi-hop wireless network
CN102158405B (en) Method and device for establishing multicast forwarding table entry in bidirectional protocol independent multicast (PIM) network
CN105099907B (en) Path detection method, sink node device and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant