WO2016112664A1 - 时间处理方法及装置 - Google Patents

时间处理方法及装置 Download PDF

Info

Publication number
WO2016112664A1
WO2016112664A1 PCT/CN2015/083801 CN2015083801W WO2016112664A1 WO 2016112664 A1 WO2016112664 A1 WO 2016112664A1 CN 2015083801 W CN2015083801 W CN 2015083801W WO 2016112664 A1 WO2016112664 A1 WO 2016112664A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
node
leap
information
difference value
Prior art date
Application number
PCT/CN2015/083801
Other languages
English (en)
French (fr)
Inventor
孙长胜
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016112664A1 publication Critical patent/WO2016112664A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements

Definitions

  • the present invention relates to the field of communications, and in particular to a time processing method and apparatus.
  • FIG. 1 is a clock network structure diagram in a PTN network according to an embodiment of the present invention.
  • . 2 is a simplified structural diagram of a clock network in a PTN network according to an embodiment of the present invention. It should be noted that the BMC in FIG. 1 is an abbreviation of best master clock.
  • the Global Positioning System is commonly used as a synchronization reference for time and frequency. As the clock and time input for the entire network.
  • the IEEE 1588v2 specification implements time synchronization and clock synchronization using the Precision Time Protocol (PTP).
  • PTP Precision Time Protocol
  • the networking in Figure 1 is often simplified to a networking diagram as shown in Figure 2 when only clock synchronization is discussed.
  • GPS time Global Positioning System Time
  • UT1 one type of world time, when the star is fixed, the UT0 is corrected for the small movement of the Earth's rotation axis
  • the one-second length is the same, and the duration of the 9,192,631,770 cycles of the helium atom (Cs133) hyperfine level transition radiation is 1 second.
  • the UT1 is a time measurement system based on the Earth's rotation. It is based on the Earth's rotation period as the basis for determining the second length.
  • the GPS began to implement, counting weeks (week), 1024 weeks reversing once, counting is cleared.
  • the GPS time is cleared at the end of August 22, 1999, starting from 0.
  • the GPS is consistent with the TAI seconds, and the time difference is constant at 19 s.
  • TAI_UTC_OFFSET 36s.
  • the current time (Time of Day, simply referred to as ToD) of the message carrying the time information in the GPS is divided into the following three formats:
  • TAI-UTC-OFFSET is set by system commands, so in the event of a leap second event, the configuration values of all devices in the PTP time network need to be updated, or The grandmaster clock (GM) transfers the hop value to the downstream device hop by hop, and the device is out of sync during the delivery time.
  • GM grandmaster clock
  • the embodiment of the invention provides a time processing method and device, so as to solve at least the problem that the time hopping information existing in the related art needs to be transmitted to the downstream device hop by hop to cause the time update to be out of synchronization.
  • a time processing method including: a first node in a packet transfer network PTN acquires, in a first predetermined time, a second node in the PTN for time hopping processing.
  • the time difference and the leap second information wherein the first node includes a boundary clock (Boundary clock, hereinafter referred to as BC or an ordinary clock (OC), and the second node is a PTN a node other than the first node, the number of the second node being one or more; the first node transmitting the time difference value and the leap second information to the second predetermined time The second node.
  • BC boundary clock
  • OC ordinary clock
  • the first predetermined time includes a time from the issuance of the leap second event to 12 hours before the leap second event occurs, and the second predetermined time includes the 12 hours before the leap second event occurs. time.
  • the first node transmits the time difference value and the leap second information to the second node in the PTN network in the second predetermined time
  • the first node determines that the time difference value and the leap second information have changed within a third predetermined time, wherein the third predetermined time includes a time within six months after the occurrence of the leap second event; Transmitting, by the first node, the changed time difference value and the leap second information to the second node, where the changed time difference value and the leap second information are used to update the first A two-node time detection state machine for detecting system time.
  • a time processing method comprising: a second node in a packet transfer network PTN receiving a time difference value transmitted by a first one of the PTNs within a second predetermined time
  • the leap second information wherein the first node includes a boundary clock BC or a normal clock OC, the second node is a node other than the first node in the PTN, and the number of the second node is One or more, the time difference value and the leap second information are used to control the second node to perform time hopping processing; and the second node is based on the received time difference when the leap second event occurs Time hopping processing is performed with the leap second information.
  • the second node when the number of the second nodes is multiple, performs time hopping according to the received time difference value and the leap second information when a leap second event occurs.
  • the variable processing includes: when the leap second event occurs, the second node simultaneously performs time hopping processing according to the received time difference value and the leap second information.
  • the second predetermined time includes a time within 12 hours before the leap second event occurs.
  • the method further includes: the second node receiving, by the first node, sending in a third predetermined time The time difference value and the leap second information after the change, wherein the third predetermined time includes a time within 6 months after the occurrence of the leap second event; the second node is according to the changed The time difference value and the leap second information update a time detection state machine of the second node for detecting system time.
  • a time processing apparatus applied to a first node in a packet transfer network PTN, comprising: an obtaining module configured to acquire, during a first predetermined time, a control for the PTN a time difference and leap second information of the second node in the time hopping process, wherein the first node includes a boundary clock BC or a normal clock OC, and the second node is the first one of the PTN a node other than the node, the number of the second node being one or more; and a transmitting module configured to transmit the time difference value and the leap second information to the second node within a second predetermined time .
  • the first predetermined time includes a time from the issuance of the leap second event to 12 hours before the leap second event occurs, and the second predetermined time includes the 12 hours before the leap second event occurs. time.
  • the time processing apparatus further includes: a determining module, configured to determine, in a third predetermined time, that the time difference value and the leap second information have changed, wherein the third predetermined time Included in the six months after the occurrence of the leap second event; the sending module is configured to send the changed time difference value and the leap second information to the second node, wherein the changed time The difference and the leap second information are used to update the time detection state machine of the second node for detecting system time.
  • a determining module configured to determine, in a third predetermined time, that the time difference value and the leap second information have changed, wherein the third predetermined time Included in the six months after the occurrence of the leap second event
  • the sending module is configured to send the changed time difference value and the leap second information to the second node, wherein the changed time The difference and the leap second information are used to update the time detection state machine of the second node for detecting system time.
  • a time processing apparatus applied to a second node in a packet transfer network PTN, comprising: a first receiving module configured to receive by a first node within a second predetermined time a time difference value and a leap second information, where the first node includes a boundary clock BC or a normal clock OC, and the second node is a node other than the first node in the PTN,
  • the number of the two nodes is one or more, the time difference value and the leap second information are used to control the second node to perform time hopping processing; and the processing module is configured to receive according to the reception when the leap second event occurs The time difference value and the leap second information are time-hopped.
  • the processing module when the number of the second nodes is multiple, includes: when the leap second event occurs, the second node is based on the received time difference and the The leap second information is simultaneously time-hopped.
  • the second predetermined time includes a time within 12 hours before the leap second event occurs.
  • the time processing apparatus further includes: a second receiving module, configured to receive, after the third node, the time difference value and the ⁇ after the change sent by the first node Second information, wherein the third predetermined time includes a time within 6 months after the occurrence of the leap second event; the update module is configured to update the second according to the changed time difference value and the leap second information The time detection state machine of the node for detecting system time.
  • the first node in the packet transmission network PTN acquires a time difference value and the leap second information for controlling the second node in the PTN to perform time hopping processing in a first predetermined time.
  • the first node includes a boundary clock BC or a normal clock OC
  • the second node is a node other than the first node in the PTN
  • the number of the second node is one or more
  • the first node transmits the time difference value and the leap second information to the second node in a second predetermined time, and the time hopping information existing in the related art needs to be transmitted to the downstream device hop by hop. This causes the time update to be out of sync, which in turn achieves the effect of implementing time synchronization jumps of downstream devices.
  • FIG. 1 is a structural diagram of a clock networking in a PTN network according to an embodiment of the present invention
  • FIG. 2 is a simplified structural diagram of a clock networking in a PTN network according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a time processing method according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of another time processing method according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a time processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing a preferred structure of a time processing apparatus according to an embodiment of the present invention.
  • Figure 7 is another time processing apparatus in accordance with an embodiment of the present invention.
  • FIG. 8 is a block diagram showing a preferred structure of another time processing apparatus according to an embodiment of the present invention.
  • FIG. 9 is a block diagram of internal modules of a device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of acquisition of a TAI-UTC-OFFSET of a platform in accordance with an embodiment of the present invention
  • FIG. 11 is a schematic diagram of acquiring leap second information of a platform according to an embodiment of the present invention.
  • FIG. 12 is a CMToD format time message diagram according to an embodiment of the present invention.
  • FIG. 13 is a diagram of a CMToD format status message according to an embodiment of the present invention.
  • FIG. 14 is a diagram of a format time message according to an embodiment of the present invention.
  • 15 is a field diagram of leap59 and leap61 in an IEEE 1588v2 protocol announce message header according to an embodiment of the present invention
  • 16 is a diagram of a current UTC OFFSET field in an IEEE 1588v2 protocol announce message according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a time processing method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • Step S302 The first node in the packet transmission network PTN acquires, in a first predetermined time, a time difference value and leap second information for controlling a second node in the PTN to perform time hopping processing, where the first node includes a boundary clock BC or a normal clock OC, the second node is a node other than the first node in the PTN, and the number of the second node is one or more;
  • Step S304 the first node transmits the time difference value and the leap second information to the second node in the second predetermined time.
  • the time difference and the leap second information related to the time hopping are transmitted to other nodes in the PTN network by using the BC or the OC in the PTN network, and the time hopping information existing in the related art needs to be hop by hop.
  • the problem of non-synchronization of time update is caused by the transmission to the downstream device, thereby achieving the effect of realizing the time synchronization jump of the downstream device.
  • the first predetermined time includes a time from the release of the leap second event to 12 hours before the leap second event occurs
  • the second predetermined time may include: a time within 12 hours before the leap second event occurs, thereby knowing that the second The scheduled time is later than the first predetermined time.
  • the method further includes: determining, by the first node, the time difference value and the leap second information in the third predetermined time a change, wherein the third predetermined time includes a time within 6 months after the leap second event occurs; the first node sends the changed time difference value and the leap second information to the second node, wherein the changed time
  • the difference and leap second information is used to update the time detection state machine of the second node for detecting system time.
  • FIG. 4 is a flowchart of another time processing method according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
  • Step S402 the second node in the packet transmission network PTN receives the time difference value and the leap second information sent by the first node in the PTN, where the first node includes the boundary clock BC or the normal clock OC.
  • the second node is a node other than the first node in the PTN, and the number of the second node is one or more, and the time difference and the leap second information are used to control the second node to perform time hopping processing. ;
  • Step S404 the second node performs time hopping processing according to the received time difference value and leap second information when the leap second event occurs.
  • the second node in the PTN network receives the time difference and the leap second information related to the time hop transmission transmitted by the BC or the OC, and performs time hopping processing according to the received information when the leap second event occurs. Therefore, the time hopping information existing in the related art needs to be transmitted to the downstream device hop by hop to cause the time update to be out of synchronization, thereby achieving the effect of implementing the time synchronization jump of the downstream device.
  • the number of the second nodes may be one or more.
  • the second node receives the leap second event according to the receiving
  • the time hopping process of the time difference value and the leap second information includes: when the leap second event occurs, the second node simultaneously performs the time hopping process according to the received time difference value and the leap second information.
  • the second predetermined time includes a time within 12 hours before the leap second event occurs.
  • the method further includes: the second node receiving, after the third predetermined time, the time difference value and the leap second information sent by the first node, where The third predetermined time includes a time within 6 months after the occurrence of the leap second event; the second node updates the time detecting state machine of the second node for detecting the system time according to the changed time difference value and the leap second information.
  • a time processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term "module" can be implemented to be predetermined A combination of functional software and/or hardware.
  • 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 time processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus is applied to a first node in a packet transfer network PTN, where the apparatus includes an obtaining module 52 and a transmitting module 54, The device will be described below.
  • the obtaining module 52 is configured to acquire, in a first predetermined time, a time difference value and leap second information for controlling a second node in the PTN to perform time hopping processing, where the first node includes a boundary clock BC or a normal clock OC.
  • the second node is a node other than the first node in the PTN, and the number of the second node is one or more;
  • the transmitting module 54 is connected to the obtaining module 52, and is configured to set the time difference in the second predetermined time.
  • the value and leap second information is passed to the second node.
  • the first predetermined time includes a time from the release of the leap second event to 12 hours before the leap second event occurs, and the second predetermined time includes the time within 12 hours before the leap second event occurs.
  • FIG. 6 is a block diagram showing a preferred structure of a time processing apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes a determination module 62 and a transmission module 64, in addition to all the modules shown in FIG. The device will be described.
  • the determining module 62 is connected to the transmitting module 54 and configured to determine that the time difference value and the leap second information have changed within a third predetermined time, wherein the third predetermined time includes within 6 months after the occurrence of the leap second event
  • the sending module 64 is connected to the determining module 62, and configured to send the changed time difference value and the leap second information to the second node, where the changed time difference value and the leap second information are used to update the second node.
  • a time detection state machine for detecting system time.
  • FIG. 7 is another time processing apparatus applied to a second node in a packet transfer network PTN, as shown in FIG. 7, the apparatus includes a first receiving module 72 and a processing module 74, according to an embodiment of the present invention. The device will be described below.
  • the first receiving module 72 is configured to receive the time difference value and the leap second information sent by the first node in the second predetermined time, where the first node includes a boundary clock BC or a normal clock OC, and the second node is in the PTN. a node other than the first node, the number of the second node is one or more, the time difference value and the leap second information are used to control the second node to perform time hopping processing; the processing module 74 is connected to the first receiving The module 72 is configured to perform time hopping processing according to the received time difference value and leap second information when the leap second event occurs.
  • the processing module 74 includes: when the leap second event occurs, the second node simultaneously performs time hopping processing according to the received time difference value and the leap second information.
  • the second predetermined time includes a time within 12 hours before the leap second event occurs.
  • FIG. 8 is a block diagram showing a preferred structure of another time processing apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a second receiving module 82 and an updating module 84 in addition to all the modules shown in FIG. The device will be described below.
  • the second receiving module 82 is connected to the processing module 74, and configured to receive the changed time difference value and leap second information sent by the first node, where the third predetermined time includes leap seconds. The time within 6 months after the event occurs; the update module 84 is connected to the second receiving module 82, and is configured to update the time detection of the second node for detecting the system time according to the changed time difference value and the leap second information. state machine.
  • the purpose of this patent embodiment is to enable the device in the PTP network to automatically track the TAI-UTC-OFFSET value of the GM device, modify the TAI-UTC-OFFSET value of the GM device, or update the TAI of the entire network without modifying the configuration of any network.
  • UTC-OFFSET value is to enable the device in the PTP network to automatically track the TAI-UTC-OFFSET value of the GM device, modify the TAI-UTC-OFFSET value of the GM device, or update the TAI of the entire network without modifying the configuration of any network.
  • FIG. 9 is a block diagram of an internal module of a device according to an embodiment of the present invention. As shown in FIG. 9, the device can be divided into two logical parts of a platform and a project, and the two are connected through a logical interface.
  • TAI-UTC-OFFSET the value transfer of TAI-UTC-OFFSET and the delivery and processing of the leap second event.
  • the interaction between the two implements the transfer of TAI-UTC-OFFSET and the TAI when the leap second event occurs.
  • -UTC-OFFSET jump.
  • the device involved in the embodiment of the present invention may be configured as a manual mode and an automatic mode.
  • the manual mode is to manually configure a time difference in the platform, that is, an offset value; the automatic mode automatically selects Tod:leaps, Announce:current UTC OFFSET, Config: One of the GPA-UTC-OFFSET values.
  • TAI-UTC-OFFSET The value of TAI-UTC-OFFSET is passed:
  • FIG. 10 is a schematic diagram of obtaining a TAI-UTC-OFFSET of a platform according to an embodiment of the present invention.
  • the TAI-UTC-OFFSET of the device in the embodiment of the present invention is supported by the ToD message in the GPS ( UBX format and CMToD format), configuration: TAI-UTC-OFFSET value, current UTC OFFSET acquisition in 1588 announce message and these three methods are obtained.
  • Tod:leaps is only the input of UBX format and CMToD format protocol type.
  • the TAI-UTC-OFFSET system inputs the direct shorting configuration: TAI-UTC-OFFSET value.
  • the TAI-UTC-OFFSET system input is one of the Tod:leaps, Announce:current UTC OFFSET, configuration:TAI-UTC-OFFSET values;
  • the offset value is used as the system usage value, the 1588 announce message current UTC OFFSET field padding value, and the ToD message Leap seconds field padding value in the GPS (UBX format and CMToD format).
  • the leap second information (leap 59/61) in the present invention supports the acquisition of the ToD status message in the GPS (only the CMToD format status). Packet support), configuration of leap59/61 value, 1588 announce message in leap59/leap61 and three ways to obtain.
  • ToD: MonitorAlarm (bit7) only has input in the CMToD format protocol type.
  • the TAI-UTC-OFFSET system input is directly shorted to configure the leap59/61 value.
  • the system inputs one of the values from ToD:MonitorAlarm(bit7), Announce:leap59/leap61, configuration:leap59/61;
  • the GM device is manually configured or obtained from the ToD time and status messages (only supported in the CMToD format, while CMToD only supports leap61), obtaining TAI-UTC-OFFSET and leap59/61 information. It is then passed to the synchronized network through the 1588 network.
  • the project starts to maintain the equipment time and enter the leap second waiting state.
  • the project will enter July 1st, 0:00:0, and the next second, on June 30th, at 23:59:58.
  • the leap61 occurs, the project will be on June 30th, 23:59:59.
  • the platform announce message and the project ToD message use the TAI-UTC-OFFSET value maintained by the project at this time (that is, the value of the original TAI-UTC-OFFSET value plus or minus one) ).
  • the GM's leap configuration can be cancelled (or in the CMToD format, waiting for the upstream GPS receiving device to automatically cancel the configuration in the message).
  • FIG. 12 is based on CMToD format time message diagram of the embodiment of the present invention
  • FIG. 13 is a CMToD format status message diagram according to an embodiment of the present invention
  • FIG. 14 is a format time message diagram according to an embodiment of the present invention
  • FIG. 15 is implemented according to the present invention.
  • FIG. 16 is an IEEE 1588v2 protocol announce message according to an embodiment of the present invention.
  • UTC OFFSET field diagram it should be noted that PPS in FIG. 12 is an abbreviation of pulse number per second per pulse, and TAcc is an abbreviation of Time Accuracy time precision.
  • the device involved in the embodiment of the present invention is logically divided into two parts: a platform and a project, wherein the time of the entire device is maintained by the project, and the project is responsible for writing the hardware device time.
  • the PTN synchronization network involved in the present invention has implemented the time synchronization networking of FIG.
  • the method includes:
  • the platform configuration TAI-UTC-OFFSET and leap second information are automatically acquired;
  • the platform receives the offset value and the leap61 information from the received ToD format message at the time of the leap second release time (June 30 or December 23, 23:59:59).
  • the platform will receive the offset and leap second information to issue the project, the project startup time detects the state machine, and detects the system time every second;
  • the project is released at the time of leap second.
  • leap61 occurs, the project will appear 23:59:60 after 23:59:59 on June 30, and then enter 0:0:0 on July 1.
  • the operation mode is the same, the device has a jump at this time, and the platform is sent to the platform for the transmission of the announce message, the GPS time information of the project, and the TAI-UTC-OFFSET value of the time maintenance of the device. Use the changed value;
  • the offset and leap information received by the platform in ToD has changed. At this time, the offset becomes a new value, and the leap state becomes FALSE. ;
  • the platform will release the information of the offset and leap second information cancellation, the project cancels the time detection state machine, and the device enters the normal state.
  • the method includes:
  • the platform configuration TAI-UTC-OFFSET and leap second information are manually configured
  • the platform When the platform is in the leap second release time (June 30 or December 31, 23:59:59) for 12 hours, the platform sends the offset value and leap61 information manually configured by the project;
  • the project startup time detects the state machine and detects the system time every second;
  • the project is released at the time of leap second.
  • leap59 occurs, the project will enter July 1st, 0:00:0, and the next second, on June 30th, at 23:59:58.
  • the project is at 6 After 23:59:59 on the 30th of the month, it appears 23:59:60, then enters July 1st, 0:00:00. If the leap second event occurs on December 31, the mode of operation is the same.
  • the same device has hopped at this time, and the TAI-UTC-OFFSET value sent to the platform for use as an announce message transmission, project GPS time information transmission, and time maintenance of the device uses the changed value;
  • the platform manually configures to cancel the offset and leap configuration, and the device uses the offset value passed in from the upstream GPS source;
  • the platform issues the information of the offset and the leap second information cancellation, the project cancels the time detection state machine, and the device enters the normal state.
  • the method includes:
  • the platform configuration TAI-UTC-OFFSET and leap second information are automatically configured
  • the platform receives the offset value and the leap59/61 information from the received 1588announce message at the time of the leap second release time (June 30 or December 23, 23:59:59).
  • the project startup time detects the state machine and detects the system time every second;
  • the project is released at the time of leap second.
  • leap59 occurs, the project will enter July 1st, 0:00:0, and the next second, on June 30th, at 23:59:58.
  • the project is at 6 After 23:59:59 on the 30th of the month, it appears 23:59:60, then enters July 1st, 0:00:00. If the leap second event occurs on December 31, the mode of operation is the same.
  • the same device has hopped at this time, and the TAI-UTC-OFFSET value sent to the platform for use as an announce message transmission, project GPS time information transmission, and time maintenance of the device uses the changed value;
  • the platform issues the information of the offset and the leap second information cancellation, the project cancels the time detection state machine, and the device enters the normal state.
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in 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 steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
  • the technical solution provided by the foregoing embodiment of the present invention may be applied, and the first node in the packet transmission network PTN is used to control the second node in the PTN to perform time hopping in the first predetermined time.
  • a time difference value of the processing and the leap second information wherein the first node includes a boundary clock BC or a normal clock OC, and the second node is a node other than the first node in the PTN,
  • the number of the second nodes is one or more; the first node transmits the time difference value and the leap second information to the second node in a second predetermined time, which solves the existence in the related art.
  • the time hopping information needs to be transmitted to the downstream device hop by hop to cause the time update to be out of synchronization, thereby achieving the effect of realizing the time synchronization jump of the downstream device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

本发明提供了一种时间处理方法及装置,其中,该方法包括:分组传送网络PTN中的第一节点在第一预定时间内获取用于控制PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,该第一节点包括边界时钟BC或者普通时钟OC,该第二节点为PTN中除第一节点之外的节点,第二节点的个数为一个或多个;第一节点在第二预定时间内将时间差值和闰秒信息传送给第二节点,通过本发明,解决了相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,进而达到了实现下游设备时间同步跳变的效果。

Description

时间处理方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种时间处理方法及装置。
背景技术
在分组传送网(Packet Transport Network,简称为PTN)中实现频率和时间同步的典型组网可以如图1、2所示,图1是根据本发明实施例的PTN网络中的时钟组网结构图。图2是根据本发明实施例的PTN网络中的简化后的时钟组网结构图,需要说明的是,图1中的BMC是最佳主时钟best master clock的缩写。
全球定位系统(Global Positioning System,简称为GPS)被普遍地用来作为时间和频率的同步参考基准。作为整个组网的时钟和时间输入。IEEE 1588v2规范了采用精确时间协议(Precision Time Protocol,简称PTP)实现时间同步和时钟同步。
图1中的组网,在只讨论时钟同步时,常常被简化为如图2所示的组网图。
在PTP系统中需要使用到下面几种时间格式:
a)TAI(International Atomic Time,国际原子时间);
b)UTC(Coordinated Universal Time,协调世界时间);
c)GPS时间(Global Positioning System Time,全球定位系统时间);
其中,在产生UTC时间的过程中还涉及以下几种时间格式:
a)UT(Universal Time,世界时);
b)UT0(零类世界时,地球自转作为1天,再细分得到秒长);
c)UT1(一类世界时,恒星时,对UT0做地球自转轴的微小移动进行修正);
GPS、TAI和UTC时间格式中,一秒长度是一样的,都是以铯原子(Cs133)超精细能级跃迁辐射的9,192,631,770个周期所持续的时间为1秒。而UT1是以地球自转为基础的时间计量系统,是根据地球自转周期作为秒长的确定依据。
GPS和TAI秒长更准,但是UT1更符合我们日常生活用时。因此出现了协调世界时UTC,即UTC在时间上向UT1靠齐,差值保持0.9秒以内,但是按照TAI的秒长来增长。若与UT1的差值大于或者小于0.9秒则发布闰秒,使UTC与UT1时刻一致。例如,规定1958年1月1日0时UTC-TAI=0,到1972年1月1日凌晨开始实施UTC时间时,UTC已经落后TAI有10秒。若有闰秒,UTC在一年的6月30日和12月31日末进行闰秒发布。
1958年1月1日0时,TAI开始实施,计秒数,此时TAI-UT1=0(TAI_UTC_OFFSET=0)。
1972年1月1日0时,UTC开始实施,实施的起点定为1970年1月1日0时。以此刻UT1时间为依据,秒长按照原子秒长计数。此时TAI_UTC_OFFSET=10。
1980年1月6日0时,GPS开始实施,计周(week)数,1024周反转一次,计数清零。第一个GPS时间起点为UTC时间1980年1月6日0时(星期日),此时TAI_UTC_OFFSET=19,GPS_UTC_OFFSET=0。GPS时间于1999年8月22日结束时清零,从0开始计数。GPS与TAI秒长一致,两者时差恒定为19s。
例如2014年1月23日时,TAI_UTC_OFFSET=36s。
其中GPS中携带时间信息的报文当前时间(Time of Day,简称为ToD)分为以下三种格式:
a)NMEA;
b)UBX;
c)CMToD。
但是,在目前所见的PTP系统设计中,TAI-UTC-OFFSET是通过系统命令来设置的,这样一旦发生闰秒事件,需要将PTP时间网中的所有设备的配置值都更新一下,或者让祖父时钟(Grandmaster Clock,简称为GM)将跳变值逐跳传给下游设备,在传递时间内,设备出现不同步。这些问题给维护和开通带来很大的困难,也给已经运行的网络带来不必要的因为配置更新带来的问题。
针对相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种时间处理方法及装置,以至少解决相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题。
根据本发明的一个实施例,提供了一种时间处理方法,包括:分组传送网络PTN中的第一节点在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,所述第一节点包括边界时钟(Boundary clock,简称为BC或者普通时钟(Ordinary clock,简称为OC),所述第二节点为所示PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;所述第一节点在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点。
在本发明实施例中,所述第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
在本发明实施例中,在所述第一节点在所述第二预定时间内将所述时间差值和所述闰秒信息传送给所述PTN网络中的所述第二节点之后,还包括:所述第一节点在第三预定时间内确定所述时间差值和所述闰秒信息发生了变化,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;所述第一节点将变化后的所述时间差值和所述闰秒信息发送给所述第二节点,其中,变化后的所述时间差值和所述闰秒信息用于更新所述第二节点的用于检测系统时间的时间检测状态机。
根据本发明的另一实施例,提供了一种时间处理方法,包括:分组传送网络PTN中的第二节点在第二预定时间内接收由所述PTN中的第一节点发送的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个,所述时间差值和所述闰秒信息用于控制所述第二节点进行时间跳变处理;所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理。
在本发明实施例中,当所述第二节点的个数为多个时,所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理包括:所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息同时进行时间跳变处理。
在本发明实施例中,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
在本发明实施例中,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理之后,还包括:所述第二节点在第三预定时间内接收由所述第一节点发送的发生变化后的所述时间差值和所述闰秒信息,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;所述第二节点根据变化后的所述时间差值和所述闰秒信息更新所述第二节点的用于检测系统时间的时间检测状态机。
根据本发明的另一实施例,提供了一种时间处理装置,应用于分组传送网络PTN中的第一节点中,包括:获取模块,设置为在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;传送模块,设置为在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点。
在本发明实施例中,所述第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
在本发明实施例中,所述时间处理装置还包括:确定模块,设置为在第三预定时间内确定所述时间差值和所述闰秒信息发生了变化,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;发送模块,设置为将变化后的所述时间差值和所述闰秒信息发送给所述第二节点,其中,变化后的所述时间差值和所述闰秒信息用于更新所述第二节点的用于检测系统时间的时间检测状态机。
根据本发明的另一实施例,提供了一种时间处理装置,应用于分组传送网络PTN中的第二节点中,包括:第一接收模块,设置为在第二预定时间内接收由第一节点发送的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个,所述时间差值和所述闰秒信息用于控制所述第二节点进行时间跳变处理;处理模块,设置为在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理。
在本发明实施例中,当所述第二节点的个数为多个时,所述处理模块包括:所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息同时进行时间跳变处理。
在本发明实施例中,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
在本发明实施例中,所述时间处理装置还包括:第二接收模块,设置为在第三预定时间内接收由所述第一节点发送的发生变化后的所述时间差值和所述闰秒信息,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;更新模块,设置为根据变化后的所述时间差值和所述闰秒信息更新所述第二节点的用于检测系统时间的时间检测状态机。
通过本发明实施例,采用分组传送网络PTN中的第一节点在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和所述闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;所述第一节点在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点,解决了相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,进而达到了实现下游设备时间同步跳变的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的PTN网络中的时钟组网结构图;
图2是根据本发明实施例的PTN网络中的简化后的时钟组网结构图;
图3是根据本发明实施例的一种时间处理方法的流程图;
图4是根据本发明实施例的另一种时间处理方法的流程图;
图5是根据本发明实施例的一种时间处理装置的结构框图;
图6是根据本发明实施例的一种时间处理装置的优选结构框图;
图7是根据本发明实施例的另一种时间处理装置;
图8是根据本发明实施例的另一种时间处理装置的优选结构框图;
图9是根据本发明实施例的设备内部模块划分图;
图10是根据本发明实施例中的平台的TAI-UTC-OFFSET的获取示意图;
图11是根据本发明实施例的平台的闰秒信息获取示意图;
图12是根据本发明实施例的CMToD格式时间报文图;
图13是根据本发明实施例的CMToD格式状态报文图;
图14是根据本发明实施例的格式时间报文图;
图15是根据本发明实施例的IEEE 1588v2协议announce报文header里leap59、leap61字段图;
图16是根据本发明实施例的IEEE 1588v2协议announce报文里current UTC OFFSET字段图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种时间处理方法,图3是根据本发明实施例的一种时间处理方法的流程图,如图3所示,该流程包括如下步骤:
步骤S302,分组传送网络PTN中的第一节点在第一预定时间内获取用于控制该PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,该第一节点包括边界时钟BC或者普通时钟OC,该第二节点为PTN中除第一节点之外的节点,第二节点的个数为一个或多个;
步骤S304,第一节点在第二预定时间内将时间差值和闰秒信息传送给第二节点。
通过上述步骤,采用PTN网络中的BC或者OC将与时间跳变相关的时间差值和闰秒信息传送给该PTN网络中的其他节点,解决了相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,进而达到了实现下游设备时间同步跳变的效果。
第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,第二预定时间可以包括:闰秒事件发生前的12个小时内的时间,由此可知,该第二预定时间晚于第一预定时间。
在第一节点在第二预定时间内将时间差值和闰秒信息传送给PTN网络中的第二节点之后,还包括:第一节点在第三预定时间内确定时间差值和闰秒信息发生了变化,其中,该第三预定时间包括闰秒事件发生后的6个月内的时间;第一节点将变化后的时间差值和闰秒信息发送给第二节点,其中,变化后的时间差值和闰秒信息用于更新第二节点的用于检测系统时间的时间检测状态机。
在本实施例中还提供了一种时间处理方法,图4是根据本发明实施例的另一种时间处理方法的流程图,如图4所示,该流程包括如下步骤:
步骤S402,分组传送网络PTN中的第二节点在第二预定时间内接收由PTN中的第一节点发送的时间差值和闰秒信息,其中,该第一节点包括边界时钟BC或者普通时钟OC,该第二节点为PTN中除第一节点之外的节点,并且,第二节点的个数为一个或多个,该时间差值和闰秒信息用于控制第二节点进行时间跳变处理;
步骤S404,第二节点在闰秒事件发生时,根据接收的时间差值和闰秒信息进行时间跳变处理。
通过上述步骤,采用PTN网络中的第二节点接收BC或者OC传送的与时间跳变相关的时间差值和闰秒信息,在闰秒事件发生时,根据接收的信息进行时间跳变处理。从而解决了相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,进而达到了实现下游设备时间同步跳变的效果。
由上述可知,第二节点的个数可以为一个或多个,在一个可选的实施例中,当第二节点的个数为多个时,第二节点在闰秒事件发生时,根据接收的时间差值和闰秒信息进行时间跳变处理包括:第二节点在闰秒事件发生时,根据接收的时间差值和闰秒信息同时进行时间跳变处理。
其中,第二预定时间包括闰秒事件发生前的12个小时内的时间。
根据接收的时间差值和闰秒信息进行时间跳变处理之后,还包括:第二节点在第三预定时间内接收由第一节点发送的发生变化后的时间差值和闰秒信息,其中,该第三预定时间包括闰秒事件发生后的6个月内的时间;第二节点根据变化后的时间差值和闰秒信息更新第二节点的用于检测系统时间的时间检测状态机。
在本实施例中还提供了一种时间处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定 功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本发明实施例的一种时间处理装置的结构框图,如图5所示,该装置应用于分组传送网络PTN中的第一节点中,该装置包括获取模块52和传送模块54,下面对该装置进行说明。
获取模块52,设置为在第一预定时间内获取用于控制PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,该第一节点包括边界时钟BC或者普通时钟OC,第二节点为PTN中除第一节点之外的节点,第二节点的个数为一个或多个;传送模块54,连接至上述获取模块52,设置为在第二预定时间内将时间差值和闰秒信息传送给第二节点。
其中,第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,第二预定时间包括闰秒事件发生前的12个小时内的时间。
图6是根据本发明实施例的一种时间处理装置的优选结构框图,如图6所示,该装置除包括图5所示的所有模块外,还包括确定模块62和发送模块64,下面对该装置进行说明。
确定模块62,连接至上述传送模块54,设置为在第三预定时间内确定时间差值和闰秒信息发生了变化,其中,该第三预定时间包括闰秒事件发生后的6个月内的时间;发送模块64,连接至上述确定模块62,设置为将变化后的时间差值和闰秒信息发送给第二节点,其中,变化后的时间差值和闰秒信息用于更新第二节点的用于检测系统时间的时间检测状态机。
图7是根据本发明实施例的另一种时间处理装置,该装置应用于分组传送网络PTN中的第二节点中,如图7所示,该装置包括第一接收模块72和处理模块74,下面对该装置进行说明。
第一接收模块72,设置为在第二预定时间内接收由第一节点发送的时间差值和闰秒信息,其中,该第一节点包括边界时钟BC或者普通时钟OC,第二节点为PTN中除第一节点之外的节点,第二节点的个数为一个或多个,时间差值和闰秒信息用于控制第二节点进行时间跳变处理;处理模块74,连接至上述第一接收模块72,设置为在闰秒事件发生时,根据接收的时间差值和闰秒信息进行时间跳变处理。
其中,当第二节点的个数为多个时,处理模块74包括:第二节点在闰秒事件发生时,根据接收的时间差值和闰秒信息同时进行时间跳变处理。
上述第二预定时间包括闰秒事件发生前的12个小时内的时间。
图8是根据本发明实施例的另一种时间处理装置的优选结构框图,如图8所示,该装置除包括图7所示的所有模块外,还包括第二接收模块82和更新模块84,下面对该装置进行说明。
第二接收模块82,连接至上述处理模块74,设置为在第三预定时间内接收由第一节点发送的发生变化后的时间差值和闰秒信息,其中,该第三预定时间包括闰秒事件发生后的6个月内的时间;更新模块84,连接至上述第二接收模块82,设置为根据变化后的时间差值和闰秒信息更新第二节点的用于检测系统时间的时间检测状态机。
本专利实施例的目的是让PTP网络中的设备自动跟踪GM设备的TAI-UTC-OFFSET值,修改GM设备的TAI-UTC-OFFSET值或者不修改任何网络的配置就可以更新整网的TAI-UTC-OFFSET值。
图9是根据本发明实施例的设备内部模块划分图,如图9所示,该设备可以划分为平台和项目2个逻辑部分,二者之间通过逻辑接口实现连接。
在该实施例中,可以划分为两方面内容,TAI-UTC-OFFSET的值传递和闰秒事件的传递和处理,两者交互作用实现TAI-UTC-OFFSET的传递和闰秒事件发生时的TAI-UTC-OFFSET的跳变。
本发明实施例中所涉及到的设备可以配置为手动模式和自动模式,手动模式为手动在平台配置时间差值,即offset值;自动模式为设备自动选择Tod:leaps、Announce:current UTC OFFSET、config:GPA-UTC-OFFSET值中的一个。
TAI-UTC-OFFSET的值传递:
图10是根据本发明实施例中的平台的TAI-UTC-OFFSET的获取示意图,如图10所示,本发明实施例中的设备的TAI-UTC-OFFSET支持由GPS中的ToD报文获取(UBX格式和CMToD格式)、配置:TAI-UTC-OFFSET值、1588的announce报文中current UTC OFFSET获取和这三种方式获取。其中Tod:leaps仅是UBX格式和CMToD格式协议类型才会有的输入。对于手动输入模式,TAI-UTC-OFFSET系统输入直接短接配置:TAI-UTC-OFFSET值。对于自动模式,TAI-UTC-OFFSET系统输入来自Tod:leaps、Announce:current UTC OFFSET、配置:TAI-UTC-OFFSET值中的一个;
在设备选择好了offset值后,则将该offset值作为系统使用值、1588的announce报文current UTC OFFSET字段填充值和GPS中的ToD报文Leap seconds字段填充值(UBX格式和CMToD格式)。
闰秒事件发生时的TAI-UTC-OFFSET的值传递:
图11是根据本发明实施例的平台的闰秒信息获取示意图,如图11所示,本发明中的闰秒信息(leap59/61)支持由GPS中的ToD状态报文获取(仅CMToD格式状态报文支持)、配置leap59/61值、1588的announce报文中leap59/leap61和三种方式获取。其中ToD:MonitorAlarm(bit7)只在CMToD格式协议类型才会有的输入。对于手动输入模式,TAI-UTC-OFFSET系统输入直接短接配置leap59/61值。对于自动模式,系统输入来自ToD:MonitorAlarm(bit7)、Announce:leap59/leap61、配置:leap59/61值中的一个;
在闰秒事件发生的12小时之内,GM设备由手动配置或者从ToD时间和状态报文里获取(只在CMToD格式支持,同时CMToD只支持leap61),获取TAI-UTC-OFFSET和leap59/61信息。然后通过1588网络传递给同步的全网。项目此时开始维护设备时间和进入闰秒等待状态。在leap59发生时,项目在6月30号23点59分58秒过后下一秒直接进入7月1号0时0分0秒;在leap61发生时,项目在6月30号23点59分59秒过后出现23点59分60秒,然后再进入7月1号0时0分0秒。如果闰秒事件发生在12月31,操作方式相同。
在闰秒事件发生时和发生后,平台announce报文和项目ToD报文此时采用项目自己维护的TAI-UTC-OFFSET值(即原来的TAI-UTC-OFFSET值加1或者减1后的值)。再在半年之内(即下一个闰秒发布时间到来之前),取消掉GM的leap配置即可(或者在CMToD格式时,等待上游GPS接收设备自动在报文里取消该配置)。
通过该操作,时钟同步网络中的所有设备都各自的在闰秒跳变时间完成跳变,而且所有跳变配置都是只需要配置GM设备或者从ToD报文中获取无需配置(只在CMToD格式GPS中实现),达到了既能同时跳变又解决全网配置的维护困难。
CMToD、UBX格式的ToD报文offset字段、CMToD格式的状态报文leap状态字段、announce报文leap59/61状态字段、announce报文current UTC OFFSET字段协议内容分别见图12-16,图12是根据本发明实施例的CMToD格式时间报文图,图13是根据本发明实施例的CMToD格式状态报文图,图14是根据本发明实施例的格式时间报文图,图15是根据本发明实施例的IEEE 1588v2协议announce报文header里leap59、leap61字段图,图16是根据本发明实施例的IEEE 1588v2协议announce报文里current  UTC OFFSET字段图,需要说明的是,图12中PPS是每秒脉冲数pulses per second的简称,TAcc是Time Accuracy时间精度的简称。
下面再结合具体实施例对本发明进行说明。
本发明实施例中涉及的设备逻辑上分为平台和项目两个部分,其中整个设备的时间由项目来维护,项目负责写入硬件设备时间。本发明涉及的PTN同步网络已经实现了如图1的时间同步组网。
实例一:
该实施例用于时钟同步网络中的GM设备时,且GPS源为CMToD格式时,包括:
平台配置TAI-UTC-OFFSET和闰秒信息为自动获取;
平台在闰秒发布时间(6月30号或者12月31号的23点59分59秒)12小时时,从接收到的ToD格式报文里offset值和leap61信息;
平台将获得的offset和闰秒信息下发项目,项目启动时间检测状态机,每秒检测一次系统时间;
项目在闰秒发布时间点,在leap61发生时,项目在6月30号23点59分59秒过后出现23点59分60秒,然后再进入7月1号0时0分0秒。如果闰秒事件发生在12月31,操作方式相同,设备此时发生了跳变,上送给平台用作announce报文发送、项目GPS时间信息发送和本设备时间维护的TAI-UTC-OFFSET值均使用变化后的值;
在闰秒事件发生后半年之内(即下一个闰秒发布时间到来之前),平台接收到ToD中的offset和leap信息发生了变化,此时offset变成了新的值,leap状态变为FALSE;
平台将获得的offset和闰秒信息取消的信息下发项目,项目取消时间检测状态机,设备进入正常状态。
实例二:
该实施例用于时钟同步网络中的GM设备时,GPS源为非CMToD格式时,包括:
平台配置TAI-UTC-OFFSET和闰秒信息为手动配置;
平台在闰秒发布时间(6月30号或者12月31号的23点59分59秒)12小时时,平台下发给项目手动配置的offset值和leap61信息;
项目启动时间检测状态机,每秒检测一次系统时间;
项目在闰秒发布时间点,在leap59发生时,项目在6月30号23点59分58秒过后下一秒直接进入7月1号0时0分0秒;在leap61发生时,项目在6月30号23点59分59秒过后出现23点59分60秒,然后再进入7月1号0时0分0秒。如果闰秒事件发生在12月31,操作方式相。同设备此时发生了跳变,上送给平台用作announce报文发送、项目GPS时间信息发送和本设备时间维护的TAI-UTC-OFFSET值均使用变化后的值;
在闰秒事件发生后半年之内(即下一个闰秒发布时间到来之前),平台手动配置取消offset和leap配置,设备采用从上游GPS源传递进来的offset值;
平台将offset和闰秒信息取消的信息下发项目,项目取消时间检测状态机,设备进入正常状态。
实例三:
该实施例用于时钟同步网络中的世界时钟/普通时钟(Boundary Clock/Ordinary Clock,简称为BC/OC)设备时,包括:
平台配置TAI-UTC-OFFSET和闰秒信息为自动配置;
平台在闰秒发布时间(6月30号或者12月31号的23点59分59秒)12小时时,从接收到的1588announce报文里offset值和leap59/61信息;
项目启动时间检测状态机,每秒检测一次系统时间;
项目在闰秒发布时间点,在leap59发生时,项目在6月30号23点59分58秒过后下一秒直接进入7月1号0时0分0秒;在leap61发生时,项目在6月30号23点59分59秒过后出现23点59分60秒,然后再进入7月1号0时0分0秒。如果闰秒事件发生在12月31,操作方式相。同设备此时发生了跳变,上送给平台用作announce报文发送、项目GPS时间信息发送和本设备时间维护的TAI-UTC-OFFSET值均使用变化后的值;
在闰秒事件发生后半年之内(即下一个闰秒发布时间到来之前),平台接收到1588announce中的offset和leap信息发生了变化,此时offset变成了新的值,leap59/61状态变为FALSE;
平台将offset和闰秒信息取消的信息下发项目,项目取消时间检测状态机,设备进入正常状态。
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例上述提供的技术方案,可以应用与时间处理过程中,采用分组传送网络PTN中的第一节点在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和所述闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;所述第一节点在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点,解决了相关技术中存在的时间跳变信息需要逐跳传递给下游设备导致时间更新不同步问题,进而达到了实现下游设备时间同步跳变的效果。

Claims (14)

  1. 一种时间处理方法,包括:
    分组传送网络PTN中的第一节点在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;
    所述第一节点在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点。
  2. 根据权利要求1所述的方法,其中,所述第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
  3. 根据权利要求1所述的方法,其中,在所述第一节点在所述第二预定时间内将所述时间差值和所述闰秒信息传送给所述PTN中的所述第二节点之后,还包括:
    所述第一节点在第三预定时间内确定所述时间差值和所述闰秒信息发生了变化,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;
    所述第一节点将变化后的所述时间差值和所述闰秒信息发送给所述第二节点,其中,变化后的所述时间差值和所述闰秒信息用于更新所述第二节点的用于检测系统时间的时间检测状态机。
  4. 一种时间处理方法,包括:
    分组传送网络PTN中的第二节点在第二预定时间内接收由所述PTN中的第一节点发送的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个,所述时间差值和所述闰秒信息用于控制所述第二节点进行时间跳变处理;
    所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理。
  5. 根据权利要求4所述的方法,其中,当所述第二节点的个数为多个时,所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理包括:
    所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息同时进行时间跳变处理。
  6. 根据权利要求4所述的方法,其中,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
  7. 根据权利要求4所述的方法,其中,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理之后,还包括:
    所述第二节点在第三预定时间内接收由所述第一节点发送的发生变化后的所述时间差值和所述闰秒信息,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;
    所述第二节点根据变化后的所述时间差值和所述闰秒信息更新所述第二节点的用于检测系统时间的时间检测状态机。
  8. 一种时间处理装置,应用于分组传送网络PTN中的第一节点中,包括:
    获取模块,设置为在第一预定时间内获取用于控制所述PTN中的第二节点进行时间跳变处理的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个;
    传送模块,设置为在第二预定时间内将所述时间差值和所述闰秒信息传送给所述第二节点。
  9. 根据权利要求8所述的装置,其中,所述第一预定时间包括从闰秒事件发布到闰秒事件发生前12小时之间的时间,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
  10. 根据权利要求8所述的装置,其中,还包括:
    确定模块,设置为在第三预定时间内确定所述时间差值和所述闰秒信息发生了变化,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;
    发送模块,设置为将变化后的所述时间差值和所述闰秒信息发送给所述第二节点,其中,变化后的所述时间差值和所述闰秒信息用于更新所述第二节点的用于检测系统时间的时间检测状态机。
  11. 一种时间处理装置,应用于分组传送网络PTN中的第二节点中,包括:
    第一接收模块,设置为在第二预定时间内接收由第一节点发送的时间差值和闰秒信息,其中,所述第一节点包括边界时钟BC或者普通时钟OC,所述第二节点为所述PTN中除所述第一节点之外的节点,所述第二节点的个数为一个或多个,所述时间差值和所述闰秒信息用于控制所述第二节点进行时间跳变处理;
    处理模块,设置为在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息进行时间跳变处理。
  12. 根据权利要求11所述的装置,其中,当所述第二节点的个数为多个时,所述处理模块包括:
    所述第二节点在闰秒事件发生时,根据接收的所述时间差值和所述闰秒信息同时进行时间跳变处理。
  13. 根据权利要求11所述的装置,其中,所述第二预定时间包括闰秒事件发生前的12个小时内的时间。
  14. 根据权利要求11所述的装置,其中,还包括:
    第二接收模块,设置为在第三预定时间内接收由所述第一节点发送的发生变化后的所述时间差值和所述闰秒信息,其中,所述第三预定时间包括闰秒事件发生后的6个月内的时间;
    更新模块,设置为根据变化后的所述时间差值和所述闰秒信息更新所述第二节点的用于检测系统时间的时间检测状态机。
PCT/CN2015/083801 2015-01-12 2015-07-10 时间处理方法及装置 WO2016112664A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510014023.2 2015-01-12
CN201510014023.2A CN105846937B (zh) 2015-01-12 2015-01-12 时间处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016112664A1 true WO2016112664A1 (zh) 2016-07-21

Family

ID=56405194

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083801 WO2016112664A1 (zh) 2015-01-12 2015-07-10 时间处理方法及装置

Country Status (2)

Country Link
CN (1) CN105846937B (zh)
WO (1) WO2016112664A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259105A (zh) * 2016-12-28 2018-07-06 中国移动通信有限公司研究院 一种时间同步处理方法、装置及同步网络

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3553994B1 (en) * 2016-12-30 2023-05-31 Huawei Technologies Co., Ltd. Method for exchanging time synchronisation message, and network device
CN108401287B (zh) * 2018-02-01 2021-03-12 中国联合网络通信集团有限公司 一种组网方法及装置
CN110071777B (zh) * 2019-04-11 2020-10-30 国网河南省电力公司焦作供电公司 PTP over PTN的currentUtcOffset参数自适应处理方法
CN112153731B (zh) * 2019-06-27 2022-05-31 华为技术有限公司 一种时钟调整方法及通信装置
CN110971330B (zh) * 2019-11-20 2021-01-26 京信通信系统(中国)有限公司 一种授时服务器系统及闰秒自动调整方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716949A (zh) * 2004-07-02 2006-01-04 大唐电信科技股份有限公司 时间同步网络的组网实现方法
US20080075217A1 (en) * 2006-09-22 2008-03-27 Ilnicki Slawomir K Mechanism For Making Delay From Network Elements Transparent To IEEE 1588 Protocols
CN101938318A (zh) * 2010-09-15 2011-01-05 中兴通讯股份有限公司 汇聚式网络中设备间的同步方法、系统和汇聚环设备
CN102237941A (zh) * 2010-04-28 2011-11-09 中兴通讯股份有限公司 时间同步系统及方法
CN103428081A (zh) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 一种分组网络同步方法、装置及系统
CN103516454A (zh) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 时钟同步方法、装置及通信设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447931B1 (en) * 2005-12-09 2008-11-04 Rockwell Automation Technologies, Inc. Step time change compensation in an industrial automation network
CN102281114B (zh) * 2010-06-10 2014-10-15 郑州威科姆科技股份有限公司 授时时间闰秒处理方法
CN102981403B (zh) * 2012-09-26 2014-05-21 广东大普通信技术有限公司 一种时钟闰秒处理方法及其系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716949A (zh) * 2004-07-02 2006-01-04 大唐电信科技股份有限公司 时间同步网络的组网实现方法
US20080075217A1 (en) * 2006-09-22 2008-03-27 Ilnicki Slawomir K Mechanism For Making Delay From Network Elements Transparent To IEEE 1588 Protocols
CN102237941A (zh) * 2010-04-28 2011-11-09 中兴通讯股份有限公司 时间同步系统及方法
CN101938318A (zh) * 2010-09-15 2011-01-05 中兴通讯股份有限公司 汇聚式网络中设备间的同步方法、系统和汇聚环设备
CN103428081A (zh) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 一种分组网络同步方法、装置及系统
CN103516454A (zh) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 时钟同步方法、装置及通信设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259105A (zh) * 2016-12-28 2018-07-06 中国移动通信有限公司研究院 一种时间同步处理方法、装置及同步网络
CN108259105B (zh) * 2016-12-28 2019-12-13 中国移动通信有限公司研究院 一种时间同步处理方法、装置及同步网络

Also Published As

Publication number Publication date
CN105846937A (zh) 2016-08-10
CN105846937B (zh) 2019-07-23

Similar Documents

Publication Publication Date Title
WO2016112664A1 (zh) 时间处理方法及装置
CN102577194B (zh) 使分布式网络内时钟同步的系统和方法
US10432336B2 (en) System and method of synchronizing a distributed clock in a packet-compatible network
EP3491753B1 (en) System and methods for network synchronization
US8953645B2 (en) Communication system, communication apparatus and time synchronization method
RU2660458C1 (ru) Способ синхронизации тактовых генераторов сетевых устройств
US9577774B2 (en) Time synchronization method and system
KR100876776B1 (ko) 통신 시스템에서 gps 정보를 이용한 시간 동기화 방법및 장치
EP2595331A2 (en) Communication apparatus for performing time synchronization
US20150295702A1 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
CN102195766B (zh) 一种时间同步的方法和时钟设备
CN103563287B (zh) 同步设备和同步方法
US10901372B2 (en) Time synchronization device, time synchronization system, and time synchronization method
EP2541815A1 (en) Clock synchronization network
CN110100408B (zh) 交互时间同步报文的方法以及网络装置
CN102291169A (zh) 一种卫星星上高精度时间同步方法
EP3785383A1 (en) Timing synchronization over cable networks
WO2017071276A1 (zh) 中继系统的空口时间同步方法、设备
CN112821974B (zh) 一种车载ecu高精度时间同步方法及装置
CN106688207A (zh) 用于确定通信网络中的电报的传播时间的方法以及相应的网络组件
JP2012520591A (ja) 少なくとも1つのタイミング配信プロトコルにより第1のデータおよび第2のデータを別々に伝送することによってクロックを同期するための方法、ならびに関連するシステムおよびモジュール
US11039042B2 (en) Network system, transmission apparatus, and reception apparatus
JP3538374B2 (ja) 時刻供給システム及び時刻供給装置
JP2022096504A (ja) 通信装置、通信装置の制御方法およびプログラム
CN110138487B (zh) 一种时间噪声传递特性测量方法和网络节点

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

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

Country of ref document: EP

Kind code of ref document: A1