Movatterモバイル変換


[0]ホーム

URL:


CN108259208A - A kind of method and apparatus of detection messages dyeing bit swiping - Google Patents

A kind of method and apparatus of detection messages dyeing bit swiping
Download PDF

Info

Publication number
CN108259208A
CN108259208ACN201611255590.8ACN201611255590ACN108259208ACN 108259208 ACN108259208 ACN 108259208ACN 201611255590 ACN201611255590 ACN 201611255590ACN 108259208 ACN108259208 ACN 108259208A
Authority
CN
China
Prior art keywords
dyeing
node
message
detection data
ingress node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611255590.8A
Other languages
Chinese (zh)
Other versions
CN108259208B (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.)
XFusion Digital 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 LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201611255590.8ApriorityCriticalpatent/CN108259208B/en
Publication of CN108259208ApublicationCriticalpatent/CN108259208A/en
Application grantedgrantedCritical
Publication of CN108259208BpublicationCriticalpatent/CN108259208B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请涉及通信领域,尤其涉及一种报文流性能检测的方法,该方法包括从所述报文中选择待检测的染色位,然后检测所述报文的所述染色位是否与所述报文的其它业务存在冲突。当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的配置信息下发到入口节点和出口节点。从所述入口节点接收第一统计数据,并从所述出口节点接收第二统计数据。然后根据所述第一统计数据和所述第二统计数据获得报文流性能检测数据。通过上述方案,在报文流性能检测前对染色位进行检测,判断染色位是否与该报文的其它业务发生冲突,不仅可以提高报文流性能检测的准确性,还避免与该报文的其它业务发生冲突,影响报文的其它业务。

The present application relates to the field of communications, and in particular to a method for detecting message flow performance, the method comprising selecting a coloring bit to be detected from the message, and then detecting whether the coloring bit of the message is consistent with the message Wen's other business conflicts. When there is no conflict between the colored bits and other services of the message, the configuration information of the colored bits is delivered to the ingress node and the egress node. First statistical data is received from the ingress node, and second statistical data is received from the egress node. Then obtain packet flow performance detection data according to the first statistical data and the second statistical data. Through the above solution, the dyed bit is detected before the packet flow performance detection, and it is judged whether the dyed bit conflicts with other services of the packet, which can not only improve the accuracy of the packet flow performance detection, but also avoid the Conflicts occur in other services, affecting other services of the packet.

Description

Translated fromChinese
一种检测报文染色位冲突的方法和设备A method and device for detecting message coloring bit conflicts

技术领域technical field

本发明涉及通信领域,尤其涉及一种检测报文染色位冲突的方法和设备。The invention relates to the field of communication, in particular to a method and equipment for detecting message dyeing bit conflicts.

背景技术Background technique

网际协议(Internet Protocol,IP)流性能测量(Flow PerformanceMeasurement,FPM)是一种对目标报文性能直接测量的技术手段。IP FPM通过对目标报文直接测量,可以得到网络中目标报文的真实丢包统计和时延统计等性能指标。IP FPM染色位是IP FPM技术正常测量统计的核心,IP FPM染色位是指入口节点对目标报文进行周期性的识别、染色的比特位,在目标报文途经的节点及出口节点对染色报文进行识别和统计,并根据各节点的统计数值及时间戳在沿途各节点的变化情况计算目标报文的丢包和时延。IPFPM染色位包括服务类型(Type of Service,ToS)字段的第3比特位至第7比特位和标记(Flag)字段的第0比特位。在IP FPM检测时,如果目标报文的染色位与目标报文的其它业务存在冲突,不仅会造成IP FPM丢包和时延统计结果出错,还将影响冲突业务报文的转发。Internet Protocol (Internet Protocol, IP) Flow Performance Measurement (Flow Performance Measurement, FPM) is a technical means for directly measuring the performance of target packets. Through direct measurement of target packets, IP FPM can obtain performance indicators such as actual packet loss statistics and delay statistics of target packets in the network. The IP FPM coloring bit is the core of the normal measurement and statistics of the IP FPM technology. The IP FPM coloring bit refers to the bit that the ingress node periodically identifies and dyes the target packet. The packets are identified and counted, and the packet loss and delay of the target packet are calculated according to the statistical value of each node and the change of the time stamp at each node along the way. The IPFPM coloring bits include bit 3 to bit 7 of the type of service (Type of Service, ToS) field and bit 0 of the flag (Flag) field. During IP FPM detection, if the dyed bit of the target packet conflicts with other services of the target packet, it will not only cause IP FPM packet loss and delay statistics to be wrong, but also affect the forwarding of conflicting service packets.

发明内容Contents of the invention

为确保报文流性能检测的正确性,避免报文流性能检测所使用的染色位与该业务报文其它业务发生冲突,本申请提供了一种报文流性能检测的方法和设备。In order to ensure the correctness of packet flow performance detection and prevent the coloring bits used in packet flow performance detection from colliding with other services of the service packet, this application provides a method and device for packet flow performance detection.

第一方面,本申请提供一种报文流性能检测的方法,该方法包括:In a first aspect, the present application provides a method for packet flow performance detection, the method comprising:

从所述报文中选择染色位。Colored bits are selected from the message.

检测所述报文的所述染色位是否与所述报文的其它业务存在冲突。Detecting whether the colored bit of the packet conflicts with other services of the packet.

当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的第一配置信息下发到入口节点和出口节点,所述入口节点为所述报文流性能检测的始端,所述出口节点为所述报文流性能检测的末端。所述第一配置信息包括染色位位置信息和检测项目信息。When there is no conflict between the dyed bit and other services of the message, the first configuration information of the dyed bit is sent to the ingress node and the egress node, and the ingress node is the detection node of the packet flow performance The start end, the egress node is the end of the packet flow performance detection. The first configuration information includes dyed position information and detection item information.

根据所述入口节点和出口节点上报的统计数据得到报文流性能检测数据。The packet flow performance detection data is obtained according to the statistical data reported by the ingress node and the egress node.

上述方案,在进行报文流性能检测之前对报文的染色位进行检测,以判该染色位是否与该报文的其它业务存在冲。在确定该报文的染色位与该报文的其它业务不存在冲突的情况下,使用该染色位进行报文流性能检测,不仅可以提高报文流性能检测的正确率,还不会影响该报文的其它业务。In the above scheme, the dyed bit of the message is detected before the performance detection of the message flow, so as to judge whether the dyed bit conflicts with other services of the message. When it is determined that the dyed bit of the message does not conflict with other services of the message, using the dyed bit to perform packet flow performance detection can not only improve the accuracy of packet flow performance detection, but also will not affect the Other business of the message.

在一个可能的设计中,所述根据所述入口节点和出口节点上报的统计数据得到报文流性能检测结果具体包括:In a possible design, the obtaining the packet flow performance detection result according to the statistical data reported by the ingress node and the egress node specifically includes:

从所述入口节点接收第一统计数据,并从所述出口节点接收第二统计数据。所述第一统计数据为所述入口节点在设定周期内对多个报文的所述染色位进行标识的统计数据。所述第二统计数据为所述出口节点在所述设定周期内对多个报文的所述染色位进行标识的统计数据。First statistical data is received from the ingress node, and second statistical data is received from the egress node. The first statistical data is statistical data of the ingress node identifying the colored bits of multiple packets within a set period. The second statistical data is statistical data of the egress node identifying the colored bits of multiple packets within the set period.

根据所述第一统计数据和所述第二统计数据获得报文流性能检测数据。Obtain packet flow performance detection data according to the first statistical data and the second statistical data.

上述方案,根据入口节点和出口节点在设定周期内对多个目标报文染色位的统计结果,可以直接计算出真实报文流性能检测数据,比如检测目标报文的丢包统计数据或者时延统计数据。In the above scheme, according to the statistical results of the coloring bits of multiple target packets by the ingress node and the egress node within the set period, the real packet flow performance detection data can be directly calculated, such as packet loss statistics or time delay statistics.

在一个可能的设计中,所述检测所述报文的所述染色位是否与所述报文的其它业务存在冲突包括:In a possible design, the detecting whether the dyed bit of the message conflicts with other services of the message includes:

将所述染色位的第二配置信息下发到所述入口节点和所述出口节点。所述的第二配置信息包括所述染色位的位置信息。sending the second configuration information of the dyed bits to the entry node and the exit node. The second configuration information includes position information of the dyed bits.

接收所述入口节点根据所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据;receiving the first detection data obtained by the entry node according to the position information of the dyed position and the second detection data obtained by the exit node according to the position information of the dyed position;

根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。and judging whether the colored bit conflicts with other services of the message according to the first detection data of the entry node and the second detection data of the exit node. The first detection data is the data that the entry node detects the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

上述方案中,入口节点和出口节点在获得染色位位置信息后,获得染色位的检测数据,用来判断染色位是否与目标报文的其它业务存在冲突。In the above solution, after obtaining the position information of the dyed bit, the ingress node and the egress node obtain the detection data of the dyed bit to determine whether the dyed bit conflicts with other services of the target message.

在一个可能的设计中,所述染色位的第二配置信息进一步包括所述设定周期的指示信息。In a possible design, the second configuration information of the colored bits further includes indication information of the setting period.

在一个可能的设计中,所述的所述染色位的第二配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息。所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。In a possible design, the second configuration information of the dyed bit further includes instructing the ingress node to set the dyed bit of the multi-packet to 1 periodically or to set the colored bit of the multi-packet to Information that resets the colored bits to 0. The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

在一个可能的设计中,在将所述染色位的第二配置信息下发到所述入口节点和所述出口节点之后以及在接收所述入口节点的第一检测数据和所述出口节点的第二检测数据之前所述方法还包括:In a possible design, after sending the second configuration information of the dyed bit to the entry node and the exit node and after receiving the first detection data of the entry node and the first detection data of the exit node The method described before the second detection data also includes:

通知入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0;Notifying the ingress node to periodically set the dyed bit of the multi-message to 1 or periodically reset the dyed bit of the multi-message to 0;

所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

上述方案,在入口节点周期性的将多报文的所诉染色位置位为1或者周期性的将多报文的所述染色位复位为0的情况下,入口节点和出口节点获得染色位检测数据,根据这种方法获得的检测数据能够更加准确的判断染色位是否与目标报文的其它业务发生冲突。In the above scheme, when the entry node periodically sets the colored bit of the multi-message to 1 or periodically resets the colored bit of the multi-message to 0, the ingress node and the exit node obtain the color bit detection The detection data obtained by this method can more accurately determine whether the dyed bit conflicts with other services of the target packet.

在一个可能的设计中,所述当所述染色位与所述报文的其它业务不存在冲突包括:In a possible design, when there is no conflict between the colored bit and other services of the message includes:

当所述第一检测数据的数值集与所述第二检测数据的数值集相同且都为1或者都为0时,所述染色位与所述报文的其它业务不存在冲突。When the value set of the first detection data is the same as the value set of the second detection data and both are 1 or both are 0, there is no conflict between the colored bits and other services of the message.

通过上述判断方法,可以判断目标报文的染色位是否与该报文的其它染色位存在冲突。Through the above judging method, it can be judged whether the dyed bit of the target message conflicts with other colored bits of the message.

在一个可能的设计中,所述当所述染色位与所述报文的其它业务不存在冲突包括:In a possible design, when there is no conflict between the colored bit and other services of the message includes:

所述第一检测数据包括第一统计值和第二统计值,所述第一统计值为所述染色位为0的报文个数,所述第二统计值为所述染色位为1的报文个数;The first detection data includes a first statistical value and a second statistical value, the first statistical value is the number of packets whose dyed bit is 0, and the second statistical value is the number of packets whose dyed bit is 1 number of messages;

所述第二检测数据包括第三统计值和第四统计值,所述第三统计值为所述染色位为0的报文个数,所述第四统计值为所述染色位为1的报文个数;The second detection data includes a third statistical value and a fourth statistical value, the third statistical value is the number of packets whose dyed bit is 0, and the fourth statistical value is the number of packets whose dyed bit is 1 number of messages;

当所述第一统计值和所述第三统计值都为大于0的整数,且所述第二统计值与所述第四统计值都为0时,所述染色位与所述报文的其它业务不存在冲突;When both the first statistic value and the third statistic value are integers greater than 0, and the second statistic value and the fourth statistic value are both 0, the dyed bit and the packet There is no conflict with other business;

或者当所述第二统计值和所述第四统计值都为大于0的整数时,且所述第一统计值和所述第三统计值都为0时,确定所述染色位与所述报文的其它业务不存在冲突。Or when both the second statistical value and the fourth statistical value are integers greater than 0, and the first statistical value and the third statistical value are both 0, determine the relationship between the dyed bit and the There is no conflict with other services of the message.

