[go: up one dir, main page]

CN114697202B - A detection method and device - Google Patents

A detection method and device Download PDF

Info

Publication number
CN114697202B
CN114697202B CN202011641244.XA CN202011641244A CN114697202B CN 114697202 B CN114697202 B CN 114697202B CN 202011641244 A CN202011641244 A CN 202011641244A CN 114697202 B CN114697202 B CN 114697202B
Authority
CN
China
Prior art keywords
detection
node device
interface
path
transmission quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011641244.XA
Other languages
Chinese (zh)
Other versions
CN114697202A (en
Inventor
侯大威
付智博
王薇薇
董明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011641244.XA priority Critical patent/CN114697202B/en
Publication of CN114697202A publication Critical patent/CN114697202A/en
Application granted granted Critical
Publication of CN114697202B publication Critical patent/CN114697202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a detection method and a detection device, relates to the field of communication, and aims to shorten fault locating time and cost and improve operation and maintenance efficiency. The specific scheme is as follows: acquiring a detection message comprising a characteristic identifier, wherein the characteristic identifier is used for indicating and measuring the transmission quality of the detection message; the detection message is used for detecting the transmission quality of a path between the second node equipment and the third node equipment; and acquiring the transmission quality parameters of the detection message in the first node equipment according to the characteristic identifiers in the detection message.

Description

一种检测方法及装置A detection method and device

技术领域Technical field

本申请实施例通信领域,尤其涉及一种检测方法及装置。The embodiments of this application relate to the field of communication, in particular, to a detection method and device.

背景技术Background technique

随着网络应用的广泛部署,网络发生中断可能影响业务正常运行并造成重大损失。为了减小链路、设备故障对业务的影响,提高网络的可靠性,网络设备需要尽快检测到与相邻设备间的通信故障,以便及时采取措施,保证业务正常进行。With the widespread deployment of network applications, network interruptions may affect normal business operations and cause heavy losses. In order to reduce the impact of link and equipment failures on services and improve network reliability, network equipment needs to detect communication failures with adjacent devices as soon as possible so that timely measures can be taken to ensure normal business operations.

双向链路检测(bidirectional forwarding detection,BFD)是一种检测路径连通性的常用技术。在BFD机制中,被检测路径两端节点周期性互发检测报文,当一端一定时间内接收不到检测报文,就判定路径出现故障。Bidirectional forwarding detection (BFD) is a common technology for detecting path connectivity. In the BFD mechanism, nodes at both ends of a detected path periodically send detection packets to each other. When one end cannot receive detection packets within a certain period of time, it is determined that the path is faulty.

如图1示意的报文传输场景中,采用BFD机制检测节点X和节点Y间的路径。节点X和节点Y间互发BFD检测报文,路径上中间转发节点对BDF检测报文只做转发。若节点m与节点n间的路径故障,则节点X、节点Y在一定时间内无法接收到BFD检测报文,则判断节点X和节点Y间的路径故障,但却无法获知具体的路径故障位置。In the message transmission scenario shown in Figure 1, the BFD mechanism is used to detect the path between node X and node Y. Node X and node Y send BFD detection packets to each other, and the intermediate forwarding nodes on the path only forward BDF detection packets. If the path between node m and node n fails, node X and node Y cannot receive BFD detection messages within a certain period of time, and the path failure between node .

因此,现有BFD机制只能感知被检测路径的故障,无法感知故障点位置,后续需要人工定位,导致维护定位过程时间长,成本高,运维效率低。Therefore, the existing BFD mechanism can only sense the fault of the detected path, but cannot sense the location of the fault point. Subsequent manual location is required, which results in a long maintenance and location process, high cost, and low operation and maintenance efficiency.

发明内容Contents of the invention

本申请提供一种检测方法及装置,用于定位故障点位置。This application provides a detection method and device for locating the location of a fault point.

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

第一方面,提供一种检测方法,该方法可以应用于第一节点设备,第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备。该方法可以包括:获取包括特征标识的检测报文,该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;根据检测报文中的特征标识,获取检测报文在第一节点设备中的传输质量参数。In a first aspect, a detection method is provided, which method can be applied to a first node device, where the first node device is a node device on the path between the second node device and the third node device. The method may include: obtaining a detection message including a characteristic identifier, the characteristic identifier being used to indicate measuring the transmission quality of the detection message; the detection message being used to detect the transmission quality of the path between the second node device and the third node device ; According to the characteristic identifier in the detection message, obtain the transmission quality parameter of the detection message in the first node device.

通过本申请提供的检测方法,对检测报文添加特征标识进行染色,第一节点设备获取检测报文在其内部的实时传输质量参数,有助于根据检测的传输质量参数定位故障点位置,可以缩短故障定位时间以及成本,提高运维效率。Through the detection method provided by this application, the detection message is dyed by adding characteristic identifiers, and the first node device obtains the real-time transmission quality parameters of the detection message inside it, which helps to locate the fault point location based on the detected transmission quality parameters. Reduce fault location time and costs, and improve operation and maintenance efficiency.

同时,由于检测报文数量少,且检测报文穿插于业务报文中,相当于对业务报文抽样实现IFIT机制,实现简单计算量小。另外,由于检测报文由被检测路径的端节点设备发送,可以灵活选取被检测路径,提高了方案的应用场景。At the same time, since the number of detection packets is small and the detection packets are interspersed with business packets, it is equivalent to sampling the business packets to implement the IFIT mechanism, which is simple and requires little calculation. In addition, since the detection message is sent by the end node device of the detected path, the detected path can be flexibly selected, which improves the application scenarios of the solution.

在一种可能的实现方式中,本申请提供的检测方法还可以包括:第一节点设备向处理设备上报获取的传输质量参数,以使得处理设备根据该传输质量参数,确定第二节点设备与第三节点设备间路径的故障位置,以缩短故障定位时间以及成本,提高运维效率。In a possible implementation, the detection method provided by this application may further include: the first node device reporting the obtained transmission quality parameter to the processing device, so that the processing device determines the relationship between the second node device and the third node device based on the transmission quality parameter. The fault location of the path between three-node devices can be used to shorten fault location time and cost and improve operation and maintenance efficiency.

在另一种可能的实现方式中,本申请提供的检测方法还可以包括:第一节点设备本地存储测量得到的传输质量参数,以使得处理设备在有故障定位需求时,调用该传输质量参数,确定第二节点设备与第三节点设备间路径的故障位置。In another possible implementation, the detection method provided by this application may also include: the first node device locally stores the measured transmission quality parameters, so that the processing device can call the transmission quality parameters when there is a need for fault location, Determine the fault location of the path between the second node device and the third node device.

在另一种可能的实现方式中,第一节点设备可以为多个。In another possible implementation manner, there may be multiple first node devices.

在另一种可能的实现方式中,上述特征标识可以包括丢包染色位,和/或,时延染色位,以指示测量检测报文的丢包和/或时延,实现准确故障定位。In another possible implementation, the above characteristic identifier may include a packet loss dyeing bit and/or a delay dyeing bit to indicate the packet loss and/or delay of the measurement detection message to achieve accurate fault location.

在另一种可能的实现方式中,上述检测报文可以为多个,通过多个检测报文,提高检测的准确度。In another possible implementation manner, there may be multiple detection packets, and multiple detection packets can be used to improve detection accuracy.

在另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口的检测报文的数量、一个检测周期内离开第一节点设备的第二接口的检测报文的数量、一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差、两个检测报文在第一节点设备内的时延差。第一接口、第二接口为第二节点设备与第三节点设备间路径上的接口。在该实现方式中,通过多个检测报文,获取检测报文的丢包质量以及时延抖动质量。In another possible implementation, when there are multiple detection packets, the transmission quality parameters of the detection packets in the first node device may include one or more of the following: Entering the first node within one detection cycle The number of detection packets from the first interface of the device, the number of detection packets leaving the second interface of the first node device within a detection cycle, the number of detection packets entering the first interface of the first node device and the number of detection packets leaving the first node within a detection cycle The difference in the number of detection packets on the second interface of the device and the difference in delay between the two detection packets within the first node device. The first interface and the second interface are interfaces on the path between the second node device and the third node device. In this implementation, the packet loss quality and delay jitter quality of the detection packets are obtained through multiple detection packets.

在另一种可能的实现方式中,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:检测报文进入第一节点设备的时间戳、检测报文离开第一节点设备的时间戳、检测报文在第一节点设备内的时延。In another possible implementation, the transmission quality parameters of the detection packet in the first node device may include one or more of the following: the timestamp of the detection packet entering the first node device, the time stamp of the detection packet leaving the first node device. The timestamp of a node device and the delay of detection packets in the first node device.

在另一种可能的实现方式中,上述检测报文可以为BFD报文,以实现BFD机制中快速故障定位。In another possible implementation manner, the above detection packets may be BFD packets to achieve rapid fault location in the BFD mechanism.

在另一种可能的实现方式中,上述特征标识可以位于检测报文的报文头,提供一种检测报文具体格式。In another possible implementation manner, the above feature identifier can be located in the header of the detection message to provide a specific format of the detection message.

第二方面,提供一种检测方法,该方法可以包括:处理设备从第一节点设备获取检测报文在第一节点设备中的传输质量参数;该检测报文包括特征标识;该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;处理设备根据检测报文在第一节点设备中的传输质量参数,确定第二节点设备到第三节点设备间路径的故障位置。In a second aspect, a detection method is provided. The method may include: the processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device; the detection message includes a feature identifier; the feature identifier is used to Instructs to measure the transmission quality of the detection message; the detection message is used to detect the transmission quality of the path between the second node device and the third node device; the first node device is on the path between the second node device and the third node device. A node device; the processing device determines the fault location of the path between the second node device and the third node device based on the transmission quality parameter of the detection message in the first node device.

通过本申请提供的检测方法,对检测报文添加特征标识进行染色,第一节点测量获取检测报文在被测量路径中的实时传输质量参数,处理设备可以获取该传输质量参数,进而根据传输质量参数确定故障点位置,可以缩短故障定位时间以及成本,提高运维效率。Through the detection method provided by this application, the detection message is dyed by adding characteristic identifiers. The first node measures and obtains the real-time transmission quality parameter of the detection message in the measured path. The processing device can obtain the transmission quality parameter and then determine the transmission quality according to the Parameters determine the location of the fault point, which can shorten fault location time and cost and improve operation and maintenance efficiency.

同时,由于检测报文数量少,且检测报文穿插于业务报文中,相当于对业务报文抽样实现IFIT机制,实现简单计算量小。另外,由于检测报文由被检测路径的端节点设备发送,可以灵活选取被检测路径,提高了方案的应用场景。At the same time, since the number of detection packets is small and the detection packets are interspersed with business packets, it is equivalent to sampling the business packets to implement the IFIT mechanism, which is simple and requires little calculation. In addition, since the detection message is sent by the end node device of the detected path, the detected path can be flexibly selected, which improves the application scenarios of the solution.

在一种可能的实现方式中,第一节点设备为多个,处理设备从第一节点设备获取检测报文在第一节点设备中的传输质量参数,具体可以实现为:处理设备从每个第一节点设备获取检测报文在第一节点设备中的传输质量参数。通过路径中多个第一节点设备的测量结果,可以快速定位多个第一节点设备组成的路径中的故障位置。In a possible implementation, there are multiple first node devices, and the processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device. Specifically, it can be implemented as follows: the processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device. A node device obtains the transmission quality parameter of the detection message in the first node device. Through the measurement results of multiple first node devices in the path, the fault location in the path composed of multiple first node devices can be quickly located.

在另一种可能的实现方式中,上述特征标识可以包括丢包染色位,和/或,时延染色位,以指示获取检测报文的丢包和/或时延,实现准确故障定位。In another possible implementation, the above characteristic identifier may include a packet loss dyeing bit and/or a delay dyeing bit to indicate the packet loss and/or delay in obtaining the detection message to achieve accurate fault location.

在另一种可能的实现方式中,该检测报文可以为多个,通过多个检测报文,提高检测的准确度。In another possible implementation manner, there may be multiple detection packets, and multiple detection packets can be used to improve detection accuracy.

在另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口的检测报文的数量、一个检测周期内离开第一节点设备的第二接口的检测报文的数量、一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差、两个检测报文在第一节点设备内的时延差。第一接口、第二接口为第二节点设备与第三节点设备间路径上的接口。在该实现方式中,通过多个检测报文,获取检测报文的丢包参数以及时延抖动参数。In another possible implementation, when there are multiple detection packets, the transmission quality parameters of the detection packets in the first node device may include one or more of the following: Entering the first node within one detection cycle The number of detection packets from the first interface of the device, the number of detection packets leaving the second interface of the first node device within a detection cycle, the number of detection packets entering the first interface of the first node device and the number of detection packets leaving the first node within a detection cycle The difference in the number of detection packets on the second interface of the device and the difference in delay between the two detection packets within the first node device. The first interface and the second interface are interfaces on the path between the second node device and the third node device. In this implementation, the packet loss parameters and delay jitter parameters of the detection packets are obtained through multiple detection packets.

在另一种可能的实现方式中,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:检测报文进入第一节点设备的时间戳、检测报文离开第一节点设备的时间戳、检测报文在第一节点设备内的时延。在该实现方式中,通过检测报文的传输时间指示时延传输参数。In another possible implementation, the transmission quality parameters of the detection packet in the first node device may include one or more of the following: the timestamp of the detection packet entering the first node device, the time stamp of the detection packet leaving the first node device. The timestamp of a node device and the delay of detection packets in the first node device. In this implementation, the delay transmission parameter is indicated by detecting the transmission time of the message.

在另一种可能的实现方式中,检测报文为多个,处理设备根据检测报文在第一节点设备中的传输质量参数,确定第二节点设备与第三节点设备间的路径的故障位置,具体可以实现为:若检测报文在第一节点设备中的传输质量参数满足第一条件,则确定路径中该第一节点设备故障。其中,第一条件可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差大于或等于第一阈值、检测报文在第一节点设备内的时延大于或等于第二阈值、两个检测报文在第一节点设备内的时延差大于或等于第三阈值。第一接口、第二接口为所述路径上的接口。通过配置节点故障的第一条件,实现对节点设备故障的定位。In another possible implementation, there are multiple detection packets, and the processing device determines the fault location of the path between the second node device and the third node device according to the transmission quality parameter of the detection packet in the first node device. , specifically it can be implemented as follows: if the transmission quality parameter of the detected message in the first node device meets the first condition, it is determined that the first node device in the path is faulty. The first condition may include one or more of the following: a difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within a detection period is greater than or equal to the first The threshold, the delay of the detection message in the first node device is greater than or equal to the second threshold, and the delay difference of the two detection messages in the first node device is greater than or equal to the third threshold. The first interface and the second interface are interfaces on the path. By configuring the first condition for node failure, the node device failure can be located.

一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文在第一节点设备内的时延的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the average delay of the multiple detection packets in the first node device, or maximum value, or something else.

另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文中第一个检测报文进入第一节点设备的第一接口的时间,与最后一个检测报文离开第一节点设备的第二接口的时间差。In another possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the time delay of the first detection packet among the multiple detection packets entering the first node device. The time of the first interface is the difference between the time of the last detection packet leaving the second interface of the first node device.

在另一种可能的实现方式中,检测报文为一个,处理设备根据检测报文在第一节点设备中的传输质量参数,确定第二节点设备与第三节点设备间的路径的故障位置,具体可以实现为:若检测报文在第一节点设备内的时延大于或等于第二阈值,则确定路径中该第一节点设备故障。In another possible implementation, there is one detection message, and the processing device determines the fault location of the path between the second node device and the third node device based on the transmission quality parameter of the detection message in the first node device, Specifically, it can be implemented as follows: if the delay of the detection message in the first node device is greater than or equal to the second threshold, it is determined that the first node device in the path is faulty.

在另一种可能的实现方式中,检测报文为多个,处理设备根据检测报文在第一节点设备中的传输质量参数,确定路径的故障位置,具体可以实现为:若检测报文在路径上两个节点设备中的传输质量参数满足第二条件,则两个节点设备间的路径故障。其中,第二条件可以包括下述一项或多项:离开一个节点设备的第二接口的检测报文的数量,减去进入一个节点设备的下一跳节点设备的第一接口的检测报文的数量的差,大于或等于第四阈值;两个检测报文在两个节点设备间路径上的时延差大于或等于第五阈值。通过配置节点间路径故障的第二条件,实现对节点设备间路径故障的定位。In another possible implementation, there are multiple detection packets, and the processing device determines the fault location of the path according to the transmission quality parameter of the detection packet in the first node device. Specifically, it can be implemented as follows: If the detection packet is in If the transmission quality parameters in the two node devices on the path meet the second condition, then the path between the two node devices fails. The second condition may include one or more of the following: the number of detection packets leaving the second interface of a node device, minus the number of detection packets entering the first interface of a next-hop node device of a node device The difference in the number is greater than or equal to the fourth threshold; the difference in delay of the two detection packets on the path between the two node devices is greater than or equal to the fifth threshold. By configuring the second condition for path failure between nodes, the path failure between node devices can be located.

其中,路径上两个节点设备可以为相邻两个节点设备,相邻两个节点设备间的路径可以为链路。The two node devices on the path may be two adjacent node devices, and the path between the two adjacent node devices may be a link.

在另一种可能的实现方式中,处理设备根据检测报文在第一节点设备中的传输质量参数,确定路径的故障位置,具体可以实现为:若检测报文在路径上两个节点设备中的传输质量参数满足第三条件,则两个节点设备间的路径故障。其中,第三条件包括检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,大于或等于第六阈值。通过配置节点间路径故障的第三条件,实现对节点设备间路径故障的定位。In another possible implementation, the processing device determines the fault location of the path based on the transmission quality parameters of the detection message in the first node device. The specific implementation can be as follows: If the detection message is in the two node devices on the path The transmission quality parameters meet the third condition, then the path between the two node devices fails. The third condition includes detecting that the time difference between the detection packet leaving the second interface of one node device and entering the first interface of the next hop node device of one node device is greater than or equal to the sixth threshold. By configuring the third condition for path failure between nodes, the path failure between node devices can be located.

其中,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以理解为检测报文在一个节点设备到下一跳节点设备的时延。The time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device can be understood as the delay of the detection packet from one node device to the next-hop node device.

一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指每个检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to each detection packet. The average, or maximum, or other time difference between a packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device.

另一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指多个检测报文中第一个检测报文离开一个节点设备的第二接口的时间,与最后一个检测报文进入一个节点设备的下一跳节点设备第一接口的时间差。In another possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to multiple The time difference between the time when the first detection packet in the detection packet leaves the second interface of a node device and the time when the last detection packet enters the first interface of the next-hop node device of a node device.

在另一种可能的实现方式中,上述检测报文可以为BFD报文,以实现BFD机制中快速故障定位。In another possible implementation manner, the above detection packets may be BFD packets to achieve rapid fault location in the BFD mechanism.

在另一种可能的实现方式中,上述特征标识可以位于检测报文的报文头,提供一种检测报文具体格式。In another possible implementation manner, the above feature identifier can be located in the header of the detection message to provide a specific format of the detection message.

需要说明的是,第二方面提供的方案,是第一方面提供的方案的不同角度描述,其具体实现可以相互参考。It should be noted that the solution provided by the second aspect is a description of the solution provided by the first aspect from different angles, and their specific implementations can be referred to each other.

第三方面,提供一种检测装置,该装置部署于第一节点设备,第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备。该检测装置可以包括获取单元和测量单元。其中:In a third aspect, a detection device is provided. The device is deployed on a first node device. The first node device is a node device on the path between the second node device and the third node device. The detection device may include an acquisition unit and a measurement unit. in:

获取单元,用于获取包括特征标识的检测报文,该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量。The acquisition unit is used to acquire a detection message including a characteristic identifier, which is used to indicate measuring the transmission quality of the detection message; the detection message is used to detect the transmission quality of the path between the second node device and the third node device. .

测量单元,用于根据检测报文中的特征标识,获取检测报文在第一节点设备中的传输质量参数。The measurement unit is used to obtain the transmission quality parameters of the detection message in the first node device according to the characteristic identifier in the detection message.

通过本申请提供的检测方法,对检测报文添加特征标识进行染色,第一节点设备获取检测报文在其内部的实时传输质量参数,有助于根据检测的传输质量参数定位故障点位置,可以缩短故障定位时间以及成本,提高运维效率。Through the detection method provided by this application, the detection message is dyed by adding characteristic identifiers, and the first node device obtains the real-time transmission quality parameters of the detection message inside it, which helps to locate the fault point location based on the detected transmission quality parameters. Reduce fault location time and costs, and improve operation and maintenance efficiency.

同时,由于检测报文数量少,且检测报文穿插于业务报文中,相当于对业务报文抽样实现IFIT机制,实现简单计算量小。另外,由于检测报文由被检测路径的端节点设备发送,可以灵活选取被检测路径,提高了方案的应用场景。At the same time, since the number of detection packets is small and the detection packets are interspersed with business packets, it is equivalent to sampling the business packets to implement the IFIT mechanism, which is simple and requires little calculation. In addition, since the detection message is sent by the end node device of the detected path, the detected path can be flexibly selected, which improves the application scenarios of the solution.

在一种可能的实现方式中,所述装置还包括上报单元,用于:向处理设备上报获取的传输质量参数,以使得处理设备根据该传输质量参数,确定第二节点设备与第三节点设备间路径的故障位置,以缩短故障定位时间以及成本,提高运维效率。In a possible implementation, the device further includes a reporting unit configured to: report the obtained transmission quality parameter to the processing device, so that the processing device determines the second node device and the third node device according to the transmission quality parameter. fault location on the inter-path to shorten fault location time and cost and improve operation and maintenance efficiency.

在另一种可能的实现方式中,所述装置还包括上报单元,用于:本地存储获取的传输质量参数,以使得处理设备在有故障定位需求时,调用该传输质量参数,确定第二节点设备与第三节点设备间路径的故障位置。In another possible implementation, the device further includes a reporting unit configured to: locally store the obtained transmission quality parameters, so that when there is a need for fault location, the processing device calls the transmission quality parameters to determine the second node The fault location of the path between the device and the third node device.

在另一种可能的实现方式中,第一节点设备可以为多个。In another possible implementation manner, there may be multiple first node devices.

在另一种可能的实现方式中,上述特征标识可以包括丢包染色位,和/或,时延染色位,以指示测量检测报文的丢包和/或时延,实现准确故障定位。In another possible implementation, the above characteristic identifier may include a packet loss dyeing bit and/or a delay dyeing bit to indicate the packet loss and/or delay of the measurement detection message to achieve accurate fault location.

在另一种可能的实现方式中,上述检测报文可以为多个,通过多个检测报文,提高检测的准确度。In another possible implementation manner, there may be multiple detection packets, and multiple detection packets can be used to improve detection accuracy.

在另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口的检测报文的数量、一个检测周期内离开第一节点设备的第二接口的检测报文的数量、一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差、两个检测报文在第一节点设备内的时延差。第一接口、第二接口为第二节点设备与第三节点设备间路径上的接口。在该实现方式中,通过多个检测报文,获取检测报文的丢包质量以及时延抖动质量。In another possible implementation, when there are multiple detection packets, the transmission quality parameters of the detection packets in the first node device may include one or more of the following: Entering the first node within one detection cycle The number of detection packets from the first interface of the device, the number of detection packets leaving the second interface of the first node device within a detection cycle, the number of detection packets entering the first interface of the first node device and the number of detection packets leaving the first node within a detection cycle The difference in the number of detection packets on the second interface of the device and the difference in delay between the two detection packets within the first node device. The first interface and the second interface are interfaces on the path between the second node device and the third node device. In this implementation, the packet loss quality and delay jitter quality of the detection packets are obtained through multiple detection packets.

在另一种可能的实现方式中,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:检测报文进入第一节点设备的时间戳、检测报文离开第一节点设备的时间戳、检测报文在第一节点设备内的时延。In another possible implementation, the transmission quality parameters of the detection packet in the first node device may include one or more of the following: the timestamp of the detection packet entering the first node device, the time stamp of the detection packet leaving the first node device. The timestamp of a node device and the delay of detection packets in the first node device.

在另一种可能的实现方式中,上述检测报文可以为BFD报文,以实现BFD机制中快速故障定位。In another possible implementation manner, the above detection packets may be BFD packets to achieve rapid fault location in the BFD mechanism.

在另一种可能的实现方式中,上述特征标识可以位于检测报文的报文头,提供一种检测报文具体格式。In another possible implementation manner, the above feature identifier can be located in the header of the detection message to provide a specific format of the detection message.

需要说明的是,第三方面提供的检测装置,用于执行上述第一方面提供的检测方法,其具体实现和有益效果均可以参照前述第一方面的描述,此处不再赘述。It should be noted that the detection device provided in the third aspect is used to perform the detection method provided in the first aspect. For its specific implementation and beneficial effects, reference can be made to the description of the first aspect and will not be described again here.

第四方面,提供一种检测装置,该装置可以包括获取单元和确定单元。其中:A fourth aspect provides a detection device, which may include an acquisition unit and a determination unit. in:

获取单元,用于从第一节点设备获取检测报文在第一节点设备中的传输质量参数;该检测报文包括特征标识;该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备。The acquisition unit is used to obtain the transmission quality parameter of the detection message in the first node device from the first node device; the detection message includes a feature identifier; the feature identifier is used to indicate measuring the transmission quality of the detection message; the detection The message is used to detect the transmission quality of the path between the second node device and the third node device; the first node device is a node device on the path between the second node device and the third node device.

确定单元,用于根据检测报文在第一节点设备中的传输质量参数,确定第二节点设备到第三节点设备间路径的故障位置。The determining unit is configured to determine the fault location of the path between the second node device and the third node device based on the transmission quality parameter of the detection message in the first node device.

通过本申请提供的检测方法,对检测报文添加特征标识进行染色,第一节点测量获取检测报文在被测量路径中的实时传输质量参数,处理设备可以获取该传输质量参数,进而根据传输质量参数确定故障点位置,可以缩短故障定位时间以及成本,提高运维效率。Through the detection method provided by this application, the detection message is dyed by adding characteristic identifiers. The first node measures and obtains the real-time transmission quality parameter of the detection message in the measured path. The processing device can obtain the transmission quality parameter and then determine the transmission quality according to the Parameters determine the location of the fault point, which can shorten fault location time and cost and improve operation and maintenance efficiency.

在一种可能的实现方式中,第一节点设备为多个,获取单元具体用于:从每个第一节点设备获取检测报文在第一节点设备中的传输质量参数。通过路径中多个第一节点设备的测量结果,可以快速定位多个第一节点设备组成的路径中的故障位置。In a possible implementation manner, there are multiple first node devices, and the obtaining unit is specifically configured to: obtain the transmission quality parameter of the detection message in the first node device from each first node device. Through the measurement results of multiple first node devices in the path, the fault location in the path composed of multiple first node devices can be quickly located.

在另一种可能的实现方式中,上述特征标识可以包括丢包染色位,和/或,时延染色位,以指示获取检测报文的丢包和/或时延,实现准确故障定位。In another possible implementation, the above characteristic identifier may include a packet loss dyeing bit and/or a delay dyeing bit to indicate the packet loss and/or delay in obtaining the detection message to achieve accurate fault location.

在另一种可能的实现方式中,该检测报文可以为多个,通过多个检测报文,提高检测的准确度。In another possible implementation manner, there may be multiple detection packets, and multiple detection packets can be used to improve detection accuracy.

在另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口的检测报文的数量、一个检测周期内离开第一节点设备的第二接口的检测报文的数量、一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差、两个检测报文在第一节点设备内的时延差。第一接口、第二接口为第二节点设备与第三节点设备间路径上的接口。在该实现方式中,通过多个检测报文,获取检测报文的丢包参数以及时延抖动参数。In another possible implementation, when there are multiple detection packets, the transmission quality parameters of the detection packets in the first node device may include one or more of the following: Entering the first node within one detection cycle The number of detection packets from the first interface of the device, the number of detection packets leaving the second interface of the first node device within a detection cycle, the number of detection packets entering the first interface of the first node device and the number of detection packets leaving the first node within a detection cycle The difference in the number of detection packets on the second interface of the device and the difference in delay between the two detection packets within the first node device. The first interface and the second interface are interfaces on the path between the second node device and the third node device. In this implementation, the packet loss parameters and delay jitter parameters of the detection packets are obtained through multiple detection packets.

在另一种可能的实现方式中,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:检测报文进入第一节点设备的时间戳、检测报文离开第一节点设备的时间戳、检测报文在第一节点设备内的时延。在该实现方式中,通过检测报文的传输时间指示时延传输参数。In another possible implementation, the transmission quality parameters of the detection packet in the first node device may include one or more of the following: the timestamp of the detection packet entering the first node device, the time stamp of the detection packet leaving the first node device. The timestamp of a node device and the delay of detection packets in the first node device. In this implementation, the delay transmission parameter is indicated by detecting the transmission time of the message.

在另一种可能的实现方式中,检测报文为多个,确定单元具体用于:若检测报文在第一节点设备中的传输质量参数满足第一条件,则确定路径中该第一节点设备故障。其中,第一条件可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差大于或等于第一阈值、检测报文在第一节点设备内的时延大于或等于第二阈值、两个检测报文在第一节点设备内的时延差大于或等于第三阈值。第一接口、第二接口为所述路径上的接口。通过配置节点故障的第一条件,实现对节点设备故障的定位。In another possible implementation, there are multiple detection packets, and the determination unit is specifically configured to: if the transmission quality parameter of the detection packet in the first node device meets the first condition, determine the first node in the path Equipment failure. The first condition may include one or more of the following: a difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within a detection cycle is greater than or equal to the first The threshold, the delay of the detection message in the first node device is greater than or equal to the second threshold, and the delay difference of the two detection messages in the first node device is greater than or equal to the third threshold. The first interface and the second interface are interfaces on the path. By configuring the first condition for node failure, the node device failure can be located.

一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文在第一节点设备内的时延的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the average delay of the multiple detection packets in the first node device, or maximum value, or something else.

另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文中第一个检测报文进入第一节点设备的第一接口的时间,与最后一个检测报文离开第一节点设备的第二接口的时间差。In another possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the time delay of the first detection packet among the multiple detection packets entering the first node device. The time of the first interface is the difference between the time of the last detection packet leaving the second interface of the first node device.

在另一种可能的实现方式中,检测报文为一个,确定单元具体用于:若检测报文在第一节点设备内的时延大于或等于第二阈值,则确定路径中该第一节点设备故障。In another possible implementation, there is one detection message, and the determination unit is specifically configured to: if the delay of the detection message in the first node device is greater than or equal to the second threshold, determine the first node in the path Equipment failure.

在另一种可能的实现方式中,检测报文为多个,确定单元具体用于:若检测报文在路径上两个节点设备中的传输质量参数满足第二条件,则两个节点设备间的路径故障。其中,第二条件可以包括下述一项或多项:离开一个节点设备的第二接口的检测报文的数量,减去进入一个节点设备的下一跳节点设备的第一接口的检测报文的数量的差,大于或等于第四阈值;两个检测报文在两个节点设备间路径上的时延差大于或等于第五阈值。通过配置节点间路径故障的第二条件,实现对节点设备间路径故障的定位。In another possible implementation, there are multiple detection packets, and the determining unit is specifically configured to: if the transmission quality parameters of the detection packets in two node devices on the path meet the second condition, then the detection packet between the two node devices meets the second condition. path failure. The second condition may include one or more of the following: the number of detection packets leaving the second interface of a node device, minus the number of detection packets entering the first interface of a next-hop node device of a node device The difference in the number is greater than or equal to the fourth threshold; the difference in delay of the two detection packets on the path between the two node devices is greater than or equal to the fifth threshold. By configuring the second condition for path failure between nodes, the path failure between node devices can be located.

在另一种可能的实现方式中,确定单元具体用于:若检测报文在路径上两个节点设备中的传输质量参数满足第三条件,则两个节点设备间的路径故障。其中,第三条件包括检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,大于或等于第六阈值。通过配置节点间路径故障的第三条件,实现对节点设备间路径故障的定位。In another possible implementation manner, the determining unit is specifically configured to: if the transmission quality parameters of the detected message in the two node devices on the path meet the third condition, then the path between the two node devices is faulty. The third condition includes detecting that the time difference between the detection packet leaving the second interface of one node device and entering the first interface of the next hop node device of one node device is greater than or equal to the sixth threshold. By configuring the third condition for path failure between nodes, the path failure between node devices can be located.

其中,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以理解为检测报文在一个节点设备到下一跳节点设备的时延。The time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device can be understood as the delay of the detection packet from one node device to the next-hop node device.

一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指每个检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to each detection packet. The average, or maximum, or other time difference between a packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device.

另一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指多个检测报文中第一个检测报文离开一个节点设备的第二接口的时间,与最后一个检测报文进入一个节点设备的下一跳节点设备第一接口的时间差。In another possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to multiple The time difference between the time when the first detection packet in the detection packet leaves the second interface of a node device and the time when the last detection packet enters the first interface of the next-hop node device of a node device.

在另一种可能的实现方式中,上述检测报文可以为BFD报文,以实现BFD机制中快速故障定位。In another possible implementation manner, the above detection packets may be BFD packets to achieve rapid fault location in the BFD mechanism.

在另一种可能的实现方式中,上述特征标识可以位于检测报文的报文头,提供一种检测报文具体格式。In another possible implementation manner, the above feature identifier can be located in the header of the detection message to provide a specific format of the detection message.

需要说明的是,第四方面提供的检测装置,用于执行上述第二方面提供的检测方法,其具体实现和有益效果均可以参照前述第二方面的描述,此处不再赘述。It should be noted that the detection device provided in the fourth aspect is used to perform the detection method provided in the second aspect. For its specific implementation and beneficial effects, reference can be made to the description of the second aspect and will not be described again here.

第五方面,本申请提供了一种网络设备,该网络设备可以实现上述第一方面或第二方面描述的方法示例中的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。该网络设备可以以芯片的产品形态存在。In a fifth aspect, the present application provides a network device that can implement the functions in the method examples described in the first aspect or the second aspect. The functions can be implemented by hardware, or the corresponding software can be executed by hardware. accomplish. The hardware or software includes one or more modules corresponding to the above functions. The network equipment can exist in the form of a chip product.

在一种可能的实现方式中,该网络设备可以包括处理器和传输接口。其中,传输接口用于接收和发送数据。处理器被配置为调用存储在存储器中的程序指令,以使得该网络设备执行上述第一方面或第二方面描述的方法示例中的功能。In a possible implementation, the network device may include a processor and a transmission interface. Among them, the transmission interface is used to receive and send data. The processor is configured to call program instructions stored in the memory, so that the network device performs the functions in the method examples described in the first aspect or the second aspect.

第六方面,提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述任一方面或任意一种可能的实现方式所述的检测方法。In a sixth aspect, a computer-readable storage medium is provided, including instructions that, when run on a computer, cause the computer to perform the detection method described in any of the above aspects or any possible implementation manner.

第七方面,提供一种计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一方面或任意一种可能的实现方式所述的检测方法。A seventh aspect provides a computer program product that, when run on a computer, causes the computer to execute the detection method described in any of the above aspects or any possible implementation manner.

第八方面,提供一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现上述方法中的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, a chip system is provided. The chip system includes a processor and may also include a memory for implementing the functions in the above method. The chip system can be composed of chips or include chips and other discrete devices.

第九方面,提供一种检测系统,包括第一网络设备及第二网络设备,第一网络设备用于执行上述第一方面及其任一种可能的实现方式提供的检测方法,第二网络设备用于执行上述第二方面机器任一种可能的实现方式提供的检测方法。A ninth aspect provides a detection system, including a first network device and a second network device. The first network device is used to perform the detection method provided by the above-mentioned first aspect and any possible implementation thereof. The second network device For performing the detection method provided by any possible implementation of the machine of the second aspect above.

上述第五方面至第九方面提供的方案,用于实现上述第一方面或第二方面提供的方法,因此可以与第一方面或第二方面达到相同的有益效果,此处不再进行赘述。The solutions provided in the fifth to ninth aspects are used to implement the method provided in the first or second aspect, and therefore can achieve the same beneficial effects as those in the first or second aspect, and will not be described again here.

需要说明的是,上述各个方面中的任意一个方面的各种可能的实现方式,在方案不矛盾的前提下,均可以进行组合。It should be noted that various possible implementations of any of the above aspects can be combined as long as the solutions are not inconsistent.

附图说明Description of the drawings

图1为本申请实施例提供的一种报文传输场景示意图;Figure 1 is a schematic diagram of a message transmission scenario provided by an embodiment of the present application;

图2为本申请实施例提供的一种IFIT检测头信息的组成示意图;Figure 2 is a schematic diagram of the composition of IFIT detection header information provided by an embodiment of the present application;

图3为本申请实施例提供的一种报文传输系统的结构示意图;Figure 3 is a schematic structural diagram of a message transmission system provided by an embodiment of the present application;

图4为本申请实施例提供的另一种报文传输系统的结构示意图;Figure 4 is a schematic structural diagram of another message transmission system provided by an embodiment of the present application;

图5为本申请实施例提供的一种网络设备的结构示意图;Figure 5 is a schematic structural diagram of a network device provided by an embodiment of the present application;

图6为本申请实施例提供的一种检测方法的流程示意图;Figure 6 is a schematic flow chart of a detection method provided by an embodiment of the present application;

图7为本申请实施例提供的另一种报文传输场景示意图;Figure 7 is a schematic diagram of another message transmission scenario provided by the embodiment of the present application;

图8为本申请实施例提供的再一种报文传输场景示意图;Figure 8 is a schematic diagram of yet another message transmission scenario provided by the embodiment of the present application;

图9为本申请实施例提供的又一种报文传输场景示意图;Figure 9 is a schematic diagram of another message transmission scenario provided by the embodiment of the present application;

图10为本申请实施例提供的一种检测装置的结构示意图;Figure 10 is a schematic structural diagram of a detection device provided by an embodiment of the present application;

图11为本申请实施例提供的另种检测装置的结构示意图;Figure 11 is a schematic structural diagram of another detection device provided by an embodiment of the present application;

图12为本申请实施例提供的一种第一节点设备的结构示意图;Figure 12 is a schematic structural diagram of a first node device provided by an embodiment of the present application;

图13为本申请实施例提供的再一种检测装置的结构示意图;Figure 13 is a schematic structural diagram of yet another detection device provided by an embodiment of the present application;

图14为本申请实施例提供的一种处理设备的结构示意图。Figure 14 is a schematic structural diagram of a processing device provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms “first”, “second” and “third” in the description and claims of this application and the above-mentioned drawings are used to distinguish different objects, but are not used to limit a specific order.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner that is easier to understand.

在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise stated, "/" means that the related objects are in an "or" relationship. For example, A/B can mean A or B; "and/or" in this application only means It is an association relationship that describes related objects. It means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A and B Can be singular or plural. Furthermore, in the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .

在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiment of this application, at least one can also be described as one or more, and the plurality can be two, three, four or more, which is not limited by this application.

在描述本申请实施例之前,先对本申请实施例中涉及的名词进行解释。Before describing the embodiments of the present application, the terms involved in the embodiments of the present application will be explained first.

丢包,是指报文传输过程中丢失的数据包。丢包可以通过丢包数量、丢包率等来衡量。Packet loss refers to data packets lost during message transmission. Packet loss can be measured by the number of lost packets, packet loss rate, etc.

时延,是指报文传输的时间。时延可以分为在节点设备中的时延以及在路径中的时延,时延可以通过进入时间与离开时间来确定。时延可以为一个报文进入的时间与离开时间的差,或者,时延也可以为多个报文中第一个报文进入的时间与最后一个报文离开的时间的差。Latency refers to the time for message transmission. The delay can be divided into the delay in the node device and the delay in the path. The delay can be determined by the entry time and departure time. The delay can be the difference between the time a packet enters and the time it leaves, or the delay can be the difference between the time the first packet enters and the time the last packet leaves among multiple packets.

时延抖动,是指不同报文在某一位置的时延差异大的一种现象。Delay jitter refers to a phenomenon in which the delays of different packets at a certain location vary greatly.

路径(path),是指计算机网络中两个设备之间的连接。路径可以仅包括节点设备之间的连接,或者,路径也可以包括节点设备以及节点设备间的连接。Path refers to the connection between two devices in a computer network. The path may include only connections between node devices, or the path may include node devices and connections between node devices.

路径的传输质量,是指路径传输报文的过程中的指标。路径的传输质量可以包括但不限于:是否连通、传输指标(例如丢包、时延等)等。对于是否连通可以配置连通判断标准,当传输指标满足连通判断标准时,则确定路径连通,当传输指标不满足连通判断标准时,则确定路径断开。The transmission quality of the path refers to the indicator in the process of transmitting packets on the path. The transmission quality of the path may include but is not limited to: whether it is connected, transmission indicators (such as packet loss, delay, etc.), etc. The connectivity judgment criteria can be configured for whether the connection is connected. When the transmission index meets the connectivity judgment criterion, it is determined that the path is connected. When the transmission index does not meet the connectivity judgment criterion, it is determined that the path is disconnected.

报文在节点设备中的传输质量,是指用于反映报文在节点设备中的传输指标,例如丢包、时延等。报文在节点设备中的传输质量可以用报文在节点设备中的传输质量参数体现。The transmission quality of packets in node devices refers to the indicators used to reflect the transmission of packets in node devices, such as packet loss, delay, etc. The transmission quality of the message in the node device can be reflected by the transmission quality parameter of the message in the node device.

在计算机网络(例如软件定义网络(software defined network,SDN))中,在进行路径的传输质量检测时,可以在被检测路径中发送检测报文,以测量被检测路径是否故障。在具体实现中,可以根据实际需求灵活选取被检测路径的位置。In a computer network (such as a software defined network (SDN)), when detecting the transmission quality of a path, a detection message can be sent in the detected path to measure whether the detected path is faulty. In specific implementation, the location of the detected path can be flexibly selected according to actual needs.

以BFD机制为例,对通过检测报文测量路径连通性的过程进行描述。在BFD机制中配置了被检测路径后,由于BFD机制中没有邻居发现机制,被检测路径的两端节点靠服务的上层应用通知其邻居信息建立BFD会话。建立的BFD会话会周期性地快速互发BFD报文,发送BFD报文的周期和频率两端设备一致。如果一端在检测时间内没收到对端发送的BFD报文则认为该双向转发路径发生故障,确定该路径状态为down,通知被服务的上层应用进行相应的处理。如前述结合图1的描述可知,该过程只能感知被检测路径的故障,无法感知故障点准确位置。Taking the BFD mechanism as an example, the process of measuring path connectivity by detecting packets is described. After the detected path is configured in the BFD mechanism, since there is no neighbor discovery mechanism in the BFD mechanism, the nodes at both ends of the detected path rely on the upper-layer application of the service to notify their neighbor information to establish a BFD session. The established BFD session will periodically and quickly send BFD packets to each other. The cycle and frequency of sending BFD packets are consistent between the devices at both ends. If one end does not receive the BFD message sent by the opposite end within the detection time, it is considered that the bidirectional forwarding path is faulty, determines that the path status is down, and notifies the upper-layer application being served to perform corresponding processing. As can be seen from the above description combined with Figure 1, this process can only sense the fault of the detected path, but cannot sense the exact location of the fault point.

当前业界提出了一种随路操作管理维护(operation administration andmaintenance,OAM)检测技术-随流检测(in-situ flow information telemetry,IFIT)。IFIT是基于端到端直接对业务报文进行测量,从而得到网络的真实丢包率、时延等质量指标的检测方案。Currently, the industry has proposed an in-situ flow information telemetry (IFIT) detection technology for operation administration and maintenance (OAM). IFIT is a detection solution based on end-to-end direct measurement of business packets to obtain the network's true packet loss rate, delay and other quality indicators.

IFIT机制在实际业务报文中携带IFIT检测头信息对实际业务报文进行染色,随路节点(接收到报文的节点)根据IFIT检测头信息进行传输质量测量。The IFIT mechanism carries the IFIT detection header information in the actual service packets to dye the actual service packets, and the accompanying node (the node that receives the packet) performs transmission quality measurement based on the IFIT detection header information.

以多协议标签交换(multiprotocol label switching,MPLS)/MPLS-段路由(segment routing,SR)场景为例,IFIT检测头信息的组成可以如图2所示。IFIT检测头包括流指令标识(flow instruction indicator,FII)、流指令头(flow instruction header,FIH)、流指令扩展头(flow instruction extension header,FIEH)),IFIT检测头封装在MPLS栈底与MPLS净荷之间。图2示意的IFIT检测头(FII、FIH、FIEH)中各部分内容的解释说明如表1所示。Taking the multiprotocol label switching (MPLS)/MPLS segment routing (SR) scenario as an example, the composition of the IFIT detection header information can be shown in Figure 2. The IFIT detection header includes flow instruction indicator (FII), flow instruction header (FIH), flow instruction extension header (FIEH)). The IFIT detection header is encapsulated at the bottom of the MPLS stack and MPLS between payloads. The explanation of each part of the IFIT detection head (FII, FIH, FIEH) shown in Figure 2 is shown in Table 1.

表1Table 1

IFIT可以开启逐跳检测时,将对业务流实际经过的每个网元入口、出口进行传输质量参数测量,可获得实时业务路径上逐个网元节点、逐段路径的丢包、时延测量结果。IFIT进行统计时,在某一个检测周期内,所有进入网络的流量与离开网络的流量之间的差,即为承载网络在该检测周期内的丢包数。在某一个检测周期内,指定的两个网络节点间,同一条业务流(可以通过五元组或其他信息定义)进入网络的时间,与离开网络的时间之间的差,即为网络在该检测周期内的时延。IFIT的随流检测功能,可以实时检测业务流在网络中的时延,丢包,根据检测的时延、丢包就可以快速发现故障点。例如,可以将时延大、丢包多的位置确定为故障点。When IFIT can enable hop-by-hop detection, it will measure the transmission quality parameters of each network element inlet and outlet that the business flow actually passes through, and can obtain the packet loss and delay measurement results of each network element node and path segment on the real-time service path. . When IFIT makes statistics, the difference between all the traffic entering the network and the traffic leaving the network in a certain detection period is the number of packets lost by the bearer network in the detection period. Within a certain detection period, between two designated network nodes, the difference between the time when the same service flow (can be defined by quintuple or other information) enters the network and the time when it leaves the network is the network's time in that detection period. Delay within the detection cycle. IFIT's flow detection function can detect the delay and packet loss of business flows in the network in real time. The fault point can be quickly discovered based on the detected delay and packet loss. For example, locations with large delays and large packet losses can be identified as fault points.

但是,一方面,由于业务流报文数量庞大,若采用IFIT机制进行故障定位需对大量的报文进行染色,实现复杂且统计时计算量大。另一方面,业务流报文发送端与接收端由业务需求决定,若采用IFIT机制进行故障定位无法灵活选取被检测路径,方案应用局限性大。再一方面,一个路径中承载多个业务流,不同业务流的IFIT机制独立,无法有效定位路径故障。However, on the one hand, due to the large number of business flow packets, if the IFIT mechanism is used for fault location, a large number of packets need to be dyed, which is complex to implement and requires a large amount of calculation for statistics. On the other hand, the sending and receiving ends of business flow messages are determined by business requirements. If the IFIT mechanism is used for fault location, the detected path cannot be flexibly selected, and the application of the solution has great limitations. On the other hand, one path carries multiple service flows, and the IFIT mechanisms of different service flows are independent, making it impossible to effectively locate path faults.

基于此,本申请提供一种检测方法,通过对用于检测路径连通性的检测报文进行染色,接收到检测报文的节点获取检测报文在被测量路径中的传输质量参数,根据获取的传输质量快速发现故障点位置,可以缩短故障定位时间以及成本,提高运维效率。Based on this, this application provides a detection method. By dyeing the detection message used to detect path connectivity, the node that receives the detection message obtains the transmission quality parameter of the detection message in the measured path, and based on the obtained The transmission quality can quickly detect the location of fault points, which can shorten fault location time and costs and improve operation and maintenance efficiency.

同时,由于检测报文数量少,且检测报文穿插于业务报文中,相当于对业务报文抽样实现IFIT机制,实现简单计算量小。另外,由于检测报文由被检测路径的端节点设备发送,可以灵活选取被检测路径,提高了方案的应用场景;并且,一个路径中可以仅配置一个检测报文流,可以有效定位路径故障。At the same time, since the number of detection packets is small and the detection packets are interspersed with business packets, it is equivalent to sampling the business packets to implement the IFIT mechanism, which is simple and requires little calculation. In addition, since the detection packets are sent by the end node device of the detected path, the detected path can be flexibly selected, which improves the application scenarios of the solution; moreover, only one detection packet flow can be configured in a path, which can effectively locate path faults.

下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

本申请实施例提供的方案可以应用于二层网络或者三层网络,或者应用于二层网络与三层网络的混合网络,本申请实施例对此不予限定。The solution provided by the embodiments of the present application can be applied to a Layer 2 network or a Layer 3 network, or to a hybrid network of a Layer 2 network and a Layer 3 network, which is not limited by the embodiments of the present application.

本申请实施例提供的方案可以应用于图3所示的报文传输系统30中。如图3所示,该报文传输系统30可以包括多个节点设备301。The solution provided by the embodiment of the present application can be applied to the message transmission system 30 shown in FIG. 3 . As shown in FIG. 3 , the message transmission system 30 may include multiple node devices 301 .

本申请实施例提供的方案还可以应用于图4所示的报文传输系统30中。如图4所示,该报文传输系统30可以包括多个节点设备301以及处理设备302。The solution provided by the embodiment of the present application can also be applied to the message transmission system 30 shown in Figure 4. As shown in FIG. 4 , the message transmission system 30 may include multiple node devices 301 and processing devices 302 .

其中,节点设备301用于承载业务流量实现业务功能。节点设备301也可以承载检测报文,用于获取路径的传输质量参数。Among them, the node device 301 is used to carry business traffic to implement business functions. The node device 301 can also carry detection messages to obtain transmission quality parameters of the path.

处理设备302可以为用于管理报文传输系统30中的节点设备的集中控制设备,或者可以为第三方服务器或者其他。例如,集中控制设备可以根据节点设备301上报的路径传输质量参数进行故障定位等。The processing device 302 may be a centralized control device used to manage node devices in the message transmission system 30, or may be a third-party server or others. For example, the centralized control device can perform fault location based on the path transmission quality parameters reported by the node device 301.

其中,节点设备301可以为服务商边缘(provider edge,PE)设备,或者,也可以为服务商(provider,P)设备,本申请实施例对于节点设备301的类型及功能不予限定。The node device 301 may be a provider edge (PE) device or a provider (P) device. The embodiment of the present application does not limit the type and function of the node device 301.

节点设备301为转发设备,其产品形态可以为路由器、或者交换机,或者分组传送网(packet transport network,PTN)设备,或者其他,本申请实施例对此不予限定。The node device 301 is a forwarding device, and its product form may be a router, a switch, a packet transport network (packet transport network, PTN) device, or others, which is not limited in the embodiments of this application.

处理设备302可以为网络中配置的用于集中控制的分析器或者控制器或者其他。The processing device 302 may be an analyzer or controller configured in the network for centralized control, or others.

需要说明的是,报文传输系统30中包括的网络设备的数量可以根据实际需求配置,本申请图3仅为示意,并不是对报文传输系统30的规模的具体限定。It should be noted that the number of network devices included in the message transmission system 30 can be configured according to actual needs. Figure 3 of this application is only for illustration and does not specifically limit the scale of the message transmission system 30.

下面结合附图,对本申请的实施例提供的方案进行具体阐述。The solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

一方面,本申请实施例提供一种网络设备50,用于执行本申请提供的检测方法。例如,该网络设备50可以为图3中示意的节点设备301,或者,该网络设备50可以为图4中示意的节点设备301或者处理设备302。On the one hand, embodiments of the present application provide a network device 50 for executing the detection method provided by the present application. For example, the network device 50 may be the node device 301 illustrated in FIG. 3 , or the network device 50 may be the node device 301 or the processing device 302 illustrated in FIG. 4 .

图5示意了本申请实施例提供的网络设备50的结构图。如图5所示,网络设备50可以包括处理器501、存储器502、收发器503。Figure 5 illustrates a structural diagram of the network device 50 provided by the embodiment of the present application. As shown in Figure 5, the network device 50 may include a processor 501, a memory 502, and a transceiver 503.

下面结合图5对网络设备50的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the network device 50 with reference to Figure 5:

存储器502可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的应用程序代码、配置文件、数据信息或者其他内容。在其他可能的情形中,该存储器502也可以部署在独立于网络设备50的其他设备中。The memory 502 may be a volatile memory (volatile memory), such as a random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); or a combination of the above types of memories, used to store applications that can implement the method of the present application Code, configuration files, data information or other content. In other possible situations, the memory 502 may also be deployed in other devices independent of the network device 50 .

收发器503用于网络设备50与其他设备的信息交互。The transceiver 503 is used for information exchange between the network device 50 and other devices.

处理器501可以是网络设备50的控制中心。例如,处理器501可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specificintegrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。The processor 501 may be the control center of the network device 50 . For example, the processor 501 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present application. , for example: one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA).

一种可能的实现方式中,网络设备50为第二节点设备到第三节点设备间路径上的一个节点设备,处理器501通过运行或执行存储在存储器502内的软件程序和/或模块,执行如下功能:In a possible implementation, the network device 50 is a node device on the path between the second node device and the third node device, and the processor 501 executes the process by running or executing software programs and/or modules stored in the memory 502 . The following functions:

获取包括特征标识的检测报文,该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;根据检测报文中的特征标识,获取该检测报文在网络设备50中的传输质量参数。Obtain a detection message including a characteristic identifier, which is used to indicate measuring the transmission quality of the detection message; the detection message is used to detect the transmission quality of the path between the second node device and the third node device; according to the detection message The characteristic identifier in is obtained to obtain the transmission quality parameter of the detection message in the network device 50 .

另一种可能的实现方式中,网络设备50为处理设备,处理器501通过运行或执行存储在存储器502内的软件程序和/或模块,执行如下功能:In another possible implementation, the network device 50 is a processing device, and the processor 501 performs the following functions by running or executing software programs and/or modules stored in the memory 502:

从第一节点设备获取检测报文在第一节点设备中的传输质量参数;该检测报文包括特征标识;该特征标识用于指示测量该检测报文的传输质量;该检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;根据检测报文在第一节点设备中的传输质量参数,确定路径的故障位置。Obtain the transmission quality parameter of the detection message in the first node device from the first node device; the detection message includes a feature identifier; the feature identifier is used to indicate measuring the transmission quality of the detection message; the detection message is used for detection The transmission quality of the path between the second node device and the third node device; the first node device is a node device on the path between the second node device and the third node device; according to the transmission quality of the detection message in the first node device Parameters to determine the fault location of the path.

另一方面,本申请实施例提供一种检测方法,应用于检测第二节点设备到第三节点设备间路径的传输质量的过程中。On the other hand, embodiments of the present application provide a detection method, which is applied in the process of detecting the transmission quality of the path between the second node device and the third node device.

在执行本申请实施例提供的方法之前,先根据实际需求选取被检测路径,该被检测路径的一端为第二节点设备,另一端为第三节点设备。本申请实施例提供的方法,可以检测被检测路径的单向传输质量,也可以检测被检测路径的双向传输质量,本申请实施例对此不予限定。Before executing the method provided by the embodiment of the present application, a detected path is first selected according to actual needs. One end of the detected path is the second node device and the other end is the third node device. The method provided by the embodiments of the present application can detect the unidirectional transmission quality of the detected path, and can also detect the bidirectional transmission quality of the detected path, which is not limited by the embodiments of the present application.

示例性的,可以根据人工指定的方式选取被检测路径。例如,由网络管理员或其他角色通过交互界面,选取被检测路径。For example, the detected path can be selected according to a manually specified method. For example, the network administrator or other role selects the path to be detected through the interactive interface.

示例性的,可以根据预先配置的规则选取被检测路径。例如,配置周期性的选取某一路径作为被检测路径。For example, the detected path can be selected according to preconfigured rules. For example, configure to periodically select a certain path as the path to be detected.

当然,本申请实施例对于选取被检测路径的具体方式不予限定。Of course, the embodiment of the present application does not limit the specific method of selecting the detected path.

在选取被检测路径后,被检测路径的端设备(第二节点设备和/或第三节点设备)对检测报文染色(在报文头中增加特征标识),然后按照检测机制的周期以及频率,发送染色后的检测报文。After selecting the path to be detected, the end device of the path to be detected (the second node device and/or the third node device) dyes the detection packet (adds a feature identifier to the packet header), and then follows the cycle and frequency of the detection mechanism. , sending the dyed detection packet.

其中,对检测报文进行染色时,在报文头中增加的特征标识,可以参照图2示意的IFIT检测头信息的内容、形式以及在报文中的位置。当然,对检测报文进行染色时,可以根据实际需求选取图2示意的IFIT检测头信息中的部分内容,作为检测报文的报文头中的特征标识,本申请实施例对此不予限定。Among them, when dyeing the detection packet, the feature identifier added in the packet header can refer to the content, form and position of the IFIT detection header information illustrated in Figure 2. Of course, when dyeing the detection packet, part of the IFIT detection header information shown in Figure 2 can be selected according to actual needs as the feature identifier in the header of the detection packet. This is not limited in the embodiment of the present application. .

示例性的,特征标识可以位于检测报文的报文头。如图2示意,特征标识可以封装在MPLS栈底与MPLS净荷之间。For example, the characteristic identifier may be located in the header of the detection message. As shown in Figure 2, the feature identifier can be encapsulated between the bottom of the MPLS stack and the MPLS payload.

例如,可以在检测报文的报文头中增加丢包染色位和/或时延染色位。For example, a packet loss dye bit and/or a delay dye bit can be added to the header of the detection packet.

例如,可以在检测报文的报文头中增加流标识,流标识用于指示一个检测周期内,被检测路径中一端发往另一端的检测报文。For example, a flow identifier can be added to the header of the detection packet. The flow identifier is used to indicate the detection packets sent from one end of the detected path to the other end within a detection cycle.

例如,检测报文的报文头头中还可以包括检测周期,该检测周期用于指示节点设备根据检测报文统计传输质量的周期。该检测周期可以与检测报文的发送周期相同,也可以不同。For example, the message header of the detection message may also include a detection period, which is used to indicate the period in which the node device collects transmission quality statistics based on the detection message. The detection period may be the same as the detection message sending period, or may be different.

需要说明的是,本申请实施例中仅描述对于报文的处理过程,对于报文传输中的封装于解封装过程,按照网络执行的传输协议即可,本申请实施例不作赘述。It should be noted that the embodiments of this application only describe the processing of messages. The encapsulation and decapsulation processes in message transmission only need to follow the transmission protocol executed by the network, and will not be described in detail in the embodiments of this application.

如图6所示,本申请实施例提供的检测方法可以包括:As shown in Figure 6, the detection method provided by the embodiment of the present application may include:

S601、第一节点设备获取包括特征标识的检测报文。S601. The first node device obtains a detection message including the characteristic identifier.

其中,第一节点设备可以为第二节点设备到第三节点设备间路径上的一个节点设备。例如,第一节点设备可以为使能了随流检测功能的节点设备。The first node device may be a node device on the path between the second node device and the third node device. For example, the first node device may be a node device with a flow detection function enabled.

示例性的,第一节点设备可以为第二节点设备,或者,第一节点设备也可以为第三节点设备,或者,第一节点设备还可以为第二节点设备与第三节点设备间路径上,除第二节点设备和第三节点设备之外的一个节点设备。For example, the first node device may be a second node device, or the first node device may be a third node device, or the first node device may be a node on the path between the second node device and the third node device. , a node device except the second node device and the third node device.

其中,该检测报文为被检测路径的一端发往另一端,检测报文可以为一个或多个。该检测报文用于检测第二节点设备到第三节点设备间路径(即被检测路径)的传输质量。The detection packet is sent from one end of the detected path to the other end, and the detection packet may be one or more. The detection message is used to detect the transmission quality of the path between the second node device and the third node device (ie, the detected path).

当该检测报文为多个时,每个检测报文具有相同的流标识。When there are multiple detection packets, each detection packet has the same flow identifier.

可选的,该检测报文可以为单项检测机制中的检测报文,也可以为双向检测机制中的检测报文,本申请实施例对此不予限定。Optionally, the detection message may be a detection message in a single detection mechanism or a detection message in a bidirectional detection mechanism, which is not limited in the embodiments of this application.

例如,对于单项检测机制,该检测报文为一个检测周期内的检测报文。对于双向检测机制,该检测报文为一个检测周期内的一端发往另一端的一个方向的检测报文。For example, for a single detection mechanism, the detection packet is a detection packet within a detection cycle. For the bidirectional detection mechanism, the detection packet is a detection packet sent from one end to the other end in one direction within a detection cycle.

可选的,检测报文的类型可以根据检测机制确定,本申请实施例对于检测报文的类型不予限定。示例性的,该检测报文可以为BFD报文。Optionally, the type of the detection packet can be determined according to the detection mechanism. The embodiment of this application does not limit the type of the detection packet. For example, the detection packet may be a BFD packet.

具体的,该检测报文包括特征标识,该特征标识用于指示测量该检测报文的传输质量。Specifically, the detection message includes a characteristic identifier, and the characteristic identifier is used to indicate measuring the transmission quality of the detection message.

可选的,检测报文中的特征标识可以包括丢包染色位,和/或,时延染色位。Optionally, the characteristic identifier in the detection packet may include packet loss dyeing bits and/or delay dyeing bits.

其中,丢包染色位用于指示测量该检测报文的丢包参数。例如,丢包染色位在检测报文中的位置,可以为如图2示意的IFIT头信息的组成部分中FIH中的L标志位。丢包染色位的值可以为0或1或者其他数值,相同丢包染色位的检测报文,用于进行一个检测周期报文数量的统计。不同检测周期的检测报文中的丢包染色位可以不同,也可以相同。其中,丢包质量可以为丢包数量,和/或,丢包率。Among them, the packet loss dye bit is used to indicate the measurement of the packet loss parameters of the detection packet. For example, the position of the packet loss coloring bit in the detection message can be the L flag bit in the FIH in the component of the IFIT header information as shown in Figure 2. The value of the packet loss dye bit can be 0 or 1 or other values. Detection packets with the same packet loss dye bit are used to count the number of packets in a detection cycle. The packet loss dye bits in the detection packets of different detection periods can be different or the same. Among them, the packet loss quality can be the number of packets lost and/or the packet loss rate.

时延染色位用于指示测量该检测报文的时延参数。例如,时延染色位在检测报文中的位置,可以为如图2示意的IFIT头信息的组成部分中FIH中的D标志位。时延染色位的值可以为1或者其他数值,相同时延染色位的检测报文,用于进行一个检测周期时延的统计。不同检测周期的检测报文中的时延染色位可以不同,也可以相同。其中,时延质量可以为时延值,和/或,是否存在时延抖动。The delay dye bit is used to indicate the measurement delay parameter of the detection packet. For example, the position of the delay coloring bit in the detection message can be the D flag bit in the FIH in the component of the IFIT header information as shown in Figure 2. The value of the delay dye bit can be 1 or other values. Detection packets with the same delay dye bit are used to collect statistics on the delay of a detection cycle. The delay dye bits in the detection packets of different detection periods can be different or the same. The delay quality may be the delay value and/or whether there is delay jitter.

示例性的,该检测报文可以为一个检测周期内包括相同丢包染色位的多个检测报文,或者,该检测报文可以为包括时延染色位的检测报文。For example, the detection packet may be multiple detection packets including the same packet loss dye bit within a detection cycle, or the detection packet may be a detection packet including a delay dye bit.

一种可能的实现方式中,可以在一个检测周期内发送的多个检测报文中抽样的一个或多个检测报文携带时延染色位。In a possible implementation manner, one or more detection packets sampled from multiple detection packets sent within a detection cycle may carry delay coloring bits.

一种可能的实现方式中,若第一节点设备为被检测路径的端设备(第二节点设备或者第三节点设备),S601中第一节点设备接收上层配置的上述检测报文,或者第一节点设备生成上述检测报文。In a possible implementation, if the first node device is an end device of the detected path (second node device or third node device), in S601, the first node device receives the above detection message configured by the upper layer, or the first node device The node device generates the above detection message.

另一种可能的实现方式中,若第一节点设备为被检测路径的中间转发设备(除第二节点设备和第三节点设备之外的节点设备),S601中第一节点设备接收来自上一跳设备的检测报文。In another possible implementation, if the first node device is an intermediate forwarding device of the detected path (a node device other than the second node device and the third node device), in S601, the first node device receives the data from the previous node device. The detection packet of the hop device.

S602、第一节点设备根据检测报文中的特征标识,获取该检测报文在第一节点设备中的传输质量参数。S602. The first node device obtains the transmission quality parameter of the detection message in the first node device according to the characteristic identifier in the detection message.

可选的,检测报文在第一节点设备中的传输质量参数可以包括但不限于下述几种情况:Optionally, the transmission quality parameters of the detection packet in the first node device may include but are not limited to the following situations:

情况1、当上述特征标识包括丢包染色位,检测报文为多个,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口的该检测报文的数量、一个检测周期内离开第一节点设备的第二接口的该检测报文的数量、一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差。Case 1. When the above characteristic identifier includes a packet loss coloring bit and there are multiple detection packets, the transmission quality parameters of the detection packets in the first node device may include one or more of the following: Entering the first detection packet within a detection cycle The number of detection packets from the first interface of the node device, the number of detection packets leaving the second interface of the first node device within a detection cycle, the number of detection packets entering from the first interface of the first node device and leaving within a detection cycle The number of detection packets of the second interface of the first node device is different.

其中,第一接口为第一节点设备在被检测路径上的入接口、第二接口为被检测路径上的出接口。The first interface is the incoming interface of the first node device on the detected path, and the second interface is the outgoing interface on the detected path.

其中,一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差,也可以称为该检测周期中第一节点设备的丢包数。The difference in the number of detection packets entering the first interface of the first node device and the number of detection packets leaving the second interface of the first node device within a detection cycle may also be referred to as the number of packets lost by the first node device in the detection cycle.

情况2、当上述特征标识包括时延染色位时,检测报文为一个,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:该检测报文进入第一节点设备的时间戳、该检测报文离开第一节点设备的时间戳、该检测报文在第一节点设备内的时延。Case 2: When the above characteristic identifier includes a delay coloring bit, the detection message is one, and the transmission quality parameters of the detection message in the first node device may include one or more of the following: The detection message enters the first node device. The timestamp of the node device, the timestamp of the detection packet leaving the first node device, and the delay of the detection packet within the first node device.

情况3、当上述特征标识包括时延染色位时,检测报文为多个,检测报文在第一节点设备中的传输质量参数可以包括下述一项或多项:检测报文在第一节点设备内的时延。Case 3: When the above characteristic identifier includes a delay coloring bit and there are multiple detection packets, the transmission quality parameter of the detection packet in the first node device may include one or more of the following: Delay within the node device.

一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文在第一节点设备内的时延的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the average delay of the multiple detection packets in the first node device, or maximum value, or something else.

另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文中第一个检测报文进入第一节点设备的第一接口的时间,与最后一个检测报文离开第一节点设备的第二接口的时间差。In another possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the time delay of the first detection packet among the multiple detection packets entering the first node device. The time of the first interface is the difference between the time of the last detection packet leaving the second interface of the first node device.

情况4、当上述特征标识包括时延染色位,检测报文为多个,检测报文在第一节点设备中的传输质量参数可以包括两个检测报文在第一节点设备内的时延差。Case 4: When the above feature identifier includes a delay coloring bit and there are multiple detection packets, the transmission quality parameter of the detection packet in the first node device may include the delay difference of the two detection packets in the first node device. .

需要说明的是,检测报文在第一节点设备中的传输质量参数,可以为上述三种情况中任一种情况,或者多种情况的结合。It should be noted that the transmission quality parameter of the detection message in the first node device can be any one of the above three situations, or a combination of multiple situations.

下面通过具体示例描述第一节点设备根据丢包染色位,测量检测报文在第一节点设备中的丢包参数过程。The following uses a specific example to describe the process in which the first node device measures and detects the packet loss parameter of the packet in the first node device based on the packet loss dye bit.

将从第一节点设备的第一接口进入的检测报文数记为PI,将从第一节点设备的第二接口离开的报文数记为PE。The number of detection packets entering from the first interface of the first node device is recorded as PI, and the number of detection packets leaving the second interface of the first node device is recorded as PE.

在图7所示的报文传输场景中,t0时刻,第一节点设备的第一接口获取到本检测周期内第一个丢包染色位置1的检测报文,并启动计数器对丢包染色位为1的检测报文进行计数,同时启动定时器计量检测周期。In the packet transmission scenario shown in Figure 7, at time t0, the first interface of the first node device obtains the first detection packet with the packet loss coloring bit 1 in this detection cycle, and starts the counter to adjust the packet loss coloring bit. Count the detection packets with a value of 1, and start the timer metering detection cycle.

t1时刻,经过第一节点设备的时延,第一节点设备的第二接口接收到第一个丢包染色位为1的检测报文,并启动计数器对丢包染色位为1的检测报文进行计数,同时启动定时器计量检测周期。At time t1, after the delay of the first node device, the second interface of the first node device receives the first detection packet with a packet loss dye bit of 1, and starts a counter to detect the detection packet with a packet loss dye bit of 1. Count and start the timer metering detection cycle.

t2时刻:第一节点设备的第一接口对本检测周期内丢包染色位为1的检测报文计数结束(定时器超时),得到本检测周期内进入第一节点设备的第一接口的丢包染色位为1的检测报文的计数值PI。Time t2: The first interface of the first node device ends counting the detection packets with a packet loss dye bit of 1 in this detection cycle (the timer times out), and obtains the packet loss that entered the first interface of the first node device in this detection cycle. The count value PI of detection packets with a dye bit of 1.

t3时刻:第一节点设备的第二接口对本检测周期内丢包染色位为1的检测报文计数结束(定时器超时),得到本检测周期内离开第一节点设备的第二接口的丢包染色位为1的检测报文的计数值PE。Time t3: The second interface of the first node device ends counting the detection packets with a packet loss dye bit of 1 in this detection cycle (the timer times out), and obtains the packet loss of the second interface leaving the first node device in this detection cycle. The count value PE of the detection packets whose dye bit is 1.

从而可以得到本检测周期内丢包染色位为1的检测报文的丢包数量LostPacket=PI-PE。Thus, we can obtain the number of lost packets LostPacket=PI-PE in the detection packets whose packet loss dye bit is 1 in this detection cycle.

其中,第一节点设备内部的定时器在经过一个检测周期的时长之后,判断本检测周期接收丢包染色位为1的检测报文结束,可以有效避免报文乱序影响设备对检测报文的统计,确保每个检测周期内的统计得到的检测报文计数的准确性。Among them, the timer inside the first node device determines that after the duration of a detection cycle, the reception of detection packets with a packet loss dye bit of 1 in this detection cycle has ended, which can effectively prevent packet disorder from affecting the device's processing of detection packets. Statistics to ensure the accuracy of the detection packet count obtained by statistics within each detection cycle.

下面通过具体示例描述第一节点设备根据时延染色位,测量检测报文在第一节点设备中的时延质量过程。测量检测报文在第一节点设备中的时延质量是指记录检测报文的实际转发时间,从而计算得出检测报文在第一节点设备中的传输时延。The following uses a specific example to describe a process in which the first node device measures and detects the delay quality of the packet in the first node device based on the delay dye bit. Measuring the delay quality of the detection message in the first node device means recording the actual forwarding time of the detection message, thereby calculating the transmission delay of the detection message in the first node device.

结合图8所示的报文传输场景中,在第一方向,t1时刻,第一节点设备的第一接口接收到时延染色位置1的检测报文,第一节点设备获取时间戳t1,作为该检测报文进入第一节点设备的第一接口的时间戳。t2时刻,经过第一节点设备的转发,第一节点设备的第二接口接收到时延染色位为1的检测报文,第一节点设备获取时间戳t2,作为该检测报文离开第一节点设备的第二接口的时间戳。In the packet transmission scenario shown in Figure 8, in the first direction, at time t1, the first interface of the first node device receives the detection packet with delay coloring position 1, and the first node device obtains the timestamp t1, as The timestamp when the detection packet enters the first interface of the first node device. At time t2, after being forwarded by the first node device, the second interface of the first node device receives a detection packet with a delay color bit of 1, and the first node device obtains the timestamp t2 as the detection packet leaves the first node. The timestamp of the device's secondary interface.

在第二方向,t3时刻,第一节点设备的第三接口接收到时延染色位置1的检测报文,第一节点设备获取时间戳t3,作为该检测报文进入第一节点设备的第三接口时间戳。t4时刻,经过第一节点设备的转发,第一节点设备的第四接口接收到接收到时延染色位为1的检测报文,并获取时间戳t4,作为该检测报文离开第一节点设备的第四接口的时间戳。第三接口、第四接口为被检测路径上的接口。In the second direction, at time t3, the third interface of the first node device receives the detection packet with delay coloring position 1, and the first node device obtains the timestamp t3 as the third interface of the detection packet entering the first node device. Interface timestamp. At time t4, after being forwarded by the first node device, the fourth interface of the first node device receives the detection packet with a delay dye bit of 1, and obtains the timestamp t4 as the detection packet leaves the first node device. The timestamp of the fourth interface. The third interface and the fourth interface are interfaces on the detected path.

从而可以得到检测报文在第一节点设备中两个方向的单向时延分别为:1d(第一方向)=t2-t1,1d(第二方向)=t4-t3;双向时延为:2d=(t2-t1)+(t4-t3)=(t4-t1)-(t3-t2)。Therefore, it can be obtained that the one-way delay of the detection message in the first node device in the two directions is: 1d (first direction) = t2-t1, 1d (second direction) = t4-t3; the two-way delay is: 2d=(t2-t1)+(t4-t3)=(t4-t1)-(t3-t2).

进一步的,当检测报文为多个时,第一节点设备可以根据根据检测报文在第一节点设备中时延,获取两个检测报文在第一节点设备内的时延差,用于判断第一节点设备内是否发生时延抖动。Further, when there are multiple detection messages, the first node device can obtain the delay difference of the two detection messages in the first node device based on the delay of the detection message in the first node device, for Determine whether delay jitter occurs in the first node device.

需要说明的是,图7、图8示意的报文传输场景中,标注1的报文则为本申请描述的检测报文,检测报文可以与业务报文穿插传输,也可以连续传输,本申请实施例对此不予限定,也不在图7、图8中体现。It should be noted that in the packet transmission scenarios illustrated in Figures 7 and 8, the packets marked 1 are the detection packets described in this application. The detection packets can be interspersed with the service packets or can be transmitted continuously. The application embodiment does not limit this, nor is it reflected in Figures 7 and 8 .

S603、第一节点设备上报获取的检测报文在第一节点设备中的传输质量参数。S603. The first node device reports the transmission quality parameter of the obtained detection message in the first node device.

一种可能的实现方式中,第一节点设备所在的网络中配置了集中控制的处理设备,S603中第一节点设备向处理设备上报该传输质量参数,由处理设备根据该传输质量参数对被检测路径故障定位。In a possible implementation, a centralized control processing device is configured in the network where the first node device is located. In S603, the first node device reports the transmission quality parameters to the processing device, and the processing device performs the processing on the detected data based on the transmission quality parameters. Path fault location.

另一种可能的实现方式中,第一节点设备所在的网络中未配置集中控制设备,S603中第一节点设备本地存储该传输质量参数,由其他处理设备根据该传输质量参数对被检测路径故障定位。In another possible implementation, there is no centralized control device configured in the network where the first node device is located. In S603, the first node device locally stores the transmission quality parameters, and other processing devices respond to the detected path fault based on the transmission quality parameters. position.

例如,在图9示意的报文传输场景中,假设节点X到节点Y的路径为被检测路径,采用BFD机制检测节点X到节点Y的路径的传输质量。节点X与节点Y间互发携带IFIT标签的BFD检测报文,随路节点m、随路节点n识别BFD检测报文中的IFIT标签并统计传输质量参数,将传输质量参数上报分析器。For example, in the packet transmission scenario shown in Figure 9, assuming that the path from node X to node Y is the detected path, the BFD mechanism is used to detect the transmission quality of the path from node X to node Y. Node

S604、处理设备从第一节点设备获取检测报文在第一节点设备中的传输质量参数。S604. The processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device.

其中,该处理设备可以为第一节点设备所在网络中配置的集中控制设备,或者,该处理设备也可以为第三方应用的服务器或其他设备,本申请实施例对于处理设备的类型不予限定。The processing device may be a centralized control device configured in the network where the first node device is located, or the processing device may be a server or other device for a third-party application. The embodiment of the present application does not limit the type of the processing device.

一种可能的实现方式中,第一节点设备可以为多个,S604中处理设备从第一节点设备获取检测报文在第一节点设备中的传输质量参数,包括:处理设备从每个第一节点设备获取检测报文在第一节点设备中的传输质量参数。In a possible implementation, there may be multiple first node devices. In S604, the processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device, including: the processing device obtains the transmission quality parameter of the detection message from each first node device. The node device obtains the transmission quality parameter of the detection message in the first node device.

一种可能的实现方式中,处理设备可以接收第一节点设备上报的检测报文在第一节点设备中的传输质参数量。In a possible implementation manner, the processing device may receive the transmission quality parameter of the detection message in the first node device reported by the first node device.

另一种可能的实现方式中,处理设备可以调用与第一节点设备之间的接口,读取每个第一节点设备获取的检测报文在其内部的传输质量参数。可选的,处理设备可以在确定被检测路径故障时,执行S604。In another possible implementation, the processing device can call an interface with the first node device to read the internal transmission quality parameters of the detection packets obtained by each first node device. Optionally, the processing device may execute S604 when determining that the detected path is faulty.

需要说明的是,S604中获取的传输质量参数,即为第一节点设备执行前述S601至S603的过程获取的检测报文在第一节点设备中的传输质量参数,对于该传输质量参数的内容以及测量方式,均在前述内容中进行了详细描述,此处不再赘述。It should be noted that the transmission quality parameter obtained in S604 is the transmission quality parameter in the first node device of the detection message obtained by the first node device executing the aforementioned process of S601 to S603. For the content of the transmission quality parameter and The measurement methods are all described in detail in the foregoing content and will not be described again here.

示例性的,在图9示意的报文传输场景中,分析器作为处理设备,可以接收随路节点m、随路节点n上报的传输质量参数。For example, in the packet transmission scenario illustrated in Figure 9, the analyzer, as a processing device, can receive the transmission quality parameters reported by the associated node m and the associated node n.

S605、处理设备根据检测报文在第一节点设备中的传输质量参数,确定被检测路径的故障位置。S605. The processing device determines the fault location of the detected path based on the transmission quality parameter of the detection message in the first node device.

具体的,处理设备可以在确定被检测路径故障后,根据检测报文在第一节点设备中的传输质量参数,确定被检测路径的故障位置。Specifically, after determining that the detected path is faulty, the processing device may determine the fault location of the detected path based on the transmission quality parameter of the detection message in the first node device.

一种可能的实现方式中,S605中处理可以可以根据确定被检测路径故障之前的最后一个检测周期的检测报文在第一节点设备中的传输质量参数,确定被检测路径的故障位置。In a possible implementation, the processing in S605 may determine the fault location of the detected path based on the transmission quality parameter of the detection message in the first node device in the last detection cycle before the fault of the detected path is determined.

另一种可能的实现方式中,S605中处理可以可以根据确定被检测路径故障之后的第一个检测周期的检测报文在第一节点设备中的传输质量参数,确定被检测路径的故障位置。In another possible implementation, the processing in S605 may determine the fault location of the detected path based on the transmission quality parameter of the detection message in the first detection cycle after the fault of the detected path is determined in the first node device.

示例性的,当检测报文为BFD报文,处理设备可以在确定被检测路径状态为down时,根据检测报文在第一节点设备中的传输质量参数,确定被检测路径的故障位置。For example, when the detection packet is a BFD packet, the processing device may determine the fault location of the detected path based on the transmission quality parameter of the detection packet in the first node device when determining that the status of the detected path is down.

具体的,本申请描述的对被检测路径故障定位,具体可以包括但不限于下述两种实现方式:Specifically, the detection path fault location described in this application may include but is not limited to the following two implementation methods:

实现方式1、若传输报文在第一节点设备中的传输质量参数满足第一条件,则确定被检测路径中第一节点设备故障。Implementation manner 1: If the transmission quality parameter of the transmission message in the first node device meets the first condition, it is determined that the first node device in the detected path is faulty.

示例性的,第一条件可以包括下述一项或多项:一个检测周期内进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差大于或等于第一阈值、检测报文在第一节点设备内的时延大于或等于第二阈值、两个检测报文在第一节点设备内的时延差大于或等于第三阈值。Exemplarily, the first condition may include one or more of the following: the difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within a detection period is greater than or equal to The first threshold, the delay of the detection message in the first node device is greater than or equal to the second threshold, and the difference in delay of the two detection messages in the first node device is greater than or equal to the third threshold.

其中,进入第一节点设备的第一接口与离开第一节点设备的第二接口的检测报文的数量差,与丢包数为等价概念,可以相互替换。The difference in the number of detection packets entering the first interface of the first node device and the second interface leaving the first node device is an equivalent concept to the number of packet losses and can be replaced with each other.

一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文在第一节点设备内的时延的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the average delay of the multiple detection packets in the first node device, or maximum value, or something else.

另一种可能的实现方式中,当检测报文为多个时,检测报文在第一节点设备内的时延可以指多个检测报文中第一个检测报文进入第一节点设备的第一接口的时间,与最后一个检测报文离开第一节点设备的第二接口的时间差。In another possible implementation, when there are multiple detection packets, the delay of the detection packet in the first node device may refer to the time delay of the first detection packet among the multiple detection packets entering the first node device. The time of the first interface is the difference between the time of the last detection packet leaving the second interface of the first node device.

需要说明的是,对于第一阈值、第二阈值、第三阈值的取值,均可以根据实际需求配置,本申请实施例对此不予限定。It should be noted that the values of the first threshold, the second threshold, and the third threshold can all be configured according to actual needs, and are not limited in the embodiments of the present application.

示例性的,第一阈值可以为0,即存在丢包即确定为故障点。第二阈值可以为节点设备的硬件传输时延理论值。第三阈值可以为时延抖动的门限值。For example, the first threshold may be 0, that is, if there is packet loss, it is determined to be a fault point. The second threshold may be a theoretical value of hardware transmission delay of the node device. The third threshold may be a threshold value of delay jitter.

实现方式2、检测报文为一个,若检测报文在第一节点设备内的时延大于或等于第二阈值,则确定路径中该第一节点设备故障。Implementation Mode 2: There is one detection message. If the delay of the detection message in the first node device is greater than or equal to the second threshold, it is determined that the first node device in the path is faulty.

实现方式3、若检测报文在被检测路径上两个节点设备上的传输质量参数满足第二条件,则确定该两个节点设备间路径故障。Implementation method 3: If the transmission quality parameters of the detection message on the two node devices on the detected path meet the second condition, it is determined that the path between the two node devices is faulty.

示例性的,第二条件可以包括下述一项或多项:离开一个节点设备的第二接口的检测报文的数量,减去进入一个节点设备的下一跳节点设备的第一接口的检测报文的数量的差,大于或等于第四阈值;两个检测报文在两个节点设备间路径上的时延差大于或等于第五阈值。Exemplarily, the second condition may include one or more of the following: the number of detection packets leaving the second interface of one node device, minus the number of detection packets entering the first interface of the next-hop node device of one node device. The difference in the number of packets is greater than or equal to the fourth threshold; the difference in delay between the two detection packets on the path between the two node devices is greater than or equal to the fifth threshold.

其中,离开一个节点设备的第二接口的检测报文的数量,减去进入该一个节点设备的下一跳节点设备的第一接口的检测报文的数量的差,与丢包数为等价概念,可以相互替换。Among them, the difference between the number of detection packets leaving the second interface of a node device minus the number of detection packets entering the first interface of the next-hop node device of the node device is equivalent to the number of packet losses. Concepts can be interchanged.

需要说明的是,对于第四阈值、第五阈值的取值,均可以根据实际需求配置,本申请实施例对此不予限定。It should be noted that the values of the fourth threshold and the fifth threshold can be configured according to actual needs, and are not limited in this embodiment of the present application.

其中,两个节点设备间路径可以指相邻两个节点设备间的链路。The path between two node devices may refer to a link between two adjacent node devices.

示例性的,第四阈值可以为0,即存在丢包即确定为故障点。第五阈值可以为时延抖动的门限值。For example, the fourth threshold may be 0, that is, if there is packet loss, it is determined to be a fault point. The fifth threshold may be a threshold value of delay jitter.

实现方式3、若检测报文在被检测路径上两个节点设备中的传输质量参数满足第三条件,则该两个节点设备间的路径故障。Implementation method 3: If the transmission quality parameters of the detection packet in the two node devices on the detected path meet the third condition, then the path between the two node devices is faulty.

示例性的,第三条件可以包括检测报文离开一个节点设备的第二接口与进入该一个节点设备的下一跳节点设备第一接口的时间差,大于或等于第六阈值。For example, the third condition may include detecting that the time difference between the detection packet leaving the second interface of one node device and entering the first interface of the next hop node device of the one node device is greater than or equal to the sixth threshold.

需要说明的是,对于第六阈值的取值,可以根据实际需求配置,本申请实施例对此不予限定。It should be noted that the value of the sixth threshold can be configured according to actual needs, and is not limited in this embodiment of the present application.

示例性的,第六阈值可以为两个节点设备间路径的硬件传输时延理论值。For example, the sixth threshold may be the theoretical value of the hardware transmission delay of the path between the two node devices.

其中,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以理解为检测报文在一个节点设备到下一跳节点设备的时延。The time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device can be understood as the delay of the detection packet from one node device to the next-hop node device.

一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指每个检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差的平均值,或者最大值,或者其他。In a possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to each detection packet. The average, or maximum, or other time difference between a packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device.

另一种可能的实现方式中,当检测报文为多个时,检测报文离开一个节点设备的第二接口与进入一个节点设备的下一跳节点设备第一接口的时间差,可以指多个检测报文中第一个检测报文离开一个节点设备的第二接口的时间,与最后一个检测报文进入一个节点设备的下一跳节点设备第一接口的时间差。In another possible implementation, when there are multiple detection packets, the time difference between the detection packet leaving the second interface of a node device and entering the first interface of the next-hop node device of a node device may refer to multiple The time difference between the time when the first detection packet in the detection packet leaves the second interface of a node device and the time when the last detection packet enters the first interface of the next-hop node device of a node device.

示例性的,在图9示意的报文传输场景,分析器确定离开节点m的第二接口的检测报文数量,大于进入节点n的第一接口的检测报文数量,确定节点m到节点n之间存在丢包,则判断BFD故障方向为X--->Y,故障点位置为m与n之间的路径。For example, in the packet transmission scenario illustrated in Figure 9, the analyzer determines that the number of detection packets leaving the second interface of node m is greater than the number of detection packets entering the first interface of node n, and determines that the number of detection packets from node m to node n If there is packet loss between them, it is determined that the BFD fault direction is X--->Y, and the fault point location is the path between m and n.

上述主要从第一节点设备、处理设备的角度对本发明实施例提供的方案进行了介绍。可以理解的是,第一节点设备、处理设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块,称之为检测装置。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the first node device and the processing device. It can be understood that, in order to realize the above functions, the first node device, processing device, etc. include hardware structures and/or software modules corresponding to each function, which are called detection devices. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of the present invention.

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

在采用对应各个功能划分各个功能模块的情况下,图10示意了本申请实施例提供的一种检测装置100,用于实现上述实施例中第一节点设备的功能。该检测装置100可以是第一节点设备或者该检测装置100可以部署于第一节点设备。如图10所示,检测装置100可以包括:第一获取单元1001、第二获取单元1002。第一获取单元1001用于执行图6中的过程S601;第二获取单元1002用于执行图6中的过程S602。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case where each functional module is divided corresponding to each function, FIG. 10 illustrates a detection device 100 provided by an embodiment of the present application, which is used to implement the function of the first node device in the above embodiment. The detection device 100 may be a first node device or the detection device 100 may be deployed on the first node device. As shown in Figure 10, the detection device 100 may include: a first acquisition unit 1001 and a second acquisition unit 1002. The first obtaining unit 1001 is used to perform the process S601 in Figure 6; the second obtaining unit 1002 is used to perform the process S602 in Figure 6. All relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here.

进一步的,如图11所示,检测装置100还可以包括:上报单元1003。其中,上报单元1003用于执行图6中的过程S603。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Further, as shown in Figure 11, the detection device 100 may also include: a reporting unit 1003. The reporting unit 1003 is used to execute process S603 in Figure 6 . All relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here.

在采用集成的单元的情况下,如图12所示为本申请实施例提供的第一节点设备120,用于实现上述方法中第一节点设备的功能。第一节点设备120包括至少一个处理模块1201。示例性地,处理模块1201可以用于执行图6中的过程S601至S603,具体参见方法示例中的详细描述,此处不做赘述。In the case of using an integrated unit, as shown in Figure 12, the first node device 120 provided by the embodiment of the present application is used to implement the functions of the first node device in the above method. The first node device 120 includes at least one processing module 1201. For example, the processing module 1201 may be used to perform processes S601 to S603 in Figure 6. For details, please refer to the detailed description in the method example, which will not be described again here.

第一节点设备120还可以包括至少一个存储模块1202,用于存储程序指令和/或数据。存储模块1202和处理模块1201耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理模块1201可能和存储模块1202协同操作。处理模块1201可以执行存储模块1202中存储的程序指令。所述至少一个存储模块中的至少一个可以包括于处理模块中。The first node device 120 may also include at least one storage module 1202 for storing program instructions and/or data. The storage module 1202 and the processing module 1201 are coupled. The coupling in the embodiment of this application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules. The processing module 1201 may cooperate with the storage module 1202. The processing module 1201 can execute program instructions stored in the storage module 1202. At least one of the at least one memory module may be included in a processing module.

第一节点设备120还可以包括通信模块1203,用于通过传输介质和其它设备进行通信,从而用于确定第一节点设备120可以和其它设备进行通信。所述通信模块1203用于该设备与其它设备进行通信。The first node device 120 may also include a communication module 1203, configured to communicate with other devices through a transmission medium, thereby determining that the first node device 120 can communicate with other devices. The communication module 1203 is used for the device to communicate with other devices.

当处理模块1201为处理器,存储模块1202为存储器,通信模块1203为收发器时,本申请所涉及的第一节点设备120可以为图5所示的网络设备50。When the processing module 1201 is a processor, the storage module 1202 is a memory, and the communication module 1203 is a transceiver, the first node device 120 involved in this application may be the network device 50 shown in FIG. 5 .

如前述,本申请实施例提供的检测装置100或第一节点设备120可以用于实施上述本申请各实施例实现的方法中第一节点设备的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the detection device 100 or the first node device 120 provided by the embodiments of the present application can be used to implement the functions of the first node device in the methods implemented by the various embodiments of the present application. For convenience of explanation, only the functions related to the first node device of the present application are shown. For the parts related to the embodiments, if the specific technical details are not disclosed, please refer to the embodiments of this application.

在采用对应各个功能划分各个功能模块的情况下,图13示意了本申请实施例提供的一种检测装置130,用于实现上述实施例中处理设备的功能。该检测装置130可以是处理设备或者该检测装置130可以部署于处理设备。如图13所示,检测装置130可以包括:获取单元1301、确定单元1302。获取单元1301用于执行图6中的过程S604;确定单元1302用于执行图6中的过程S605。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case where each functional module is divided corresponding to each function, FIG. 13 illustrates a detection device 130 provided by the embodiment of the present application, which is used to implement the functions of the processing device in the above embodiment. The detection device 130 may be a processing device or the detection device 130 may be deployed in the processing device. As shown in Figure 13, the detection device 130 may include: an acquisition unit 1301 and a determination unit 1302. The obtaining unit 1301 is used to perform the process S604 in Figure 6; the determining unit 1302 is used to perform the process S605 in Figure 6. All relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here.

在采用集成的单元的情况下,如图14所示为本申请实施例提供的处理设备140,用于实现上述实施例中处理设备的功能。该处理设备140可以包括至少一个处理模块1401,用于实现本申请实施例中处理网络设备的功能,例如处理模块1401可以执行图6中的过程S604、S605,具体参见方法示例中的详细描述,此处不做赘述。In the case of using an integrated unit, as shown in FIG. 14 , a processing device 140 provided by an embodiment of the present application is used to implement the functions of the processing device in the above embodiment. The processing device 140 may include at least one processing module 1401, which is used to implement the function of processing the network device in the embodiment of the present application. For example, the processing module 1401 may execute processes S604 and S605 in Figure 6. For details, please refer to the detailed description in the method example. No further details will be given here.

处理设备140还可以包括至少一个存储模块1402,用于存储程序指令和/或数据。存储模块1402和处理模块1401耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理模块1401可能和存储模块1402协同操作。处理模块1401可能执行存储模块1402中存储的程序指令。所述至少一个存储模块中的至少一个可以包括于处理模块中。The processing device 140 may also include at least one storage module 1402 for storing program instructions and/or data. The storage module 1402 and the processing module 1401 are coupled. The coupling in the embodiment of this application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules. The processing module 1401 may cooperate with the storage module 1402. The processing module 1401 may execute program instructions stored in the storage module 1402. At least one of the at least one memory module may be included in a processing module.

处理设备140还可以包括通信模块1403,用于通过传输介质和其它设备进行通信,从而用于确定处理设备140可以和其它设备进行通信。所述通信模块1403用于该设备与其它设备进行通信。The processing device 140 may also include a communication module 1403 for communicating with other devices through a transmission medium, thereby determining that the processing device 140 can communicate with other devices. The communication module 1403 is used for the device to communicate with other devices.

当处理模块1401为处理器,存储模块1402为存储器,通信模块1403为收发器时,本申请实施例所涉及的处理设备140可以为图5所示的网络设备50。When the processing module 1401 is a processor, the storage module 1402 is a memory, and the communication module 1403 is a transceiver, the processing device 140 involved in the embodiment of this application may be the network device 50 shown in FIG. 5 .

如前述,本申请实施例提供的检测装置130或处理设备140可以用于实施上述本申请上述实施例中处理设备的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the detection device 130 or the processing device 140 provided by the embodiments of the present application can be used to implement the functions of the processing devices in the above embodiments of the present application. For convenience of explanation, only the parts related to the embodiments of the present application are shown. Specifically, If the technical details are not disclosed, please refer to the embodiments of this application.

本申请实施例还提供一种检测系统,包括上述第一节点设备120以及处理设备140。This embodiment of the present application also provides a detection system, including the above-mentioned first node device 120 and processing device 140.

作为本实施例的另一种形式,提供一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的检测方法。As another form of this embodiment, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed, the detection method in the above method embodiment is performed.

作为本实施例的另一种形式,提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行时执行上述方法实施例中的检测方法。As another form of this embodiment, a computer program product containing instructions is provided. When the computer program product is run on a computer, the computer performs the detection method in the above method embodiment when executed.

本申请实施例再提供一种芯片系统,该芯片系统包括处理器,用于实现本发明实施例的技术方法。在一种可能的设计中,该芯片系统还包括存储器,用于保存本发明实施例必要的程序指令和/或数据。在一种可能的设计中,该芯片系统还包括存储器,用于处理器调用存储器中存储的应用程序代码。该芯片系统,可以由一个或多个芯片构成,也可以包含芯片和其他分立器件,本申请实施例对此不作具体限定。An embodiment of the present application further provides a chip system, which includes a processor and is used to implement the technical method of the embodiment of the present invention. In a possible design, the chip system also includes a memory for storing necessary program instructions and/or data for embodiments of the present invention. In a possible design, the chip system further includes a memory for the processor to call the application code stored in the memory. The chip system may be composed of one or more chips, or may include chips and other discrete devices, which is not specifically limited in the embodiments of the present application.

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

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

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

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

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

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (30)

1.一种检测方法,其特征在于,应用于第一节点设备,所述第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;所述方法包括:1. A detection method, characterized in that it is applied to a first node device, and the first node device is a node device on the path between the second node device and the third node device; the method includes: 获取包括特征标识的检测报文,所述特征标识用于指示测量所述检测报文的传输质量;所述检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;所述检测报文与业务报文不同;所述特征标识包括丢包染色位,和/或,时延染色位;Obtaining a detection message including a feature identifier, the feature identifier is used to indicate measuring the transmission quality of the detection message; the detection message is used to detect the transmission quality of the path between the second node device and the third node device; so The detection packet is different from the service packet; the characteristic identifier includes a packet loss dyeing bit and/or a delay dyeing bit; 根据所述特征标识,获取所述检测报文在所述第一节点设备中的传输质量参数。According to the characteristic identifier, the transmission quality parameter of the detection message in the first node device is obtained. 2.根据权利要求1所述的方法,其特征在于,所述检测报文为多个,所述传输质量参数包括:2. The method according to claim 1, characterized in that there are multiple detection messages, and the transmission quality parameters include: 一个检测周期内进入所述第一节点设备的第一接口的所述检测报文的数量、一个检测周期内离开所述第一节点设备的第二接口的所述检测报文的数量;The number of detection packets that enter the first interface of the first node device within one detection cycle, and the number of detection packets that leave the second interface of the first node device within one detection cycle; 或者,or, 一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差;The difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within one detection cycle; 或者,or, 两个所述检测报文在所述第一节点设备内的时延差;The delay difference between the two detection messages in the first node device; 其中,所述第一接口、所述第二接口为所述路径上的接口。Wherein, the first interface and the second interface are interfaces on the path. 3.根据权利要求1所述的方法,其特征在于,所述传输质量参数包括:3. The method according to claim 1, characterized in that the transmission quality parameters include: 所述检测报文进入所述第一节点设备的时间戳、所述检测报文离开所述第一节点设备的时间戳;The timestamp when the detection message enters the first node device, and the timestamp when the detection message leaves the first node device; 和/或,and / or, 所述检测报文在所述第一节点设备内的时延。The delay of the detection message in the first node device. 4.根据权利要求1-3任一项所述的方法,其特征在于,所述特征标识位于所述检测报文的报文头。4. The method according to any one of claims 1-3, characterized in that the feature identifier is located in the header of the detection message. 5.根据权利要求1-3任一项所述的方法,其特征在于,所述检测报文为双向路径检测BFD报文。5. The method according to any one of claims 1-3, characterized in that the detection message is a bidirectional path detection BFD message. 6.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-3, characterized in that the method further includes: 向处理设备上报所述传输质量参数;Report the transmission quality parameters to the processing device; 或者,or, 本地存储所述传输质量参数。The transmission quality parameters are stored locally. 7.一种检测方法,其特征在于,所述方法包括:7. A detection method, characterized in that the method includes: 处理设备从第一节点设备获取检测报文在所述第一节点设备中的传输质量参数;所述检测报文包括特征标识;所述特征标识用于指示测量所述检测报文的传输质量;所述检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;所述第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;所述检测报文与业务报文不同;所述特征标识包括丢包染色位,和/或,时延染色位;The processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device; the detection message includes a feature identifier; the feature identifier is used to indicate measuring the transmission quality of the detection message; The detection message is used to detect the transmission quality of the path between the second node device and the third node device; the first node device is a node device on the path between the second node device and the third node device; the detection Messages are different from service messages; the characteristic identifier includes packet loss dyeing bits and/or delay dyeing bits; 所述处理设备根据所述传输质量参数,确定所述路径的故障位置。The processing device determines the fault location of the path based on the transmission quality parameter. 8.根据权利要求7所述的方法,其特征在于,所述第一节点设备为多个,所述处理设备从第一节点设备获取检测报文在所述第一节点设备中的传输质量参数,包括:8. The method according to claim 7, characterized in that there are multiple first node devices, and the processing device obtains the transmission quality parameter of the detection message in the first node device from the first node device. ,include: 所述处理设备从每个所述第一节点设备获取所述检测报文在所述第一节点设备中的传输质量参数。The processing device obtains the transmission quality parameter of the detection message in the first node device from each of the first node devices. 9.根据权利要求7或8所述的方法,其特征在于,所述检测报文为多个,所述传输质量参数包括:9. The method according to claim 7 or 8, characterized in that there are multiple detection messages, and the transmission quality parameters include: 一个检测周期内进入所述第一节点设备的第一接口的所述检测报文的数量、一个检测周期内离开所述第一节点设备的第二接口的所述检测报文的数量;The number of detection packets that enter the first interface of the first node device within one detection cycle, and the number of detection packets that leave the second interface of the first node device within one detection cycle; 或者,or, 一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差;The difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within one detection cycle; 或者,or, 两个所述检测报文在所述第一节点设备内的时延差;The delay difference between the two detection messages in the first node device; 其中,所述第一接口、所述第二接口为所述路径上的接口。Wherein, the first interface and the second interface are interfaces on the path. 10.根据权利要求7或8所述的方法,其特征在于,所述传输质量参数包括:10. The method according to claim 7 or 8, characterized in that the transmission quality parameters include: 所述检测报文进入所述第一节点设备的时间戳、所述检测报文离开所述第一节点设备的时间戳;The timestamp when the detection message enters the first node device, and the timestamp when the detection message leaves the first node device; 和/或,and / or, 所述检测报文在所述第一节点设备内的时延。The delay of the detection message in the first node device. 11.根据权利要求9所述的方法,其特征在于,所述处理设备根据所述传输质量参数,确定所述路径的故障位置,包括:11. The method according to claim 9, characterized in that the processing device determines the fault location of the path according to the transmission quality parameter, including: 若所述传输质量参数满足第一条件,则确定所述路径中所述第一节点设备故障;If the transmission quality parameter meets the first condition, it is determined that the first node device in the path is faulty; 其中,所述第一条件包括下述一项或多项:一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差大于或等于第一阈值、所述检测报文在所述第一节点设备内的时延大于或等于第二阈值、两个所述检测报文在所述第一节点设备内的时延差大于或等于第三阈值;Wherein, the first condition includes one or more of the following: a difference between the detection packet entering the first interface of the first node device and the detection packet leaving the second interface of the first node device within a detection cycle. The quantity difference is greater than or equal to the first threshold, the delay of the detection message in the first node device is greater than or equal to the second threshold, the delay of the two detection messages in the first node device The difference is greater than or equal to the third threshold; 所述第一接口、所述第二接口为所述路径上的接口。The first interface and the second interface are interfaces on the path. 12.根据权利要求9所述的方法,其特征在于,所述处理设备根据所述传输质量参数,确定所述路径的故障位置,包括:12. The method according to claim 9, characterized in that the processing device determines the fault location of the path according to the transmission quality parameter, including: 若所述检测报文在所述路径上两个节点设备中的传输质量参数满足第二条件,则所述两个节点设备间的路径故障;If the transmission quality parameters of the detection message in the two node devices on the path meet the second condition, then the path between the two node devices is faulty; 其中,所述第二条件包括下述一项或多项:离开一个节点设备的第二接口的所述检测报文的数量,减去进入所述一个节点设备的下一跳节点设备的第一接口的所述检测报文的数量的差,大于或等于第四阈值;两个所述检测报文在所述两个节点设备间路径上的时延差大于或等于第五阈值;Wherein, the second condition includes one or more of the following: the number of detection packets leaving the second interface of a node device, minus the first number of detection packets entering the next hop node device of the one node device. The difference in the number of detection packets on the interface is greater than or equal to the fourth threshold; the difference in delay between the two detection packets on the path between the two node devices is greater than or equal to the fifth threshold; 所述第一接口、所述第二接口为所述路径上的接口。The first interface and the second interface are interfaces on the path. 13.根据权利要求7或8所述的方法,其特征在于,所述处理设备根据所述传输质量参数,确定所述路径的故障位置,包括:13. The method according to claim 7 or 8, characterized in that the processing device determines the fault location of the path according to the transmission quality parameter, including: 若所述检测报文在所述路径上两个节点设备中的传输质量参数满足第三条件,则所述两个节点设备间的路径故障;If the transmission quality parameters of the detection message in the two node devices on the path meet the third condition, then the path between the two node devices is faulty; 其中,所述第三条件包括所述检测报文离开一个节点设备的第二接口与进入所述一个节点设备的下一跳节点设备第一接口的时间差,大于或等于第六阈值。The third condition includes that the time difference between the detection packet leaving the second interface of one node device and entering the first interface of the next-hop node device of the one node device is greater than or equal to the sixth threshold. 14.根据权利要求7或8或11或12所述的方法,其特征在于,所述特征标识位于所述检测报文的报文头。14. The method according to claim 7 or 8 or 11 or 12, characterized in that the characteristic identifier is located in the header of the detection message. 15.一种检测装置,其特征在于,部署于第一节点设备,所述第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;所述装置包括:15. A detection device, characterized in that it is deployed on a first node device, and the first node device is a node device on the path between the second node device and the third node device; the device includes: 获取单元,用于获取包括特征标识的检测报文,所述特征标识用于指示测量所述检测报文的传输质量;所述检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;所述检测报文与业务报文不同;所述特征标识包括丢包染色位,和/或,时延染色位;An acquisition unit, configured to acquire a detection message including a feature identifier, the feature identifier being used to indicate measuring the transmission quality of the detection message; the detection message being used to detect a path between the second node device and the third node device The transmission quality; the detection packet is different from the service packet; the characteristic identifier includes a packet loss dyeing bit and/or a delay dyeing bit; 测量单元,用于根据所述特征标识,获取所述检测报文在所述第一节点设备中的传输质量参数。A measuring unit, configured to obtain transmission quality parameters of the detection message in the first node device according to the characteristic identifier. 16.根据权利要求15所述的装置,其特征在于,所述检测报文为多个,所述传输质量参数包括:16. The device according to claim 15, characterized in that there are multiple detection messages, and the transmission quality parameters include: 一个检测周期内进入所述第一节点设备的第一接口的所述检测报文的数量、一个检测周期内离开所述第一节点设备的第二接口的所述检测报文的数量;The number of detection packets that enter the first interface of the first node device within one detection cycle, and the number of detection packets that leave the second interface of the first node device within one detection cycle; 或者,or, 一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差;The difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within one detection cycle; 或者,or, 两个所述检测报文在所述第一节点设备内的时延差;The delay difference between the two detection messages in the first node device; 其中,所述第一接口、所述第二接口为所述路径上的接口。Wherein, the first interface and the second interface are interfaces on the path. 17.根据权利要求15所述的装置,其特征在于,所述传输质量参数包括:17. The device according to claim 15, characterized in that the transmission quality parameters include: 所述检测报文进入所述第一节点设备的时间戳、所述检测报文离开所述第一节点设备的时间戳;The timestamp when the detection message enters the first node device, and the timestamp when the detection message leaves the first node device; 和/或,and / or, 所述检测报文在所述第一节点设备内的时延。The delay of the detection message in the first node device. 18.根据权利要求15-17任一项所述的装置,其特征在于,所述特征标识位于所述检测报文的报文头。18. The device according to any one of claims 15 to 17, characterized in that the characteristic identifier is located in the header of the detection message. 19.根据权利要求15-17任一项所述的装置,其特征在于,所述检测报文为双向路径检测BFD报文。19. The device according to any one of claims 15 to 17, characterized in that the detection message is a bidirectional path detection BFD message. 20.根据权利要求15-17任一项所述的装置,其特征在于,所述装置还包括上报单元,用于:20. The device according to any one of claims 15-17, characterized in that the device further includes a reporting unit for: 向处理设备上报所述传输质量参数;Report the transmission quality parameters to the processing device; 或者,or, 本地存储所述传输质量参数。The transmission quality parameters are stored locally. 21.一种检测装置,其特征在于,所述装置包括:21. A detection device, characterized in that the device includes: 获取单元,用于从第一节点设备获取检测报文在所述第一节点设备中的传输质量参数;所述检测报文包括特征标识;所述特征标识用于指示测量所述检测报文的传输质量;所述检测报文用于检测第二节点设备到第三节点设备间路径的传输质量;所述第一节点设备为第二节点设备到第三节点设备间路径上的一个节点设备;所述检测报文与业务报文不同;所述特征标识包括丢包染色位,和/或,时延染色位;An acquisition unit, configured to acquire the transmission quality parameter of the detection message in the first node device from the first node device; the detection message includes a feature identifier; the feature identifier is used to indicate measuring the detection message Transmission quality; the detection message is used to detect the transmission quality of the path between the second node device and the third node device; the first node device is a node device on the path between the second node device and the third node device; The detection packet is different from the service packet; the characteristic identifier includes a packet loss dyeing bit and/or a delay dyeing bit; 确定单元,用于根据所述传输质量参数,确定所述路径的故障位置。A determining unit, configured to determine the fault location of the path according to the transmission quality parameter. 22.根据权利要求21所述的装置,其特征在于,所述第一节点设备为多个,所述获取单元具体用于:22. The device according to claim 21, characterized in that there are multiple first node devices, and the acquisition unit is specifically configured to: 从每个所述第一节点设备获取所述检测报文在所述第一节点设备中的传输质量参数。Obtain the transmission quality parameter of the detection message in the first node device from each of the first node devices. 23.根据权利要求21或22所述的装置,其特征在于,所述检测报文为多个,所述传输质量参数包括:23. The device according to claim 21 or 22, characterized in that there are multiple detection messages, and the transmission quality parameters include: 一个检测周期内进入所述第一节点设备的第一接口的所述检测报文的数量、一个检测周期内离开所述第一节点设备的第二接口的所述检测报文的数量;The number of detection packets that enter the first interface of the first node device within one detection cycle, and the number of detection packets that leave the second interface of the first node device within one detection cycle; 或者,or, 一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差;The difference in the number of detection packets entering the first interface of the first node device and leaving the second interface of the first node device within one detection cycle; 或者,or, 两个所述检测报文在所述第一节点设备内的时延差;The delay difference between the two detection messages in the first node device; 其中,所述第一接口、所述第二接口为所述路径上的接口。Wherein, the first interface and the second interface are interfaces on the path. 24.根据权利要求21或22所述的装置,其特征在于,所述传输质量参数包括:24. The device according to claim 21 or 22, characterized in that the transmission quality parameters include: 所述检测报文进入所述第一节点设备的时间戳、所述检测报文离开所述第一节点设备的时间戳;The timestamp when the detection message enters the first node device, and the timestamp when the detection message leaves the first node device; 和/或,and / or, 所述检测报文在所述第一节点设备内的时延。The delay of the detection message in the first node device. 25.根据权利要求23所述的装置,其特征在于,所述确定单元具体用于:25. The device according to claim 23, wherein the determining unit is specifically configured to: 若所述传输质量参数满足第一条件,则确定所述路径中所述第一节点设备故障;If the transmission quality parameter meets the first condition, it is determined that the first node device in the path is faulty; 其中,所述第一条件包括下述一项或多项:一个检测周期内进入所述第一节点设备的第一接口与离开所述第一节点设备的第二接口的所述检测报文的数量差大于或等于第一阈值、所述检测报文在所述第一节点设备内的时延大于或等于第二阈值、两个所述检测报文在所述第一节点设备内的时延差大于或等于第三阈值;Wherein, the first condition includes one or more of the following: a difference between the detection packet entering the first interface of the first node device and the detection packet leaving the second interface of the first node device within a detection cycle. The quantity difference is greater than or equal to the first threshold, the delay of the detection message in the first node device is greater than or equal to the second threshold, the delay of the two detection messages in the first node device The difference is greater than or equal to the third threshold; 所述第一接口、所述第二接口为所述路径上的接口。The first interface and the second interface are interfaces on the path. 26.根据权利要求23所述的装置,其特征在于,所述确定单元具体用于:26. The device according to claim 23, characterized in that the determining unit is specifically configured to: 若所述检测报文在所述路径上两个节点设备中的传输质量参数满足第二条件,则所述两个节点设备间的路径故障;If the transmission quality parameters of the detection message in the two node devices on the path meet the second condition, then the path between the two node devices is faulty; 其中,所述第二条件包括下述一项或多项:离开一个节点设备的第二接口的所述检测报文的数量,减去进入所述一个节点设备的下一跳节点设备的第一接口的所述检测报文的数量的差,大于或等于第四阈值;两个所述检测报文在所述两个节点设备间路径上的时延差大于或等于第五阈值;Wherein, the second condition includes one or more of the following: the number of detection packets leaving the second interface of a node device, minus the first number of detection packets entering the next hop node device of the one node device. The difference in the number of detection packets on the interface is greater than or equal to the fourth threshold; the difference in delay between the two detection packets on the path between the two node devices is greater than or equal to the fifth threshold; 所述第一接口、所述第二接口为所述路径上的接口。The first interface and the second interface are interfaces on the path. 27.根据权利要求21或22所述的装置,其特征在于,所述确定单元具体用于:27. The device according to claim 21 or 22, characterized in that the determining unit is specifically used to: 若所述检测报文在所述路径上两个节点设备中的传输质量参数满足第三条件,则所述两个节点设备间的路径故障;If the transmission quality parameters of the detection message in the two node devices on the path meet the third condition, then the path between the two node devices is faulty; 其中,所述第三条件包括所述检测报文离开一个节点设备的第二接口与进入所述一个节点设备的下一跳节点设备第一接口的时间差,大于或等于第六阈值。The third condition includes that the time difference between the detection packet leaving the second interface of one node device and entering the first interface of the next-hop node device of the one node device is greater than or equal to the sixth threshold. 28.根据权利要求21或22或25或26所述的装置,其特征在于,所述特征标识位于所述检测报文的报文头。28. The device according to claim 21 or 22 or 25 or 26, characterized in that the characteristic identifier is located in the header of the detection message. 29.一种网络设备,其特征在于,所述网络设备包括:处理器和存储器;29. A network device, characterized in that the network device includes: a processor and a memory; 所述存储器与所述处理器连接;所述存储器用于存储计算机指令,当所述处理器执行所述计算机指令时,使得所述网络设备执行如权利要求1-14中任一项所述的检测方法。The memory is connected to the processor; the memory is used to store computer instructions. When the processor executes the computer instructions, the network device executes the method described in any one of claims 1-14. Detection method. 30.一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行权利要求1-14中任一项所述的检测方法。30. A computer-readable storage medium, characterized by comprising instructions that, when run on a computer, cause the computer to execute the detection method according to any one of claims 1-14.
CN202011641244.XA 2020-12-31 2020-12-31 A detection method and device Active CN114697202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011641244.XA CN114697202B (en) 2020-12-31 2020-12-31 A detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011641244.XA CN114697202B (en) 2020-12-31 2020-12-31 A detection method and device

Publications (2)

Publication Number Publication Date
CN114697202A CN114697202A (en) 2022-07-01
CN114697202B true CN114697202B (en) 2023-09-29

Family

ID=82135952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011641244.XA Active CN114697202B (en) 2020-12-31 2020-12-31 A detection method and device

Country Status (1)

Country Link
CN (1) CN114697202B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760765A (en) * 2023-08-10 2023-09-15 新华三技术有限公司 Network state detection method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808021A (en) * 2010-04-16 2010-08-18 华为技术有限公司 Fault detection method, device and system, message statistical method and node equipment
CN105591835A (en) * 2015-08-12 2016-05-18 杭州华三通信技术有限公司 Link quality detection method and device
CN105791027A (en) * 2016-04-25 2016-07-20 北京威努特技术有限公司 Detection method of industrial network abnormal interruption
CN108259208A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of method and apparatus of detection messages dyeing bit swiping
CN110120878A (en) * 2018-02-05 2019-08-13 华为技术有限公司 Method and apparatus for obtaining link quality
WO2020119564A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Method and apparatus for measuring quality of service information
CN111416751A (en) * 2019-01-07 2020-07-14 中国移动通信有限公司研究院 Method and device for calculating port forwarding time delay

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1058446A3 (en) * 1999-06-03 2003-07-09 Lucent Technologies Inc. Key segment spotting in voice messages

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808021A (en) * 2010-04-16 2010-08-18 华为技术有限公司 Fault detection method, device and system, message statistical method and node equipment
CN105591835A (en) * 2015-08-12 2016-05-18 杭州华三通信技术有限公司 Link quality detection method and device
CN105791027A (en) * 2016-04-25 2016-07-20 北京威努特技术有限公司 Detection method of industrial network abnormal interruption
CN108259208A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of method and apparatus of detection messages dyeing bit swiping
CN110120878A (en) * 2018-02-05 2019-08-13 华为技术有限公司 Method and apparatus for obtaining link quality
WO2020119564A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Method and apparatus for measuring quality of service information
CN111416751A (en) * 2019-01-07 2020-07-14 中国移动通信有限公司研究院 Method and device for calculating port forwarding time delay

Also Published As

Publication number Publication date
CN114697202A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
JP5462954B2 (en) Packet loss detection method and apparatus, and router
CN113206789B (en) Path detection method, device and computer storage medium
US7733794B2 (en) Performance monitoring of frame transmission in data network OAM protocols
EP2903214B1 (en) Measuring method, device and system for network packet loss
WO2016184245A1 (en) Tunnel packet loss detecting method, apparatus and network communication device
CN106936661B (en) Network monitoring method, device and system
US20130336146A1 (en) Method and apparatus for providing availability metrics for measurement and management of ethernet services
US20040218542A1 (en) Ethernet path verification
WO2022062931A1 (en) Network anomaly determination method and apparatus
CN106411625A (en) Link message packet loss measurement method and system, target node and initiator node
US20230318970A1 (en) Packet Processing Method and Apparatus
CN112769631B (en) Method for measuring data transmission quality, forwarding device and readable storage medium
US12388745B2 (en) Method and apparatus for performing protection switching in segment routing SR network
CN104580002B (en) The big balanced retransmission method of current load and device
CN114697202B (en) A detection method and device
EP3913862B1 (en) Traffic detection method, apparatus, and system
CN106161124B (en) Message test processing method and device
EP4203423A1 (en) Method for selecting packet transmission path, and device and medium
CN109981414B (en) method for acquiring packet loss number between mpls network nodes
Ramadža et al. Network performance monitoring within MPLS traffic engineering enabled networks
WO2024045605A1 (en) Transmission detection method, apparatus and system
CN119892695A (en) Time delay measurement method, time delay measurement device, forwarding node and storage medium
CN119449663A (en) Communication method and device
EP4612891A1 (en) Round-trip packet loss measurement in a packet-switched communication network

Legal Events

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