WO2021136449A1 - Associated performance measurement method and apparatus, device, and computer readable storage medium - Google Patents

Associated performance measurement method and apparatus, device, and computer readable storage medium Download PDF

Info

Publication number
WO2021136449A1
WO2021136449A1 PCT/CN2020/141786 CN2020141786W WO2021136449A1 WO 2021136449 A1 WO2021136449 A1 WO 2021136449A1 CN 2020141786 W CN2020141786 W CN 2020141786W WO 2021136449 A1 WO2021136449 A1 WO 2021136449A1
Authority
WO
WIPO (PCT)
Prior art keywords
period
performance data
cycle
time
performance
Prior art date
Application number
PCT/CN2020/141786
Other languages
French (fr)
Chinese (zh)
Inventor
韩柳燕
Original Assignee
中国移动通信有限公司研究院
中国移动通信集团有限公司
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 中国移动通信有限公司研究院, 中国移动通信集团有限公司 filed Critical 中国移动通信有限公司研究院
Publication of WO2021136449A1 publication Critical patent/WO2021136449A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the embodiments of the present invention relate to the field of communication technology, and relate to, but are not limited to, a method, device, device, and computer-readable storage medium for detecting the associated performance.
  • OAM Operation Administration and Maintenance
  • operations operations
  • maintenance administering
  • management Management capabilities
  • OAM detection includes channel-associated OAM detection.
  • the channel-associated OAM detection is performed directly through service packets.
  • the service packets are usually colored to divide the packets into different blocks, and then based on the block. Packet loss statistics, delay measurement can also be achieved by coloring.
  • the problem of inaccurate or wrong detection results usually occurs, and the detection of the associated performance is not flexible enough.
  • the embodiments of the present application provide a method, device, device, and computer-readable storage medium for detecting the associated performance.
  • the embodiment of the present application provides a method for detecting the associated performance, and the method includes:
  • the first device and itself implement time synchronization based on a time synchronization protocol.
  • the embodiment of the present application further provides a method for detecting the associated performance, and the method includes:
  • An embodiment of the present application provides a device for detecting performance of a road following, and the device includes:
  • a receiving module configured to receive a service message marked by a cycle sent by the first device, wherein the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is different;
  • the first determining module is configured to determine the cycle rollover point of each cycle based on the marking information of the service message
  • the second determining module is configured to determine the first performance data of each period according to the period turning point of each period, and record the first time information corresponding to the first performance data of each period;
  • the sending module is configured to send the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information ;
  • the first device and itself implement time synchronization based on a time synchronization protocol.
  • An embodiment of the present application provides a device for detecting performance of a road following, and the device includes:
  • the first obtaining module is configured to obtain the second performance data of each period and the corresponding second time information reported by the first device;
  • the second acquiring module is configured to acquire the first performance data of each period and the corresponding first time information reported by the second device, wherein the first performance data of each period is marked on a period-by-period basis sent by the first device Determining that the first device and the second device implement time synchronization based on a time synchronization protocol;
  • the detection module is configured to check the communication between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information
  • the communication link carries out the associated performance test.
  • An embodiment of the present application provides a road-associated performance detection device, and the device at least includes:
  • a memory configured to store a computer program that can run on the processor
  • An embodiment of the present application provides a computer-readable storage medium in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the steps of any one of the above-mentioned methods for detecting the associated performance.
  • the embodiments of the present application provide a method, device, device, and computer-readable storage medium for detecting the associated performance.
  • the second device receives the service packet marked by the first device (sending device) on a periodic basis
  • the second device can determine the cycle rollover point of each cycle according to the mark information of the service message, and determine the first performance data of each cycle and the corresponding time information (time of generation) according to the cycle rollover point.
  • the detection unit When the detection unit receives the receiving end When reporting the first performance data and corresponding time information and the second performance data and corresponding time information reported by the sending end, since the sending end and the receiving end are time synchronized based on the time synchronization protocol, the detection device can be based on the first performance data
  • the corresponding time information and the time information corresponding to the second performance data are used to determine the first performance data and the second performance data of the corresponding period, so as to perform path-associated performance detection on the communication link between the first device and the second device .
  • it is not necessary to obtain the cycle number when performing performance testing and it is not necessary to stipulate that the first device and the second device use the same cycle duration. Therefore, the flexibility of the deployment of the associated performance testing can be improved, and the cycle time can be increased.
  • the matching of the performance data is more accurate.
  • Figure 1 is a schematic diagram of the implementation process of the associated performance detection method in the related technology
  • FIG. 2 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of an implementation process of determining the cycle rollover point of each cycle based on the marking information of the service message according to an embodiment of the application;
  • FIG. 4 is a schematic diagram of another flow chart of a method for detecting the associated performance provided by an embodiment of the application
  • FIG. 5 is a schematic diagram of the interaction flow of the method for detecting the associated performance provided by an embodiment of the application
  • FIG. 6 is a schematic flowchart of still another method for detecting the associated performance provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of a path-accompanied performance detection device provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of the composition structure of a path-associated performance detection device provided by an embodiment of the application.
  • first ⁇ second ⁇ third If a similar description of "first ⁇ second ⁇ third” appears in the application file, add the following description. In the following description, the term “first ⁇ second ⁇ third” involved is only the difference is similar Objects do not represent a specific order for objects. Understandably, “first ⁇ second ⁇ third” can be interchanged in a specific order or sequence when permitted, so that the embodiments of the application described here can be It is implemented in an order other than that shown or described here.
  • FIG. 1 is a schematic diagram of the implementation process of the associated performance detection method in the related art. As shown in Figure 1, the method includes:
  • step S101 the sending end alternately dyes the detected service flow characteristic fields according to a certain period, and at the same time counts the performance data of the service flow sent in this period, and reports it to the centralized detection unit.
  • step S102 the receiving end counts the coloring performance data of the characteristic fields of the detected service flow in this period according to the same period of the sending end, and reports it to the centralized detection unit.
  • step S103 the centralized detection unit counts and calculates the performance data of the corresponding service flow based on the performance data reported by the sending end and the receiving end, and calculates the packet loss rate and delay data of a certain period according to the performance data.
  • step S103 the detection period of the sending end and the receiving end and the data corresponding to the detection period must be able to match, so that the centralized detection unit can correctly calculate the packet loss rate and delay data of a certain period.
  • the sender and the receiver need to agree to adopt a unified dyeing flip cycle, such as both flipping in a whole second, or both flipping in half a second, in addition, the sender and the receiver
  • the terminal In addition to reporting performance data, the terminal also needs to report the period value, for example, the i-th period, so that the centralized detection unit can achieve accurate matching.
  • the disadvantage of the associated performance detection scheme in the related technology is that the sending end and the receiving end equipment must adopt a uniform cycle time. If the cycle time of the two is inconsistent, the detection will be inaccurate or completely wrong. For example, the sender flips in the whole second, and the receiver thinks it flips in half a second. Therefore, if the detection is not performed for the full second flip, an error in the detection result will occur. However, if the statistics of the number of cycles of the sending end and the receiving end are inconsistent, the sending end considers it to be the i-th cycle, and the receiving end considers it to be the i+1th cycle, the centralized detection unit will make an error when performing performance detection. These problems have affected the flexibility and accuracy of the deployment of road-associated performance detection.
  • an embodiment of the present application provides a method for detecting the associated performance, which is applied to a second device, where the second device may be a receiving end device in a detection system, and the detection system is also Including the first device (transmitting device) and the detection device.
  • the detection device can be the centralized detection unit mentioned in other embodiments.
  • the detection unit can be used for interaction between two devices, and the centralized detection unit can be used for communication between two or more devices.
  • the centralized detection unit can also include multiple detection units, and can also refer to an upgraded version of the detection unit.
  • the method provided in this embodiment can be implemented by a computer program, and when the computer program is executed, each step in the method provided in this embodiment is completed. In some embodiments, the computer program may be executed by a processor in the receiving end device.
  • FIG. 2 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application. As shown in FIG. 2, the method includes:
  • Step S201 The second device receives a service packet marked by a cycle sent by the first device.
  • the marking information of the business packets in the same period is the same, and the marking information of the business packets in adjacent periods is different.
  • the first device is the sending end device in the network associated performance detection system
  • the second device is the receiving end device in the network associated performance detection system.
  • the first device is the receiving end device in the network associated performance detection system.
  • a device and the second device implement time synchronization based on a time synchronization protocol.
  • the time synchronization protocol may be a Precision Time Protocol (PTP) protocol.
  • PTP Precision Time Protocol
  • both the first device and the second device need to support the PTP protocol.
  • the time error between the first device and the second device is within microseconds.
  • the cycle may be sent to the first device together with the detection instruction when the detection device sends the detection instruction, or may be determined by the controller of the first device itself.
  • the first device marks the first performance data based on the period.
  • the period duration of the period is equal, and for example, the period duration is 1 second (s, second).
  • the mark includes first mark information and second mark information.
  • the first mark information and the second mark information are different.
  • the mark information may be a colored mark.
  • the colored bits in the service message in a cycle are colored and marked to distinguish different cycles, and the colored bits refer to bits that perform characteristic identification on the service message. Taking the coloring position of the business packet as two coloring positions as an example, including coloring position 1 and coloring position 2, set the value of coloring position 1 to 0 and the value of coloring position 2 to 1.
  • the marked service message includes the first cycle, the second cycle, the third cycle, and the fourth cycle.
  • the marking information in the first cycle can be represented by 0, the marking information in the second cycle can be represented by a value of 1, the marking information in the third cycle can be represented by 0, and the marking information in the fourth cycle can be represented by Use 1 to represent.
  • Step S202 The second device determines the cycle rollover point of each cycle based on the marking information of the service message.
  • the receiving end can determine the period of each period according to the marking information.
  • the marking information in the first period may be represented by a value of 0, the marking information in the second period may be represented by a value of 1, the marking information in the third period may be represented by a value of 0, and the marking information in the fourth period It can be represented by a value of 1.
  • the value of 0 is continuously received, multiple values of 1 are continuously received. At this time, the time of continuously receiving multiple values of 1 can be determined as the cycle rollover point of the first cycle.
  • the cycle flip point of the third cycle can be determined.
  • the multiple can be specifically set according to actual conditions, and setting multiple can prevent the second device from determining the arrival time of the scrambled text as the cycle turning point due to the arrival of the scrambled text.
  • the cycle rollover point may also be called the cycle junction point, because the message time of one mark is very short, in milliseconds (ms, millisecond), and the period of message statistics is at least in s. , The two have orders of magnitude difference, therefore, the cycle flip point can have a certain error in determining.
  • the period duration can be determined according to the time information of the period reversal points of adjacent periods. According to the time information and period duration of any determined period reversal point, the position of the period reversal point of each period or the time information of the period reversal point can be determined.
  • Step S203 The second device determines the first performance data of each period according to the period turning point of each period, and records the first time information corresponding to the first performance data of each period.
  • the first performance data of each period when the rollover point of each period is determined, the first performance data of each period can be counted and the first time information corresponding to the first performance data of each period can be determined.
  • the first time information corresponding to the first performance data is the time information when the first performance data is calculated, that is, the time information when the first performance data is generated.
  • Step S204 The second device sends the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance according to the first performance data of each cycle and the corresponding first time information. Detection.
  • the detection unit may be integrated with the network management system, or may be an independent device.
  • the second device when the second device determines the first performance data of each cycle and the corresponding first time information, it reports the first performance data of each cycle and the corresponding first time information to the detection unit.
  • the first device will also send the second performance data and the corresponding second time to the detection unit.
  • the detection device can perform a communication link between the first device and the second device according to the first performance data and the corresponding first time information, the second performance data and the corresponding second time information Carry out associated performance testing.
  • the receiving end device when the second device (receiving end device) receives the service packet marked by the first device (sending end device) in a period, the receiving end device can determine the period of each period according to the marking information of the service packet. Cycle overturn point, and determine the first performance data and corresponding time information (time of generation) of each cycle according to the cycle overturn point.
  • the detection unit When the detection unit receives the first performance data and corresponding time information reported by the receiving end and the corresponding time information reported by the transmitting end
  • the detection device can determine according to the time information corresponding to the first performance data and the time information corresponding to the second performance data Corresponding to the first performance data and the second performance data of the period, so as to perform path-associated performance detection on the communication link between the first device and the second device.
  • it is not necessary to obtain the cycle number when performing performance testing and it is not necessary to stipulate that the first device and the second device use the same cycle duration. Therefore, the flexibility of the deployment of the associated performance testing can be improved, and the cycle time can be increased.
  • the matching of the performance data is more accurate.
  • step S202 the determination of the cycle rollover point of each cycle based on the marking information of the service message can be implemented through step S2021 to step S2023 shown in FIG. 3, and each step is performed below in conjunction with FIG. 3. Description.
  • step S2021 the second device determines the period reversal point of the first period when the second device continuously receives N pieces of the second flag information after continuously receiving the first flag information.
  • the marking information carried in the message can be identified, and the period rollover point can be determined according to the marking information of two adjacent periods.
  • the two adjacent periods include the first In the first cycle and the second cycle, the marking information of the first cycle is the first marking information, the marking information of the second cycle is the second marking information, the first marking information is represented by a value of 1, and the marking information of the second cycle is marked by a value of 0
  • N 0s are received continuously.
  • the period rollover point of the first cycle can be determined, where the period rollover point is the end of the first cycle and the beginning of the second cycle.
  • step S2022 the second device determines the period reversal point of the second period when the second device continuously receives the N first flag information after receiving the second flag information continuously.
  • the second device can determine the cycle rollover point of the second cycle and the third cycle according to the marking information of the second cycle and the third cycle, and the first performance in the second cycle
  • the tag information of the data is a value of 0.
  • the value of 1 is continuously received
  • the value of 0 is continuously received.
  • it can be determined that the value of 0 is received as the cycle turning point of the second cycle and the third cycle.
  • Step S2023 The second device determines the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period.
  • the second device determines the period duration at least according to the difference between the first period reversal point and the second period reversal point of two adjacent periods, and sets the start time of any one of the at least two adjacent periods It is the time of the reference period, based on the period length, and then determines the period reversal point of each period.
  • the reference cycle start time is 00:00:15
  • the cycle duration is 1s
  • the cycle rollover points of the two cycles after the first cycle can be determined to be 00:00:16 and 00:00:17.
  • the step S2023 the second device determines the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period, which can be implemented by the following steps:
  • step S2023A the second device determines the period duration at least according to the time information of the period reversal point of the first period and the time information of the period reversal point of the second period.
  • the period reversal point of the first period and the period reversal point of the second period are adjacent periods, and the period time when the period is marked is the same, in this case, the period reversal point of the first period can be
  • the time information of the time information and the time information of the second cycle rollover point determine the period duration.
  • the time information of the cycle rollover point of the first cycle and the second cycle are 00:00:01 and 00:00:02, respectively. It can be determined that the cycle length is 1s.
  • step S2023B the second device determines the period inversion of each period according to the time information of the period reversal point of the first period and the period duration, or according to the time information of the period reversal point of the second period and the period duration. point.
  • the period reversal point time information of each period can be determined according to the known time information of any reversal point, that is, the reversal point of each period is determined.
  • the step S2023B determining according to the time information of the period turning point of the first period and the period duration, or according to the time information of the period turning point of the second period and the period duration
  • the cycle flip point of each cycle can be achieved through the following steps:
  • Step S23B1 The second device determines the difference in the number of cycles between each cycle and a reference cycle, where the reference cycle is the first cycle or the second cycle.
  • the first cycle is determined as the reference cycle
  • the cycle rollover point of the first cycle is 0:00:01, that is, 00:00:01
  • the cycle duration is 1 second
  • the second device can determine the elapsed time After n seconds, it is the nth cycle.
  • Step S23B2 The second device determines the time difference between each period and the reference period according to the difference between the period duration and the number of periods.
  • the second device can determine that the difference between the number of cycles of the nth cycle and the number of cycles of the first cycle is n-1. Then, the time difference can be determined by multiplying the period difference by the period duration. In the embodiment of the present application, the time difference is n-1. For example, n is 6, the cycle number difference is 5, and the time difference is 5s.
  • Step S23B3 The second device determines the period reversal point of each period according to the time information of the period reversal point of the reference period and the time difference corresponding to each period.
  • the first start time of each period can be determined according to the first start time of the reference period.
  • Fig. 4 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application. As shown in Fig. 4, the method includes:
  • Step S401 The detection unit obtains the second performance data of each period and the corresponding second time information reported by the first device.
  • the second performance data of each period when the service message is marked, the second performance data of each period can be counted. Correspondingly, when the second performance data of each period is counted, it can be determined that the second performance data is generated. Time information, that is, the second time information.
  • Step S402 The detection unit obtains the first performance data of each period and the corresponding first time information reported by the second device.
  • the first performance data of each period is determined based on a service packet marked by a period sent by the first device, and the first device and the second device implement time synchronization based on a time synchronization protocol.
  • the cycle rollover point when the second device receives the service message and performs performance statistics, the cycle rollover point can be determined according to the marking information.
  • the first performance data of a cycle can be determined
  • the first time information generated by the first performance data of the period may be recorded. The first performance data of each period and the corresponding first time information are determined according to the reversal point of each period.
  • the first device and the second device implement time synchronization based on a time synchronization protocol. Both the first device and itself support the PTP protocol. After the first device and itself achieve precise time synchronization based on PTP, the time error between the first device and itself is within a microsecond level.
  • Step S403 The detection unit performs a check between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information.
  • the communication link carries out the associated performance test.
  • the performance data may be information about the number of packets with a mark, or may be time stamp information.
  • the packet loss rate can be determined based on the message data information
  • the performance data is the time stamp information
  • the time delay can be determined based on the time stamp information.
  • the first performance data and the second performance data of the corresponding period can be determined through the first time information and the second time information, and then the first performance data and the second performance data of the corresponding period can be determined. Perform path-associated performance detection on the communication link between the first device and the second device.
  • the detection device since the first device and the second device implement time synchronization based on the time synchronization protocol, when the detection device receives the second time information reported by the first device and the first time information reported by the second device At the time, the first performance data and the second performance data of the corresponding period can be determined according to the second time information and the first time information, so as to perform the path-associated performance detection on the communication link between the first device and the second device .
  • the detection device can match the period based on the time information reported by each device, which can improve the flexibility of the deployment of the associated performance detection, and the matching of the performance data in the corresponding period is more accurate.
  • step S403 the detection unit compares the first device with the second performance data of each period and the corresponding second time information, the first performance data of each period, and the corresponding first time information.
  • the associated performance test of the communication link between the second devices can be achieved through the following steps:
  • Step S4031 The detection unit determines the first target time from the respective first time information according to the respective second time information and the respective first time information, and determines the first target time corresponding to the first target time from the respective second time information.
  • the second target time wherein the difference between the first target time and the second target time is less than a preset duration threshold.
  • the detection unit may determine a first target time from the first time information, and determine a second target time corresponding to the first target time from the respective second time information, and the first target time The difference between the second target time and the second target time is less than the preset duration threshold.
  • the duration threshold is in milliseconds.
  • the preset duration threshold is 100 ms.
  • the duration threshold can be set according to specific conditions. However, considering that the sending end to the receiving end is transmitted through the network, the network transmission delay is usually within 10ms (including optical fiber transmission delay and node processing delay), so the duration threshold needs to be set to be greater than 10ms.
  • a time is determined in each first moment information reported by the second device, and because the performance detection is usually in seconds, at this time, if a time in each second moment information reported by the first device Within plus or minus 100 ms of the first starting time, it can be determined as the second target time.
  • the example is that the information at the first time includes 00:00:01:030, and the information at the second time includes 00:00:01:010. Because the difference between 00:00:01:010 and 00:00:01:030 is At this time, within 100ms, it can be determined that the first target time is 00:00:01:030, and the second target time is 00:00:01:010.
  • the first target time and the second target time are determined, it can be determined that the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are performance data of the same period.
  • Step S4032 The detection unit performs path-associated performance detection on the communication link between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
  • the detection unit may determine that the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are performance data of the same cycle.
  • the detection device performs path-associated performance detection on the communication link between the first device and the second device based on the first performance data and the second performance data.
  • the period of performance statistics is above the second level, and the minimum is 1 second, and there is an order of magnitude difference between the two. Therefore, when the difference between the first time information and the second time information of the sending end and the receiving end is within the preset duration threshold, it can be considered that the first time information and the second time information respectively correspond to the first performance data It is data of the same cycle as the second performance data. Further, according to the first performance data and the first target time, the second performance data and the second target time, the path-associated performance detection of the communication link between the first device and the second device is performed.
  • the performance detection may be at least packet loss detection.
  • the detection unit performs a test on the first device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
  • the associated performance test of the communication link with the second device can be achieved through the following steps:
  • Step S4032 A1 the detection unit obtains the difference between the number of tagged packets in the first performance data corresponding to the first target time and the number of tagged packets in the second performance data corresponding to the second target time to obtain Number of lost packets.
  • the number of markers for the first performance data is 40, and the number of markers for the second performance data is 38. That is, the number of lost packets of the first performance data and the second performance data in the corresponding period is two.
  • Step S4032 A2 The detection device determines the packet loss rate of the communication link between the first device and the second device according to the number of lost packets.
  • the packet loss rate of the communication link between the first device and the second device is 5%.
  • the performance detection is time delay detection.
  • the detection unit performs a comparison between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
  • the communication link between the two devices carries out the performance detection of the associated path, which can be achieved through the following steps:
  • Step S4032 B1 The detection unit determines the time difference between the first time stamp information in the first performance data and the second time stamp information in the second performance data.
  • the first performance data when the performance detection is delay detection, the first performance data includes first time stamp information, and the second performance data includes second time stamp information.
  • the detection unit receives the first performance data With the second performance data, the first time stamp information and the second time stamp information can be obtained, and then the time difference between the first time stamp information and the second time stamp information can be determined.
  • Step S4032 B2 The detection unit determines the time delay of the communication link between the first device and the second device according to the time difference.
  • the time difference is the time delay of the communication link between the first device and the second device.
  • the embodiments of the present application provide a method for detecting the associated performance of the road, and the method is applied to the detecting system of the associated performance of the road.
  • Schematic diagram of the process, as shown in Figure 5, the method includes:
  • step S501 the first device and the second device implement time synchronization through the PTP protocol.
  • the time error between the receiving end and the transmitting end is within a microsecond level.
  • step S502 the first device marks the service message by cycle, counts the second performance data of each cycle, and records the second time information corresponding to the second performance data.
  • the first device alternately marks the service message on a periodic basis.
  • the first device is a sending end device.
  • the business message is alternately dyed according to the preset cycle for the setting of the dyeing position 1 and the dyeing position 2, and the value of the dyeing position 1 is set to 0, and the value of the dyeing position 2 is set to 1.
  • the marking information of the service packets in the same period is the same, and the marking information of the service packets in adjacent periods is different.
  • the second time information corresponding to the second performance data is the time information when the second performance data is generated.
  • Step S503 The first device sends the second performance data and the corresponding second time information to the detection unit.
  • Step S504 The first device sends the marked service message to the receiving end device.
  • step S502 may be before step S503, or after step S503, and may also be sent at the same time.
  • Step S505 The second device determines the cycle rollover point of each cycle based on the marking information of the service message.
  • the cycle turning point of the first cycle is determined; when the second marking information is continuously received, the second marking information is continuously received.
  • N pieces of the first mark information are received, determine the period rollover point of the second period, where N is greater than a preset value, and the first period and the second period are adjacent; at least according to the first period
  • the period reversal point of and the period reversal point of the second period determine the period reversal point of each period, where N is greater than 1.
  • Step S506 The second device determines the first performance data of each period and the corresponding first time information according to the period rollover point of each period.
  • Step S507 The second device sends the first performance data and the corresponding first time information to the detection unit.
  • Step S508 The detection unit performs a check between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information.
  • the communication link carries out the associated performance test.
  • the detection unit may determine the first performance data and the second performance data in the corresponding period according to the first time and the second time, and then according to the second performance data of each period and the corresponding second time
  • the information, the first performance data of each period, and the corresponding first time information perform path-associated performance detection on the communication link between the first device and the second device.
  • the second device since the first device and the second device implement time synchronization based on the time synchronization protocol, and after the first device sends the service packet marked by the period to the second device, the second device can Determine the rollover point of each cycle according to the marking information in the service message, and then determine the first performance data of each cycle and the corresponding first time information, and report the first performance data and the corresponding first time information to the detection unit to detect The unit may determine the first performance data and the second performance data of the corresponding period according to the first time information and the second time information, so as to perform path-associated performance detection on the communication link between the first device and the second device.
  • the corresponding period is determined according to the time information reported by the first device and the second device when performing performance testing, which can improve the flexibility of the deployment of the associated performance test, and the matching of performance data in the corresponding period can be improved. accurate.
  • FIG. 6 is a schematic flowchart of the method for detecting the performance of the road provided by an embodiment of the application. As shown in FIG. 6, the method includes:
  • Step S601 the receiving end and the sending end realize time synchronization based on PTP.
  • the time error between the receiving end and the sending end is within a microsecond level.
  • step S602 the receiving end continues to identify the dyeing mark in the message after receiving the performance test dyed message, and performs message statistics, and judges the turning point of the dyeing based on the statistical result.
  • the turning point of the dyeing can be considered as the cycle junction point.
  • the coloring flag of the previous cycle is 0, when the receiving end continues to receive the packets with the coloring flag of 0, and the packets with the coloring flag of 1 are received, it may be the cycle rollover point or out-of-sequence packets. Arrival, after n consecutively received packets with the coloring flag of 1, it can be determined that it is the cycle rollover point. After several cycle flip points are judged, the cycle time information of the sending end can be determined, and the receiving end can record the time position, and then can predict the flip point of the next cycle based on the cycle time information.
  • Step S603 The sending end and the receiving end report performance data to the centralized detection unit.
  • the sending end and the receiving end report performance data, they do not need to report the period number, but report the time information when the performance data is generated along with the performance data.
  • Step S604 After collecting the performance data reported by the sending end and the receiving end, the centralized detection unit compares the periodic time information of the performance data of the two. When the periodic time information of the sending end and the receiving end is within a certain range, the performance of the corresponding period is determined data.
  • the sending end to the receiving end is transmitted through the network, and the network transmission delay is usually within 10 milliseconds (including the optical fiber transmission delay and the node processing delay).
  • the period of performance statistics is above the second level, at least 1 second, and there is an order of magnitude difference between the two. Therefore, when the time information of the sending end and the receiving end are within a certain range, it can be considered that this group of data is data of the same period. For example, if the data time information deviation between the sending end and the receiving end is within plus or minus 100ms, it is considered to be the data of the same period, so as to realize the matching of the data of each period.
  • the centralized detection unit can be integrated with network management, controller and other equipment, or it can be an independent dedicated centralized detection equipment.
  • the receiving end and the transmitting end implement accurate time synchronization based on PTP, and on this basis, the period rollover point of the performance detection data is matched with the period sequence number.
  • the receiving end receives a message that has been dyed for performance testing, it continues to identify the dye mark in it and make message statistics. Based on the statistical result, it judges the turning point of the dyeing, which is the cycle junction point, and the receiving end determines the cycle time of the sending end. Information, the receiving end can record the cycle time information, and then can predict the rollover point of the next cycle based on the cycle time information.
  • the sending end and the receiving end do not need to report the period number when reporting performance data, but report the time information when the performance data is generated along with the performance data.
  • the centralized detection unit collects the data reported by the sending end and the receiving end, it compares the time information of the two data. When the periodic time information of the sending end and the receiving end is within a certain range, it is judged that the periodic time information is within a certain range, Determine that the group of data within the cycle time is the data of the same cycle, and then perform performance testing on the data of the same cycle.
  • the embodiments of the present application provide a device for detecting performance along the road.
  • Each module included in the device and each unit included in each module can be implemented by a processor in a computer device; of course, it can also be implemented by a specific device.
  • Logic circuit implementation; in the process of implementation, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or field programmable Gate array (FPGA, Field Programmable Gate Array), etc.
  • CPU Central Processing Unit
  • MPU Microprocessor Unit
  • DSP Digital Signal Processing
  • FPGA Field Programmable Gate Array
  • FIG. 7 is a schematic structural diagram of the road-following performance detection device provided in an embodiment of this application. As shown in FIG. 7, the road-following performance detection device 700 includes:
  • the receiving module 701 is configured to receive a service packet marked by a cycle sent by the first device, where the marking information of the service packet in the same cycle is the same, and the marking information of the service packet between adjacent cycles is different.
  • the first determining module 702 is configured to determine the cycle rollover point of each cycle based on the marking information of the service message.
  • the second determining module 703 is configured to determine the first performance data of each period according to the period turning point of each period, and record the first time information corresponding to the first performance data of each period.
  • the sending module 704 is configured to send the first performance data of each period and the time information at which the first performance data of each period is generated to the detection unit, so that the detection unit can be based on the first performance data of each period and the time information. Perform performance detection based on the time information when the first performance data of each period is generated.
  • the first device and itself implement time synchronization based on a time synchronization protocol.
  • the first determining module 702 includes:
  • the first determining unit is configured to determine the period rollover point of the first period when N pieces of the second flag information are continuously received after the first flag information is continuously received;
  • the second determining unit is configured to determine the period reversal point of the second period when N of the first flag information are received continuously after the second flag information is continuously received, where N is greater than a preset value, and the The first period is adjacent to the second period;
  • the third determining unit is configured to determine the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period.
  • the third determining unit includes:
  • the first determining subunit is configured to determine the period duration at least according to the time information of the period reversal point of the first period and the time information of the period reversal point of the second period.
  • the second determining subunit is configured to determine the time information of each cycle according to the time information of the cycle turning point of the first cycle and the cycle duration, or according to the time information of the cycle turning point of the second cycle and the cycle duration Cycle rollover point.
  • the second determining subunit is further configured to:
  • the embodiment of the present application further provides a device for detecting the associated performance, and the device includes:
  • the first obtaining module is configured to obtain the second performance data of each period and the corresponding second time information reported by the first device;
  • the second acquiring module is configured to acquire the first performance data of each period and the corresponding first time information reported by the second device, wherein the first performance data of each period is marked on a period-by-period basis sent by the first device Determining that the first device and the second device implement time synchronization based on a time synchronization protocol;
  • the detection module is configured to check the communication between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information
  • the communication link carries out the associated performance test.
  • the detection module includes:
  • the fourth determining unit is configured to determine the first target time and the second target time according to the respective second moment information and the respective first moment information, wherein the difference between the first target time and the second target time is less than a preset value Duration threshold;
  • the performance detection unit is configured to perform path-associated performance detection on the communication link between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
  • the performance detection unit includes:
  • the third determining subunit is configured to determine the difference between the number of tagged packets in the first performance data corresponding to the first target time and the number of tagged packets in the second performance data corresponding to the second target time Value to get the number of lost packets;
  • the first detection subunit is configured to determine the packet loss rate of the communication link between the first device and the second device according to the number of packet losses.
  • the performance detection unit includes:
  • a fourth determining subunit configured to determine the time difference between the first time stamp information in the first performance data and the second time stamp information in the second performance data
  • the second detection subunit is configured to determine the delay of the communication link between the first device and the second device according to the time difference value.
  • the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art.
  • the computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is allowed to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, Read Only Memory (ROM, Read Only Memory), magnetic disk or optical disk and other media that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method for detecting the associated performance provided in the foregoing embodiments are implemented.
  • FIG. 8 is a schematic diagram of the structure of the path-associated performance detection device provided in an embodiment of the application.
  • the path-accompaniment performance detection device 800 includes: a process 801, at least one communication bus 802, user interface 803, at least one external communication interface 804, and memory 805.
  • the communication bus 802 is configured to implement connection and communication between these components.
  • the user interface 803 may include a display screen, and the external communication interface 804 may include a standard wired interface and a wireless interface.
  • the processor 801 is configured to execute the program of the tracking performance detection method stored in the memory, so as to implement the steps in the tracking performance detection method provided in the above-mentioned embodiment.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit;
  • the unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the foregoing program can be stored in a computer readable storage medium.
  • the execution includes The steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, a read only memory (ROM, Read Only Memory), a magnetic disk, or an optical disk.
  • the aforementioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art.
  • the computer software product is stored in a storage medium and includes several instructions for This allows an AC to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: removable storage devices, ROMs, magnetic disks or optical discs and other media that can store program codes.
  • the second device receives the service message that is marked by the cycle sent by the first device, wherein the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is the same Different; determine the cycle rollover point of each cycle based on the mark information of the service message; determine the first performance data of each cycle according to the cycle rollover point of each cycle, and record the first performance data corresponding to the first performance data of each cycle Time information; sending the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information; wherein , The first device and itself implement time synchronization based on the time synchronization protocol, and there is no need to obtain the cycle number when performing performance testing, and it is not necessary to agree that the first device and the second device use the same cycle duration, thereby improving the performance of the path.
  • the flexibility of detection deployment, and the matching of performance data in the corresponding period is more accurate.