上述方法为判断目标报文的染色位是否与该报文的其它染色位存在冲突提供一种计算方法。The above method provides a calculation method for judging whether the colored bit of the target message conflicts with other colored bits of the message.

第二方面,本申请还提供了一种染色位冲突检测的方法。所述染色位为报文中被特征标记的比特位以便于对报文做流量性能检测,所述方法包括:In the second aspect, the present application also provides a method for detecting color bit conflicts. The dyed bit is a bit marked by a feature in the message so as to perform traffic performance detection on the message, and the method includes:

控制设备将报文的染色位的配置信息发送给入口节点和出口节点。所述的染色位的配置信息包括所述染色位的位置信息。The control device sends the configuration information of the colored bit of the message to the ingress node and the egress node. The configuration information of the dyed position includes position information of the dyed position.

所述控制设备接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。The control device receives the first detection data obtained by the ingress node according to the position information of the dyed bits and the second detection data obtained by the egress node according to the position information of the dyed bits.

根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。and judging whether the colored bit conflicts with other services of the message according to the first detection data of the entry node and the second detection data of the exit node. The first detection data is the number that the entry node detects on the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

在一个可能的设计中,所述的所述染色位的配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息。所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。In a possible design, the configuration information of the dyed bit further includes instructing the ingress node to set the dyed bit of the multi-packet to 1 or periodically set the Information that resets the color bit to 0. The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

在一个可能的设计中,在将所述染色位的配置信息下发到所述入口节点和所述出口节点之后以及在接收所述入口节点的第一检测数据和所述出口节点的第二检测数据之前所述方法还包括:In a possible design, after sending the configuration information of the dyed bit to the entry node and the exit node and receiving the first detection data of the entry node and the second detection data of the exit node The data methods previously described also include:

通知入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0。The ingress node is notified to periodically set the colored bit of the multi-packet to 1 or periodically reset the colored bit of the multi-packet to 0.

所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

在一个可能的设计中,所述根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突包括:In a possible design, the judging whether the dyed bit conflicts with other services of the message according to the first detection data of the entry node and the second detection data of the exit node includes:

当所述第一检测数据的数值集与所述第二检测数据的数值集相同且都为1或者都为0时,所述染色位与所述报文的其它业务不存在冲突。When the value set of the first detection data is the same as the value set of the second detection data and both are 1 or both are 0, there is no conflict between the colored bits and other services of the message.

在一个可能的设计中,所述根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突包括:In a possible design, the judging whether the dyed bit conflicts with other services of the message according to the first detection data of the entry node and the second detection data of the exit node includes:

所述第一检测数据包括第一统计值和第二统计值。所述第一统计值为所述染色位为0的报文个数。所述第二统计值为所述染色位为1的报文个数。The first detection data includes a first statistical value and a second statistical value. The first statistical value is the number of packets with the color bit being 0. The second statistical value is the number of packets with the dyed bit being 1.

所述第二检测数据包括第三统计值和第四统计值。所述第三统计值为所述染色位为0的报文个数。所述第四统计值为所述染色位为1的报文个数。The second detection data includes a third statistical value and a fourth statistical value. The third statistic value is the number of packets whose color bit is 0. The fourth statistical value is the number of packets with the dyed bit being 1.

当所述第一统计值和所述第三统计值都为大于0的整数,且所述第二统计值与所述第四统计值都为0时,所述染色位与所述报文的其它业务不存在冲突。When both the first statistic value and the third statistic value are integers greater than 0, and the second statistic value and the fourth statistic value are both 0, the dyed bit and the packet There is no conflict with other businesses.

或者当所述第二统计值和所述第四统计值都为大于0的整数时,且所述第一统计值和所述第三统计值都为0时,确定所述染色位与所述报文的其它业务不存在冲突。Or when both the second statistical value and the fourth statistical value are integers greater than 0, and the first statistical value and the third statistical value are both 0, determine the relationship between the dyed bit and the There is no conflict with other services of the message.

第三方面,本申请还提供了一种报文流性能检测设备,该所述设备包括选择单元、检测单元、发送单元和处理单元。In a third aspect, the present application also provides a packet flow performance detection device, which includes a selection unit, a detection unit, a sending unit, and a processing unit.

选择单元用于从所述报文中选择染色位。The selection unit is used for selecting the colored bits from the message.

检测单元用于根据选择单元选择的染色位,检测所述报文的所述染色位是否与所述报文的其它业务存在冲突。The detecting unit is configured to detect whether the colored bits of the message conflict with other services of the message according to the colored bits selected by the selecting unit.

发送单元用于当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的第一配置信息下发到入口节点和出口节点。所述入口节点为所述报文流性能检测的始端,所述出口节点为所述报文流性能检测的末端。The sending unit is configured to send the first configuration information of the dyed bits to the ingress node and the egress node when there is no conflict between the dyed bits and other services of the message. The entry node is the start of the packet flow performance detection, and the exit node is the end of the packet flow performance detection.

处理单元用于根据所述入口节点和出口节点上报的统计数据得到报文流性能检测数据。The processing unit is configured to obtain packet flow performance detection data according to the statistical data reported by the ingress node and the egress node.

在一个可能的设计中,所述处理单元还用于从所述入口节点接收第一统计数据,从所述出口节点接收第二统计数据,并根据所述第一统计数据和所述第二统计数据获得报文流性能检测数据。所述第一统计数据为所述入口节点在设定周期内对多个报文的所述染色位进行标识的统计数据。所述第二统计数据为所述出口节点在所述设定周期内对多个报文的所述染色位进行标识的统计数据。In a possible design, the processing unit is further configured to receive first statistical data from the entry node, receive second statistical data from the exit node, and The data obtains packet flow performance detection data. The first statistical data is statistical data of the ingress node identifying the colored bits of multiple packets within a set period. The second statistical data is statistical data of the egress node identifying the colored bits of multiple packets within the set period.

在一个可能的设计中,所述检测单元还用于将所述染色位的第二配置信息下发到所述入口节点和所述出口节点。所述的第二配置信息包括所述染色位的位置信息。检测单元接收所述入口节点根据所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据,并根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据,所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。In a possible design, the detecting unit is further configured to send the second configuration information of the dyed bit to the entry node and the exit node. The second configuration information includes position information of the dyed bits. The detection unit receives the first detection data obtained by the entry node according to the position information of the dyed bit and the second detection data obtained by the exit node according to the position information of the dyed bit, and according to the first detection data of the entry node The detection data and the second detection data of the egress node determine whether the colored bit conflicts with other services of the packet. The first detection data is the data that the entry node detects the value of the color position within the set period, and the second detection data is the data that the exit node detects the value of the color position within the set period. The numerical values of the stained bits are detected in the data.

在一个可能的设计中,所述染色位的第二配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息。所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。In a possible design, the second configuration information of the color bit further includes instructing the ingress node to periodically set the color bit of the multi-packet to 1 or periodically set the color bit of the multi-packet to Bit reset to 0 information. The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

在一个可能的设计中,所述发送单元用于当所述第一检测数据的数值集与所述第二检测数据的数值集相同且都为1或者都为0时,将所述染色位的第一配置信息下发到入口节点和出口节点。所述入口节点为所述报文流性能检测的始端。所述出口节点为所述报文流性能检测的末端。In a possible design, the sending unit is configured to, when the value set of the first detection data and the value set of the second detection data are the same and both are 1 or both are 0, send the The first configuration information is delivered to the entry node and the exit node. The ingress node is the starting end of the packet flow performance detection. The egress node is the end of the packet flow performance detection.

在一个可能的设计中,所述发送单元用于当第一统计值和第三统计值都为大于0的整数,且第二统计值与第四统计值都为0时,所述染色位与所述报文的其它业务不存在冲突。所述第一检测数据包括第一统计值和第二统计值。所述第一统计值为所述染色位为0的报文个数。所述第二统计值为所述染色位为1的报文个数。所述第二检测数据包括第三统计值和第四统计值。所述第三统计值为所述染色位为0的报文个数。所述第四统计值为所述染色位为1的报文个数。In a possible design, the sending unit is configured to, when both the first statistic value and the third statistic value are integers greater than 0, and both the second statistic value and the fourth statistic value are 0, the color bit and There is no conflict with other services of the message. The first detection data includes a first statistical value and a second statistical value. The first statistical value is the number of packets with the color bit being 0. The second statistical value is the number of packets with the dyed bit being 1. The second detection data includes a third statistical value and a fourth statistical value. The third statistic value is the number of packets whose color bit is 0. The fourth statistical value is the number of packets with the dyed bit being 1.

或者当所述第二统计值和所述第四统计值都为大于0的整数时,且所述第一统计值和所述第三统计值都为0时,确定所述染色位与所述报文的其它业务不存在冲突。Or when both the second statistical value and the fourth statistical value are integers greater than 0, and the first statistical value and the third statistical value are both 0, determine the relationship between the dyed bit and the There is no conflict with other services of the message.

第四方面,本申请提供一种染色位冲突检测设备,该控制设备包括发送单元、接收单元和检测单元。In a fourth aspect, the present application provides a dyed bit collision detection device, and the control device includes a sending unit, a receiving unit, and a detecting unit.

发送单元用于将报文的染色位的配置信息发送给入口节点和出口节点。所述的染色位的配置信息包括所述染色位的位置信息。The sending unit is used to send the configuration information of the colored bit of the message to the entry node and the exit node. The configuration information of the dyed position includes position information of the dyed position.

接收单元用于接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。The receiving unit is configured to receive the first detection data obtained by the entry node according to the position information of the dyed bits and the second detection data obtained by the exit node according to the position information of the dyed bits.

检测单元用于根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。The detection unit is configured to judge whether the colored bit conflicts with other services of the packet according to the first detection data of the ingress node and the second detection data of the egress node. The first detection data is the data that the entry node detects the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

在一个可能的设计中,所述染色位的配置信息进一步包括所述设定周期的指示信息。In a possible design, the configuration information of the dyed bits further includes indication information of the setting period.

在一个可能的设计中,发送单元将报文的染色位的配置信息发送给入口节点和出口节点,所述的染色位的配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息;所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。In a possible design, the sending unit sends the configuration information of the dyed bit of the message to the ingress node and the egress node, and the configuration information of the dyed bit further includes instructing the ingress node to periodically send all The coloring bit is set to 1 or the information of periodically resetting the coloring bit of the multi-message to 0; the first detection data of the entry node and the second detection data of the exit node are based on the information of the entry node It is obtained by periodically setting the colored bit of the multi-packet to 1 or periodically resetting the colored bit of the multi-packet to 0.

在一个可能的设计中,所述设备还包括配置单元。所述配置单元用于在将所述染色位的配置信息下发到所述入口节点和所述出口节点之后以及在接收所述入口节点的第一检测数据和所述出口节点的第二检测数据之前,通知入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0,所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。In a possible design, the device further includes a configuration unit. The configuration unit is configured to receive the first detection data of the entry node and the second detection data of the exit node after sending the configuration information of the dyed bit to the entry node and the exit node Before, the ingress node is notified to periodically set the coloring bit of the multi-message to 1 or periodically reset the coloring bit of the multi-message to 0, the first detection data of the ingress node and the egress The second detection data of the node is obtained according to the ingress node periodically setting the colored bit of the multi-packet to 1 or periodically resetting the colored bit of the multi-packet to 0.

在一个可能的设计中,所述检测单元根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突包括:In a possible design, the detection unit judging whether the dyed bit conflicts with other services of the packet according to the first detection data of the ingress node and the second detection data of the egress node includes:

当所述第一检测数据的数值集与所述第二检测数据的数值集相同且都为1或者都为0时,所述染色位与所述报文的其它业务不存在冲突。When the value set of the first detection data is the same as the value set of the second detection data and both are 1 or both are 0, there is no conflict between the colored bits and other services of the message.

在一个可能的设计中,所述检测单元根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突包括:In a possible design, the detection unit judging whether the dyed bit conflicts with other services of the packet according to the first detection data of the ingress node and the second detection data of the egress node includes:

所述第一检测数据包括第一统计值和第二统计值,所述第一统计值为所述染色位为0的报文个数,所述第二统计值为所述染色位为1的报文个数;The first detection data includes a first statistical value and a second statistical value, the first statistical value is the number of packets whose dyed bit is 0, and the second statistical value is the number of packets whose dyed bit is 1 number of messages;

