CN105577348B - Frequency deviation monitoring method and device based on time synchronization network - Google Patents

Frequency deviation monitoring method and device based on time synchronization network Download PDF

Info

Publication number
CN105577348B
CN105577348B CN201410530703.5A CN201410530703A CN105577348B CN 105577348 B CN105577348 B CN 105577348B CN 201410530703 A CN201410530703 A CN 201410530703A CN 105577348 B CN105577348 B CN 105577348B
Authority
CN
China
Prior art keywords
group
timestamp
clock node
frequency offset
time period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410530703.5A
Other languages
Chinese (zh)
Other versions
CN105577348A (en
Inventor
李春华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zte Technical Service Co ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410530703.5A priority Critical patent/CN105577348B/en
Priority to PCT/CN2015/072628 priority patent/WO2016054884A1/en
Publication of CN105577348A publication Critical patent/CN105577348A/en
Application granted granted Critical
Publication of CN105577348B publication Critical patent/CN105577348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

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

The invention provides a frequency deviation monitoring method based on a time synchronization network, which receives a trigger instruction; responding to the trigger instruction, and regularly acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process; and periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message. The invention also provides a frequency deviation monitoring device based on the time synchronization network.

Description

Frequency deviation monitoring method and device based on time synchronization network
Technical Field
The invention relates to the field of packet synchronization networks, in particular to a frequency offset monitoring method and device based on a time synchronization network.
Background
In recent years, with the continuous development of mobile communication technology, a time synchronization network based on a precision clock synchronization protocol standard 1588v2 of a network measurement and control system has been widely applied to mobile operators. With the increasing scale of 1588v2 synchronous networks, in order to implement efficient operation and maintenance of 1588v2 time synchronous networks, a packet-bearing clock node is required to monitor the packet-layer time synchronization and the performance of a time module inside the clock node in real time. However, an Operation Administration and Maintenance (OAM) system based on a time synchronization network and related technologies thereof are not mature, and especially for a 1588v2 time synchronization network, a mature and effective method for monitoring and controlling frequency offset of adjacent clock nodes does not exist at present.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method and an apparatus for monitoring frequency offset based on a time synchronization network, which can effectively implement frequency offset monitoring and control on adjacent clock nodes.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a frequency offset monitoring method based on a time synchronization network, which comprises the following steps:
receiving a trigger instruction;
responding to the trigger instruction, and regularly acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
and periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message.
In the above scheme, the method further comprises:
judging whether the determined frequency offset estimation value exceeds an alarm threshold value;
and reporting alarm information when the determined frequency deviation estimation value exceeds an alarm threshold value.
In the above scheme, the method further comprises:
counting the determined frequency offset estimation value to obtain statistical data;
and reporting the statistical data to allow a network manager to determine whether the statistical data exceeds an alarm threshold value.
In the above scheme, the timestamp group of the PTP packet includes: a timestamp of each synchronization Sync message, a timestamp of a Delay request Delay _ Req message, and a timestamp of a Delay response Delay _ Resp message.
In the above scheme, the periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the obtained timestamp group of the PTP message includes:
determining the time offset of the slave clock node to be detected and the master clock node according to the acquired timestamp group of the PTP message;
screening a first group of timestamp groups and a last group of timestamp groups of the PTP messages within a preset time period from the obtained timestamp groups of the PTP messages;
and determining a frequency offset estimation value corresponding to the preset time period according to the determined time offset corresponding to the preset time period, and the screened time stamp group of the first group of PTP messages and the screened time stamp group of the last group of PTP messages in the preset time period.
The embodiment of the invention also provides a frequency deviation monitoring device based on the time synchronization network, which comprises: an acquisition module and a determination module; wherein,
the acquisition module is used for receiving a trigger instruction; responding to the received trigger instruction, and regularly acquiring a timestamp group of the PTP message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
and the determining module is used for periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message.
In the above scheme, the apparatus further comprises: the device comprises a judging module and a first reporting module; wherein,
the judging module is used for judging whether the determined frequency offset estimation value exceeds an alarm threshold value;
and the first reporting module is used for reporting the alarm information when the determined frequency offset estimation value exceeds the alarm threshold value.
In the above scheme, the apparatus further comprises: a statistical module and a second reporting module; wherein,
the statistical module is used for carrying out statistics on the determined frequency offset estimation value to obtain statistical data;
and 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 the above scheme, the determining module includes a first determining module, a screening module, and a second determining module; wherein,
the first determining module is used for determining the time offset of the slave clock node to be detected and the master clock node to be detected according to the acquired timestamp group of the PTP message;
the screening module is used for screening a first group of timestamp groups and a last group of timestamp groups of the PTP messages within a preset time period from the obtained timestamp groups of the PTP messages;
and the second determining module is used for determining the frequency offset estimation value corresponding to the preset time period according to the determined time offset corresponding to the preset time period, and the screened time stamp group of the first group of PTP messages and the screened time stamp group of the last group of PTP messages in the preset time period.
In the above scheme, the second determining module determines, according to the determined time offset corresponding to the preset time period T, and the screened time stamp group of the first group of PTP messages and the time stamp group of the last group of PTP messages in the preset time period T, a 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);
the T1 and the T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
According to the frequency offset monitoring method and device based on the time synchronization network, a slave clock node to be tested receives a trigger instruction; responding to the trigger instruction, and periodically acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process; and periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message. Therefore, the frequency offset monitoring of the adjacent clock nodes can be effectively realized by using the slave clock node to be tested.
Further, judging whether the determined frequency offset estimation value exceeds an alarm threshold value; when the determined frequency deviation estimation value exceeds an alarm threshold value, reporting alarm information; or, periodically carrying out statistics on the determined frequency offset estimation value to obtain statistical data; and reporting the statistical data to allow a network manager to determine whether the statistical data exceeds an alarm threshold value. Therefore, frequency offset monitoring and control of adjacent clock nodes can be effectively realized through the combination of the slave clock node to be tested and the network manager, and efficient operation and maintenance of the 1588v2 time synchronization network are realized.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a frequency offset monitoring method based on a time synchronization network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a second implementation flow of a frequency offset monitoring method based on a time synchronization network according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a third implementation of a frequency offset monitoring method based on a time synchronization network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a frequency offset monitoring apparatus based on a time synchronization network 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 based on a time synchronization network according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a second frequency offset monitoring apparatus based on a time synchronization network according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a third component of a frequency offset monitoring apparatus based on a time synchronization network according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, a slave clock node to be tested receives a trigger instruction; responding to the trigger instruction, and regularly acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process; and periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic diagram of a first implementation flow of a frequency offset monitoring method based on a time synchronization network according to an embodiment of the present invention, as shown in fig. 1, the frequency offset monitoring method based on the time synchronization network according to the embodiment of the present invention includes:
step S100: receiving a trigger instruction;
here, in a 1588v 2-based time synchronization network, in the process of time synchronization between a master clock node and a slave clock node, a network management manager issues a trigger instruction to a slave clock node to be tested, so as to start a frequency offset monitoring function of the slave clock node to be tested, so as to monitor the frequency offset of the slave clock node to be tested relative to the master clock node; the slave clock node to be tested can be any slave clock node in a time synchronization network.
Step S101: responding to the trigger instruction, and regularly acquiring a timestamp group of the PTP message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
here, the timestamp group of the PTP packet includes: a timestamp of each synchronization Sync message, a timestamp of a Delay request Delay _ Req message, and a timestamp of a Delay response Delay _ Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp following the Follow _ Up packet.
Step S102: and periodically determining the frequency offset estimation value of the slave clock node to be detected relative to the master clock node according to the acquired timestamp group of the PTP message.
Specifically, the time offset of the slave clock node and the master clock node to be tested is determined according to the acquired timestamp group of the PTP message; screening a first group of timestamp groups and a last group of timestamp groups of the PTP messages within a preset time period T from the obtained timestamp groups of the PTP messages; and determining a frequency offset estimation value corresponding to the preset time period T according to all the determined time offsets corresponding to the preset time period T, and the screened time stamp group of the first group of PTP messages and the screened time stamp group of the last group of PTP messages in the preset time period T.
It should be noted that, in step S102, the process of determining the time offsets of the slave clock node to be measured and the master clock node according to the obtained timestamp group of the PTP packet belongs to the prior art, and details are not described here.
Here, based on all the determined time offsets corresponding to the preset time period T, and the screened time stamp groups of the PTP messages of the first group and the time stamp groups of the PTP messages of the last group within the preset time period T, a calculation formula for determining the frequency offset estimation value F corresponding to the preset time period T is as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
the T1 and the T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
It should be noted that, in the present embodiment, the manner of periodically executing step S101 and step S102 may be periodic or aperiodic.
In a specific implementation process, in order to be implemented conveniently, a periodic manner is usually adopted to trigger a slave clock node to be tested to execute step S101 and step S102; for example, in the execution of step S101, the slave clock node to be tested executes the operation of obtaining the timestamp group of the PTP packet every 1 second; similarly, in the execution of step S102, in general, the slave clock node to be tested determines the frequency offset estimation value of the slave clock node to be tested relative to the master clock node every 1 second according to the obtained timestamp group of the PTP packet.
In addition, according to actual needs, a non-periodic manner can be adopted to trigger the slave clock node to be tested to execute the step S101 and the step S102; for example, in the execution of step S101, the time interval for triggering the slave clock node to be tested to execute step S101 may be preset as an incremental sequence, and for example, the time interval is sequentially valued as 1S, 3S, 2S …, and the like; the time interval may also be a random array, for example, the time interval sequentially takes values of 1s, 2s, 3s, …, and the like. Similarly, in the execution of step S102, the value of the time interval may also be an incremental array or a random array.
Therefore, the frequency offset monitoring method of the embodiment of the invention can effectively realize the frequency offset monitoring of the adjacent clock nodes by using the slave clock node to be detected.
Fig. 2 is a schematic diagram of a second implementation flow of the frequency offset monitoring method based on the time synchronization network according to the embodiment of the present invention, as shown in fig. 2, the frequency offset monitoring method based on the time synchronization network according to the embodiment of the present invention includes:
step S100: receiving a trigger instruction;
here, in a 1588v 2-based time synchronization network, in the process of time synchronization between a master clock node and a slave clock node, a network management manager issues a trigger instruction to a slave clock node to be tested, so as to start a frequency offset monitoring function of the slave clock node to be tested, so as to monitor the frequency offset of the slave clock node to be tested relative to the master clock node; the slave clock node to be tested can be any slave clock node in a time synchronization network.
Step S101: responding to the trigger instruction, and regularly acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
here, the timestamp group of the PTP packet includes: a timestamp of each synchronization Sync message, a timestamp of a Delay request Delay _ Req message, and a timestamp of a Delay response Delay _ Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp following the Follow _ Up packet.
Step S102: determining a frequency offset estimation value of a slave clock node to be detected relative to a master clock node according to the acquired timestamp group of the PTP message;
specifically, the time offset of the slave clock node and the master clock node to be tested is determined according to the acquired timestamp group of the PTP message; screening a first group of timestamp groups and a last group of timestamp groups of the PTP messages within a preset time period T from the obtained timestamp groups of the PTP messages; and determining a frequency offset estimation value corresponding to the preset time period T according to all the determined time offsets corresponding to the preset time period T, and the screened time stamp group of the first group of PTP messages and the screened time stamp group of the last group of PTP messages in the preset time period T.
It should be noted that, in step S102, the process of determining the time offsets of the slave clock node to be measured and the master clock node according to the obtained timestamp group of the PTP packet belongs to the prior art, and details are not described here.
Here, based on all the determined time offsets corresponding to the preset time period T, and the screened time stamp groups of the PTP messages of the first group and the time stamp groups of the PTP messages of the last group within the preset time period T, a calculation formula for determining the frequency offset estimation value F corresponding to the preset time period T is as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
the T1 and the T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
Step S103: judging whether the determined frequency deviation estimation value F exceeds an alarm threshold value in real time; when the determined frequency offset estimation value does not exceed the alarm threshold value, the frequency offset estimation value is within the allowed error range, so that alarm information does not need to be reported to a network management server, and the process is ended; otherwise, executing step S104;
here, the alarm threshold value is usually 5 ppb; the value of the alarm threshold value can also be preset according to the actual situation.
Step S104: and reporting alarm information when the determined frequency deviation estimation value exceeds an alarm threshold value.
Here, the reported alarm information at least includes the PTP logical port number of the slave clock node to be tested and the determined frequency offset estimation value F; the reported alarm information can also comprise a father port number, a local port number, a frame number, a slot number and the like of the slave clock node to be tested; in addition, the reported alarm information may also include alarm time and the like.
Here, in a specific implementation process, in order to be implemented conveniently, a periodic manner is usually adopted to trigger a slave clock node to be tested to execute steps S101 to S102; for example, in the execution of step S101, the slave clock node to be tested executes the operation of obtaining the timestamp group of the PTP packet every 1 second; in the execution of step S102, in general, the slave clock node to be tested determines the frequency offset estimation value of the slave clock node to be tested relative to the master clock node every 1 second according to the obtained timestamp group of the PTP packet.
In addition, according to actual needs, a non-periodic mode can be adopted to trigger the slave clock node to be tested to execute the steps S101 to S102; for example, in the execution of step S101, the time interval for triggering the slave clock node to be tested to execute step S101 may be preset as an incremental sequence, and for example, the time interval is sequentially valued as 1S, 3S, 2S …, and the like; the time interval may also be a random array, for example, the time interval sequentially takes values of 1s, 2s, 3s, …, and the like. Similarly, in the execution of step S102, the value of the time interval may also be an incremental array or a random array.
Therefore, by the frequency offset monitoring method based on the time synchronization network, the frequency offset monitoring and control of the adjacent clock nodes can be effectively realized through the combination of the slave clock node to be detected and the network manager, so that the efficient operation and maintenance of the time synchronization network of 1588v2 are realized.
Fig. 3 is a schematic diagram of a third implementation flow of a frequency offset monitoring method based on a time synchronization network according to an embodiment of the present invention, and as shown in fig. 3, the frequency offset monitoring method based on the time synchronization network according to the embodiment of the present invention includes:
step S100: receiving a trigger instruction;
here, in a 1588v 2-based time synchronization network, in the process of time synchronization between a master clock node and a slave clock node, a network management manager issues a trigger instruction to a slave clock node to be tested, so as to start a frequency offset monitoring function of the slave clock node to be tested, so as to monitor the frequency offset of the slave clock node to be tested relative to the master clock node; the slave clock node to be tested can be any slave clock node in a time synchronization network.
Step S101: responding to the trigger instruction, and regularly acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
here, the timestamp group of the PTP packet includes: the timestamp of each Sync message delays the timestamp of the 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 following the Follow _ Up packet.
Step S102: determining a frequency offset estimation value of a slave clock node to be detected relative to a master clock node according to the acquired timestamp group of the PTP message;
specifically, the time offset of the slave clock node and the master clock node to be tested is determined according to the acquired timestamp group of the PTP message; screening a first group of timestamp groups and a last group of timestamp groups of the PTP messages within a preset time period T from the obtained timestamp groups of the PTP messages; and determining a frequency offset estimation value corresponding to the preset time period T according to all the determined time offsets corresponding to the preset time period T, and the screened time stamp group of the first group of PTP messages and the screened time stamp group of the last group of PTP messages in the preset time period T.
It should be noted that, in step S102, the process of determining the time offsets of the slave clock node to be measured and the master clock node according to the obtained timestamp group of the PTP packet belongs to the prior art, and details are not described here.
Here, based on all the determined time offsets corresponding to the preset time period T, and the screened time stamp groups of the PTP messages of the first group and the time stamp groups of the PTP messages of the last group within the preset time period T, a calculation formula for determining the frequency offset estimation value F corresponding to the preset time period T is as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
the T1 and the T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
Step S103 a: counting the determined frequency offset estimation value to obtain statistical data;
here, the obtained statistical data includes the PTP logical port number of the slave clock node to be measured and the determined frequency offset estimation value F, and the maximum value and the minimum value of the frequency offset estimation value F.
Step S104 a: and reporting the statistical data to allow a network manager to determine whether the statistical data exceeds an alarm threshold value.
Here, the alarm threshold value is typically 5 ppb.
It should be noted that, in the process of reporting the statistical data, the number of the PTP logical port of the slave clock node to be tested is also required to be reported to the network manager; the parent port number, the frame number, the slot number and the like can be further reported to the network manager.
Here, in a specific implementation process, in order to be implemented conveniently, a periodic manner is usually adopted to trigger a slave clock node to be tested to execute steps S101 to S102; for example, in the execution of step S101, the slave clock node to be tested executes the operation of obtaining the timestamp group of the PTP packet every 1 second; in the execution of step S102, in general, the slave clock node to be tested determines the frequency offset estimation value of the slave clock node to be tested relative to the master clock node every 1 second according to the obtained timestamp group of the PTP packet.
In addition, according to actual needs, a non-periodic mode can be adopted to trigger the slave clock node to be tested to execute the steps S101 to S102; for example, in the execution of step S101, the time interval for triggering the slave clock node to be tested to execute step S101 may be preset as an incremental sequence, and for example, the time interval is sequentially valued as 1S, 3S, 2S …, and the like; the time interval may also be a random array, for example, the time interval sequentially takes values of 1s, 2s, 3s, …, and the like. Similarly, in the execution of step S102, the value of the time interval may also be an incremental array or a random array.
Therefore, by the frequency offset monitoring method based on the time synchronization network, the frequency offset monitoring and control of the adjacent clock nodes can be effectively realized through the combination of the slave clock node to be detected and the network manager, so that the efficient operation and maintenance of the time synchronization network of 1588v2 are realized.
Fig. 4 is a schematic structural diagram of a frequency offset monitoring apparatus based on a time synchronization network according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: an acquisition module 10 and a determination module 20; wherein,
the acquiring module 10 is configured to receive a trigger instruction; responding to the received trigger instruction, and regularly acquiring a timestamp group of the PTP message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
here, the timestamp group of the PTP packet includes: the timestamp of each synchronization Sync message, the timestamp of a Follow _ Up message corresponding to the synchronization Sync message, the timestamp of a Delay request Delay _ Req message, and the timestamp of a Delay response Delay _ Resp message. It should be noted that the timestamp group of the PTP packet may further include a timestamp following the Follow _ Up packet.
The determining module 20 is configured to periodically determine, according to the obtained timestamp group of the PTP message, a frequency offset estimation value of the slave clock node to be detected relative to the master clock node.
Specifically, as shown in fig. 5, the determination module 20 includes a first determination module 21, a screening module 22, and a second determination module 23; wherein,
the first determining module 21 is configured to determine time offsets of the slave clock node and the master clock node to be detected according to the obtained timestamp group of the PTP packet;
the screening module 22 is configured to screen a first group of timestamp groups and a last group of timestamp groups of PTP messages in a preset time period from the obtained timestamp groups of PTP messages;
the second determining module 23 is configured to determine the frequency offset estimation value corresponding to the preset time period according to the determined time offset corresponding to the preset time period, and the screened timestamp group of the first group of PTP messages and the screened timestamp group of the last group of PTP messages in the preset time period.
Here, the second determining module 23 determines the calculation formula of the frequency offset estimation value F corresponding to the preset time period T according to the determined time offset corresponding to the preset time period T, and the screened time stamp group of the first group PTP message and the time stamp group of the last group PTP message in the preset time period T as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
the T1 and the T2 are respectively the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
Further, as shown in fig. 6, the apparatus further includes a determining module 30 and a first reporting module 40; wherein,
the judging module 30 is configured to judge whether the determined frequency offset estimation value exceeds an alarm threshold value in real time;
the first reporting module 40 is configured to report the alarm information when the determined frequency offset estimation value exceeds the alarm threshold value.
Further, as shown in fig. 7, the apparatus further includes a statistics module 31 and a second reporting module 41; wherein,
the statistical module 31 is configured to perform statistics on the determined frequency offset estimation value 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.
In practical applications, the obtaining module 10, the determining module 20, the first determining module 21, the screening module 22, the second determining module 23, the judging module 30, the first reporting module 40, the counting module 31, and the second reporting module 41 may all be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like in the slave clock node to be tested.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (9)