Abstract

Disclosed are an associated performance measurement method and apparatus, a device, and a computer readable storage medium. The method comprises: receiving service packets marked by a period sent by a first device, wherein marking information of the service packets in the same period is the same, and the marking information of the service packets in adjacent periods is different; determining the period rollover point of each period on the basis of the marking information of the service packets; determining first performance data of each period according to the period rollover point of each period, and recording first time point information corresponding to the first performance data of each period; sending to a measurement unit the first performance data of each period and the corresponding first time point information, so that the measurement unit performs performance measurement according to the first performance data of each period and the corresponding first time point information, wherein the first device keeps time synchronization on the basis of a time synchronization protocol.

Description

随路性能检测方法、装置、设备及计算机可读存储介质Associated performance detection method, device, equipment and computer readable storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202010000668.1、申请日为2020年01月02日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application whose application number is 202010000668.1, and the filing date is January 02, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by reference.
技术领域Technical field
本发明实施例涉及通讯技术领域,涉及但不限于一种随路性能检测方法、装置、设备及计算机可读存储介质。The embodiments of the present invention relate to the field of communication technology, and relate to, but are not limited to, a method, device, device, and computer-readable storage medium for detecting the associated performance.
背景技术Background technique
电信级传输技术的一个重要特性是操作维护管理能力(OAM,Operation Administration and Maintenance)能力,即运营(Operation)、维护(Administration)和管理能力(Maintenance),用来提供告警、性能检测等,以保证故障可以及时发现。An important feature of carrier-class transmission technology is the operation and maintenance management capabilities (OAM, Operation Administration and Maintenance) capabilities, that is, operations (Operation), maintenance (Administration) and management capabilities (Maintenance), used to provide alarms, performance detection, etc. Ensure that the fault can be discovered in time.
OAM检测包括随路OAM检测,随路OAM检测是直接通过业务报文来进行检测,现有技术中通常通过对业务报文进行着色来将报文分成不同的块(block),然后基于block进行丢包统计,还可以通过着色来实现时延测量。但是现有技术中,通常会出现检测结果不准确或检测结果错误的问题,而且随路性能检测也不够灵活。OAM detection includes channel-associated OAM detection. The channel-associated OAM detection is performed directly through service packets. In the prior art, the service packets are usually colored to divide the packets into different blocks, and then based on the block. Packet loss statistics, delay measurement can also be achieved by coloring. However, in the prior art, the problem of inaccurate or wrong detection results usually occurs, and the detection of the associated performance is not flexible enough.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种随路性能检测方法、装置、设备及计算机可读存储介质。In view of this, the embodiments of the present application provide a method, device, device, and computer-readable storage medium for detecting the associated performance.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
本申请实施例提供一种随路性能检测方法,所述方法包括:The embodiment of the present application provides a method for detecting the associated performance, and the method includes:
接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同;Receiving a service message that is marked by a cycle sent by the first device, where the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is different;
基于所述业务报文的标记信息确定各个周期的周期翻转点;Determining the cycle rollover point of each cycle based on the marking information of the service message;
根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据对应的第一时刻信息;Determining the first performance data of each period according to the period turning point of each period, and recording the first time information corresponding to the first performance data of each period;
发送所述各个周期的第一性能数据和对应的第一时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和对应的第一时刻信息进行性能检测;Sending the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information;
其中,所述第一设备和自身基于时间同步协议实现时间同步。Wherein, the first device and itself implement time synchronization based on a time synchronization protocol.
本申请实施例再提供一种随路性能检测方法,所述方法包括:The embodiment of the present application further provides a method for detecting the associated performance, and the method includes:
获取第一设备上报的各个周期的第二性能数据和对应的第二时刻信息;Acquiring the second performance data of each cycle and the corresponding second time information reported by the first device;
获取第二设备上报的各个周期的第一性能数据和对应的第一时刻信息,其中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步;Acquire the first performance data of each period and the corresponding first time information reported by the second device, where the first performance data of each period is determined based on the service packet marked by the period sent by the first device, so The first device and the second device implement time synchronization based on a time synchronization protocol;
根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。Perform random tracking of the communication link between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information. Road performance testing.
本申请实施例提供一种随路性能检测装置,所述装置包括:An embodiment of the present application provides a device for detecting performance of a road following, and the device includes:
接收模块,配置为接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同;A receiving module, configured to receive a service message marked by a cycle sent by the first device, wherein the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is different;
第一确定模块,配置为基于所述业务报文的标记信息确定各个周期的 周期翻转点;The first determining module is configured to determine the cycle rollover point of each cycle based on the marking information of the service message;
第二确定模块,配置为根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据对应的第一时刻信息;The second determining module is configured to determine the first performance data of each period according to the period turning point of each period, and record the first time information corresponding to the first performance data of each period;
发送模块,配置为发送所述各个周期的第一性能数据和对应的第一时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和对应的第一时刻信息进行性能检测;The sending module is configured to send the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information ;
其中,所述第一设备和自身基于时间同步协议实现时间同步。Wherein, the first device and itself implement time synchronization based on a time synchronization protocol.
本申请实施例提供一种随路性能检测装置,所述装置包括:An embodiment of the present application provides a device for detecting performance of a road following, and the device includes:
第一获取模块,配置为获取第一设备上报的各个周期的第二性能数据和对应的第二时刻信息;The first obtaining module is configured to obtain the second performance data of each period and the corresponding second time information reported by the first device;
第二获取模块,配置为获取第二设备上报的各个周期的第一性能数据和对应的第一时刻信息,其中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步;The second acquiring module is configured to acquire the first performance data of each period and the corresponding first time information reported by the second device, wherein the first performance data of each period is marked on a period-by-period basis sent by the first device Determining that the first device and the second device implement time synchronization based on a time synchronization protocol;
检测模块,配置为根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。The detection module is configured to check the communication between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information The communication link carries out the associated performance test.
本申请实施例提供一种随路性能检测设备,所述装置至少包括:An embodiment of the present application provides a road-associated performance detection device, and the device at least includes:
处理器;以及Processor; and
存储器,配置为存储可在所述处理器上运行的计算机程序;A memory configured to store a computer program that can run on the processor;
其中,所述计算机程序被处理器执行时实现上述任一项所述的随路性能检测方法的步骤。Wherein, when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for detecting the associated performance are realized.
本申请实施例提供一种计算机可读存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述任一项所述的随路性能检测方法的步骤。An embodiment of the present application provides a computer-readable storage medium in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the steps of any one of the above-mentioned methods for detecting the associated performance.
本申请实施例提供一种随路性能检测方法、装置、设备及计算机可读存储介质,第二设备(接收端设备)接收第一设备(发送端设备)按周期进行标记的业务报文时,第二设备能够根据业务报文的标记信息确定各个周期的周期翻转点,并根据周期翻转点确定各个周期的第一性能数据和对应的时刻信息(产生的时刻),当检测单元接收到接收端上报第一性能数据和对应的时刻信息与发送端上报的第二性能数据和对应的时刻信息时,由于发送端和接收端是基于时间同步协议进行时间同步的,检测设备可以根据第一性能数据对应的时刻信息和第二性能数据对应的时刻信息,确定对应周期的第一性能数据和第二性能数据,从而对所述第一设备与第二设备之间的通信链路进行随路性能检测。本申请实施例中,在进行性能检测时并不需要获取周期编号,也不需要约定第一设备和第二设备采用同一周期时长,因而能够提升随路性能检测部署的灵活性,并且对应周期内的性能数据的匹配更准确。The embodiments of the present application provide a method, device, device, and computer-readable storage medium for detecting the associated performance. When the second device (receiving device) receives the service packet marked by the first device (sending device) on a periodic basis, The second device can determine the cycle rollover point of each cycle according to the mark information of the service message, and determine the first performance data of each cycle and the corresponding time information (time of generation) according to the cycle rollover point. When the detection unit receives the receiving end When reporting the first performance data and corresponding time information and the second performance data and corresponding time information reported by the sending end, since the sending end and the receiving end are time synchronized based on the time synchronization protocol, the detection device can be based on the first performance data The corresponding time information and the time information corresponding to the second performance data are used to determine the first performance data and the second performance data of the corresponding period, so as to perform path-associated performance detection on the communication link between the first device and the second device . In the embodiment of the present application, it is not necessary to obtain the cycle number when performing performance testing, and it is not necessary to stipulate that the first device and the second device use the same cycle duration. Therefore, the flexibility of the deployment of the associated performance testing can be improved, and the cycle time can be increased. The matching of the performance data is more accurate.
附图说明Description of the drawings
图1为相关技术中随路性能检测方法的实现流程示意图;Figure 1 is a schematic diagram of the implementation process of the associated performance detection method in the related technology;
图2为本申请实施例提供的随路性能检测方法的一种流程示意图;FIG. 2 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application;
图3为本申请实施例提供的基于所述业务报文的标记信息确定各个周期的周期翻转点的实现流程示意图;FIG. 3 is a schematic diagram of an implementation process of determining the cycle rollover point of each cycle based on the marking information of the service message according to an embodiment of the application;
图4为本申请实施例提供的随路性能检测方法的另一种流程示意图;FIG. 4 is a schematic diagram of another flow chart of a method for detecting the associated performance provided by an embodiment of the application;
图5为本申请实施例提供的随路性能检测方法的交互流程示意图;FIG. 5 is a schematic diagram of the interaction flow of the method for detecting the associated performance provided by an embodiment of the application;
图6为本申请实施例提供的随路性能检测方法的再一种流程示意图;FIG. 6 is a schematic flowchart of still another method for detecting the associated performance provided by an embodiment of the application; FIG.
图7为本申请实施例提供的随路性能检测装置结构示意图;FIG. 7 is a schematic structural diagram of a path-accompanied performance detection device provided by an embodiment of the application;
图8为本申请实施例提供的随路性能检测设备的组成结构示意图。FIG. 8 is a schematic diagram of the composition structure of a path-associated performance detection device provided by an embodiment of the application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of this application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the application. Those of ordinary skill in the art have not made any suggestions. All other embodiments obtained under the premise of creative labor belong to the scope of protection of this application.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, “some embodiments” are referred to, which describe a subset of all possible embodiments, but it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and Can be combined with each other without conflict.
如果申请文件中出现“第一\第二\第三”的类似描述则增加以下的说明,在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。If a similar description of "first\second\third" appears in the application file, add the following description. In the following description, the term "first\second\third" involved is only the difference is similar Objects do not represent a specific order for objects. Understandably, "first\second\third" can be interchanged in a specific order or sequence when permitted, so that the embodiments of the application described here can be It is implemented in an order other than that shown or described here.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of this application. The terminology used herein is only for the purpose of describing the embodiments of the application, and is not intended to limit the application.
为了更好地理解本申请实施例中提供的随路性能检测方法、装置、设备及计算机可读存储介质,首先,对相关技术中的随路性能检测方法的实现方式及存在的问题进行分析说明。In order to better understand the associated performance detection method, device, equipment, and computer-readable storage medium provided in the embodiments of this application, first, the implementation of the associated performance detection method in the related art and the existing problems will be analyzed and explained. .
目前,随路性能检测有一种方式,在一系列以编号排定的文件(RFC,Request For Comments)8321中,介绍了一种基于着色标记的统计方法,该方法通过对业务报文进行着色来将业务报文分成不同的块(block),然后基于不同的block进行丢包统计,图1为相关技术中随路性能检测方法的实现流程示意图,如图1所述,所述方法包括:At present, there is a way to detect the performance of the road. In a series of numbered documents (RFC, Request For Comments) 8321, a statistical method based on color marking is introduced. This method is used to color business packets. Divide business messages into different blocks, and then perform packet loss statistics based on different blocks. Figure 1 is a schematic diagram of the implementation process of the associated performance detection method in the related art. As shown in Figure 1, the method includes:
步骤S101,发送端按照一定周期对被检测的业务流特征字段进行交替染色,同时统计本周期发送的业务流的性能数据,并上报给集中检测单元。In step S101, the sending end alternately dyes the detected service flow characteristic fields according to a certain period, and at the same time counts the performance data of the service flow sent in this period, and reports it to the centralized detection unit.
步骤S102,接收端按照发送端相同的周期,统计本周期被检测业务流特征字段的染色的性能数据,并上报给集中检测单元。In step S102, the receiving end counts the coloring performance data of the characteristic fields of the detected service flow in this period according to the same period of the sending end, and reports it to the centralized detection unit.
在相关技术中,随路性能检测的丢包率和时延等数据是基于发送端和接收端分别独立上报的,接收端和发送端需要约定相同的周期。In the related art, data such as packet loss rate and time delay of the associated performance test are reported separately based on the sending end and the receiving end, and the receiving end and the sending end need to agree on the same period.
步骤S103,集中检测单元基于发送端和接收端上报的性能数据,统计并计算出对应业务流的性能数据,根据性能数据计算某个周期的丢包率和时延数据。In step S103, the centralized detection unit counts and calculates the performance data of the corresponding service flow based on the performance data reported by the sending end and the receiving end, and calculates the packet loss rate and delay data of a certain period according to the performance data.
在步骤S103中发送端和接收端的检测周期以及检测周期对应的数据必须能够匹配,集中检测单元才能正确的计算某个周期的丢包率和时延数据。In step S103, the detection period of the sending end and the receiving end and the data corresponding to the detection period must be able to match, so that the centralized detection unit can correctly calculate the packet loss rate and delay data of a certain period.
相关技术中,为了实现检测周期以及检测周期对应的数据匹配,发送端和接收端需要约定采用统一的染色翻转周期,比如都在整秒翻转,或者都在半秒翻转,另外,发送端和接收端除了需要在上报性能数据,还需要上报周期值,例如,第i个周期,这样集中检测单元才能够实现精准匹配。In related technologies, in order to achieve the detection cycle and the data matching corresponding to the detection cycle, the sender and the receiver need to agree to adopt a unified dyeing flip cycle, such as both flipping in a whole second, or both flipping in half a second, in addition, the sender and the receiver In addition to reporting performance data, the terminal also needs to report the period value, for example, the i-th period, so that the centralized detection unit can achieve accurate matching.
但在相关技术中的随路性能检测方案所存在的缺点是,发送端和接收端设备必须采用统一周期时间,如果两者周期时间不一致,则会出现检测不准确,或者完全错误的问题。例如发送端在整秒翻转,而接收端认为其在半秒翻转,因此检测时不是针对整秒翻转做检测,则会出现检测结果的错误。而如果发送端和接收端的周期数统计不一致,发送端认为是第i个周期,接收端认为是第i+1个周期,则集中检测单元在进行性能检测时会出现错误。这些问题影响了随路性能检测部署的灵活性和准确性。However, the disadvantage of the associated performance detection scheme in the related technology is that the sending end and the receiving end equipment must adopt a uniform cycle time. If the cycle time of the two is inconsistent, the detection will be inaccurate or completely wrong. For example, the sender flips in the whole second, and the receiver thinks it flips in half a second. Therefore, if the detection is not performed for the full second flip, an error in the detection result will occur. However, if the statistics of the number of cycles of the sending end and the receiving end are inconsistent, the sending end considers it to be the i-th cycle, and the receiving end considers it to be the i+1th cycle, the centralized detection unit will make an error when performing performance detection. These problems have affected the flexibility and accuracy of the deployment of road-associated performance detection.
基于相关技术所存在的问题,本申请实施例提供一种随路性能检测方法,所述方法应用于第二设备,其中,第二设备可以是检测系统中的接收端设备,在该检测系统还包括第一设备(发送端设备)和检测设备,检测 设备可以是其他实施例中提及的集中检测单元,检测单元可用于两个设备间的交互,集中检测单元可用于两个以上设备间的交互,集中检测单元还可以包括多个检测单元,也可以指升级版的检测单元。本实施例提供的方法可以通过计算机程序来实现,该计算机程序在执行的时候,完成本实施例提供的方法中各个步骤。在一些实施例中,该计算机程序可以被接收端设备中的处理器执行。图2为本申请实施例提供的随路性能检测方法的流程示意图,如图2所示,所述方法包括:Based on the problems in related technologies, an embodiment of the present application provides a method for detecting the associated performance, which is applied to a second device, where the second device may be a receiving end device in a detection system, and the detection system is also Including the first device (transmitting device) and the detection device. The detection device can be the centralized detection unit mentioned in other embodiments. The detection unit can be used for interaction between two devices, and the centralized detection unit can be used for communication between two or more devices. Interactively, the centralized detection unit can also include multiple detection units, and can also refer to an upgraded version of the detection unit. The method provided in this embodiment can be implemented by a computer program, and when the computer program is executed, each step in the method provided in this embodiment is completed. In some embodiments, the computer program may be executed by a processor in the receiving end device. FIG. 2 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application. As shown in FIG. 2, the method includes:
步骤S201,第二设备接收第一设备发送的按周期进行标记的业务报文。Step S201: The second device receives a service packet marked by a cycle sent by the first device.
其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同。Wherein, the marking information of the business packets in the same period is the same, and the marking information of the business packets in adjacent periods is different.
本申请实施例中,所述第一设备是网络随路性能检测系统中的发送端设备所述第二设备是网络随路性能检测系统中的接收端设备,本申请实施例中,所述第一设备和所述第二设备基于时间同步协议实现时间同步。所述时间同步协议可以为高精度时间同步(PTP,Precision Time Protocol)协议,此时需要第一设备和第二设备都支持PTP协议。第一设备和第二设备基于PTP实现精确时间同步后,第一设备和第二设备的时间误差在微秒级别以内。In the embodiment of the present application, the first device is the sending end device in the network associated performance detection system, and the second device is the receiving end device in the network associated performance detection system. In the embodiment of the present application, the first device is the receiving end device in the network associated performance detection system. A device and the second device implement time synchronization based on a time synchronization protocol. The time synchronization protocol may be a Precision Time Protocol (PTP) protocol. In this case, both the first device and the second device need to support the PTP protocol. After the first device and the second device achieve precise time synchronization based on PTP, the time error between the first device and the second device is within microseconds.
所述周期可以是检测设备在下发检测指令时与检测指令一同发送给第一设备的,也可以是由第一设备自身的控制器确定的。当确定周期后,第一设备基于该周期对第一性能数据进行标记。该周期的周期时长是相等的,示例性的,周期时长为1秒(s,second)。The cycle may be sent to the first device together with the detection instruction when the detection device sends the detection instruction, or may be determined by the controller of the first device itself. After the period is determined, the first device marks the first performance data based on the period. The period duration of the period is equal, and for example, the period duration is 1 second (s, second).
本申请实施例中,所述标记包括第一标记信息和第二标记信息,第一标记信息和第二标记信息不同,本申请实施例中,所述标记信息可以是着色标记,通过对预设周期中业务报文中的染色位进行着色标记以区分不同的周期,所述染色位是指对业务报文进行特征标识的比特位。以业务报文 的染色位为两个染色位为例,包括1号染色位和2号染色位,设置1号染色位值为0,设置2号染色位值为1。本申请实施例中,在对业务报文进行着色标记时,按预设的周期进行交替标记。示例性的,标记后的业务报文中包括第一周期、第二周期、第三周期和第四周期,对第一周期内业务报文的1号染色位着色,对第二周期内业务报文的2号染色位着色、对第三周期内业务报文的1号染色位着色,对第四周期业务报文的2号染色位着色。对应的,所述第一周期内的标记信息可以用0表示,第二周期内的标记信息可以用数值1表示,第三周期内的标记信息可以用0表示,第四周期内的标记信息可以用1表示。In the embodiment of the present application, the mark includes first mark information and second mark information. The first mark information and the second mark information are different. In the embodiment of the present application, the mark information may be a colored mark. The colored bits in the service message in a cycle are colored and marked to distinguish different cycles, and the colored bits refer to bits that perform characteristic identification on the service message. Taking the coloring position of the business packet as two coloring positions as an example, including coloring position 1 and coloring position 2, set the value of coloring position 1 to 0 and the value of coloring position 2 to 1. In the embodiment of the present application, when the service message is colored and marked, it is alternately marked according to a preset cycle. Exemplarily, the marked service message includes the first cycle, the second cycle, the third cycle, and the fourth cycle. The coloring bit No. 1 of the business message in the first cycle is colored, and the business message in the second cycle is colored. The coloring bit 2 of the text is colored, the coloring bit 1 of the service packet in the third cycle is colored, and the coloring bit 2 of the service packet in the fourth cycle is colored. Correspondingly, the marking information in the first cycle can be represented by 0, the marking information in the second cycle can be represented by a value of 1, the marking information in the third cycle can be represented by 0, and the marking information in the fourth cycle can be represented by Use 1 to represent.
步骤S202,第二设备基于所述业务报文的标记信息确定各个周期的周期翻转点。Step S202: The second device determines the cycle rollover point of each cycle based on the marking information of the service message.
本申请实施例中,由于周期时长相等,且同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同,因此,接收端可以根据标记信息确定各个周期的周期翻转点。示例性的,第一周期内的标记信息可以用数值0表示,第二周期内的标记信息可以用数值1表示,第三周期内的标记信息可以用数值0表示,第四周期内的标记信息可以用数值1表示,当连续接收到数值0后,连续接收多个数值1,此时可以将连续接收到多个数值1的时间确定为第一周期的周期翻转点,当连续收到数值1后,连续接收多个数值0,此时可以将接收到多个数值0的时间确定为第二周期的周期翻转点。同样的方式可以确定第三周期的周期翻转点。这里的多个可以根据实际的情况具体设置,设置多个可以避免因为乱文的到达使得第二设备将乱文到达的时间确定为周期翻转点。本申请实施例中,所述周期翻转点也可以叫周期交界点,由于1个标记的报文时间非常短,以毫秒(ms,millisecond)为单位,而报文统计的周期至少以s为单位,两者具有数量级差别,因此,周期翻转点在确定时可以有一定的误差。In the embodiment of this application, since the period duration is the same and the marking information of the service packets in the same period is the same, the marking information of the service packets between adjacent periods is different. Therefore, the receiving end can determine the period of each period according to the marking information. Flip point. Exemplarily, the marking information in the first period may be represented by a value of 0, the marking information in the second period may be represented by a value of 1, the marking information in the third period may be represented by a value of 0, and the marking information in the fourth period It can be represented by a value of 1. When the value of 0 is continuously received, multiple values of 1 are continuously received. At this time, the time of continuously receiving multiple values of 1 can be determined as the cycle rollover point of the first cycle. When the value of 1 is continuously received After that, multiple values of 0 are received continuously, and at this time, the time when multiple values of 0 are received can be determined as the period rollover point of the second period. In the same way, the cycle flip point of the third cycle can be determined. The multiple here can be specifically set according to actual conditions, and setting multiple can prevent the second device from determining the arrival time of the scrambled text as the cycle turning point due to the arrival of the scrambled text. In the embodiment of the present application, the cycle rollover point may also be called the cycle junction point, because the message time of one mark is very short, in milliseconds (ms, millisecond), and the period of message statistics is at least in s. , The two have orders of magnitude difference, therefore, the cycle flip point can have a certain error in determining.
经过对多个周期的周期翻转点的确定,可以根据相邻周期的周期翻转点的时刻信息确定周期时长。根据任意一个确定的周期翻转点的时刻信息和周期时长就可以确定各个周期的周期翻转点的位置或周期翻转点的时刻信息。After determining the period reversal points of multiple periods, the period duration can be determined according to the time information of the period reversal points of adjacent periods. According to the time information and period duration of any determined period reversal point, the position of the period reversal point of each period or the time information of the period reversal point can be determined.
步骤S203,第二设备根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据对应的第一时刻信息。Step S203: The second device determines the first performance data of each period according to the period turning point of each period, and records the first time information corresponding to the first performance data of each period.
本申请实施例中,当确定了各个周期的翻转点时,即可以统计出各个周期的第一性能数和确定出各个周期的第一性能数据对应的第一时刻信息。本申请实施例中,所述第一性能数据对应的第一时刻信息为统计出第一性能数据时的时刻信息,即产生该第一性能数据的时刻信息。In the embodiment of the present application, when the rollover point of each period is determined, the first performance data of each period can be counted and the first time information corresponding to the first performance data of each period can be determined. In the embodiment of the present application, the first time information corresponding to the first performance data is the time information when the first performance data is calculated, that is, the time information when the first performance data is generated.
步骤S204,第二设备发送所述各个周期的第一性能数据和对应的第一时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和对应的第一时刻信息进行性能检测。Step S204: The second device sends the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance according to the first performance data of each cycle and the corresponding first time information. Detection.
本申请实施例中,检测单元可以是与网管集成在一起,也可以是独立的设备。In the embodiment of the present application, the detection unit may be integrated with the network management system, or may be an independent device.
本申请实施例中,当第二设备确定出各个周期的第一性能数据和对应的第一时刻信息时,将各个周期的第一性能数据和对应的第一时刻信息上报至检测单元。而第一设备也会将第二性能数据及对应的第二时刻时间发送给检测单元。此时,检测设备可以根据所述第一性能数据和对应的第一时刻信息、所述第二性能数据和对应的第二时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。In the embodiment of the present application, when the second device determines the first performance data of each cycle and the corresponding first time information, it reports the first performance data of each cycle and the corresponding first time information to the detection unit. The first device will also send the second performance data and the corresponding second time to the detection unit. At this time, the detection device can perform a communication link between the first device and the second device according to the first performance data and the corresponding first time information, the second performance data and the corresponding second time information Carry out associated performance testing.
本申请实施例提供的方法,第二设备(接收端设备)接收第一设备(发送端设备)按周期进行标记的业务报文时,接收端设备能够根据业务报文的标记信息确定各个周期的周期翻转点,并根据周期翻转点确定各个周期的第一性能数据和对应的时刻信息(产生的时刻),当检测单元接收到接收 端上报第一性能数据和对应的时刻信息与发送端上报的第二性能数据和对应的时刻信息时,由于发送端和接收端是基于时间同步协议进行时间同步的,检测设备可以根据第一性能数据对应的时刻信息和第二性能数据对应的时刻信息,确定对应周期的第一性能数据和第二性能数据,从而对所述第一设备与第二设备之间的通信链路进行随路性能检测。本申请实施例中,在进行性能检测时并不需要获取周期编号,也不需要约定第一设备和第二设备采用同一周期时长,因而能够提升随路性能检测部署的灵活性,并且对应周期内的性能数据的匹配更准确。In the method provided by the embodiments of the present application, when the second device (receiving end device) receives the service packet marked by the first device (sending end device) in a period, the receiving end device can determine the period of each period according to the marking information of the service packet. Cycle overturn point, and determine the first performance data and corresponding time information (time of generation) of each cycle according to the cycle overturn point. When the detection unit receives the first performance data and corresponding time information reported by the receiving end and the corresponding time information reported by the transmitting end When the second performance data and the corresponding time information, since the sending end and the receiving end are time synchronized based on the time synchronization protocol, the detection device can determine according to the time information corresponding to the first performance data and the time information corresponding to the second performance data Corresponding to the first performance data and the second performance data of the period, so as to perform path-associated performance detection on the communication link between the first device and the second device. In the embodiment of the present application, it is not necessary to obtain the cycle number when performing performance testing, and it is not necessary to stipulate that the first device and the second device use the same cycle duration. Therefore, the flexibility of the deployment of the associated performance testing can be improved, and the cycle time can be increased. The matching of the performance data is more accurate.
本申请实施例中,步骤S202:所述基于所述业务报文的标记信息确定各个周期的周期翻转点,可以通过图3所示的步骤S2021至步骤S2023实现,以下结合图3对各个步骤进行说明。In the embodiment of the present application, step S202: the determination of the cycle rollover point of each cycle based on the marking information of the service message can be implemented through step S2021 to step S2023 shown in FIG. 3, and each step is performed below in conjunction with FIG. 3. Description.
步骤S2021,第二设备当连续收到所述第一标记信息后连续收到N个所述第二标记信息时,确定第一周期的周期翻转点。In step S2021, the second device determines the period reversal point of the first period when the second device continuously receives N pieces of the second flag information after continuously receiving the first flag information.
本申请实施例中,当接收到业务报文时,可以识别报文中携带的标记信息,可以根据两个相邻周期的标记信息确定周期翻转点,示例性地,两个相邻周期包括第一周期和第二周期,第一周期的标记信息为第一标记信息,第二周期的标记信息为第二标记信息,第一标记信息用数值1表示,第二周期的标记信息用数值0标识,当持续接收到1后,连续收到N个0,此时可以确定第一周期的周期翻转点,这里的周期翻转点是第一周期结束和第二周期开始。In the embodiment of the present application, when a service message is received, the marking information carried in the message can be identified, and the period rollover point can be determined according to the marking information of two adjacent periods. For example, the two adjacent periods include the first In the first cycle and the second cycle, the marking information of the first cycle is the first marking information, the marking information of the second cycle is the second marking information, the first marking information is represented by a value of 1, and the marking information of the second cycle is marked by a value of 0 After receiving 1s continuously, N 0s are received continuously. At this time, the period rollover point of the first cycle can be determined, where the period rollover point is the end of the first cycle and the beginning of the second cycle.
步骤S2022,第二设备当连续收到所述第二标记信息后连续收到N个所述第一标记信息时,确定第二周期的周期翻转点。In step S2022, the second device determines the period reversal point of the second period when the second device continuously receives the N first flag information after receiving the second flag information continuously.
承接上面的示例,第二周期后为第三周期,第二设备可以根据第二周期和第三周期的标记信息确定第二周期和第三周期的周期翻转点,第二周期中的第一性能数据的标记信息为数值0,当连续接收到数值1后,连续接 收到数值0,此时,可以确定接收到数值0时为第二周期和第三周期的周期翻转点。Continuing the above example, after the second cycle is the third cycle, the second device can determine the cycle rollover point of the second cycle and the third cycle according to the marking information of the second cycle and the third cycle, and the first performance in the second cycle The tag information of the data is a value of 0. When the value of 1 is continuously received, the value of 0 is continuously received. At this time, it can be determined that the value of 0 is received as the cycle turning point of the second cycle and the third cycle.
步骤S2023,第二设备至少根据所述第一周期的周期翻转点和所述第二周期的周期翻转点确定各个周期的周期翻转点。Step S2023: The second device determines the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period.
本申请实施例中,第二设备至少根据相邻两个周期的第一周期翻转点和第二周期翻转点时间的差值确定周期时长,设置至少两个相邻周期中的任一个起始时间为参考周期的时间,基于周期时长,进而确定各个周期的周期翻转点。例如:参考周期起始时间为00:00:15,周期时长为1s,在第一周期后有2个周期,可以确定第一周期后两个周期的周期翻转点分别为00:00:16和00:00:17。In the embodiment of the present application, the second device determines the period duration at least according to the difference between the first period reversal point and the second period reversal point of two adjacent periods, and sets the start time of any one of the at least two adjacent periods It is the time of the reference period, based on the period length, and then determines the period reversal point of each period. For example: the reference cycle start time is 00:00:15, the cycle duration is 1s, there are 2 cycles after the first cycle, and the cycle rollover points of the two cycles after the first cycle can be determined to be 00:00:16 and 00:00:17.
在一些实施例中,所述步骤S2023:第二设备至少根据所述第一周期的周期翻转点和所述第二周期的周期翻转点确定各个周期的周期翻转点,可以通过以下步骤实现:In some embodiments, the step S2023: the second device determines the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period, which can be implemented by the following steps:
步骤S2023A,第二设备至少根据所述第一周期的周期翻转点的时刻信息和所述第二周期的周期翻转点的时刻信息,确定周期时长。In step S2023A, the second device determines the period duration at least according to the time information of the period reversal point of the first period and the time information of the period reversal point of the second period.
本申请实施例中,由于第一周期的周期翻转点和第二周期的周期翻转点是相邻周期,而且周期标记时的周期时间时相同的,此时,可以根据第一周期的周期翻转点的时刻信息和第二周期翻转点的时刻信息确定周期时长,示例性的,第一周期和第二周期的周期翻转点的时刻信息为分别为00:00:01和00:00:02此时可以确定周期时长为1s。In the embodiment of the present application, since the period reversal point of the first period and the period reversal point of the second period are adjacent periods, and the period time when the period is marked is the same, in this case, the period reversal point of the first period can be The time information of the time information and the time information of the second cycle rollover point determine the period duration. Illustratively, the time information of the cycle rollover point of the first cycle and the second cycle are 00:00:01 and 00:00:02, respectively. It can be determined that the cycle length is 1s.
步骤S2023B,第二设备根据所述第一周期的周期翻转点的时刻信息和所述周期时长,或者根据所述第二周期的周期翻转点的时刻信息和所述周期时长确定各个周期的周期翻转点。In step S2023B, the second device determines the period inversion of each period according to the time information of the period reversal point of the first period and the period duration, or according to the time information of the period reversal point of the second period and the period duration. point.
本申请实施例中,当确定了周期时长,可以根据已知的任意一个翻转点的时刻信息确定各个周期的周期翻转点时刻信息,即确定各个周期的翻 转点。In the embodiment of the present application, when the period duration is determined, the period reversal point time information of each period can be determined according to the known time information of any reversal point, that is, the reversal point of each period is determined.
在一些实施例中,所述步骤S2023B:所述根据所述第一周期的周期翻转点的时刻信息和所述周期时长,或者根据第二周期的周期翻转点的时刻信息和所述周期时长确定各个周期的周期翻转点,可以通过以下步骤实现:In some embodiments, the step S2023B: determining according to the time information of the period turning point of the first period and the period duration, or according to the time information of the period turning point of the second period and the period duration The cycle flip point of each cycle can be achieved through the following steps:
步骤S23B1,第二设备确定各个周期与参考周期之间的周期数差值,其中,所述参考周期为所述第一周期或所述第二周期。Step S23B1: The second device determines the difference in the number of cycles between each cycle and a reference cycle, where the reference cycle is the first cycle or the second cycle.
示例性地,将第一周期确定为参考周期,第一周期的周期翻转点为0点0分1秒,也即00:00:01,而周期时长为1秒,那么第二设备可以确定经过n秒后为第n个周期。Exemplarily, the first cycle is determined as the reference cycle, the cycle rollover point of the first cycle is 0:00:01, that is, 00:00:01, and the cycle duration is 1 second, then the second device can determine the elapsed time After n seconds, it is the nth cycle.
步骤S23B2,第二设备根据所述周期时长和周期数差值,确定所述各个周期与所述参考周期之间的时间差值。Step S23B2: The second device determines the time difference between each period and the reference period according to the difference between the period duration and the number of periods.
承接上面的示例,第二设备可以确定第n个周期与第一周期的周期数差值为n-1。那么可以用周期数差值乘以周期时长,确定时间差值,本申请实施例中,时间差值为n-1。例如n为6,周期数差值为5,时间差值为5s。Following the above example, the second device can determine that the difference between the number of cycles of the nth cycle and the number of cycles of the first cycle is n-1. Then, the time difference can be determined by multiplying the period difference by the period duration. In the embodiment of the present application, the time difference is n-1. For example, n is 6, the cycle number difference is 5, and the time difference is 5s.
步骤S23B3,第二设备根据所述参考周期的周期翻转点的时刻信息和所述各个周期对应的时间差值,确定所述各个周期的周期翻转点。Step S23B3: The second device determines the period reversal point of each period according to the time information of the period reversal point of the reference period and the time difference corresponding to each period.
当确定了时间差值后,就可以根据参考周期的第一起始时间确定各个周期的第一起始时间。After the time difference is determined, the first start time of each period can be determined according to the first start time of the reference period.
承接上面的示例,由于第一周期的周期翻转点为00:00:01。时间差值为5秒,那么第6周期的周期翻转点时刻信息为00:00:06。Continuing the above example, since the cycle flip point of the first cycle is 00:00:00. The time difference is 5 seconds, so the cycle rollover point time information of the 6th cycle is 00:00:00.
本申请实施例再提供一种随路性能检测方法,所述方法应用于检测单元,本实施例提供的方法可以通过计算机程序来实现,该计算机程序在执行的时候,完成本实施例提供的方法中各个步骤。在一些实施例中,该计算机程序可以被检测设备中的处理器执行。图4为本申请实施例提供的随 路性能检测方法的流程示意图,如图4所示,所述方法包括:The embodiment of the present application provides a method for detecting the performance of the accompanying path. The method is applied to the detection unit. The method provided in this embodiment can be implemented by a computer program. When the computer program is executed, the method provided in this embodiment is completed. In the various steps. In some embodiments, the computer program may be executed by a processor in the detection device. Fig. 4 is a schematic flowchart of a method for detecting the associated performance provided by an embodiment of the application. As shown in Fig. 4, the method includes:
步骤S401,检测单元获取第一设备上报的各个周期的第二性能数据和对应的第二时刻信息。Step S401: The detection unit obtains the second performance data of each period and the corresponding second time information reported by the first device.
本申请实施例中,当对业务报文进行标记时,可以统计出各个周期的第二性能数据,对应地,当统计出各个周期的第二性能数据时也就可以确定第二性能数据产生的时刻信息,即第二时刻信息。In the embodiment of the present application, when the service message is marked, the second performance data of each period can be counted. Correspondingly, when the second performance data of each period is counted, it can be determined that the second performance data is generated. Time information, that is, the second time information.
步骤S402,检测单元获取第二设备上报的各个周期的第一性能数据和对应的第一时刻信息。Step S402: The detection unit obtains the first performance data of each period and the corresponding first time information reported by the second device.
本申请实施例中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步。In the embodiment of the present application, the first performance data of each period is determined based on a service packet marked by a period sent by the first device, and the first device and the second device implement time synchronization based on a time synchronization protocol.
本申请实施例中,当第二设备接收到业务报文后,在做性能统计时,可以根据标记信息确定周期翻转点,当确定一个周期翻转点时,即可以确定一个周期的第一性能数据,当确定一个周期的第一性能数据时,可以记录该一个周期的第一性能数据产生的第一时刻信息。根据各个周期的翻转点,确定各个周期的第一性能数据和对应的第一时刻信息。In the embodiment of the present application, when the second device receives the service message and performs performance statistics, the cycle rollover point can be determined according to the marking information. When a cycle rollover point is determined, the first performance data of a cycle can be determined When determining the first performance data of a period, the first time information generated by the first performance data of the period may be recorded. The first performance data of each period and the corresponding first time information are determined according to the reversal point of each period.
本申请实施例中,所述第一设备和第二设备基于时间同步协议实现时间同步。第一设备和自身都支持PTP协议。第一设备和自身基于PTP实现精确时间同步后,第一设备和自身的时间误差在微秒级别以内。In the embodiment of the present application, the first device and the second device implement time synchronization based on a time synchronization protocol. Both the first device and itself support the PTP protocol. After the first device and itself achieve precise time synchronization based on PTP, the time error between the first device and itself is within a microsecond level.
步骤S403,检测单元根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。Step S403: The detection unit performs a check between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information. The communication link carries out the associated performance test.
本申请实施例中,性能数据可以是带有标记的报文数量信息,也可以是时间戳信息。当性能数据是报文数量信息时,可以根据报文数据信息确定丢包率,当性能数据是时间戳信息时,可以根据时间戳信息确定时延。In the embodiment of the present application, the performance data may be information about the number of packets with a mark, or may be time stamp information. When the performance data is the number of messages, the packet loss rate can be determined based on the message data information, and when the performance data is the time stamp information, the time delay can be determined based on the time stamp information.
本申请实施例中,通过所述第一时刻信息、所述第二时刻信息可以确定对应的周期的第一性能数据和第二性能数据,进而根据对应周期的第一性能数据和第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测。In the embodiment of the present application, the first performance data and the second performance data of the corresponding period can be determined through the first time information and the second time information, and then the first performance data and the second performance data of the corresponding period can be determined. Perform path-associated performance detection on the communication link between the first device and the second device.
本申请实施例提供的方法,由于第一设备和第二设备是基于时间同步协议实现时间同步的,当检测设备接收到第一设备上报的第二时刻信息和第二设备上报的第一时刻信息时,可以根据第二时刻信息和第一时刻信息确定出对应周期的第一性能数据和第二性能数据,从而对所述第一设备与第二设备之间的通信链路进行随路性能检测。本申请实施例中,检测设备通过各个设备上报的时刻信息就可以对周期进行匹配,从而能够提升随路性能检测部署的灵活性,并且对应周期内的性能数据的匹配更准确。In the method provided by the embodiment of the present application, since the first device and the second device implement time synchronization based on the time synchronization protocol, when the detection device receives the second time information reported by the first device and the first time information reported by the second device At the time, the first performance data and the second performance data of the corresponding period can be determined according to the second time information and the first time information, so as to perform the path-associated performance detection on the communication link between the first device and the second device . In the embodiment of the present application, the detection device can match the period based on the time information reported by each device, which can improve the flexibility of the deployment of the associated performance detection, and the matching of the performance data in the corresponding period is more accurate.
在一些实施例中,步骤S403:检测单元根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测,可以通过以下步骤实现:In some embodiments, step S403: the detection unit compares the first device with the second performance data of each period and the corresponding second time information, the first performance data of each period, and the corresponding first time information. The associated performance test of the communication link between the second devices can be achieved through the following steps:
步骤S4031,检测单元根据各个第二时刻信息和各个第一时刻信息,从所述各个第一时刻信息中确定第一目标时间,从所述各个第二时刻信息中确定与第一目标时间对应的第二目标时间,其中,第一目标时间与第二目标时间之间的差值小于预设的时长阈值。Step S4031: The detection unit determines the first target time from the respective first time information according to the respective second time information and the respective first time information, and determines the first target time corresponding to the first target time from the respective second time information. The second target time, wherein the difference between the first target time and the second target time is less than a preset duration threshold.
本申请实施例中,检测单元可以从第一时刻信息中确定一个第一目标时间,从所述各个第二时刻信息中确定与第一目标时间对应的第二目标时间,所述第一目标时间与所述第二目标时间之间的差值小于预设的时长阈值。所述时长阈值以毫秒为单位,示例性的,所述预设的时长阈值为100ms。当然,时长阈值可以根据具体情况进行设置。但是因考虑到发送端到接收端是经过网络传输,通常网络传输时延在10ms以内(包括光纤传输时延 和节点处理时延),因此也需要将时长阈值设置为大于10ms。In the embodiment of the present application, the detection unit may determine a first target time from the first time information, and determine a second target time corresponding to the first target time from the respective second time information, and the first target time The difference between the second target time and the second target time is less than the preset duration threshold. The duration threshold is in milliseconds. For example, the preset duration threshold is 100 ms. Of course, the duration threshold can be set according to specific conditions. However, considering that the sending end to the receiving end is transmitted through the network, the network transmission delay is usually within 10ms (including optical fiber transmission delay and node processing delay), so the duration threshold needs to be set to be greater than 10ms.
承接上面的示例,第二设备上报各个第一时刻信息中确定一个时间,而由于性能检测的通常是以秒为单位,此时,如果在第一设备上报的各个第二时刻信息中的一个时间在第一起始时间的正负100ms内,则可以确定为第二目标时间。示例为第一时刻信息中包括00:00:01:030,第二时刻信息中包括00:00:01:010,由于00:00:01:010与00:00:01:030的差值在此时在100ms以内,因此可以确定第一目标时间为00:00:01:030,第二目标时间为00:00:01:010。而当确定了第一目标时间和第二目标时间时,即可确定第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据为同一周期的性能数据。Continuing the above example, a time is determined in each first moment information reported by the second device, and because the performance detection is usually in seconds, at this time, if a time in each second moment information reported by the first device Within plus or minus 100 ms of the first starting time, it can be determined as the second target time. The example is that the information at the first time includes 00:00:01:030, and the information at the second time includes 00:00:01:010. Because the difference between 00:00:01:010 and 00:00:01:030 is At this time, within 100ms, it can be determined that the first target time is 00:00:01:030, and the second target time is 00:00:01:010. When the first target time and the second target time are determined, it can be determined that the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are performance data of the same period.
步骤S4032,检测单元基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测。Step S4032: The detection unit performs path-associated performance detection on the communication link between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
承接上面的示例,检测单元当确定第一目标时间和第二目标时间时,可以确定第一目标时间对应的第一性能数据和第二目标时间对应第二性能数据为同一周期的性能数据。Following the above example, when determining the first target time and the second target time, the detection unit may determine that the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are performance data of the same cycle.
检测设备基于所述第一性能数据和所述第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测。The detection device performs path-associated performance detection on the communication link between the first device and the second device based on the first performance data and the second performance data.
本申请实施例中,因此性能统计的周期在秒级以上,最少为1秒,两者具有数量级的差别。因此,发送端和接收端的第一时刻信息和第二时刻信息的差值在预设的时长阈值之内时,可以认为所述的第一时刻信息和第二时刻信息分别对应的第一性能数据和第二性能数据是相同周期的数据。进而根据第一性能数据和第一目标时间、第二性能数据和第二目标时间对所述第一设备与第二设备之间的通信链路进行随路性能检测。In the embodiment of the present application, therefore, the period of performance statistics is above the second level, and the minimum is 1 second, and there is an order of magnitude difference between the two. Therefore, when the difference between the first time information and the second time information of the sending end and the receiving end is within the preset duration threshold, it can be considered that the first time information and the second time information respectively correspond to the first performance data It is data of the same cycle as the second performance data. Further, according to the first performance data and the first target time, the second performance data and the second target time, the path-associated performance detection of the communication link between the first device and the second device is performed.
在一些实施例中,所述性能检测至少可以为丢包检测,步骤S4032,检 测单元基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测,可以通过以下步骤实现:In some embodiments, the performance detection may be at least packet loss detection. In step S4032, the detection unit performs a test on the first device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time. The associated performance test of the communication link with the second device can be achieved through the following steps:
步骤S4032 A1,检测单元获取第一目标时间对应的第一性能数据中带有标记的报文数量和第二目标时间对应的第二性能数据中带有标记的报文数量之间的差值得到丢包数量。Step S4032 A1, the detection unit obtains the difference between the number of tagged packets in the first performance data corresponding to the first target time and the number of tagged packets in the second performance data corresponding to the second target time to obtain Number of lost packets.
示例性的,第一性能数据的标记数量为40个,第二性能数据的标记数量为38个。也就是对应的周期内的第一性能数据与第二性能数据的丢包数量为2个。Exemplarily, the number of markers for the first performance data is 40, and the number of markers for the second performance data is 38. That is, the number of lost packets of the first performance data and the second performance data in the corresponding period is two.
步骤S4032 A2,检测设备根据丢包数量,确定所述第一设备与所述第二设备之间的通信链路的丢包率。Step S4032 A2: The detection device determines the packet loss rate of the communication link between the first device and the second device according to the number of lost packets.
承接上面的示例,第一设备与第二设备之间的通讯链路的丢包率为5%。Following the above example, the packet loss rate of the communication link between the first device and the second device is 5%.
在一些实施例中,所述性能检测为时延检测,步骤S4032,检测单元基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测,可以通过以下步骤实现:In some embodiments, the performance detection is time delay detection. In step S4032, the detection unit performs a comparison between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time. The communication link between the two devices carries out the performance detection of the associated path, which can be achieved through the following steps:
步骤S4032 B1,检测单元确定所述第一性能数据中第一时间戳信息和所述第二性能数据中第二时间戳信息之间的时间差值。Step S4032 B1: The detection unit determines the time difference between the first time stamp information in the first performance data and the second time stamp information in the second performance data.
本申请实施例中,当性能检测为时延检测时,所述第一性能数据包括第一时间戳信息,所述第二性能数据包括第二时间戳信息,当检测单元接收到第一性能数据和第二性能数据时,可以得到第一时间戳信息和第二时间戳信息,进而确定第一时间戳信息和第二时间戳信息的时间差值。In the embodiment of the present application, when the performance detection is delay detection, the first performance data includes first time stamp information, and the second performance data includes second time stamp information. When the detection unit receives the first performance data With the second performance data, the first time stamp information and the second time stamp information can be obtained, and then the time difference between the first time stamp information and the second time stamp information can be determined.
步骤S4032 B2,检测单元根据所述时间差值确定所述第一设备与第二设备之间的通信链路的时延。Step S4032 B2: The detection unit determines the time delay of the communication link between the first device and the second device according to the time difference.
本申请实施例中,所述时间差值即为第一设备与第二设备之间的通讯链路的时延。In the embodiment of the present application, the time difference is the time delay of the communication link between the first device and the second device.
基于前述的各个实施例,本申请实施例在提供一种随路性能检测方法,所述方法应用于随路性能检测系统,图5为本申请实施例提供的一种随路性能检测方法的交互流程示意图,如图5所示,所述方法包括:Based on the foregoing embodiments, the embodiments of the present application provide a method for detecting the associated performance of the road, and the method is applied to the detecting system of the associated performance of the road. Schematic diagram of the process, as shown in Figure 5, the method includes:
步骤S501,第一设备和第二设备通过PTP协议实现时间同步。In step S501, the first device and the second device implement time synchronization through the PTP protocol.
本申请实施例中,本申请实施例中,通过PTP实现同步后,接收端和发送端的时间误差在微秒级别以内。In the embodiments of the present application, in the embodiments of the present application, after synchronization is achieved through PTP, the time error between the receiving end and the transmitting end is within a microsecond level.
步骤S502,第一设备对业务报文按周期进行标记,并统计各个周期的第二性能数据,并记录第二性能数据对应的第二时刻信息。In step S502, the first device marks the service message by cycle, counts the second performance data of each cycle, and records the second time information corresponding to the second performance data.
本申请实施例中,第一设备对所述业务报文按周期进行交替标记。所述第一设备为发送端设备。In the embodiment of the present application, the first device alternately marks the service message on a periodic basis. The first device is a sending end device.
示例性的,对业务报文按预设周期对1号染色位和2号染色位设置进行交替染色,设置1号染色位值为0,设置2号染色位值为1。Exemplarily, the business message is alternately dyed according to the preset cycle for the setting of the dyeing position 1 and the dyeing position 2, and the value of the dyeing position 1 is set to 0, and the value of the dyeing position 2 is set to 1.
本申请实施例中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同。In the embodiment of the present application, the marking information of the service packets in the same period is the same, and the marking information of the service packets in adjacent periods is different.
本申请实施例中,第二性能数据对应的第二时刻信息为第二性能数据产生的时刻信息。In the embodiment of the present application, the second time information corresponding to the second performance data is the time information when the second performance data is generated.
步骤S503,第一设备将第二性能数据和对应的第二时刻信息发送给检测单元。Step S503: The first device sends the second performance data and the corresponding second time information to the detection unit.
步骤S504,第一设备将标记后的业务报文发送给接收端设备。Step S504: The first device sends the marked service message to the receiving end device.
本申请实施例中,步骤S502可以在步骤S503之前,也可以在步骤S503之后,还可以同时发送。In the embodiment of the present application, step S502 may be before step S503, or after step S503, and may also be sent at the same time.
步骤S505,第二设备基于所述业务报文的标记信息确定各个周期的周期翻转点。Step S505: The second device determines the cycle rollover point of each cycle based on the marking information of the service message.
承接上面的示例,当连续收到所述第一标记信息后连续收到N个所述第二标记信息时,确定第一周期的周期翻转点;当连续收到所述第二标记信息后连续收到N个所述第一标记信息时,确定第二周期的周期翻转点,其中,N大于预设值,所述第一周期和所述第二周期相邻;至少根据所述第一周期的周期翻转点和所述第二周期的周期翻转点确定各个周期的周期翻转点,其中N大于1。Continuing the above example, when the first marking information is continuously received and N pieces of the second marking information are continuously received, the cycle turning point of the first cycle is determined; when the second marking information is continuously received, the second marking information is continuously received. When N pieces of the first mark information are received, determine the period rollover point of the second period, where N is greater than a preset value, and the first period and the second period are adjacent; at least according to the first period The period reversal point of and the period reversal point of the second period determine the period reversal point of each period, where N is greater than 1.
步骤S506,第二设备根据各个周期的周期翻转点确定各个周期的第一性能数据和对应的第一时刻信息。Step S506: The second device determines the first performance data of each period and the corresponding first time information according to the period rollover point of each period.
步骤S507,第二设备发送所述第一性能数据和对应的第一时刻信息至检测单元。Step S507: The second device sends the first performance data and the corresponding first time information to the detection unit.
步骤S508,检测单元根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。Step S508: The detection unit performs a check between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information. The communication link carries out the associated performance test.
本申请实施例中,检测单元可以根据第一时刻时间和第二时刻时间确定对应的周期内的第一性能数据和第二性能数据,进而根据各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。In the embodiment of the present application, the detection unit may determine the first performance data and the second performance data in the corresponding period according to the first time and the second time, and then according to the second performance data of each period and the corresponding second time The information, the first performance data of each period, and the corresponding first time information perform path-associated performance detection on the communication link between the first device and the second device.
本申请实施例提供的方法,由于第一设备和第二设备是基于时间同步协议实现时间同步的,并第一设备将按周期进行标记的业务报文发送给第二设备后,第二设备能够根据业务报文中的标记信息确定各个周期的翻转点,进而确定各个周期第一性能数据和对应的第一时刻信息,在上报第一性能数据和对应的第一时刻信息报给检测单元,检测单元可以根据第一时刻信息和第二时刻信息,确定对应周期的第一性能数据和第二性能数据,从而对所述第一设备与第二设备之间的通信链路进行随路性能检测。本申 请实施例中,在进行性能检测时根据第一设备和第二设备上报的时刻信息确定对应的周期,能够提升随路性能检测部署的灵活性,并且时对应周期内的性能数据的匹配更准确。In the method provided by the embodiment of the present application, since the first device and the second device implement time synchronization based on the time synchronization protocol, and after the first device sends the service packet marked by the period to the second device, the second device can Determine the rollover point of each cycle according to the marking information in the service message, and then determine the first performance data of each cycle and the corresponding first time information, and report the first performance data and the corresponding first time information to the detection unit to detect The unit may determine the first performance data and the second performance data of the corresponding period according to the first time information and the second time information, so as to perform path-associated performance detection on the communication link between the first device and the second device. In the embodiment of the present application, the corresponding period is determined according to the time information reported by the first device and the second device when performing performance testing, which can improve the flexibility of the deployment of the associated performance test, and the matching of performance data in the corresponding period can be improved. accurate.
基于上述的各个实施例,本申请实施例在提供一种随路性能检测方法,图6为本申请实施例提供的一种随路性能检测方法的流程示意图,如图6所示,包括:Based on the foregoing embodiments, the embodiment of the present application is providing a method for detecting the performance of the road. FIG. 6 is a schematic flowchart of the method for detecting the performance of the road provided by an embodiment of the application. As shown in FIG. 6, the method includes:
步骤S601,接收端和发送端基于PTP实现时间同步。Step S601, the receiving end and the sending end realize time synchronization based on PTP.
本申请实施例中,通过PTP实现同步后,接收端和发送端的时间误差在微秒级别以内。In the embodiment of the present application, after synchronization is achieved through PTP, the time error between the receiving end and the sending end is within a microsecond level.
步骤S602,接收端在接收到作了性能检测染色的报文之后,持续识别其中的染色标记并作报文统计,基于统计结果判断染色的翻转点。In step S602, the receiving end continues to identify the dyeing mark in the message after receiving the performance test dyed message, and performs message statistics, and judges the turning point of the dyeing based on the statistical result.
本申请实施例中,所述染色的翻转点可以认为是周期交界点。In the embodiment of the present application, the turning point of the dyeing can be considered as the cycle junction point.
例如,前一个周期染色标记为0,当接收端持续收到染色标记为0的报文之后,收到染色标记为1的报文,则可能是周期翻转点,也可能是乱序的报文到达,在连续收到n个染色标记为1的报文后,则可以确定是周期翻转点。在经过几个周期翻转点的判断之后,则可以确定发送端的周期时刻信息,接收端可以记录该时间位置,之后可以基于该周期时刻信息预判下一个周期的翻转点。For example, if the coloring flag of the previous cycle is 0, when the receiving end continues to receive the packets with the coloring flag of 0, and the packets with the coloring flag of 1 are received, it may be the cycle rollover point or out-of-sequence packets. Arrival, after n consecutively received packets with the coloring flag of 1, it can be determined that it is the cycle rollover point. After several cycle flip points are judged, the cycle time information of the sending end can be determined, and the receiving end can record the time position, and then can predict the flip point of the next cycle based on the cycle time information.
步骤S603,发送端和接收端向集中检测单元上报性能数据。Step S603: The sending end and the receiving end report performance data to the centralized detection unit.
本申请实施例中,发送端和接收端在上报性能数据时,不需要上报周期编号,而是随着性能数据上报该性能数据产生时的时刻信息。In the embodiment of the present application, when the sending end and the receiving end report performance data, they do not need to report the period number, but report the time information when the performance data is generated along with the performance data.
步骤S604,集中检测单元收集到发送端和接收端上报的性能数据之后,比对两者性能数据的周期时刻信息,当发送端和接收端的周期时刻信息在一定范围内时,确定对应周期的性能数据。Step S604: After collecting the performance data reported by the sending end and the receiving end, the centralized detection unit compares the periodic time information of the performance data of the two. When the periodic time information of the sending end and the receiving end is within a certain range, the performance of the corresponding period is determined data.
因为,发送端到接收端是经过网络传输,通常网络传输时延在10毫秒 以内(包括光纤传输时延和节点处理时延)。而性能统计的周期在秒级以上,最少为1秒,两者具有数量级的差别。因此,发送端和接收端的时刻信息在一定范围内时,可以认为这组数据是同一个周期的数据。例如,发送端和接收端的数据时刻信息偏差在正负100ms之内的,认为是同一个周期的数据,从而实现各个周期数据的匹配。Because, the sending end to the receiving end is transmitted through the network, and the network transmission delay is usually within 10 milliseconds (including the optical fiber transmission delay and the node processing delay). The period of performance statistics is above the second level, at least 1 second, and there is an order of magnitude difference between the two. Therefore, when the time information of the sending end and the receiving end are within a certain range, it can be considered that this group of data is data of the same period. For example, if the data time information deviation between the sending end and the receiving end is within plus or minus 100ms, it is considered to be the data of the same period, so as to realize the matching of the data of each period.
在实际应用时,集中检测单元可以与网管、控制器等设备集成在一起,也可以是独立的专门集中作检测的设备等。In actual application, the centralized detection unit can be integrated with network management, controller and other equipment, or it can be an independent dedicated centralized detection equipment.
本申请实施例提供的方法,接收端和发送端基于PTP实现精确时间同步,在此基础上做性能检测数据的周期翻转点和周期序号的匹配。当接收端在接收到作了性能检测染色的报文之后,持续识别其中的染色标记并作报文统计,基于统计结果判断染色的翻转点,也就是周期交界点,接收端确定发送端的周期时刻信息,接收端可以记录该周期时刻信息,之后可以基于该周期时刻信息预判下一个周期的翻转点。发送端和接收端在上报性能数据时,不需要上报周期编号,而是随着性能数据上报该性能数据产生时的时刻信息。当集中检测单元收集到发送端和接收端上报的数据之后,比对两者数据的时刻信息,当发送端和接收端的周期时刻信息在一定范围内时,判断周期时刻信息在一定范围内时,确定在周期时间内的这组数据是同一个周期的数据,进而对同一周期的数据进行性能检测。In the method provided by the embodiments of the present application, the receiving end and the transmitting end implement accurate time synchronization based on PTP, and on this basis, the period rollover point of the performance detection data is matched with the period sequence number. When the receiving end receives a message that has been dyed for performance testing, it continues to identify the dye mark in it and make message statistics. Based on the statistical result, it judges the turning point of the dyeing, which is the cycle junction point, and the receiving end determines the cycle time of the sending end. Information, the receiving end can record the cycle time information, and then can predict the rollover point of the next cycle based on the cycle time information. The sending end and the receiving end do not need to report the period number when reporting performance data, but report the time information when the performance data is generated along with the performance data. After the centralized detection unit collects the data reported by the sending end and the receiving end, it compares the time information of the two data. When the periodic time information of the sending end and the receiving end is within a certain range, it is judged that the periodic time information is within a certain range, Determine that the group of data within the cycle time is the data of the same cycle, and then perform performance testing on the data of the same cycle.
本申请实施例提供的方法,通过接收端和发送端实现时间同步之后,基于时间信息做检测和匹配,不再需要接收端和发送端采用一致的周期时间,以及不再需要采用同样的检测周期编号,从而提升了随路性能检测部署的灵活性和准确性。In the method provided by the embodiments of the present application, after time synchronization is achieved by the receiving end and the sending end, detection and matching are performed based on time information, and the receiving end and the sending end are no longer required to use the same cycle time, and the same detection cycle is no longer required Numbering, thereby improving the flexibility and accuracy of the deployment of on-road performance testing.
基于前述的实施例,本申请实施例提供一种随路性能检测装置,该装置包括的各模块以及各模块包括的各单元,可以通过计算机设备中的处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器 可以为中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Microprocessor Unit)、数字信号处理器(DSP,Digital Signal Processing)或现场可编程门阵列(FPGA,Field Programmable Gate Array)等。Based on the foregoing embodiments, the embodiments of the present application provide a device for detecting performance along the road. Each module included in the device and each unit included in each module can be implemented by a processor in a computer device; of course, it can also be implemented by a specific device. Logic circuit implementation; in the process of implementation, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or field programmable Gate array (FPGA, Field Programmable Gate Array), etc.
本申请实施例再提供一种随路性能检测装置,图7为本申请实施例提供的随路性能检测装置结构示意图,如图7所示,所述随路性能检测装置700包括:The embodiment of the present application further provides a road-following performance detection device. FIG. 7 is a schematic structural diagram of the road-following performance detection device provided in an embodiment of this application. As shown in FIG. 7, the road-following performance detection device 700 includes:
接收模块701,配置为接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同。The receiving module 701 is configured to receive a service packet marked by a cycle sent by the first device, where the marking information of the service packet in the same cycle is the same, and the marking information of the service packet between adjacent cycles is different.
第一确定模块702,配置为基于所述业务报文的标记信息确定各个周期的周期翻转点。The first determining module 702 is configured to determine the cycle rollover point of each cycle based on the marking information of the service message.
第二确定模块703,配置为根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据对应的第一时刻信息。The second determining module 703 is configured to determine the first performance data of each period according to the period turning point of each period, and record the first time information corresponding to the first performance data of each period.
发送模块704,配置为发送所述各个周期的第一性能数据和所述各个周期的第一性能数据产生的时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和所述各个周期的第一性能数据产生的时刻信息进行性能检测。The sending module 704 is configured to send the first performance data of each period and the time information at which the first performance data of each period is generated to the detection unit, so that the detection unit can be based on the first performance data of each period and the time information. Perform performance detection based on the time information when the first performance data of each period is generated.
其中,所述第一设备和自身基于时间同步协议实现时间同步。Wherein, the first device and itself implement time synchronization based on a time synchronization protocol.
在一些实施例中,所述第一确定模块702包括:In some embodiments, the first determining module 702 includes:
第一确定单元,配置为当连续收到所述第一标记信息后连续收到N个所述第二标记信息时,确定第一周期的周期翻转点;The first determining unit is configured to determine the period rollover point of the first period when N pieces of the second flag information are continuously received after the first flag information is continuously received;
第二确定单元,配置为当连续收到所述第二标记信息后连续收到N个所述第一标记信息时,确定第二周期的周期翻转点,其中,N大于预设值,所述第一周期和所述第二周期相邻;The second determining unit is configured to determine the period reversal point of the second period when N of the first flag information are received continuously after the second flag information is continuously received, where N is greater than a preset value, and the The first period is adjacent to the second period;
第三确定单元,配置为至少根据所述第一周期的周期翻转点和所述第 二周期的周期翻转点确定各个周期的周期翻转点。The third determining unit is configured to determine the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period.
在一些实施例中,第三确定单元包括:In some embodiments, the third determining unit includes:
第一确定子单元,配置为至少根据所述第一周期的周期翻转点的时刻信息和所述第二周期的周期翻转点的时刻信息,确定周期时长。The first determining subunit is configured to determine the period duration at least according to the time information of the period reversal point of the first period and the time information of the period reversal point of the second period.
第二确定子单元,配置为根据所述第一周期的周期翻转点的时刻信息和所述周期时长,或者根据所述第二周期的周期翻转点的时刻信息和所述周期时长确定各个周期的周期翻转点。The second determining subunit is configured to determine the time information of each cycle according to the time information of the cycle turning point of the first cycle and the cycle duration, or according to the time information of the cycle turning point of the second cycle and the cycle duration Cycle rollover point.
在一些实施例中,第二确定子单元还配置为:In some embodiments, the second determining subunit is further configured to:
确定各个周期与参考周期之间的周期数差值,其中,所述参考周期为所述第一周期或所述第二周期;Determining the difference in the number of cycles between each cycle and a reference cycle, where the reference cycle is the first cycle or the second cycle;
根据所述周期时长和周期数差值,确定所述各个周期与所述参考周期之间的时间差值;Determine the time difference between each of the periods and the reference period according to the difference between the period duration and the number of periods;
根据所述参考周期的周期翻转点的时刻信息和所述各个周期对应的时间差值,确定所述各个周期的周期翻转点。Determine the period reversal point of each period according to the time information of the period reversal point of the reference period and the time difference corresponding to each period.
本申请实施例再提供一种随路性能检测装置,所述装置包括:The embodiment of the present application further provides a device for detecting the associated performance, and the device includes:
第一获取模块,配置为获取第一设备上报的各个周期的第二性能数据和对应的第二时刻信息;The first obtaining module is configured to obtain the second performance data of each period and the corresponding second time information reported by the first device;
第二获取模块,配置为获取第二设备上报的各个周期的第一性能数据和对应的第一时刻信息,其中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步;The second acquiring module is configured to acquire the first performance data of each period and the corresponding first time information reported by the second device, wherein the first performance data of each period is marked on a period-by-period basis sent by the first device Determining that the first device and the second device implement time synchronization based on a time synchronization protocol;
检测模块,配置为根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。The detection module is configured to check the communication between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information The communication link carries out the associated performance test.
在一些实施例中,所述检测模块包括:In some embodiments, the detection module includes:
第四确定单元,配置为根据各个第二时刻信息和各个第一时刻信息确定第一目标时间和第二目标时间,其中,第一目标时间与第二目标时间之间的差值小于预设的时长阈值;The fourth determining unit is configured to determine the first target time and the second target time according to the respective second moment information and the respective first moment information, wherein the difference between the first target time and the second target time is less than a preset value Duration threshold;
性能检测单元,配置为基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测。The performance detection unit is configured to perform path-associated performance detection on the communication link between the first device and the second device based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time.
在一些实施例中,所述性能检测单元,包括:In some embodiments, the performance detection unit includes:
第三确定子单元,配置为确定第一目标时间对应的第一性能数据中带有标记的报文数量和第二目标时间对应的第二性能数据中带有标记的报文数量之间的差值得到丢包数量;The third determining subunit is configured to determine the difference between the number of tagged packets in the first performance data corresponding to the first target time and the number of tagged packets in the second performance data corresponding to the second target time Value to get the number of lost packets;
第一检测子单元,配置为根据丢包数量,确定所述第一设备与所述第二设备之间的通信链路的丢包率。The first detection subunit is configured to determine the packet loss rate of the communication link between the first device and the second device according to the number of packet losses.
在一些实施例中,所述性能检测单元,包括:In some embodiments, the performance detection unit includes:
第四确定子单元,配置为确定所述第一性能数据中的第一时间戳信息和所述第二性能数据中的第二时间戳信息之间的时间差值;A fourth determining subunit, configured to determine the time difference between the first time stamp information in the first performance data and the second time stamp information in the second performance data;
第二检测子单元,配置为根据所述时间差值确定所述第一设备与第二设备之间的通信链路的时延。The second detection subunit is configured to determine the delay of the communication link between the first device and the second device according to the time difference value.
以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的随路性能检测方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一 台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiments of the present application, if the above-mentioned path-associated performance detection method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is allowed to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, Read Only Memory (ROM, Read Only Memory), magnetic disk or optical disk and other media that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
相应地,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述实施例中提供的随路性能检测方法中的步骤。Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method for detecting the associated performance provided in the foregoing embodiments are implemented.
本申请实施例提供一种随路性能检测设备,图8为本申请实施例提供的随路性能检测设备的组成结构示意图,如图8所示,所述随路性能检测设备800包括:一个处理器801、至少一个通信总线802、用户接口803、至少一个外部通信接口804和存储器805。其中,通信总线802配置为实现这些组件之间的连接通信。其中,用户接口803可以包括显示屏,外部通信接口804可以包括标准的有线接口和无线接口。其中,所述处理器801配置为执行存储器中存储的随路性能检测方法的程序,以实现以上述实施例提供的随路性能检测方法中的步骤An embodiment of the present application provides a path-accompanied performance detection device. FIG. 8 is a schematic diagram of the structure of the path-associated performance detection device provided in an embodiment of the application. As shown in FIG. 8, the path-accompaniment performance detection device 800 includes: a process 801, at least one communication bus 802, user interface 803, at least one external communication interface 804, and memory 805. Wherein, the communication bus 802 is configured to implement connection and communication between these components. The user interface 803 may include a display screen, and the external communication interface 804 may include a standard wired interface and a wireless interface. Wherein, the processor 801 is configured to execute the program of the tracking performance detection method stored in the memory, so as to implement the steps in the tracking performance detection method provided in the above-mentioned embodiment.
以上随路性能检测设备和存储介质实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请随路性能检测设备和存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The above description of the associated performance detection device and storage medium embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the associated performance detection device and storage medium of this application, please refer to the description of the method embodiments of this application for understanding.
这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that “one embodiment” or “an embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the foregoing embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; The unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, the execution includes The steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, a read only memory (ROM, Read Only Memory), a magnetic disk, or an optical disk.
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台AC执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the aforementioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for This allows an AC to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage media include: removable storage devices, ROMs, magnetic disks or optical discs and other media that can store program codes.
以上所述,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only the implementation manners of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Covered in the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本发明实施例中提供的第二设备接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同;基于所述业务报文的标记信息确定各个周期的周期翻转点;根据各个周期的周期翻转点确定各个周期的第一性能数据, 并记录所述各个周期的第一性能数据对应的第一时刻信息;发送所述各个周期的第一性能数据和对应的第一时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和对应的第一时刻信息进行性能检测;其中,所述第一设备和自身基于时间同步协议实现时间同步,在进行性能检测时并不需要获取周期编号,也不需要约定第一设备和第二设备采用同一周期时长,因而能够提升随路性能检测部署的灵活性,并且对应周期内的性能数据的匹配更准确。The second device provided in the embodiment of the present invention receives the service message that is marked by the cycle sent by the first device, wherein the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is the same Different; determine the cycle rollover point of each cycle based on the mark information of the service message; determine the first performance data of each cycle according to the cycle rollover point of each cycle, and record the first performance data corresponding to the first performance data of each cycle Time information; sending the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information; wherein , The first device and itself implement time synchronization based on the time synchronization protocol, and there is no need to obtain the cycle number when performing performance testing, and it is not necessary to agree that the first device and the second device use the same cycle duration, thereby improving the performance of the path. The flexibility of detection deployment, and the matching of performance data in the corresponding period is more accurate.