所述第二检测数据包括第三统计值和第四统计值,所述第三统计值为所述染色位为0的报文个数,所述第四统计值为所述染色位为1的报文个数;The second detection data includes a third statistical value and a fourth statistical value, the third statistical value is the number of packets whose dyed bit is 0, and the fourth statistical value is the number of packets whose dyed bit is 1 number of messages;

当所述第一统计值和所述第三统计值都为大于0的整数,且所述第二统计值与所述第四统计值都为0时,所述染色位与所述报文的其它业务不存在冲突;When both the first statistic value and the third statistic value are integers greater than 0, and the second statistic value and the fourth statistic value are both 0, the dyed bit and the packet There is no conflict with other business;

或者当所述第二统计值和所述第四统计值都为大于0的整数时,且所述第一统计值和所述第三统计值都为0时,确定所述染色位与所述报文的其它业务不存在冲突。Or when both the second statistical value and the fourth statistical value are integers greater than 0, and the first statistical value and the third statistical value are both 0, determine the relationship between the dyed bit and the There is no conflict with other services of the message.

第五方面,本申请提供了另一种报文流性能检测设备,所述设备包括处理器和网络接口,所述处理器用于执行第一方面的方法中相应的功能所述网络接口用于将所述染色位的第一配置信息下发到入口节点和出口节点。所述控制设备还可以包括存储器,所述存储器用于与处理器耦合,保存所述处理器用于执行的程序指令和数据。In the fifth aspect, the present application provides another packet flow performance detection device, the device includes a processor and a network interface, the processor is used to execute the corresponding function in the method of the first aspect, and the network interface is used to use the The first configuration information of the dyed bit is delivered to the entry node and the exit node. The control device may further include a memory, which is used to be coupled with the processor, and store program instructions and data for execution by the processor.

第六方面,本申请提供了另一种染色位冲突检测设备,所述设备包括处理器和网络接口,所述处理器用于执行二方面的方法中相应的功能。所述网络接口用于将报文的染色位的配置信息发送给入口节点和出口节点,以及用于接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。所述控制设备还可以包括存储器,所述存储器用于与处理器耦合,保存所述处理器用于执行的程序指令和数据。In a sixth aspect, the present application provides another dyed bit conflict detection device, the device includes a processor and a network interface, and the processor is configured to perform corresponding functions in the methods of the two aspects. The network interface is used to send the configuration information of the dyed bit of the message to the ingress node and the egress node, and is used to receive the first detection data obtained by the ingress node according to the position information of the dyed bit and the second detection data obtained by the egress node according to the position information of the dyed bit. The control device may further include a memory, which is used to be coupled with the processor, and store program instructions and data for execution by the processor.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本申请实施例提供的一种应用场景示意图。FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.

图2为本申请实施例提供的一种报文流性能检测的方法流程示意图。FIG. 2 is a schematic flowchart of a method for detecting packet flow performance provided by an embodiment of the present application.

图3A为本申请实施例提供的又一种报文流性能检测的方法流程示意图。FIG. 3A is a schematic flowchart of another method for packet flow performance detection provided by the embodiment of the present application.

图3B为本申请实施例提供的一种染色位冲突检测的方法流程示意图。FIG. 3B is a schematic flowchart of a method for detecting color bit conflicts provided by an embodiment of the present application.

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

图5为本申请实施例提供的又一种设备的结构示意图。FIG. 5 is a schematic structural diagram of another device provided in the embodiment of the present application.

图6为本申请实施例提供的又一种设备的结构示意图。FIG. 6 is a schematic structural diagram of another device provided in the embodiment of the present application.

图7为本申请实施例提供的又一种设备的结构示意图。FIG. 7 is a schematic structural diagram of another device provided by the embodiment of the present application.

具体实施方式Detailed ways

下面结合附图,对本发明的实施例进行描述。Embodiments of the present invention will be described below in conjunction with the accompanying drawings.

本申请实施例中,染色位是指对目标报文进行特征标识的比特位。在进行报文流的性能测量时,例如在进行IP FPM检测时,入口节点通过对报文的染色位进行周期性的特征标识来测量目标报文的丢包统计和时延统计。通常情况下,IP FPM检测的染色位为报文中实际使用较少比特位,例如某些字段的预留位或预留字段中的比特位,本申请实施例以IP FPM检测的染色位包括目标报文的服务类型字段的第3比特位至第7比特位和标记字段的第0比特位,共6个染色位为例进行说明。IP FPM是一种可以对目标报文进行直接检测的技术手段。IP FPM的完整检测流程包括:用户通过指定入口节点及出口节点、目标检测报文的IP五元组信息,以确定需要检测的目标报文、目标路径。网络控制设备根据识别的路径生成需要下发给入口节点和出口节点的配置信息,并在目标流流经的各个节点上配置检测点、检测动作、报文识别规则,确保检测点能够按照方案设定动作进行检测。最后,各检测点上报检测数据,并在数据收集节点进行计算将最终结果呈现给用户。需要说明的是,此处仅以IP FPM检测中的丢包统计和时延统计为例说明,本发明并不限于此,其他采用染色方式进行丢包统计、时延统计或者其他类似统计时会与目标报文的其它业务产生于冲突的能够采用本发明中实施例解决的都在本发明的范围内。In the embodiment of the present application, the coloring bit refers to a bit for characteristic identification of the target packet. When performing packet flow performance measurement, for example, when performing IP FPM detection, the ingress node measures packet loss statistics and delay statistics of target packets by performing periodic feature identification on the dyed bits of the packets. Normally, the colored bits detected by IP FPM are the bits actually used in the message, such as reserved bits of certain fields or bits in reserved fields. In the embodiment of this application, the colored bits detected by IP FPM include The 3rd to 7th bits of the service type field of the target message and the 0th bit of the flag field, a total of 6 colored bits are used as an example for illustration. IP FPM is a technical means that can directly detect target packets. The complete detection process of IP FPM includes: the user determines the target packet and target path to be detected by specifying the entry node and exit node, and the IP quintuple information of the target detection packet. The network control device generates configuration information that needs to be delivered to the ingress node and the egress node according to the identified path, and configures detection points, detection actions, and message identification rules on each node that the target flow passes through to ensure that the detection points can be set according to the plan. Check the action. Finally, each detection point reports the detection data, and calculates at the data collection node to present the final result to the user. It should be noted that, here, the packet loss statistics and delay statistics in IP FPM detection are only used as an example for illustration, and the present invention is not limited thereto, other methods of coloring for packet loss statistics, delay statistics or other similar statistics will Conflicts with other services of the target message that can be resolved by using the embodiments of the present invention are within the scope of the present invention.

在上述报文流量性能检测过程中,如果目标报文测量时延使用的染色位与目标报文其它业务的比特位相同时,目标报文的染色位与目标报文的其它业务发生冲突。需要说明的是,这里所说其它业务广泛地包括利用该报文的该比特位所进行的除了上述用染色位进行流量性能检测业务之外的各类业务。这种冲突不仅会造成报文流量性能的检测结果出现错误,还会对目标报文的正常转发产生影响。例如,报文的标记字段的第0比特位已经被用来标识指导目标报文转发的优先级业务,在这种情况下如果将上述标记字段的第0比特位强制进行配置并进行报文流量性能检测目标报文的丢包统计,则不仅会更改目标报文的优先级导致该目标报文在转发过程中被丢弃,还可能造成目标报文丢包统计的错误。In the above packet flow performance detection process, if the coloring bits used to measure the delay of the target message are the same as the bits of other services of the target message, the coloring bits of the target message conflict with other services of the target message. It should be noted that the other services mentioned here broadly include all kinds of services performed by using the bit of the message except the above-mentioned traffic performance detection service using the dyed bit. Such conflicts will not only cause errors in the detection results of packet traffic performance, but also affect the normal forwarding of target packets. For example, the 0th bit of the tag field of the message has been used to identify the priority service that guides the forwarding of the target message. In this case, if the 0th bit of the above tag field is forcibly configured and The packet loss statistics of the performance detection target packet will not only change the priority of the target packet and cause the target packet to be discarded during the forwarding process, but may also cause errors in the packet loss statistics of the target packet.

为解决上述问题,图1为本申请实施例提供了一种应用场景示意图。在利用报文的染色位进行报文流量性能检测之前,例如报文的丢包统计或时延统计之前,需要控制设备104对目标报文的待染色位进行检测,确定是否存在用于报文流量性能检测的染色位与报文的其它业务冲突,如果存在冲突,则不用该染色位进行报文流量性能的检测,如果不存在冲突,则用该染色位进行报文流量性能的检测,从而可以提高报文流量性能的准确度,并且不影响报文的其他业务。例如,显示拥塞控制通告业务需要使用目标报文ToS字段的第6比特位和第7比特位进行标记,如果目标报文流性能测量的染色位与所述显示拥塞控制通告业务标识的比特位发生冲突,则不仅会造成报文时延测量出现错误,而且还会影响目标报文显示拥塞控制通告业务。因此为了确保报文流性能检测的正确性,避免与业务报文转发中使用的染色位发生冲突,需要在进行报文流性能检测之前对判断染色位是否与该报文的其它业务存在冲突。To solve the above problem, FIG. 1 provides a schematic diagram of an application scenario according to an embodiment of the present application. Before using the dyed bit of the message to perform packet traffic performance detection, such as packet loss statistics or delay statistics of the packet, it is necessary for the control device 104 to detect the to-be-colored bit of the target packet to determine whether there is a The dyed bit of traffic performance detection conflicts with other services of the packet. If there is a conflict, the dyed bit is not used to detect the packet traffic performance. If there is no conflict, the dyed bit is used to detect the packet traffic performance, thereby The accuracy of packet traffic performance can be improved without affecting other services of packets. For example, the display congestion control notification service needs to be marked with the 6th bit and the 7th bit of the ToS field of the target packet. If there is a conflict, it will not only cause an error in the packet delay measurement, but also affect the target packet display congestion control notification service. Therefore, in order to ensure the correctness of packet flow performance detection and avoid conflicts with the dyed bits used in service packet forwarding, it is necessary to determine whether the dyed bits conflict with other services of the packet before performing packet flow performance detection.

图1中的控制设备104可以是软件定义网络(Software-Defined Networking,SDN)控制器,也可以是测量控制设备。在控制设备104向入口节点101和出口节点103下发报文染色位配置信息以测量报文时延之前,先判断待染色比特位是否与所述报文的其它业务存在冲突。在确定待染色位与所述报文中的其它业务没有冲突的情况下,控制设备104将该染色位的配置信息下发给入口节点101和出口节点103,以进行报文流性能检测。The control device 104 in FIG. 1 may be a software-defined network (Software-Defined Networking, SDN) controller, or may be a measurement control device. Before the control device 104 sends message coloring bit configuration information to the ingress node 101 and the egress node 103 to measure the message delay, it first judges whether the bits to be dyed conflict with other services of the message. When it is determined that the bit to be dyed does not conflict with other services in the message, the control device 104 sends the configuration information of the dyed bit to the ingress node 101 and the egress node 103 to perform packet flow performance detection.

图1中的网络102可以是IP协议的网络,也可以是包括多协议标签交换(Multi-Protocol Label Switching,MPLS)的网络。The network 102 in FIG. 1 may be an IP protocol network, or a network including Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS).

图1中的入口节点101和出口节点103是报文流性能测量路径的入口节点和出口节点。本申请实施例中,“节点”可以指在网络中对业务流量进行转发的设备,比如“节点”可以是路由器、交换机、光传送网(英文:Optical Transport Network,简称:OTN)设备、分组传送网(英文:Packet Transport Network,简称:PTN)设备或者波分复用(英文:WavelengthDivision Multiplexing,简称:WDM)设备。举例来说,入口节点和出口节点可以是转发报文的路由器。The ingress node 101 and the egress node 103 in FIG. 1 are the ingress node and the egress node of the packet flow performance measurement path. In the embodiment of the present application, a "node" may refer to a device that forwards service traffic in a network, for example, a "node" may be a router, a switch, an Optical Transport Network (English: Optical Transport Network, OTN for short) device, a packet transmission network (English: Packet Transport Network, abbreviated: PTN) equipment or wavelength division multiplexing (English: Wavelength Division Multiplexing, abbreviated: WDM) equipment. For example, the ingress node and the egress node may be routers that forward packets.

图2为本申请实施例提供了一种报文流性能测量的方法。图2所示的方法包括S201、S202和S203。举例来说,所述方法可以应用于图1所示的应用场景中。FIG. 2 provides a method for measuring packet flow performance according to the embodiment of the present application. The method shown in FIG. 2 includes S201, S202 and S203. For example, the method can be applied to the application scenario shown in FIG. 1 .