1. A frequency deviation monitoring method based on a time synchronization network is characterized by comprising the following steps:
receiving a trigger instruction for starting a frequency offset monitoring function;
responding to the trigger instruction for starting the frequency offset monitoring function, and periodically acquiring a timestamp group of a Precision Time Protocol (PTP) message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
and periodically determining the frequency Offset estimation value of the slave clock node to be detected relative to the master clock node corresponding to the preset time period according to the acquired accumulated sum of the timestamp group of the first group of PTP messages in the preset time period, the timestamp group of the last group of PTP messages and the time Offset obtained based on the timestamp group of each group of PTP messages in the preset time period.
2. The method of claim 1, further comprising:
judging whether the determined frequency offset estimation value exceeds an alarm threshold value;
and reporting alarm information when the determined frequency deviation estimation value exceeds an alarm threshold value.
3. The method of claim 1, further comprising:
counting the determined frequency offset estimation value to obtain statistical data;
and reporting the statistical data to allow a network manager to determine whether the statistical data exceeds an alarm threshold value.
4. The method according to any of claims 1 to 3, wherein the set of timestamps of the PTP messages comprises: a timestamp of each synchronization Sync message, a timestamp of a Delay request Delay _ Req message, and a timestamp of a Delay response Delay _ Resp message.
5. The method according to any one of claims 1 to 3, wherein the calculation formula for periodically determining the frequency Offset estimation value of the slave clock node to be measured relative to the master clock node corresponding to the preset time period according to the obtained cumulative sum of the timestamp group of the first group of PTP messages within the preset time period, the timestamp group of the last group of PTP messages and the time Offset obtained based on the timestamp groups of PTP messages within the preset time period is as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
wherein, F is a frequency offset estimation value; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T respectively; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
6. A frequency deviation monitoring device based on a time synchronization network is characterized in that the device comprises: an acquisition module and a determination module; wherein,
the acquisition module is used for receiving a trigger instruction for starting a frequency offset monitoring function; responding to a received trigger instruction for starting a frequency offset monitoring function, and regularly acquiring a timestamp group of the PTP message; the PTP message is a message of a slave clock node to be detected and a master clock node in the time synchronization process;
the determining module is used for periodically determining the frequency Offset estimation value of the slave clock node to be detected relative to the master clock node corresponding to the preset time period according to the acquired sum of the timestamp group of the first group of PTP messages in the preset time period, the timestamp group of the last group of PTP messages and the time Offset obtained based on the timestamp group of each group of PTP messages in the preset time period.
7. The apparatus of claim 6, further comprising: the device comprises a judging module and a first reporting module; wherein,
the judging module is used for judging whether the determined frequency offset estimation value exceeds an alarm threshold value;
and the first reporting module is used for reporting the alarm information when the determined frequency offset estimation value exceeds the alarm threshold value.
8. The apparatus of claim 6, further comprising: a statistical module and a second reporting module; wherein,
the statistical module is used for carrying out statistics on the determined frequency offset estimation value to obtain statistical data;
and 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. The apparatus according to any one of claims 6 to 8, wherein the determining module is configured to periodically determine, according to the sum of the obtained timestamp groups of the first group of PTP messages in the preset time period, the last group of PTP messages, and the time Offset obtained based on the timestamp groups of each group of PTP messages in the preset time period, a calculation formula of the frequency Offset estimation value of the slave clock node to be tested relative to the master clock node corresponding to the preset time period as follows:
F=((T2-T1)-Theta-(t2-t1))/(T1-t1);
wherein, F is a frequency offset estimation value; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the timestamp group of the last group of PTP messages in the preset time period T respectively; the T1 and the T2 are the sending time and the receiving time of the synchronous Sync message in the first group of timestamp groups within the preset time period T respectively; theta is the cumulative sum of all the determined time offsets Offset corresponding to the preset time period T.
CN201410530703.5A 2014-10-08 2014-10-08 Frequency deviation monitoring method and device based on time synchronization network Active CN105577348B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410530703.5A CN105577348B (en) 2014-10-08 2014-10-08 Frequency deviation monitoring method and device based on time synchronization network
PCT/CN2015/072628 WO2016054884A1 (en) 2014-10-08 2015-02-10 Frequency deviation monitoring method, device and computer storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN105577348A CN105577348A (en) 2016-05-11
CN105577348B true CN105577348B (en) 2020-06-30

