CN105703893A - Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system - Google Patents
Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system Download PDFInfo
- Publication number
- CN105703893A CN105703893A CN201410692729.XA CN201410692729A CN105703893A CN 105703893 A CN105703893 A CN 105703893A CN 201410692729 A CN201410692729 A CN 201410692729A CN 105703893 A CN105703893 A CN 105703893A
- Authority
- CN
- China
- Prior art keywords
- clock source
- source attribute
- attribute
- previous
- time
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000003287 optical effect Effects 0.000 claims abstract description 60
- 238000012544 monitoring process Methods 0.000 claims abstract description 58
- 230000008859 change Effects 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 9
- 230000008569 process Effects 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 25
- 230000005540 biological transmission Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- DJCKAMCJNTUQIV-UHFFFAOYSA-N 2-[[5-[3-[3,4-dihydroxy-5-(hydroxymethyl)oxolan-2-yl]oxy-4,5-dihydroxy-6-(hydroxymethyl)oxan-2-yl]oxy-3,4-dihydroxy-6-propoxyoxan-2-yl]methoxy]-6-methyloxane-3,4,5-triol Chemical compound OC1C(O)C(OC2C(C(O)C(O)C(CO)O2)OC2C(C(O)C(CO)O2)O)C(OCCC)OC1COC1OC(C)C(O)C(O)C1O DJCKAMCJNTUQIV-UHFFFAOYSA-N 0.000 description 1
- 108700009949 PTP protocol Proteins 0.000 description 1
- 239000004734 Polyphenylene sulfide Substances 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 229920000069 polyphenylene sulfide Polymers 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a clock source attribute synchronization method, a clock source attribute synchronization device and a clock source attribute synchronization system. The method comprises the following steps: an optical line terminal OLT monitors a specified event; the OLT adjusts a received clock source attribute from higher-level clock source equipment when monitoring the specified event; and the OLT sends the adjusted higher-level clock source attribute to an optical network unit ONU. By adopting the technical scheme provided by the invention, the problem that the efficiency of maintenance work is lowered due to too many clock source attribute parameters in the process of clock source attribute synchronization in the related technologies is solved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for synchronizing clock source attributes.
Background
A Passive Optical Network (PON) is mainly composed of an OLT (optical line terminal), an ONU (optical network unit), and an ODN (optical distribution network). The PON generally adopts a tree topology structure, as shown in fig. 1, an OLT is connected to an ODN, the ODN has a plurality of ONUs suspended therebelow, downstream data between the OLT and the ONUs uses a channel in a broadcast manner and upstream data uses a channel in a time division multiplexing manner, the OLT is connected to a core network including an IP network and a Synchronous Optical Network (SONET) network, and the ONUs may be connected to a base station therebelow.
A Passive Optical Network (PON) is mainly composed of an OLT (optical line terminal), an ONU (optical network unit), and an ODN (optical distribution network). The PON generally adopts a tree topology structure, as shown in fig. 1, an OLT is connected to an ODN, the ODN has a plurality of ONUs suspended therebelow, downstream data between the OLT and the ONUs uses a channel in a broadcast manner and upstream data uses a channel in a time division multiplexing manner, the OLT is connected to a core network including an IP network and a Synchronous Optical Network (SONET) network, and the ONUs may be connected to a base station therebelow. In a time synchronization application scenario, a base station requires time synchronization, and generally, the base station should preferentially select a satellite receiver for air time service, but a ground time service mode can be adopted for the base station which cannot realize the air time service, and the ground time service requires at least one clock source device GrandMaster, and time synchronization information is transmitted to the base station step by step through a core network.
At present, the high-precision time synchronization interface mainly includes a PTP (precision time protocol) and a 1PPS (pulse per second) time synchronization interface plus TOD (time of day).
IEEE1588 sets forth a principle of realizing time synchronization, formulates a PTP protocol, and realizes time synchronization by interactively transmitting timestamps through PTP messages. The IEEE1588 supports three clock models, namely a common clock (OC), a Boundary Clock (BC) and a Transparent Clock (TC). In the prior art, a boundary clock model is usually adopted to realize time synchronization.
In a 1PPS + TOD time synchronization interface, 1PPS second pulse takes a rising edge as a punctual edge, and the rising time is less than 50 ns; the 1PPS + TOD information is transmitted in a 422 level manner, and the TOD time information message includes time information such as GPS time cycle number (gpsweet), GPS time cycle in seconds (gpssecondtimeof week), LeapSeconds (GPS-UTC, offset between GPS time and UTC time), and the like.
As shown in fig. 2, the OLT may implement time synchronization with a previous-stage clock source device as a 1588 Slave clock Slave, the OLT transmits the acquired accurate time to the ONU by using a PON time synchronization protocol (ITU-t g.984 or ieee 802.11 as) through an optical fiber line, and the ONU serves as a 1588 Master to provide time synchronization information to a next-stage device; wherein, the OLT and the ONU are equivalent to jointly acting as a boundary clock.
The OLT can also realize time synchronization with the previous-stage clock source equipment by adopting a 1PPS + TOD time synchronization interface.
In the process of implementing the present invention, the inventor finds that the existing scheme for implementing time synchronization based on the passive optical network has at least the following defects:
in the related technology, when an OLT adopts a PTP time synchronization interface, the OLT is used as a Slave clock Slave to perform PTP message interaction with a superior clock source device to realize time synchronization, and an ONU adopts ITU-T G.984 or IEEE802.1AS to realize time synchronization with the OLT; the ONU is used as a Master clock Master to perform PTP message interaction with the next-stage clock source equipment to realize time synchronization, and because the PTP message is cut off on the PON, some clock source attributes acquired by the OLT from the PTP message of the last-stage clock source synchronization equipment are not transmitted to the ONU. In this case, all clock source parameters required by each ONU can be configured through the network manager or the command line of the ONU, but some clock source parameters are dynamically changed (for example, time, grandmaster clock quality, grandmaster identity, grandmaster priority1, grandmaster priority2, etc.), and thus, an actual user has a lot of maintenance workload and is prone to errors.
In the related art, when the OLT uses a 1PPS + TOD time synchronization interface, the OLT cannot obtain complete clock source attributes, that is, cannot transmit to the ONU, because all clock source attributes required by the PTP message are not present in the time message of 1PPS + TOD. In this case, all clock source attributes required by the ONU can also be configured through the network manager or the command line, and the disadvantages are as described above. Meanwhile, the user needs to know whether the OLT currently uses a PTP time synchronization interface or a 1PPS + TOD time synchronization interface. If the OLT has the function of dynamically selecting the time synchronization interface (dynamically selecting the clock source by an algorithm), the maintenance work of the user becomes frequent.
In the related art, it is not mentioned what mechanism is used by the PON for the OLT to transmit to the ONU as soon as possible if the clock source attribute changes. For example, after the OLT recognizes the leap second information transmission change in the clock source attribute through the time synchronization interface (PTP or 1PPS + TOD), the prior art does not mention how the OLT should be delivered to the ONU as soon as possible.
Aiming at the problem that in the prior art, the maintenance work efficiency is reduced due to excessive clock source attribute parameters in the synchronization process of the clock source attributes, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a clock source attribute synchronization method, a clock source attribute synchronization device and a clock source attribute synchronization system, which at least solve the problem that in the prior art, the maintenance work efficiency is reduced due to excessive clock source attribute parameters in the synchronization process of clock source attributes.
According to an aspect of the present invention, there is provided a method for synchronizing clock source attributes, including:
an optical line terminal OLT monitors a specified event; when the appointed event is monitored, the OLT adjusts the clock source attribute received from the upper-level clock source equipment; and sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU).
Preferably, the specified event comprises at least one of:
the property of the clock source at the upper stage is changed; events of a specified type occur locally.
Preferably, before the monitoring of the specified event, the method further comprises: the OLT periodically sends a first type of message to the ONU, wherein the first type of message carries the attribute of a previous-stage clock source; sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU), comprising: and carrying the adjusted upper-level clock source attribute in a second-class message and sending the second-class message to the ONU, wherein the priority of the second-class message is higher than that of the first-class message.
Preferably, the superior clock source attribute is received through a time synchronization interface, and the time synchronization interface includes at least one of: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface.
Preferably, when the designated event is a change of an attribute of a clock source at a previous stage, the optical line terminal OLT monitors the designated event by one of the following methods: monitoring whether a first designated field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the first designated field changes, the leap second attribute in the previous-stage clock source attribute is determined to change; monitoring whether a second specified field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the second specified field changes, the frequency time tracking state attribute in the previous-stage clock source attribute is determined to change; and monitoring whether a leaps seconds field in the TOD message at the current time in the previous-level clock source attribute changes, wherein when the leaps seconds field changes, the leaps seconds attribute in the previous-level clock source attribute is determined to change.
Preferably, the first specified field includes at least one of: current world standard time compensation currentutoffset, current valid world standard time compensation currentutoffset valid, 59 second jump leap59, 61 second jump leap 61; and/or, the second designated field includes at least one of: traceable time traceable, traceable frequency traceable, clock class clockclass, time source.
Preferably, when the designated event is a change of an attribute of a clock source at a previous stage, the optical line terminal OLT monitors the designated event by one of the following methods, including: monitoring whether a trackable frequency in a local occurrence of a specified type event is unlocked, wherein when the trackable frequency is unlocked, the specified event is determined to be monitored; and monitoring whether the trackable time in the event of the local occurrence of the specified type is unlocked, wherein when the trackable time is unlocked, the specified event is determined to be monitored.
Preferably, the OLT adjusts the clock source attribute received from the previous-stage clock source device, including: when the trackable frequency is unlocked, adjusting the clock grade clockclass in the clock source attribute to a preset value, and adjusting the trackable time timeTracable and the trackable frequency frequencyTraceable in the clock source attribute to false; when the traceable time is out of lock, the clock level clockclass in the clock source attribute is lowered.
According to another aspect of the present invention, there is provided a method for synchronizing clock source attributes, including:
receiving the adjusted upper-level clock source attribute sent by an Optical Line Terminal (OLT); and adjusting the current clock source attribute according to the adjusted previous clock source attribute.
Preferably, before receiving the adjusted previous-stage clock source attribute sent by the optical line terminal OLT, the method further includes:
receiving a first type of message periodically sent by an OLT, wherein the first type of message carries an upper-level clock source attribute; receiving the adjusted previous clock source attribute sent by the OLT, including: and receiving a second type message sent by the OLT, wherein the second type message carries the upper-level clock source attribute adjusted by the OLT, and the priority of the second type message is higher than that of the first type message.
Preferably, the adjusting the current clock source attribute according to the adjusted previous clock source attribute by one of the following ways, including: when the trackable frequency in the current clock attribute is judged to be unlocked according to the adjusted previous clock attribute, adjusting the clock grade clock class in the clock attribute to a preset value, and adjusting the trackable time timeTracable and the trackable frequency frequencyTraceable in the clock attribute to be false; and when the trackable time in the current clock source attribute is judged to be unlocked according to the adjusted previous clock source attribute, reducing the clock grade in the clock source attribute.
Preferably, after the current clock source attribute is adjusted according to the adjusted previous clock source attribute, the method further includes: sending the adjusted clock source attribute to a base station, wherein the clock source attribute is sent through a time synchronization interface, and the time synchronization interface comprises at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
According to another aspect of the present invention, there is provided a clock source attribute synchronization apparatus, including:
the monitoring module is used for monitoring a specified event; the adjusting module is used for adjusting the received clock source attribute from the upper-level clock source equipment when the specified event is monitored; and the first sending module is used for sending the adjusted upper-level clock source attribute to the optical network unit ONU.
Preferably, the apparatus further comprises:
the second sending module is configured to periodically send a first type of packet to the ONU before monitoring the specified event, where the first type of packet carries an attribute of a previous-stage clock source, where the attribute of the previous-stage clock source is received through a time synchronization interface, and the time synchronization interface includes at least one of: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface; and the first sending module is used for carrying the adjusted upper-level clock source attribute in a second-class message and sending the second-class message to the ONU, wherein the priority of the second-class message is higher than that of the first-class message.
Preferably, the second sending module includes:
the message construction unit is used for constructing a first type of message according to a preset framework, wherein the preset framework is a type, length and value TLV framework; and the sending unit is used for sending the first type of messages to the ONU according to the period.
Preferably, the monitoring module is configured to monitor the specified event by one of the following methods, including:
the first monitoring unit is used for monitoring whether a first designated field in a time synchronization protocol statement PTPANnounce message in the previous-level clock source attribute changes, wherein when the first designated field changes, the leap second attribute in the previous-level clock source attribute is determined to change; the second monitoring unit is used for monitoring whether a second specified field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the second specified field changes, the change of a frequency time tracking state attribute in the previous-stage clock source attribute is determined; and the third monitoring unit is used for judging whether the specified event changes according to whether the LeapSeconds in the TOD message at the current time in the attribute of the previous-stage clock source changes when the monitored specified event is that the attribute of the previous-stage clock source changes.
Preferably, the monitoring module is configured to monitor the specified event by one of the following methods, including:
the fourth monitoring unit is used for monitoring whether the trackable frequency in the event of the local occurrence of the specified type is unlocked or not, wherein when the trackable frequency is unlocked, the specified event is determined to be monitored; and the fifth monitoring unit is used for monitoring whether the trackable time in the event of the local occurrence of the specified type is unlocked, wherein when the trackable time is unlocked, the specified event is determined to be monitored.
Preferably, the adjusting module is configured to adjust, when the specified event is monitored, the received clock source attribute from the previous-stage clock source device by one of the following manners, including:
the first adjusting unit is used for adjusting the clock grade clockclass in the clock source attribute to a preset value and adjusting the trackable time timeTraceable and the trackable frequency frequencyTraceable in the clock source attribute to false when the trackable frequency is unlocked; and the second adjusting unit is used for reducing the clock level clockclass in the clock source attribute when the traceable time is unlocked.
According to another aspect of the present invention, there is provided a clock source attribute synchronization apparatus, including:
the first receiving module is used for receiving the adjusted upper-level clock source attribute sent by the optical line terminal OLT; and the adjusting module is used for adjusting the current clock source attribute according to the adjusted previous clock source attribute.
Preferably, the apparatus further comprises: the second receiving module is used for receiving a first type of message periodically sent by the OLT before the adjusted previous-stage clock source attribute sent by the optical line terminal OLT is received, wherein the first type of message carries the previous-stage clock source attribute; the first receiving module is used for receiving a second type of message sent by the OLT, wherein the second type of message carries the attribute of the previous clock source adjusted by the OLT, and the priority of the second type of message is higher than that of the first type of message.
Optionally, the adjusting module is configured to adjust the current clock source attribute according to the adjusted previous clock source attribute in one of the following manners, including: the first adjusting unit is used for adjusting the clock grade clockclass in the clock source attribute to a preset value and adjusting the trackable time traceable and the trackable frequency frequencyTraceable in the clock source attribute to false when the trackable frequency in the current clock attribute is judged to be unlocked according to the adjusted previous clock source attribute; and the second adjusting unit is used for reducing the clock grade in the clock source attribute when the trackable time in the current clock source attribute is judged to be unlocked according to the adjusted previous-stage clock source attribute.
Optionally, the apparatus further comprises: a sending module, configured to send the adjusted clock source attribute to the base station after adjusting the current clock source attribute according to the adjusted previous-stage clock source attribute, where the clock source attribute is sent through a time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
According to another aspect of the present invention, there is provided a system for synchronizing clock source attributes, the system comprising: an optical line terminal OLT, an optical network unit ONU and a base station, wherein,
the OLT establishes communication connection with the ONU, and the ONU establishes communication connection with the base station, wherein the OLT is a synchronization device of the clock source attribute; the ONU is a synchronization device of the clock source attribute.
According to the invention, an optical line terminal OLT is adopted to monitor the specified event; when the appointed event is monitored, the OLT adjusts the clock source attribute received from the upper-level clock source equipment; and sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU). The problem that the maintenance work efficiency is reduced due to the fact that the clock source attribute parameters are too much in the synchronization process of the clock source attributes is solved, and the effect of clock source attribute synchronization is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of a clock source attribute synchronization system proposed in the related art;
fig. 2 is a schematic diagram of synchronous communication of OLT and ONU clock source attributes according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a method for synchronizing clock source attributes according to an embodiment of the invention;
FIG. 4 is a flow chart of another clock source attribute synchronization method according to an embodiment of the present invention
Fig. 5 is a block diagram of a structure of a clock source attribute synchronization apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a synchronization apparatus of clock source properties according to a preferred embodiment of the present invention;
fig. 7 is a block diagram of a synchronization apparatus of clock source properties according to a preferred embodiment of the present invention;
fig. 8 is a block diagram of a synchronization apparatus of clock source properties according to a preferred embodiment of the present invention;
fig. 9 is a block diagram of a structure of a clock source attribute synchronizing apparatus according to a preferred embodiment of the present invention;
fig. 10 is a block diagram of another clock source attribute synchronization apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram of another clock source attribute synchronization apparatus according to the preferred embodiment of the present invention;
fig. 12 is a block diagram of another clock source attribute synchronization apparatus according to a preferred embodiment of the present invention;
fig. 13 is a block diagram of another clock source attribute synchronization apparatus according to a preferred embodiment of the present invention;
fig. 14 is a schematic diagram of an information-based packet structure of clock source attributes according to an embodiment of the present invention;
fig. 15 is a schematic diagram of an event type message structure of a clock source attribute according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a method for synchronizing clock source attributes is provided, and fig. 3 is a flowchart of a method for synchronizing clock source attributes according to an embodiment of the present invention, which is applied to an optical line terminal OLT, as shown in fig. 3, the flowchart includes the following steps:
step S302, an optical line terminal OLT monitors a specified event;
step S304, when the appointed event is monitored, the OLT adjusts the received clock source attribute from the previous stage clock source equipment;
and step S306, sending the adjusted upper-level clock source attribute to an optical network unit ONU.
Through the steps, monitoring a specified event by adopting an Optical Line Terminal (OLT); when the appointed event is monitored, the OLT adjusts the clock source attribute received from the upper-level clock source equipment; and sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU). The problem that the maintenance work efficiency is reduced due to the fact that the clock source attribute parameters are too much in the synchronization process of the clock source attributes is solved, and the effect of clock source attribute synchronization is achieved.
Preferably, the specified event comprises at least one of:
the property of the clock source at the upper stage is changed; events of a specified type occur locally.
Preferably, before the monitoring of the specified event in step S302, the method further comprises:
step S298, the OLT periodically sends a first type of message to the ONU, and the first type of message carries the attribute of the upper-level clock source;
the upper-level clock source attribute is received through a time synchronization interface, and the time synchronization interface comprises at least one of the following: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface.
Preferably, in step S306, the adjusted upper-level clock source attribute is sent to the optical network unit ONU, specifically: and carrying the adjusted upper-level clock source attribute in a second-class message and sending the second-class message to the ONU, wherein the priority of the second-class message is higher than that of the first-class message.
The second type of message is called an event type message.
Preferably, the upper-level clock source attribute is received through a time synchronization interface, where the time synchronization interface includes at least one of: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface.
Preferably, as can be seen from the above, in step S298, the OLT periodically sends a first type of message to the ONU, including:
constructing a first type of message according to a preset framework, wherein the preset framework is a type, length and value TLV framework;
and sending the first type of message to the ONU through the time synchronization interface according to the period.
When the OLT periodically sends a first type of message to the ONU, the OLT periodically sends the first type of message containing clock source attribute by using a private protocol message;
the private protocol message can be expanded on the basis of the existing protocol, and can be an Ethernet protocol, a G.984OMCI protocol or an expanded OAM protocol;
the interval of the periodic transmission is about 5 seconds generally, and the interval can be set;
the periodically sent messages have a first priority and are called information messages.
The present invention is based on the method for synchronizing clock source attributes provided in the embodiments, and the interval of periodic transmission and the private protocol packet are only given as examples, and are not limited specifically.
Constructing clock source attributes with consistent formats by adopting a TLV (Type, Length length and Value) mode;
the clock source attributes include main information of a PTP message header and a PTP pannounce message, and the clock source attributes may be classified into leap SECOND attributes (LEAPS _ SECOND), frequency and TIME tracking state attributes (FREQ _ TIME _ STATUS), TIME DOMAIN (DOMAIN) attributes, and superior clock (party _ DATA) attributes.
When the OLT tracks the PTP time synchronization interface and inputs a reference source, the clock source attribute is from a PTP reference source currently selected by the OLT, and the TLV-format clock source attribute is generated according to information in a PTP message header and a PTPANnounce message in the PTP reference source currently selected;
when the OLT tracks a 1PPS + TOD time synchronization interface reference source, converting a LeapSecons field in a TOD time information message into a currentUtcOffset field in a LEAPS _ SECOND attribute, converting a pulse per SECOND state field in the TOD time information message into a clockClass field in a PARTT _ DATA clock source attribute, wherein other fields in the clock source attribute are all constructed by a clock source default value of the OLT except the currentUtcOffset field and the clockClass field;
when the OLT has neither PTP input nor 1PPS + TOD input, the default attribute of the clock source of the OLT is used.
The message is packaged in a TLV mode, so that clock source attributes in the PTP message and the TOD information can be sent to the ONU in the same form, the compatibility of the information architecture is improved, and the message analysis efficiency is improved.
Preferably, in step 302, the optical line termination OLT monitors a specified event by one of the following methods:
monitoring whether a first designated field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the first designated field changes, the leap second attribute in the previous-stage clock source attribute is determined to change;
monitoring whether a second specified field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the second specified field changes, the frequency time tracking state attribute in the previous-stage clock source attribute is determined to change;
monitoring whether a LeapSeconds field in a TOD message at the current moment in the previous-stage clock source attribute changes, wherein the LeapSeconds attribute in the previous-stage clock source attribute is determined to change when the LeapSeconds field changes;
wherein the first specified field includes at least one of: current world standard time compensation currentutoffset, current valid world standard time compensation currentutoffset valid, 59 second jump leap59, 61 second jump leap 61; and/or the presence of a gas in the gas,
the second designated field includes at least one of: traceable time traceable, traceable frequency traceable, clock class clockclass, time source.
Monitoring whether the trackable frequency in the event of the local occurrence of the specified type is unlocked or not, wherein when the trackable frequency is unlocked, the specified event is determined to be monitored;
and monitoring whether the trackable time in the locally occurring specified type event is unlocked or not, wherein when the trackable time is unlocked, the specified event is determined to be monitored.
Preferably, in step 304, when the specified event is monitored, the OLT adjusts the clock source attribute received from the previous-stage clock source device by one of the following manners, including:
when the trackable frequency is unlocked, adjusting the clock grade clockclass in the clock source attribute to a preset value, and adjusting the trackable time timeTracable and the trackable frequency frequencyTraceable in the clock source attribute to false;
mode two, when the traceable time is out of lock, the clock level clockclass in the clock source attribute is lowered.
Specifically, combining the step S302 and the step S304:
when the OLT tracks the PTP time synchronization interface and inputs a reference source, the OLT detects currentUtcOffset, currentUtcOffsetValid, leap59 and leap61 fields in a PTPANnounce message in the currently selected PTP reference source, and when the fields are changed, the leap second attribute is considered to be changed;
when the OLT tracks the PTP time synchronization interface and inputs a reference source, the OLT detects that the timeTracable, frequentTracable, clockclass and timesource in the PTPANnounce message in the currently selected PTP reference source are changed, namely, the frequency time tracking state attribute is considered to be changed;
when the OLT tracks the reference source of the 1PPS + TOD time synchronization interface, the OLT detects a leapSecnds field in the TOD time information message, and when the field changes, the leaPS attribute is considered to be changed;
when the OLT detects that the frequency tracking of the OLT loses lock, adjusting the clockclass to a default value of the clockclass, adjusting frequency traceable and timeTraceable to false, and meanwhile, considering that a specified type event occurs locally;
when the OLT detects that the time tracking of the OLT is lost, only the clockclass is degraded, the attributes of other clock sources are kept unchanged, and meanwhile, the occurrence of a local specified type event is considered;
the locally occurring event of the specified type also includes, but is not limited to, an ONU on-line event.
In this embodiment, a method for synchronizing clock source attributes is provided, and fig. 4 is a flowchart of a method for synchronizing clock source attributes according to an embodiment of the present invention, which is applied to an optical network unit ONU, as shown in fig. 4, the flowchart includes the following steps:
step S402, receiving the adjusted upper-level clock source attribute sent by the optical line terminal OLT;
and S404, adjusting the current clock source attribute according to the adjusted previous clock source attribute.
Through the steps, the adjusted previous-stage clock source attribute sent by the optical line terminal OLT is received, and the current clock source attribute is adjusted according to the adjusted previous-stage clock source attribute. The problem that the maintenance work efficiency is reduced due to the fact that the clock source attribute parameters are too much in the synchronization process of the clock source attributes is solved, and the effect of clock source attribute synchronization is achieved.
Preferably, in step S402, before receiving the adjusted previous clock source attribute sent by the optical line terminal OLT, the method further includes:
step S398, receiving a first type of message periodically sent by an OLT, wherein the first type of message carries an upper-level clock source attribute;
preferably, in step S406, the step of receiving the adjusted previous-stage clock source attribute sent by the optical line terminal OLT specifically includes: and receiving a second type message sent by the OLT, wherein the second type message carries the upper-level clock source attribute adjusted by the OLT, and the priority of the second type message is higher than that of the first type message.
Preferably, in step S404, adjusting the current clock source attribute according to the adjusted previous clock source attribute by one of the following manners, including:
when the trackable frequency in the current clock attribute is judged to be unlocked according to the adjusted previous-stage clock source attribute, adjusting the clock grade clock class in the clock source attribute to a preset value, and adjusting the trackable time timeTracable and the trackable frequency frequeTracable in the clock source attribute to false;
and in the second mode, when the trackable time in the current clock source attribute is judged to be unlocked according to the adjusted previous clock source attribute, the clock grade in the clock source attribute is reduced.
As can be seen from the above, the optical line unit ONU analyzes the received clock source attribute message, detects an important event of itself, performs necessary adjustment on the clock source attribute, and finally outputs the clock source attribute information through the time synchronization interface, where:
when the ONU detects that the frequency tracking of the ONU is unlocked, adjusting the clock level clockclass to a default value of the clockclass, adjusting the trackable frequency traceable and the trackable time traceable to false, and meanwhile considering that the local occurrence of the specified type event of the OLT occurs;
the default value of the clockclass may be a standard value in IEEE1588 protocol.
When the ONU detects that the time tracking of the ONU is unlocked, only the clock class is degraded, the attributes of other clock sources are kept unchanged, and meanwhile, the OLT is considered to have the occurrence of the specified type event.
Preferably, after the step S404 adjusts the current clock source attribute according to the adjusted previous clock source attribute, the method further includes:
step S406, sending the adjusted clock source attribute to the base station, where the clock source attribute is sent through a time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
And the ONU outputs the adjusted clock source attribute through a PTP (precision time protocol) time synchronization interface or a 1PPS (polyphenylene sulfide) + TOD (time of day) time synchronization interface.
In this embodiment, a clock source attribute synchronization apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a structure of a clock source attribute synchronization apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus is applied in an optical line terminal OLT, and includes: a monitoring module 52, an adjustment module 54, and a first transmission module 56, wherein,
a monitoring module 52 for monitoring a specified event;
an adjusting module 54, connected to the monitoring module 52, configured to adjust the received clock source attribute from the previous stage of clock source device when the specified event is monitored;
and the first sending module 56 is connected to the adjusting module 54, and is configured to send the adjusted upper-level clock source attribute to the optical network unit ONU.
Preferably, as shown in fig. 6, fig. 6 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, where the clock source attribute synchronization apparatus further includes: a second sending module 51, in which,
a second sending module 51, configured to send a first type of packet to the ONU periodically before monitoring the specified event, where the first type of packet carries an attribute of a previous-stage clock source, where the attribute of the previous-stage clock source is received through a time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface;
and the first sending module 56 is configured to carry the adjusted upper-level clock source attribute in a second type of packet and send the second type of packet to the ONU, where a priority of the second type of packet is higher than a priority of the first type of packet.
Preferably, as shown in fig. 7, fig. 7 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, and the second sending module 51 includes: a message construction unit 511 and a sending unit 512, wherein,
the message construction unit 511 is configured to construct a first type of message according to a preset framework, where the preset framework is a type, length, and value TLV framework;
the sending unit 512 is connected to the message constructing unit 511, and is configured to send the first type of message to the ONU according to a period.
Preferably, as shown in fig. 8, fig. 8 is a block diagram of a synchronization apparatus for clock source attributes according to a preferred embodiment of the present invention, and the monitoring module 52 is configured to monitor a specified event by one of the following manners, including:
the first monitoring unit 521 is configured to monitor whether a first specified field in a time synchronization protocol declaration PTPAnnounce message in an attribute of a previous-stage clock source changes, where when the first specified field changes, it is determined that a leap second attribute in the attribute of the previous-stage clock source changes;
a second monitoring unit 522, configured to monitor whether a second specified field in the time synchronization protocol declaration PTPAnnounce message in the previous-stage clock source attribute changes, where when the second specified field changes, it is determined that a frequency-time tracking state attribute in the previous-stage clock source attribute changes;
a third monitoring unit 523, configured to determine whether the specified event changes according to whether a LeapSeconds in a TOD message in the previous-stage clock source attribute changes when the monitored specified event is a change in the previous-stage clock source attribute;
a fourth monitoring unit 524, configured to monitor whether a trackable frequency in a locally occurring event of a specified type is out-of-lock, where when the trackable frequency is out-of-lock, it is determined that the specified event is monitored;
and a fifth monitoring unit 525, configured to monitor whether a traceable time in the locally occurring specified type of event is out-of-lock, where when the traceable time is out-of-lock, it is determined that the specified event is monitored.
Preferably, as shown in fig. 9, fig. 9 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, where the adjusting module 54 is configured to adjust the clock source attribute received from the previous stage clock source device when the specified event is monitored by one of the following manners, including:
a first adjusting unit 541, configured to adjust a clock class clockclass in a clock source attribute to a preset value when the trackable frequency is unlocked, and adjust a trackable time timeTraceable and a trackable frequency frequencraceable in the clock source attribute to false;
a second adjusting unit 542 is configured to decrease the clock level clockclass in the clock source attribute when the traceable time is out of lock.
In practical applications, the modules may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) located in the OLT.
Fig. 10 is a block diagram of a structure of a synchronization apparatus for clock source attributes according to an embodiment of the present invention, as shown in fig. 10, applied to an optical network unit ONU, where the apparatus includes: a first receiving module 62 and an adjusting module 64, wherein,
a first receiving module 62, configured to receive the adjusted previous-stage clock source attribute sent by the optical line terminal OLT;
and an adjusting module 64, configured to adjust the current clock source attribute according to the adjusted previous clock source attribute.
Preferably, as shown in fig. 11, fig. 11 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, where the apparatus further includes:
a second receiving module 66, configured to receive a first type of packet periodically sent by the OLT before receiving the adjusted previous-stage clock source attribute sent by the optical line terminal OLT, where the first type of packet carries the previous-stage clock source attribute;
the first receiving module 62 is configured to receive a second type of message sent by the OLT, where the second type of message carries an attribute of a previous clock source adjusted by the OLT, and a priority of the second type of message is higher than a priority of the first type of message.
Optionally, as shown in fig. 12, fig. 12 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, where the adjusting module 64 is configured to adjust a current clock source attribute according to an adjusted previous clock source attribute in one of the following manners, including:
the first adjusting unit 641 is configured to adjust a clock class clockclass in the clock source attribute to a preset value and adjust trackable time traceable and trackable frequency frequencyTraceable in the clock source attribute to false when the trackable frequency in the current clock attribute is determined to be unlocked according to the adjusted previous-stage clock source attribute;
the second adjusting unit 642 is configured to reduce a clock level in the clock source attribute when the trackable time in the current clock source attribute is determined to be unlocked according to the adjusted previous-stage clock source attribute.
Optionally, as shown in fig. 13, fig. 13 is a block diagram of a structure of a clock source attribute synchronization apparatus according to a preferred embodiment of the present invention, where the apparatus further includes:
a sending module 68, configured to send the adjusted clock source attribute to the base station after adjusting the current clock source attribute according to the adjusted previous-stage clock source attribute, where the clock source attribute is sent through a time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
In practical applications, the modules may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or a physical layer PHY chip located in an ONU.
Specifically, the embodiments of the present invention provide a method and an apparatus for synchronizing clock source attributes as shown in fig. 3 to 13, and in addition, the embodiments of the present invention provide a system for synchronizing clock source attributes, so that clock source attributes of an OLT and an ONU in a passive optical network are synchronized, and the ONU does not need to know differences between different input time synchronization interfaces (such as a PTP interface and a 1PPS + TOD interface) of the OLT, so that the ONU can know and transmit the clock source attribute of a previous-stage clock as soon as possible.
An embodiment of the present invention provides a clock source attribute synchronization system, where the system includes: OLT, ONU, base station; wherein,
the OLT is used for acquiring clock source attribute information of a previous-stage clock through a PTP time synchronization interface or a 1PPS + TOD interface, constructing a TLV-format clock source attribute, and periodically sending a common priority message containing the clock source attribute by using a private protocol message; when detecting that the property of the clock source at the upper stage is changed or detecting that an important event occurs, performing necessary adjustment on the property of the clock source, and immediately sending a high-priority message containing the property of the clock source;
the ONU is used for receiving the clock source attribute message sent by the OLT, analyzing the received clock source attribute message, detecting an important event of the ONU, carrying out degradation or default value restoration adjustment on the clock source attribute, and then outputting clock source attribute information through a PTP (precision time protocol) time synchronization interface or through a 1PPS (first packet data service) and TOD (time of day) interface time synchronization interface;
and the base station is used for receiving the clock source attribute information output by the PTP time synchronization interface or the 1PPS + TOD interface time synchronization interface.
The embodiment of the invention solves the problem of how to transmit the clock source attribute closely related to time synchronization except for time synchronization in a time synchronization system applied in a passive optical network, solves the problem of how to transmit the clock source attribute to next-stage equipment such as ONU and the like as soon as possible if the clock source attribute of the previous stage changes, solves the problem of inconsistent clock source attribute information obtained through different previous-stage time synchronization interfaces, effectively reduces the workload of maintaining the clock source information by a user, and avoids artificial maintenance errors.
The time synchronization system applied in the passive optical network mainly includes, as shown in fig. 2: OLT, ONU and base station. The OLT can be used as a Slave clock Slave to perform PTP message interaction with a previous-stage clock source device, realizes time synchronization of the OLT and the previous-stage clock source device by transmitting a timestamp, and sends the adjusted local time to the ONU so that the ONU realizes time synchronization with the OLT; and the ONU and the base station carry out PTP message interaction, and the base station realizes time synchronization with the ONU by transmitting the timestamp.
In the system, the OLT obtains the clock source attribute of the previous-stage device from the previous-stage clock source device through the Announce message in the PTP time synchronization interface, or obtains the clock source attribute of the previous-stage device through the 1PPS + TOD interface. No matter the current GPON time synchronization standard ITU-t g.984.3 (defining a specific implementation mechanism) and ITU-t g.984.4 (defining OMCI time messages) or the current EPON time synchronization standard ieee 802.11 as, only the method of how to transmit the accurate time acquired by the OLT from the outside to the ONU over the optical fiber line (generally, transmitting the frame number and the corresponding timestamp thereof) and how to recover the accurate time by the ONU are defined, the problem of how to transmit the clock source attribute closely related to the time synchronization except for the time synchronization is not mentioned or solved, the problem of how to transmit the clock source attribute closely related to the time synchronization to the next-stage device such as the next-stage device as soon as possible if the last-stage clock source ONU attribute changes is not mentioned or solved, and the problem of inconsistency of the clock source attribute information obtained through different last-stage time synchronization interfaces is.
As shown in fig. 14, fig. 14 is a schematic diagram of an information-based packet structure of a clock source attribute according to an embodiment of the present invention:
the first field is frameType, and the value of the frameType is information;
the subsequent three fields are party _ DATA clock source attributes, which are tlvType (value is party _ DATA), Length (value is 2+ N (34)), dataField (DATA field, Length is 34, and the content is mainly the fields of grant priority1, grant priority2, grant identity, clockClass, clockAccuracy, etc. in the ptpannouce message);
the next three fields are DOMAIN clock source attributes, which are tlvType (with the value of DOMAIN), Length (with the value of 2+ N (4)), and dataField (data field with the Length of 4, and the content is mainly fields such as DOMAInNumber in the PTP message header);
the last three fields are LEAPS _ SECOND clock source attributes, which are tlvType (with the value LEAPS _ SECOND), Length (with the value of 2+ N (6)), dataField (data field with the Length of 6, and the contents mainly comprise currentUtcOffsetValid, currentUtcOffset, leap59, leap61 and other fields in the PTPANnounce message);
the sequence positions of the clock source attributes, party _ DATA, DOMAIN, LEAPS _ SECOND in the information type message are not limited to the above sequence.
As shown in fig. 15, fig. 15 is a schematic diagram of an event type message structure of a clock source attribute according to the embodiment of the present invention:
the first field is frameType, which has an event value;
the subsequent three fields are LEAPS _ SECOND clock source attributes (as shown in FIG. 5 a), which are tlvType (value LEAPS _ SECOND), Length (value is 2+ N (6)), dataField (data field, Length is 6, and content is mainly currentUtcOffsetValid, currentUtcOffset, leap59, leap61 and other fields in the PTPANnounce message);
the next three fields are FREQ _ TIME _ STATUS clock source attributes, which are tlvType (value FREQ _ TIME _ STATUS), Length (value of 2+ N (4)), dataField (data field, Length of 4, content mainly being frequencyTraceable, timeTraceable, etc. fields in PTP message header in ptpannouce message);
the sequence positions of the clock source attributes LEAPS _ SECOND and FREQ _ TIME _ STATUS in the event type message are not limited to the above sequence.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (24)
1. A method for synchronizing clock source attributes, comprising:
an optical line terminal OLT monitors a specified event;
when the appointed event is monitored, the OLT adjusts the clock source attribute received from the upper-level clock source equipment;
and sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU).
2. The method of claim 1, wherein the specified event comprises at least one of:
the attribute of the previous-stage clock source is changed; events of a specified type occur locally.
3. The method of claim 1,
prior to monitoring the specified event, the method further comprises: the OLT periodically sends a first type of message to the ONU, wherein the first type of message carries the attribute of the upper-level clock source;
sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU), comprising: and carrying the adjusted upper-level clock source attribute in a second-class message and sending the second-class message to the ONU, wherein the priority of the second-class message is higher than that of the first-class message.
4. A method according to claim 3, wherein the superior clock source attribute is received via a time synchronous interface, the time synchronous interface comprising at least one of: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface.
5. The method of claim 3, wherein the OLT periodically sends a first type of message to the ONUs, comprising:
constructing the first type of message according to a preset architecture, wherein the preset architecture is a type, length and value TLV architecture;
and periodically sending the constructed first type of messages to the ONU.
6. The method according to claim 2, wherein when the specified event is a change of the superior clock source attribute, the optical line termination OLT monitors the specified event by one of:
monitoring whether a first designated field in a time synchronization protocol declaration PTPANnounce message in the previous-level clock source attribute changes, wherein when the first designated field changes, the leap second attribute in the previous-level clock source attribute is determined to change;
monitoring whether a second specified field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the second specified field changes, the change of a frequency time tracking state attribute in the previous-stage clock source attribute is determined;
and monitoring whether a leaps seconds field in the TOD message at the current time in the previous-stage clock source attribute changes, wherein when the leaps seconds field changes, the leaps seconds attribute in the previous-stage clock source attribute is determined to change.
7. The method of claim 6,
the first designated field includes at least one of: current world standard time compensation currentutoffset, current valid world standard time compensation currentutoffset valid, 59 second jump leap59, 61 second jump leap 61; and/or the presence of a gas in the gas,
the second designated field includes at least one of: traceable time traceable, traceable frequency traceable, clock class clockclass, time source.
8. The method according to claim 6, wherein when the specified event is a change of the superior clock source attribute, the optical line termination OLT monitors the specified event by one of the following methods:
monitoring whether a trackable frequency in the locally occurring specified type of event is unlocked, wherein when the trackable frequency is unlocked, the specified event is determined to be monitored;
monitoring whether the trackable time in the locally occurring specified type of event is unlocked, wherein when the trackable time is unlocked, the specified event is determined to be monitored.
9. The method according to claim 8, wherein the OLT adjusts the clock source attribute received from the previous clock source device, including:
when the traceable frequency is unlocked, adjusting the clock grade clockclass in the clock source attribute to a preset value, and adjusting the traceable time traceable and the traceable frequency traceable in the clock source attribute to be false;
when the traceable time is out of lock, the clock level clockclass in the clock source attribute is lowered.
10. A method for synchronizing clock source attributes, comprising:
receiving the adjusted upper-level clock source attribute sent by an Optical Line Terminal (OLT);
and adjusting the current clock source attribute according to the adjusted previous clock source attribute.
11. The method according to claim 10, further comprising, before receiving the adjusted previous clock source attribute sent by the optical line termination OLT, the following steps:
receiving a first type of message periodically sent by the OLT, wherein the first type of message carries the attribute of the previous-stage clock source;
receiving the adjusted previous-stage clock source attribute sent by the OLT, including: receiving a second type of message sent by the OLT, wherein the second type of message carries the attribute of the previous-stage clock source after the OLT adjusts, and the priority of the second type of message is higher than that of the first type of message.
12. The method of claim 10, wherein adjusting the current clock source attribute according to the adjusted previous clock source attribute comprises one of:
when the trackable frequency in the current clock attribute is judged to be unlocked according to the adjusted previous clock attribute, adjusting the clock grade clockclass in the clock attribute to a preset value, and adjusting the trackable time timeTraceable and the trackable frequency frequenclearable in the clock attribute to be false;
and when the trackable time in the current clock source attribute is judged to be unlocked according to the adjusted previous clock source attribute, reducing the clock grade in the clock source attribute.
13. The method according to claim 10, further comprising, after adjusting the current clock source attribute according to the adjusted previous clock source attribute:
sending the adjusted clock source attribute to a base station, wherein the clock source attribute is sent through a time synchronization interface, and the time synchronization interface comprises at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
14. An apparatus for synchronizing clock source attributes, comprising:
the monitoring module is used for monitoring a specified event;
the adjusting module is used for adjusting the received clock source attribute from the previous-stage clock source equipment when the specified event is monitored;
and the first sending module is used for sending the adjusted upper-level clock source attribute to an Optical Network Unit (ONU).
15. The apparatus of claim 14, further comprising:
a second sending module, configured to send a first type of packet to the ONU periodically before the specified event is monitored, where the first type of packet carries the upper level clock source attribute, and the upper level clock source attribute is received through a time synchronization interface, where the time synchronization interface includes at least one of: a time synchronization protocol PTP time synchronization interface, a pulse per second 1PPS and a current time TOD time synchronization interface;
and the first sending module is configured to carry the adjusted upper level clock source attribute in a second type of packet and send the second type of packet to the ONU, where a priority of the second type of packet is higher than a priority of the first type of packet.
16. The apparatus of claim 15, wherein the second sending module comprises:
the message construction unit is used for constructing the first type of message according to a preset framework, wherein the preset framework is a type, length and value TLV framework;
and the sending unit is used for sending the first type of messages to the ONU according to the period.
17. The apparatus of claim 15, wherein the monitoring module is configured to monitor the specified event by one of:
the first monitoring unit is used for monitoring whether a first designated field in a time synchronization protocol statement PTPANnounce message in the previous-level clock source attribute changes, wherein when the first designated field changes, the leap second attribute in the previous-level clock source attribute is determined to change;
the second monitoring unit is used for monitoring whether a second specified field in a time synchronization protocol statement PTPANnounce message in the previous-stage clock source attribute changes, wherein when the second specified field changes, the frequency time tracking state attribute in the previous-stage clock source attribute is determined to change;
and the third monitoring unit is configured to, when the monitored specified event is that the previous-stage clock source attribute changes, determine whether the specified event changes according to whether a LeapSeconds in a TOD message at the current time in the previous-stage clock source attribute changes.
18. The apparatus of claim 15, wherein the monitoring module is configured to monitor the specified event by one of:
the fourth monitoring unit is used for monitoring whether the trackable frequency in the local occurrence of the specified type event is unlocked or not, wherein when the trackable frequency is unlocked, the specified event is determined to be monitored;
and the fifth monitoring unit is used for monitoring whether the trackable time in the local occurrence of the specified type event is unlocked or not, wherein when the trackable time is unlocked, the specified event is determined to be monitored.
19. The apparatus according to claim 18, wherein the adjusting module is configured to adjust the clock source attribute received from the previous clock source device when the specific event is monitored by one of the following manners, including:
a first adjusting unit, configured to adjust a clock class clockclass in the clock source attribute to a preset value and adjust a traceable time traceable and a traceable frequency traceable in the clock source attribute to false when the traceable frequency is unlocked;
and the second adjusting unit is used for reducing the clock level clockclass in the clock source attribute when the traceable time is unlocked.
20. An apparatus for synchronizing clock source attributes, comprising:
the first receiving module is used for receiving the adjusted upper-level clock source attribute sent by the optical line terminal OLT;
and the adjusting module is used for adjusting the current clock source attribute according to the adjusted previous clock source attribute.
21. The apparatus of claim 20, further comprising:
a second receiving module, configured to receive a first type of packet periodically sent by an optical line terminal OLT before receiving an adjusted previous-stage clock source attribute sent by the OLT, where the first type of packet carries the previous-stage clock source attribute;
the first receiving module is configured to receive a second type of packet sent by the OLT, where the second type of packet carries the attribute of the previous-stage clock source adjusted by the OLT, and a priority of the second type of packet is higher than a priority of the first type of packet.
22. The apparatus of claim 20, wherein the adjusting module is configured to adjust the current clock source attribute according to the adjusted previous clock source attribute by one of the following manners, including:
a first adjusting unit, configured to adjust a clock class clockclass in the clock source attribute to a preset value and adjust trackable time traceable and trackable frequency traceable in the clock source attribute to false when it is determined that the trackable frequency in the current clock attribute is unlocked according to the adjusted previous-stage clock source attribute;
and the second adjusting unit is used for reducing the clock grade in the clock source attribute when the trackable time in the current clock source attribute is judged to be unlocked according to the adjusted previous-stage clock source attribute.
23. The apparatus of claim 20, further comprising:
a sending module, configured to send the adjusted clock source attribute to a base station after adjusting the current clock source attribute according to the adjusted previous-stage clock source attribute, where the clock source attribute is sent through a time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization PTP interface, a pulse per second 1PPS interface and a TOD interface at the current moment.
24. A system for synchronizing clock source attributes, the system comprising: an optical line terminal OLT, an optical network unit ONU and a base station, wherein,
the OLT establishes a communication connection with the ONU, and the ONU establishes a communication connection with the base station, where the OLT is a synchronization device of the clock source attribute according to any one of claims 14 to 19; the ONU is the synchronization device for clock source attributes described in any of claims 20 to 23.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410692729.XA CN105703893A (en) | 2014-11-25 | 2014-11-25 | Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system |
PCT/CN2015/074037 WO2016082369A1 (en) | 2014-11-25 | 2015-03-11 | Method, apparatus and system for synchronizing clock source attributes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410692729.XA CN105703893A (en) | 2014-11-25 | 2014-11-25 | Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105703893A true CN105703893A (en) | 2016-06-22 |
Family
ID=56073448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410692729.XA Pending CN105703893A (en) | 2014-11-25 | 2014-11-25 | Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105703893A (en) |
WO (1) | WO2016082369A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018219276A1 (en) * | 2017-05-31 | 2018-12-06 | 中国移动通信有限公司研究院 | Method and device for carrying out synchronized alarming, and computer storage medium |
WO2021238377A1 (en) * | 2020-05-28 | 2021-12-02 | 华为技术有限公司 | Method and apparatus for clock source management |
CN115278856A (en) * | 2022-07-25 | 2022-11-01 | 中国电信股份有限公司 | Time synchronization method, time synchronization device, medium, and electronic apparatus |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112653533B (en) * | 2020-12-17 | 2022-09-20 | 中国航空工业集团公司西安航空计算技术研究所 | Intelligent time service management method for complex system |
CN115694698B (en) * | 2021-07-28 | 2024-11-29 | 中国电信股份有限公司 | Extended small base station system and its clock synchronization system and clock synchronization method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120758A1 (en) * | 2001-02-23 | 2002-08-29 | Glory Telecommunications C0., Ltd. | IP packetized frame format in a passive optical network |
CN101895361A (en) * | 2010-07-12 | 2010-11-24 | 中兴通讯股份有限公司 | Method, system and clock board for transmitting synchronous status message |
CN102237940A (en) * | 2010-05-04 | 2011-11-09 | 华为技术有限公司 | Method, system and device for transferring sync-status message (SSM) in passive optical network |
CN104052589A (en) * | 2013-03-15 | 2014-09-17 | 美国博通公司 | Fault Tolerant Clock Network |
CN106160909A (en) * | 2015-04-24 | 2016-11-23 | 中兴通讯股份有限公司 | The processing method and processing device of leap second saltus step |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841736B (en) * | 2009-03-20 | 2014-03-12 | 中兴通讯股份有限公司 | Method and system for transferring time in passive optical network (PON) |
CN102130764A (en) * | 2010-12-01 | 2011-07-20 | 华为技术有限公司 | Method, system and device for sending time synchronization information |
-
2014
- 2014-11-25 CN CN201410692729.XA patent/CN105703893A/en active Pending
-
2015
- 2015-03-11 WO PCT/CN2015/074037 patent/WO2016082369A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120758A1 (en) * | 2001-02-23 | 2002-08-29 | Glory Telecommunications C0., Ltd. | IP packetized frame format in a passive optical network |
CN102237940A (en) * | 2010-05-04 | 2011-11-09 | 华为技术有限公司 | Method, system and device for transferring sync-status message (SSM) in passive optical network |
CN101895361A (en) * | 2010-07-12 | 2010-11-24 | 中兴通讯股份有限公司 | Method, system and clock board for transmitting synchronous status message |
CN104052589A (en) * | 2013-03-15 | 2014-09-17 | 美国博通公司 | Fault Tolerant Clock Network |
CN106160909A (en) * | 2015-04-24 | 2016-11-23 | 中兴通讯股份有限公司 | The processing method and processing device of leap second saltus step |
Non-Patent Citations (1)
Title |
---|
胡昌军等: "《闰秒及其在通信网络中的应用要求》", 《电信网技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018219276A1 (en) * | 2017-05-31 | 2018-12-06 | 中国移动通信有限公司研究院 | Method and device for carrying out synchronized alarming, and computer storage medium |
WO2021238377A1 (en) * | 2020-05-28 | 2021-12-02 | 华为技术有限公司 | Method and apparatus for clock source management |
CN115278856A (en) * | 2022-07-25 | 2022-11-01 | 中国电信股份有限公司 | Time synchronization method, time synchronization device, medium, and electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
WO2016082369A1 (en) | 2016-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5314768B2 (en) | Passive optical network system time synchronization method and synchronization system thereof | |
US9871648B2 (en) | Distributing clock synchronization information within an optical communications network | |
US8831435B2 (en) | System and method for dual wavelength communications of a clock signal | |
CN101383692B (en) | Communication system and its device | |
ES2588360T3 (en) | Procedure and apparatus for transmitting clock signal between networks | |
US20150295669A1 (en) | Managing time offset and frequency drift in asynchronous docsis remote phy network environments | |
WO2017012486A1 (en) | Otn network element and otn clock and time synchronization method and system | |
CN103259640B (en) | A kind of method and apparatus of lock in time | |
US8842994B2 (en) | Distributing clock synchronization information within an optical communications network | |
CN102938676A (en) | Method, device and system for processing time synchronization | |
CN105703893A (en) | Clock source attribute synchronization method, clock source attribute synchronization device and clock source attribute synchronization system | |
CN101247169A (en) | Method, system and equipment for implementing time synchronization in communication network | |
WO2018219276A1 (en) | Method and device for carrying out synchronized alarming, and computer storage medium | |
CN107959537B (en) | State synchronization method and device | |
Garner et al. | Synchronization of audio/video bridging networks using IEEE 802.1 AS | |
KR101492747B1 (en) | Method for time distribution in synchronous ethernet and sonet/sdh domains | |
US8649400B2 (en) | Communication clock transport method and device | |
CN105323028B (en) | A kind of method for synchronizing time, equipment and system | |
KR20160024782A (en) | network synchronization apparatus and method on passive optical access network | |
Chen et al. | Clock synchronization in T-MPLS network via PTP (IEEE 1588 V2) |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160622 |
|
WD01 | Invention patent application deemed withdrawn after publication |