S201从所述报文中选择染色位。S201 Select a colored bit from the packet.

举例来说,SDN控制器可以根据IP五元组信息确定要检测的目标报文,然后SDN控制器在目标报文可供选择的比特位中选择染色位。以IP FPM流性能测量为例,SDN控制器可以选择目标报文ToS字段第3比特位至第7比特位和标记字段的第0比特位的任意比特位作为染色位。For example, the SDN controller may determine the target packet to be detected according to the IP quintuple information, and then the SDN controller selects the coloring bits from the optional bits of the target packet. Taking IP FPM flow performance measurement as an example, the SDN controller can select any bit from the 3rd bit to the 7th bit of the ToS field of the target packet and the 0th bit of the flag field as the coloring bit.

S202通过检测判断所述染色位是否与所述报文的其它业务存在冲突。S202 Determine whether the colored bit conflicts with other services of the packet by detecting.

在选择确定染色位之后,需要对所选择的染色位进行检测,以判断该染色位是否与所述报文的其它业务存在冲突。举例来说,在入口节点将目标报文转发到出口节点的过程中,SDN控制器可以通过检测判断染色位是否与报文的其它业务发生冲突,也可以由测量控制设备通过检测判断染色位是否与报文的其它业务存在冲突。如果确定该染色位与所述报文的其它业务存在冲突,则SDN控制器或者测量控制设备继续选择其它染色位进行判断,直到发现与该报文的其它业务不存在冲突的染色位。After the coloring bit is selected and determined, the selected coloring bit needs to be detected to determine whether the coloring bit conflicts with other services of the message. For example, when the ingress node forwards the target message to the egress node, the SDN controller can determine whether the dyed bit conflicts with other services of the message through detection, or the measurement control device can determine whether the dyed bit is Conflicts with other services of the message. If it is determined that the colored bit conflicts with other services of the message, the SDN controller or the measurement control device continues to select other colored bits for judgment until a colored bit that does not conflict with other services of the message is found.

S203当所述染色位与所述报文的其它业务不存在冲突时,利用所述染色位进行报文流性能检测。S203 When there is no conflict between the colored bits and other services of the packet, use the colored bits to detect packet flow performance.

举例来说,在确定所选染色位与该报文的其它业务不存在冲突的情况下,可以通过标识该染色位对报文流性能进行检测。以IP FPM流性能测量为例,在确定染色位与该报文的其它业务不存在冲突时,可对报文染色位进行周期性的标识,例如将染色位置位为1或者将染色位复位为0,以测量报文的丢包统计和时延统计。For example, in a case where it is determined that the selected colored bit does not conflict with other services of the packet, the packet flow performance may be detected by identifying the colored bit. Taking IP FPM flow performance measurement as an example, when it is determined that there is no conflict between the dyed bit and other services of the packet, the dyed bit of the packet can be periodically marked, for example, the dyed bit is set to 1 or the dyed bit is reset to 0, to measure packet loss statistics and delay statistics of packets.

如果所述染色位与所述报文的其它业务存在冲突,则继续选择其它染色位进行检测以判断第二次选择的染色位是否与该报文的其它业务存在冲突,如此循环,直到检测到与该报文其它业务不存在冲突的染色位。如果通过检测发现可选择的染色位都与该报文的其它业务存在冲突,则控制设备通知用户不能进行报文流性能检测。If the dyed bit conflicts with other services of the message, continue to select other dyed bits for detection to determine whether the second selected dyed bit conflicts with other services of the message, and so on until detected Colored bits that do not conflict with other services in the message. If it is found through detection that the optional coloring bits conflict with other services of the packet, the control device notifies the user that packet flow performance detection cannot be performed.

如图3A所示以IP FPM流性能测量为例,具体介绍报文流行性检测的方法流程示意图,图3A所示的方法包括S301、S302、S303、S304和S305,可选的,该方法还可以在S303和S304之间增加步骤S306。举例来说,所述方法可以应用于图1所述的应用场景中。图1中入口节点101可以是图3A中所示的方法中涉及的入口节点,图1中出口节点103可以是图3A所示的方法中涉及的出口节点。图1中的控制设备可以是图3A所示方法中涉及的控制设备。As shown in Figure 3A, taking IP FPM flow performance measurement as an example, a schematic diagram of the method flow chart for packet popularity detection is specifically introduced. The method shown in Figure 3A includes S301, S302, S303, S304 and S305. Optionally, the method also includes Step S306 may be added between S303 and S304. For example, the method can be applied to the application scenario described in FIG. 1 . The entry node 101 in FIG. 1 may be the entry node involved in the method shown in FIG. 3A , and the exit node 103 in FIG. 1 may be the exit node involved in the method shown in FIG. 3A . The control device in FIG. 1 may be the control device involved in the method shown in FIG. 3A.

S301,从所述报文中选择染色位。S301. Select a colored bit from the packet.

举例来说,首先SDN控制器可以根据会话发起协议、源IP地址、目的IP地址、源端口和目的端口五元组进行流识别,确定目标报文。SDN控制器还可以根据上述信息的二元组、三元组、五元组等组合确定目标报文,组合越长可监测的数据流就越细。SDN控制器根据目标报文确定目标报文转发路径以及目标报文性能测量的入口节点和出口节点。SDN控制器可以选择目标报文的服务类型字段的第3比特位至第7比特位和标记字段的第0比特位中比特位进行标识。如果需要对目标报文同时进行时延统计和丢包统计,SDN控制器可以同时选择该目标报文的两个染色位。For example, first, the SDN controller can perform flow identification according to the session initiation protocol, source IP address, destination IP address, source port, and destination port quintuple to determine the target packet. The SDN controller can also determine the target message according to the combination of the two-tuple, three-tuple, and five-tuple of the above information. The longer the combination, the finer the data flow that can be monitored. The SDN controller determines the forwarding path of the target message and the ingress node and the egress node for performance measurement of the target message according to the target message. The SDN controller may select the bits from the 3rd bit to the 7th bit of the service type field of the target message and the 0th bit of the flag field for identification. If it is necessary to perform delay statistics and packet loss statistics on the target packet at the same time, the SDN controller can simultaneously select the two coloring bits of the target packet.

S302,检测所述报文的所述染色位是否与所述报文的其它业务存在冲突。如图3B所示为实施例提供一种检测染色位是否与报文的其它业务发生冲的方法流程示意图。所述方法包括S311、S312和S313。S302. Detect whether the colored bits of the packet conflict with other services of the packet. As shown in FIG. 3B , the embodiment provides a schematic flowchart of a method for detecting whether the dyed bits collide with other services of the message. The method includes S311, S312 and S313.

S311,控制设备将报文的染色位的配置信息发送给入口节点和出口节点,所述的染色位的配置信息包括所述染色位的位置信息。S311. The control device sends the configuration information of the dyed bits of the packet to the ingress node and the egress node, where the configuration information of the dyed bits includes position information of the dyed bits.

举例来说,所述待检测染色位的检测配置信息包括待检测染色位的位置信息,如前所述,所述待检测染色位为便于对报文做报文流量性能检测,例如丢包、延时或其他类似统计而对报文进行特征标记的比特位。所述染色位的位置信息为所述待检测的染色位在所述报文中的位置,例如,以待检测染色位为一个染色位为例进行说明(为了描述方便可以称为第一染色位),该第一染色位的位置信息为上例中报文的服务类型字段的第3比特位或标记字段的第0比特位。在待检测的染色位为多个的情况下,依次可以称为第一染色位,第二染色位,至第N染色位(N为大于1的正整数)。例如,以待检测的染色位为三个染色位为例进行说明(为了描述方便可以称为第一染色位、第二染色位以及第三染色位)则染色位检测配置信息包括各染色位分别在所述报文中的位置,如分别为上例中报文的服务类型字段的第3比特位至第5比特位。For example, the detection configuration information of the coloring bit to be detected includes the position information of the coloring bit to be detected. As mentioned above, the coloring bit to be detected is for the convenience of packet flow performance detection on the message, such as packet loss, Delay or other similar statistics to characterize the bit of the packet. The position information of the dyed bit is the position of the dyed bit to be detected in the message, for example, the dyed bit to be detected is an example for illustration (for convenience of description, it can be called the first dyed bit ), the position information of the first colored bit is the 3rd bit of the service type field of the message in the above example or the 0th bit of the flag field. In the case of multiple dyeing sites to be detected, they can be called the first dyeing site, the second dyeing site, and the Nth dyeing site (N is a positive integer greater than 1) in sequence. For example, take three dyeing positions to be detected as an example (for the convenience of description, they may be referred to as the first dyeing position, the second dyeing position, and the third dyeing position), then the dyeing position detection configuration information includes each dyeing position respectively The positions in the message are, for example, the 3rd bit to the 5th bit of the service type field of the message in the above example.

举例来说,控制设备可以通过网络配置协议向入口节点和出口节点下发待检测染色位的配置信息,以及目标报文的信息。控制设备还可以通过管理信息库向入口节点和出口节点下发上述待检测染色位的配置信息。For example, the control device can send the configuration information of the color bit to be detected and the information of the target message to the ingress node and the egress node through the network configuration protocol. The control device may also deliver the configuration information of the dyed bit to be detected to the entry node and the exit node through the management information base.

举例来说,IP FPM流性能检测的染色位可以包括该报文服务类型字段的第3比特位至第7比特位和标记字段的第0比特位,共6个比特位。控制设备可以选择上述6个比特位中的一个或者多个进行检测。例如,以待检测的染色位为两个染色位为例,目标报文的待检测染色位可以是服务类型字段的第4比特位和第5比特位。For example, the colored bits of the IP FPM flow performance detection may include the 3rd bit to the 7th bit of the service type field of the message and the 0th bit of the flag field, a total of 6 bits. The control device may select one or more of the above six bits for detection. For example, if the coloring bits to be detected are two coloring bits as an example, the coloring bits to be detected in the target message may be the fourth bit and the fifth bit of the service type field.

所述入口节点和所述出口节点根据接收到的染色位配置信息对多个目标报文进行检测,并将检测数据进行统计。The ingress node and the egress node detect a plurality of target messages according to the received color bit configuration information, and make statistics on the detected data.

S312,所述控制设备接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。S312. The control device receives the first detection data obtained by the ingress node according to the position information of the dyed bit and the second detection data obtained by the egress node according to the position information of the dyed bit.

具体实施例中,所述第一检测数据为所述入口节点记录的在设定周期内接收到的报文中的所述待检测染色位的数值的检测结果或者所述入口节点记录的接收到的设定数量的报文中的所述待检测染色位的数值的检测结果,所述第二检测数据为所述出口节点记录的在所述设定周期内接收到的报文中所述待检测染色位的数值的检测结果或者所述出口节点记录的接收到的设定数量的报文中的所述待检测染色位的数值的检测结果。In a specific embodiment, the first detection data is the detection result of the numerical value of the coloring bit to be detected in the message received by the entry node within the set period or the reception record of the entry node The detection result of the numerical value of the color bit to be detected in the set number of messages, and the second detection data is the value of the color bit to be detected in the message received by the egress node within the set period. Detecting the detection result of the numerical value of the dyed bit or the detection result of the numerical value of the dyed bit to be detected in the received set number of messages recorded by the egress node.

控制设备接收入口节点发送的检测数据,这些检测数据是入口节点对目标报文统计的上述第一染色位的数值,这些数值包括0、1以及既不是0也不是1的空值。当所述第一染色位为空值时表明该染色位为不可用比特位,不能对该比特位进行染色标识。控制设备接收出口节点发送的数据统计信息,这些数据统计信息是出口节点对目标报文统计的第一染色位的数值,这些数值同样包括0、1以及空值。举例来说,控制设备接收入口节点发送的第一数组的数值都是1,控制设备接收出口节点发送的第二数组的数值也都是1。The control device receives the detection data sent by the ingress node, and the detection data is the value of the above-mentioned first colored bit that the ingress node counts on the target packet, and these values include 0, 1 and null values that are neither 0 nor 1. When the first coloring bit is null, it indicates that the coloring bit is an unusable bit, and the bit cannot be marked with coloring. The control device receives the data statistics information sent by the egress node, and the data statistics information is the value of the first colored bit that the egress node counts on the target packet, and these values also include 0, 1 and null values. For example, the control device receives all 1s in the first array sent by the entry node, and the control device receives all 1s in the second array sent by the exit node.