Family

ID=55652526

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (8)

* 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
WO2019104522A1 (en) * 2017-11-29 2019-06-06 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for flexe network
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
CN113411153B (en) * 2021-06-07 2022-07-26 中国人民解放军国防科技大学 Centralized control time synchronization method for time sensitive network
CN115276866B (en) * 2022-06-02 2024-05-14 智己汽车科技有限公司 Clock synchronization method and device of intelligent driving system
CN115642976B (en) * 2022-10-10 2023-07-21 广东越新微系统研究院 Mixed optimization time synchronization method
CN115882995B (en) * 2023-02-01 2023-06-20 南京美乐威电子科技有限公司 FPGA module and audio conversion equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104080115A (en) * 2013-03-28 2014-10-01 中国移动通信集团公司 Time synchronization performance monitoring method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035639B (en) * 2009-09-30 2014-09-17 华为技术有限公司 Time synchronization method, device and system
CN101834712B (en) * 2010-04-19 2012-11-14 浙江大学 Method for realizing accurate time synchronization by utilizing IEEE1588 protocol
CN101977104B (en) * 2010-11-13 2013-01-09 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102104475B (en) * 2011-01-31 2013-07-03 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102185686B (en) * 2011-05-16 2016-09-21 南京中兴软件有限责任公司 Method and the network equipment of frequency is adjusted based on IEEE 1588 agreement
CN103428716B (en) * 2012-05-17 2018-08-03 中兴通讯股份有限公司 Dynamic adjusts the method and device of PTP message rate

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104080115A (en) * 2013-03-28 2014-10-01 中国移动通信集团公司 Time synchronization performance monitoring method, device and system

