WO2016054884A1 - Frequency deviation monitoring method, device and computer storage medium - Google Patents

Frequency deviation monitoring method, device and computer storage medium Download PDF

Info

Publication number
WO2016054884A1
WO2016054884A1 PCT/CN2015/072628 CN2015072628W WO2016054884A1 WO 2016054884 A1 WO2016054884 A1 WO 2016054884A1 CN 2015072628 W CN2015072628 W CN 2015072628W WO 2016054884 A1 WO2016054884 A1 WO 2016054884A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
timestamp
frequency offset
ptp
clock node
Prior art date
Application number
PCT/CN2015/072628
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 WO2016054884A1 publication Critical patent/WO2016054884A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Definitions

  • the present invention relates to the field of packet synchronization networks, and in particular, to a frequency offset monitoring method, apparatus, and computer storage medium.
  • the time synchronization network of the precision clock synchronization protocol standard 1588v2 based on network measurement and control system has been widely used in mobile operators.
  • the packet bearer clock node needs to monitor the packet layer time synchronization and the performance of the clock node internal time module in real time.
  • OAM Operation Administration and Maintenance
  • Embodiments of the present invention provide a frequency offset monitoring method, apparatus, and computer storage medium, which can effectively implement frequency offset monitoring and control of adjacent clock nodes.
  • An embodiment of the present invention provides a frequency offset monitoring method, where the method includes:
  • Determining the slave clock node to be tested relative to the master clock according to the timestamp group of the obtained PTP packet The frequency offset estimate of the node.
  • the method further includes:
  • the method further includes:
  • the statistical data is reported for the network manager to determine whether the statistical data exceeds an alarm threshold.
  • the timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message.
  • the determining, according to the timestamp group of the acquired PTP packet, the frequency offset estimation value of the measured slave clock node relative to the primary clock node includes:
  • the timestamp group corresponding to the preset time period and the timestamp group of the first group of PTP messages and the timestamp group of the last group of PTP messages that are selected in the preset time period And determining a frequency offset estimation value corresponding to the preset time period.
  • An embodiment of the present invention further provides a frequency offset monitoring apparatus, where the apparatus includes: an acquiring module, and a determining module; wherein
  • the acquiring module is configured to receive a triggering instruction, and obtain a timestamp group of the PTP packet in response to the received triggering instruction;
  • the determining module is configured to determine, according to the timestamp group of the acquired PTP packet, the to-be-tested The frequency offset estimate of the clock node relative to the primary clock node.
  • the device further includes: a determining module and a first reporting module; wherein
  • the determining module is configured to determine whether the determined frequency offset estimation value exceeds an alarm threshold
  • the first reporting module is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold.
  • the device further includes: a statistics module and a second reporting module; wherein
  • the statistic module is configured to perform statistics on the determined frequency offset estimation values to obtain statistical data
  • the second reporting module is configured to report the statistical data, so that the network manager determines whether the statistical data exceeds an alarm threshold.
  • the determining module includes a first determining module, a screening module, and a second determining module; wherein
  • the first determining module is configured to determine, according to the timestamp group of the obtained PTP packet, a time offset of the slave clock node and the master clock node to be tested;
  • the filtering module is configured to: in the timestamp group of the obtained PTP packet, filter the first group of timestamp groups and the timestamp group of the last group of PTP messages in the preset time period;
  • the second determining module is configured to: according to the determined time offset corresponding to the preset time period, and the selected time stamp group and the last group of the first group of PTP messages in the preset time period A timestamp group of a set of PTP packets, and determining a frequency offset estimation value corresponding to the preset time period.
  • the second determining module is configured according to the determined time offset corresponding to the preset time period T, and the filtered first group of PTP messages that are within a preset time period T
  • the timestamp group and the timestamp group of the last set of PTP messages determine the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
  • the T1 and T2 are the last set of PTP messages in the preset time period T, respectively.
  • the sending time and receiving time of the synchronous Sync message in the timestamp group; the t1 and t2 are the sending time and receiving of the synchronous Sync message in the first group of timestamp groups in the preset time period T, respectively.
  • Time; the Theta is the summed sum of all time offsets Offset corresponding to the preset time period T determined.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the frequency offset monitoring method according to the embodiment of the invention.
  • the frequency offset monitoring method and device and the computer storage medium provided by the embodiment of the present invention receive a triggering instruction from the clock node to be tested; obtain a timestamp group of the PTP packet in response to the triggering instruction; and according to the obtained PTP packet The timestamp group determines the frequency offset estimate of the slave clock node to be tested relative to the master clock node. In this way, frequency offset monitoring of adjacent clock nodes can be effectively implemented by using the slave clock node to be tested.
  • determining whether the determined frequency offset estimation value exceeds an alarm threshold value when the determined frequency offset estimation value exceeds an alarm threshold value, reporting alarm information; or, performing statistics on the determined frequency offset estimation value, Obtaining statistics; reporting the statistics for the network manager to determine whether the statistics exceeds an alarm threshold.
  • FIG. 1 is a schematic flowchart 1 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention
  • FIG. 2 is a second schematic diagram of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart 3 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram 1 of a frequency offset monitoring device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a determining module in a frequency offset monitoring apparatus according to an embodiment of the present invention.
  • FIG. 6 is a second schematic structural diagram of a frequency offset monitoring apparatus according to an embodiment of the present invention.
  • FIG. 7 is a third schematic structural diagram of a frequency offset monitoring apparatus according to an embodiment of the present invention.
  • the slave clock node to be tested receives the triggering command; the timestamp group of the PTP packet is obtained in response to the triggering command; and the clock to be tested is determined according to the timestamp group of the obtained PTP packet.
  • FIG. 1 is a schematic flowchart 1 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention. As shown in FIG. 1 , a frequency offset monitoring method according to an embodiment of the present invention includes:
  • Step S100 receiving a trigger instruction
  • the network management manager in the process of time synchronization between the primary clock node and the secondary clock node, sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested.
  • the partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
  • Step S101 Acquire a timestamp group of the PTP packet in response to the triggering instruction.
  • the PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
  • the timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
  • Step S102 Determine a frequency offset estimation value of the slave clock node to be tested relative to the master clock node according to the timestamp group of the acquired PTP message.
  • the slave clock node and the master to be tested are determined according to the timestamp group of the obtained PTP packet.
  • the time offset of the clock node; the timestamp group of the obtained PTP packet is used to filter the first group of timestamp groups in the preset time period T and the timestamp group of the last group of PTP messages;
  • step S102 the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
  • the timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
  • the T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
  • step S101 and step S102 may be periodic or non-periodic.
  • the slave clock node to be tested is triggered to perform step S101 and step S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second. The operation of the timestamp group of the PTP packet is obtained. Similarly, in the execution of the step S102, the slave clock node to be tested determines the clock to be tested according to the timestamp group of the acquired PTP packet every 1 second. Frequency offset of the node relative to the primary clock node estimated value.
  • the slave clock node to be tested may be triggered to perform step S101 and step S102 in a non-periodic manner; for example, in the execution of step S101, the slave clock node that triggers the test may be preset to perform step S101.
  • the time interval is an incremental sequence, and the time interval may be a value of 1 s, 3 s, 2 s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1 s, 2 s, 3 s, .
  • the value of the time interval may also be an incremental sequence or a random array.
  • the frequency offset monitoring method according to the embodiment of the present invention can effectively implement frequency offset monitoring of adjacent clock nodes by using the slave clock node to be tested.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the frequency offset monitoring method according to the first embodiment of the present invention.
  • FIG. 2 is a schematic flowchart 2 of the implementation process of the frequency offset monitoring method according to the embodiment of the present invention. As shown in FIG. 2, the frequency offset monitoring method in the embodiment of the present invention includes:
  • Step S100 receiving a trigger instruction
  • the network management manager in the process of time synchronization between the primary clock node and the secondary clock node, sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested.
  • the partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
  • Step S101 Acquire a timestamp group of a precision time protocol PTP message in response to the triggering instruction
  • the PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
  • the timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
  • Step S102 Determine, according to the timestamp group of the acquired PTP packet, a frequency offset estimation value of the slave clock node to be tested relative to the master clock node;
  • the time offset of the slave clock node and the master clock node to be tested is determined according to the timestamp group of the obtained PTP packet; and the source is in the preset time period T in the timestamp group of the obtained PTP packet.
  • a first set of timestamp groups and a timestamp group of the last set of PTP messages are determined, and the frequency offset estimation value corresponding to the preset time period T is determined.
  • step S102 the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
  • the timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
  • the T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
  • Step S103 determining whether the determined frequency offset estimation value F exceeds the alarm threshold; when the determined frequency offset estimation value does not exceed the alarm threshold, since the frequency offset estimation value is within the allowable error range, It is not necessary to report the alarm information to the network management server, and the process ends; otherwise, step S104 is performed;
  • the alarm threshold value is usually 5 ppb; the value of the alarm threshold value may also be preset according to actual conditions.
  • Step S104 When the determined frequency offset estimation value exceeds the alarm threshold, the alarm information is reported.
  • the reported alarm information includes at least a PTP logical port number of the slave clock node to be tested and the determined frequency offset estimation value F.
  • the reported alarm information may further include a parent port number of the slave clock node to be tested, and the port number.
  • the alarm information reported may also include an alarm time and the like.
  • the slave clock nodes to be tested are usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second.
  • the operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second.
  • the estimated frequency offset of the primary clock node is usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second.
  • the operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second.
  • the estimated frequency offset of the primary clock node is usually triggered
  • step S101 to S102 may be performed by using the non-periodic manner to trigger the slave clock node to be tested.
  • the time for triggering the slave clock node to be tested to perform step S101 may be preset.
  • the interval is an incremental sequence.
  • the time interval may be 1s, 3s, 2s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1s, 2s, 3s, ..., etc.
  • the value of the time interval may also be an incremental sequence or a random array.
  • the frequency offset monitoring method in the embodiment of the present invention can effectively implement frequency offset monitoring and control on adjacent clock nodes by combining the clock node to be tested and the network manager, thereby implementing a time synchronization network for 1588v2. Efficient operation and maintenance.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the frequency offset monitoring method according to the second embodiment of the present invention.
  • a frequency offset monitoring method according to an embodiment of the present invention includes:
  • Step S100 receiving a trigger instruction
  • the network management manager in the process of time synchronization between the primary clock node and the secondary clock node, sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested.
  • the partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
  • Step S101 Acquire a timestamp group of a precision time protocol PTP message in response to the triggering instruction
  • the PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
  • the timestamp group of the PTP packet includes: a timestamp of the timestamp delay request Delay_Req message of each synchronous Sync message, and a timestamp of the delay response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
  • Step S102 Determine, according to the timestamp group of the acquired PTP packet, a frequency offset estimation value of the slave clock node to be tested relative to the master clock node;
  • the time offset of the slave clock node and the master clock node to be tested is determined according to the timestamp group of the obtained PTP packet; and the source is in the preset time period T in the timestamp group of the obtained PTP packet.
  • step S102 the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
  • the timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
  • the T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
  • Step S103a Perform statistics on the determined frequency offset estimation values to obtain statistical data.
  • the obtained statistical data includes the PTP logical port number of the slave clock node to be tested and the determined frequency offset estimated value F, and the maximum and minimum values of the frequency offset estimated value F.
  • Step S104a Report the statistical data for the network manager to determine whether the statistical data exceeds an alarm threshold.
  • the alarm threshold value is usually 5 ppb.
  • the PTP logical port number of the slave clock node to be tested needs to be reported to the network manager; the parent port number, the port number, and the machine may be further reported to the network manager. Frame number, slot number, etc.
  • the slave clock nodes to be tested are usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second.
  • the operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second.
  • the estimated frequency offset of the primary clock node is usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second.
  • the operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second.
  • the estimated frequency offset of the primary clock node is usually triggered
  • step S101 to S102 may be performed by using the non-periodic manner to trigger the slave clock node to be tested.
  • the time for triggering the slave clock node to be tested to perform step S101 may be preset.
  • the interval is an incremental sequence.
  • the time interval may be 1s, 3s, 2s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1s, 2s, 3s, ..., etc.
  • the value of the time interval may also be an incremental sequence or a random array.
  • the frequency offset monitoring method in the embodiment of the present invention can effectively implement frequency offset monitoring and control on adjacent clock nodes by combining the clock node to be tested and the network manager, thereby implementing a time synchronization network for 1588v2. Efficient operation and maintenance.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the frequency offset monitoring method according to the third embodiment of the invention.
  • the apparatus includes: an obtaining module 10, and a determining module 20;
  • the acquiring module 10 is configured to receive a triggering instruction, and obtain a timestamp group of the PTP packet in response to the received triggering instruction;
  • the PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
  • the timestamp group of the PTP message includes: a timestamp of each synchronous Sync message and The timestamp of the follow-up message corresponding to the synchronous Sync message, the timestamp of the delay request Delay_Req message, and the timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
  • the determining module 20 is configured to determine a frequency offset estimation value of the slave clock node to be tested relative to the master clock node according to the timestamp group of the acquired PTP message.
  • the determining module 20 includes a first determining module 21, a screening module 22, and a second determining module 23;
  • the first determining module 21 is configured to determine, according to the timestamp group of the acquired PTP packet, a time offset of the slave clock node and the master clock node to be tested;
  • the screening module 22 is configured to: in the timestamp group of the obtained PTP packet, filter the first group of timestamp groups and the timestamp group of the last group of PTP messages within a preset time period;
  • the second determining module 23 is configured to: according to the determined time offset corresponding to the preset time period, and the selected time stamp group of the first group of PTP messages that are in the preset time period The timestamp group of the last set of PTP messages determines the frequency offset estimation value corresponding to the preset time period.
  • the second determining module 23 is configured according to the determined time offset corresponding to the preset time period T, and the selected time stamp group of the first group of PTP messages in the preset time period T. And the timestamp group of the last set of PTP messages, and the calculation formula of the frequency offset estimation value F corresponding to the preset time period T is determined as follows:
  • the T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
  • the device further includes a determining module 30 and a first reporting module 40;
  • the determining module 30 is configured to determine whether the determined frequency offset estimation value exceeds an alarm threshold
  • the first reporting module 40 is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold.
  • the device further includes a statistic module 31 and a second reporting module 41;
  • the statistic module 31 is configured to perform statistics on the determined frequency offset estimation values to obtain statistical data.
  • the second reporting module 41 is configured to report the statistical data, so that the network manager determines whether the statistical data exceeds an alarm threshold.
  • the obtaining module 10, the determining module 20, the first determining module 21, the screening module 22, the second determining module 23, the determining module 30, the first reporting module 40, the statistic module 31, and the second reporting module 41 can be measured by a central processing unit (CPU), a microprocessor (Micor Processor Unit (MPU), a digital signal processor (DSP), or a field programmable gate array in the slave clock node to be tested. (Field Programmable Gate Array, FPGA) and other implementations.
  • CPU central processing unit
  • MPU Microprocessor Processor Unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention receives the triggering instruction from the clock node to be tested; in response to the triggering instruction, obtains a timestamp group of the PTP packet of the precise time protocol; and determines, according to the timestamp group of the obtained PTP packet, the relative clock node to be tested.
  • the estimated frequency offset of the primary clock node In this way, frequency offset monitoring of adjacent clock nodes can be effectively implemented by using the slave clock node to be tested.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

Provided in the present invention are a frequency deviation monitoring method, device and computer storage medium, the method comprising: receiving a triggering instruction; obtaining a timestamp group of a precision time protocol (PTP) message in response to the triggering instruction; determining an estimated frequency deviation value of a to-be-monitored slave clock node with respect to a master clock node according to the timestamp group of the obtained PTP message.

Description

一种频偏监测方法、装置及计算机存储介质Frequency offset monitoring method, device and computer storage medium 技术领域Technical field
本发明涉及分组同步网领域,尤其涉及一种频偏监测方法、装置及计算机存储介质。The present invention relates to the field of packet synchronization networks, and in particular, to a frequency offset monitoring method, apparatus, and computer storage medium.
背景技术Background technique
近年来,随着移动通信技术的不断发展,基于网络测量和控制***的精密时钟同步协议标准1588v2的时间同步网络已经广泛应用于移动运营商。随着1588v2同步网的规模越来越大,为了实现对1588v2的时间同步网的高效运维,需要分组承载时钟节点对分组层时间同步情况以及时钟节点内部时间模块的性能情况进行实时监测。然而,基于时间同步网的操作管理维护(Operation Administration and Maintenance,OAM)体系及其相关技术并不成熟,尤其是对1588v2的时间同步网络,目前还没有一套成熟有效的方法来实现对相邻时钟节点的频偏监测及控制。In recent years, with the continuous development of mobile communication technology, the time synchronization network of the precision clock synchronization protocol standard 1588v2 based on network measurement and control system has been widely used in mobile operators. As the size of the 1588v2 synchronous network is larger and larger, in order to achieve efficient operation and maintenance of the 1588v2 time synchronization network, the packet bearer clock node needs to monitor the packet layer time synchronization and the performance of the clock node internal time module in real time. However, the Operation Administration and Maintenance (OAM) system based on time synchronization network and its related technologies are not mature, especially for the 1588v2 time synchronization network. Currently, there is no mature and effective method to achieve adjacent Frequency offset monitoring and control of clock nodes.
发明内容Summary of the invention
本发明实施例提供一种频偏监测方法、装置及计算机存储介质,能够有效实现对相邻时钟节点的频偏监测及控制。Embodiments of the present invention provide a frequency offset monitoring method, apparatus, and computer storage medium, which can effectively implement frequency offset monitoring and control of adjacent clock nodes.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种频偏监测方法,该方法包括:An embodiment of the present invention provides a frequency offset monitoring method, where the method includes:
接收触发指令;Receiving a trigger instruction;
响应所述触发指令,获取精密时间协议(Precision Time Protocol,PTP)PTP报文的时间戳组;Obtaining a timestamp group of a Precision Time Protocol (PTP) PTP packet in response to the triggering instruction;
根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟 节点的频偏估计值。Determining the slave clock node to be tested relative to the master clock according to the timestamp group of the obtained PTP packet The frequency offset estimate of the node.
在一实施例中,所述方法还包括:In an embodiment, the method further includes:
判断所确定的频偏估计值是否超出告警门限值;Determining whether the determined frequency offset estimate exceeds an alarm threshold;
当所确定的频偏估计值超出告警门限值时,上报告警信息。When the determined frequency offset estimation exceeds the alarm threshold, an alarm message is reported.
在一实施例中,所述方法还包括:In an embodiment, the method further includes:
对所确定的频偏估计值进行统计,获得统计数据;Performing statistics on the determined frequency offset estimation values to obtain statistical data;
上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。The statistical data is reported for the network manager to determine whether the statistical data exceeds an alarm threshold.
在一实施例中,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳、延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。In an embodiment, the timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message.
在一实施例中,所述根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值包括:In an embodiment, the determining, according to the timestamp group of the acquired PTP packet, the frequency offset estimation value of the measured slave clock node relative to the primary clock node includes:
根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;Determining, according to the timestamp group of the obtained PTP packet, a time offset of the slave clock node and the master clock node to be tested;
在所获取的PTP报文的时间戳组中筛选出处在预设时间段内的第一组时间戳组和最后一组PTP报文的时间戳组;Filtering, in the timestamp group of the obtained PTP packet, the first group of timestamp groups and the timestamp group of the last group of PTP packets in the preset time period;
根据所确定的对应于预设时间段的时间偏移量,及所筛选出的处在预设时间段内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段的频偏估计值。The timestamp group corresponding to the preset time period and the timestamp group of the first group of PTP messages and the timestamp group of the last group of PTP messages that are selected in the preset time period And determining a frequency offset estimation value corresponding to the preset time period.
本发明实施例还提供一种频偏监测装置,该装置包括:获取模块、以及确定模块;其中,An embodiment of the present invention further provides a frequency offset monitoring apparatus, where the apparatus includes: an acquiring module, and a determining module; wherein
所述获取模块,配置为接收触发指令;响应所接收的触发指令,获取PTP报文的时间戳组;The acquiring module is configured to receive a triggering instruction, and obtain a timestamp group of the PTP packet in response to the received triggering instruction;
所述确定模块,配置为根据所获取的PTP报文的时间戳组确定待测从 时钟节点相对于主时钟节点的频偏估计值。The determining module is configured to determine, according to the timestamp group of the acquired PTP packet, the to-be-tested The frequency offset estimate of the clock node relative to the primary clock node.
在一实施例中,所述装置还包括:判断模块和第一上报模块;其中,In an embodiment, the device further includes: a determining module and a first reporting module; wherein
所述判断模块,配置为判断所确定的频偏估计值是否超出告警门限值;The determining module is configured to determine whether the determined frequency offset estimation value exceeds an alarm threshold;
所述第一上报模块,配置为当所确定的频偏估计值超出告警门限值时,上报告警信息。The first reporting module is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold.
在一实施例中,所述装置还包括:统计模块和第二上报模块;其中,In an embodiment, the device further includes: a statistics module and a second reporting module; wherein
所述统计模块,配置为对所确定的频偏估计值进行统计,获得统计数据;The statistic module is configured to perform statistics on the determined frequency offset estimation values to obtain statistical data;
所述第二上报模块,配置为上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。The second reporting module is configured to report the statistical data, so that the network manager determines whether the statistical data exceeds an alarm threshold.
在一实施例中,所述确定模块包括第一确定模块、筛选模块、以及第二确定模块;其中,In an embodiment, the determining module includes a first determining module, a screening module, and a second determining module; wherein
所述第一确定模块,配置为根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;The first determining module is configured to determine, according to the timestamp group of the obtained PTP packet, a time offset of the slave clock node and the master clock node to be tested;
所述筛选模块,配置为在所获取的PTP报文的时间戳组中筛选出处在预设时间段内的第一组时间戳组和最后一组PTP报文的时间戳组;The filtering module is configured to: in the timestamp group of the obtained PTP packet, filter the first group of timestamp groups and the timestamp group of the last group of PTP messages in the preset time period;
所述第二确定模块,配置为根据所确定的对应于预设时间段的时间偏移量,及所筛选出的处在预设时间段内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段的频偏估计值。The second determining module is configured to: according to the determined time offset corresponding to the preset time period, and the selected time stamp group and the last group of the first group of PTP messages in the preset time period A timestamp group of a set of PTP packets, and determining a frequency offset estimation value corresponding to the preset time period.
在一实施例中,所述第二确定模块根据所确定的对应于预设时间段T的时间偏移量,及所筛选出的处在预设时间段内T的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:In an embodiment, the second determining module is configured according to the determined time offset corresponding to the preset time period T, and the filtered first group of PTP messages that are within a preset time period T The timestamp group and the timestamp group of the last set of PTP messages determine the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文 的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。The T1 and T2 are the last set of PTP messages in the preset time period T, respectively. The sending time and receiving time of the synchronous Sync message in the timestamp group; the t1 and t2 are the sending time and receiving of the synchronous Sync message in the first group of timestamp groups in the preset time period T, respectively. Time; the Theta is the summed sum of all time offsets Offset corresponding to the preset time period T determined.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的频偏监测方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the frequency offset monitoring method according to the embodiment of the invention.
本发明实施例所提供的频偏监测方法、装置及计算机存储介质,待测从时钟节点接收触发指令;响应所述触发指令,获取PTP报文的时间戳组;根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。如此,能够利用待测从时钟节点有效实现对相邻时钟节点的频偏监测。The frequency offset monitoring method and device and the computer storage medium provided by the embodiment of the present invention receive a triggering instruction from the clock node to be tested; obtain a timestamp group of the PTP packet in response to the triggering instruction; and according to the obtained PTP packet The timestamp group determines the frequency offset estimate of the slave clock node to be tested relative to the master clock node. In this way, frequency offset monitoring of adjacent clock nodes can be effectively implemented by using the slave clock node to be tested.
进一步地,判断所确定的频偏估计值是否超出告警门限值;当所确定的频偏估计值超出告警门限值时,上报告警信息;或者,对所确定的频偏估计值进行统计,获得统计数据;上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。如此,能够通过待测从时钟节点与网络管理器的结合,有效实现对相邻时钟节点的频偏监测和控制,从而实现对1588v2的时间同步网的高效运维。Further, determining whether the determined frequency offset estimation value exceeds an alarm threshold value; when the determined frequency offset estimation value exceeds an alarm threshold value, reporting alarm information; or, performing statistics on the determined frequency offset estimation value, Obtaining statistics; reporting the statistics for the network manager to determine whether the statistics exceeds an alarm threshold. In this way, the frequency offset monitoring and control of the adjacent clock nodes can be effectively realized through the combination of the slave clock node and the network manager to be tested, thereby realizing efficient operation and maintenance of the 1588v2 time synchronization network.
附图说明DRAWINGS
图1为本发明实施例频偏监测方法的实现流程示意图一;1 is a schematic flowchart 1 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention;
图2为本发明实施例频偏监测方法的实现流程示意图二;2 is a second schematic diagram of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention;
图3为本发明实施例频偏监测方法的实现流程示意图三;3 is a schematic flowchart 3 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention;
图4为本发明实施例频偏监测装置的组成结构示意图一;4 is a schematic structural diagram 1 of a frequency offset monitoring device according to an embodiment of the present invention;
图5为本发明实施例频偏监测装置中确定模块的组成结构示意图;5 is a schematic structural diagram of a determining module in a frequency offset monitoring apparatus according to an embodiment of the present invention;
图6为本发明实施例频偏监测装置的组成结构示意图二; 6 is a second schematic structural diagram of a frequency offset monitoring apparatus according to an embodiment of the present invention;
图7为本发明实施例频偏监测装置的组成结构示意图三。FIG. 7 is a third schematic structural diagram of a frequency offset monitoring apparatus according to an embodiment of the present invention.
具体实施方式detailed description
在本发明实施例中,待测从时钟节点接收触发指令;响应所述触发指令,获取精密时间协议PTP报文的时间戳组;根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。In the embodiment of the present invention, the slave clock node to be tested receives the triggering command; the timestamp group of the PTP packet is obtained in response to the triggering command; and the clock to be tested is determined according to the timestamp group of the obtained PTP packet. The frequency offset estimate of the node relative to the primary clock node.
下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
实施例一Embodiment 1
图1为本发明实施例频偏监测方法的实现流程示意图一,如图1所示,本发明实施例频偏监测方法包括:FIG. 1 is a schematic flowchart 1 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention. As shown in FIG. 1 , a frequency offset monitoring method according to an embodiment of the present invention includes:
步骤S100:接收触发指令;Step S100: receiving a trigger instruction;
这里,在基于1588v2的时间同步网中,在主时钟节点和从时钟节点进行时间同步的过程中,网管管理器向待测从时钟节点下发触发指令,用于启动待测从时钟节点的频偏监测功能,以监测待测从时钟节点相对于主时钟节点的频偏;其中,所述待测从时钟节点可以为时间同步网中任意从时钟节点。Here, in the time synchronization network based on the 1588v2, in the process of time synchronization between the primary clock node and the secondary clock node, the network management manager sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested. The partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
步骤S101:响应所述触发指令,获取PTP报文的时间戳组;Step S101: Acquire a timestamp group of the PTP packet in response to the triggering instruction.
其中,所述PTP报文为待测从时钟节点和主时钟节点在时间同步过程中的报文。The PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
这里,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳、延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。需要说明的是,所述PTP报文的时间戳组还可以包括跟随Follow_Up报文的时间戳。The timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
步骤S102:根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。Step S102: Determine a frequency offset estimation value of the slave clock node to be tested relative to the master clock node according to the timestamp group of the acquired PTP message.
具体地,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主 时钟节点的时间偏移量;在所获取的PTP报文的时间戳组中筛选出处在预设时间段T内的第一组时间戳组和最后一组PTP报文的时间戳组;根据所确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值。Specifically, the slave clock node and the master to be tested are determined according to the timestamp group of the obtained PTP packet. The time offset of the clock node; the timestamp group of the obtained PTP packet is used to filter the first group of timestamp groups in the preset time period T and the timestamp group of the last group of PTP messages; The determined time offsets corresponding to the preset time period T, and the timestamp groups of the first set of PTP messages and the time stamps of the last set of PTP messages that are selected in the preset time period T Group, determining a frequency offset estimation value corresponding to the preset time period T.
需要说明的是,在步骤S102中,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量的过程属于现有技术,这里不再赘述。It should be noted that, in step S102, the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
这里,根据所确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:Here, according to the determined all time offsets corresponding to the preset time period T, and the filtered timestamp group and the last set of PTP packets of the first group of PTP messages within the preset time period T The timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。The T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
需要注意的是,在本实施例中,执行步骤S101和步骤S102的方式可以为周期性的,也可以是非周期性的。It should be noted that, in this embodiment, the manner of performing step S101 and step S102 may be periodic or non-periodic.
在具体实现过程中,为了实现起来方便,通常采用周期性的方式触发待测从时钟节点执行步骤S101和步骤S102;比如,在步骤S101的执行中,待测从时钟节点每隔1秒执行一次获取PTP报文的时间戳组的操作;同样的,在步骤S102的执行中,一般情况下,待测从时钟节点每隔1秒根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏 估计值。In a specific implementation process, in order to facilitate the implementation, the slave clock node to be tested is triggered to perform step S101 and step S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second. The operation of the timestamp group of the PTP packet is obtained. Similarly, in the execution of the step S102, the slave clock node to be tested determines the clock to be tested according to the timestamp group of the acquired PTP packet every 1 second. Frequency offset of the node relative to the primary clock node estimated value.
另外,根据实际需要,也可以采用非周期性的方式触发待测从时钟节点执行步骤S101和步骤S102;比如,在步骤S101的执行中,可以预先设定触发待测从时钟节点执行步骤S101的时间间隔为递增数列,如所述时间间隔依次取值为1s、3s、2s…等;所述时间间隔也可以是随机数组,如所述时间间隔依次取值1s、2s、3s、…等。同理,在步骤S102的执行中,所述时间间隔的取值也可以为递增数列、或随机数组。In addition, according to actual needs, the slave clock node to be tested may be triggered to perform step S101 and step S102 in a non-periodic manner; for example, in the execution of step S101, the slave clock node that triggers the test may be preset to perform step S101. The time interval is an incremental sequence, and the time interval may be a value of 1 s, 3 s, 2 s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1 s, 2 s, 3 s, . Similarly, in the execution of step S102, the value of the time interval may also be an incremental sequence or a random array.
如此,通过本发明实施例所述的频偏监测方法,能够利用待测从时钟节点有效实现对相邻时钟节点的频偏监测。As such, the frequency offset monitoring method according to the embodiment of the present invention can effectively implement frequency offset monitoring of adjacent clock nodes by using the slave clock node to be tested.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例一所述的频偏监测方法。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the frequency offset monitoring method according to the first embodiment of the present invention.
实施例二Embodiment 2
图2为本发明实施例频偏监测方法的实现流程示意图二,如图2所示,本发明实施例频偏监测方法包括:FIG. 2 is a schematic flowchart 2 of the implementation process of the frequency offset monitoring method according to the embodiment of the present invention. As shown in FIG. 2, the frequency offset monitoring method in the embodiment of the present invention includes:
步骤S100:接收触发指令;Step S100: receiving a trigger instruction;
这里,在基于1588v2的时间同步网中,在主时钟节点和从时钟节点进行时间同步的过程中,网管管理器向待测从时钟节点下发触发指令,用于启动待测从时钟节点的频偏监测功能,以监测待测从时钟节点相对于主时钟节点的频偏;其中,所述待测从时钟节点可以为时间同步网中任意从时钟节点。Here, in the time synchronization network based on the 1588v2, in the process of time synchronization between the primary clock node and the secondary clock node, the network management manager sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested. The partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
步骤S101:响应所述触发指令,获取精密时间协议PTP报文的时间戳组;Step S101: Acquire a timestamp group of a precision time protocol PTP message in response to the triggering instruction;
其中,所述PTP报文为待测从时钟节点和主时钟节点在时间同步过程中的报文。 The PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
这里,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳、延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。需要说明的是,所述PTP报文的时间戳组还可以包括跟随Follow_Up报文的时间戳。The timestamp group of the PTP packet includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
步骤S102:根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值;Step S102: Determine, according to the timestamp group of the acquired PTP packet, a frequency offset estimation value of the slave clock node to be tested relative to the master clock node;
具体地,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;在所获取的PTP报文的时间戳组中筛选出处在预设时间段T内的第一组时间戳组和最后一组PTP报文的时间戳组;根据所确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值。Specifically, the time offset of the slave clock node and the master clock node to be tested is determined according to the timestamp group of the obtained PTP packet; and the source is in the preset time period T in the timestamp group of the obtained PTP packet. a first set of timestamp groups and a timestamp group of the last set of PTP messages; according to the determined time offsets corresponding to the preset time period T, and the selected time period T The timestamp group of the first group of PTP messages and the timestamp group of the last group of PTP messages are determined, and the frequency offset estimation value corresponding to the preset time period T is determined.
需要说明的是,在步骤S102中,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量的过程属于现有技术,这里不再赘述。It should be noted that, in step S102, the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
这里,根据所确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:Here, according to the determined all time offsets corresponding to the preset time period T, and the filtered timestamp group and the last set of PTP packets of the first group of PTP messages within the preset time period T The timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。 The T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
步骤S103:判断所确定的频偏估计值F是否超出告警门限值;当所确定的频偏估计值未超出告警门限值时,由于所述频偏估计值在允许的误差范围之内,所以并不需要向网络管理服务器上报告警信息,结束流程;否则,执行步骤S104;Step S103: determining whether the determined frequency offset estimation value F exceeds the alarm threshold; when the determined frequency offset estimation value does not exceed the alarm threshold, since the frequency offset estimation value is within the allowable error range, It is not necessary to report the alarm information to the network management server, and the process ends; otherwise, step S104 is performed;
这里,所述告警门限值通常取值为5ppb;所述告警门限值的取值也可以根据实际情况进行预先设置。Here, the alarm threshold value is usually 5 ppb; the value of the alarm threshold value may also be preset according to actual conditions.
步骤S104:当所确定的频偏估计值超出告警门限值时,上报告警信息。Step S104: When the determined frequency offset estimation value exceeds the alarm threshold, the alarm information is reported.
这里,上报的告警信息至少包括待测从时钟节点的PTP逻辑端口编号和所确定的频偏估计值F;所述上报的告警信息还可以包括待测从时钟节点的父端口编号、本端口编号、机架号、槽位号等;另外,所述上报的告警信息还可以包括告警时间等。Here, the reported alarm information includes at least a PTP logical port number of the slave clock node to be tested and the determined frequency offset estimation value F. The reported alarm information may further include a parent port number of the slave clock node to be tested, and the port number. The alarm information reported may also include an alarm time and the like.
这里,在具体实现过程中,为了实现起来方便,通常采用周期性的方式触发待测从时钟节点执行步骤S101~S102;比如,在步骤S101的执行中,待测从时钟节点每隔1秒执行一次获取PTP报文的时间戳组的操作;在步骤S102的执行中,一般情况下,待测从时钟节点每隔1秒根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。Here, in a specific implementation process, in order to facilitate the implementation, the slave clock nodes to be tested are usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second. The operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second. The estimated frequency offset of the primary clock node.
另外,根据实际需要,也可以采用非周期性的方式触发待测从时钟节点执行步骤S101~S102;比如,在步骤S101的执行中,可以预先设定触发待测从时钟节点执行步骤S101的时间间隔为递增数列,如所述时间间隔依次取值为1s、3s、2s…等;所述时间间隔也可以是随机数组,如所述时间间隔依次取值1s、2s、3s、…等。同理,在步骤S102的执行中,所述时间间隔的取值也可以为递增数列、或随机数组。In addition, the step S101 to S102 may be performed by using the non-periodic manner to trigger the slave clock node to be tested. For example, in the execution of step S101, the time for triggering the slave clock node to be tested to perform step S101 may be preset. The interval is an incremental sequence. For example, the time interval may be 1s, 3s, 2s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1s, 2s, 3s, ..., etc. Similarly, in the execution of step S102, the value of the time interval may also be an incremental sequence or a random array.
如此,通过本发明实施例所述频偏监测方法,能够通过待测从时钟节点与网络管理器的结合,有效实现对相邻时钟节点的频偏监测和控制,从而实现对1588v2的时间同步网的高效运维。 In this way, the frequency offset monitoring method in the embodiment of the present invention can effectively implement frequency offset monitoring and control on adjacent clock nodes by combining the clock node to be tested and the network manager, thereby implementing a time synchronization network for 1588v2. Efficient operation and maintenance.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例二所述的频偏监测方法。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the frequency offset monitoring method according to the second embodiment of the present invention.
实施例三Embodiment 3
图3为本发明实施例频偏监测方法的实现流程示意图三,如图3所示,本发明实施例频偏监测方法包括:3 is a schematic flowchart 3 of an implementation process of a frequency offset monitoring method according to an embodiment of the present invention. As shown in FIG. 3, a frequency offset monitoring method according to an embodiment of the present invention includes:
步骤S100:接收触发指令;Step S100: receiving a trigger instruction;
这里,在基于1588v2的时间同步网中,在主时钟节点和从时钟节点进行时间同步的过程中,网管管理器向待测从时钟节点下发触发指令,用于启动待测从时钟节点的频偏监测功能,以监测待测从时钟节点相对于主时钟节点的频偏;其中,所述待测从时钟节点可以为时间同步网中任意从时钟节点。Here, in the time synchronization network based on the 1588v2, in the process of time synchronization between the primary clock node and the secondary clock node, the network management manager sends a trigger instruction to the slave clock node to be tested, for starting the frequency of the slave clock node to be tested. The partial monitoring function is configured to monitor a frequency offset of the slave clock node to be tested relative to the master clock node; wherein the slave clock node to be tested may be any slave clock node in the time synchronization network.
步骤S101:响应所述触发指令,获取精密时间协议PTP报文的时间戳组;Step S101: Acquire a timestamp group of a precision time protocol PTP message in response to the triggering instruction;
其中,所述PTP报文为待测从时钟节点和主时钟节点在时间同步过程中的报文。The PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
这里,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。需要说明的是,所述PTP报文的时间戳组还可以包括跟随Follow_Up报文的时间戳。Here, the timestamp group of the PTP packet includes: a timestamp of the timestamp delay request Delay_Req message of each synchronous Sync message, and a timestamp of the delay response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
步骤S102:根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值;Step S102: Determine, according to the timestamp group of the acquired PTP packet, a frequency offset estimation value of the slave clock node to be tested relative to the master clock node;
具体地,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;在所获取的PTP报文的时间戳组中筛选出处在预设时间段T内的第一组时间戳组和最后一组PTP报文的时间戳组;根据所 确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值。Specifically, the time offset of the slave clock node and the master clock node to be tested is determined according to the timestamp group of the obtained PTP packet; and the source is in the preset time period T in the timestamp group of the obtained PTP packet. The first set of timestamp groups and the timestamp group of the last set of PTP messages; The determined time offsets corresponding to the preset time period T, and the timestamp groups of the first set of PTP messages and the time stamps of the last set of PTP messages that are selected in the preset time period T Group, determining a frequency offset estimation value corresponding to the preset time period T.
需要说明的是,在步骤S102中,根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量的过程属于现有技术,这里不再赘述。It should be noted that, in step S102, the process of determining the time offset of the slave clock node and the master clock node to be tested according to the timestamp group of the obtained PTP packet belongs to the prior art, and details are not described herein again.
这里,根据所确定的对应于预设时间段T的所有时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:Here, according to the determined all time offsets corresponding to the preset time period T, and the filtered timestamp group and the last set of PTP packets of the first group of PTP messages within the preset time period T The timestamp group of the text determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。The T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
步骤S103a:对所确定的频偏估计值进行统计,获得统计数据;Step S103a: Perform statistics on the determined frequency offset estimation values to obtain statistical data.
这里,所获得的统计数据包括待测从时钟节点的PTP逻辑端口编号和所确定的频偏估计值F、以及频偏估计值F的最大值和最小值。Here, the obtained statistical data includes the PTP logical port number of the slave clock node to be tested and the determined frequency offset estimated value F, and the maximum and minimum values of the frequency offset estimated value F.
步骤S104a:上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。Step S104a: Report the statistical data for the network manager to determine whether the statistical data exceeds an alarm threshold.
这里,所述告警门限值通常取值为5ppb。Here, the alarm threshold value is usually 5 ppb.
需要说明的是,在上报所述统计数据的过程中,还需要向网络管理器上报待测从时钟节点的PTP逻辑端口编号;还可以进一步向网络管理器上报父端口编号、本端口编号、机架号、槽位号等。 It should be noted that, in the process of reporting the statistics, the PTP logical port number of the slave clock node to be tested needs to be reported to the network manager; the parent port number, the port number, and the machine may be further reported to the network manager. Frame number, slot number, etc.
这里,在具体实现过程中,为了实现起来方便,通常采用周期性的方式触发待测从时钟节点执行步骤S101~S102;比如,在步骤S101的执行中,待测从时钟节点每隔1秒执行一次获取PTP报文的时间戳组的操作;在步骤S102的执行中,一般情况下,待测从时钟节点每隔1秒根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。Here, in a specific implementation process, in order to facilitate the implementation, the slave clock nodes to be tested are usually triggered to perform steps S101 to S102 in a periodic manner; for example, in the execution of step S101, the slave clock node to be tested is executed every 1 second. The operation of obtaining the timestamp group of the PTP packet at a time; in the execution of the step S102, the slave clock node to be tested determines the relative clock node to be tested according to the timestamp group of the acquired PTP packet every 1 second. The estimated frequency offset of the primary clock node.
另外,根据实际需要,也可以采用非周期性的方式触发待测从时钟节点执行步骤S101~S102;比如,在步骤S101的执行中,可以预先设定触发待测从时钟节点执行步骤S101的时间间隔为递增数列,如所述时间间隔依次取值为1s、3s、2s…等;所述时间间隔也可以是随机数组,如所述时间间隔依次取值1s、2s、3s、…等。同理,在步骤S102的执行中,所述时间间隔的取值也可以为递增数列、或随机数组。In addition, the step S101 to S102 may be performed by using the non-periodic manner to trigger the slave clock node to be tested. For example, in the execution of step S101, the time for triggering the slave clock node to be tested to perform step S101 may be preset. The interval is an incremental sequence. For example, the time interval may be 1s, 3s, 2s, etc.; the time interval may also be a random array, for example, the time interval takes values of 1s, 2s, 3s, ..., etc. Similarly, in the execution of step S102, the value of the time interval may also be an incremental sequence or a random array.
如此,通过本发明实施例所述频偏监测方法,能够通过待测从时钟节点与网络管理器的结合,有效实现对相邻时钟节点的频偏监测和控制,从而实现对1588v2的时间同步网的高效运维。In this way, the frequency offset monitoring method in the embodiment of the present invention can effectively implement frequency offset monitoring and control on adjacent clock nodes by combining the clock node to be tested and the network manager, thereby implementing a time synchronization network for 1588v2. Efficient operation and maintenance.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例三所述的频偏监测方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the frequency offset monitoring method according to the third embodiment of the invention.
实施例四Embodiment 4
图4为本发明实施例频偏监测装置的组成结构示意图,如图4所示,所述装置包括:获取模块10、以及确定模块20;其中,4 is a schematic structural diagram of a frequency offset monitoring apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: an obtaining module 10, and a determining module 20;
所述获取模块10,配置为接收触发指令;响应所接收的触发指令,获取PTP报文的时间戳组;The acquiring module 10 is configured to receive a triggering instruction, and obtain a timestamp group of the PTP packet in response to the received triggering instruction;
其中,所述PTP报文为待测从时钟节点和主时钟节点在时间同步过程中的报文。The PTP packet is a packet of the slave clock node and the master clock node in time synchronization.
这里,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳和 与所述同步Sync报文对应的跟随Follow_Up报文的时间戳、延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。需要说明的是,所述PTP报文的时间戳组还可以包括跟随Follow_Up报文的时间戳。Here, the timestamp group of the PTP message includes: a timestamp of each synchronous Sync message and The timestamp of the follow-up message corresponding to the synchronous Sync message, the timestamp of the delay request Delay_Req message, and the timestamp of the delayed response Delay_Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp of following the Follow_Up message.
所述确定模块20,配置为根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。The determining module 20 is configured to determine a frequency offset estimation value of the slave clock node to be tested relative to the master clock node according to the timestamp group of the acquired PTP message.
具体地,如图5所示,所述确定模块20包括第一确定模块21、筛选模块22、以及第二确定模块23;其中,Specifically, as shown in FIG. 5, the determining module 20 includes a first determining module 21, a screening module 22, and a second determining module 23;
所述第一确定模块21,配置为根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;The first determining module 21 is configured to determine, according to the timestamp group of the acquired PTP packet, a time offset of the slave clock node and the master clock node to be tested;
所述筛选模块22,配置为在所获取的PTP报文的时间戳组中筛选出处在预设时间段内的第一组时间戳组和最后一组PTP报文的时间戳组;The screening module 22 is configured to: in the timestamp group of the obtained PTP packet, filter the first group of timestamp groups and the timestamp group of the last group of PTP messages within a preset time period;
所述第二确定模块23,配置为根据所确定的对应于预设时间段的时间偏移量,及所筛选出的处在预设时间段内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段的频偏估计值。The second determining module 23 is configured to: according to the determined time offset corresponding to the preset time period, and the selected time stamp group of the first group of PTP messages that are in the preset time period The timestamp group of the last set of PTP messages determines the frequency offset estimation value corresponding to the preset time period.
这里,所述第二确定模块23根据所确定的对应于预设时间段T的时间偏移量,及所筛选出的处在预设时间段T内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:Here, the second determining module 23 is configured according to the determined time offset corresponding to the preset time period T, and the selected time stamp group of the first group of PTP messages in the preset time period T. And the timestamp group of the last set of PTP messages, and the calculation formula of the frequency offset estimation value F corresponding to the preset time period T is determined as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。 The T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
进一步地,如图6所示,所述装置还包括判断模块30和第一上报模块40;其中,Further, as shown in FIG. 6, the device further includes a determining module 30 and a first reporting module 40;
所述判断模块30,配置为判断所确定的频偏估计值是否超出告警门限值;The determining module 30 is configured to determine whether the determined frequency offset estimation value exceeds an alarm threshold;
所述第一上报模块40,配置为当所确定的频偏估计值超出告警门限值时,上报告警信息。The first reporting module 40 is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold.
进一步地,如图7所示,所述装置还包括统计模块31和第二上报模块41;其中,Further, as shown in FIG. 7, the device further includes a statistic module 31 and a second reporting module 41;
所述统计模块31,配置为对所确定的频偏估计值进行统计,获得统计数据;The statistic module 31 is configured to perform statistics on the determined frequency offset estimation values to obtain statistical data.
所述第二上报模块41,配置为上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。The second reporting module 41 is configured to report the statistical data, so that the network manager determines whether the statistical data exceeds an alarm threshold.
在实际应用中,所述获取模块10、确定模块20、第一确定模块21、筛选模块22、第二确定模块23、判断模块30、第一上报模块40、统计模块31、以及第二上报模块41均可由待测从时钟节点中的中央处理器(Central Processing Unit,CPU)、微处理器(Micor Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining module 10, the determining module 20, the first determining module 21, the screening module 22, the second determining module 23, the determining module 30, the first reporting module 40, the statistic module 31, and the second reporting module 41 can be measured by a central processing unit (CPU), a microprocessor (Micor Processor Unit (MPU), a digital signal processor (DSP), or a field programmable gate array in the slave clock node to be tested. (Field Programmable Gate Array, FPGA) and other implementations.
本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present invention can be arbitrarily combined without conflict.
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention.
工业实用性Industrial applicability
本发明实施例通过待测从时钟节点接收触发指令;响应所述触发指令,获取精密时间协议PTP报文的时间戳组;根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。如此,能够利用待测从时钟节点有效实现对相邻时钟节点的频偏监测。 The embodiment of the present invention receives the triggering instruction from the clock node to be tested; in response to the triggering instruction, obtains a timestamp group of the PTP packet of the precise time protocol; and determines, according to the timestamp group of the obtained PTP packet, the relative clock node to be tested. The estimated frequency offset of the primary clock node. In this way, frequency offset monitoring of adjacent clock nodes can be effectively implemented by using the slave clock node to be tested.

Claims (11)

  1. 一种频偏监测方法,所述方法包括:A frequency offset monitoring method, the method comprising:
    接收触发指令;Receiving a trigger instruction;
    响应所述触发指令,获取精密时间协议PTP报文的时间戳组;And acquiring, in response to the triggering instruction, a timestamp group of the PTP packet of the precision time protocol;
    根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。Determining a frequency offset estimate of the slave clock node to be tested relative to the master clock node according to the timestamp group of the obtained PTP message.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    判断所确定的频偏估计值是否超出告警门限值;Determining whether the determined frequency offset estimate exceeds an alarm threshold;
    当所确定的频偏估计值超出告警门限值时,上报告警信息。When the determined frequency offset estimation exceeds the alarm threshold, an alarm message is reported.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    对所确定的频偏估计值进行统计,获得统计数据;Performing statistics on the determined frequency offset estimation values to obtain statistical data;
    上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。The statistical data is reported for the network manager to determine whether the statistical data exceeds an alarm threshold.
  4. 根据权利要求1至3任一项所述的方法,其中,所述PTP报文的时间戳组包括:每个同步Sync报文的时间戳、延迟请求Delay_Req报文的时间戳、以及延迟响应Delay_Resp报文的时间戳。The method according to any one of claims 1 to 3, wherein the timestamp group of the PTP message includes: a timestamp of each synchronous Sync message, a timestamp of the delay request Delay_Req message, and a delay response Delay_Resp The timestamp of the message.
  5. 根据权利要求1至3任一项所述的方法,其中,所述根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值包括:The method according to any one of claims 1 to 3, wherein the determining, according to the timestamp group of the acquired PTP message, the frequency offset estimation value of the slave clock node to be tested relative to the master clock node comprises:
    根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;Determining, according to the timestamp group of the obtained PTP packet, a time offset of the slave clock node and the master clock node to be tested;
    在所获取的PTP报文的时间戳组中筛选出处在预设时间段内的第一组时间戳组和最后一组PTP报文的时间戳组;Filtering, in the timestamp group of the obtained PTP packet, the first group of timestamp groups and the timestamp group of the last group of PTP packets in the preset time period;
    根据所确定的对应于预设时间段的时间偏移量,及所筛选出的处在预设时间段内的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳 组,确定对应于预设时间段的频偏估计值。And determining, according to the determined time offset corresponding to the preset time period, the timestamp group of the first group of PTP messages and the timestamp of the last group of PTP messages that are selected in the preset time period Group, determining a frequency offset estimate corresponding to the preset time period.
  6. 一种频偏监测装置,所述装置包括:获取模块、以及确定模块;A frequency offset monitoring device, the device comprising: an acquisition module, and a determining module;
    所述获取模块,配置为接收触发指令;响应所接收的触发指令,获取PTP报文的时间戳组;The acquiring module is configured to receive a triggering instruction, and obtain a timestamp group of the PTP packet in response to the received triggering instruction;
    所述确定模块,配置为根据所获取的PTP报文的时间戳组确定待测从时钟节点相对于主时钟节点的频偏估计值。The determining module is configured to determine, according to the timestamp group of the acquired PTP packet, a frequency offset estimation value of the slave clock node to be tested relative to the master clock node.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:判断模块和第一上报模块;The device according to claim 6, wherein the device further comprises: a determining module and a first reporting module;
    所述判断模块,配置为判断所确定的频偏估计值是否超出告警门限值;The determining module is configured to determine whether the determined frequency offset estimation value exceeds an alarm threshold;
    所述第一上报模块,配置为当所确定的频偏估计值超出告警门限值时,上报告警信息。The first reporting module is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold.
  8. 根据权利要求6所述的装置,其中,所述装置还包括:统计模块和第二上报模块;The device according to claim 6, wherein the device further comprises: a statistics module and a second reporting module;
    所述统计模块,配置为对所确定的频偏估计值进行统计,获得统计数据;The statistic module is configured to perform statistics on the determined frequency offset estimation values to obtain statistical data;
    所述第二上报模块,配置为上报所述统计数据,以供网络管理器确定所述统计数据是否超出告警门限值。The second reporting module is configured to report the statistical data, so that the network manager determines whether the statistical data exceeds an alarm threshold.
  9. 根据权利要求6至8任一项所述的装置,其中,所述确定模块包括第一确定模块、筛选模块、以及第二确定模块;The apparatus according to any one of claims 6 to 8, wherein the determining module comprises a first determining module, a screening module, and a second determining module;
    所述第一确定模块,配置为根据所获取的PTP报文的时间戳组确定待测从时钟节点和主时钟节点的时间偏移量;The first determining module is configured to determine, according to the timestamp group of the obtained PTP packet, a time offset of the slave clock node and the master clock node to be tested;
    所述筛选模块,配置为在所获取的PTP报文的时间戳组中筛选出处在预设时间段内的第一组时间戳组和最后一组PTP报文的时间戳组;The filtering module is configured to: in the timestamp group of the obtained PTP packet, filter the first group of timestamp groups and the timestamp group of the last group of PTP messages in the preset time period;
    所述第二确定模块,配置为根据所确定的对应于预设时间段的时间偏移量,及所筛选出的处在预设时间段内的第一组PTP报文的时间戳组和最 后一组PTP报文的时间戳组,确定对应于预设时间段的频偏估计值。The second determining module is configured to: according to the determined time offset corresponding to the preset time period, and the filtered timestamp group and the most of the first group of PTP messages in the preset time period The timestamp group of the latter group of PTP packets determines the frequency offset estimation value corresponding to the preset time period.
  10. 根据权利要求9所述的装置,其中,所述第二确定模块根据所确定的对应于预设时间段T的时间偏移量,及所筛选出的处在预设时间段内T的第一组PTP报文的时间戳组和最后一组PTP报文的时间戳组,确定对应于预设时间段T的频偏估计值F的计算公式如下:The device according to claim 9, wherein the second determining module is configured according to the determined time offset corresponding to the preset time period T, and the filtered first time within the preset time period T The timestamp group of the group PTP packet and the timestamp group of the last group of PTP packets determine the calculation formula of the frequency offset estimation value F corresponding to the preset time period T as follows:
    F=((T2-T1)-Theta-(t2-t1))/(T1-t1);F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
    其中,所述T1和T2分别为处在预设时间段T内的最后一组PTP报文的时间戳组中的同步Sync报文的发送时间和接收时间;所述t1和t2分别为处在预设时间段T内的第一组时间戳组中的同步Sync报文的发送时间和接收时间;所述Theta为所确定的对应于预设时间段T的所有时间偏移量Offset的累加和。The T1 and T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last set of PTP messages in the preset time period T; the t1 and t2 are respectively The transmission time and the reception time of the synchronization Sync message in the first group of time stamp groups in the preset time period T; the Theta is the accumulated sum of the determined time offsets Offset corresponding to the preset time period T .
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的频偏监测方法。 A computer storage medium having stored therein computer executable instructions for performing the frequency offset monitoring method of any one of claims 1 to 5.
PCT/CN2015/072628 2014-10-08 2015-02-10 Frequency deviation monitoring method, device and computer storage medium WO2016054884A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410530703.5 2014-10-08
CN201410530703.5A CN105577348B (en) 2014-10-08 2014-10-08 Frequency deviation monitoring method and device based on time synchronization network

Publications (1)

Publication Number Publication Date
WO2016054884A1 true WO2016054884A1 (en) 2016-04-14

Family

ID=55652526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072628 WO2016054884A1 (en) 2014-10-08 2015-02-10 Frequency deviation monitoring method, device and computer storage medium

Country Status (2)

Country Link
CN (1) CN105577348B (en)
WO (1) WO2016054884A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019104522A1 (en) * 2017-11-29 2019-06-06 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for flexe network
CN113411153A (en) * 2021-06-07 2021-09-17 中国人民解放军国防科技大学 Centralized control time synchronization method for time sensitive network
CN115642976A (en) * 2022-10-10 2023-01-24 广东越新微***研究院 Hybrid optimization time synchronization method
CN115882995A (en) * 2023-02-01 2023-03-31 南京美乐威电子科技有限公司 FPGA module and audio conversion equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915308B (en) * 2016-07-08 2018-04-27 腾讯科技(深圳)有限公司 A kind of method for synchronizing time, apparatus and system
CN109474363A (en) * 2018-12-11 2019-03-15 中国航空工业集团公司西安航空计算技术研究所 A kind of verification method and device based on 1588 agreement of IEEE
CN111654350A (en) * 2020-07-07 2020-09-11 范雯 Method for detecting frequency deviation of communication transmission network element equipment
CN115276866B (en) * 2022-06-02 2024-05-14 智己汽车科技有限公司 Clock synchronization method and device of intelligent driving system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834712A (en) * 2010-04-19 2010-09-15 浙江大学 Method for realizing accurate time synchronization by utilizing IEEE1588 protocol
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102035639A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Time synchronization method, device and system
CN102104475A (en) * 2011-01-31 2011-06-22 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102185686A (en) * 2011-05-16 2011-09-14 中兴通讯股份有限公司 Institute of electrical and electronic engineers (IEEE)-1588-protocol-based frequency regulation method and network device
CN103428716A (en) * 2012-05-17 2013-12-04 中兴通讯股份有限公司 Method and device for dynamically adjusting PTP message rate

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104080115B (en) * 2013-03-28 2018-02-23 ***通信集团公司 A kind of time synchronized performance monitoring method, apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035639A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Time synchronization method, device and system
CN101834712A (en) * 2010-04-19 2010-09-15 浙江大学 Method for realizing accurate time synchronization by utilizing IEEE1588 protocol
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102104475A (en) * 2011-01-31 2011-06-22 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102185686A (en) * 2011-05-16 2011-09-14 中兴通讯股份有限公司 Institute of electrical and electronic engineers (IEEE)-1588-protocol-based frequency regulation method and network device
CN103428716A (en) * 2012-05-17 2013-12-04 中兴通讯股份有限公司 Method and device for dynamically adjusting PTP message rate

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019104522A1 (en) * 2017-11-29 2019-06-06 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for flexe network
CN113411153A (en) * 2021-06-07 2021-09-17 中国人民解放军国防科技大学 Centralized control time synchronization method for time sensitive network
CN113411153B (en) * 2021-06-07 2022-07-26 中国人民解放军国防科技大学 Centralized control time synchronization method for time sensitive network
CN115642976A (en) * 2022-10-10 2023-01-24 广东越新微***研究院 Hybrid optimization time synchronization method
CN115882995A (en) * 2023-02-01 2023-03-31 南京美乐威电子科技有限公司 FPGA module and audio conversion equipment

Also Published As

Publication number Publication date
CN105577348A (en) 2016-05-11
CN105577348B (en) 2020-06-30

Similar Documents

Publication Publication Date Title
WO2016054884A1 (en) Frequency deviation monitoring method, device and computer storage medium
US9923656B2 (en) Methods, systems, and computer readable media for testing recovered clock quality
US9813226B2 (en) Modeling a clock
WO2017032113A1 (en) Method and apparatus for measuring time synchronization deviation
CN107360060B (en) Time delay measuring method and device
CN104113386B (en) It is a kind of to monitor the synchronous method and device of ethernet clock
JP5661951B2 (en) Network elements for packet-switched networks
US9485162B2 (en) Method and system for measuring frame loss ratio
US10019333B2 (en) Methods, systems, and computer readable media for emulating network devices with different clocks
WO2017063450A1 (en) Timestamp filtering method and apparatus
WO2018006686A1 (en) Method, apparatus and device for optimizing time synchronization between communication network devices
EP2991250B1 (en) Method and apparatus for ptp synchronous network
CN103563287B (en) Synchronization device and synchronization method
JP5636093B2 (en) Method and apparatus for performing clock synchronization between devices
WO2016168063A1 (en) Methods, systems, and computer readable media for synchronizing timing among network interface cards (nics) in a network equipment test device
US9813174B2 (en) Time correction method and apparatus for slave clock device
WO2013023530A1 (en) Implementation method and device for automatically detecting asymmetry time delay of 1588 link
CN108259109B (en) Network equipment in PTP domain and TOD synchronization method
WO2009043299A1 (en) A determining method and device for the synchronization port of a transparent clock equipment
WO2016058347A1 (en) Method and apparatus for implementing time and clock synchronization
US8804770B2 (en) Communications system and related method for reducing continuity check message (CCM) bursts in connectivity fault management (CFM) maintenance association (MA)
WO2016177240A1 (en) Frequency synchronization method and device
CN105530139B (en) Self-checking method and device for 1588 equipment
WO2016065752A1 (en) Method and device for detecting link state, and storage medium
CN104393974B (en) A kind of automatic storage method and equipment of time saltus step information

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: 15848561

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: 15848561

Country of ref document: EP

Kind code of ref document: A1