具体实施方式中,上述入口节点或出口节点向控制设备上报的所述第一染色位的数值的检测结果可以有多种表现形式,本发明不做具体限定,例如,可以是所述入口节点在设定周期内统计所述多个报文中的第一染色位的数值所组成的数值集(为了描述便利可以称为第一染色位的第一数值集)或者所述出口节点接收到并统计的所述多个报文中的第一染色位的数值所组成的数值集(相应地可以称为第一染色位的第二数值集),如下表1中所示的入口节点上报的多个报文中的第一染色位的第一数值集为[111…1],以及出口节点上报的所述多个报文中的第一染色位的第二数值集为[111…1]。也可以是如下表2中表示的所述入口节点统计的多个报文中的第一染色位数值统计值(为了描述便利可以称为第一染色位的第一统计值),以及出口节点接收到的多个报文中的第一染色位数值统计值(相应地称为第一染色位的第二统计值),即上报多个报文(以10个报文为例)中的第一染色位中值为0的计数P0(例如为10)和值为1的计数P1(例如为0)。当待检测染色位为多个时,入下表3中所述入口节点统计的多个报文中的第一染色位数值统计值、第二染色位数值统计值、第三染色位数值统计值和第N染色位数值统计值,以及出口节点接收到的多个报文中的第一染色位数值统计值、第二染色位数值统计值、第三染色位数值统计值和第N染色位数值统计值。入口节点和出口节点可以将上述数据统计值上报给控制设备。In a specific implementation manner, the detection result of the value of the first colored bit reported by the above-mentioned entry node or exit node to the control device may have various forms, which are not specifically limited in the present invention. For example, it may be that the entry node is in Count the value set formed by the values of the first colored bits in the plurality of messages in the set period (for the convenience of description, it may be called the first value set of the first colored bits) or the egress node receives and counts The numerical value set (correspondingly may be referred to as the second numerical value set of the first colored bit) in the plurality of messages of the first colored bit, as shown in the following table 1, the multiple reported by the entry node The first value set of the first colored bits in the message is [111...1], and the second value set of the first colored bits in the plurality of messages reported by the egress node is [111...1]. It can also be the statistical value of the first dyed bit value (the first statistical value of the first dyed bit can be referred to as the first colored bit for convenience of description) in the plurality of messages counted by the entry node as shown in Table 2 below, and the output node receives The statistical value of the first colored bit value in the received multiple messages (referred to as the second statistical value of the first colored bit accordingly), that is, the first value of the reported multiple messages (take 10 messages as an example). A count P0 with a value of 0 (for example, 10) and a count P1 with a value of 1 (for example, 0) in the colored bits. When there are multiple coloring bits to be detected, enter the statistical value of the first coloring bit, the second statistical value of the coloring bit, and the third statistical value of the coloring bit in the multiple messages counted by the entry nodes described in Table 3 below and the statistical value of the Nth colored bit value, as well as the statistical value of the first colored bit value, the second colored bit value, the third colored bit value, and the Nth colored bit value in multiple messages received by the egress node Statistics. The ingress node and the egress node can report the above data statistics to the control device.

表1多个报文中第一染色位的数值Table 1 Numerical values of the first colored bits in multiple messages

表2多个报文中第一染色位数值统计值Table 2 Statistical value of the first coloring bit value in multiple messages

表3多个报文中多个染色位的数值统计值Table 3 Numerical statistics of multiple colored bits in multiple messages

S313,根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突;所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据,所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。S313. According to the first detection data of the entry node and the second detection data of the exit node, it is judged whether the dyed bit conflicts with other services of the message; the first detection data is the The data for detecting the value of the dyed position within the set period, the second detection data is the data for the output node to detect the value of the dyed position within the set period.

举例来说,可以由SDN控制器根据入口节点和出口节点的上述检测数据判断染色位是否与该报文的其它业务存在冲突,也可以由测量控制设备根据入口节点和出口节点的上述检测数据判断染色位是否与该报文的其它业务存在冲突。For example, the SDN controller can judge whether the dyed bit conflicts with other services of the message according to the above detection data of the ingress node and the egress node, or it can be judged by the measurement control device according to the above detection data of the ingress node and the egress node Whether the colored bit conflicts with other services of the packet.

本申请实施例提供的确定是否存在冲突的判断依据具体包括:The judgment basis for determining whether there is a conflict provided by the embodiment of the present application specifically includes:

在所述入口节点或出口节点接收到的所述多个报文中的第一染色位的数值所组成的数值集的情况下:In the case of the value set formed by the values of the first colored bits in the plurality of messages received by the ingress node or the egress node:

当所述入口节点接收到的所述第一染色位的第一数值集中的各个数值与所述出口节点接收到的第一染色位的第二数值集的各个数值同时为1时,或者所述第一数值集中各个数值与所述第二数值集的各个数值同时为0时,则确定不存在冲突。When each value in the first value set of the first colored bit received by the ingress node and each value in the second value set of the first colored bit received by the egress node are 1 at the same time, or the When each value in the first value set and each value in the second value set are 0 at the same time, it is determined that there is no conflict.

如上述表1所示,入口节点上报的所述第一染色位的第一数值集为[111…1](其中省略处的数值都为1),出口节点上报的所述所述第一染色位的第二数值集为[111…1](其中省略处的数值都为1),则可以确定利用所述染色位进行报文流量性能检测与该报文的其他业务不存在冲突。可以理解,上述表1中,如果入口节点上报的所述第一染色位的第一数值集为[000…0](其中省略处的数值都为0),出口节点上报的所述第一染色位的第二数值集为[000…0](其中省略处的数值都为0),则也可以确定利用所述染色位进行报文流量性能检测与该报文的其他业务不存在冲突。As shown in the above Table 1, the first value set of the first color bit reported by the entry node is [111...1] (where the value of the omission is all 1), and the first color bit reported by the exit node The second value set of the bits is [111...1] (wherein the value of the omission is all 1), then it can be determined that there is no conflict between using the dyed bits to detect the packet traffic performance and other services of the packet. It can be understood that, in the above Table 1, if the first value set of the first color bit reported by the entry node is [000...0] (the values in the omitted places are all 0), the first color bit reported by the exit node The second value set of the bits is [000...0] (wherein the value of the omission is all 0), then it can also be determined that there is no conflict between using the dyed bits to detect the packet traffic performance and other services of the packet.

当所述入口节点接收到的所述第一染色位的第一数值集中的各个数值与所述出口节点接收到的所述第一染色位的第二数值集中的各个数值至少存在一个数值不相同时,则确定存在冲突。When each value in the first value set of the first colored bit received by the ingress node is different from each value in the second value set of the first colored bit received by the egress node, at least one value is different At the same time, it is determined that there is a conflict.

如下表4所示,入口节点上报的所述第一染色位的第一数值集为[111…1],出口节点上报的所述第一染色位的第一数值集为[111…0](假设以上省略处的数值相同,都为1或都为0),则可以确定利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突。或者,如上述表2中,如果入口节点上报的所述第一染色位的第一数值集为[110…1],则可以不用等到接收出口节点的第二数值集即可直接确定利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突,或者如果出口节点上报的所述第一染色位的第二数值集为[110…1](假设以上省略处的数值相同,都为1或都为0),则也可以不用等到接收入口节点的第一数值集即可直接确定利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突。As shown in Table 4 below, the first value set of the first dyed bit reported by the entry node is [111...1], and the first value set of the first dyed bit reported by the exit node is [111...0] ( Assuming that the above omitted values are the same (both are 1 or all are 0), it can be determined that there is a conflict between using the dyed bits to detect packet traffic performance and other services of the packet. Alternatively, as shown in Table 2 above, if the first value set of the first dyed bit reported by the ingress node is [110...1], it can be directly determined to use the There is a conflict between the packet flow performance detection of the colored bit and other services of the packet, or if the second value set of the first colored bit reported by the egress node is [110...1] (assuming that the values omitted above are the same, are all 1 or both are 0), then it may be directly determined that there is a conflict between using the dyed bit to perform packet traffic performance detection and other services of the packet without waiting for the first value set of the ingress node to be received.

表4多个报文中第一染色位的数值Table 4 Numerical values of the first colored bits in multiple messages

在另一具体实施方式中,当所述入口节点接收到的所述第一染色位的第一数值集中的各个数值与所述出口节点接收到的所述第一染色位的第二数值集中的各个数值都为空(即及不为0也不为1)的情况下,确认为异常,可能为无业务流量或者IP FPM的流量特征与实际业务流量不匹配等,并提示用户检查配置或者检查网络情况。可以理解在这种情况下,在这种情况下,也可以默认为利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突,而选择其他染色位继续进行上述判断。In another specific implementation manner, when each value in the first value set of the first colored bits received by the ingress node is the same as that in the second value set of the first colored bits received by the egress node If each value is empty (that is, neither 0 nor 1), it is confirmed as an abnormality. It may be that there is no business traffic or the traffic characteristics of IP FPM do not match the actual business traffic, etc., and the user is prompted to check the configuration or check Network situation. It can be understood that in this case, in this case, it can also be defaulted that using the dyed bit to perform packet traffic performance detection conflicts with other services of the packet, and select other dyed bits to continue the above judgment.

在所述入口节点或出口节点接收到的多个报文中的第一染色位数值统计值的场合下:In the case of the statistical value of the first colored bit value in the plurality of messages received by the ingress node or the egress node:

当所述入口节点接收到的所述第一染色位的第一统计值与所述出口节点接收到的第一染色位的第二统计值相同,且所述第一统计值和第二统计值中数值为0的统计值都为0或者所述第一统计值和第二统计值中数值为1的统计值都为0时,则确定不存在冲突。When the first statistical value of the first colored bit received by the ingress node is the same as the second statistical value of the first colored bit received by the egress node, and the first statistical value and the second statistical value When the statistic values with a value of 0 are all 0 or the statistic values with a value of 1 among the first statistic value and the second statistic value are both 0, it is determined that there is no conflict.

如下表5所示,所述入口节点接收到的多个报文中(此处以10个为例)的第一染色位的第一统计值中,数值为0的计数为10个,数值为1的计数为0个,出口节点接收到的多个报文中的第一染色位的第二统计值中,数值为0的计数为10个,数值为1的计数为0个,则可以确定利用所述染色位进行报文流量性能检测与该报文的其他业务不存在冲突。可以理解,下表5中,如果所述第一统计值中,数值为0的计数为0个,数值为1的计数为10个,以及第二统计值中,数值为0的计数为0个,数值为1的计数为10个,则也可以确定利用所述染色位进行报文流量性能检测与该报文的其他业务不存在冲突。As shown in Table 5 below, among the first statistical values of the first dyed bits in the plurality of messages received by the ingress node (here, 10 are taken as an example), the counts with a value of 0 are 10, and the value is 1 The count is 0, and among the second statistical values of the first colored bits in multiple messages received by the egress node, the count of the value 0 is 10, and the count of the value 1 is 0, then it can be determined that the use There is no conflict between the packet flow performance detection performed by the dyed bits and other services of the packet. It can be understood that in Table 5 below, if in the first statistical value, counts with a value of 0 are 0, counts with a value of 1 are 10, and in the second statistical value, counts with a value of 0 are 0 , and the number of counts with a value of 1 is 10, then it can also be determined that there is no conflict between using the dyed bit to perform packet traffic performance detection and other services of the packet.

表5多个报文中第一染色位数值统计值Table 5 Statistical value of the first coloring bit value in multiple messages

入口节点将报文转发到出口节点的过程中可能出现丢包的情况,因此会导致入口节点和出口节点统计到的报文总数不相同,如下表6所示,所述入口节点接收到的多个报文中(此处以10个为例)的第一染色位的第一统计值中,数值为0的计数为10个,数值为1的计数为0个。由于可能出现丢包的情况,所述出口节点接收到的多个报文中的第一染色位的第二统计值中,数值为0的计数为8个,数值为1的计数为0个。由于第一统计值与第二统计值都为0,因此可以确定所述染色位与该报文的其它业务不存在冲突,可以利用第一染色位进行报文流性能测量。同样可以理解,下表6中,如果所述第一统计值中,数值为0的计数为0个,数值为1的计数为10个,以及第二统计值中,数值0的计数为0,数值为1的计数为8个,则也可以确定利用所述染色位进行报文流性能检测与该报文的其它业务不存在冲突。Packet loss may occur when the ingress node forwards packets to the egress node, so the total number of packets counted by the ingress node and the egress node will be different, as shown in Table 6 below, the number of packets received by the ingress node Among the first statistical values of the first dyed bits in a message (here, 10 are taken as an example), counts with a value of 0 are 10, and counts with a value of 1 are 0. Due to possible packet loss, among the second statistical values of the first colored bits in the plurality of messages received by the egress node, there are 8 counts with a value of 0, and 0 counts with a value of 1. Since both the first statistical value and the second statistical value are 0, it can be determined that there is no conflict between the colored bit and other services of the packet, and the first colored bit can be used to measure packet flow performance. It can also be understood that in the following table 6, if in the first statistical value, the count of the value 0 is 0, the count of the value 1 is 10, and in the second statistical value, the count of the value 0 is 0, If the number of counts with a value of 1 is 8, it can also be determined that there is no conflict between using the dyed bit to perform packet flow performance detection and other services of the packet.

表6多个报文中第一染色位数值统计值Table 6 Statistical value of the first coloring bit value in multiple messages

当所述入口节点接收到的所述第一染色位的第一统计值与所述出口节点接收到的第一染色位的第二统计值不相同时,则确定存在冲突。When the first statistical value of the first colored bit received by the ingress node is different from the second statistical value of the first colored bit received by the egress node, it is determined that there is a conflict.

如下表7所示,当所述入口节点接收到的多个报文中(此处以10个为例))的第一染色位的第一统计值中,数值为0的计数为8个,数值为2的计数为0个时,则可以不用等到接收出口节点的第二统计值即可直接确定利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突;或者当出口节点接收到的多个报文中的第一染色位的第二统计值中,数值为0的计数为8个,数值为1的计数为2个时,也可以不同等到接收入口节点的第一统计值即可直接确定利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突。As shown in Table 7 below, when the number of messages received by the entry node (take 10 as an example here) in the first statistical value of the first dyed bit, the number of counts with a value of 0 is 8, and the value When the count of 2 is 0, it can be directly determined that there is a conflict between using the dyed bit to perform message traffic performance detection and other services of the message without waiting to receive the second statistical value of the egress node; or when the egress node Among the second statistical values of the first colored bits in the received multiple messages, when the count of the value 0 is 8, and the count of the value 1 is 2, it may not wait until the first statistical value of the entry node is received. It can be directly determined that there is a conflict between using the dyed bit to perform packet traffic performance detection and other services of the packet.

