





技术领域technical field
本发明涉及通信技术领域,特别是涉及一种检测和定位网络故障的方法、系统及装置。The invention relates to the technical field of communications, in particular to a method, system and device for detecting and locating network faults.
背景技术Background technique
当前,移动网络的全IP(Internet Protocol,网络之间互连的协议)时代已经到来,全IP已经是未来业务发展的趋势,全IP就是要实现任何人在任何时间、任何地点,使用任何终端都能获得一致和无缝的体验。越来越多的传统电信业务及新兴业务都将通过IP网络承载,从而获得新业务的带宽高利用率等特性。但是,由于IP网络的设计理念与传统电路网有很大的差异,在网络监测、QoS(Quality of Service,业务质量)、安全检测等方面面临很多问题。At present, the era of all-IP (Internet Protocol, a protocol for interconnection between networks) of mobile networks has arrived. All-IP is already the trend of future business development. All-IP is to enable anyone to use any terminal at any time and any place All for a consistent and seamless experience. More and more traditional telecommunication services and emerging services will be carried by IP networks, so as to obtain features such as high bandwidth utilization of new services. However, because the design concept of the IP network is very different from that of the traditional circuit network, it faces many problems in network monitoring, QoS (Quality of Service, quality of service), security detection, etc.
现有技术中,提出一种检测网络故障的方法,即BFD(BidirectionalForwarding Detection,双向转发检测)故障检测方法,通过在网络之间所建立的会话通道上周期性的发送检测报文,若其中的一个网络在很长时间都没有收到另一个网络的的检测报文,则认为该双向通道的某个部分发生了故障。In the prior art, a method for detecting network faults is proposed, that is, BFD (Bidirectional Forwarding Detection, bidirectional forwarding detection) fault detection method, by periodically sending detection messages on the session channel established between the networks, if the If a network does not receive a detection packet from another network for a long time, it is considered that a certain part of the bidirectional channel has failed.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:BFD只能检测网络的通断故障,不能检测网络的质量,在网络质量恶化时无法提出警告,而且BFD在检测出网络故障时,也无法将网络故障进行定位。In the process of realizing the present invention, the inventors found that the prior art has at least the following problems: BFD can only detect the on-off fault of the network, but cannot detect the quality of the network. In the event of a failure, the network failure cannot be located.
发明内容Contents of the invention
本发明实施例提供一种检测和定位网络故障的方法、系统及装置,以实现网络端到端及逐段链路的质量检测,并快速定位出网络故障。Embodiments of the present invention provide a method, system and device for detecting and locating network faults, so as to realize end-to-end and segment-by-segment link quality detection of the network, and quickly locate network faults.
为达到上述目的,本发明实施例提出一种检测和定位网络故障的方法,包括:In order to achieve the above purpose, an embodiment of the present invention proposes a method for detecting and locating network faults, including:
源测量点判断是否在预先设定的时间内接收到来自转发设备的反向状态指示RSI报文;The source measurement point judges whether the reverse state indication RSI message from the forwarding device is received within the preset time;
当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。When the RSI message from the forwarding device is not received within the preset time, it is determined that the network under test is faulty and the forwarding device is the point of failure.
本发明实施例还提出了一种检测和定位网络故障的方法,包括:The embodiment of the present invention also proposes a method for detecting and locating network faults, including:
接收来自被测网络处理并转发的探测报文;Receive probe packets processed and forwarded from the network under test;
根据所述探测报文检测所述被测网络的质量数据;Detecting quality data of the network under test according to the detection message;
根据所述检测到的被测网络的质量数据,被生成测网络的质量数据信息。According to the detected quality data of the network under test, quality data information of the network under test is generated.
本发明实施例还提出了一种检测和定位网络故障的系统,包括:The embodiment of the present invention also proposes a system for detecting and locating network faults, including:
被测网络,用于创建RSI报文并将所述RSI报文发送给源测量点;The network under test is used to create an RSI message and send the RSI message to the source measurement point;
源测量点,用于判断是否在预先设定的时间内接收到来自转发设备的RSI报文,当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。The source measurement point is used to judge whether the RSI message from the forwarding device is received within the preset time, and when the RSI message from the forwarding device is not received within the preset time, it is judged to be The test network fails and the forwarding device is the point of failure.
本发明实施例还提出了一种网络装置,包括:The embodiment of the present invention also proposes a network device, including:
RSI报文接收模块,用于接收来自转发设备的RSI报文;The RSI message receiving module is used to receive the RSI message from the forwarding device;
判定模块,用于判断是否在预先设定的时间内接收到来自转发设备的RSI报文,当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。A judging module, configured to judge whether the RSI message from the forwarding device is received within the preset time, and when the RSI message from the forwarding device is not received within the preset time, it is determined that the tested The network fails and the forwarding device is the point of failure.
本发明实施例还提出了一种网络装置,包括:The embodiment of the present invention also proposes a network device, including:
RSI报文创建模块,用于根据探测报文创建RSI报文;The RSI message creation module is used to create an RSI message according to the detection message;
RSI报文发送模块,用于将所述RSI报文发送给源测量点。An RSI message sending module, configured to send the RSI message to the source measurement point.
本发明实施例还提出了一种网络装置,包括:The embodiment of the present invention also proposes a network device, including:
探测报文接收模块,用于接收被测网络转发并处理的探测报文;A detection packet receiving module, configured to receive a detection packet forwarded and processed by the network under test;
检测模块,用于根据所述探测报文检测所述被测网络的质量数据;A detection module, configured to detect the quality data of the network under test according to the detection message;
生成模块,用于根据所述检测到的被测网络的质量数据,生成被测网络的质量数据信息。A generating module, configured to generate quality data information of the network under test according to the detected quality data of the network under test.
与现有技术相比,本发明实施例具有以下优点:可以实现网络端到端及网络逐段链路的质量检测,检测网络是否发生故障,以及在网络发生故障时,可以定位出故障点。Compared with the prior art, the embodiments of the present invention have the following advantages: end-to-end network quality inspection and segment-by-segment link quality detection can be realized, whether a fault occurs in the network can be detected, and when a fault occurs in the network, the fault point can be located.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例一提出的一种检测和定位网络故障的系统结构图;FIG. 1 is a structural diagram of a system for detecting and locating network faults proposed in Embodiment 1 of the present invention;
图2为本发明实施例二提出的一种检测和定位网络故障的方法流程图;FIG. 2 is a flowchart of a method for detecting and locating network faults proposed in Embodiment 2 of the present invention;
图3为本发明实施例三提出的一种检测和定位网络故障的方法流程图;FIG. 3 is a flowchart of a method for detecting and locating network faults proposed in Embodiment 3 of the present invention;
图4为本发明实施例四提出的一种检测和定位网络故障的装置结构图;FIG. 4 is a structural diagram of a device for detecting and locating network faults proposed in Embodiment 4 of the present invention;
图5为本发明实施例五提出的一种检测和定位网络故障的装置结构图;FIG. 5 is a structural diagram of a device for detecting and locating network faults proposed in Embodiment 5 of the present invention;
图6为本发明实施例六提出的一种检测和定位网络故障的装置结构图。FIG. 6 is a structural diagram of a device for detecting and locating network faults proposed by Embodiment 6 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.
一种检测和定位网络故障的系统,包括至少一个源测量点、至少一个被测网络以及至少一个目的测量点,该被测网络包括若干个转发设备,该源测量点、被测网络以及目的测量点要在时间上支持同步。A system for detecting and locating network faults, comprising at least one source measurement point, at least one measured network, and at least one destination measurement point, where the measured network includes several forwarding devices, the source measurement point, the measured network, and the destination measurement point The point is to support synchronization in time.
在以下各个实施例中,网络的类型可以是IP(Internet Protocol,网络互连协议)网络、ATM(Asynchronous Transfer Mode,异步传输模式)网络等,也可以是移动网络、固定网络、移动固定融合网络等,可以是局域网、城域网、广域网,可以是接入网、核心网、传输网等。In each of the following embodiments, the type of the network can be an IP (Internet Protocol, Internet Protocol) network, an ATM (Asynchronous Transfer Mode, Asynchronous Transfer Mode) network, etc., or it can be a mobile network, a fixed network, or a mobile and fixed converged network etc. It can be a local area network, a metropolitan area network, a wide area network, an access network, a core network, a transmission network, etc.
在以下各个实施例中,反向状态指示(Reverse State Indication,RSI)报文可以是用于将其所经过的网络设备的相关信息反馈给源测量点的一种报文。In each of the following embodiments, the Reverse State Indication (Reverse State Indication, RSI) message may be a message used to feed back the relevant information of the network device it passes to the source measurement point.
源测量点、转发设备、目的测量点的类型可以是:路由器、交换机、网关、基站、基站控制器、网关GPRS(General Packet Radio Service,通用分组无线业务)支持节点GGSN(Gateway GPRS Support Node,网关GPRS支持节点)、SGSN(Serving GPRS Supporting Node,服务GPRS支持节点)、DSLAM(Digital Subscriber Line Access Multiplexer,数字用户线复用器)、AAA(Authentication、Authorization、Accounting,验证、授权和记账)服务器、CSCF(Call Session Control Function,呼叫会话控制功能)等网络设备。在本发明所有实施例中,均采用一个源测量点、一个被测网络和一个目的测量点,该被测网络包括3个转发设备的场景进行说明。The type of source measurement point, forwarding device, and destination measurement point can be: router, switch, gateway, base station, base station controller, gateway GPRS (General Packet Radio Service, general packet radio service) support node GGSN (Gateway GPRS Support Node, gateway GPRS support node), SGSN (Serving GPRS Supporting Node, serving GPRS support node), DSLAM (Digital Subscriber Line Access Multiplexer, digital subscriber line multiplexer), AAA (Authentication, Authorization, Accounting, verification, authorization and accounting) server , CSCF (Call Session Control Function, call session control function) and other network devices. In all the embodiments of the present invention, a source measurement point, a measured network and a destination measurement point are used for description, and a scenario in which the measured network includes 3 forwarding devices is used for illustration.
本发明实施例一提出的一种检测和定位网络故障的系统,如图1所示,包括:A system for detecting and locating network faults proposed in Embodiment 1 of the present invention, as shown in FIG. 1 , includes:
源测量点10,用于判断是否在预先设定的时间内接收到来自转发设备的RSI报文,当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。可以接收第一转发设备21、第二转发设备22、以及第三转发设备23发送的RSI报文,并根据所述RSI报文判断网络是否发生故障,当第一转发设备21发送的RSI报文无法到达源测量点10时,则断定网络发生故障,第一转发设备21为故障点;当第二转发设备22发送的RSI报文无法到达源测量点10时,则断定网络发生故障,第二转发设备22为故障点;当第三转发设备23发送的RSI报文无法到达源测量点10时,则断定网络发生故障,第三转发设备23为故障点。The
被测网络20,用于创建RSI报文并将创建的RSI报文发送给源测量点10,并将由源测量点10发送过来的探测报文转发给目的测量点30。The network under
目的测量点30,用于接收来自被测网络20处理并转发的探测报文并根据所述探测报文检测所述被测网络的质量数据,该质量数据包括以下中的一种或几种:时延状况、抖动状况、丢包状况。The
进一步的,该被测网络20包括:Further, the tested
第一转发设备21,用于接收源测量点10发送的探测报文,根据所述探测报文创建RSI报文,将第一转发设备21的打点记录写入到所述RSI报文中,并将该RSI报文中发送给源测量点10。The
第二转发设备22,用于接收第一转发设备21发送的探测报文,根据所述探测报文创建RSI报文,将第二转发设备22的打点记录写入到所述RSI报文中,并将该RSI报文中发送给源测量点10。The
第三转发设备23,用于接收第二转发设备22发送的探测报文,根据所述探测报文创建RSI报文,将第三转发设备23的打点记录写入到所述RSI报文中,并将该RSI报文中发送给源测量点10。The
可见,本发明实施例中,可以通过RSI报文检测网络是否发生故障,以及在网络发生故障时,可以定位出故障点是转发设备中的哪一个,还可以实现网络源测量点到目的测量点以及网络逐段链路的质量检测。It can be seen that in the embodiment of the present invention, it is possible to detect whether the network fails through the RSI message, and when the network fails, it is possible to locate which of the forwarding devices the fault point is, and it is also possible to realize the network from the source measurement point to the destination measurement point. And the quality inspection of the network segment by segment.
本发明实施例二提出的一种检测和定位网络故障的方法,如图2所示,包括:A method for detecting and locating network faults proposed in Embodiment 2 of the present invention, as shown in FIG. 2 , includes:
步骤S201,源测量点判断是否在预先设定的时间内接收到来自转发设备的反向状态指示RSI报文;Step S201, the source measurement point judges whether the reverse state indication RSI message from the forwarding device is received within a preset time;
步骤S202,当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。Step S202, when the RSI message from the forwarding device is not received within the preset time, it is determined that the network under test is faulty and the forwarding device is a point of failure.
可见,本发明实施例中,可以通过RSI报文检测出网络是否发生故障,以及在网络发生故障时,定位出故障点。It can be seen that in the embodiment of the present invention, it is possible to detect whether a network failure occurs through the RSI message, and to locate the failure point when the network failure occurs.
本发明实施例三提出的一种检测和定位网络故障的方法,如图3所示,包括:A method for detecting and locating network faults proposed in Embodiment 3 of the present invention, as shown in FIG. 3 , includes:
步骤S301,源测量点创建探测报文,该探测报文以源测量点的地址为源地址,以目的测量点的地址为目的地址。Step S301, the source measurement point creates a detection message, the detection message uses the address of the source measurement point as the source address, and uses the address of the destination measurement point as the destination address.
步骤S302,源测量点将该探测报文发送给被测网络中的第一转发设备。该探测报文将会依次发送给被测网络中的第一转发设备、第二转发设备、第三转发设备,最终会被发送到目的测量点。Step S302, the source measurement point sends the detection message to the first forwarding device in the network under test. The detection message will be sent to the first forwarding device, the second forwarding device, and the third forwarding device in the network under test in sequence, and will finally be sent to the destination measurement point.
步骤S303,第一转发设备接收该探测报文,并对该探测报文进行识别,并根据该探测报文进行打点记录,并将该打点记录写入到该探测报文中。该打点记录是第一转发设备在接收到探测报文后,在第一转发设备的入接口处对该探测报文进行处理。在该探测报文的进入到第一转发设备的入接口处时,在该探测报文中写入该第一转发设备的设备标识,写入该第一转发设备的入接口标识以及写入该探测报文进入该第一转发设备的入接口处的时间;当该探测报文离开第一转发设备时,在该探测报文中写入该第一转发设备的出接口标识以及写入该探测报文离开该第一转发设备的出接口处的时间。根据该探测报文离开该第一转发设备的出接口处的时间以及该探测报文进入该第一转发设备的入接口处的时间计算出该探测报文经过第一转发设备的时间,该时间为探测报文离开该第一转发设备的出接口处的时间减去探测报文进入该第一转发设备的入接口处的时间。In step S303, the first forwarding device receives the detection message, identifies the detection message, performs a dotted record according to the detection message, and writes the dotted record into the detection message. The dotted record is that after the first forwarding device receives the detection message, it processes the detection message at the inbound interface of the first forwarding device. When the probe message enters the ingress interface of the first forwarding device, write the device identifier of the first forwarding device in the probe message, write the ingress interface identifier of the first forwarding device and write the The time when the detection message enters the ingress interface of the first forwarding device; when the detection message leaves the first forwarding device, the outgoing interface identifier of the first forwarding device and the detection The time when the packet leaves the egress interface of the first forwarding device. Calculate the time when the probe message passes through the first forwarding device according to the time when the probe message leaves the outgoing interface of the first forwarding device and the time when the probe message enters the inbound interface of the first forwarding device, the time The time at which the detection message enters the inbound interface of the first forwarding device is subtracted from the time at which the detection message leaves the outgoing interface of the first forwarding device.
步骤S304,第一转发设备将经过处理的探测报文发送给第二转发设备,该到达第二转发设备的探测报文中具有第一转发设备的打点记录。In step S304, the first forwarding device sends the processed detection message to the second forwarding device, and the detection message arriving at the second forwarding device has the dotted record of the first forwarding device.
步骤S305,第一转发设备还会创建第一转发设备的RSI(Reverse StateIndication,反向状态指示)报文,该RSI报文以源测量点的地址为目的地址,以第一转发设备的地址为源地址。第一转发设备创建好RSI报文后,第一转发设备将该RSI报文发送给源测量点,第一转发设备向源测量点发送RSI报文的路径与源测量点向第一转发设备的路径为同一路径。Step S305, the first forwarding device also creates an RSI (Reverse State Indication, reverse state indication) message of the first forwarding device, the RSI message uses the address of the source measurement point as the destination address, and the address of the first forwarding device as source address. After the first forwarding device creates the RSI message, the first forwarding device sends the RSI message to the source measurement point, and the first forwarding device sends the RSI message to the source measurement point. The path is the same path.
步骤S306,第二转发设备接收第一转发设备发送的具有第一转发设备的打点记录的探测报文。同样的,第二转发设备将对该具有第一转发设备的打点记录的探测报文进行处理,处理方法与第一转发设备处理探测报文的方法相同,即将打点记录写入到该探测报文中。该打点记录是第二转发设备在接收到探测报文后,在第二转发设备的入接口处对该探测报文进行处理。在该探测报文的进入到第二转发设备的入接口处时,在该探测报文中写入该第二转发设备的设备标识,写入该第二转发设备的入接口标识以及写入该探测报文进入该第二转发设备的入接口处的时间;当该探测报文离开第二转发设备时,在该探测报文中写入该第二转发设备的出接口标识以及写入该探测报文离开该第二转发设备的出接口处的时间。根据该探测报文离开该第二转发设备的出接口处的时间以及该探测报文进入该第二转发设备的入接口处的时间计算出该探测报文经过第二转发设备的时间,该时间为探测报文离开该第二转发设备的出接口处的时间减去探测报文进入该第二转发设备的入接口处的时间。In step S306, the second forwarding device receives the detection message sent by the first forwarding device and has the dotted record of the first forwarding device. Similarly, the second forwarding device will process the detection message with the dot record of the first forwarding device, and the processing method is the same as that of the first forwarding device, that is, write the dot record into the detection message middle. The dotted record is that after the second forwarding device receives the detection message, it processes the detection message at the inbound interface of the second forwarding device. When the probe message enters the ingress interface of the second forwarding device, write the device identifier of the second forwarding device in the probe message, write the ingress interface identifier of the second forwarding device and write the The time when the detection message enters the ingress interface of the second forwarding device; when the detection message leaves the second forwarding device, write the outgoing interface identifier of the second forwarding device and the detection The time when the packet leaves the egress interface of the second forwarding device. Calculate the time when the probe message passes through the second forwarding device according to the time when the probe message leaves the outgoing interface of the second forwarding device and the time when the probe message enters the inbound interface of the second forwarding device, the time The time at which the detection message enters the inbound interface of the second forwarding device is subtracted from the time at which the detection message leaves the outgoing interface of the second forwarding device.
步骤S307,第二转发设备将具有第一转发设备的打点记录以及第二转发设备的打点记录的探测报文发送给第三转发设备。In step S307, the second forwarding device sends the detection packet including the dotted record of the first forwarding device and the dotted record of the second forwarding device to the third forwarding device.
步骤S308,第二转发设备还会创建第二转发设备的RSI报文,该RSI报文以源测量点的地址为目的地址,以第二转发设备的地址为源地址。第二转发设备创建好RSI报文后,第二转发设备将该RSI报文发送给源测量点,第二转发设备向源测量点发送RSI报文的路径与源测量点向第二转发设备的路径为同一路径。Step S308, the second forwarding device also creates an RSI message of the second forwarding device, the RSI message uses the address of the source measurement point as the destination address, and uses the address of the second forwarding device as the source address. After the second forwarding device creates the RSI message, the second forwarding device sends the RSI message to the source measurement point, and the second forwarding device sends the RSI message to the source measurement point. The path is the same path.
步骤S309,第三转发设备接收第二转发设备发送的具有第一转发设备的打点记录以及第二转发设备的打点记录的探测报文。同样的,第三转发设备将对该具有第一转发设备的打点记录以及第二转发设备的打点记录的探测报文进行处理,处理方法与第一转发设备处理探测报文的方法相同,即将打点记录写入到该探测报文中。该打点记录是第三转发设备在接收到探测报文后,在第三转发设备的入接口处对该探测报文进行处理,在该探测报文的进入到第三转发设备的入接口处时,在该探测报文中写入该第三转发设备的设备标识,写入该第三转发设备的入接口标识以及写入该探测报文进入该第三转发设备的入接口处的时间;当该探测报文离开第三转发设备时,在该探测报文中写入该第三转发设备的出接口标识以及写入该探测报文离开该第三转发设备的出接口处的时间。根据该探测报文离开该第三转发设备的出接口处的时间以及该探测报文进入该第三转发设备的入接口处的时间计算出该探测报文经过第三转发设备的时间,该时间为探测报文离开该第三转发设备的出接口处的时间减去探测报文进入该第三转发设备的入接口处的时间。In step S309, the third forwarding device receives the detection message sent by the second forwarding device and includes the dotted record of the first forwarding device and the dotted record of the second forwarding device. Similarly, the third forwarding device will process the detection message with the dotted record of the first forwarding device and the dotted record of the second forwarding device. The processing method is the same as that of the first forwarding device. The record is written into the probe message. The dotted record is that after the third forwarding device receives the detection message, it processes the detection message at the ingress interface of the third forwarding device, and when the detection message enters the ingress interface of the third forwarding device , writing the device identifier of the third forwarding device in the probe message, writing the inbound interface identifier of the third forwarding device and writing the time when the probe message enters the inbound interface of the third forwarding device; when When the detection message leaves the third forwarding device, the outgoing interface identifier of the third forwarding device and the time when the detection message leaves the outgoing interface of the third forwarding device are written in the detection message. Calculate the time when the probe message passes through the third forwarding device according to the time when the probe message leaves the outgoing interface of the third forwarding device and the time when the probe message enters the inbound interface of the third forwarding device, the time The time at which the detection message enters the inbound interface of the third forwarding device is subtracted from the time at which the detection message leaves the outgoing interface of the third forwarding device.
步骤S310,第三转发设备将具有第一转发设备的打点记录、第二转发设备的打点记录以及第三转发设备的打点记录的探测报文发送给目的测量点。In step S310, the third forwarding device sends a detection message including the dotted record of the first forwarding device, the dotted record of the second forwarding device, and the dotted record of the third forwarding device to the destination measurement point.
步骤S311,第三转发设备还会创建第三转发设备的RSI报文,该RSI报文以源测量点的地址为目的地址,以第三转发设备的地址为源地址。第三转发设备创建好RSI报文后,第三转发设备将该RSI报文发送给源测量点,第三转发设备向源测量点发送RSI报文的路径与源测量点向第三转发设备的路径为同一路径。Step S311, the third forwarding device also creates an RSI message of the third forwarding device, the RSI message uses the address of the source measurement point as the destination address, and uses the address of the third forwarding device as the source address. After the third forwarding device creates the RSI message, the third forwarding device sends the RSI message to the source measurement point, and the third forwarding device sends the RSI message to the source measurement point. The path is the same path.
步骤S312,目的测量点接收第三转发设备发送的具有第一转发设备的打点记录、第二转发设备的打点记录以及第三转发设备的打点记录的探测报文,在目的测量点中,对该探测报文进行分析,就可以得出从源测量点到目的测量点之间逐段链路的质量数据。该质量数据包括源测量点到目的测量点之间的时延状况、抖动状况、丢包状况等,时延是指数据包第一个比特进入路由器到最后一比特从路由器输出的时间间隔,抖动是指现有时延与正常情况下时延的差,丢包则是指在数据包的传输过程中,数据的损失。在探测报文从源测量点发送到目的测量点的过程中,该探测报文经过了第一转发设备、第二转发设备、第三转发设备,而最终到达目的测量点的探测报文中也包括了第一转发设备的打点记录、第二转发设备的打点记录以及第三转发设备的打点记录。根据第一转发设备的打点记录、第二转发设备的打点记录以及第三转发设备的打点记录,可以得出经过第一转发设备的时间、经过第二转发设备的时间、经过第三转发设备的时间。可以看出,经过第一转发设备的时间也就是第一转发设备的时延,经过第二转发设备的时间就是第二转发设备的时延,经过第三转发设备的时间也就是第三转发设备的时延。在正常情况下,可以知道探测报文经过每个转发设备的时延,该时延由转发设备的性能决定,在得出第一转发设备的时延、第二转发设备的时延、第三转发设备的时延之后,也就可以得出经过第一转发设备的抖动、经过第二转发设备的抖动、经过第三转发设备的抖动,而丢包状况可以直接由探测报文中得出。得出从源测量点到目的测量点之间逐段链路的质量数据之后,目的测量点将根据该质量数据生成质量数据信息的集合,具体可以是质量数据报表,然后将该报表发送给网管系统,网管系统可以将该报表展示给用户,用户可以根据该报表评估网络的质量,对出现问题的网络及时处理,以保证网络的正常运转。Step S312, the destination measurement point receives the probe message sent by the third forwarding device with the dotted record of the first forwarding device, the dotted record of the second forwarding device and the dotted record of the third forwarding device, and at the destination measurement point, the By analyzing the detection message, the quality data of the links from the source measurement point to the destination measurement point can be obtained. The quality data includes the delay, jitter, packet loss, etc. between the source measurement point and the destination measurement point. The delay refers to the time interval between the first bit of a data packet entering the router and the last bit output from the router. The jitter It refers to the difference between the existing delay and the normal delay, and packet loss refers to the loss of data during the transmission of data packets. During the process of sending the detection message from the source measurement point to the destination measurement point, the detection message passes through the first forwarding device, the second forwarding device, and the third forwarding device, and the detection message that finally arrives at the destination measurement point is also It includes the dotted record of the first forwarding device, the dotted record of the second forwarding device and the dotted record of the third forwarding device. According to the dotted record of the first forwarding device, the dotted record of the second forwarding device and the dotted record of the third forwarding device, the time passing through the first forwarding device, the time passing through the second forwarding device, and the time passing through the third forwarding device can be obtained. time. It can be seen that the time passing through the first forwarding device is the delay of the first forwarding device, the time passing through the second forwarding device is the delay of the second forwarding device, and the time passing through the third forwarding device is also the delay of the third forwarding device delay. Under normal circumstances, it is possible to know the delay of the probe message passing through each forwarding device. The delay is determined by the performance of the forwarding device. After obtaining the delay of the first forwarding device, the delay of the second forwarding After the delay of the forwarding device, the jitter passing through the first forwarding device, the jitter passing through the second forwarding device, and the jitter passing through the third forwarding device can be obtained, and the packet loss status can be directly obtained from the detection message. After obtaining the quality data of the link from the source measurement point to the destination measurement point, the destination measurement point will generate a collection of quality data information based on the quality data, which can be a quality data report, and then send the report to the network management system, the network management system can display the report to the user, and the user can evaluate the quality of the network according to the report, and deal with the problem in time to ensure the normal operation of the network.
步骤S313,源测量点根据在预先设定的时间内是否接收到的RSI报文检测网络是否发生故障以及检测出故障点。在源测量点接收到第一转发设备发送到源测量点的RSI报文后,就将对该第一转发设备发送的RSI报文进行分析,根据在预先设定的时间内是否能够接收到第一转发设备发送的RSI报文,判断该第一转发设备是否发生故障,当无法接收到第一转发设备发送的RSI报文时,断定该网络发生故障,网络的故障点就是第一转发设备。在源测量点接收到第二转发设备发送到源测量点的RSI报文后,就将对该第二转发设备发送的RSI报文进行分析,根据在预先设定的时间内是否能够接收到第二转发设备发送的RSI报文,判断该第二转发设备是否发生故障,当无法接收到第二转发设备发送的RSI报文时,断定该网络发生故障,网络的故障点就是第二转发设备。在源测量点接收到第三转发设备发送到源测量点的RSI报文后,也将对该第三转发设备发送的RSI报文进行分析,根据在预先设定的时间内是否能够接收到第三转发设备发送的RSI报文,判断该第三转发设备是否发生故障,当无法接收到第三转发设备发送的RSI报文时,断定该网络发生故障,网络的故障点就是第三转发设备。In step S313, the source measurement point detects whether a fault occurs in the network and detects the fault point according to whether the RSI message is received within a preset time. After the source measurement point receives the RSI message sent by the first forwarding device to the source measurement point, it will analyze the RSI message sent by the first forwarding device, according to whether the first forwarding device can receive the RSI message within the preset time An RSI message sent by a forwarding device is used to determine whether the first forwarding device is faulty. When the RSI message sent by the first forwarding device cannot be received, it is determined that the network is faulty, and the fault point of the network is the first forwarding device. After the source measurement point receives the RSI message sent by the second forwarding device to the source measurement point, it will analyze the RSI message sent by the second forwarding device, according to whether it can receive the first RSI message within the preset time The RSI message sent by the second forwarding device is used to determine whether the second forwarding device is faulty. When the RSI message sent by the second forwarding device cannot be received, it is determined that the network is faulty, and the fault point of the network is the second forwarding device. After the source measurement point receives the RSI message sent by the third forwarding device to the source measurement point, it will also analyze the RSI message sent by the third forwarding device, according to whether it can receive the first RSI message within the preset time The RSI message sent by the third forwarding device is judged whether the third forwarding device is faulty, and when the RSI message sent by the third forwarding device cannot be received, it is determined that the network is faulty, and the fault point of the network is the third forwarding device.
步骤S313与步骤S312没有必然的先后关系,也没有必然的联系。Step S313 and step S312 have no necessary sequence or connection.
可见,本发明实施例中,通过在探测报文中添加打点记录,实现网络源测量点到目的测量点以及网络逐段链路的质量检测,在在网络发生故障时,可以定位出故障点。It can be seen that in the embodiment of the present invention, by adding dotted records in the detection message, the quality inspection of the network source measurement point to the destination measurement point and the link of the network segment by segment is realized, and the fault point can be located when the network fails.
本发明实施例四提出的一种检测和定位网络故障的装置,可以作为源测量点,如图4所示,包括:A device for detecting and locating network faults proposed in Embodiment 4 of the present invention can be used as a source measurement point, as shown in FIG. 4 , including:
探测报文创建模块100,用于创建探测报文,该探测报文以源测量点的地址为源地址,以目的测量点的地址为目的地址。The detection
探测报文发送模块110,用于将探测报文创建模块100创建的探测报文发送给第一转发设备21。The detection
RSI报文接收模块120,用于接收第一转发设备21、第二转发设备22、以及第三转发设备23发送的RSI报文。该RSI报文是将打点记录写入到探测报文创建模块100创建的探测报文中,并经过适当的变化。The RSI
判断模块130,用于判断是否在预先设定的时间内接收到来自转发设备的RSI报文,当未在预先设定的时间内接收到来自所述转发设备的RSI报文时,则判定被测网络发生故障以及所述转发设备为故障点。根据RSI报文接收模块120是否在预先设定的时间内接收到RSI报文判断网络是否发生故障,当第一转发设备21发送的RSI报文无法到达源测量点10时,则判定网络发生故障,第一转发设备21为故障点;当第二转发设备22发送的RSI报文无法到达源测量点10时时,则断定网络发生故障,第二转发设备22为故障点;当第三转发设备23发送的RSI报文无法到达源测量点10时时,则断定网络发生故障,第三转发设备23为故障点。可见,本发明实施例中,可以通过RSI报文检测出网络是否发生故障,以及在网络发生故障时,定位出故障点。Judging
本发明实施例五提出的一种检测和定位网络故障的装置,第一转发设备21、第二转发设备22、以及第三转发设备23内部具有相同的模块,本实施例中的装置为第一转发设备21,如图5所示,包括:Embodiment 5 of the present invention proposes a device for detecting and locating network faults. The
RSI报文创建模块211,用于根据源测量点10发送的探测报文创建RSI报文,该RSI报文是将打点记录写入到第一创建模块100创建的探测报文中,并经过适当的变化。The RSI
RSI报文发送模块212,用于将RSI报文创建模块211创建的RSI报文发送给源测量点10。The RSI
匹配模块213,用于将第二发送模块212发送给源测量点10的RSI报文的路径与源测量点10发送给被测网络20的路径匹配。The
进一步的,RSI报文创建模块211包括:Further, the RSI
写入单元211A,用于在RSI报文创建模块211创建RSI报文时,将打点记录写入到探测报文中。The writing unit 211A is configured to write the dotted record into the detection message when the RSI
可见,在本实施例中,通过在探测报文中添加打点记录,为定位故障点以及检测质量数据提供准备。It can be seen that in this embodiment, preparations are provided for locating fault points and detecting quality data by adding dotted records in the detection message.
本发明实施例六提出的一种检测和定位网络故障的装置,可以作为目的测量点,如图6所示,包括:A device for detecting and locating network faults proposed in Embodiment 6 of the present invention can be used as a target measurement point, as shown in FIG. 6 , including:
探测报文接收模块300,用于接收第三转发设备23发送的探测报文;A detection
检测模块310,用于根据探测报文接收模块300接收的探测报文检测被测网络20的质量数据,该质量数据包括:时延状况、抖动状况、丢包状况中的一种或多种。The
生成模块320,用于根据检测模块310检测到的被测网络的质量数据,生成被测网络的质量数据信息。The
可见,通过本实施例,可以实现网络源测量点到目的测量点以及网络逐段链路的质量检测。It can be seen that through this embodiment, the quality detection of the network source measurement point to the destination measurement point and the network link by section can be realized.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be realized by hardware, or by software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200810135319CN101640617B (en) | 2008-07-30 | 2008-07-30 | Method, system and device for detecting and positioning network failure |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200810135319CN101640617B (en) | 2008-07-30 | 2008-07-30 | Method, system and device for detecting and positioning network failure |
| Publication Number | Publication Date |
|---|---|
| CN101640617Atrue CN101640617A (en) | 2010-02-03 |
| CN101640617B CN101640617B (en) | 2013-08-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200810135319Expired - Fee RelatedCN101640617B (en) | 2008-07-30 | 2008-07-30 | Method, system and device for detecting and positioning network failure |
| Country | Link |
|---|---|
| CN (1) | CN101640617B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102164051A (en)* | 2011-05-18 | 2011-08-24 | 西安交通大学 | Service-Oriented Fault Detection and Location Method |
| CN103125099A (en)* | 2010-10-28 | 2013-05-29 | 日本电气株式会社 | Transmission device, transmission system and failure notification method |
| CN103188716A (en)* | 2011-12-29 | 2013-07-03 | 中兴通讯股份有限公司 | Location method and device for failures of reliable user datagram protocol (RUDP) link |
| CN103312542A (en)* | 2013-05-28 | 2013-09-18 | 盛科网络(苏州)有限公司 | Message processing method and message processing device |
| CN108075936A (en)* | 2016-11-16 | 2018-05-25 | 中国移动通信有限公司研究院 | VxLAN detection methods and device |
| CN108206767A (en)* | 2016-12-20 | 2018-06-26 | 北京神州泰岳软件股份有限公司 | A kind of network equipment failure detection method and device |
| CN108289031A (en)* | 2017-01-09 | 2018-07-17 | 中国移动通信集团河北有限公司 | Home broadband network method for diagnosing faults and device |
| CN108683568A (en)* | 2018-05-31 | 2018-10-19 | 烽火通信科技股份有限公司 | A kind of method and system of VPN traffic channel quality segmentation detection |
| CN110535720A (en)* | 2019-08-20 | 2019-12-03 | 新华三技术有限公司合肥分公司 | A kind of BFD multi-hop detection method and device |
| WO2021073291A1 (en)* | 2019-10-14 | 2021-04-22 | 中兴通讯股份有限公司 | Fault detection method and apparatus, electronic device and computer-readable medium |
| CN113473573A (en)* | 2021-06-08 | 2021-10-01 | 北京小米移动软件有限公司 | Information processing method and device, wireless access equipment and intelligent household equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1265593C (en)* | 2002-11-19 | 2006-07-19 | 华为技术有限公司 | Detecting method of reachability among IP network equipments and its application in public dialing network platform accessing backup |
| CN100471140C (en)* | 2006-09-29 | 2009-03-18 | 华为技术有限公司 | A Method of Detecting QoS |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103125099A (en)* | 2010-10-28 | 2013-05-29 | 日本电气株式会社 | Transmission device, transmission system and failure notification method |
| US9032242B2 (en) | 2010-10-28 | 2015-05-12 | Nec Corporation | Transmission device, transmission system, and fault notification method |
| CN103125099B (en)* | 2010-10-28 | 2016-03-16 | 日本电气株式会社 | Transmission equipment, transmission system and failure notification method |
| CN102164051B (en)* | 2011-05-18 | 2013-11-06 | 西安交通大学 | Service-oriented fault detection and positioning method |
| CN102164051A (en)* | 2011-05-18 | 2011-08-24 | 西安交通大学 | Service-Oriented Fault Detection and Location Method |
| CN103188716B (en)* | 2011-12-29 | 2018-08-03 | 中兴通讯股份有限公司 | RUDP periodic line fault location methods and device |
| CN103188716A (en)* | 2011-12-29 | 2013-07-03 | 中兴通讯股份有限公司 | Location method and device for failures of reliable user datagram protocol (RUDP) link |
| CN103312542A (en)* | 2013-05-28 | 2013-09-18 | 盛科网络(苏州)有限公司 | Message processing method and message processing device |
| CN108075936A (en)* | 2016-11-16 | 2018-05-25 | 中国移动通信有限公司研究院 | VxLAN detection methods and device |
| CN108206767A (en)* | 2016-12-20 | 2018-06-26 | 北京神州泰岳软件股份有限公司 | A kind of network equipment failure detection method and device |
| CN108289031A (en)* | 2017-01-09 | 2018-07-17 | 中国移动通信集团河北有限公司 | Home broadband network method for diagnosing faults and device |
| CN108289031B (en)* | 2017-01-09 | 2021-06-22 | 中国移动通信集团河北有限公司 | Home broadband network fault diagnosis method and device |
| CN108683568A (en)* | 2018-05-31 | 2018-10-19 | 烽火通信科技股份有限公司 | A kind of method and system of VPN traffic channel quality segmentation detection |
| CN108683568B (en)* | 2018-05-31 | 2021-01-26 | 烽火通信科技股份有限公司 | Method and system for sectional detection of VPN service channel quality |
| CN110535720A (en)* | 2019-08-20 | 2019-12-03 | 新华三技术有限公司合肥分公司 | A kind of BFD multi-hop detection method and device |
| CN110535720B (en)* | 2019-08-20 | 2022-01-25 | 新华三技术有限公司合肥分公司 | BFD multi-hop detection method and device |
| WO2021073291A1 (en)* | 2019-10-14 | 2021-04-22 | 中兴通讯股份有限公司 | Fault detection method and apparatus, electronic device and computer-readable medium |
| CN113473573A (en)* | 2021-06-08 | 2021-10-01 | 北京小米移动软件有限公司 | Information processing method and device, wireless access equipment and intelligent household equipment |
| CN113473573B (en)* | 2021-06-08 | 2024-03-12 | 北京小米移动软件有限公司 | Information processing method and device, wireless access equipment and intelligent household equipment |
| Publication number | Publication date |
|---|---|
| CN101640617B (en) | 2013-08-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN101640617B (en) | Method, system and device for detecting and positioning network failure | |
| US7940685B1 (en) | Method and apparatus for monitoring a network | |
| US8010100B2 (en) | System and method for monitoring and measuring end-to-end performance using wireless devices | |
| CN101502050B (en) | idle mode notification | |
| CN1894895B (en) | Detection of forwarding problems for external prefixes | |
| US20130086250A1 (en) | Method and apparatus for round trip delay kpi monitoring in live network using user plane probe session | |
| WO2010099734A1 (en) | Method and device for processing fault | |
| US8699359B2 (en) | Data plane delay KPI monitoring in live network | |
| CN101958810B (en) | Method and system used for realizing fault positioning of intermediate node autonomously | |
| KR101467137B1 (en) | In-service throughput testing in distributed router/switch architectures | |
| US8248953B2 (en) | Detecting and isolating domain specific faults | |
| CN102301789A (en) | Method for transmitting real-time data packets in convergent networks | |
| CN104683187B (en) | A kind of method for realizing router two-layer VPN business physical interface end-to-end measurement | |
| WO2015120601A1 (en) | Method and apparatus for detecting mobile communications network | |
| CN100382517C (en) | Network service quality testing method and system | |
| WO2011157145A2 (en) | Main/backup switching method between communication device, communication device, system and service request device | |
| CN103491555A (en) | Method, equipment and system for positioning IP link fault based on service information | |
| CN101616019A (en) | A method, network node and system for realizing network fault detection | |
| CN102143524B (en) | Method, system and device for detecting voice quality | |
| WO2007016830A1 (en) | A method and client side for implementing the detection of dhcp service performance | |
| CN101764722A (en) | Method for detecting link and device and system thereof | |
| WO2015089732A1 (en) | Service testing method, device and system, network node and quality processing node | |
| US8989015B2 (en) | Method and apparatus for managing packet congestion | |
| CN103702348A (en) | Detection method and device for network quality under family base station | |
| US8312530B2 (en) | System and method for providing security in a network environment using accounting information |
| 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:20130828 Termination date:20180730 |