Claims (12)

  1. 一种随路性能检测方法,包括:A method for detecting the associated performance, including:
    接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同;Receiving a service message that is marked by a cycle sent by the first device, where the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is different;
    基于所述业务报文的标记信息确定各个周期的周期翻转点;Determining the cycle rollover point of each cycle based on the marking information of the service message;
    根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据对应的第一时刻信息;Determining the first performance data of each period according to the period turning point of each period, and recording the first time information corresponding to the first performance data of each period;
    发送所述各个周期的第一性能数据和对应的第一时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和对应的第一时刻信息进行性能检测;Sending the first performance data of each cycle and the corresponding first time information to the detection unit, so that the detection unit performs performance detection according to the first performance data of each cycle and the corresponding first time information;
    其中,所述第一设备和自身基于时间同步协议实现时间同步。Wherein, the first device and itself implement time synchronization based on a time synchronization protocol.
  2. 根据权利要求1所述的方法,所述基于所述业务报文的标记信息确定各个周期的周期翻转点,包括:The method according to claim 1, wherein the determining the period rollover point of each period based on the marking information of the service message comprises:
    当连续收到所述第一标记信息后连续收到N个所述第二标记信息时,确定第一周期的周期翻转点;When the first marking information is continuously received and N second marking information are continuously received, determining the period turning point of the first period;
    当连续收到所述第二标记信息后连续收到N个所述第一标记信息时,确定第二周期的周期翻转点,其中,N大于预设值,所述第一周期和所述第二周期相邻;When the second mark information is continuously received and N pieces of the first mark information are continuously received, the period rollover point of the second period is determined, where N is greater than a preset value, and the first period and the first period Two cycles adjacent;
    至少根据所述第一周期的周期翻转点和所述第二周期的周期翻转点确定各个周期的周期翻转点。The period reversal point of each period is determined at least according to the period reversal point of the first period and the period reversal point of the second period.
  3. 根据权利要求2所述的方法,所述至少根据第一周期的周期翻转点和第二周期的周期翻转点确定各个周期的周期翻转点,包括:The method according to claim 2, wherein the determining the period reversal point of each period at least according to the period reversal point of the first period and the period reversal point of the second period comprises:
    至少根据所述第一周期的周期翻转点的时刻信息和所述第二周期的周期翻转点的时刻信息,确定周期时长;Determining the period duration according to at least the time information of the period reversal point of the first period and the time information of the period reversal point of the second period;
    根据所述第一周期的周期翻转点的时刻信息和所述周期时长,或者根 据所述第二周期的周期翻转点的时刻信息和所述周期时长确定各个周期的周期翻转点。The period reversal point of each period is determined according to the time information of the period reversal point of the first period and the period duration, or according to the time information of the period reversal point of the second period and the period duration.
  4. 根据权利要求3所述的方法,所述根据所述第一周期的周期翻转点的时刻信息和所述周期时长,或者根据第二周期的周期翻转点的时刻信息和所述周期时长确定各个周期的周期翻转点,包括:The method according to claim 3, wherein each period is determined according to the time information of the period reversal point of the first period and the period duration, or according to the time information of the period reversal point of the second period and the period duration The cycle rollover points include:
    确定各个周期与参考周期之间的周期数差值,其中,所述参考周期为所述第一周期或所述第二周期;Determining the difference in the number of cycles between each cycle and a reference cycle, where the reference cycle is the first cycle or the second cycle;
    根据所述周期时长和周期数差值,确定所述各个周期与所述参考周期之间的时间差值;Determine the time difference between each of the periods and the reference period according to the difference between the period duration and the number of periods;
    根据所述参考周期的周期翻转点的时刻信息和所述各个周期对应的时间差值,确定所述各个周期的周期翻转点。Determine the period reversal point of each period according to the time information of the period reversal point of the reference period and the time difference corresponding to each period.
  5. 一种随路性能检测方法,包括:A method for detecting the associated performance, including:
    获取第一设备上报的各个周期的第二性能数据和对应的第二时刻信息;Acquiring the second performance data of each cycle and the corresponding second time information reported by the first device;
    获取第二设备上报的各个周期的第一性能数据和对应的第一时刻信息,其中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步;Acquire the first performance data of each period and the corresponding first time information reported by the second device, where the first performance data of each period is determined based on the service packet marked by the period sent by the first device, so The first device and the second device implement time synchronization based on a time synchronization protocol;
    根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测。Perform random tracking of the communication link between the first device and the second device according to the second performance data of each cycle and the corresponding second time information, the first performance data of each cycle and the corresponding first time information. Road performance testing.
  6. 根据权利要求5所述的方法,所述根据所述各个周期的第二性能数据和对应的第二时刻信息、各个周期的第一性能数据和对应的第一时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测,包括:According to the method of claim 5, the second performance data of each period and the corresponding second time information, the first performance data of each period and the corresponding first time information are compared to the first device and the corresponding first time information. The associated performance test of the communication link between the second device includes:
    根据各个第二时刻信息和各个第一时刻信息,从所述各个第一时刻信 息中确定第一目标时间,从所述各个第二时刻信息中确定与第一目标时间对应的第二目标时间,其中,第一目标时间与第二目标时间之间的差值小于预设的时长阈值;According to the respective second time information and the respective first time information, the first target time is determined from the respective first time information, and the second target time corresponding to the first target time is determined from the respective second time information, Wherein, the difference between the first target time and the second target time is less than a preset duration threshold;
    基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测。Based on the first performance data corresponding to the first target time and the second performance data corresponding to the second target time, the following performance detection is performed on the communication link between the first device and the second device.
  7. 根据权利要求6中所述的方法,所述性能检测为丢包检测,所述基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测,包括:According to the method of claim 6, the performance detection is packet loss detection, and the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are used for the comparison between the first device and the second performance data corresponding to the second target time. The associated performance test of the communication link between the second device includes:
    确定第一目标时间对应的第一性能数据中带有标记的报文数量和第二目标时间对应的第二性能数据中带有标记的报文数量之间的差值得到丢包数量;Determining the difference between the number of marked packets in the first performance data corresponding to the first target time and the number of marked packets in the second performance data corresponding to the second target time to obtain the number of lost packets;
    根据丢包数量,确定所述第一设备与所述第二设备之间的通信链路的丢包率。Determine the packet loss rate of the communication link between the first device and the second device according to the number of lost packets.
  8. 根据权利要求6所述的方法,所述性能检测为时延检测,所述基于第一目标时间对应的第一性能数据和第二目标时间对应的第二性能数据对所述第一设备与第二设备之间的通信链路进行随路性能检测,包括:The method according to claim 6, wherein the performance detection is delay detection, and the first performance data corresponding to the first target time and the second performance data corresponding to the second target time are used for the first device and the second performance data. The communication link between the two devices is tested for the associated performance, including:
    确定所述第一性能数据中的第一时间戳信息和所述第二性能数据中的第二时间戳信息之间的时间差值;Determining the time difference between the first time stamp information in the first performance data and the second time stamp information in the second performance data;
    根据所述时间差值确定所述第一设备与第二设备之间的通信链路的时延。Determine the delay of the communication link between the first device and the second device according to the time difference.
  9. 一种随路性能检测装置,所述装置包括:An associated performance detection device, said device comprising:
    接收模块,配置为接收第一设备发送的按周期进行标记的业务报文,其中,同一周期内的业务报文的标记信息相同,相邻周期间的业务报文的标记信息不同;A receiving module, configured to receive a service message marked by a cycle sent by the first device, wherein the marking information of the business message in the same cycle is the same, and the marking information of the business message between adjacent cycles is different;
    第一确定模块,配置为基于所述业务报文的标记信息确定各个周期的 周期翻转点;The first determining module is configured to determine the cycle rollover point of each cycle based on the marking information of the service message;
    第二确定模块,配置为根据各个周期的周期翻转点确定各个周期的第一性能数据,并记录所述各个周期的第一性能数据产生的时刻信息;The second determining module is configured to determine the first performance data of each period according to the period turning point of each period, and record the time information when the first performance data of each period is generated;
    发送模块,配置为发送所述各个周期的第一性能数据和所述各个周期的第一性能数据产生的时刻信息至检测单元,以使检测单元根据所述各个周期的第一性能数据和所述各个周期的第一性能数据产生的时刻信息进行性能检测;The sending module is configured to send the first performance data of each period and the time information at which the first performance data of each period is generated to the detection unit, so that the detection unit can be based on the first performance data of each period and the Perform performance detection on the time information when the first performance data of each cycle is generated;
    其中,所述第一设备和自身基于时间同步协议实现时间同步。Wherein, the first device and itself implement time synchronization based on a time synchronization protocol.
  10. 一种随路性能检测装置,所述装置包括:An associated performance detection device, said device comprising:
    第一获取模块,配置为获取第一设备上报的各个周期的第二性能数据和各个周期的第二性能数据产生的时刻信息;The first obtaining module is configured to obtain the second performance data of each period reported by the first device and the time information at which the second performance data of each period is generated;
    第二获取模块,配置为获取第二设备上报的各个周期的第一性能数据和各个周期的第一性能数据产生的时刻信息,其中,所述各个周期的第一性能数据是基于第一设备发送的按周期进行标记的业务报文确定,所述第一设备和第二设备基于时间同步协议实现时间同步;The second acquiring module is configured to acquire the first performance data of each cycle and the time information at which the first performance data of each cycle reported by the second device is generated, wherein the first performance data of each cycle is based on the first performance data sent by the first device Determine the service message that is marked periodically, and the first device and the second device implement time synchronization based on a time synchronization protocol;
    检测模块,配置为根据所述各个周期的第二性能数据、各个周期的第二性能数据产生的时刻信息、各个周期的第一性能数据和各个周期的第一性能数据产生的时刻信息对所述第一设备与第二设备之间的通信链路进行随路性能检测,其中,所述第一设备和第二设备基于时间同步协议实现时间同步。The detection module is configured to compare the second performance data of each period, the time information generated by the second performance data of each period, the first performance data of each period and the time information generated by the first performance data of each period The communication link between the first device and the second device performs path-associated performance detection, where the first device and the second device implement time synchronization based on a time synchronization protocol.
  11. 一种随路性能检测设备,所述装置至少包括:An accompanying performance testing equipment, the device at least includes:
    处理器;以及Processor; and
    存储器,配置为存储可在所述处理器上运行的计算机程序;A memory configured to store a computer program that can run on the processor;
    其中,所述计算机程序被处理器执行时实现权利要求1至4或5至8任一项所述的随路性能检测方法的步骤。Wherein, when the computer program is executed by a processor, the steps of the path-associated performance detection method according to any one of claims 1 to 4 or 5 to 8 are realized.
  12. 一种计算机可读存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求1至4或5至8任一项所述的随路性能检测方法的步骤。A computer-readable storage medium in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the method for detecting the associated performance of any one of claims 1 to 4 or 5 to 8 A step of.