表8多个报文中第一染色位数值统计值Table 8 Statistical value of the first coloring bit value in multiple messages

在另一具体实施方式中,当所述入口节点接收到的所述第一染色位的第一统计值中,数值为0的统计值和针对数值为1的统计值都不为0,或者当所述出口节点接收到的所述第一染色位的第二统计值中,数值为0的统计值和针对数值为1的统计值都不为0时,则确认为异常,例如可能为无业务流量或者IP FPM的流量特征与实际业务流量不匹配等,并提示用户检查配置或者检查网络情况。可以理解在这种情况下,在这种情况下也可以默认为利用所述染色位进行报文流量性能检测与该报文的其他业务存在冲突,而选择其他染色位继续进行上述判断。In another specific implementation manner, when the first statistical value of the first colored bit received by the ingress node, neither the statistical value with a value of 0 nor the statistical value with a value of 1 is 0, or when In the second statistical value of the first colored bit received by the egress node, if the statistical value for the value of 0 and the statistical value for the value of 1 are not 0, it is confirmed as abnormal, for example, it may be no service The traffic or the traffic characteristics of IP FPM do not match the actual service traffic, etc., and the user is prompted to check the configuration or check the network status. It can be understood that in this case, it can also be defaulted that using the dyed bit to perform packet traffic performance detection conflicts with other services of the packet, and select other dyed bits to continue the above judgment.

在入口节点和出口节点接收染色位配置信息之后至入口节点和出口节点根据染色位配置信息判断染色位是否与其它业务存在冲突之前,所述方法还包括:After the ingress node and the egress node receive the dyed bit configuration information and before the ingress node and the egress node judge whether the dyed bit conflicts with other services according to the dyed bit configuration information, the method further includes:

控制设备通知入口节点周期性的将所述染色位置位为1或者周期性的将所述染色位复位为0。The control device notifies the ingress node to periodically set the colored bit to 1 or periodically reset the colored bit to 0.

举例来说,入口节点根据控制设备的通知,在一个周期内将待检测染色位置位为1。入口节点在下一个周期内将待检测染色位复位为0,对染色位进行特征标识。For example, the entry node sets the dyeing position to be detected as 1 in one cycle according to the notification of the control device. In the next cycle, the entry node resets the dyed bits to be detected to 0, and performs characteristic identification on the dyed bits.

入口节点接收到染色位的位置信息后,在设定周期内对染色位进行特征标识,这种特征标识方法与IP FPM流性能测量中的特征标识方法相同。然后入口节点和出口节点采用S302中的方法,收集和统计染色位的数据信息并将所述所述数据信息上报给控制设备,由控制设备根据上述相同的计算方法来判断染色位是否与该报文的其它业务存在冲突。After the ingress node receives the location information of the dyed bits, it performs feature identification on the dyed bits within a set period. This feature identification method is the same as the feature identification method in IP FPM flow performance measurement. Then the entry node and the exit node adopt the method in S302 to collect and count the data information of the dyed bits and report the data information to the control device, and the control device judges whether the dyed bits are consistent with the reported data according to the same calculation method as above. Wen's other business conflicts.

入口节点对待检测染色位进行周期性特征标识的方法与IP FPM流性能检测的方法相同,因此这种检测方法更加接近IP FPM流性能检测的要求。另一方面,如下表9所示,入口节点接收到待检测染色位的位置信息后,对接收到的多个报文中(此处以10个为例)的第一染色位的第一统计值中,数值为0的计数为8,数值为1的计数为2。入口节点根据控制设备的要求在设定周期内将待检测染色位复位为0,因此入口节点在对染色位进行特征标识之后再次统计待检测染色位的第一统计值,数值为0的计数为10个,数值为1的计数为0个。所述出口节点接收到的多个报文中第一染色位的第二统计值中,数值为0的计数为10个,数值为1的计数为0个。由于入口节点在进行特征标识之后的第一统计值与出口节点的第二统计值中值为1均有大于0的整数计数,值为0均无计数,因此可以确定所述染色位与该报文的其它业务不存在冲突。如上表7中所示,在入口节点不对待检测染色位进行周期性特征标识,如果出现表7中所统计的数值,则会直接确定IP FPM流性能检测的染色位与其它业务存在冲突。如果入口节点和出口节点进行特征标识后,入口节点和出口节点同样是值为0均有大于0的整数计数,值为1技术均为0,则同样可以确认所述染色位与该报文的其它业务不存在冲突。因此,上述方法使得染色位冲突判断结果更加准确。The method of periodical feature identification of the color bit to be detected by the ingress node is the same as the method of IP FPM flow performance detection, so this detection method is closer to the requirements of IP FPM flow performance detection. On the other hand, as shown in Table 9 below, after the ingress node receives the position information of the dyed bits to be detected, the first statistical value of the first dyed bits in the received multiple messages (here 10 are taken as an example) In , the count of 0 is 8, and the count of 1 is 2. The entry node resets the coloring bit to be detected to 0 within the set period according to the requirements of the control device, so the entry node counts the first statistical value of the coloring bit to be detected after the characteristic identification of the coloring bit, and the count of the value of 0 is 10, the count of 1 is 0. Among the second statistical values of the first colored bits in the plurality of messages received by the egress node, counts with a value of 0 are 10, and counts with a value of 1 are 0. Since the first statistical value of the entry node after the feature identification and the second statistical value of the exit node have an integer count greater than 0 for a value of 1, and have no count for a value of 0, it can be determined that the coloring bit and the report There is no conflict with Wen's other business. As shown in Table 7 above, the ingress node does not perform periodic feature identification on the dyed bit to be detected. If the statistical value in Table 7 appears, it will be directly determined that the dyed bit of IP FPM flow performance detection conflicts with other services. If after the ingress node and the egress node carry out the feature identification, the ingress node and the egress node also have an integer count greater than 0 with a value of 0, and a value of 1 means that both are 0, then it can also be confirmed that the dyed bit is consistent with the message's There is no conflict with other businesses. Therefore, the above method makes the result of judging the color bit conflict more accurate.

表9多个报文中第一染色位数值统计值Table 9 Statistical value of the first coloring bit value in multiple messages

S303当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的配置信息下发到入口节点和出口节点,所述入口节点为所述报文流性能检测的始端,所述出口节点为所述报文流性能检测的末端。S303 When there is no conflict between the dyed bit and other services of the message, send the configuration information of the dyed bit to an ingress node and an egress node, and the ingress node is the start end of the packet flow performance detection , the egress node is the end of the packet flow performance detection.

举例来说,通过检测确定染色位与该报文的其它业务不存在冲突的情况下,SDN控制器将该染色位的位置通过下发到入口节点和出口节点。入口节点和出口节点根据SDN控制器下发的信息确定染色位的位置后,入口节点周期性的对染色位进行特征标识,比如在一个周期将染色位置位为1,在下一个周期复位为0,从而可将业务报文按照染色位的标识划分为不同的测量区,比如将染色位标识为1的划分为第一测量区,将标识为0的划分为第二测量区。For example, when it is determined through detection that there is no conflict between the dyed bit and other services of the packet, the SDN controller sends the position of the dyed bit to the ingress node and the egress node. After the ingress node and the egress node determine the position of the dyed bit according to the information sent by the SDN controller, the ingress node periodically identifies the characteristic of the dyed bit, such as setting the dyed position to 1 in one cycle and resetting it to 0 in the next cycle. Therefore, the service packets can be divided into different measurement areas according to the identification of the color bit, for example, the color bit identification of 1 is divided into the first measurement area, and the identification of the color bit is 0 is divided into the second measurement area.

S304从所述入口节点接收第一统计数据,并从所述出口节点接收第二统计数据,所述第一统计数据为所述入口节点在设定周期内对染色为进行标识的统计数据,所述第二统计数据为所述出口节点在所述周期内对染色位的统计数据。S304 Receive first statistic data from the entry node, and receive second statistic data from the exit node, the first statistic data is the statistic data for the entry node to identify dyeing within a set period, so The second statistical data is the statistical data of the dyed bits by the egress node in the period.

举例来说,入口节点和出口节点根据染色位的特征标识将业务报文划分为不同测量区。入口节点和出口节点对不同测量去分别进行测量统计,并将测量统计的数据上报给控制设备。For example, the ingress node and the egress node divide the service packets into different measurement areas according to the characteristic identification of the colored bits. The ingress node and the egress node respectively perform measurement statistics for different measurements, and report the measurement statistics data to the control device.

S305根据所述第一统计数据和所述第二统计数据获得报文流性能检测数据。S305 Obtain packet flow performance detection data according to the first statistical data and the second statistical data.

举例来说,控制设备接收到入口节点和出口节点发送的第一统计数据和第二统计数据后,根据所述数据获得报文流性能测量结果。以测量报文丢包统计为例,如下表10所示,如果入口节点统计标识为1的报文个数为10,出口节点统计获得的标识为1的报文个数为9个,则可以计算出业务报文的丢包数为1。For example, after receiving the first statistical data and the second statistical data sent by the ingress node and the egress node, the control device obtains a packet flow performance measurement result according to the data. Taking packet loss statistics of measurement packets as an example, as shown in Table 10 below, if the ingress node counts 10 packets with the flag 1, and the egress node counts 9 packets with the flag 1, then you can The calculated packet loss number of service packets is 1.

表10业务报文丢包统计Table 10 Service packet loss statistics

图4为本申请实施例提供一种设备结构示意图。举例来说,所述设备400可以是图1所示的控制设备104。所述控制设备还可以是图2、图3A和图3B方法中的控制设备。所述控制设备400包括选择单元401、检测单元402、发送单元403和处理单元404。FIG. 4 is a schematic diagram of a device structure provided by an embodiment of the present application. For example, the device 400 may be the control device 104 shown in FIG. 1 . The control device may also be the control device in the methods shown in FIG. 2 , FIG. 3A and FIG. 3B . The control device 400 includes a selection unit 401 , a detection unit 402 , a sending unit 403 and a processing unit 404 .

选择单元401用于从所述报文中可选择的比特位选择待检测的染色位。The selection unit 401 is configured to select the coloring bits to be detected from the selectable bits in the message.

检测单元402用于根据选择单元选择的染色位,检测所述报文的所述染色位是否与所述报文的其它业务存在冲突。The detecting unit 402 is configured to detect whether the colored bits of the message conflict with other services of the message according to the colored bits selected by the selecting unit.

