CN101778113A - Method for detection of RP state in multicast network, device, RP device and multicast system - Google Patents
Method for detection of RP state in multicast network, device, RP device and multicast system Download PDFInfo
- Publication number
- CN101778113A CN101778113A CN201010104029A CN201010104029A CN101778113A CN 101778113 A CN101778113 A CN 101778113A CN 201010104029 A CN201010104029 A CN 201010104029A CN 201010104029 A CN201010104029 A CN 201010104029A CN 101778113 A CN101778113 A CN 101778113A
- Authority
- CN
- China
- Prior art keywords
- detected
- detection
- message
- identifier
- sending
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 193
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000004044 response Effects 0.000 claims abstract description 125
- 230000005540 biological transmission Effects 0.000 claims abstract description 22
- 238000013507 mapping Methods 0.000 claims description 19
- 230000008859 change Effects 0.000 abstract description 7
- 230000007257 malfunction Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 9
- 238000005538 encapsulation Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种组播网中RP状态检测方法、装置、RP装置和组播系统。该方法包括:根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;根据所述待检测RP返回的响应报文携带的标识的连续性,确定所述待检测RP是否故障或者发生变化。该装置包括报文发送模块和故障检测模块。该系统包括检测装置和至少一个RP装置。本发明实施例通过按预设频率向待检测RP发送携带有有序标识的检测报文,并根据待检测RP的实时响应确定RP状态,RP状态的检测快速、准确,可有效提高整个组播网的收敛性,提高组播网中数据报文传输的准确性和可靠性。
The invention discloses an RP state detection method and device in a multicast network, an RP device and a multicast system. The method includes: according to a preset sending frequency, sending a detection message carrying an ordered identifier to the RP to be detected; according to the continuity of the identifiers carried in the response message returned by the RP to be detected, determining the RP to be detected malfunction or change. The device includes a message sending module and a fault detection module. The system includes a detection device and at least one RP device. In the embodiment of the present invention, by sending a detection message carrying an orderly identifier to the RP to be detected at a preset frequency, and determining the RP state according to the real-time response of the RP to be detected, the detection of the RP state is fast and accurate, which can effectively improve the overall multicast The convergence of the network improves the accuracy and reliability of data packet transmission in the multicast network.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种组播网中RP状态检测方法、装置、RP装置和组播系统。The embodiment of the present invention relates to the field of communication technologies, and in particular to a method and device for detecting RP status in a multicast network, an RP device and a multicast system.
背景技术Background technique
组播技术作为一种有效地IP传输解决方案,可以节省骨干网络带宽,可适用于具有较大数据传输的业务中,如用于新兴的电子商务、网上会议、网上拍卖、视频点播以及远程教学等服务中,可有效避免采用单播方式传播对网络带宽的较高要求,因此,组播技术得到了广泛的应用。As an effective IP transmission solution, multicast technology can save backbone network bandwidth and is applicable to services with large data transmission, such as emerging e-commerce, online conferences, online auctions, video on demand and distance teaching In services such as unicast, it can effectively avoid the high requirement of network bandwidth for unicast transmission. Therefore, multicast technology has been widely used.
在组播网络中,需要建立组播共享树实现报文的传送,而组播共享树是通过组播路由协议来完成的。其中,稀疏模式独立组播协议(ProtocolIndependent Multicast Sparse Mode,PIM-SM)是当前广泛应用的组播路由协议,依据该协议可构造并维护一棵单向共享树,共享树选择某一路由器作为公用的根节点,称为汇聚点(Rendezvous Point,RP),所有的接收路由器向RP发送组加入消息加入组播组,从而在沿途各节点建立了相应的转发表项,从RP到所有接收路由器之间形成了一条树状的转发通路,形成组播共享树。组播数据传输时,首先到达RP节点,当数据到达了RP节点后,组播数据包被复制并沿着共享树传给接收者,因此,在RP节点信息一旦出现变化应该马上通告整个的路由器,否则将导致组播路由无法收敛,以及组播数据报文转发中断等严重问题。In a multicast network, a multicast shared tree needs to be established to transmit packets, and the multicast shared tree is implemented through a multicast routing protocol. Among them, Sparse Mode Independent Multicast Protocol (Protocol Independent Multicast Sparse Mode, PIM-SM) is a widely used multicast routing protocol at present. According to this protocol, a one-way shared tree can be constructed and maintained. The shared tree selects a certain router as the public The root node of the network is called the rendezvous point (Rendezvous Point, RP). All the receiving routers send group join messages to the RP to join the multicast group, so that corresponding forwarding entries are established at each node along the way. From RP to all receiving routers A tree-like forwarding path is formed between them, forming a multicast shared tree. When multicast data is transmitted, it first reaches the RP node. When the data arrives at the RP node, the multicast data packet is copied and sent to the receiver along the shared tree. Therefore, once the RP node information changes, the entire router should be notified immediately Otherwise, serious problems such as failure of multicast routing convergence and interruption of multicast data packet forwarding will occur.
目前,为防止组播路由收敛的问题,在PIM协议中定义了一种机制,通过为组播网络中特定的组G配置多个候选RP(Candidate RP,C-RP),由每台候选RP通过将本身的RP信息通告给引导路由器BSR,由BSR将收集到的RP信息周期的通告到整个PIM网络,从而使网络中的每台多播路由器都保持最新的RP信息。由于BSR仅在本地RP映射表发生变化的情况下才会发出引导信息通告全网RP的变化,目前BSR检测到RP失效的周期较长,通常为150s,因此,一旦RP发生故障,可能会出现由于BSR等待RP失效的时间过长,而导致组播数据流中断的严重情况发生。现有技术中,也有提出通过减小RP通告信息的周期来提高组播路由更新的速度,但是,RP通告信息报文是一种协议报文,设备在处理这种协议报文需要消耗较大的资源,如果网络中存在多个C-RP,则会对BSR设备造成较大的负担,并且通过减少RP通告周期的手段也只能保证路由在3~5s内完成收敛,RP设备出现故障时,仍旧会造成大量数据报文的丢失。At present, in order to prevent the problem of multicast routing convergence, a mechanism is defined in the PIM protocol. By configuring multiple candidate RPs (Candidate RP, C-RP) for a specific group G in the multicast network, each candidate RP By notifying its own RP information to the leading router BSR, the BSR periodically notifies the collected RP information to the entire PIM network, so that each multicast router in the network maintains the latest RP information. Since the BSR sends out guidance information to notify the change of the RP in the entire network only when the local RP mapping table changes, the period for the BSR to detect the failure of the RP is relatively long, usually 150s. Therefore, once the RP fails, there may be Because the BSR waits too long for the RP to fail, the serious situation of interrupting the multicast data flow occurs. In the prior art, it is also proposed to increase the speed of multicast routing update by reducing the cycle of RP notification information, but the RP notification message is a protocol message, and the device needs to consume a lot of time to process this protocol message. resources, if there are multiple C-RPs in the network, it will cause a large burden on the BSR device, and the method of reducing the RP advertisement period can only ensure that the route convergence is completed within 3 to 5 seconds. , will still result in the loss of a large number of data packets.
发明人在实现本发明的过程中发现现有组播技术中,BSR检测和发现RP故障或变化的时间较长,导致RP节点出现故障或变化时,无法快速的对组播网络进行重新收敛,导致组播报文丢失,影响组播网络报文传输的安全性和可靠性。In the process of implementing the present invention, the inventor found that in the existing multicast technology, the time for BSR to detect and discover RP faults or changes is relatively long, so that when the RP node fails or changes, the multicast network cannot be quickly re-converged. As a result, multicast packets are lost, affecting the security and reliability of multicast network packet transmission.
发明内容Contents of the invention
本发明提供一种组播网中RP状态检测方法、装置、RP装置和组播系统,可以有效提高组播网中BSR快速有效地检测和发现RP故障或变化,从而可快速有效地组播网络进行收敛,避免组播报文的丢失。The present invention provides an RP state detection method, device, RP device and multicast system in a multicast network, which can effectively improve the fast and effective detection and discovery of RP faults or changes by the BSR in the multicast network, so that the multicast network can be quickly and effectively Perform convergence to avoid loss of multicast packets.
本发明实施例提供一种组播网中RP状态检测方法,包括:An embodiment of the present invention provides a method for detecting RP status in a multicast network, including:
根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;According to the preset sending frequency, send the detection message carrying the orderly identification to the RP to be detected;
根据所述待检测RP返回的响应报文携带的标识的连续性,确定所述待检测RP是否故障或者发生变化。According to the continuity of the identifier carried in the response message returned by the RP to be detected, it is determined whether the RP to be detected is faulty or changed.
本发明实施例提供了一种组播网中RP状态检测装置,包括:An embodiment of the present invention provides an RP state detection device in a multicast network, including:
报文发送模块,用于根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;A message sending module, configured to send a detection message carrying an orderly identifier to the RP to be detected according to a preset sending frequency;
故障检测模块,用于根据所述待检测RP返回的响应报文携带的标识的连续性,确定所述待检测RP是否故障或者发生变化。A fault detection module, configured to determine whether the RP to be detected is faulty or has changed according to the continuity of the identifier carried in the response message returned by the RP to be detected.
本发明实施例提供了一种RP装置,包括:An embodiment of the present invention provides an RP device, including:
检测报文接收模块,用于接收组播网中发送来的携带有有序标识的检测报文;The detection message receiving module is used to receive the detection message carrying the orderly identification sent in the multicast network;
响应报文发送模块,用于对接收到的检测报文作出响应,并返回携带有相应标识的响应报文。The response message sending module is configured to respond to the received detection message and return a response message carrying a corresponding identifier.
本发明实施例提供了一种组播系统,包括上述的检测装置和上述的RP装置,且RP装置的数量至少为1个。An embodiment of the present invention provides a multicast system, including the above-mentioned detection device and the above-mentioned RP device, and the number of the RP device is at least one.
本发明实施例通过按预设频率发送携带有标识的检测报文,并实时检测待检测RP的响应,根据待检测RP返回的响应报文的标识的连续性,确定待检测RP是否故障或发生变化,由于检测报文是按照预设频率进行发送,检测报文的发送方便快捷,不受待检测RP状态的限制,且只需要根据响应报文的标识的连续性即可有效地确定RP故障或发生变化,可有效提高整个检测过程中的检测速度,从而有效地提高RP状态检测效率,保证整网的快速收敛,以及保证业务数据报文的正常传播,可有效防止组播报文的丢失,提高了组播网络报文传输的安全性和可靠性。In the embodiment of the present invention, by sending the detection message with the identification according to the preset frequency, and detecting the response of the RP to be detected in real time, according to the continuity of the identification of the response message returned by the RP to be detected, it is determined whether the RP to be detected is faulty or occurs. Since the detection message is sent according to the preset frequency, the transmission of the detection message is convenient and fast, and it is not limited by the state of the RP to be detected, and the RP fault can be effectively determined only according to the continuity of the identification of the response message or changes, can effectively improve the detection speed in the entire detection process, thereby effectively improving the efficiency of RP status detection, ensuring the rapid convergence of the entire network, and ensuring the normal transmission of business data packets, which can effectively prevent the loss of multicast packets , improving the security and reliability of multicast network packet transmission.
附图说明Description of drawings
图1为本发明组播网中RP状态检测方法实施例一的流程示意图;Fig. 1 is a schematic flow chart of
图2为本发明组播网中RP状态检测方法实施例二的流程示意图;Fig. 2 is the schematic flow chart of
图3为本发明组播网中RP状态检测方法实施例三的流程示意图;Fig. 3 is the schematic flow chart of
图4为本发明组播网中RP状态检测方法实施例四实际应用的场景结构示意图;FIG. 4 is a schematic structural diagram of a practical application of
图5为本发明组播网中RP状态检测方法实施例四的流程示意图;5 is a schematic flow diagram of
图6为本发明实施例中报文的封装示意图;FIG. 6 is a schematic diagram of packet encapsulation in an embodiment of the present invention;
图7为本发明组播网中RP状态检测装置实施例一的结构示意图;7 is a schematic structural diagram of
图8为本发明组播网中RP状态检测装置实施例二的结构示意图;8 is a schematic structural diagram of
图9为本发明组播网中RP状态检测装置实施例二中报文发送模块的结构示意图;9 is a schematic structural diagram of a message sending module in
图10为本发明组播网中RP状态检测装置实施例二中故障检测模块的结构示意图;10 is a schematic structural diagram of the fault detection module in
图11为本发明RP装置实施例的结构示意图;Fig. 11 is a schematic structural diagram of an embodiment of the RP device of the present invention;
图12为本发明组播系统实施例的结构示意图。Fig. 12 is a schematic structural diagram of an embodiment of the multicast system of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图1为本发明组播网中RP状态检测方法实施例一的流程示意图。如图1所示,本实施例方法可包括如下步骤:FIG. 1 is a schematic flowchart of
步骤101、BSR根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;
步骤102、BSR根据所述待检测RP返回的响应报文携带的标识的连续性,确定所述待检测RP是否故障或者发生变化。
本实施例可应用于组播网中RP状态的检测,具体地可应用于采用PIM-SM的组播网中RP状态的检测。组播网中的BSR在对RP的状态进行检测时,可根据预设的发送频率,以独立的方式向待检测的RP依次发送携带有有序标识的检测报文,BSR发送过程不需要待检测RP的响应;RP接收到检测报文后,可将自身的RP信息封装在响应报文中,且在响应报文中携带标识,以同样地方式返给BSR,这样,BSR即可根据接收到的待检测RP的响应报文携带的标识的连续性,确定待检测RP是否故障或者发生变化,从而对故障或发生变化的RP信息进行更新,例如,可根据响应报文携带的不连续的预设标识确定RP是否发生变化,或者根据响应报文携带的标识的连续性确认报文丢失个数确定待检测RP是否故障,从而在RP故障或者发生变化时,更新本地的RP映射表信息,并通告整网更新RP信息,保证整网业务的正常运行。This embodiment can be applied to the detection of the RP state in the multicast network, and specifically can be applied to the detection of the RP state in the multicast network using PIM-SM. When the BSR in the multicast network detects the state of the RP, it can independently send the detection messages carrying the orderly identification to the RP to be detected according to the preset sending frequency. The BSR sending process does not need to wait Detect the response of the RP; after the RP receives the detection message, it can encapsulate its own RP information in the response message, and carry the identifier in the response message, and return it to the BSR in the same way, so that the BSR can The continuity of the identity carried in the response message of the RP to be detected can be determined to determine whether the RP to be detected is faulty or has changed, so as to update the information of the faulty or changed RP. For example, according to the discontinuous The preset identifier determines whether the RP has changed, or determines whether the RP to be detected is faulty according to the continuity of the identifier carried in the response message and confirms the number of lost packets, so that when the RP fails or changes, the local RP mapping table information is updated, And notify the entire network to update RP information to ensure the normal operation of the entire network business.
本实施例中,通过按预设频率发送携带有标识的检测报文,并实时检测待检测RP的响应,根据待检测RP返回的响应报文的标识的连续性,确定待检测RP是否故障或发生变化,由于检测报文是按照预设频率进行发送,检测报文的发送方便快捷,不受待检测RP状态的限制,且只需要根据响应报文的标识的连续性即可有效地确定RP故障或发生变化,可有效提高整个检测过程的检测速度,从而有效地提高RP状态检测效率,保证整网的快速收敛,以及保证业务数据报文的正常传播,可有效防止组播报文的丢失,提高了组播网络报文传输的安全性和可靠性。In this embodiment, by sending the detection message carrying the identification according to the preset frequency, and detecting the response of the RP to be detected in real time, according to the continuity of the identification of the response message returned by the RP to be detected, it is determined whether the RP to be detected is faulty or not. Changes, because the detection message is sent according to the preset frequency, the transmission of the detection message is convenient and fast, and is not limited by the status of the RP to be detected, and the RP can be effectively determined only according to the continuity of the identification of the response message Faults or changes can effectively improve the detection speed of the entire detection process, thereby effectively improving the efficiency of RP status detection, ensuring the rapid convergence of the entire network, and ensuring the normal transmission of business data packets, which can effectively prevent the loss of multicast packets , improving the security and reliability of multicast network packet transmission.
图2为本发明组播网中RP状态检测方法实施例二的流程示意图。本实施可应用于组播网中RP发生故障时的检测,具体地,如图2所示,本实施例方法可包括如下步骤:FIG. 2 is a schematic flow chart of
步骤201、BSR对发送的检测报文按发送顺序进行编号,并作为相应检测报文的标识。In
本步骤中,在进行检测报文发送时,可对每个发送的检测报文进行顺序编号,并将相应的编号作为响应检测报文的标识,携带在检测报文中。In this step, when the detection message is sent, each sent detection message can be numbered sequentially, and the corresponding number can be carried in the detection message as an identifier of the response detection message.
步骤202、BSR将携带有有序标识的预设发送个数的检测报文,按照预设的发送频率发送到待检测RP。In
步骤203、待检测RP根据接收到的检测报文,作出响应,并返回响应报文,其中响应报文中携带与相应的检测报文中的标识相同的标识。
本步骤中,待检测RP接收到检测报文后,若RP的优先级不发生变化时,在响应报文中加入与相应的检测报文的标识相同的报文,并将RP本身状态封装在报文内,返回给BSR。In this step, after the RP to be detected receives the detection message, if the priority of the RP does not change, it will add a message with the same identifier as the corresponding detection message in the response message, and encapsulate the state of the RP itself in In the message, it is returned to the BSR.
步骤204、BSR根据所述待检测RP返回的响应报文的标识,获得报文的丢失个数。
由于BSR发送的检测报文的标识是有序的标识,而RP返回的响应报文的标识也应该是有序的标识,因此,本步骤可根据RP返回的响应报文携带的标识的连续性判断是否有丢失的报文,若有丢失的报文,则可根据标识计算出丢失的报文的个数。具体地,当RP故障或RP所在链路故障时,BSR接收到的RP返回的响应报文就可能会不连续,出现较多的丢失报文,因此,本步骤中可根据响应报文的标识确定出报文丢失个数。Since the identification of the detection message sent by the BSR is an ordered identification, and the identification of the response message returned by the RP should also be an ordered identification, this step can be based on the continuity of the identification carried by the response message returned by the RP It is judged whether there are lost messages, and if there are lost messages, the number of lost messages can be calculated according to the identifier. Specifically, when the RP is faulty or the link where the RP is located is faulty, the response packets returned by the RP received by the BSR may be discontinuous, resulting in many lost packets. Therefore, in this step, the identification of the response packets can be Determine the number of lost packets.
步骤205、所述报文的丢失个数大于预设丢失个数时,BSR可确定所述待检测RP故障。
其中,预设丢失个数可以根据BSR发送的预设发送个数的检测报文而设定,具体地,可根据组播网的运行环境,设定一定的报文丢失系数,预设丢失个数即可根据预设发送个数与丢失系数的乘积获得。假设BSR发送的检测报文的预设发送个数为100,报文的丢失系数为5%,则预设丢失个数即为5。Wherein, the preset lost number can be set according to the preset number of detection messages sent by the BSR. Specifically, a certain message loss coefficient can be set according to the operating environment of the multicast network, and the preset lost number The number can be obtained according to the product of the preset sending number and the loss coefficient. Assuming that the preset number of detection messages sent by the BSR is 100, and the packet loss coefficient is 5%, the preset number of lost messages is 5.
步骤206、BSR若确定待检测RP故障时,将所述待检测RP地址从本地RP映射表中删除,并通告整网更新RP信息。Step 206: If the BSR determines that the RP to be detected is faulty, delete the address of the RP to be detected from the local RP mapping table, and notify the entire network to update RP information.
本实施中,通过对待检测RP返回的响应报文中携带的标识的连续性,可快速有效地确定BSR和待检测RP之间报文传输的报文丢失个数,从而根据报文丢失个数确定待检测RP是否故障,RP状态的检测速度快,检测效率高,可有效提高整个组播网中RP状态的检测效率,并实时对RP信息进行更新,保证整网的收敛性和数据传输的可靠性。In this implementation, through the continuity of the identification carried in the response message returned by the RP to be detected, the number of lost packets transmitted between the BSR and the RP to be detected can be quickly and effectively determined, so that according to the number of lost packets Determine whether the RP to be detected is faulty. The detection speed of the RP state is fast and the detection efficiency is high, which can effectively improve the detection efficiency of the RP state in the entire multicast network, and update the RP information in real time to ensure the convergence of the entire network and the accuracy of data transmission. reliability.
此外,上述本发明实施例中,还可包括如下步骤:预设时间内,BSR未接收到所述待检测RP返回的响应报文时,确定所述待检测RP故障。对于部分故障RP可能完全失效,无法对BSR发出的检测报文作出任何响应,因此,当检测报文发出后,或者接收到某一个响应报文后,BSR可能不会接收到待检测RP的任何响应报文,或者在较长时间段内不会收到待检测RP的任何响应报文,此时,可通过计数器计算未收到待检测RP的响应报文的时间,并在大于预设时间,例如一个检测周期,判定待检测RP出现故障,对其进行相应的处理,从而提高了故障RP检测的效率和准确性。In addition, the above-mentioned embodiment of the present invention may further include the following step: when the BSR does not receive a response message returned by the RP to be detected within a preset time, determine that the RP to be detected is faulty. Some faulty RPs may fail completely and cannot respond to the detection packets sent by the BSR. Therefore, after the detection packets are sent or a certain response packet is received, the BSR may not receive any information from the RP to be detected. response message, or will not receive any response message from the RP to be detected within a long period of time, at this time, the counter can be used to calculate the time when the response message from the RP to be detected is not received, and when the time is greater than the preset time , such as a detection cycle, it is determined that the RP to be detected is faulty, and corresponding processing is performed on it, thereby improving the efficiency and accuracy of faulty RP detection.
图3为本发明组播网中RP状态检测方法实施例三的流程示意图。本实施例可应用于组播网中RP优先级发生变化的检测中,具体地,如图3所示,本实施例方法可包括如下步骤:FIG. 3 is a schematic flowchart of
步骤301、BSR根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;Step 301, the BSR sends a detection message carrying an ordered identifier to the RP to be detected according to a preset sending frequency;
步骤302、RP接收到检测报文后,若RP优先级发生变化时在返回的响应报文中携带预设标识;Step 302, after the RP receives the detection message, if the RP priority changes, the preset identifier is carried in the returned response message;
本步骤中,RP的优先级发生变化时,可通过在响应报文中封装RP信息,并携带预设标识返回给BSR,其中,该预设标识表示RP的优先级发生变化。In this step, when the priority of the RP changes, the RP information can be encapsulated in the response message and returned to the BSR with a preset identifier, wherein the preset identifier indicates that the priority of the RP has changed.
步骤303、BSR接收到待检测RP返回的响应报文携带的标识为预设标识时,确定所述待检测RP的优先级发生变化。Step 303, when the BSR receives that the identifier carried in the response message returned by the RP to be detected is a preset identifier, it determines that the priority of the RP to be detected has changed.
由于响应报文中的预设标识RP优先级发生变化,因此,接收到的响应报文的标识为该预设标识时,即可确定相应的RP的优先级发生变化。Since the priority of the preset identifier RP in the response packet changes, when the identifier of the received response packet is the preset identifier, it can be determined that the priority of the corresponding RP has changed.
步骤304、BSR确定待检测RP发生变化时,提取响应报文中携带的RP信息,更新本地RP映射表,并通告整网更新RP信息。Step 304: When the BSR determines that the RP to be detected changes, it extracts the RP information carried in the response message, updates the local RP mapping table, and notifies the entire network of the updated RP information.
当确定待检测RP的优先级发生变化时,即可对接收到的响应报文进行解析,更新本地的RP映射表,并通告整网RP信息的改变,而确定待检测RP的优先级没有发生变化时,可不需要对RP的响应报文进行解析,因此,可有效降低RP检测过程中的资源占用和开销。When it is determined that the priority of the RP to be detected has changed, it can analyze the received response message, update the local RP mapping table, and notify the change of RP information on the entire network, and determine that the priority of the RP to be detected has not occurred When changing, there is no need to analyze the response message of the RP, so resource occupation and overhead during the RP detection process can be effectively reduced.
此外,本实施例中,BSR发送的检测报文具体形式也可同本发明实施例二,且本实施例中RP返回的响应报文中的预设标识也可为远大于接收的相应检测报文中的标识,这样,当BSR检测到具有较大数值的标识时,即可与已发送的检测报文的标识进行比较,若响应报文的标识远大于最后发送的检测报文的标识时,则可确定出RP发生变化,对RP返回的响应报文进行解析,并更新本地RP映射表。In addition, in this embodiment, the specific form of the detection message sent by the BSR can also be the same as in
此外,需要说明的是,本实施例仅以RP优先级发生变化的检测进行说明,可以理解地是,当RP发生其它变化时,也可采用同样的方式进行检测,且可具有相同的检测效果。In addition, it should be noted that this embodiment only uses the detection of changes in RP priority for illustration. It can be understood that when other changes in RP occur, detection can also be performed in the same manner, and the detection effect can be the same .
上述对RP故障检测以及对RP发生变化的检测,也可在同一实施例中实现,其具体实现方法同上述本发明实施例,在此不作限制。The above-mentioned RP failure detection and RP change detection can also be implemented in the same embodiment, and the specific implementation method is the same as the above-mentioned embodiment of the present invention, which is not limited here.
为对本发明有更好的了解,下面对本发明组播网中RP状态检测方法技术方案的实际应用进行说明。In order to have a better understanding of the present invention, the practical application of the technical solution of the RP state detection method in the multicast network of the present invention will be described below.
图4为本发明组播网中RP状态检测方法实施例四实际应用的场景结构示意图;图5为本发明组播网中RP状态检测方法实施例四的流程示意图;图6为本发明实施例中报文的封装示意图。具体地,如图4和5所示,本实施例可包括如下步骤:Fig. 4 is a schematic diagram of the scene structure of the practical application of
步骤401、BSR发送检测报文。Step 401, the BSR sends a detection message.
具体地,BSR可向RP按预设频率发送UDP检测报文,检测报文的UDP目的端口为3948,并对UDP报文进行顺序编号,将编号作为UDP报文的标识设置在UDP的Identification字段内,这样,每发送一个UDP报文,即可将Identification字段加1实现编号,这样,BSR发送到待检测RP的UDP检测报文均是带有有序标识的报文。其中,所述的有序标识即为按照一定的开始数值,进行编号得到的数值,如1、2、3.......等。Specifically, the BSR can send a UDP detection message to the RP at a preset frequency. The UDP destination port of the detection message is 3948, and sequentially number the UDP message, and set the number as the identification of the UDP message in the Identification field of the UDP In this way, each time a UDP message is sent, the Identification field can be added with 1 to realize the numbering. In this way, the UDP detection messages sent by the BSR to the RP to be detected are all messages with ordered identification. Wherein, the sequential identifier is a value obtained by numbering according to a certain initial value, such as 1, 2, 3...etc.
在检测报文发送时,BSR还可设定报文的发送参数,包括发送检测报文的数量、发送速率、发送报文的长度和最后一个回应包等待时间。具体地,设定的发送数量的范围可为1-65535,发送速率可为10ms-1000ms,发送报文的报文长度可为64-65535,最后一个回应包等待时间为100ms-10s。其中,最后一个回应包等待时间是指在发出最后一个检测报文后,在指定的等待时间内没有回应的报文都会被认为是丢失的报文。UDP报文的报文封装格式具体可参考图5,其中:When the detection message is sent, BSR can also set the sending parameters of the message, including the number of detection messages sent, the sending rate, the length of the sent message and the waiting time of the last response packet. Specifically, the range of the set sending quantity can be 1-65535, the sending rate can be 10ms-1000ms, the message length of the sending message can be 64-65535, and the waiting time of the last response packet is 100ms-10s. Wherein, the waiting time of the last response packet means that after the last detection message is sent, any message that is not responded within the specified waiting time will be considered as a lost message. For the packet encapsulation format of the UDP packet, please refer to Figure 5, where:
Identification为报文标识ID字段,其中,检测报文和响应报文的ID对应相同;Identification is the message identification ID field, wherein the IDs of the detection message and the response message are correspondingly the same;
Source Address为检测报文的目的地址,响应报文的源地址;Source Address is the destination address of the detection message and the source address of the response message;
Destination Address为检测报文的源地址,响应报文的目的地址;Destination Address is the source address of the detection message and the destination address of the response message;
Source Port为报文的源端口,可以为任意端口;Source Port is the source port of the message, which can be any port;
Destination Port为报文的目的端口,为3948;Destination Port is the destination port of the message, which is 3948;
Candidate-RP-Advertisement被封装在UDP报文的数据字段中;Candidate-RP-Advertisement is encapsulated in the data field of the UDP message;
PIM Ver为PIM协议版本,为2;PIM Ver is the PIM protocol version, which is 2;
Type为特定的PIM协议报文,其中,0=Hello报文,1=注册报文,2=注册停止报文,3=加入/剪枝报文,4=引导报文,5=仲裁报文,6=嫁接报文(PIM-DM独有),7=嫁接请求应答报文(PIM-DM独有),8=RP通告报文;Type is a specific PIM protocol message, where 0=Hello message, 1=registration message, 2=registration stop message, 3=join/prune message, 4=guidance message, 5=arbitration message , 6=grafting message (PIM-DM unique), 7=grafting request response message (PIM-DM unique), 8=RP notification message;
Prefix-Cnt为RP映射到的组地址范围的掩码长度;Prefix-Cnt is the mask length of the group address range to which the RP is mapped;
Priority为RP的优先级;Priority is the priority of RP;
Holdtime为RP有效保持时间;Holdtime is the effective holding time of RP;
Encoded-Unicast-RP-Address为包含的RP地址;Encoded-Unicast-RP-Address is the included RP address;
Encoded-Group Address-1.....n为本地RP地址映射到的组范围。Encoded-Group Address-1.....n is the group range to which the local RP address is mapped.
步骤402、RP接收到检测报文后返回响应报文。Step 402, the RP returns a response message after receiving the detection message.
RP接收到IP报头Identification有序的检测报文后,会将本地的RP信息封装在UDP报文内,并以同样的方式将不同标识ID的报文再依次发送给BSR,响应报文的Identification与接收到的检测报文的Identification值相对应,UDP报文的目的端口也为3948。响应报文的封装具体可参考上述图5所示的报文封装示意图。After receiving the orderly detection packets of the IP header Identification, the RP will encapsulate the local RP information in the UDP packet, and send the packets with different IDs to the BSR in the same way to respond to the Identification of the packets. Corresponding to the Identification value of the received detection message, the destination port of the UDP message is also 3948. For the encapsulation of the response message, please refer to the schematic diagram of message encapsulation shown in FIG. 5 above.
本实施例中,BSR进行的检测报文的发送和RP对检测报文的响应是独立进行的,BSR会按照预设的发送频率持续的发送检测报文,而RP接收到检测报文后,即会对接收到的报文作出响应。对于不同的RP状态的改变,如RP故障或发生变化,BSR可具有三种确定RP状态的方法:RP变化的情况、RP故障且间断返回响应报文的情况以及RP故障无任何响应的情况。针对每个情况,分别说明如下。In this embodiment, the sending of the detection message by the BSR and the response of the RP to the detection message are carried out independently, the BSR will continuously send the detection message according to the preset sending frequency, and after the RP receives the detection message, It will respond to the received message. For different RP status changes, such as RP failure or change, the BSR has three methods to determine the RP status: RP changes, RP failure and intermittent return of response messages, and RP failure without any response. For each case, a description is given below.
对于RP变化的情况,BSR确定RP状态是否发生变化可包括如下步骤:For the situation where the RP changes, the BSR determines whether the RP status changes may include the following steps:
步骤40311、BSR接收到RP返回的响应报文的标识远大于已发送的检测报文的最大标识,或等于预设标识时,则确定RP优先级发生变化;Step 40311, when the BSR receives that the identifier of the response message returned by the RP is much greater than the maximum identifier of the sent detection message, or is equal to the preset identifier, it determines that the RP priority has changed;
对于RP优先级发生变化的情况,RP接收到BSR发出的IP报文头Identification字段不断递增的检测报文,如1,2,3......,此时,RP收到这种检测报文后,会将封装了RP通告信息的UDP响应报文返回给BSR,且UDP响应报文的报文头Identification设置一个较大的值或预设标识的值,这样,BSR收到这样的标识的报文后,即可确定RP的优先级发生变化。For the case where the RP priority changes, the RP receives the inspection packet with the identification field of the IP packet header sent by the BSR, such as 1, 2, 3..., at this time, the RP receives this detection packet. After the packet is sent, the UDP response packet that encapsulates the RP notification information will be returned to the BSR, and the header Identification of the UDP response packet will be set to a larger value or the value of the preset identifier. In this way, the BSR receives such After receiving the identified packet, it can be determined that the priority of the RP has changed.
步骤40312、BSR对接收到的UDP响应报文进行解析,解析出其中的RP通告信息,更新本地RP映射表,并通告整网更新RP信息。Step 40312, the BSR parses the received UDP response message, parses out the RP notification information in it, updates the local RP mapping table, and notifies the entire network of the updated RP information.
可以看出,本步骤中,只对确定RP优先级发生变化的响应报文进行解析,而对其它响应报文不做任何的解析操作,即,BSR在RP状态检测过程中,只需要对响应报文的IP报文头和UDP目的端口号进行跟踪即可确定出RP是否发生变化,只有检测到RP返回的响应报文的报文头标识值大于即将发送的检测报文的标识值,或者等于预设的标识值时,才认为RP的优先级发生了变化,此时才对响应报文进行解封装操作,解析出新的RP信息,并更新BSR本地RP映射表。因此,在整个RP状态检测过程中,不需要对每个RP的响应报文进行解析,节省了网络资源,且RP状态检测快速有效。It can be seen that in this step, only the response message that determines that the RP priority has changed is parsed, and no parsing operation is performed on other response messages, that is, the BSR only needs to analyze the Whether the RP has changed can be determined by tracking the IP header of the packet and the UDP destination port number. Only when it is detected that the header identifier value of the response packet returned by the RP is greater than the identifier value of the detection packet to be sent, or When it is equal to the preset identification value, it is considered that the priority of the RP has changed. At this time, the response packet is decapsulated, the new RP information is parsed, and the BSR local RP mapping table is updated. Therefore, during the entire RP state detection process, there is no need to analyze the response message of each RP, which saves network resources, and the RP state detection is fast and effective.
对于RP故障且间断返回响应报文的情况,BSR确定RP状态是否发生变化可包括如下步骤:For the situation where the RP is faulty and the response message is returned intermittently, the BSR determines whether the RP status changes may include the following steps:
步骤40321、BSR根据接收到的RP返回的响应报文的标识,确定RP是否故障。Step 40321, the BSR determines whether the RP is faulty according to the identifier of the received response packet returned by the RP.
RP接收到检测报文后,会在其响应报文中同样携带与接收到的相应的检测报文标识相同的标识,这样,BSR接收到该响应报文后,可根据响应报文的标识的连续性,即可确定报文的丢失个数,若报文丢失个数大于预设的丢失个数时,BSR即可确定RP发生故障。具体地,当接收到的相邻两个检测报文的标识不是连续的,则说明该两个响应报文之间有丢失的报文,即通过计算两个响应报文的标识之差即可确定出丢失报文的数量。After receiving the detection packet, the RP will also carry the same identifier as the received corresponding detection packet identifier in its response packet. In this way, after receiving the response packet, the BSR can Continuity means that the number of lost packets can be determined. If the number of lost packets is greater than the preset number of lost packets, the BSR can determine that the RP is faulty. Specifically, when the identifiers of two adjacent detection messages received are not continuous, it means that there is a missing message between the two response messages, that is, by calculating the difference between the identifiers of the two response messages. Determine the number of lost telegrams.
具体地,BSR在发送检测报文时,可设定一定数量的发送检测报文的个数,并通过设定计数器和倒计器来确定预设的报文丢失个数减少到为0时,判断RP故障。具体地,可通过以下方法实现:Specifically, when the BSR sends a detection message, it can set a certain number of detection messages to be sent, and by setting a counter and a countdown counter to determine that when the preset number of lost messages is reduced to 0, Determine that the RP is faulty. Specifically, it can be achieved by the following methods:
BSR在开启RP状态检测时,可在其上设置一个倒计器和计数器,其中,倒计器的初始值为每次发送的检测报文的总数量与允许的丢包系数的乘积,其中,倒计器的初始值即为预设的报文丢失个数。此外,根据不同的场合,可设定不同的允许的丢包系数,以适应不同场合RP状态的检测,例如,允许的丢包系数可设置为0、5%、10%等。When the BSR enables RP status detection, a countdown counter and counter can be set on it. The initial value of the countdown counter is the product of the total number of detection packets sent each time and the allowable packet loss coefficient. Among them, The initial value of the countdown counter is the preset number of lost packets. In addition, according to different occasions, different allowable packet loss coefficients can be set to adapt to the detection of RP status in different occasions. For example, the allowable packet loss coefficients can be set to 0, 5%, 10%, etc.
例如,假设BSR发送的检测报文的数量为100,发送速率为10ms/packet,发送的检测报文长度为128byte,最后一个回应包等待时间为100ms,设定的允许丢包系数为5%,则按照设定的发包数量和设定的允许丢包系数计算得倒计器的初始值为5,倒计器时刻监听对应计数器的记录信息,如果检测到某个报文ID丢失便将倒计器减1,如果有连续的报文标识丢失,而导致倒计器被减至为0,则认为被检测RP故障。其中,计数器是指对从待检测RP返回的响应报文的标识进行记录,具体地,倒计器的计算公式为:For example, suppose the number of detection packets sent by the BSR is 100, the sending rate is 10ms/packet, the length of the detection packets sent is 128byte, the waiting time for the last response packet is 100ms, and the allowable packet loss factor is set to 5%. The initial value of the countdown counter is calculated according to the set number of packets sent and the set allowable packet loss coefficient. The countdown counter monitors the record information of the corresponding counter at all times. If a packet ID is detected to be lost, it will count down The counter is decremented by 1. If the countdown counter is reduced to 0 due to the loss of consecutive packet identifiers, it is considered that the detected RP is faulty. Wherein, the counter refers to recording the identification of the response message returned from the RP to be detected. Specifically, the calculation formula of the countdown counter is:
T(n+1)=T(n)-(Seqii-Seqi+1)T(n+1)=T(n)-(Seqii-Seqi+1)
其中,T(n+1)为减去丢失回应报文后的倒计器数值;Tn为前一次计算后倒计器的值,如果是第一次计算Tn=T0=倒计器的初始值;Seqii为计数器中最后接收到的待检测RP返回的响应报文的标识;Seqi为计数器中最后接收到的待检测RP返回的响应报文的前一个响应报文的标识。可以看出,通过响应报文的标识,即可确定出BSR和待检测RP之间链路的报文丢失个数,从而在报文丢失个数小于倒计器中的初始值时,则可推定BSR和待检测RP之间的链路无法使用,确定出待检测RP是否故障。Wherein, T(n+1) is the countdown counter value after subtracting the lost response message; Tn is the value of the countdown counter after the previous calculation, if it is the initial value of Tn=T0=countdown counter calculated for the first time ; Seqii is the identifier of the response packet returned by the last received RP to be detected in the counter; Seqi is the identifier of the previous response packet of the last received response packet returned by the RP to be detected in the counter. It can be seen that the number of lost packets on the link between the BSR and the RP to be detected can be determined through the identifier of the response packet, so that when the number of missing packets is less than the initial value in the countdown counter, the number of lost packets can be determined. It is presumed that the link between the BSR and the RP to be detected is unavailable, and it is determined whether the RP to be detected is faulty.
可以看出,通过倒计器和计数器的协同运作,可以根据返回的响应报文携带的标识的连续性,快速有效地确定待检测RP是否故障。It can be seen that through the cooperative operation of the countdown counter and the counter, it can be quickly and effectively determined whether the RP to be detected is faulty or not according to the continuity of the identifiers carried in the returned response message.
步骤40322、BSR在确定待检测RP故障时,将该待检测RP地址从BSR的本地RP映射表中删除,并通知整网更新RP信息。Step 40322, when the BSR determines that the RP to be detected is faulty, deletes the address of the RP to be detected from the local RP mapping table of the BSR, and notifies the entire network to update RP information.
对于RP故障且无任何响应的情况,BSR确定RP状态是否发生变化可包括如下步骤:For the situation where the RP fails and there is no response, the BSR determines whether the RP status changes may include the following steps:
步骤40331、BSR在预设时间内未接收到待检测RP返回的响应报文时,确定待检测RP故障。Step 40331, when the BSR does not receive the response message returned by the RP to be detected within the preset time, determine that the RP to be detected is faulty.
部分RP故障时,会完全失效,无法对检测报文作出任何响应,该种情况下,可根据检测报文的发送频率,设定预设时间,若该预设时间内未接收到待检测RP的响应时,即可确定待检测RP是故障的。When some RPs fail, they will fail completely and cannot respond to the detection message. In this case, the preset time can be set according to the sending frequency of the detection message. If the RP to be detected is not received within the preset time When the RP responds, it can be determined that the RP to be detected is faulty.
具体地,在BSR进行检测报文发送时,可按设定的发送周期发送一批检测报文,则在一个发送周期内发出所有的检测报文后,此时,可将该发送周期和最后一个回应包等待时间之和作为预设时间,当一个发送周期发出所有的检测报文,而在预设时间内没有接收到任何响应报文时,则可确定待检测RP故障。Specifically, when the BSR sends the detection message, it can send a batch of detection messages according to the set sending cycle, then after sending all the detection messages in one sending cycle, at this time, the sending cycle and the last The sum of the waiting time of a response packet is used as the preset time. When all detection packets are sent out in one sending cycle and no response packet is received within the preset time, it can be determined that the RP to be detected is faulty.
步骤40332、BSR在确定待检测RP故障时,将该待检测RP地址从BSR的本地RP映射表中删除,并通知整网更新RP信息。Step 40332, when the BSR determines that the RP to be detected is faulty, deletes the address of the RP to be detected from the local RP mapping table of the BSR, and notifies the entire network to update RP information.
可以看出,本发明实施例实现了一种轻负载、快速检测RP状态的技术方案。相对于现有的请求和应答(request<---->reply)的慢速检测机制,本发明实施例通过发送有序标识的检测报文来检测RP的运行状态,BSR和RP之间不需要进行任何的同步操作,可通过响应报文携带的标识的连续性来判断BSR和RP之间的双向链路的状态,实现了基于短促持续发送有序标识的检测报文的检测方式实现RP状态的检测,可以提供毫秒级别的检测反应时间,极大地提高了RP故障或状态发生变化的发现速率;此外,本发明实施例在检测到RP故障或发生变化后,可立即通知PIM协议模块对RP故障或发生变化作出反应,更新RP信息,使得组播网的收敛时间可以从目前的150秒降到1~2秒,不仅提高了RP状态检测效率,而且可以同时对RP状态变化作出响应,有效保证了组播网数据传输的准确性和可靠性。It can be seen that the embodiment of the present invention implements a technical solution for light load and fast detection of RP status. Compared with the existing slow detection mechanism of request and response (request<---->reply), the embodiment of the present invention detects the running state of the RP by sending detection messages with ordered labels, and there is no connection between the BSR and the RP. If any synchronization operation is required, the status of the two-way link between the BSR and the RP can be judged by the continuity of the identification carried in the response message, and the detection method based on the short and continuous sending of detection messages with ordered identification is realized to realize the RP The detection of the state can provide a detection response time of millisecond level, which greatly improves the discovery rate of RP faults or state changes; in addition, the embodiment of the present invention can immediately notify the PIM protocol module to respond to RP faults or changes. Respond to RP failure or change, and update RP information, so that the convergence time of the multicast network can be reduced from the current 150 seconds to 1-2 seconds, which not only improves the efficiency of RP status detection, but also responds to RP status changes at the same time, Effectively guarantee the accuracy and reliability of multicast network data transmission.
上述本发明各实施例中,所述的待检测RP包括组播网中的RP和候选RP。此外,上述本发明各实施例中,仅以组播网中BSR对RP的检测为例进行说明,在实际应用中,也可以是候选BSR对RP及候选RP的检测,在此不作限制,且候选BSR检测到RP故障或发生变化时,可更新自身的RP映射表。In each of the above embodiments of the present invention, the RP to be detected includes RPs and candidate RPs in the multicast network. In addition, in the above-mentioned embodiments of the present invention, only the detection of the RP by the BSR in the multicast network is taken as an example for illustration. In practical applications, the detection of the RP by the candidate BSR and the detection of the candidate RP may also be used, and no limitation is made here, and When the candidate BSR detects that the RP is faulty or changed, it can update its own RP mapping table.
图7为本发明组播网中RP状态检测装置实施例一的结构示意图。如图7所示,本实施例装置可包括报文发送模块1和故障检测模块2,其中:FIG. 7 is a schematic structural diagram of
报文发送模块1,用于根据预设的发送频率,向待检测RP发送携带有有序标识的检测报文;A
故障检测模块2,用于根据所述待检测RP返回的响应报文携带的标识的连续性,确定所述待检测RP是否故障或者发生变化。The
本实施例可应用于组播网中RP的状态检测中,其中,本实施例装置可为组播网中的BSR,可实施对RP的状态进行检测。具体地,本实施例中的报文发送模块1可根据预设频率进行检测报文的发送,并由故障检测模块2根据待检测RP对发送的响应报文携带的标识的连续性,确定待检测RP是否故障或者发生变化,其具体地实现方式可参考上述本发明方法实施例中的步骤,在此不再说明。This embodiment can be applied to the state detection of the RP in the multicast network, wherein the device in this embodiment can be a BSR in the multicast network, and can detect the state of the RP. Specifically, the
本实施例中,通过按预设频率发送携带有标识的检测报文,并实时检测待检测RP的响应,根据待检测RP返回的响应报文的标识的连续性,确定待检测RP是否故障或发生变化,由于检测报文是按照预设频率进行发送,检测报文的发送方便快捷,不受待检测RP状态的限制,且只需要根据响应报文的标识的连续性即可有效地确定RP故障或发生变化,可有效提高整个检测过程的检测速度,从而有效地提高RP状态检测效率,保证整网的快速收敛,以及保证业务数据报文的正常传播,可有效防止组播报文的丢失,提高了组播网络报文传输的安全性和可靠性。In this embodiment, by sending the detection message carrying the identification according to the preset frequency, and detecting the response of the RP to be detected in real time, according to the continuity of the identification of the response message returned by the RP to be detected, it is determined whether the RP to be detected is faulty or not. Changes, because the detection message is sent according to the preset frequency, the transmission of the detection message is convenient and fast, and is not limited by the status of the RP to be detected, and the RP can be effectively determined only according to the continuity of the identification of the response message Faults or changes can effectively improve the detection speed of the entire detection process, thereby effectively improving the efficiency of RP status detection, ensuring the rapid convergence of the entire network, and ensuring the normal transmission of business data packets, which can effectively prevent the loss of multicast packets , improving the security and reliability of multicast network packet transmission.
图8为本发明组播网中RP状态检测装置实施例二的结构示意图;图9为本发明组播网中RP状态检测装置实施例二中报文发送模块的结构示意图;图10为本发明组播网中RP状态检测装置实施例二中故障检测模块的结构示意图。在上述图7所示实施例技术方案的基础上,如图8所示,本实施例还可包括RP更新模块3,用于若确定待检测RP故障时,将所述待检测RP地址从本地RP映射表中删除,并通告整网更新RP信息;以及用于若确定待检测RP发生变化时,更新本地RP映射表,并通告整网更新RP信息。Fig. 8 is a schematic structural diagram of
此外,如图9所示,本实施例中的报文发送模块1具体可包括标识获取单元11和报文发送单元12,其中:In addition, as shown in FIG. 9, the
标识获取单元11,用于对发送的检测报文按发送顺序进行编号,并作为相应检测报文的标识;An
报文发送单元12,用于将携带有有序标识的检测报文,按照预设的发送频率发送到待检测RP。The
如图10所示,本实施中的故障检测模块2可包括:As shown in Figure 10, the
丢失个数获取单元21,用于根据所述待检测RP返回的响应报文的标识,获得报文的丢失个数,其中,所述待检测RP返回的响应报文的标识与接收到相应的检测报文携带的标识相同;The number of
故障确定单元22,用于所述报文的丢失个数大于预设丢失个数时,确定所述待检测RP故障。The
本实施例中,所述的故障检测模块2还可用于在预设时间内,未接收到所述待检测RP返回的响应报文时,确定所述待检测RP故障。In this embodiment, the
本发明实施例装置可应用于组播网中RP状态的检测,其具体实现方式可参考上述本发明方法实施例二或四,在此不再赘述。The device in this embodiment of the present invention can be applied to the detection of RP status in a multicast network, and its specific implementation can refer to the second or fourth embodiment of the method of the present invention above, and will not be repeated here.
上述本发明装置实施例一中,所述的故障检测模块具体可用于若接收到待检测RP返回的响应报文携带的标识为预设标识时,确定所述待检测RP的优先级发生变化。其具体地实现方式可参考上述本发明方法实施例三和四的说明,在此不再赘述。In the first embodiment of the device of the present invention, the fault detection module is specifically configured to determine that the priority of the RP to be detected has changed if the identifier carried in the response message returned by the RP to be detected is received as a preset identifier. For its specific implementation, reference may be made to the descriptions of the third and fourth embodiments of the method of the present invention above, and details are not repeated here.
图11为本发明RP装置实施例的结构示意图。具体地,如图11所示,本实施例RP装置包括检测报文接收模块4和响应报文发送模块5,其中:Fig. 11 is a schematic structural diagram of an embodiment of the RP device of the present invention. Specifically, as shown in FIG. 11, the RP device in this embodiment includes a detection
检测报文接收模块4,用于接收组播网中发送来的携带有有序标识的检测报文;The detection
响应报文发送模块5,用于对接收到的检测报文作出响应,并返回携带有相应标识的响应报文。The response
此外,本实施例中,所述响应报文发送模块5还可用于在本身发生变化时,返回携带有预设标识的响应报文。同时,所述响应报文发送模块5返回的响应报文内还封装有自身的RP信息,以便组播网RP状态检测装置根据预设标识确认RP装置发生变化时,可解析得到RP信息。In addition, in this embodiment, the response
本实施例可应用于组播网络中,接收上述本发明组播网RP状态检测装置发送的检测报文,并作出响应,以便组播网RP状态检测装置可根据RP装置响应报文携带的标识的连续性,快速有效地确定RP是否故障或发生变化。This embodiment can be applied to a multicast network, receiving the detection message sent by the multicast network RP state detection device of the present invention, and making a response, so that the multicast network RP state detection device can respond to the identification carried in the message according to the RP device The continuity of the RP can quickly and efficiently determine whether the RP fails or changes.
图12为本发明组播系统实施例的结构示意图。如图12所示,本实施例系统具体可包括:检测装置10和至少一个RP装置20,其中,本实施例中的检测装置10具体地可包括上述本发明组播网中RP状态装置实施例中的各功能模块,RP装置20可以为上述本发明RP装置实施例中的各功能模块,在此不再赘述。Fig. 12 is a schematic structural diagram of an embodiment of the multicast system of the present invention. As shown in Figure 12, the system of this embodiment may specifically include: a detection device 10 and at least one RP device 20, wherein the detection device 10 in this embodiment may specifically include the above-mentioned embodiment of the RP status device in the multicast network of the present invention Each functional module in the RP device 20 may be each functional module in the above-mentioned RP device embodiment of the present invention, which will not be repeated here.
本发明实施例系统通过按预设频率发送携带有标识的检测报文,并实时检测待检测RP的响应,根据待检测RP返回的响应报文的标识的连续性,确定待检测RP是否故障或发生变化,由于检测报文是按照预设频率进行发送,检测报文的发送方便快捷,不受待检测RP状态的限制,且只需要根据响应报文的标识的连续性即可有效地确定RP故障或发生变化,可有效提高整个检测过程的检测速度,从而有效地提高RP状态检测效率,保证整网的快速收敛,以及保证业务数据报文的正常传播,可有效防止组播报文的丢失,提高了组播网络报文传输的安全性和可靠性。The system in the embodiment of the present invention sends the detection message carrying the identification according to the preset frequency, and detects the response of the RP to be detected in real time, and determines whether the RP to be detected is faulty or not according to the continuity of the identification of the response message returned by the RP to be detected. Changes, because the detection message is sent according to the preset frequency, the transmission of the detection message is convenient and fast, and is not limited by the status of the RP to be detected, and the RP can be effectively determined only according to the continuity of the identification of the response message Faults or changes can effectively improve the detection speed of the entire detection process, thereby effectively improving the efficiency of RP status detection, ensuring the rapid convergence of the entire network, and ensuring the normal transmission of business data packets, which can effectively prevent the loss of multicast packets , improving the security and reliability of multicast network packet transmission.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010104029.6A CN101778113B (en) | 2010-01-25 | 2010-01-25 | Method for detection of RP state in multicast network, device, RP device and multicast system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010104029.6A CN101778113B (en) | 2010-01-25 | 2010-01-25 | Method for detection of RP state in multicast network, device, RP device and multicast system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101778113A true CN101778113A (en) | 2010-07-14 |
CN101778113B CN101778113B (en) | 2013-09-18 |
Family
ID=42514441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010104029.6A Expired - Fee Related CN101778113B (en) | 2010-01-25 | 2010-01-25 | Method for detection of RP state in multicast network, device, RP device and multicast system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101778113B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404170A (en) * | 2011-11-18 | 2012-04-04 | 福建星网锐捷网络有限公司 | Message loss detection method, device and system |
CN102594600A (en) * | 2012-02-21 | 2012-07-18 | 中兴通讯股份有限公司 | Method and system for determining failure position of bidirectional forwarding detection session |
CN102611627A (en) * | 2012-03-30 | 2012-07-25 | 杭州华三通信技术有限公司 | RP (Real Player) refreshing method and device |
CN103259738A (en) * | 2013-04-27 | 2013-08-21 | 华为技术有限公司 | Data transmission method, data generator and initiative flow control system |
CN105099924A (en) * | 2015-06-30 | 2015-11-25 | 杭州华三通信技术有限公司 | Routing update method and equipment based on routing information protocol |
CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
CN106027324A (en) * | 2016-05-05 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method and device for sending message |
CN106817264A (en) * | 2015-11-27 | 2017-06-09 | 华为软件技术有限公司 | A kind of methods, devices and systems of link failure detection |
CN108683708A (en) * | 2018-04-13 | 2018-10-19 | 珠海格力电器股份有限公司 | Data processing method and device of multi-split system and multi-split system |
CN109548066A (en) * | 2018-12-27 | 2019-03-29 | 郑州天迈科技股份有限公司 | A kind of wireless communication link condition detection method |
CN110445677A (en) * | 2019-07-26 | 2019-11-12 | 新华三大数据技术有限公司 | Multicast network detection method and forwarding device |
CN111026324A (en) * | 2018-10-09 | 2020-04-17 | 华为技术有限公司 | Updating method and device of forwarding table entry |
CN111917651A (en) * | 2020-07-13 | 2020-11-10 | 烽火通信科技股份有限公司 | Multicast forwarding method and system for cross chip |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006007870A1 (en) * | 2004-07-23 | 2006-01-26 | Telefonaktiebolaget Lm Ericsson (Publ) | Data unit sender control method |
CN100417080C (en) * | 2005-02-01 | 2008-09-03 | 华为技术有限公司 | Method for detecting network chain fault and positioning said fault |
-
2010
- 2010-01-25 CN CN201010104029.6A patent/CN101778113B/en not_active Expired - Fee Related
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404170B (en) * | 2011-11-18 | 2014-01-22 | 福建星网锐捷网络有限公司 | Detection method, device and system of message loss |
CN102404170A (en) * | 2011-11-18 | 2012-04-04 | 福建星网锐捷网络有限公司 | Message loss detection method, device and system |
CN102594600A (en) * | 2012-02-21 | 2012-07-18 | 中兴通讯股份有限公司 | Method and system for determining failure position of bidirectional forwarding detection session |
CN102594600B (en) * | 2012-02-21 | 2018-05-08 | 中兴通讯股份有限公司 | A kind of method and system of definite two-way converting inspection session abort situation |
CN102611627A (en) * | 2012-03-30 | 2012-07-25 | 杭州华三通信技术有限公司 | RP (Real Player) refreshing method and device |
CN103259738B (en) * | 2013-04-27 | 2017-06-06 | 华为技术有限公司 | A kind of data transmission method for uplink, data producer and active flow control system |
CN103259738A (en) * | 2013-04-27 | 2013-08-21 | 华为技术有限公司 | Data transmission method, data generator and initiative flow control system |
CN105099924B (en) * | 2015-06-30 | 2018-04-20 | 新华三技术有限公司 | Route renewing method and equipment based on routing information protocol |
CN105099924A (en) * | 2015-06-30 | 2015-11-25 | 杭州华三通信技术有限公司 | Routing update method and equipment based on routing information protocol |
CN106817264A (en) * | 2015-11-27 | 2017-06-09 | 华为软件技术有限公司 | A kind of methods, devices and systems of link failure detection |
CN106817264B (en) * | 2015-11-27 | 2020-09-08 | 华为技术有限公司 | Method, device and system for detecting link fault |
CN105763394B (en) * | 2016-03-22 | 2019-09-17 | 新华三技术有限公司 | A kind of network link detection method, device and system |
CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
CN106027324A (en) * | 2016-05-05 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method and device for sending message |
CN108683708A (en) * | 2018-04-13 | 2018-10-19 | 珠海格力电器股份有限公司 | Data processing method and device of multi-split system and multi-split system |
WO2019196461A1 (en) * | 2018-04-13 | 2019-10-17 | 珠海格力电器股份有限公司 | Data processing method and device for variable refrigerant volume system and variable refrigerant flow system |
CN111026324A (en) * | 2018-10-09 | 2020-04-17 | 华为技术有限公司 | Updating method and device of forwarding table entry |
US11316804B2 (en) | 2018-10-09 | 2022-04-26 | Huawei Technologies Co., Ltd. | Forwarding entry update method and apparatus in a memory |
CN109548066A (en) * | 2018-12-27 | 2019-03-29 | 郑州天迈科技股份有限公司 | A kind of wireless communication link condition detection method |
CN109548066B (en) * | 2018-12-27 | 2022-04-22 | 郑州天迈科技股份有限公司 | Wireless communication link state detection method |
CN110445677A (en) * | 2019-07-26 | 2019-11-12 | 新华三大数据技术有限公司 | Multicast network detection method and forwarding device |
CN111917651A (en) * | 2020-07-13 | 2020-11-10 | 烽火通信科技股份有限公司 | Multicast forwarding method and system for cross chip |
CN111917651B (en) * | 2020-07-13 | 2022-04-15 | 烽火通信科技股份有限公司 | Multicast forwarding method and system for cross chip |
Also Published As
Publication number | Publication date |
---|---|
CN101778113B (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101778113B (en) | Method for detection of RP state in multicast network, device, RP device and multicast system | |
US11374857B2 (en) | Network device management method and apparatus, and system for indicating a network device to perform management operation | |
CN103748835B (en) | The dynamic renewal of label switched path | |
CN108964943B (en) | Method and device for realizing IOAM packaging | |
EP3958509A1 (en) | Method, apparatus and system for communication between controllers in tsn | |
WO2020135395A1 (en) | Notification method and device for prefix identifier of cross-interior gateway protocol | |
CN107968751B (en) | Information processing method and device | |
CN106941437B (en) | Information transmission method and device | |
CN111614556B (en) | BIER-based two-way forwarding detection session creation method and related equipment | |
CN112688827B (en) | Multicast stream detection method, device and system | |
CN101800742B (en) | Method for updating and processing upstream information of routing device, routing devices and network system | |
US10333726B2 (en) | Network device configured to track multicast receivers | |
CN106487572A (en) | The processing method and processing device of message | |
CN102647312A (en) | Method and device for whole network multicast topology | |
CN103188120A (en) | Detection method for packet loss of multicast business and device thereof | |
CN101009669B (en) | A method and system and route device for transmitting the multicast message | |
CN102571464B (en) | Link tracking processing method and system | |
WO2016131359A1 (en) | Multicast line switching method and device for ring-shaped network | |
CN102624604B (en) | Multicast control method, routing equipment and multicast system | |
WO2011012063A1 (en) | Method, system and network device for node configuration and path detection | |
CN102833122A (en) | Loopback detection method and system | |
CN110535675B (en) | Method and device for multicast fast switching | |
CN111600798A (en) | Method and network node for sending and obtaining assertion message | |
CN111404816B (en) | Method, device, system and storage medium for sending multicast message across network | |
WO2021093477A1 (en) | Path planning method and device, and data transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130918 |