PCT/CN2020/141786 2020-01-02 2020-12-30 Associated performance measurement method and apparatus, device, and computer readable storage medium WO2021136449A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010000668.1A CN113067740B (en) 2020-01-02 2020-01-02 Method, device, equipment and computer readable storage medium for detecting following path performance
CN202010000668.1 2020-01-02

Publications (1)

Publication Number Publication Date
WO2021136449A1 true WO2021136449A1 (en) 2021-07-08

Family

ID=76558141

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141786 WO2021136449A1 (en) 2020-01-02 2020-12-30 Associated performance measurement method and apparatus, device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN113067740B (en)
WO (1) WO2021136449A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113644998A (en) * 2021-08-23 2021-11-12 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN115065618A (en) * 2022-08-18 2022-09-16 广州中和互联网技术有限公司 Method and system for detecting reliability of acquired data based on time sequence analysis

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366494A (en) * 2021-12-28 2023-06-30 中国移动通信有限公司研究院 Stream following detection method, device, network equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101187A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Ip performance measurement method and device
CN108809771A (en) * 2018-08-10 2018-11-13 锐捷网络股份有限公司 SDN network data stream monitoring method, SDN controllers, switching equipment and system
CN109314652A (en) * 2016-09-18 2019-02-05 华为技术有限公司 Network for formance measuring method and device
CN110572293A (en) * 2018-06-06 2019-12-13 华为技术有限公司 Data message detection method, equipment and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3328002B1 (en) * 2010-12-09 2019-05-15 Lantiq Deutschland GmbH Mac cycle alignment method for neighboring network coordination
CN102904775B (en) * 2012-09-29 2015-04-29 华为技术有限公司 Method, apparatus and system for measuring network packet loss
CN105281969B (en) * 2014-07-04 2019-11-29 华为技术有限公司 A kind of statistical information acquisition methods and device
CN107996023B (en) * 2016-11-23 2020-04-28 华为技术有限公司 Method and equipment for monitoring virtual network and virtual network system
CN107547300B (en) * 2017-06-16 2020-05-12 新华三技术有限公司 Network quality detection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101187A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Ip performance measurement method and device
CN109314652A (en) * 2016-09-18 2019-02-05 华为技术有限公司 Network for formance measuring method and device
CN110572293A (en) * 2018-06-06 2019-12-13 华为技术有限公司 Data message detection method, equipment and system
CN108809771A (en) * 2018-08-10 2018-11-13 锐捷网络股份有限公司 SDN network data stream monitoring method, SDN controllers, switching equipment and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113644998A (en) * 2021-08-23 2021-11-12 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN113644998B (en) * 2021-08-23 2023-06-09 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN115065618A (en) * 2022-08-18 2022-09-16 广州中和互联网技术有限公司 Method and system for detecting reliability of acquired data based on time sequence analysis
CN115065618B (en) * 2022-08-18 2022-11-29 广州中和互联网技术有限公司 Method and system for detecting reliability of acquired data based on time sequence analysis