发送单元403用于当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的第一配置信息下发到入口节点和出口节点。所述入口节点为所述报文流性能检测的始端。所述出口节点为所述报文流性能检测的末端。The sending unit 403 is configured to send the first configuration information of the dyed bits to the ingress node and the egress node when there is no conflict between the dyed bits and other services of the message. The ingress node is the starting end of the packet flow performance detection. The egress node is the end of the packet flow performance detection.

处理单元404用于根据所述入口节点和出口节点上报的统计数据得到报文流性能检测数据。The processing unit 404 is configured to obtain packet flow performance detection data according to the statistical data reported by the ingress node and the egress node.

可选的,处理单元404还用于从所述入口节点接收第一统计数据,从所述出口节点接收第二统计数据。并根据所述第一统计数据和所述第二统计数据获得报文流性能检测数据。所述第一统计数据为所述入口节点在设定周期内对多个报文的所述染色位进行标识的统计数据。所述第二统计数据为所述出口节点在所述设定周期内对多个报文的所述染色位进行标识的统计数据。Optionally, the processing unit 404 is further configured to receive first statistical data from the ingress node, and receive second statistical data from the egress node. And obtain packet flow performance detection data according to the first statistical data and the second statistical data. The first statistical data is statistical data of the ingress node identifying the colored bits of multiple packets within a set period. The second statistical data is statistical data of the egress node identifying the colored bits of multiple packets within the set period.

可选的,检测单元402还用于将所述染色位的第二配置信息下发到所述入口节点和所述出口节点。所述的第二配置信息包括所述染色位的位置信息。检测单元402接收所述入口节点根据所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据,并根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。Optionally, the detection unit 402 is further configured to deliver the second configuration information of the dyed bit to the entry node and the exit node. The second configuration information includes position information of the dyed bits. The detecting unit 402 receives the first detection data obtained by the entry node according to the position information of the dyed bit and the second detection data obtained by the exit node according to the position information of the dyed bit, and according to the first detection data of the entry node The first detection data and the second detection data of the egress node determine whether the dyed bits conflict with other services of the message. The first detection data is the data that the entry node detects the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

可选的,所述染色位的第二配置信息进一步包括所述设定周期的指示信息。Optionally, the second configuration information of the dyed bits further includes indication information of the setting period.

可选的,所述的所述染色位的第二配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息;所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。Optionally, the second configuration information of the coloring bit further includes instructing the ingress node to periodically set the coloring bit of the multi-packet to 1 or periodically set the coloring bit of the multi-packet to 1. The information that the bit is reset to 0; the first detection data of the entry node and the second detection data of the exit node are based on the entry node periodically setting the dyed position of the multi-message to 1 or periodically It is obtained by resetting the colored bit of the multi-gram to 0.

可选的,所述设备还包括配置单元405,其中,所述配置单元405还用于在将所述染色位的第二配置信息下发到所述入口节点和所述出口节点之后以及在接收所述入口节点的第一检测数据和所述出口节点的第二检测数据之前,通知入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0。所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。Optionally, the device further includes a configuration unit 405, wherein the configuration unit 405 is further configured to send the second configuration information of the colored bits to the entry node and the exit node and receive Before the first detection data of the ingress node and the second detection data of the egress node, the ingress node is notified to periodically set the coloring position of the multi-message to 1 or periodically set the coloring position of the multi-message to 1. Colored bits are reset to 0. The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

可选的,所述发送单元403用于当所述第一检测数据的数值集与所述第二检测数据的数值集相同且都为1或者都为0时,将所述染色位的第一配置信息下发到入口节点和出口节点,所述入口节点为所述报文流性能检测的始端,所述出口节点为所述报文流性能检测的末端。Optionally, the sending unit 403 is configured to: when the value set of the first detection data and the value set of the second detection data are the same and both are 1 or both are 0, the first The configuration information is delivered to an ingress node and an egress node, the ingress node is the start of the packet flow performance detection, and the egress node is the end of the packet flow performance detection.

可选的,所述发送单元403用于当第一统计值和第三统计值都为大于0的整数,且第二统计值与第四统计值都为0时,所述染色位与所述报文的其它业务不存在冲突。所述第一检测数据包括第一统计值和第二统计值。所述第一统计值为所述染色位为0的报文个数。所述第二统计值为所述染色位为1的报文个数。所述第二检测数据包括第三统计值和第四统计值。所述第三统计值为所述染色位为0的报文个数,所述第四统计值为所述染色位为1的报文个数。Optionally, the sending unit 403 is configured to, when both the first statistical value and the third statistical value are integers greater than 0, and the second statistical value and the fourth statistical value are both 0, the coloring bit and the There is no conflict with other services of the message. The first detection data includes a first statistical value and a second statistical value. The first statistical value is the number of packets with the color bit being 0. The second statistical value is the number of packets with the dyed bit being 1. The second detection data includes a third statistical value and a fourth statistical value. The third statistical value is the number of packets with the dyed bit being 0, and the fourth statistical value is the number of packets with the dyed bit being 1.

或者当所述第二统计值和所述第四统计值都为大于0的整数时,且所述第一统计值和所述第三统计值都为0时,确定所述染色位与所述报文的其它业务不存在冲突。Or when both the second statistical value and the fourth statistical value are integers greater than 0, and the first statistical value and the third statistical value are both 0, determine the relationship between the dyed bit and the There is no conflict with other services of the message.

图5为本发明实施例提供一种设备的结构示意图。本实施例提供的控制设备500可以应用于图1的应用场景中,也可以应用于图2、图3A和3B实施例的方法中,实现其功能。FIG. 5 is a schematic structural diagram of a device provided by an embodiment of the present invention. The control device 500 provided in this embodiment can be applied to the application scenario in FIG. 1 , and can also be applied to the methods in the embodiments in FIG. 2 , and FIGS. 3A and 3B to realize its functions.

如图5所示,设备500包括处理器501、网络接口502。可选的,控制设备500还包括存储器503。As shown in FIG. 5 , a device 500 includes a processor 501 and a network interface 502 . Optionally, the control device 500 further includes a memory 503 .

处理器501包括但不限于中央处理器(英文:central processing unit,简称:CPU),网络处理器(英文:network processor,简称:NP),专用集成电路(英文:application-specific integrated circuit,简称:ASIC)或者可编程逻辑器件(英文:programmable logic device,缩写:PLD)中的一个或多个。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:genericarray logic,缩写:GAL)或其任意组合。Processor 501 includes but is not limited to central processing unit (English: central processing unit, referred to as: CPU), network processor (English: network processor, referred to as: NP), application-specific integrated circuit (English: application-specific integrated circuit, referred to as: One or more of ASIC) or programmable logic device (English: programmable logic device, abbreviation: PLD). The above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), field-programmable logic gate array (English: field-programmable gate array, abbreviated: FPGA), general array logic (English: genericarray logic , Abbreviation: GAL) or any combination thereof.

网络接口502可以是有线接口,例如光纤分布式数据接口(英文:FiberDistributed Data Interface,简称:FDDI)、以太网(英文:Ethernet)接口。网络接口702也可以是无线接口,例如无线局域网接口。The network interface 502 may be a wired interface, such as a Fiber Distributed Data Interface (English: Fiber Distributed Data Interface, FDDI for short), or an Ethernet (English: Ethernet) interface. Network interface 702 may also be a wireless interface, such as a wireless local area network interface.

存储器503可以是包括但不限于内容寻址存储器(英文:content-addressablememory,简称:CAM),例如三态内容寻址存储器(英文:ternary CAM,简称:TCAM),随机存取存储器(英文:random-access memory,简称:RAM)。The memory 503 may include but not limited to content-addressable memory (English: content-addressable memory, referred to as: CAM), such as tri-state content-addressable memory (English: ternary CAM, referred to as: TCAM), random access memory (English: random -access memory, referred to as: RAM).

存储器503也可以集成在处理器501中。如果存储器503和处理器501是相互独立的器件,存储器503和处理器501相连,例如存储器503和处理器501可以通过总线通信。网络接口502和处理器501可以通过总线通信,网络接口502也可以与处理器501直连。The memory 503 can also be integrated in the processor 501 . If the memory 503 and the processor 501 are independent devices, the memory 503 and the processor 501 are connected, for example, the memory 503 and the processor 501 may communicate through a bus. The network interface 502 and the processor 501 may communicate through a bus, and the network interface 502 may also be directly connected to the processor 501 .

处理器501用于执行:Processor 501 is used to perform:

从所述报文中选择染色位;Selecting colored bits from the message;

检测所述报文的所述染色位是否与所述报文的其它业务存在冲突;Detecting whether the dyed bit of the message conflicts with other services of the message;

当所述染色位与所述报文的其它业务不存在冲突时,将所述染色位的第一配置信息下发到入口节点和出口节点,所述入口节点为所述报文流性能检测的始端,所述出口节点为所述报文流性能检测的末端;When there is no conflict between the dyed bit and other services of the message, the first configuration information of the dyed bit is sent to the ingress node and the egress node, and the ingress node is the detection node of the packet flow performance a start end, the egress node is the end of the packet flow performance detection;

根据所述入口节点和出口节点上报的统计数据得到报文流性能检测数据。The packet flow performance detection data is obtained according to the statistical data reported by the ingress node and the egress node.

所述设备500可以实现的其他附加功能,以及与其他设备的交互过程,请参照方法实施例中对控制设备的描述,在这里不再赘述。For other additional functions that the device 500 can implement, as well as the interaction process with other devices, please refer to the description of the control device in the method embodiment, and details will not be repeated here.

图6为本申请实施例提供又一种设备结构示意图。举例来说,所述设备600可以是图1所示的控制设备104。所述控制设备还可以是图2、图3A和图3B方法中的控制设备。所述控制设备600包括发送单元601、接收单元602和检测单元603。FIG. 6 is a schematic diagram of another device structure provided by the embodiment of the present application. For example, the device 600 may be the control device 104 shown in FIG. 1 . The control device may also be the control device in the methods shown in FIG. 2 , FIG. 3A and FIG. 3B . The control device 600 includes a sending unit 601 , a receiving unit 602 and a detecting unit 603 .

发送单元601用于将报文的染色位的配置信息发送给入口节点和出口节点,所述的染色位的配置信息包括所述染色位的位置信息。The sending unit 601 is configured to send the configuration information of the colored bits of the message to the ingress node and the egress node, where the configuration information of the colored bits includes the position information of the colored bits.

接收单元602用于接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。The receiving unit 602 is configured to receive the first detection data obtained by the entry node according to the position information of the dyed bits and the second detection data obtained by the exit node according to the position information of the dyed bits.

检测单元603用于根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。The detection unit 603 is configured to judge whether the colored bit conflicts with other services of the message according to the first detection data of the ingress node and the second detection data of the egress node. The first detection data is the data that the entry node detects the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

可选的,发送单元601将报文的染色位的配置信息发送给入口节点和出口节点。所述的染色位的配置信息进一步包括指示所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0的信息。所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。Optionally, the sending unit 601 sends the configuration information of the colored bit of the message to the ingress node and the egress node. The configuration information of the color bit further includes information indicating that the ingress node periodically sets the color bit of the multi-packet to 1 or periodically resets the color bit of the multi-packet to 0. The first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the dyed position of the multi-message to 1 or periodically setting the coloring position of the multi-message to 1. obtained by resetting the colored bits to 0.

可选的,所述设备还包括配置单元604,其中,所述配置单元604用于在将所述染色位的配置信息下发到所述入口节点和所述出口节点之后以及在接收所述入口节点的第一检测数据和所述出口节点的第二检测数据之前,通知入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0,所述入口节点的第一检测数据和所述出口节点的第二检测数据是根据所述入口节点周期性的将多报文的所述染色位置位为1或者周期性的将多报文的所述染色位复位为0获得的。Optionally, the device further includes a configuration unit 604, wherein the configuration unit 604 is configured to send the configuration information of the colored bit to the entry node and the exit node and receive the entry Before the first detection data of the node and the second detection data of the egress node, the ingress node is notified to periodically set the coloring bit of the multi-message to 1 or periodically reset the coloring bit of the multi-message is 0, the first detection data of the ingress node and the second detection data of the egress node are based on the ingress node periodically setting the coloring position of the multi-message to 1 or periodically setting the coloring position of the multi-message The text obtained by resetting the dye bit to 0.

图7为本发明实施例提供一种设备的结构示意图。本实施例提供的控制设备700可以是图1的应用场景中的控制设备104,也可以应用于图2、图3A和3B实施例的方法中,实现其功能。FIG. 7 is a schematic structural diagram of a device provided by an embodiment of the present invention. The control device 700 provided in this embodiment may be the control device 104 in the application scenario of FIG. 1 , and may also be applied to the methods in the embodiments of FIGS. 2 , 3A and 3B to realize its functions.

