WO2016082369A1 - 时钟源属性的同步方法、装置及系统 - Google Patents
时钟源属性的同步方法、装置及系统 Download PDFInfo
- Publication number
- WO2016082369A1 WO2016082369A1 PCT/CN2015/074037 CN2015074037W WO2016082369A1 WO 2016082369 A1 WO2016082369 A1 WO 2016082369A1 CN 2015074037 W CN2015074037 W CN 2015074037W WO 2016082369 A1 WO2016082369 A1 WO 2016082369A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock source
- source attribute
- attribute
- level
- type
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Definitions
- the present invention relates to the field of communications, and in particular, to a method, device, and system for synchronizing clock source attributes.
- a passive optical network is mainly composed of an OLT (Optical Line Terminal), an ONU (Optical Network Unit), and an Optical Distribution Network (ODN).
- OLT Optical Line Terminal
- ONU Optical Network Unit
- ODN Optical Distribution Network
- FIG. 1 the OLT is connected to the ODN, and multiple ONUs are connected to the ODN.
- the downlink data between the OLT and the ONU is broadcasted, and the uplink data is used in a time division multiplexing manner.
- the uplink network consists of an IP network and a Synchronous Optical Network (SONET) network, and the ONU can connect to the base station.
- SONET Synchronous Optical Network
- a passive optical network is mainly composed of an OLT (Optical Line Terminal), an ONU (Optical Network Unit), and an Optical Distribution Network (ODN).
- OLT Optical Line Terminal
- ODN Optical Distribution Network
- FIG. 1 the OLT is connected to the ODN, and multiple ONUs are connected to the ODN.
- the downlink data between the OLT and the ONU is broadcasted, and the uplink data is used in a time division multiplexing manner.
- the uplink network consists of an IP network and a Synchronous Optical Network (SONET) network, and the ONU can connect to the base station.
- SONET Synchronous Optical Network
- the base station requires time synchronization.
- the base station should preferentially select the satellite receiver for airtime, but for the base station that cannot achieve airtime, the ground timing method can be adopted, and the ground timing requires at least one clock source device GrandMaster.
- the time synchronization information is transmitted to the base station step by step through the core network.
- the high-precision time synchronization interface mainly includes a PTP time synchronization interface (Precision Time Protocol) and a 1PPS (second pulse, 1Pulse per Second) + TOD (current time, time of day) time synchronization interface.
- PTP time synchronization interface Precision Time Protocol
- 1PPS second pulse, 1Pulse per Second
- TOD current time, time of day
- IEEE1588 describes the principle of implementing time synchronization, and has established a PTP protocol to implement time synchronization by transmitting timestamps through PTP messages. IEEE 1588 supports three clock models: normal clock (OC), boundary clock (BC), and transparent clock (TC). In the prior art, a boundary clock model is usually used to implement time synchronization.
- OC normal clock
- BC boundary clock
- TC transparent clock
- 1PPS+TOD time synchronization interface 1PPS second pulse, using rising edge as the on-time edge, the rise time is less than 50ns;
- 1PPS+TOD information transmission adopts 422 level mode, when TOD time information message includes GPS Time information such as GPS week, GPS Second time of Week, Leap Seconds (GPS-UTC, offset between GPS and UTC).
- GPS Time information such as GPS week, GPS Second time of Week, Leap Seconds (GPS-UTC, offset between GPS and UTC).
- the OLT can be used as the 1588 slave clock slave to synchronize time with the upper-level clock source device.
- the OLT will use the PON time synchronization protocol (ITU-T G.984 or IEEE802.1AS) to obtain the precise time through the fiber line.
- the ONU is used as the 1588 master clock master to provide time synchronization information to the next-level device.
- the OLT and the ONU are equivalent to serve as a boundary clock.
- the OLT can also implement time synchronization with the upper-level clock source device by using the 1PPS+TOD time synchronization interface.
- the slave clock synchronizes with the upper-level clock source device to implement time synchronization
- the ONU uses ITU-T G.984 or IEEE802.1AS to implement time synchronization with the OLT.
- the ONU is the primary clock master and then performs PTP packet exchange with the next-level clock source device to implement time synchronization.
- the OLT obtains some clocks from the PTP packet of the upper-level clock source synchronization device.
- the source attribute was not passed to the ONU.
- all the clock source parameters required by each ONU can be configured through the ONU's network management or command line. However, some clock source parameters are dynamically changed (for example, timesource, grandmasterClockQuality, grandmasterIdentity, grandmasterpriority1, grandmasterpriority2, etc.). The user maintains a lot of work and is prone to errors.
- the OLT when the OLT adopts the 1PPS+TOD time synchronization interface, since the time source message of the 1PPS+TOD does not have all the clock source attributes required for the PTP message, the OLT cannot obtain the complete clock source attribute, and thus cannot Pass to the ONU. In this case, you can also configure all the clock source attributes required by the ONU through the NMS or the command line.
- the disadvantages are as described above.
- the user also needs to know whether the OLT is currently using the PTP time synchronization interface or the 1PPS+TOD time synchronization interface. If the OLT has the function of dynamically selecting the time synchronization interface (dynamically selecting the clock source by algorithm), the maintenance work of the user will become frequent.
- the embodiment of the invention provides a method, a device and a system for synchronizing clock source attributes, so as to at least solve the problem that the maintenance work efficiency is reduced due to excessive clock source attribute parameters in the synchronization process of the clock source attribute in the prior art.
- a method for synchronizing clock source attributes including:
- the optical line terminal OLT monitors the specified event; when the specified event is detected, the OLT adjusts the received clock source attribute from the upper-level clock source device; and sends the adjusted upper-level clock source attribute to the optical network unit ONU. .
- the specified event includes at least one of the following:
- the upper-level clock source attribute changes; the specified type of event occurs locally.
- the method further includes: the OLT periodically sends the first type of packet to the ONU, where the first type of packet carries the attribute of the upper-level clock source; and the attribute of the adjusted upper-level clock source is sent to the light.
- the network unit ONU includes: carrying the adjusted upper-level clock source attribute in the second type of packet and sending the message to the ONU, where the priority of the second type of packet is higher than the priority of the first type of packet.
- the upper-level clock source attribute is received through the time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a second pulse 1PPS, and a current time TOD time synchronization interface.
- the optical line terminal OLT monitors the specified event by monitoring the first specified field in the PTP Announce message in the time synchronization protocol of the upper-level clock source attribute.
- the change occurs, wherein when the first specified field changes, it is determined that the leap second attribute in the upper-level clock source attribute changes; monitoring the second designation in the PTP Announce message of the time synchronization protocol in the upper-level clock source attribute Whether the field changes, wherein when the second specified field changes, it is determined that the frequency time tracking state attribute in the upper-level clock source attribute changes; monitoring the skip time in the current time TOD message in the upper-level clock source attribute Whether the Leap Seconds field has changed, and when the Leap Seconds field changes, it is determined that the leap second property in the upper clock source attribute changes.
- the first specified field includes at least one of: current world standard time compensation current Utc Offset, current valid world standard time compensation current Utc Offset Valid, 59 second jump leap 59, 61 second jump leak 61; And/or, the second specified field includes at least one of the following: a traceable time traceable, a traceable frequency frequency traceable, a clock level clockclass, and a time source.
- the optical line terminal OLT monitors the specified event by one of the following methods, including: monitoring whether the trackable frequency in the specified type of event occurs locally is lost, wherein the traceable frequency is When the lock is lost, it is determined that the specified event is detected; whether the traceable time in the specified type of event occurs locally is lost, and when the traceable time is lost, it is determined that the specified event is detected.
- the OLT adjusts the received clock source attribute from the upper-level clock source device, including: when the traceable frequency is lost, the clock class clock class in the clock source attribute is adjusted to a preset value, and the clock source attribute is The traceable time traceable and traceable frequency frequency Traceable are adjusted to false; when the traceable time is out of lock, the clock class in the clock source attribute is reduced.
- a method for synchronizing clock source attributes including:
- the method further includes:
- the second type of packet carries the attribute of the upper-level clock source adjusted by the OLT, and the priority of the second type of packet is higher than the priority of the first type of packet.
- Adjusting the current clock source attribute according to the adjusted upper-level clock source attribute including: when determining the trackable frequency loss in the current clock attribute according to the adjusted upper-level clock source attribute, the clock is The clock class clock class in the source attribute is adjusted to a preset value, and the traceable time traceable and the traceable frequency frequency Traceable in the clock source attribute are adjusted to false; when the current clock is determined according to the adjusted upper-level clock source attribute When the traceable time in the source attribute is out of lock, reduce the clock level in the clock source attribute.
- the method further includes: sending the adjusted clock source attribute to the base station, where the clock source attribute is sent by using the time synchronization interface, where the time synchronization interface includes at least the following One: time synchronization PTP interface and second pulse 1PPS and current time TOD interface.
- a synchronization device for clock source attributes including:
- the monitoring module is configured to monitor the specified event; the adjusting module is configured to adjust the received clock source attribute from the upper-level clock source device when the specified event is detected; the first sending module is set to be adjusted The upper-level clock source attribute is sent to the optical network unit ONU.
- the device also includes:
- the second sending module is configured to periodically send the first type of packet to the ONU before the specified event is detected.
- the first type of packet carries the upper-level clock source attribute, wherein the upper-level clock source attribute passes the time synchronization.
- Interface receiving, the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a second pulse 1PPS, and a current time TOD time synchronization interface; the first sending module is configured to carry the adjusted upper-level clock source attribute
- the second type of packet is sent to the ONU.
- the priority of the second type of packet is higher than the priority of the first type of packet.
- the second sending module includes:
- the packet construction unit is configured to construct a first type of packet according to a preset architecture, and the preset architecture is a type, length, and value TLV architecture; and the sending unit is configured to send the first type of packet to the ONU according to a period.
- the monitoring module is configured to monitor specified events in one of the following ways, including:
- the first monitoring unit is configured to monitor whether a first specified field in the PTP Announce message is changed in the time synchronization protocol of the upper-level clock source attribute, where the first-level clock source is determined when the first specified field changes The leap second attribute in the attribute changes; the second monitoring unit is configured to monitor whether the second specified field in the PTP Announce message is changed in the time synchronization protocol declaration in the upper clock source attribute, wherein the second specified field occurs When the change occurs, it is determined that the frequency time tracking state attribute in the upper-level clock source attribute changes; the third monitoring unit is set to monitor the specified event as the upper-level clock source attribute changes, according to the upper-level clock source attribute. Whether the Leap Seconds in the TOD message changes at the current time and determines whether the specified event has changed.
- the monitoring module is configured to monitor specified events in one of the following ways, including:
- a fourth monitoring unit configured to monitor whether a traceable frequency in a specified type of event occurs locally is lost, wherein, when the trackable frequency is out of lock, it is determined that the specified event is monitored; and the fifth monitoring unit is configured to monitor the local occurrence of the specified type Whether the traceable time in the event is out of lock, wherein when the traceable time is lost, it is determined that the specified event is monitored.
- the adjustment module is configured to adjust the received clock source attribute from the upper-level clock source device when the specified event is detected, including:
- the first adjusting unit is configured to adjust the clock class clock class in the clock source attribute to a preset value when the trackable frequency is lost, and adjust the traceable time time Traceable and the traceable frequency frequency Traceable in the clock source attribute False; the second adjustment unit is set to reduce the clock class clock class in the clock source attribute when the traceable time is out of lock.
- a synchronization device for clock source attributes including:
- the first receiving module is configured to receive the adjusted upper-level clock source attribute sent by the optical line terminal OLT; and the adjusting module is configured to adjust the current clock source attribute according to the adjusted upper-level clock source attribute.
- the device further includes: a second receiving module, configured to receive the first type of packet periodically sent by the OLT before receiving the adjusted upper-level clock source attribute sent by the optical line terminal OLT, where the first type of packet carries
- the first receiving module is configured to receive the second type of packet sent by the OLT, and the second type of packet carries the attribute of the upper-level clock source adjusted by the OLT, wherein the priority of the second type of packet Higher than the priority of the first type of message.
- the adjusting module is configured to adjust the current clock source attribute according to the adjusted upper-level clock source attribute, including: the first adjusting unit, configured to be based on the adjusted upper-level clock source When the attribute determines that the traceable frequency in the current clock attribute is out of lock, the clock class clock class in the clock source attribute is adjusted to a preset value, and the traceable time traceable and the traceable frequency frequency Traceable in the clock source attribute are adjusted to
- the second adjustment unit is configured to reduce the clock level in the clock source attribute when determining the trackable time loss in the current clock source attribute according to the adjusted previous clock source attribute.
- the device further includes: a sending module, configured to: after adjusting the current clock source attribute according to the adjusted upper-level clock source attribute, send the adjusted clock source attribute to the base station, where the clock is sent through the time synchronization interface.
- the source attribute, the time synchronization interface includes at least one of the following: a time synchronization PTP interface and a second pulse 1PPS and a current time TOD interface.
- a synchronization system for a clock source attribute comprising: an optical line terminal OLT, an optical network unit ONU, and a base station, where
- the OLT establishes a communication connection with the ONU, and the ONU establishes a communication connection with the base station, wherein the OLT is a synchronization device of the above clock source attribute; and the ONU is a synchronization device of the above clock source attribute.
- the optical line terminal OLT is used to monitor the specified event; when the specified event is detected, the OLT adjusts the received clock source attribute from the upper-level clock source device; the adjusted upper-level clock source is adjusted.
- the attribute is sent to the optical network unit ONU.
- FIG. 1 is a schematic diagram of a synchronization system of clock source attributes proposed by the related art
- FIG. 2 is a schematic diagram of synchronous communication between an OLT and an ONU clock source attribute according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for synchronizing clock source attributes according to an embodiment of the present invention
- FIG. 4 is a flowchart of another method for synchronizing clock source attributes according to an embodiment of the present invention.
- FIG. 5 is a structural block diagram of a synchronization device for clock source attributes according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a synchronization device for clock source attributes in accordance with a preferred embodiment of the present invention.
- FIG. 7 is a structural block diagram of a synchronization device for clock source attributes in accordance with a preferred embodiment of the present invention.
- FIG. 8 is a structural block diagram of a synchronization device for clock source attributes in accordance with a preferred embodiment of the present invention.
- FIG. 9 is a structural block diagram of a synchronization device for clock source attributes in accordance with a preferred embodiment of the present invention.
- FIG. 10 is a structural block diagram of another apparatus for synchronizing clock source attributes according to an embodiment of the present invention.
- FIG. 11 is a block diagram showing the structure of a synchronization device for another clock source attribute according to a preferred embodiment of the present invention.
- FIG. 12 is a structural block diagram of another synchronization device for clock source attributes in accordance with a preferred embodiment of the present invention.
- FIG. 13 is a structural block diagram of another apparatus for synchronizing clock source attributes according to a preferred embodiment of the present invention.
- FIG. 14 is a schematic structural diagram of an information class message of a clock source attribute according to an embodiment of the present invention.
- FIG. 15 is a schematic structural diagram of an event class message of a clock source attribute according to an embodiment of the present invention.
- 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. Including the following steps:
- Step S302 the optical line terminal OLT monitors the specified event
- Step S304 when the specified event is detected, the OLT adjusts the received clock source attribute from the upper-level clock source device;
- Step S306 the adjusted upper-level clock source attribute is sent to the optical network unit ONU.
- the optical line terminal OLT is used to monitor the specified event; when the specified event is detected, the OLT adjusts the received clock source attribute from the upper-level clock source device; and sends the adjusted upper-level clock source attribute to the attribute.
- the optical network unit ONU To the optical network unit ONU.
- the problem that the maintenance efficiency of the clock source attribute is reduced due to too many clock source attribute parameters during the synchronization process is solved, thereby achieving the effect of synchronizing the clock source attributes.
- the specified event includes at least one of the following:
- the upper-level clock source attribute changes; the specified type of event occurs locally.
- the method further includes:
- Step S298 the OLT periodically sends a first type of packet to the ONU, where the first type of packet carries the upper-level clock source attribute;
- the upper-level clock source attribute is received through the time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a second pulse 1PPS, and a current time TOD time synchronization interface.
- the adjusted upper-level clock source attribute is sent to the ONU of the optical network unit, where the attribute of the adjusted upper-level clock source is carried in the second type of message and sent to the ONU, where The priority of the second type of packet is higher than the priority of the first type of packet.
- the second type of packet is called an event class message.
- the upper-level clock source attribute is received through a time synchronization interface
- the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a second pulse 1PPS, and a current time TOD time synchronization interface.
- step S298 the OLT periodically sends the first type of packet to the ONU, including:
- the first type of packet is constructed according to the preset architecture, and the preset architecture is a type, length, and value TLV architecture;
- the first type of packet is sent to the ONU through the time synchronization interface according to the period.
- the OLT When the OLT periodically sends the first type of packet to the ONU, the OLT periodically sends the first type of packet including the clock source attribute by using the private protocol packet.
- the private protocol packet may be an extension of the existing protocol, and may be an Ethernet protocol, a G.984OMCI protocol, or an extended OAM protocol.
- the interval for periodic transmission is usually about 5 seconds, and the interval can be set;
- a periodically sent packet has a first priority and is called an information packet.
- the method of the present invention is based on the method of synchronizing the clock source attribute provided by the embodiment, and the interval of the periodic transmission and the private protocol message are only used as an example, and are not limited.
- the clock source attribute includes the main information of the PTP packet header and the PTP Announce packet.
- the clock source attributes can be classified into a leap second attribute (LEAPS_SECOND), a frequency and time tracking status attribute (FREQ_TIME_STATUS), and a time domain (DOMAIN) attribute.
- the superior clock (PARENT_DATA) attribute is included in the main information of the PTP packet header and the PTP Announce packet.
- the clock source attribute is derived from the PTP reference source currently selected by the OLT, and the TLV format is generated according to the information in the PTP header and the PTP Announce message in the currently selected PTP reference source.
- the LeapSeconds field in the TOD time information message is converted into the currentUtcOffset field in the LEAPS_SECOND attribute, and the second pulse status field in the TOD time information message is converted into the clockClass in the PARENT_DATA clock source attribute.
- Fields, except for the currentUtcOffset field and the clockClass field, other fields in the above clock source attributes are constructed by default values of the OLT clock source;
- the OLT's clock source default attribute is used.
- the packet is encapsulated in the TLV mode, so that the clock source attributes of both the PTP packet and the TOD information can be sent to the ONU in the same form, which improves the compatibility of the information architecture itself and improves the packet parsing efficiency.
- the optical line terminal OLT monitors the specified event by using one of the following manners, including:
- the time synchronization protocol in the upper-level clock source attribute is used to determine whether the first specified field in the PTP Announce message changes.
- the ⁇ in the upper-level clock source attribute is determined.
- the second attribute changes;
- the time synchronization protocol in the upper-level clock source attribute is used to determine whether the second specified field in the PTP Announce message changes.
- the frequency in the upper-level clock source attribute is determined.
- the time tracking status attribute changes;
- the third method is to monitor whether the Leap Seconds field in the TOD packet of the current time clock source attribute changes, and when the Leap Seconds field changes, determine that the leap second attribute in the upper clock source attribute occurs. Variety;
- the first specified field includes at least one of the following: a current world standard time compensation current Utc Offset, a current effective world standard time compensation current Utc Offset Valid, a 59 second jump leap 59, a 61 second jump leap 61; and/or,
- the second specified field includes at least one of the following: a traceable time traceable, a traceable frequency frequency traceable, a clock level clockclass, and a time source.
- Manner 4 monitoring whether the trackable frequency in the specified type of event occurs locally is unlocked, wherein when the trackable frequency is lost, it is determined that the specified event is detected;
- the OLT adjusts the received clock source attribute from the upper-level clock source device, including:
- the clock class clock class in the clock source attribute is adjusted to a preset value, and the traceable time traceable and the traceable frequency frequency Traceable in the clock source attribute are adjusted to false;
- the OLT detects the currentUtcOffset, currentUtcOffsetValid, leap59, and leap61 fields in the PTP Announce message in the currently selected PTP reference source.
- the OLT attribute is considered to have changed. ;
- the OLT When the OLT tracks the PTP time synchronization interface input reference source, the OLT detects that the timeTraceable, frequencyTraceable, clockclass, and timesource of the PTP Announce message in the currently selected PTP reference source are changed, that is, the frequency time tracking state attribute changes.
- the OLT When the OLT tracks the reference source of the 1PPS+TOD time synchronization interface, the OLT detects the Leap Seconds field in the TOD time information message, and when there is a change in the field, the leap second attribute is considered to have changed;
- the clockclass is adjusted to the default value of the clockclass, the frequencyTraceable and the timeTraceable are both adjusted to false, and the specified type event occurs locally;
- the local occurrence of the specified type of event also includes, but is not limited to, an ONU online event.
- 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. Including the following steps:
- Step S402 receiving an adjusted upper-level clock source attribute sent by the optical line terminal OLT;
- Step S404 adjusting the current clock source attribute according to the adjusted upper-level clock source attribute.
- the adjusted upper-level clock source attribute sent by the optical line terminal OLT is received, and the current clock source attribute is adjusted according to the adjusted upper-level clock source attribute.
- the problem that the maintenance efficiency of the clock source attribute is reduced due to too many clock source attribute parameters during the synchronization process is solved, thereby achieving the effect of synchronizing the clock source attributes.
- the method before receiving the adjusted upper-level clock source attribute sent by the optical line terminal OLT, the method further includes:
- the adjusted upper-level clock source attribute sent by the optical line terminal OLT is specifically: receiving the second type of packet sent by the OLT, and the second type of packet carrying the adjusted upper-level clock of the OLT Source attribute, where the priority of the second type of packet is higher than the priority of the first type of packet.
- the current clock source attribute is adjusted according to the adjusted upper-level clock source attribute, including:
- the clock class clock class in the clock source attribute is adjusted to a preset value, and the clock source attribute is Traceable time traceable and traceable frequency frequency Traceable adjusted to false;
- the clock level in the clock source attribute is lowered.
- the optical line unit ONU parses the received clock source attribute message, detects its own important event, and then performs necessary adjustment on the clock source attribute, and finally outputs the clock source attribute information through the time synchronization interface, where:
- the ONU When the ONU detects that its own frequency tracking is out of lock, adjust the clock class clock class to the default value of the clock class, adjust the traceable frequency frequency Traceable and the traceable time time Traceable to false, and consider that the specified type of the OLT occurs locally. The event occurred;
- the default value of the clock class can be the standard value in the IEEE1588 protocol.
- the ONU When the ONU detects that its own time tracking is out of lock, only the clock class clockclass is degraded, the other clock source attributes remain unchanged, and it is considered that the specified type of event occurs locally on the OLT.
- the method further includes:
- Step S406 Send the adjusted clock source attribute to the base station, where the clock source attribute is sent through the time synchronization interface, and the time synchronization interface includes at least one of the following: a time synchronization PTP interface, a second pulse 1PPS, and a current time TOD interface.
- the ONU outputs the adjusted clock source attribute through the PTP time synchronization interface or the 1PPS+TOD time synchronization interface.
- a synchronization device for the clock source attribute is also provided.
- the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 5 is a structural block diagram of a synchronization device for a clock source attribute according to an embodiment of the present invention. As shown in FIG. 5, the device is applied to an optical line terminal OLT.
- the device includes: a monitoring module 52, an adjustment module 54 and a first sending module 56. ,among them,
- Monitoring module 52 configured to monitor a specified event
- the adjusting module 54 is connected to the monitoring module 52, and is configured to adjust the received clock source attribute from the upper-level clock source device when the specified event is detected;
- the first sending module 56 is connected to the adjusting module 54 and configured to send the adjusted upper-level clock source attribute to the optical network unit ONU.
- FIG. 6 is a structural block diagram of a synchronization device for a clock source attribute according to a preferred embodiment of the present invention.
- the synchronization device for the clock source attribute further includes: a second sending module 51, wherein
- the second sending module 51 is configured to periodically send a first type of packet to the ONU before the specified event is detected, where the first type of packet carries a previous clock source attribute, wherein the upper level clock source attribute passes
- the time synchronization interface receives, and the time synchronization interface includes at least one of the following: a time synchronization protocol PTP time synchronization interface, a second pulse 1PPS, and a current time TOD time synchronization interface;
- the first sending module 56 is configured to carry the adjusted upper-level clock source attribute in the second type of packet and send the message to the ONU, where the priority of the second type of packet is higher than the priority of the first type of packet. .
- FIG. 7 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention.
- the second sending module 51 includes: a message construction unit 511 and a transmission unit 512, where
- the message construction unit 511 is configured to construct a first type of packet according to a preset architecture, and the preset architecture is a type, length, and value TLV architecture;
- the sending unit 512 is connected to the message construction unit 511, and is configured to send the first type of message to the ONU according to the period.
- FIG. 8 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention.
- the monitoring module 52 is configured to monitor a specified event by one of the following methods, including:
- the first monitoring unit 521 is configured to monitor whether a first specified field in the PTP Announce message is changed in the time synchronization protocol of the upper-level clock source attribute, where the first-level clock is determined when the first specified field changes.
- the leap second property in the source property changes;
- the second monitoring unit 522 is configured to monitor whether a second specified field in the PTP Announce message is changed in the time synchronization protocol of the upper-level clock source attribute, where the second-level clock is determined when the second specified field changes.
- the frequency time tracking status attribute in the source attribute changes;
- the third monitoring unit 523 is configured to determine whether the specified event is changed when the last clock source attribute changes, according to whether the Leap Seconds in the TOD message at the current time in the previous clock source attribute changes, and the specified event is determined. Whether it has changed;
- the fourth monitoring unit 524 is configured to monitor whether the trackable frequency in the specified type of event occurs locally is unlocked, wherein when the trackable frequency is lost, it is determined that the specified event is detected;
- the fifth monitoring unit 525 is configured to monitor whether the traceable time in the specified type of event occurs locally is unlocked, wherein when the traceable time is lost, it is determined that the specified event is detected.
- FIG. 9 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention.
- the adjustment module 54 is configured to monitor the specified event by one of the following methods.
- the received clock source attributes from the upper-level clock source device are adjusted, including:
- the first adjusting unit 541 is configured to adjust the clock level clock class in the clock source attribute to a preset value when the trackable frequency is lost, and to track the time traceable and the traceable frequency in the clock source attribute. Adjusted to false;
- the second adjusting unit 542 is configured to reduce the clock level clock class in the clock source attribute when the trackable time is out of lock.
- the above modules can be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA) located at the OLT.
- CPU central processing unit
- MPU microprocessor
- DSP digital signal processor
- FPGA field programmable gate array
- FIG. 10 is a structural block diagram of a synchronization device for a clock source attribute according to an embodiment of the present invention. As shown in FIG. 10, the device is applied to an optical network unit ONU, where the device includes: a first receiving module 62 and an adjustment module 64, where
- the first receiving module 62 is configured to receive the adjusted upper-level clock source attribute sent by the optical line terminal OLT;
- the adjustment module 64 is configured to adjust the current clock source attribute according to the adjusted upper-level clock source attribute.
- FIG. 11 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention, the device further comprising:
- the second receiving module 66 is configured to receive, according to the adjusted upper-level clock source attribute sent by the optical line terminal OLT, the first type of packet periodically sent by the OLT, where the first type of packet carries the upper-level clock.
- Source attribute sent by the optical line terminal OLT, the first type of packet periodically sent by the OLT, where the first type of packet carries the upper-level clock.
- the first receiving module 62 is configured to receive the second type of packet sent by the OLT, and the second type of packet carries the attribute of the upper-level clock source adjusted by the OLT, where the priority of the second type of packet is higher than that of the first type of report. Priority of the text.
- FIG. 12 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention.
- the adjustment module 64 is configured to adjust the previous clock according to one of the following manners.
- the source attribute adjusts the current clock source properties, including:
- the first adjusting unit 641 is configured to: when determining the trackable frequency loss in the current clock attribute according to the adjusted upper-level clock source attribute, adjusting the clock level clock class in the clock source attribute to a preset value, and The traceable time traceable and the traceable frequency frequency Traceable in the clock source attribute are adjusted to false;
- the second adjusting unit 642 is configured to reduce the clock level in the clock source attribute when determining the trackable time loss in the current clock source attribute according to the adjusted upper-level clock source attribute.
- FIG. 13 is a structural block diagram of a synchronization device for clock source attributes according to a preferred embodiment of the present invention, the device further includes:
- the sending module 68 is configured to send the adjusted clock source attribute to the base station after adjusting the current clock source attribute according to the adjusted upper-level clock source attribute, where the clock source attribute is sent through the time synchronization interface, and the time synchronization interface includes the following At least one of: time synchronization PTP interface and second pulse 1PPS and current time TOD interface.
- the above modules can be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), a field programmable gate array (FPGA) or a physical layer PHY chip located in the ONU.
- CPU central processing unit
- MPU microprocessor
- DSP digital signal processor
- FPGA field programmable gate array
- the embodiment of the present invention provides a method and a device for synchronizing clock source attributes, as shown in FIG. 3 to FIG. 13 , and further provides a system for synchronizing clock source attributes, such that passive light is provided.
- the clock source attributes of the OLT and the ONU are synchronized in the network, so that the ONU does not need to know the difference between the OLT's different input time synchronization interfaces (such as the PTP interface and the 1PPS+TOD interface), so that the ONU can know and transmit the clock source attribute of the upper-level clock as soon as possible.
- the embodiment of the present invention provides a clock source attribute synchronization system, where the system includes: an OLT, an ONU, and a base station;
- the OLT is configured to obtain the clock source attribute information of the upper-level clock through the PTP time synchronization interface or the 1PPS+TOD interface, construct the clock source attribute of the TLV format, and periodically send the common priority including the clock source attribute by using the private protocol packet. Packets; when it is detected that the attributes of the upper-level clock source are changed or the detection of important events occurs, the clock source attributes are adjusted as necessary, and the high-priority packets containing the attributes of the clock source are immediately sent;
- the ONU is configured to receive the clock source attribute packet sent by the OLT, parse the received clock source attribute file, detect its own important event, degrade the clock source attribute or restore the default value, and then output or pass the PTP time synchronization interface.
- 1PPS+TOD interface time synchronization interface output clock source attribute information;
- the base station is configured to receive the PTP time synchronization interface output or the clock source attribute information output by the 1PPS+TOD interface time synchronization interface.
- the embodiment of the invention solves the problem of how the clock source attribute closely related to the time synchronization is transmitted in addition to the time synchronization in the time synchronization system applied in the passive optical network, and solves the problem if the attribute of the upper-level clock source changes as soon as possible.
- the problem of inconsistent clock source attribute information obtained by different upper-level time synchronization interfaces is solved for the problem of the next-level device such as the ONU, which effectively reduces the workload of the user to maintain the clock source information and avoids human maintenance errors.
- the time synchronization system applied in the passive optical network mainly includes, as shown in FIG. 2: an OLT, an ONU, and a base station.
- the OLT can be used as the slave clock slave to perform PTP packet exchange with the upper-level clock source device.
- the timestamp is used to synchronize the time between the OLT and the upper-level clock source device, and the adjusted local time is sent to the ONU to enable the ONU.
- the time synchronization with the OLT is implemented.
- the ONU interacts with the base station to perform PTP packet exchange, and the base station implements time synchronization with the ONU by transmitting a timestamp.
- the OLT obtains the clock source attribute of the upper-level device from the upper-level clock source device through the Announce message in the PTP time synchronization interface, or obtains the clock source of the upper-level device through the OLT through the 1PPS+TOD interface. Attributes. Both the current GPON time synchronization standard ITU-T G.984.3 (defining the specific implementation mechanism) and ITU-T G.984.4 (defining the OMCI time message), or the current EPON time synchronization standard IEEE 802.1AS, are only defined.
- the method of how the OLT obtains the precise time from the outside world through the optical fiber line to the ONU (generally the frame number and its corresponding time stamp) and how the ONU recovers the precise time does not mention or solve the time and time other than time synchronization.
- the problem of how to synchronize the closely related clock source attributes is not mentioned or solved. If the upper-level clock source attribute changes, it is transmitted to the next-level device such as ONU as soon as possible. The problem does not mention or solve the inconsistency of clock source attribute information obtained through different upper-level time synchronization interfaces.
- FIG. 14 is a schematic structural diagram of an information packet of a clock source attribute according to an embodiment of the present invention:
- the first field is frameType and its value is information
- PARENT_DATA clock source attributes which are tlvType (value PARENT_DATA), Length (the value is 2+N(34)), dataField (data field field, length is 34, and the content is mainly PTP Announce message).
- tlvType value PARENT_DATA
- Length the value is 2+N(34)
- dataField data field field, length is 34, and the content is mainly PTP Announce message.
- the next three fields are the DOMAIN clock source attributes, which are tlvType (value is DOMAIN), Length (value is 2+N(4)), dataField (data field field, length is 4, and the content is mainly PTP message). Fields such as domainNumber in the header);
- LEAPS_SECOND clock source attributes which are tlvType (value is LEAPS_SECOND), Length (value is 2+N(6)), dataField (data field field, length is 6, content is mainly PTP Announce message) CurrentUtcOffsetValid, currentUtcOffset, leap59, leap61, etc.)
- the sequential positions of the clock source attributes PARENT_DATA, DOMAIN, and LEAPS_SECOND in the above information type messages are not limited to the above order.
- FIG. 15 is a schematic structural diagram of an event class packet of a clock source attribute according to an embodiment of the present invention:
- the first field is frameType and its value is event
- the next three fields are the LEAPS_SECOND clock source attribute (as shown in Figure 5a), which are tlvType (values LEAPS_SECOND), Length (its values are 2+N(6)), dataField (data field fields, length 6).
- the content is mainly the currentUtcOffsetValid, currentUtcOffset, leap59, leap61 and other fields in the PTP Announce message);
- the next three fields are the FREQ_TIME_STATUS clock source attributes, which are tlvType (value is FREQ_TIME_STATUS), Length (its value is 2+N(4)), dataField (data field field, length is 4, and the content is mainly PTP Announce
- tlvType value is FREQ_TIME_STATUS
- Length its value is 2+N(4)
- dataField data field field, length is 4, and the content is mainly PTP Announce
- the fields such as frequencyTraceable and timeTraceable in the PTP header of the text);
- the sequential positions of the clock source attributes LEAPS_SECOND and FREQ_TIME_STATUS in the above event class messages are not limited to the above order.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the method, device, and system for synchronizing clock source attributes provided by the embodiments of the present invention have the following beneficial effects: solving the maintenance work efficiency due to excessive clock source attribute parameters in the synchronization process of the clock source attribute during the synchronization process The problem is reduced, and the effect of synchronizing the clock source attributes is achieved.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明公开了一种时钟源属性的同步方法、装置及系统,其中,该方法包括:光线路终端OLT监测指定事件;在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;将调整后的上一级时钟源属性发送至光网络单元ONU。采用本发明提供的上述技术方案,解决了相关技术由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题。
Description
本发明涉及通信领域,具体而言,涉及一种时钟源属性的同步方法、装置及系统。
无源光网络(Passive Optical Network,PON)主要由OLT(Optical Line Terminal,光线路终端)、ONU(Optical Network Unit,光网络单元)和ODN(Optical Distribution Network,光分配网络)组成。PON中一般采用树型拓朴结构,如图1所示,OLT和ODN连接,ODN下挂多个ONU,OLT和ONU之间下行数据通过广播方式,上行数据通过时分复用方式使用信道,OLT上连由IP网和同步光纤网络(Synchronous Optical Network,SONET)网等组成的核心网,ONU可以下连基站。
无源光网络(Passive Optical Network,PON)主要由OLT(Optical Line Terminal,光线路终端)、ONU(Optical Network Unit,光网络单元)和ODN(Optical Distribution Network,光分配网络)组成。PON中一般采用树型拓朴结构,如图1所示,OLT和ODN连接,ODN下挂多个ONU,OLT和ONU之间下行数据通过广播方式,上行数据通过时分复用方式使用信道,OLT上连由IP网和同步光纤网络(Synchronous Optical Network,SONET)网等组成的核心网,ONU可以下连基站。在时间同步应用场景中,基站要求实现时间同步,通常,基站应优先选择卫星接收机进行空中授时,但对于无法实现空中授时的基站可以采用地面授时方式,地面授时要求至少有一个时钟源设备GrandMaster,通过核心网逐级将时间同步信息传递到基站。
目前高精度时间同步接口主要包括PTP时间同步接口(Precision Time Protocol)和1PPS(秒脉冲,1Pulse per Second)+TOD(当前时刻,Time of Day)时间同步接口。
IEEE1588阐述了实现时间同步的原理,制定了PTP协议,通过PTP报文交互传递时戳来实现时间同步。IEEE 1588支持普通时钟(OC)、边界时钟(BC)、透明时钟(TC)三种时钟模型。现有技术中,通常采用边界时钟模型来实现时间同步。
1PPS+TOD时间同步接口中,1PPS秒脉冲,采用上升沿作为准时沿,上升时间小于50ns;1PPS+TOD信息传送采用422电平方式,TOD时间信息消息中包括GPS时
间周数(GPS week)、GPS时间周内秒(GPS Second time of Week)、Leap Seconds(GPS-UTC,GPS时与UTC时的偏移量)等时间信息。
如图2所示,OLT可以作为1588从时钟Slave与上一级时钟源设备实现时间同步,OLT将获取的精确时间通过光纤线路采用PON时间同步协议(ITU-T G.984或IEEE802.1AS)传递给ONU,ONU作为1588主时钟Master再向下一级设备提供时间同步信息;其中,OLT和ONU相当于共同充当边界时钟。
OLT也可以通过采用1PPS+TOD时间同步接口与上一级时钟源设备实现时间同步。
发明人在实现本发明的过程中,发现现有的基于无源光网络实现时间同步的方案至少存在以下缺陷:
相关技术中,OLT采用PTP时间同步接口时,作为从时钟Slave与上一级时钟源设备进行PTP报文交互实现时间同步,ONU采用ITU-T G.984或IEEE802.1AS实现与OLT的时间同步;ONU作为主时钟Master再与下一级时钟源设备进行PTP报文交互实现时间同步,由于在PON上截断了PTP报文,OLT从上一级时钟源同步设备PTP报文中获取的一些时钟源属性没有传递到ONU。这种情况下,可以通过ONU的网管或命令行来配置每台ONU需要的全部时钟源参数,但是有些时钟源参数是动态变化的(比如,timesource、grandmasterClockQuality、grandmasterIdentity、grandmasterpriority1、grandmasterpriority2等),实际用户使用起来维护工作量很多,容易出错。
相关技术中,OLT采用1PPS+TOD时间同步接口时,由于1PPS+TOD的时间消息报文中没有PTP报文所需的全部时钟源属性,使得OLT也无法获得完整的时钟源属性,也就无法传递到ONU。这种情况下,也可以通过网管或命令行来配置ONU需要的全部时钟源属性,缺点如同上面所述。同时用户还需要知道OLT当前使用的是PTP时间同步接口还是1PPS+TOD时间同步接口。如果OLT具有动态选择时间同步接口的功能(通过算法动态选择时钟源),那么用户的维护工作将变的频繁。
相关技术中,没有提及如果时钟源属性发生变化,OLT通过PON使用何种机制方法尽快传递给ONU。比如OLT通过时间同步接口(PTP或1PPS+TOD),识别时钟源属性中的闰秒信息发送变化后,现有技术中没有提及OLT应该怎样尽快传递给ONU。
针对现有技术中由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种时钟源属性的同步方法、装置及系统,以至少解决现有技术由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题。
根据本发明的一个实施例,提供了一种时钟源属性的同步方法,包括:
光线路终端OLT监测指定事件;在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;将调整后的上一级时钟源属性发送至光网络单元ONU。
指定事件包括以下至少之一:
上一级时钟源属性发生变化;本地发生指定类型事件。
在监测到指定事件之前,方法还包括:OLT向ONU周期性发送第一类报文,第一类报文携带有上一级时钟源属性;将调整后的上一级时钟源属性发送至光网络单元ONU,包括:将调整后的上一级时钟源属性携带于第二类报文中发送给ONU,其中,第二类报文的优先级高于第一类报文的优先级。
上一级时钟源属性通过时间同步接口接收,时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口。
当指定事件为上一级时钟源属性发生变化时,光线路终端OLT通过以下之一方式监测指定事件:监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化;监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定上一级时钟源属性中的频率时间跟踪状态属性发生变化;监测上一级时钟源属性中当前时刻TOD报文中的跳秒Leap Seconds字段是否发生变化,其中,在Leap Seconds字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化。
第一指定字段包括以下至少之一:当前世界标准时间补偿current Utc Offset、当前有效世界标准时间补偿current Utc Offset Valid、59秒跳跃leap59、61秒跳跃leap61;
和/或,第二指定字段包括以下至少之一:可追踪时间time Traceable、可追踪频率frequency Traceable、时钟等级clockclass、时间源time source。
当指定事件为上一级时钟源属性发生变化时,光线路终端OLT通过以下之一方式监测指定事件,包括:监测本地发生指定类型事件中的可跟踪频率是否失锁,其中,在可跟踪频率失锁时,确定监测到指定事件;监测本地发生指定类型事件中的可跟踪时间是否失锁,其中,在可跟踪时间失锁时,确定监测到指定事件。
OLT对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:当可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;当可跟踪时间失锁时,降低钟源属性中的时钟等级clock class。
根据本发明的另一个实施例,提供了一种时钟源属性的同步方法,包括:
接收光线路终端OLT发送的调整后的上一级时钟源属性;依据调整后的上一级时钟源属性调整当前时钟源属性。
在接收光线路终端OLT发送的调整后的上一级时钟源属性之前,还包括:
接收OLT周期性发送的第一类报文,第一类报文携带有上一级时钟源属性;接收OLT发送的调整后的上一级时钟源属性,包括:接收OLT发送的第二类报文,第二类报文携带OLT调整后的上一级时钟源属性,其中第二类报文的优先级高于第一类报文的优先级。
通过以下方式之一,依据调整后的上一级时钟源属性调整当前时钟源属性,包括:当依据调整后的上一级时钟源属性判断当前时钟属性中的可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;当依据调整后的上一级时钟源属性判断当前时钟源属性中的可跟踪时间失锁时,降低钟源属性中的时钟等级。
在依据调整后的上一级时钟源属性调整当前时钟源属性之后,还包括:向基站发送调整后的时钟源属性,其中,通过时间同步接口发送时钟源属性,该时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
根据本发明的另一个实施例,提供了一种时钟源属性的同步装置,包括:
监测模块,设置为监测指定事件;调整模块,设置为在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整;第一发送模块,设置为将调整后的上一级时钟源属性发送至光网络单元ONU。
装置还包括:
第二发送模块,设置为在监测到指定事件之前,向ONU周期性发送第一类报文,第一类报文携带有上一级时钟源属性,其中,上一级时钟源属性通过时间同步接口接收,时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口;第一发送模块,设置为将调整后的上一级时钟源属性携带于第二类报文中发送给ONU,其中,第二类报文的优先级高于第一类报文的优先级。
第二发送模块,包括:
报文构建单元,设置为依据预设架构构建第一类报文,预设架构为类型、长度、值TLV架构;发送单元,设置为将第一类报文依据周期发送至ONU。
监测模块,设置为通过以下方式之一,监测指定事件,包括:
第一监测单元,设置为监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化;第二监测单元,设置为监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定上一级时钟源属性中的频率时间跟踪状态属性发生变化;第三监测单元,设置为监测到的指定事件为上一级时钟源属性发生变化时,依据上一级时钟源属性中当前时刻TOD报文中的跳秒Leap Seconds是否发生变化,判断指定事件是否发生变化。
监测模块,设置为通过以下方式之一,监测指定事件,包括:
第四监测单元,设置为监测本地发生指定类型事件中的可跟踪频率是否失锁,其中,在可跟踪频率失锁时,确定监测到指定事件;第五监测单元,设置为监测本地发生指定类型事件中的可跟踪时间是否失锁,其中,在可跟踪时间失锁时,确定监测到指定事件。
调整模块,设置为通过以下方式之一,在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:
第一调整单元,设置为当可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;第二调整单元,设置为当可跟踪时间失锁时,降低钟源属性中的时钟等级clock class。
根据本发明的另一个实施例,提供了一种时钟源属性的同步装置,包括:
第一接收模块,设置为接收光线路终端OLT发送的调整后的上一级时钟源属性;调整模块,设置为依据调整后的上一级时钟源属性调整当前时钟源属性。
该装置还包括:第二接收模块,设置为在接收光线路终端OLT发送的调整后的上一级时钟源属性之前,接收OLT周期性发送的第一类报文,第一类报文携带有上一级时钟源属性;第一接收模块,设置为接收OLT发送的第二类报文,第二类报文携带OLT调整后的上一级时钟源属性,其中第二类报文的优先级高于第一类报文的优先级。
可选的,调整模块,设置为通过以下方式之一,依据调整后的上一级时钟源属性调整当前时钟源属性,包括:第一调整单元,设置为当依据调整后的上一级时钟源属性判断当前时钟属性中的可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;第二调整单元,设置为当依据调整后的上一级时钟源属性判断当前时钟源属性中的可跟踪时间失锁时,降低钟源属性中的时钟等级。
可选的,该装置还包括:发送模块,设置为在依据调整后的上一级时钟源属性调整当前时钟源属性之后,向基站发送调整后的时钟源属性,其中,通过时间同步接口发送时钟源属性,时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
根据本发明的另一个实施例,提供了一种时钟源属性的同步系统,该系统包括:光线路终端OLT、光网络单元ONU和基站,其中,
OLT与ONU建立通信连接,ONU与基站建立通信连接,其中,OLT为上述的时钟源属性的同步装置;ONU为上述的时钟源属性的同步装置。
通过本发明实施例,采用光线路终端OLT监测指定事件;在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;将调整后的上一级时钟源属性发送至光网络单元ONU。解决了由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题,进而达到了时钟源属性同步的效果。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术提出的一种时钟源属性的同步系统的示意图;
图2是根据本发明实施例的一种OLT与ONU时钟源属性的同步通信的示意图;
图3是根据本发明实施例的一种时钟源属性的同步方法的流程图;
图4是根据本发明实施例的另一种时钟源属性的同步方法的流程图
图5是根据本发明实施例的时钟源属性的同步装置的结构框图;
图6是根据本发明优选实施例的时钟源属性的同步装置的结构框图;
图7是根据本发明优选实施例的时钟源属性的同步装置的结构框图;
图8是根据本发明优选实施例的时钟源属性的同步装置的结构框图;
图9是根据本发明优选实施例的时钟源属性的同步装置的结构框图;
图10是根据本发明实施例的另一种时钟源属性的同步装置的结构框图;
图11是根据本发明优选实施例的另一种时钟源属性的同步装置的结构框图;
图12是根据本发明优选实施例的另一种时钟源属性的同步装置的结构框图;
图13是根据本发明优选实施例的另一种时钟源属性的同步装置的结构框图;
图14为本发明实施例时钟源属性的信息类报文结构示意图;
图15为本发明实施例时钟源属性的事件类报文结构示意图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种时钟源属性的同步方法,图3是根据本发明实施例的时钟源属性的同步方法的流程图,应用于光线路终端OLT,如图3所示,该流程包括如下步骤:
步骤S302,光线路终端OLT监测指定事件;
步骤S304,在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;
步骤S306,将调整后的上一级时钟源属性发送至光网络单元ONU。
通过上述步骤,采用光线路终端OLT监测指定事件;在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;将调整后的上一级时钟源属性发送至光网络单元ONU。解决了由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题,进而达到了时钟源属性同步的效果。
优选的,指定事件包括以下至少之一:
上一级时钟源属性发生变化;本地发生指定类型事件。
优选的,在步骤S302监测到指定事件之前,该方法还包括:
步骤S298,OLT向ONU周期性发送第一类报文,第一类报文携带有上一级时钟源属性;
其中,上一级时钟源属性通过时间同步接口接收,时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口。
优选的,步骤S306,将调整后的上一级时钟源属性发送至光网络单元ONU,具体为:将调整后的上一级时钟源属性携带于第二类报文中发送给ONU,其中,第二类报文的优先级高于第一类报文的优先级。
其中,第二类报文称为事件类报文。
优选的,上一级时钟源属性通过时间同步接口接收,所述时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口。
优选的,由上可知,步骤S298,OLT向ONU周期性发送第一类报文,包括:
依据预设架构构建第一类报文,预设架构为类型、长度、值TLV架构;
将第一类报文依据周期通过时间同步接口发送至ONU。
其中,在OLT向ONU周期性发送第一类报文时,OLT使用私有协议报文周期性发送包含时钟源属性的第一类报文;
私有协议报文可以是现有协议基础上扩展,可以是以太网协议,也可以是G.984OMCI协议,也可以是扩展OAM协议;
周期性发送的间隔一般为5秒钟左右,间隔可以设定;
周期性发送的报文具有第一优先级,称之为信息类报文。
本发明以实现实施例提供的一种时钟源属性的同步方法为准,周期性发送的间隔以及私有协议报文仅以上述为例,具体不做限定。
采用TLV方式(Type类型、Lenght长度、Value值)构造一致格式的时钟源属性;
其中,时钟源属性包括了PTP报文头和PTP Announce报文的主要信息,时钟源属性可以分为闰秒属性(LEAPS_SECOND)、频率及时间跟踪状态属性(FREQ_TIME_STATUS)、时间域(DOMAIN)属性、上级时钟(PARENT_DATA)属性。
当OLT跟踪PTP时间同步接口输入参考源时,时钟源属性来自OLT当前选用的PTP参考源,根据当前选用的PTP参考源中的PTP报文头和PTP Announce报文中的信息生成上述TLV格式的时钟源属性;
当OLT跟踪1PPS+TOD时间同步接口参考源时,将TOD时间信息消息中的LeapSeconds字段转换成LEAPS_SECOND属性中的currentUtcOffset字段,将TOD时间信息消息中的秒脉冲状态字段转换成PARENT_DATA时钟源属性中clockClass字段,除了currentUtcOffset字段和clockClass字段外,上述时钟源属性中的其他字段都通过OLT的时钟源默认值来构造;
当OLT既无PTP输入也无1PPS+TOD输入时,使用OLT的时钟源默认属性。
这里将报文采用TLV方式进行封装,使得PTP报文和TOD信息两种类型中时钟源属性都能够以同一形式发送至ONU,提高了信息架构本身的兼容性,提高了报文解析效率。
优选的,步骤302中,通过以下方式之一,光线路终端OLT监测指定事件,包括:
方式一,监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化;
方式二,监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定上一级时钟源属性中的频率时间跟踪状态属性发生变化;
方式三,监测上一级时钟源属性中当前时刻TOD报文中的跳秒Leap Seconds字段是否发生变化,其中,在Leap Seconds字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化;
其中,第一指定字段包括以下至少之一:当前世界标准时间补偿current Utc Offset、当前有效世界标准时间补偿current Utc Offset Valid、59秒跳跃leap59、61秒跳跃leap61;和/或,
第二指定字段包括以下至少之一:可追踪时间time Traceable、可追踪频率frequency Traceable、时钟等级clockclass、时间源time source。
方式四,监测本地发生指定类型事件中的可跟踪频率是否失锁,其中,在可跟踪频率失锁时,确定监测到指定事件;
方式五,监测本地发生指定类型事件中的可跟踪时间是否失锁,其中,在可跟踪时间失锁时,确定监测到指定事件。
优选的,步骤304中,通过以下方式之一,在监测到该指定事件时,OLT对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:
方式一,当可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;
方式二,当可跟踪时间失锁时,降低钟源属性中的时钟等级clock class。
具体的,结合上述步骤S302和步骤S304:
当OLT跟踪PTP时间同步接口输入参考源时,OLT检测当前选用的PTP参考源中的PTP Announce报文中currentUtcOffset、currentUtcOffsetValid、leap59、leap61字段,当上述字段有变化时,即认为闰秒属性有变化;
当OLT跟踪PTP时间同步接口输入参考源时,OLT检测到当前选用的PTP参考源中的PTP Announce报文中timeTraceable、frequencyTraceable、clockclass、timesource有变化时,即认为频率时间跟踪状态属性有变化;
当OLT跟踪1PPS+TOD时间同步接口参考源时,OLT检测TOD时间信息消息中Leap Seconds字段,当该字段有变化时,即认为闰秒属性有变化;
当OLT检测到自身频率跟踪失锁时,将clockclass调整为clockclass的默认值、将frequencyTraceable和timeTraceable都调整为false,同时认为本地发生指定类型事件发生;
当OLT检测到自身时间跟踪失锁时,只降级clockclass,其他时钟源属性保持不变,同时认为本地发生指定类型事件发生;
该本地发生指定类型事件还包括但不限于ONU上线事件。
在本实施例中提供了一种时钟源属性的同步方法,图4是根据本发明实施例的时钟源属性的同步方法的流程图,应用于光网络单元ONU,如图4所示,该流程包括如下步骤:
步骤S402,接收光线路终端OLT发送的调整后的上一级时钟源属性;
步骤S404,依据调整后的上一级时钟源属性调整当前时钟源属性。
通过上述步骤,接收光线路终端OLT发送的调整后的上一级时钟源属性,依据调整后的上一级时钟源属性调整当前时钟源属性。解决了由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题,进而达到了时钟源属性同步的效果。
优选的,在步骤S402,接收光线路终端OLT发送的调整后的上一级时钟源属性之前,还包括:
步骤S398,接收OLT周期性发送的第一类报文,第一类报文携带有上一级时钟源属性;
优选的,步骤S406,接收光线路终端OLT发送的调整后的上一级时钟源属性,具体为:接收OLT发送的第二类报文,第二类报文携带OLT调整后的上一级时钟源属性,其中第二类报文的优先级高于第一类报文的优先级。
优选的,步骤S404,通过以下方式之一,依据调整后的上一级时钟源属性调整当前时钟源属性,包括:
方式一,当依据调整后的上一级时钟源属性判断当前时钟属性中的可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;
方式二,当依据调整后的上一级时钟源属性判断当前时钟源属性中的可跟踪时间失锁时,降低钟源属性中的时钟等级。
由上可知,光线路单元ONU解析收到的时钟源属性报文,检测自身重要事件,然后对时钟源属性进行必要调整,最后通过时间同步接口输出时钟源属性信息,其中:
当ONU检测到自身频率跟踪失锁时,将时钟等级clock class调整为clock class的默认值、将可跟踪频率frequency Traceable和可跟踪时间time Traceable都调整为假false,同时认为OLT的本地发生指定类型事件发生;
其中,clock class的默认值可以为IEEE1588协议中的标准值。
当ONU检测到自身时间跟踪失锁时,只降级时钟等级clockclass,其他时钟源属性保持不变,同时认为OLT的本地发生指定类型事件发生。
优选的,在步骤S404依据调整后的上一级时钟源属性调整当前时钟源属性之后,还包括:
步骤S406,向基站发送调整后的时钟源属性,其中,通过时间同步接口发送时钟源属性,该时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
其中,ONU通过PTP时间同步接口或1PPS+TOD时间同步接口输出调整后的时钟源属性。
在本实施例中还提供了一种时钟源属性的同步装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本发明实施例的时钟源属性的同步装置的结构框图,如图5所示,应用于光线路终端OLT中,该装置包括:监测模块52,调整模块54和第一发送模块56,其中,
监测模块52,设置为监测指定事件;
调整模块54,与监测模块52相连,设置为在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整;
第一发送模块56,与调整模块54相连,设置为将调整后的上一级时钟源属性发送至光网络单元ONU。
优选的,如图6所示,图6是根据本发明优选实施例的时钟源属性的同步装置的结构框图,时钟源属性的同步装置还包括:第二发送模块51,其中,
第二发送模块51,设置为在监测到指定事件之前,向ONU周期性发送第一类报文,该第一类报文携带有上一级时钟源属性,其中,上一级时钟源属性通过时间同步接口接收,时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口;
第一发送模块56,设置为将调整后的上一级时钟源属性携带于第二类报文中发送给ONU,其中,第二类报文的优先级高于第一类报文的优先级。
优选的,如图7所示,图7是根据本发明优选实施例的时钟源属性的同步装置的结构框图,第二发送模块51,包括:报文构建单元511和发送单元512,其中,
报文构建单元511,设置为依据预设架构构建第一类报文,预设架构为类型、长度、值TLV架构;
发送单元512,与报文构建单元511连接,设置为将第一类报文依据周期发送至ONU。
优选的,如图8所示,图8是根据本发明优选实施例的时钟源属性的同步装置的结构框图,监测模块52,设置为通过以下方式之一,监测指定事件,包括:
第一监测单元521,设置为监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定上一级时钟源属性中的闰秒属性发生变化;
第二监测单元522,设置为监测上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定上一级时钟源属性中的频率时间跟踪状态属性发生变化;
第三监测单元523,设置为监测到的指定事件为上一级时钟源属性发生变化时,依据上一级时钟源属性中当前时刻TOD报文中的跳秒Leap Seconds是否发生变化,判断指定事件是否发生变化;
第四监测单元524,设置为监测本地发生指定类型事件中的可跟踪频率是否失锁,其中,在可跟踪频率失锁时,确定监测到指定事件;
第五监测单元525,设置为监测本地发生指定类型事件中的可跟踪时间是否失锁,其中,在可跟踪时间失锁时,确定监测到指定事件。
优选的,图9是根据本发明优选实施例的时钟源属性的同步装置的结构框图,如图9所示,调整模块54,设置为通过以下方式之一,在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:
第一调整单元541,设置为当可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;
第二调整单元542,设置为当可跟踪时间失锁时,降低钟源属性中的时钟等级clock class。
在实际应用中,上述模块均可由位于OLT的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。
图10是根据本发明实施例的时钟源属性的同步装置的结构框图,如图10所示,应用于光网络单元ONU中,该装置包括:第一接收模块62和调整模块64,其中,
第一接收模块62,设置为接收光线路终端OLT发送的调整后的上一级时钟源属性;
调整模块64,设置为依据调整后的上一级时钟源属性调整当前时钟源属性。
优选的,如图11所示,图11是根据本发明优选实施例的时钟源属性的同步装置的结构框图,该装置还包括:
第二接收模块66,设置为在接收光线路终端OLT发送的调整后的上一级时钟源属性之前,接收OLT周期性发送的第一类报文,第一类报文携带有上一级时钟源属性;
第一接收模块62,设置为接收OLT发送的第二类报文,第二类报文携带OLT调整后的上一级时钟源属性,其中第二类报文的优先级高于第一类报文的优先级。
可选的,如图12所示,图12是根据本发明优选实施例的时钟源属性的同步装置的结构框图,调整模块64,设置为通过以下方式之一,依据调整后的上一级时钟源属性调整当前时钟源属性,包括:
第一调整单元641,设置为当依据调整后的上一级时钟源属性判断当前时钟属性中的可跟踪频率失锁时,将时钟源属性中的时钟等级clock class调整为预设值,并将时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;
第二调整单元642,设置为当依据调整后的上一级时钟源属性判断当前时钟源属性中的可跟踪时间失锁时,降低钟源属性中的时钟等级。
可选的,如图13所示,图13是根据本发明优选实施例的时钟源属性的同步装置的结构框图,该装置还包括:
发送模块68,设置为在依据调整后的上一级时钟源属性调整当前时钟源属性之后,向基站发送调整后的时钟源属性,其中,通过时间同步接口发送时钟源属性,时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
在实际应用中,上述模块均可由位于ONU的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、现场可编程门阵列(FPGA)或物理层PHY芯片实现。
具体的,本发明实施例提供一种时钟源属性的同步的方法和装置如图3至图13所示,此外本发明实施例提供还提供一种时钟源属性的同步的系统,使得无源光网络中OLT与ONU的时钟源属性同步,使得ONU无需获知OLT不同输入时间同步接口(比如PTP接口和1PPS+TOD接口)的差异,使得ONU能尽快获知并传递上一级时钟的时钟源属性。
其中,本发明实施例提供了一种时钟源属性同步系统,该系统包括:OLT、ONU、基站;其中,
OLT,设置为通过PTP时间同步接口或者1PPS+TOD接口,获取上一级时钟的时钟源属性信息,构造TLV格式的时钟源属性,使用私有协议报文周期性发送包含时钟源属性的普通优先级报文;当检测到上一级时钟源属性有变化或者检测自身有重要事件发生时,对时钟源属性进行必要调整,并立即发送包含有该时钟源属性的高优先级报文;
ONU,设置为接收OLT发送的时钟源属性报文,解析收到的时钟源属性文,检测自身重要事件,对时钟源属性进行降级或恢复默认值的调整,然后通过PTP时间同步接口输出或者通过1PPS+TOD接口时间同步接口输出时钟源属性信息;
基站,设置为接收PTP时间同步接口输出或者1PPS+TOD接口时间同步接口输出的时钟源属性信息。
本发明实施例解决在无源光网络中应用的时间同步系统除了时间同步之外的与时间同步密切相关的时钟源属性如何传递的问题,解决了如果上一级时钟源属性发生变化如何尽快传递给ONU等下一级设备的问题,解决了通过不同的上一级时间同步接口获得的时钟源属性信息不一致的问题,有效减低了用户维护时钟源信息的工作量,避免了人为的维护错误。
在无源光网络中应用的时间同步系统主要包括,如图2所示:OLT、ONU、基站。OLT可以作为从时钟Slave与上一级时钟源设备进行PTP报文交互,通过传递时间戳来实现OLT与上一级时钟源设备的时间同步,并将调整后的本地时间发送给ONU,使ONU实现与OLT的时间同步;ONU与基站进行PTP报文交互,通过传递时间戳使基站实现与ONU的时间同步。
在上述系统中,OLT通过PTP时间同步接口中的Announce报文从上一级时钟源设备中获得上一级设备的时钟源属性,或者通过OLT通过1PPS+TOD接口获得上一级设备的时钟源属性。无论是目前的GPON时间同步标准ITU-T G.984.3(定义具体的实现机制)和ITU-T G.984.4(定义OMCI时间报文),还是目前EPON时间同步标准IEEE 802.1AS,都只定义了OLT如何从外界获取的精确时间通过光纤线路传递给ONU的方法(大体是传递帧号及其对应的时戳)以及ONU如何恢复精确时间,都没有提及或解决除了时间同步之外的与时间同步密切相关的时钟源属性如何传递的问题,没有提及或解决如果上一级时钟源属性发生变化如何尽快传递给ONU等下一级设备的
问题,没有提及或解决通过不同的上一级时间同步接口获得的时钟源属性信息不一致问题。
如图14所示,图14为本发明实施例时钟源属性的信息类报文结构示意图:
第一个字段为frameType,其值为information;
后续的三个字段为PARENT_DATA时钟源属性,分别为tlvType(值为PARENT_DATA)、Length(其值为2+N(34))、dataField(数据域字段,长度为34,内容主要为PTP Announce报文中的grandmasterpriority1、grandmasterpriority2、grandmasterIdentity、clockClass、clockAccuracy等字段);
接下来的三个字段为DOMAIN时钟源属性,分别为tlvType(值为DOMAIN)、Length(其值为2+N(4))、dataField(数据域字段,长度为4,内容主要为PTP报文头中的domainNumber等字段);
最后的三个字段为LEAPS_SECOND时钟源属性,分别为tlvType(值为LEAPS_SECOND)、Length(其值为2+N(6))、dataField(数据域字段,长度为6,内容主要为PTP Announce报文中的currentUtcOffsetValid、currentUtcOffset、leap59、leap61等字段);
时钟源属性PARENT_DATA、DOMAIN、LEAPS_SECOND在上述信息类报文中的先后位置不限于上述顺序。
如图15所示,图15为本发明实施例时钟源属性的事件类报文结构示意图:
第一个字段为frameType,其值为event;
后续的三个字段为LEAPS_SECOND时钟源属性(如同图5a中所示),分别为tlvType(值为LEAPS_SECOND)、Length(其值为2+N(6))、dataField(数据域字段,长度为6,内容主要为PTP Announce报文中的currentUtcOffsetValid、currentUtcOffset、leap59、leap61等字段);
接下来的三个字段为FREQ_TIME_STATUS时钟源属性,分别为tlvType(值为FREQ_TIME_STATUS)、Length(其值为2+N(4))、dataField(数据域字段,长度为4,内容主要为PTP Announce报文中的PTP报文头中的frequencyTraceable、timeTraceable等字段);
时钟源属性LEAPS_SECOND、FREQ_TIME_STATUS在上述事件类报文中的先后位置不限于上述顺序。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
如上所述,本发明实施例提供的一种时钟源属性的同步方法、装置及系统,具有以下有益效果:解决了由于时钟源属性在同步过程中由于时钟源属性参数过多而导致维护工作效率降低的问题,进而达到了时钟源属性同步的效果。
Claims (24)
- 一种时钟源属性的同步方法,包括:光线路终端OLT监测指定事件;所述在监测到该指定事件时,所述OLT对接收的来自上一级时钟源设备的时钟源属性进行调整;将调整后的所述上一级时钟源属性发送至光网络单元ONU。
- 根据权利要求1所述的方法,其中,所述指定事件包括以下至少之一:所述上一级时钟源属性发生变化;本地发生指定类型事件。
- 根据权利要求1所述的方法,其中,在监测到所述指定事件之前,所述方法还包括:所述OLT向所述ONU周期性发送第一类报文,所述第一类报文携带有所述上一级时钟源属性;将调整后的所述上一级时钟源属性发送至光网络单元ONU,包括:将调整后的所述上一级时钟源属性携带于第二类报文中发送给所述ONU,其中,所述第二类报文的优先级高于所述第一类报文的优先级。
- 根据权利要求3所述的方法,其中,所述上一级时钟源属性通过时间同步接口接收,所述时间同步接口包括以下至少之一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口。
- 根据权利要求3所述的方法,其中,所述OLT向所述ONU周期性发送第一类报文,包括:依据预设架构构建所述第一类报文,所述预设架构为类型、长度、值TLV架构;将构建得到的所述第一类报文周期性发送至所述ONU。
- 根据权利要求2所述的方法,其中,当所述指定事件为所述上一级时钟源属性发生变化时,光线路终端OLT通过以下之一方式监测指定事件:监测所述上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定所述上一级时钟源属性中的闰秒属性发生变化;监测所述上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定所述上一级时钟源属性中的频率时间跟踪状态属性发生变化;监测所述上一级时钟源属性中当前时刻TOD报文中的跳秒Leap Seconds字段是否发生变化,其中,在Leap Seconds字段发生变化时,确定所述上一级时钟源属性中的闰秒属性发生变化。
- 根据权利要求6所述的方法,其中,所述第一指定字段包括以下至少之一:当前世界标准时间补偿current UtcOffset、当前有效世界标准时间补偿current Utc Offset Valid、59秒跳跃leap59、61秒跳跃leap61;和/或,所述第二指定字段包括以下至少之一:可追踪时间time Traceable、可追踪频率frequency Traceable、时钟等级clockclass、时间源time source。
- 根据权利要求6所述的方法,其中,当所述指定事件为所述上一级时钟源属性发生变化时,光线路终端OLT通过以下之一方式监测指定事件,包括:监测所述本地发生指定类型事件中的可跟踪频率是否失锁,其中,在所述可跟踪频率失锁时,确定监测到所述指定事件;监测所述本地发生指定类型事件中的可跟踪时间是否失锁,其中,在所述可跟踪时间失锁时,确定监测到所述指定事件。
- 根据权利要求8所述的方法,其中,所述OLT对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:当所述可跟踪频率失锁时,将所述时钟源属性中的时钟等级clock class调整为预设值,并将所述时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;当所述可跟踪时间失锁时,降低所述钟源属性中的时钟等级clock class。
- 一种时钟源属性的同步方法,包括:接收光线路终端OLT发送的调整后的上一级时钟源属性;依据所述调整后的上一级时钟源属性调整当前时钟源属性。
- 根据权利要求10所述的方法,其中,在接收光线路终端OLT发送的调整后的上一级时钟源属性之前,还包括:接收所述OLT周期性发送的第一类报文,所述第一类报文携带有所述上一级时钟源属性;接收所述OLT发送的调整后的上一级时钟源属性,包括:接收所述OLT发送的第二类报文,所述第二类报文携带所述OLT调整后的所述上一级时钟源属性,其中所述第二类报文的优先级高于所述第一类报文的优先级。
- 根据权利要求10所述的方法,其中,通过以下方式之一,依据所述调整后的上一级时钟源属性调整当前时钟源属性,包括:当依据所述调整后的上一级时钟源属性判断所述当前时钟属性中的可跟踪频率失锁时,将所述时钟源属性中的时钟等级clock class调整为预设值,并将所述时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequencyTraceable调整为假;当依据所述调整后的上一级时钟源属性判断所述当前时钟源属性中的可跟踪时间失锁时,降低所述钟源属性中的时钟等级。
- 根据权利要求10所述的方法,其中,在依据所述调整后的上一级时钟源属性调整当前时钟源属性之后,还包括:向基站发送调整后的时钟源属性,其中,通过时间同步接口发送所述时钟源属性,所述时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
- 一种时钟源属性的同步装置,包括:监测模块,设置为监测指定事件;调整模块,设置为所述在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整;第一发送模块,设置为将调整后的所述上一级时钟源属性发送至光网络单元ONU。
- 根据权利要求14所述的装置,其中,所述装置还包括:第二发送模块,设置为在监测到所述指定事件之前,向所述ONU周期性发送第一类报文,所述第一类报文携带有所述上一级时钟源属性,其中,所述上一级时钟源属性通过时间同步接口接收,所述时间同步接口包括以下至少之 一:时间同步协议PTP时间同步接口、秒脉冲1PPS及当前时刻TOD时间同步接口;所述第一发送模块,设置为将调整后的所述上一级时钟源属性携带于第二类报文中发送给所述ONU,其中,所述第二类报文的优先级高于所述第一类报文的优先级。
- 根据权利要求15所述的装置,其中,所述第二发送模块,包括:报文构建单元,设置为依据预设架构构建所述第一类报文,所述预设架构为类型、长度、值TLV架构;发送单元,设置为将所述第一类报文依据所述周期发送至所述ONU。
- 根据权利要求15所述的装置,其中,所述监测模块,设置为通过以下方式之一,监测指定事件,包括:第一监测单元,设置为监测所述上一级时钟源属性中时间同步协议声明PTP Announce报文中的第一指定字段是否发生变化,其中,在第一指定字段发生变化时,确定所述上一级时钟源属性中的闰秒属性发生变化;第二监测单元,设置为监测所述上一级时钟源属性中时间同步协议声明PTP Announce报文中的第二指定字段是否发生变化,其中,在第二指定字段发生变化时,确定所述上一级时钟源属性中的频率时间跟踪状态属性发生变化;第三监测单元,设置为监测到的所述指定事件为所述上一级时钟源属性发生变化时,依据所述上一级时钟源属性中当前时刻TOD报文中的跳秒LeapSeconds是否发生变化,判断所述指定事件是否发生变化。
- 根据权利要求15所述的装置,其中,所述监测模块,设置为通过以下方式之一,监测指定事件,包括:第四监测单元,设置为监测所述本地发生指定类型事件中的可跟踪频率是否失锁,其中,在所述可跟踪频率失锁时,确定监测到所述指定事件;第五监测单元,设置为监测所述本地发生指定类型事件中的可跟踪时间是否失锁,其中,在所述可跟踪时间失锁时,确定监测到所述指定事件。
- 根据权利要求18所述的装置,其中,所述调整模块,设置为通过以下方式之一,所述在监测到该指定事件时,对接收的来自上一级时钟源设备的时钟源属性进行调整,包括:第一调整单元,设置为当所述可跟踪频率失锁时,将所述时钟源属性中的时钟等级clock class调整为预设值,并将所述时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;第二调整单元,设置为当所述可跟踪时间失锁时,降低所述钟源属性中的时钟等级clock class。
- 一种时钟源属性的同步装置,包括:第一接收模块,设置为接收光线路终端OLT发送的调整后的上一级时钟源属性;调整模块,设置为依据所述调整后的上一级时钟源属性调整当前时钟源属性。
- 根据权利要求20所述的装置,其中,所述装置还包括:第二接收模块,设置为在接收光线路终端OLT发送的调整后的上一级时钟源属性之前,接收所述OLT周期性发送的第一类报文,所述第一类报文携带有所述上一级时钟源属性;所述第一接收模块,设置为接收所述OLT发送的第二类报文,所述第二类报文携带所述OLT调整后的所述上一级时钟源属性,其中所述第二类报文的优先级高于所述第一类报文的优先级。
- 根据权利要求20所述的装置,其中,所述调整模块,设置为通过以下方式之一,依据所述调整后的上一级时钟源属性调整当前时钟源属性,包括:第一调整单元,设置为当依据所述调整后的上一级时钟源属性判断所述当前时钟属性中的可跟踪频率失锁时,将所述时钟源属性中的时钟等级clock class调整为预设值,并将所述时钟源属性中的可跟踪时间time Traceable和可跟踪频率frequency Traceable调整为假;第二调整单元,设置为当依据所述调整后的上一级时钟源属性判断所述当前时钟源属性中的可跟踪时间失锁时,降低所述钟源属性中的时钟等级。
- 根据权利要求20所述的装置,其中,所述装置还包括:发送模块,设置为在依据所述调整后的上一级时钟源属性调整当前时钟源属性之后,向基站发送调整后的时钟源属性,其中,通过时间同步接口发送所 述时钟源属性,所述时间同步接口包括以下至少之一:时间同步PTP接口和秒脉冲1PPS及当前时刻TOD接口。
- 一种时钟源属性的同步系统,所述系统包括:光线路终端OLT、光网络单元ONU和基站,其中,所述OLT与所述ONU建立通信连接,所述ONU与所述基站建立通信连接,其中,所述OLT为权利要求14至权利要求19中任一所述的时钟源属性的同步装置;所述ONU为权利要求20至权利要求23中任一所述的时钟源属性的同步装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410692729.X | 2014-11-25 | ||
CN201410692729.XA CN105703893A (zh) | 2014-11-25 | 2014-11-25 | 时钟源属性的同步方法、装置及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016082369A1 true WO2016082369A1 (zh) | 2016-06-02 |
Family
ID=56073448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/074037 WO2016082369A1 (zh) | 2014-11-25 | 2015-03-11 | 时钟源属性的同步方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105703893A (zh) |
WO (1) | WO2016082369A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108990083A (zh) * | 2017-05-31 | 2018-12-11 | 中国移动通信有限公司研究院 | 一种进行同步告警的方法及设备 |
CN112653533A (zh) * | 2020-12-17 | 2021-04-13 | 中国航空工业集团公司西安航空计算技术研究所 | 一种复杂系统智能授时管理方法 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113746586B (zh) * | 2020-05-28 | 2022-12-06 | 华为技术有限公司 | 时钟源管理的方法和装置 |
CN115278856A (zh) * | 2022-07-25 | 2022-11-01 | 中国电信股份有限公司 | 时间同步方法、时间同步装置、介质及电子设备 |
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 |
CN101841736A (zh) * | 2009-03-20 | 2010-09-22 | 中兴通讯股份有限公司 | 一种无源光网络时间传递的方法及系统 |
CN101895361A (zh) * | 2010-07-12 | 2010-11-24 | 中兴通讯股份有限公司 | 传输同步状态信息的方法、系统和时钟板 |
CN102130764A (zh) * | 2010-12-01 | 2011-07-20 | 华为技术有限公司 | 时间同步信息传送方法、系统和装置 |
CN102237940A (zh) * | 2010-05-04 | 2011-11-09 | 华为技术有限公司 | 在无源光网络中传递同步状态信息的方法、系统和设备 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104052589B (zh) * | 2013-03-15 | 2018-06-22 | 安华高科技通用Ip(新加坡)公司 | 容错时钟网络 |
CN106160909A (zh) * | 2015-04-24 | 2016-11-23 | 中兴通讯股份有限公司 | 闰秒跳变的处理方法及装置 |
-
2014
- 2014-11-25 CN CN201410692729.XA patent/CN105703893A/zh active Pending
-
2015
- 2015-03-11 WO PCT/CN2015/074037 patent/WO2016082369A1/zh 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 |
CN101841736A (zh) * | 2009-03-20 | 2010-09-22 | 中兴通讯股份有限公司 | 一种无源光网络时间传递的方法及系统 |
CN102237940A (zh) * | 2010-05-04 | 2011-11-09 | 华为技术有限公司 | 在无源光网络中传递同步状态信息的方法、系统和设备 |
CN101895361A (zh) * | 2010-07-12 | 2010-11-24 | 中兴通讯股份有限公司 | 传输同步状态信息的方法、系统和时钟板 |
CN102130764A (zh) * | 2010-12-01 | 2011-07-20 | 华为技术有限公司 | 时间同步信息传送方法、系统和装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108990083A (zh) * | 2017-05-31 | 2018-12-11 | 中国移动通信有限公司研究院 | 一种进行同步告警的方法及设备 |
CN112653533A (zh) * | 2020-12-17 | 2021-04-13 | 中国航空工业集团公司西安航空计算技术研究所 | 一种复杂系统智能授时管理方法 |
CN112653533B (zh) * | 2020-12-17 | 2022-09-20 | 中国航空工业集团公司西安航空计算技术研究所 | 一种复杂系统智能授时管理方法 |
Also Published As
Publication number | Publication date |
---|---|
CN105703893A (zh) | 2016-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5314768B2 (ja) | パッシブ光ネットワークシステムの時間同期化方法及びその同期化システム | |
US9014282B2 (en) | Precision timing in a data over cable service interface specification (DOCSIS) system | |
US9628259B2 (en) | Distributing clock synchronization information within an optical communications network | |
CN101707505B (zh) | 一种在无源光网络中时间同步的方法、装置及无源光网络 | |
WO2017012486A1 (zh) | 一种otn网元设备、otn时钟和时间的同步方法及系统 | |
EP2518951B1 (en) | Method, equipment and system for time synchronization of passive optical network | |
EP2675102B1 (en) | Communication system time synchronization method, slave station apparatus, master station apparatus, control apparatus, and program | |
CN102237941B (zh) | 时间同步系统及方法 | |
US20150358700A1 (en) | Apparatus and method for enabling a passive optical network on supporting time synchronization | |
CN103259640B (zh) | 一种同步时间的方法和设备 | |
CN102938676A (zh) | 时间同步处理方法、装置及系统 | |
US20220038252A1 (en) | Methods, Apparatus and Computer-Readable Media for Synchronization Over an Optical Network | |
WO2016082369A1 (zh) | 时钟源属性的同步方法、装置及系统 | |
US8842994B2 (en) | Distributing clock synchronization information within an optical communications network | |
WO2018219276A1 (zh) | 一种进行同步告警的方法及设备、计算机存储介质 | |
Garner et al. | Synchronization of audio/video bridging networks using IEEE 802.1 AS | |
CN102469377A (zh) | 一种epon系统以及系统中实现端到端透明时钟的方法 | |
KR101285277B1 (ko) | 수동 광 네트워크 중의 시간 동기화 방법 및 시스템 | |
US8649400B2 (en) | Communication clock transport method and device | |
WO2015117319A1 (zh) | 一种时间同步方法、设备及系统 | |
KR20160024782A (ko) | 수동 광 가입자망에서의 망동기 전달 장치 및 방법 | |
KR20100048124A (ko) | 근거리 통신망에서의 시간 동기화 방법 | |
WO2016184225A1 (zh) | 一种时间同步消息发送方法和装置 | |
den Hollander et al. | IEEE 802.1 AS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15863337 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15863337 Country of ref document: EP Kind code of ref document: A1 |