Also Published As

Publication number Publication date
WO2016054884A1 (en) 2016-04-14
CN105577348A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN105577348B (en) Frequency deviation monitoring method and device based on time synchronization network
EP3009897B1 (en) Distribution device, distribution system, and distribution method
US9923656B2 (en) Methods, systems, and computer readable media for testing recovered clock quality
CN103563287B (en) Synchronization device and synchronization method
CN107360060B (en) Time delay measuring method and device
EP2770678A1 (en) Clock synchronization method and system in 1588-2008 protocol
CN101610145B (en) Method and system for realizing synchronous control of distributed system
CN106603183B (en) A kind of timestamp filter method and device
WO2017032113A1 (en) Method and apparatus for measuring time synchronization deviation
CN105262555B (en) Time synchronization method, programmable logic device, single board and network element
JP6452427B2 (en) Time synchronization monitoring method, communication system, and master 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
WO2012088931A1 (en) Method and device for monitoring time synchronization
CN114285515B (en) Method and device for realizing arbitrary TSN time window period
CN101394264B (en) Monitoring method and device for periodically packet transmission
CN104144047A (en) Synchronization method of communication network system, intermediate node and slave node
CN102710359A (en) Accurate clock frequency synchronizing method and device based on IEEE1588 (institute of electrical and electronics engineers)
CN101359985A (en) Embedded system based on LXI equipment accurate time synchronization protocol
CN114258126A (en) Data processing method and device
US10334539B2 (en) Metered interface
JP2018166273A (en) Wireless device and timing synchronization method
JP2011071869A (en) Clock synchronizing method and packet communication system
US11445341B2 (en) Dynamic weighing device
CN110366240B (en) High-precision synchronous triggering method for wireless sensor network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right

Effective date of registration: 20200617

Address after: 518057 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Applicant after: Shenzhen ZTE Technical Service Co.,Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corp.

TA01 Transfer of patent application right