Also Published As

Publication number Publication date
CN113067740A (en) 2021-07-02
CN113067740B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
WO2021136449A1 (en) Associated performance measurement method and apparatus, device, and computer readable storage medium
US8243599B2 (en) Method and apparatus for high resolution passive network latency measurement
Bell et al. Nodobo: Mobile phone as a software sensor for social network research
US8774008B2 (en) Real-time network measurement
US8943062B2 (en) Real-time data threshold generation and monitoring
WO2022037206A1 (en) Network packet loss detection method and apparatus, storage medium, and network system
CN112615693A (en) Method, device, equipment and system for clock synchronization
WO2018036230A1 (en) Signal testing method and device, and computer storage medium
CN112714007B (en) Method and device for detecting service message dyeing marks of all IOAM (input/output access am) equipment
EP3975483A1 (en) Congestion measurement method and network node
Jouans et al. Associating the randomized bluetooth mac addresses of a device
CN109253808A (en) time coincidence counting system, method and device
CN105912439A (en) Method, device and system for computer monitoring
JP5515088B2 (en) Method and system for determining a dependency between device parameters and signal parameters of a mobile phone
EP4096278A1 (en) Method and apparatus for reporting in-situ flow information telemetry (ifit) detection information
WO2018126757A1 (en) Data processing method and device
CN108810821B (en) Attendance tracking method, device, terminal, server and storage medium
WO2020259113A1 (en) Network performance measurement device and method
Hsiao et al. An empirical evaluation of Bluetooth-based decentralized contact tracing in crowds
WO2021227644A1 (en) Information sending and receiving method and apparatus, and device
US8989032B2 (en) Systems and methods for measuring frame loss in multipoint networks
CN108024279B (en) Method and server for obtaining measurement report
CN112073905B (en) Distance difference determining method, data frame transmission method and related product
WO2024055584A1 (en) Delay measurement method, electronic device, and computer-readable medium
CN109347589B (en) Data transmission method and network node

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20910406

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20910406

Country of ref document: EP

Kind code of ref document: A1