如图7所示,设备700包括处理器701、网络接口702。可选的,控制设备700还包括存储器703。As shown in FIG. 7 , a device 700 includes a processor 701 and a network interface 702 . Optionally, the control device 700 further includes a memory 703 .

处理器701包括但不限于中央处理器(英文:central processing unit,简称:CPU),网络处理器(英文:network processor,简称:NP),专用集成电路(英文:application-specific integrated circuit,简称:ASIC)或者可编程逻辑器件(英文:programmable logic device,缩写:PLD)中的一个或多个。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:genericarray logic,缩写:GAL)或其任意组合。Processor 701 includes but is not limited to central processing unit (English: central processing unit, referred to as: CPU), network processor (English: network processor, referred to as: NP), application-specific integrated circuit (English: application-specific integrated circuit, referred to as: One or more of ASIC) or programmable logic device (English: programmable logic device, abbreviation: PLD). The above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), field-programmable logic gate array (English: field-programmable gate array, abbreviated: FPGA), general array logic (English: genericarray logic , Abbreviation: GAL) or any combination thereof.

网络接口702可以是有线接口,例如光纤分布式数据接口(英文:FiberDistributed Data Interface,简称:FDDI)、以太网(英文:Ethernet)接口。网络接口702也可以是无线接口,例如无线局域网接口。The network interface 702 may be a wired interface, such as a Fiber Distributed Data Interface (English: Fiber Distributed Data Interface, FDDI for short), or an Ethernet (English: Ethernet) interface. Network interface 702 may also be a wireless interface, such as a wireless local area network interface.

存储器703可以是包括但不限于内容寻址存储器(英文:content-addressablememory,简称:CAM),例如三态内容寻址存储器(英文:ternary CAM,简称:TCAM),随机存取存储器(英文:random-access memory,简称:RAM)。The memory 703 may include but not limited to content-addressable memory (English: content-addressable memory, referred to as: CAM), such as tri-state content-addressable memory (English: ternary CAM, referred to as: TCAM), random access memory (English: random -access memory, referred to as: RAM).

存储器703也可以集成在处理器701中。如果存储器703和处理器701是相互独立的器件,存储器703和处理器701相连,例如存储器703和处理器701可以通过总线通信。网络接口702和处理器701可以通过总线通信,网络接口702也可以与处理器701直连。The memory 703 can also be integrated in the processor 701 . If the memory 703 and the processor 701 are independent devices, the memory 703 and the processor 701 are connected, for example, the memory 703 and the processor 701 may communicate through a bus. The network interface 702 and the processor 701 may communicate through a bus, and the network interface 702 may also be directly connected to the processor 701 .

处理器701用于执行:Processor 701 is used to perform:

控制设备将报文的染色位的配置信息发送给入口节点和出口节点。所述的染色位的配置信息包括所述染色位的位置信息。The control device sends the configuration information of the colored bit of the message to the ingress node and the egress node. The configuration information of the dyed position includes position information of the dyed position.

所述控制设备接收所述接收所述入口节点根据所述所述染色位的位置信息获得的第一检测数据和所述出口节点根据所述染色位的位置信息获得的第二检测数据。The control device receives the first detection data obtained by the ingress node according to the position information of the dyed bits and the second detection data obtained by the egress node according to the position information of the dyed bits.

根据所述入口节点的第一检测数据和所述出口节点的第二检测数据判断所述染色位是否与所述报文的其它业务存在冲突。所述第一检测数据为所述入口节点在设定周期内对染所述色位的数值进行检测的数据。所述第二检测数据为所述出口节点在所述设定周期内对所述染色位的数值进行检测的数据。and judging whether the colored bit conflicts with other services of the message according to the first detection data of the entry node and the second detection data of the exit node. The first detection data is the data that the entry node detects the value of the color position within a set period. The second detection data is data that the egress node detects on the value of the dyed bit within the set period.

所述设备700可以实现的其他附加功能,以及与其他设备的交互过程,请参照方法实施例中对控制设备的描述,在这里不再赘述。For other additional functions that the device 700 can implement, as well as the interaction process with other devices, please refer to the description of the control device in the method embodiment, and details will not be repeated here.

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

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

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

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

所述集成的单元如果以硬件结合软件的形式实现并作为独立的产品销售或使用时,所述软件可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案对现有技术做出贡献的部分技术特征可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分或全部步骤。而前述的存储介质可以是U盘、移动硬盘、只读存储器(简称:ROM,英文:Read-Only Memory)、随机存取存储器(简称:RAM,英文:Random Access Memory)、磁碟或者光盘。If the integrated unit is realized in the form of hardware combined with software and sold or used as an independent product, the software can be stored in a computer-readable storage medium. Based on this understanding, some of the technical features that the technical solution of the present invention contributes to the prior art can be embodied in the form of software products, the computer software products are stored in a storage medium, and include several instructions to make a computer A device (which may be a personal computer, a server, or a network device, etc.) executes part or all of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium can be a U disk, a mobile hard disk, a read-only memory (abbreviation: ROM, English: Read-Only Memory), a random access memory (abbreviation: RAM, English: Random Access Memory), a magnetic disk or an optical disc.

本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner, and the same and similar parts of the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant details, please refer to the description of the method embodiments.

应理解,在本申请的各种实施例中,上述各方法的序号的大小并不意味着执行顺序的先后,各方法的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present application, the serial numbers of the above-mentioned methods do not mean the order of execution, and the execution order of each method should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的装置或者方法,能够以电子硬件实现。或者,能够以电子硬件和计算机软件的结合来实现。为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能。Those of ordinary skill in the art may appreciate that the devices or methods of the examples described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware. Alternatively, it can be implemented as a combination of electronic hardware and computer software. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of functions in the above description. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functions using different methods for each particular application.

最后,需要说明的是:以上所述仅为本申请技术方案的较佳实施例而已,。显然,本领域技术人员可以对本申请进行各种改动和变型。Finally, it should be noted that: the above is only a preferred embodiment of the technical solution of the present application. Obviously, those skilled in the art can make various changes and modifications to the present application.

Claims (25)

The detection unit is additionally operable to the second configuration information of the dyeing position being issued to the Ingress node and the outletNode, second configuration information include the location information of the dyeing position, receive the Ingress node according to the dyeingThe first detection data and the Egress node that the location information of position obtains obtained according to the location information of the dyeing position theTwo detection datas, and institute is judged according to the first detection data of the Ingress node and the second detection data of the Egress nodeState whether dyeing position conflicts with other business presence of the message.First detection data is being set for the Ingress nodeThe data being detected in period to the numerical value for contaminating the color bits, second detection data are set for the Egress node describedThe data being detected in fixed cycle to the numerical value of the dyeing position.
CN201611255590.8A2016-12-292016-12-29Method and equipment for detecting message dye bit conflictActiveCN108259208B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611255590.8ACN108259208B (en)2016-12-292016-12-29Method and equipment for detecting message dye bit conflict

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611255590.8ACN108259208B (en)2016-12-292016-12-29Method and equipment for detecting message dye bit conflict

Publications (2)

Publication NumberPublication Date
CN108259208Atrue CN108259208A (en)2018-07-06
CN108259208B CN108259208B (en)2021-03-30

Family

ID=62722025

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611255590.8AActiveCN108259208B (en)2016-12-292016-12-29Method and equipment for detecting message dye bit conflict

Country Status (1)

CountryLink
CN (1)CN108259208B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113328903A (en)*2020-02-292021-08-31华为技术有限公司Method, device and system for detecting transmission quality
CN114073049A (en)*2019-09-212022-02-18华为技术有限公司 Method and network node for reliability measurement
WO2022037206A1 (en)*2020-08-172022-02-24鹏城实验室Network packet loss detection method and apparatus, storage medium, and network system
CN114629679A (en)*2022-01-262022-06-14深圳市风云实业有限公司Data message dyeing and detecting method and device
CN114697202A (en)*2020-12-312022-07-01华为技术有限公司Detection method and device
CN115412317A (en)*2022-08-182022-11-29深圳市风云实业有限公司 A method for verifying transmission of data message
CN115499335A (en)*2021-06-012022-12-20中国移动通信有限公司研究院 A network performance measurement method, device, communication equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101127712A (en)*2007-08-202008-02-20中兴通讯股份有限公司 A Method for Solving Synchronization Source Identification Conflict in RTP Session
CN101682621A (en)*2007-03-122010-03-24思杰系统有限公司Systems and methods for cache operations
CN103347102A (en)*2013-06-282013-10-09华为技术有限公司Identification method and device of conflict address detection message
WO2013155750A1 (en)*2012-04-162013-10-24中国人民大学Page colouring technology-based memory database access optimization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101682621A (en)*2007-03-122010-03-24思杰系统有限公司Systems and methods for cache operations
CN101127712A (en)*2007-08-202008-02-20中兴通讯股份有限公司 A Method for Solving Synchronization Source Identification Conflict in RTP Session
WO2013155750A1 (en)*2012-04-162013-10-24中国人民大学Page colouring technology-based memory database access optimization method
CN103347102A (en)*2013-06-282013-10-09华为技术有限公司Identification method and device of conflict address detection message

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙立顺: "《移动通信网的性能测量方案研究与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》*

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114073049A (en)*2019-09-212022-02-18华为技术有限公司 Method and network node for reliability measurement
CN114073049B (en)*2019-09-212023-11-17华为技术有限公司Method and network node for reliability measurement
CN113328903A (en)*2020-02-292021-08-31华为技术有限公司Method, device and system for detecting transmission quality
CN113328903B (en)*2020-02-292023-02-03华为技术有限公司Method, device and system for detecting transmission quality
WO2022037206A1 (en)*2020-08-172022-02-24鹏城实验室Network packet loss detection method and apparatus, storage medium, and network system
CN114697202A (en)*2020-12-312022-07-01华为技术有限公司Detection method and device
CN114697202B (en)*2020-12-312023-09-29华为技术有限公司 A detection method and device
CN115499335A (en)*2021-06-012022-12-20中国移动通信有限公司研究院 A network performance measurement method, device, communication equipment and storage medium
CN115499335B (en)*2021-06-012025-04-01中国移动通信有限公司研究院 A network performance measurement method, device, communication equipment and storage medium
CN114629679A (en)*2022-01-262022-06-14深圳市风云实业有限公司Data message dyeing and detecting method and device
CN114629679B (en)*2022-01-262024-02-13深圳市风云实业有限公司Data message dyeing and detecting method and device
CN115412317A (en)*2022-08-182022-11-29深圳市风云实业有限公司 A method for verifying transmission of data message

Also Published As

Publication numberPublication date
CN108259208B (en)2021-03-30

Similar Documents

PublicationPublication DateTitle
CN108259208A (en)A kind of method and apparatus of detection messages dyeing bit swiping
EP2884697B1 (en)Measuring method, device and system for network packet loss
EP2755352B1 (en)Packet loss detection method and system, sending device and receiving device
CN106375158B (en) A packet loss detection method, network equipment and system
US9680720B1 (en)Operations, administration, and maintenance (OAM) engine
US12021741B2 (en)Packet measurement method, device, and system
JP4769609B2 (en) Switch device
US8270314B2 (en)Synthetic frame loss ratio
CN106411625A (en)Link message packet loss measurement method and system, target node and initiator node
CN105391592B (en)A kind of methods, devices and systems Packet Transport Network business detecting and measured
US9282174B2 (en)Network connectivity measurement system and method
US20150036510A1 (en)Method and device for measuring ethernet performance
EP3188413B1 (en)Method, apparatus, and system for implementing packet loss detection
CN102546117A (en)Frame loss measuring method, frame loss measuring device and frame loss measuring system
US10833966B2 (en)Systems and methods for service availability determination in packet networks
WO2015096636A1 (en)Method for measuring lost packets and network device
US9331927B2 (en)Communication system, communication device, and communication method
CN114465897A (en) Method, device and system for monitoring data packets in service flow
CN106487605A (en)packet loss detection method and device
CN108632099A (en)A kind of fault detection method and device of link aggregation
CN106603322B (en)Message sending and receiving method and network equipment
CN117014335A (en)Message processing method, device, equipment and storage medium
CN110519103A (en)A kind of Fault Locating Method of heterogeneous network, device and terminal
CN102685014A (en)Method for measuring performance index of service flow and sending terminal equipment
CN113708985A (en)Flow detection method, device and system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20211222

Address after:450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after:xFusion Digital Technologies Co., Ltd.

Address before:518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before:HUAWEI TECHNOLOGIES Co.,Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp