CN105846937A - Time processing method and device - Google Patents
Time processing method and device Download PDFInfo
- Publication number
- CN105846937A CN105846937A CN201510014023.2A CN201510014023A CN105846937A CN 105846937 A CN105846937 A CN 105846937A CN 201510014023 A CN201510014023 A CN 201510014023A CN 105846937 A CN105846937 A CN 105846937A
- Authority
- CN
- China
- Prior art keywords
- time
- leap
- nodal point
- information
- time difference
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
Abstract
The invention provides a time processing method and device. The method comprises the following steps that a first node in a packet transport network PTN obtains a time difference and leap second information used for controlling a second node in the PTN to carry out time-hopping processing in a first scheduled time, wherein the first node comprises a boundary clock BC or an ordinary clock OC, the second node is a node in the PTN except for the first node, and one or more second nodes are provided; and the first node transports the time difference and the leap second information to the second node in a second scheduled time. Through the time processing method and device, a problem that the time-hopping information needs to be transported to downstream equipment hop by hop to cause asynchronous time updating in the correlation technique is solved, so that an effect of realizing time synchronization hop of the downstream equipment is realized.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of time processing method and device.
Background technology
Packet Transport Network (Packet Transport Network, referred to as PTN) realizes frequency and time
Between synchronize typical networking can as shown in Figure 1, 2, Fig. 1 is in PTN network according to embodiments of the present invention
Clock networking structure figure.Fig. 2 is the clock group after the simplification in PTN network according to embodiments of the present invention
Web frame figure.
Global positioning system (Global Positioning System, referred to as GPS) is by universally with being used as
The reference synchronization benchmark of time and frequency.Clock and time input as whole networking.IEEE 1588v2 advises
Model employing Precision Time Protocol (Precision Time Protocol is called for short PTP) realize time synchronized and time
Clock synchronizes.
Networking in Fig. 1, when only discussing clock and synchronizing, is usually reduced to networking diagram as shown in Figure 2.
Need use to following several time formats in PTP system:
A) TAI (International Atomic Time, the IAT);
B) UTC (Coordinated Universal Time, coordinated universal time);
C) gps time (Global Positioning System Time, GPS time);
Wherein, during producing UTC time, following several time format is further related to:
A) UT (Universal Time, universal time);
B) UT0 (null class universal time, earth rotation, as 1 day, subdivides that to obtain the second long);
C) UT1 (a class universal time, sidereal time, repaiied by the minute movement that UT0 does earth's axis
Just);
In GPS, TAI and UTC time form, within one second, length is the same, is all with Cs atom (Cs133)
9,192,631,770 durations in cycle of hyperfine levels transition radiation are 1 second.And UT1 be with
Time measurement system based on earth rotation, is as second long determination foundation according to earth rotation period.
GPS and the TAI second is long more accurate, but UT1 more meets our daily life used time.Therefore association is occurred in that
Adjust universal time UTC, i.e. UTC in time to UT1 snap, within difference keeps 0.9 second, but according to
The second of TAI is long to be increased.If being more than or less than 0.9 second with the difference of UT1, issuing leap second, making UTC
Consistent with the UT1 moment.Such as, it is stipulated that UTC-TAI=0 during 1 day 0 January in 1958, by 1972 1
When the moon, morning came into effect UTC time on 1st, UTC has already fallen behind TAI 10 seconds.If having leap second, UTC
Leap second issue is carried out in the June 30 of 1 year and December end on the 31st.
During 1 day 0 January in 1958, TAI comes into effect, and counts number of seconds, now TAI-UT1=0
(TAI_UTC_OFFSET=0).
During 1 day 0 January in 1972, UTC comes into effect, and the starting point of enforcement is set to 1 day 0 January in 1970
Time.With the UT1 time this moment as foundation, the second is long according to atomic second length counting.Now TAI_UTC_OFFSET=10.
During 6 days 0 January in 1980, GPS comes into effect, meter week (week) number, 1024 weekly reversals once,
Counting resets.When first gps time starting point is UTC time 6 days 0 January in 1980 (Sunday),
Now TAI_UTC_OFFSET=19, GPS_UTC_OFFSET=0.Gps time is in August, 1999
Reset during 22 end of day, start counting up from 0.GPS with the TAI second is long consistent, and both time differences are constant for 19s.
Such as during 2014 on January 23, TAI_UTC_OFFSET=36s.
GPS wherein carries the message current time (Time of Day, referred to as ToD) point of temporal information
For following three kinds of forms:
a)NMEA;
b)UBX;
c)CMToD。
But, in the most seen PTP system design, TAI-UTC-OFFSET is to pass through system command
Arrange, leap second event the most once occurs, needs the Configuration Values of all devices in being netted the PTP time
All update, or allow grandfather's clock (Grandmaster Clock, referred to as GM) by hop value hop-by-hop
Passing to upstream device, in passing time, equipment occurs asynchronous.These problems are given to safeguard and open and are brought very
Big difficulty, brings the unnecessary problem brought because of config update also to the network run.
Needing hop-by-hop to pass to upstream device for time saltus step information present in correlation technique causes the time more
New asynchronous problem, the most not yet proposes effective solution.
Summary of the invention
The invention provides a kind of time processing method and device, at least to solve the time present in correlation technique
Saltus step information need hop-by-hop pass to upstream device cause the time update asynchronous problem.
According to an aspect of the invention, it is provided a kind of time processing method, including: grouping conveying network
Primary nodal point in PTN obtains within first scheduled time and carries out for the secondary nodal point controlling in described PTN
Time saltus step process time difference and leap second information, wherein, described primary nodal point include boundary clock BC or
Person ordinary clock OC, described secondary nodal point is the node in shown PTN in addition to described primary nodal point, described
The number of secondary nodal point is one or more;Described primary nodal point within second scheduled time by described time difference
Described secondary nodal point is sent to described leap second information.
Further, described first scheduled time includes that being published to leap second event from leap second event occurs front 12 little
Time time between, described second scheduled time includes 12 hours interior times before leap second event generation.
Further, described primary nodal point within described second scheduled time by described time difference and described intercalation
After second information sends the described secondary nodal point in described PTN network to, also include: described primary nodal point exists
Determine in 3rd scheduled time that described time difference and described leap second information there occurs change, wherein, the described 3rd
The scheduled time includes 6 months interior times after leap second event generation;Described primary nodal point will change after described in
Time difference and described leap second information are sent to described secondary nodal point, wherein, the described time difference after change and
Described leap second, information was for updating the time detecting state machine for the detecting system time of described secondary nodal point.
According to a further aspect in the invention, it is provided that a kind of time processing method, including grouping conveying network
Secondary nodal point in PTN receives the time sent by the primary nodal point in described PTN within second scheduled time
Difference and leap second information, wherein, described primary nodal point includes boundary clock BC or ordinary clock OC, institute
Stating secondary nodal point is node in addition to described primary nodal point in described PTN, and the number of described secondary nodal point is
One or more, described time difference and described leap second information are used for controlling described secondary nodal point and carry out time saltus step
Process;Described secondary nodal point is when leap second, event occurred, according to the described time difference received and letter of described leap second
Breath carries out time saltus step process.
Further, when the number of described secondary nodal point is multiple, described secondary nodal point is in leap second event generation
Time, carry out time saltus step according to the described time difference received and described leap second information and process and include: described second
Node, when leap second, event occurred, is carried out the time according to the described time difference received and described leap second information simultaneously
Saltus step processes.
Further, described second scheduled time include leap second event occur before 12 hours interior times.
Further, after carrying out time saltus step process according to the described time difference received and described leap second information,
Also include: described secondary nodal point receive within the 3rd scheduled time by described primary nodal point send change after
Described time difference and described leap second information, wherein, after described 3rd scheduled time includes that leap second event occurs
6 months interior times;Described secondary nodal point is according to the described time difference after change and described leap second information more
The time detecting state machine for the detecting system time of new described secondary nodal point.
According to a further aspect in the invention, it is provided that a kind of time processing device, it is applied to grouping conveying network
In primary nodal point in PTN, including: acquisition module, it is used for controlling for obtaining within first scheduled time
Secondary nodal point in described PTN carries out time difference and the leap second information of time saltus step process, wherein, described
Primary nodal point includes boundary clock BC or ordinary clock OC, and described secondary nodal point is except institute in described PTN
Stating the node outside primary nodal point, the number of described secondary nodal point is one or more;Delivery module, is used for
Send described time difference and described leap second information to described secondary nodal point in second scheduled time.
Further, described first scheduled time includes that being published to leap second event from leap second event occurs front 12 little
Time time between, described second scheduled time includes 12 hours interior times before leap second event generation.
Further, described time processing device also comprises determining that module, for true within the 3rd scheduled time
Fixed described time difference and described leap second information there occurs change, and wherein, described 3rd scheduled time includes leap second
6 months interior times after event generation;Sending module, for by the described time difference and described after change
Leap second, information was sent to described secondary nodal point, and wherein, described time difference after change and described leap second information are used
In the time detecting state machine for the detecting system time updating described secondary nodal point.
According to a further aspect in the invention, it is provided that a kind of time processing device, it is applied to grouping conveying network
In secondary nodal point in PTN, including the first receiver module, for receiving within second scheduled time by the
One node send time difference and leap second information, wherein, described primary nodal point include boundary clock BC or
Ordinary clock OC, described secondary nodal point is the node in described PTN in addition to described primary nodal point, described
The number of two nodes is one or more, and described time difference and described leap second information are used for controlling described second section
Point carries out time saltus step process;Processing module, for when leap second, event occurred, according to the described time received
Difference and described leap second information carry out time saltus step process.
Further, when the number of described secondary nodal point is multiple, described processing module includes: described second
Node, when leap second, event occurred, is carried out the time according to the described time difference received and described leap second information simultaneously
Saltus step processes.
Further, described second scheduled time include leap second event occur before 12 hours interior times.
Further, described time processing device also includes: the second receiver module, in the 3rd scheduled time
Interior reception by described primary nodal point send change after described time difference and described leap second information, wherein,
Described 3rd scheduled time includes 6 months interior times after leap second event generation;More new module, for basis
Secondary nodal point for the detecting system time described in described time difference after change and described leap second information updating
Time detecting state machine.
By the present invention, the primary nodal point in grouping conveying network PTN is used to obtain within first scheduled time
Time difference and described leap second information of time saltus step process is carried out for controlling the secondary nodal point in described PTN,
Wherein, described primary nodal point includes boundary clock BC or ordinary clock OC, and described secondary nodal point is described
Node in addition to described primary nodal point in PTN, the number of described secondary nodal point is one or more;Described
Primary nodal point sends described time difference and described leap second information to described second section within second scheduled time
Point, the time saltus step information present in correlation technique that solves needs hop-by-hop to pass to upstream device to cause the time more
New asynchronous problem, and then reached to realize the effect of upstream device time synchronized saltus step.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application,
The schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.
In the accompanying drawings:
Fig. 1 is the clock networking structure figure in PTN network according to embodiments of the present invention;
Fig. 2 is the clock networking structure figure after the simplification in PTN network according to embodiments of the present invention;
Fig. 3 is the flow chart of a kind of time processing method according to embodiments of the present invention;
Fig. 4 is the flow chart of another kind of time processing method according to embodiments of the present invention;
Fig. 5 is the structured flowchart of a kind of time processing device according to embodiments of the present invention;
Fig. 6 is the preferred structure block diagram of a kind of time processing device according to embodiments of the present invention;
Fig. 7 is another kind of time processing device according to embodiments of the present invention;
Fig. 8 is the preferred structure block diagram of another kind of time processing device according to embodiments of the present invention;
Fig. 9 is device interior Module Division figure according to embodiments of the present invention;
Figure 10 be according to embodiments of the present invention in the acquisition schematic diagram of TAI-UTC-OFFSET of platform;
Figure 11 is the leap second acquisition of information schematic diagram of platform according to embodiments of the present invention;
Figure 12 is CMToD form time message figure according to embodiments of the present invention;
Figure 13 is CMToD form state message figure according to embodiments of the present invention;
Figure 14 is form time message figure according to embodiments of the present invention;
Figure 15 is in IEEE 1588v2 agreement announce message header according to embodiments of the present invention
Leap59, leap61 field diagram;
Figure 16 is current UTC in IEEE 1588v2 agreement announce message according to embodiments of the present invention
OFFSET field diagram.
Detailed description of the invention
Below with reference to accompanying drawing and describe the present invention in detail in conjunction with the embodiments.It should be noted that do not rushing
In the case of Tu, the embodiment in the application and the feature in embodiment can be mutually combined.
Provide a kind of time processing method in the present embodiment, when Fig. 3 is according to embodiments of the present invention a kind of
Between the flow chart of processing method, as it is shown on figure 3, this flow process comprises the steps:
Step S302, the primary nodal point in grouping conveying network PTN obtains within first scheduled time and is used for controlling
Making the secondary nodal point in this PTN and carry out time difference and the leap second information of time saltus step process, wherein, this is years old
One node includes boundary clock BC or ordinary clock OC, this secondary nodal point be in PTN except primary nodal point it
Outer node, the number of secondary nodal point is one or more;
Step S304, primary nodal point sends time difference and leap second information to second within second scheduled time
Node.
By above-mentioned steps, use BC or OC in PTN network by the time relevant to time saltus step
Difference and leap second information send other nodes in this PTN network to, when solving present in correlation technique
Between saltus step information need hop-by-hop pass to upstream device cause the time update asynchronous problem, and then reached realize
The effect of upstream device time synchronized saltus step.
First scheduled time included that being published to leap second event from leap second event occurred the time between first 12 hours,
Second scheduled time may include that 12 hours interior times before leap second event generation, it follows that should
Second scheduled time was later than for first scheduled time.
Time difference and leap second information are sent in PTN network within second scheduled time at primary nodal point
After secondary nodal point, also include: primary nodal point determines that within the 3rd scheduled time time difference and leap second information are sent out
Having given birth to change, wherein, the 3rd scheduled time included 6 months interior times after leap second event generation;First
Time difference after change and leap second information are sent to secondary nodal point by node, wherein, and the time difference after change
With leap second information for updating the time detecting state machine for the detecting system time of secondary nodal point.
Additionally providing a kind of time processing method in the present embodiment, Fig. 4 is according to embodiments of the present invention another
Planting the flow chart of time processing method, as shown in Figure 4, this flow process comprises the steps:
Step S402, the secondary nodal point in grouping conveying network PTN received by PTN within second scheduled time
In primary nodal point send time difference and leap second information, wherein, this primary nodal point includes boundary clock BC
Or ordinary clock OC, this secondary nodal point is the node in PTN in addition to primary nodal point, and, second section
The number of point is one or more, and this time difference and leap second information are used for controlling secondary nodal point and carry out time saltus step
Process;
Step S404, secondary nodal point is when leap second, event occurred, according to the time difference received and leap second information
The time of carrying out saltus step process.
By above-mentioned steps, use the secondary nodal point in PTN network receive that BC or OC transmits and time
Between the relevant time difference of saltus step and leap second information, when leap second, event occurred, when carrying out according to the information received
Between saltus step process.Thus the time saltus step information present in correlation technique that solves needs hop-by-hop to pass to downstream sets
For causing the time to update asynchronous problem, and then reach to realize the effect of upstream device time synchronized saltus step.
From the foregoing, the number of secondary nodal point can be one or more, in an optional embodiment,
When the number of secondary nodal point is multiple, secondary nodal point is when leap second, event occurred, according to the time difference received
With leap second information carry out time saltus step process include: secondary nodal point leap second event occur time, according to receive time
Between difference and leap second information carry out time saltus step process simultaneously.
Wherein, second scheduled time include leap second event occur before 12 hours interior times.
After carrying out time saltus step process according to the time difference received and leap second information, also include: secondary nodal point
Receive within the 3rd scheduled time sent by primary nodal point change after time difference and leap second information, its
In, the 3rd scheduled time included 6 months interior times after leap second event generation;Secondary nodal point is according to change
After time difference and the time detecting state machine for the detecting system time of leap second information updating secondary nodal point.
Additionally providing a kind of time processing device in the present embodiment, this device is used for realizing above-described embodiment and excellent
Select embodiment, carry out repeating no more of explanation.As used below, term " module " is permissible
Realize the software of predetermined function and/or the combination of hardware.Although the device described by following example preferably with
Software realizes, but hardware, or the realization of the combination of software and hardware also may and be contemplated.
Fig. 5 is the structured flowchart of a kind of time processing device according to embodiments of the present invention, as it is shown in figure 5, should
Device is applied in the primary nodal point in grouping conveying network PTN, and this device includes acquisition module 52 and transmits
Module 54, illustrates this device below.
Acquisition module 52, is carried out for the secondary nodal point controlled in PTN for obtaining within first scheduled time
Time saltus step process time difference and leap second information, wherein, this primary nodal point include boundary clock BC or
Ordinary clock OC, secondary nodal point is the node in PTN in addition to primary nodal point, and the number of secondary nodal point is one
Individual or multiple;Delivery module 54, is connected to above-mentioned acquisition module 52, within second scheduled time by time
Between difference and leap second information send secondary nodal point to.
Wherein, first scheduled time included between leap second event is published to leap second event generation first 12 hours
Time, second scheduled time included 12 hours interior times before leap second event generation.
Fig. 6 is the preferred structure block diagram of a kind of time processing device according to embodiments of the present invention, as shown in Figure 6,
This device, in addition to including all modules shown in Fig. 5, also includes determining module 62 and sending module 64, below
This device is illustrated.
Determine module 62, be connected to above-mentioned delivery module 54, for determining time difference within the 3rd scheduled time
Value and leap second information there occurs change, and wherein, the 3rd scheduled time included 6 months after leap second event generation
The interior time;Sending module 64, is connected to above-mentioned determine module 62, for by the time difference after change and
Leap second, information was sent to secondary nodal point, and wherein, time difference and leap second information after change are used for updating second section
The time detecting state machine for the detecting system time of point.
Fig. 7 is another kind of time processing device according to embodiments of the present invention, and this device is applied to Packet Transport Network
In secondary nodal point in network PTN, as it is shown in fig. 7, this device includes the first receiver module 72 and processing module
74, below this device is illustrated.
First receiver module 72, for receiving the time difference sent by primary nodal point within second scheduled time
With leap second information, wherein, this primary nodal point includes boundary clock BC or ordinary clock OC, secondary nodal point
For node in addition to primary nodal point in PTN, the number of secondary nodal point is one or more, time difference and
Information was used for controlling secondary nodal point and carried out time saltus step process leap second;Processing module 74, is connected to above-mentioned first
Receiver module 72, is used for when leap second, event occurred, when carrying out according to the time difference received and leap second information
Between saltus step process.
Wherein, when the number of secondary nodal point is multiple, processing module 74 includes: secondary nodal point is in leap second thing
When part occurs, time difference and leap second information according to receiving carry out time saltus step process simultaneously.
Above-mentioned second scheduled time includes 12 hours interior times before leap second event generation.
Fig. 8 is the preferred structure block diagram of another kind of time processing device according to embodiments of the present invention, such as Fig. 8
Shown in, this device, in addition to including all modules shown in Fig. 7, also includes the second receiver module 82 and updates mould
Block 84, illustrates this device below.
Second receiver module 82, is connected to above-mentioned processing module 74, for receive within the 3rd scheduled time by
Primary nodal point send change after time difference and leap second information, wherein, the 3rd scheduled time included
6 months interior times after leap second event generation;More new module 84, is connected to above-mentioned second receiver module 82,
For according to change after time difference and leap second information updating secondary nodal point for the detecting system time time
Between detect state machine.
The purpose of this patent embodiment is to allow the equipment in PTP network from motion tracking GM equipment
TAI-UTC-OFFSET value, revises the TAI-UTC-OFFSET value of GM equipment or does not revise any net
The configuration of network just can update the TAI-UTC-OFFSET value of whole net.
Fig. 9 is device interior Module Division figure according to embodiments of the present invention, as it is shown in figure 9, this equipment is permissible
It is divided into platform and 2 logical gates of project, realizes connecting by logic interfacing therebetween.
In this embodiment it is possible to be divided into two aspect contents, the value transmission of TAI-UTC-OFFSET is with intercalation
The transmission of second event and process, interaction between them realizes transmission and the leap second event of TAI-UTC-OFFSET
The saltus step of TAI-UTC-OFFSET during generation.
Equipment involved in the embodiment of the present invention is configurable to manual mode and automatic mode, manual mode
For manually at platform configuration time difference, i.e. offset value;Automatic mode be equipment automatically select Tod:leaps,
In Announce:current UTC OFFSET, config:GPA-UTC-OFFSET value one.
The value transmission of TAI-UTC-OFFSET:
Figure 10 be according to embodiments of the present invention in the acquisition schematic diagram of TAI-UTC-OFFSET of platform, as
Shown in Figure 10, the TAI-UTC-OFFSET of the equipment in the embodiment of the present invention supports by the ToD in GPS
Receive message (UBX form and CMToD form), configuration: TAI-UTC-OFFSET value, 1588
In announce message, current UTC OFFSET obtains and these three mode obtains.Wherein Tod:leaps
It is only UBX form and input that CMToD format protocol type just has.For manual input mode,
TAI-UTC-OFFSET system inputs direct short circuit and configures: TAI-UTC-OFFSET value.For automatic mold
Formula, TAI-UTC-OFFSET system input from Tod:leaps, Announce:current UTC OFFSET,
Configuration: in TAI-UTC-OFFSET value;
After equipment choice has got well offset value, then using this offset value as system use value, 1588
ToD message Leap in announce message current UTC OFFSET field Filling power and GPS
Seconds field Filling power (UBX form and CMToD form).
The value transmission of TAI-UTC-OFFSET during leap second event generation:
Figure 11 is the leap second acquisition of information schematic diagram of platform according to embodiments of the present invention, as shown in figure 11, and this
Leap second information (leap59/61) in invention is supported to be obtained (only CMToD by the ToD state message in GPS
Form state message support), configuration leap59/61 value, 1588 announce message in leap59/leap61
Obtain with three kinds of modes.Wherein ToD:MonitorAlarm (bit7) is only in CMToD format protocol type just meeting
Some inputs.For manual input mode, TAI-UTC-OFFSET system inputs the configuration of direct short circuit
Leap59/61 value.For automatic mode, system input from ToD:MonitorAlarm (bit7),
Announce:leap59/leap61, configuration: in leap59/61 value;
Within 12 hours of leap second event generation, GM equipment is by manual configuration or from ToD time and shape
Obtain (only supporting at CMToD form, CMToD only supports leap61) in state message simultaneously, obtain
TAI-UTC-OFFSET and leap59/61 information.Then the whole network synchronized is given by 1588 network delivery.?
Mesh now starts safeguard the equipment time and enter leap second waiting state.When leap59 occurs, project is in June
No. 30 time within 23: 59: 58, later next second is directly entered on July 100 minute and 0 second;Send out at leap61
Time raw, project occurred 23: 59: 60 later 23: 59: 59 on the 30th June, entered the most again
0 point 0 second when entering on July 10.If leap second, event occurred at December 31, mode of operation is identical.
When leap second, event occurred and after generation, platform announce message and project ToD message now use
Project oneself safeguard TAI-UTC-OFFSET value (the most original TAI-UTC-OFFSET value add 1 or
Value after subtracting 1).Again within half a year (before i.e. next leap second issuing time arrival), cancel GM's
Leap configures and (or when CMToD form, can wait that upstream GPS receiver equipment is automatically in message
Cancel this configuration).
By this operation, all devices in clock synchronous network network the most respective leap second bound-time complete saltus step,
And all saltus steps configuration is all to have only to configure GM equipment or without configuration (only obtain from ToD message
CMToD form GPS realizes), reach saltus step simultaneously can solve again the difficult in maintenance of the whole network configuration.
The ToD message offset field of CMToD, UBX form, the state message leap of CMToD form
Mode field, announce message leap59/61 mode field, announce message current UTC OFFSET
Field protocol contents is shown in Figure 12-16 respectively, and Figure 12 is to report the CMToD form time according to embodiments of the present invention
Texts and pictures, Figure 13 is CMToD form state message figure according to embodiments of the present invention, and Figure 14 is according to this
The form time message figure of bright embodiment, Figure 15 is IEEE 1588v2 agreement according to embodiments of the present invention
Leap59, leap61 field diagram in announce message header, Figure 16 is IEEE according to embodiments of the present invention
Current UTC OFFSET field diagram in 1588v2 agreement announce message.
In conjunction with specific embodiment, the present invention will be described below.
Platform and two parts of project, the most whole equipment it is divided on the apparatus logic related in the embodiment of the present invention
Time safeguarded by project, project be responsible for write the hardware device time.The PTN Synchronization Network that the present invention relates to
Network has been realized in the time synchronized networking such as Fig. 1.
Example one:
When this embodiment is used for the GM equipment in clock synchronous network network, and when GPS source is CMToD form,
Including:
Platform configuration TAI-UTC-OFFSET and leap second information are automatically to obtain;
Platform is in leap second issuing time (June 30 or 23: 59: 59 of December 31) 12
Little constantly, offset value and leap61 information from the ToD form message received;
The offset of acquisition and leap second information are issued project by platform, and project initiation time detecting state machine is per second
The detection primary system time;
Project is at leap second issuing time point, and when leap61 occurs, project was 23: 59 on the 30th 59 June
Occur 23: 59: 60 after Miao, 0 point 0 second when then entering back on July 10.If leap second thing
Part occurs at December 31, and mode of operation is identical, and equipment now there occurs saltus step, above gives platform and is used as
The transmission of announce message, the transmission of project GPS time information and this equipment time maintenance
TAI-UTC-OFFSET value all uses the value after change;
Within in leap second, event occurs later six months (before i.e. next leap second issuing time arrival), platform receives
Offset and leap information in ToD there occurs change, and now offset becomes new value, leap state
Become FALSE;
The information that offset and the leap second information of acquisition are cancelled is issued project by platform, and project cancels time detecting shape
State machine, equipment enters normal condition.
Example two:
When this embodiment is used for the GM equipment in clock synchronous network network, when GPS source is non-CMToD form,
Including:
Platform configuration TAI-UTC-OFFSET and leap second information are manual configuration;
Platform is in leap second issuing time (June 30 or 23: 59: 59 of December 31) 12
Little constantly, platform is handed down to offset value and the leap61 information of project manual configuration;
Project initiation time detecting state machine, the detection primary system time per second;
Project is at leap second issuing time point, and when leap59 occurs, project was 23: 59 on the 30th 58 June
0 point 0 second when next second is directly entered on July 10 after Miao;When leap61 occurs, project is in June
No. 30 occur 23: 59: 60 later for 23: 59: 59, when then entering back on July 100
Divide 0 second.If leap second event occurs in December 31, mode of operation phase.Saltus step is now there occurs with equipment,
On give platform be used as announce message send, project GPS time information send and this equipment time maintenance
TAI-UTC-OFFSET value all use change after value;
Within in leap second, event occurs later six months (before i.e. next leap second issuing time arrival), platform is manual
Offset and leap configuration is cancelled in configuration, and equipment uses the offset value come in from the transmission of GPS source, upstream;
The information that offset and leap second information cancel is issued project by platform, and project cancels time detecting state machine,
Equipment enters normal condition.
Example three:
This embodiment World clock/ordinary clock (Boundary in clock synchronous network network
Clock/Ordinary Clock, referred to as BC/OC) equipment time, including:
Platform configuration TAI-UTC-OFFSET and leap second information are for automatically configuring;
Platform is in leap second issuing time (June 30 or 23: 59: 59 of December 31) 12
Little constantly, offset value and leap59/61 information from the 1588announce message received;
Project initiation time detecting state machine, the detection primary system time per second;
Project is at leap second issuing time point, and when leap59 occurs, project was 23: 59 on the 30th 58 June
0 point 0 second when next second is directly entered on July 10 after Miao;When leap61 occurs, project is in June
No. 30 occur 23: 59: 60 later for 23: 59: 59, when then entering back on July 100
Divide 0 second.If leap second event occurs in December 31, mode of operation phase.Saltus step is now there occurs with equipment,
On give platform be used as announce message send, project GPS time information send and this equipment time maintenance
TAI-UTC-OFFSET value all use change after value;
Within in leap second, event occurs later six months (before i.e. next leap second issuing time arrival), platform receives
Offset and leap information in 1588announce there occurs change, and now offset becomes new value,
Leap59/61 state becomes FALSE;
The information that offset and leap second information cancel is issued project by platform, and project cancels time detecting state machine,
Equipment enters normal condition.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be used
General calculating device realizes, and they can concentrate on single calculating device, or is distributed in multiple meter
Calculating on the network that device is formed, alternatively, they can realize with calculating the executable program code of device,
Perform it is thus possible to be stored in storing in device by calculating device, and in some cases, can
With be different from order herein perform shown or described by step, or they are fabricated to respectively each collection
Become circuit module, or the multiple modules in them or step are fabricated to single integrated circuit module realize.
So, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for this area
Technical staff for, the present invention can have various modifications and variations.All within the spirit and principles in the present invention,
Any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Claims (14)
1. a time processing method, it is characterised in that including:
Primary nodal point in grouping conveying network PTN obtain within first scheduled time be used for controlling described
Secondary nodal point in PTN carries out time difference and the leap second information of time saltus step process, wherein, described
One node includes boundary clock BC or ordinary clock OC, and described secondary nodal point is except institute in described PTN
Stating the node outside primary nodal point, the number of described secondary nodal point is one or more;
Described primary nodal point within second scheduled time by described time difference and described leap second information transmission
To described secondary nodal point.
Method the most according to claim 1, it is characterised in that described first scheduled time includes from leap second thing
Part is published to leap second event and the time between first 12 hours occurs, and described second scheduled time includes leap second
12 hours interior times before event generation.
Method the most according to claim 1, it is characterised in that make a reservation for described second at described primary nodal point
Send described time difference and described leap second information in described PTN network described second in time
After node, also include:
Described primary nodal point determines that within the 3rd scheduled time described time difference and described leap second information are sent out
Having given birth to change, wherein, described 3rd scheduled time includes 6 months interior times after leap second event generation;
Described time difference after change and described leap second information are sent to described the by described primary nodal point
Two nodes, wherein, described time difference after change and described leap second information are used for updating described second section
The time detecting state machine for the detecting system time of point.
4. a time processing method, it is characterised in that including:
Secondary nodal point in grouping conveying network PTN received by described PTN within second scheduled time
Primary nodal point send time difference and leap second information, wherein, described primary nodal point includes boundary clock
BC or ordinary clock OC, described secondary nodal point is the joint in described PTN in addition to described primary nodal point
Point, the number of described secondary nodal point is one or more, and described time difference and described leap second information are used for
Control described secondary nodal point and carry out time saltus step process;
Described secondary nodal point is when leap second, event occurred, according to the described time difference received and described leap second
Information carries out time saltus step process.
Method the most according to claim 4, it is characterised in that when the number of described secondary nodal point is multiple,
Described secondary nodal point is when leap second, event occurred, according to the described time difference received and described leap second information
The time of carrying out saltus step processes and includes:
Described secondary nodal point is when leap second, event occurred, according to the described time difference received and described leap second
Information carries out time saltus step process simultaneously.
Method the most according to claim 4, it is characterised in that described second scheduled time includes leap second event
12 hours interior times before generation.
Method the most according to claim 4, it is characterised in that according to the described time difference and described received
After leap second, information carried out time saltus step process, also include:
Described secondary nodal point received by changing that described primary nodal point sends within the 3rd scheduled time
After described time difference and described leap second information, wherein, described 3rd scheduled time includes leap second event
6 months interior times after generation;
Described secondary nodal point is according to described in the described time difference after change and described leap second information updating the
The time detecting state machine for the detecting system time of two nodes.
8. a time processing device, it is characterised in that be applied to the primary nodal point in grouping conveying network PTN
In, including:
Acquisition module, for obtaining the secondary nodal point for controlling in described PTN within first scheduled time
The time difference of the time of carrying out saltus step process and leap second information, wherein, when described primary nodal point includes border
Clock BC or ordinary clock OC, described secondary nodal point be in described PTN in addition to described primary nodal point
Node, the number of described secondary nodal point is one or more;
Delivery module, is used for described time difference and described leap second information transmission within second scheduled time
To described secondary nodal point.
Device the most according to claim 8, it is characterised in that described first scheduled time includes from leap second thing
Part is published to leap second event and the time between first 12 hours occurs, and described second scheduled time includes leap second
12 hours interior times before event generation.
Device the most according to claim 8, it is characterised in that also include:
Determine module, for determining that within the 3rd scheduled time described time difference and described leap second information are sent out
Having given birth to change, wherein, described 3rd scheduled time includes 6 months interior times after leap second event generation;
Sending module, for being sent to described the by the described time difference after change and described leap second information
Two nodes, wherein, described time difference after change and described leap second information are used for updating described second section
The time detecting state machine for the detecting system time of point.
11. 1 kinds of time processing devices, it is characterised in that be applied to the secondary nodal point in grouping conveying network PTN
In, including:
First receiver module, for receiving the time difference sent by primary nodal point within second scheduled time
With leap second information, wherein, described primary nodal point includes boundary clock BC or ordinary clock OC, described
Secondary nodal point is the node in described PTN in addition to described primary nodal point, and the number of described secondary nodal point is
One or more, described time difference and described leap second information are used for controlling described secondary nodal point and carry out the time
Saltus step processes;
Processing module, for when leap second, event occurred, according to the described time difference and described intercalation received
Second information carries out time saltus step process.
12. devices according to claim 11, it is characterised in that when the number of described secondary nodal point is multiple
Time, described processing module includes:
Described secondary nodal point is when leap second, event occurred, according to the described time difference received and described leap second
Information carries out time saltus step process simultaneously.
13. devices according to claim 11, it is characterised in that described second scheduled time includes leap second thing
12 hours interior times before part generation.
14. devices according to claim 11, it is characterised in that also include:
Second receiver module, for receiving, within the 3rd scheduled time, the generation sent by described primary nodal point
Described time difference after change and described leap second information, wherein, described 3rd scheduled time includes leap second
6 months interior times after event generation;
More new module, for according to described in the described time difference after change and described leap second information updating the
The time detecting state machine for the detecting system time of two nodes.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510014023.2A CN105846937B (en) | 2015-01-12 | 2015-01-12 | Time processing method and device |
PCT/CN2015/083801 WO2016112664A1 (en) | 2015-01-12 | 2015-07-10 | Time processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510014023.2A CN105846937B (en) | 2015-01-12 | 2015-01-12 | Time processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105846937A true CN105846937A (en) | 2016-08-10 |
CN105846937B CN105846937B (en) | 2019-07-23 |
Family
ID=56405194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510014023.2A Active CN105846937B (en) | 2015-01-12 | 2015-01-12 | Time processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105846937B (en) |
WO (1) | WO2016112664A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108401287A (en) * | 2018-02-01 | 2018-08-14 | 中国联合网络通信集团有限公司 | A kind of network-building method and device |
CN110071777A (en) * | 2019-04-11 | 2019-07-30 | 国网河南省电力公司焦作供电公司 | The currentUtcOffset parameter adaptive processing method of PTP over PTN |
CN110100408A (en) * | 2016-12-30 | 2019-08-06 | 华为技术有限公司 | The method and network equipment of interaction time sync message |
CN110971330A (en) * | 2019-11-20 | 2020-04-07 | 京信通信系统(中国)有限公司 | Time service server system and leap second automatic adjustment method |
CN112153731A (en) * | 2019-06-27 | 2020-12-29 | 华为技术有限公司 | Clock adjustment method and communication device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259105B (en) * | 2016-12-28 | 2019-12-13 | 中国移动通信有限公司研究院 | time synchronization processing method and device and synchronization network |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716949A (en) * | 2004-07-02 | 2006-01-04 | 大唐电信科技股份有限公司 | Group network realizing method for time synchronous network |
US7447931B1 (en) * | 2005-12-09 | 2008-11-04 | Rockwell Automation Technologies, Inc. | Step time change compensation in an industrial automation network |
CN102281114A (en) * | 2010-06-10 | 2011-12-14 | 郑州威科姆科技股份有限公司 | Service time leap second processing method |
CN102981403A (en) * | 2012-09-26 | 2013-03-20 | 广东大普通信技术有限公司 | Clock leap second processing method and system thereof |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7689854B2 (en) * | 2006-09-22 | 2010-03-30 | Agilent Technologies, Inc. | Method and apparatus for establishing IEEE 1588 clock synchronization across a network element comprising first and second cooperating smart interface converters wrapping the network element |
CN102237941B (en) * | 2010-04-28 | 2015-06-03 | 中兴通讯股份有限公司 | Time synchronization system and method |
CN101938318B (en) * | 2010-09-15 | 2013-02-27 | 中兴通讯股份有限公司 | Synchronous method, system and convergent ring device among devices in convergent network |
CN103428081A (en) * | 2012-05-14 | 2013-12-04 | 中兴通讯股份有限公司 | Packet network synchronization method, device and system |
CN103516454B (en) * | 2012-06-20 | 2017-11-03 | 中兴通讯股份有限公司 | Clock synchronizing method, device and communication equipment |
-
2015
- 2015-01-12 CN CN201510014023.2A patent/CN105846937B/en active Active
- 2015-07-10 WO PCT/CN2015/083801 patent/WO2016112664A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716949A (en) * | 2004-07-02 | 2006-01-04 | 大唐电信科技股份有限公司 | Group network realizing method for time synchronous network |
US7447931B1 (en) * | 2005-12-09 | 2008-11-04 | Rockwell Automation Technologies, Inc. | Step time change compensation in an industrial automation network |
CN102281114A (en) * | 2010-06-10 | 2011-12-14 | 郑州威科姆科技股份有限公司 | Service time leap second processing method |
CN102981403A (en) * | 2012-09-26 | 2013-03-20 | 广东大普通信技术有限公司 | Clock leap second processing method and system thereof |
Non-Patent Citations (2)
Title |
---|
《2013年中国电机工程学会年会论文集》 * |
胡啸: "有关PTP技术实现的若干问题的探讨", 《2013年中国电机工程学会年会论文集》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110100408A (en) * | 2016-12-30 | 2019-08-06 | 华为技术有限公司 | The method and network equipment of interaction time sync message |
US11095383B2 (en) | 2016-12-30 | 2021-08-17 | Huawei Technologies Co., Ltd. | Method for exchanging time synchronization packet and network apparatus |
US11606155B2 (en) | 2016-12-30 | 2023-03-14 | Huawei Technologies Co., Ltd. | Method for exchanging time synchronization packet and network apparatus |
CN108401287A (en) * | 2018-02-01 | 2018-08-14 | 中国联合网络通信集团有限公司 | A kind of network-building method and device |
CN110071777A (en) * | 2019-04-11 | 2019-07-30 | 国网河南省电力公司焦作供电公司 | The currentUtcOffset parameter adaptive processing method of PTP over PTN |
CN112153731A (en) * | 2019-06-27 | 2020-12-29 | 华为技术有限公司 | Clock adjustment method and communication device |
CN112153731B (en) * | 2019-06-27 | 2022-05-31 | 华为技术有限公司 | Clock adjustment method and communication device |
CN110971330A (en) * | 2019-11-20 | 2020-04-07 | 京信通信系统(中国)有限公司 | Time service server system and leap second automatic adjustment method |
CN110971330B (en) * | 2019-11-20 | 2021-01-26 | 京信通信系统(中国)有限公司 | Time service server system and leap second automatic adjustment method |
Also Published As
Publication number | Publication date |
---|---|
CN105846937B (en) | 2019-07-23 |
WO2016112664A1 (en) | 2016-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105846937A (en) | Time processing method and device | |
CN106131947B (en) | A kind of synchronous method of clock between Wireless Communication Equipment | |
CN104737490B (en) | Communicator, communication system and method for synchronizing time | |
JP5811794B2 (en) | Communication device | |
US9577774B2 (en) | Time synchronization method and system | |
US9838196B2 (en) | Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method | |
CN103563287B (en) | Synchronization device and synchronization method | |
CN113055117A (en) | Clock synchronization device and method of wireless distributed network | |
CN104914462B (en) | For providing the method for the synchronization in data collection system | |
CN105634641B (en) | Based on architecture for exchanging can cascade network communication accurate timing system and method | |
CN106656385B (en) | The method for synchronizing time of eating dishes without rice or wine of relay system, equipment | |
CN106357362A (en) | Time synchronization method and device and PTP system | |
US9166648B2 (en) | System and method for time adjustment in a time synchronized channel hopping network | |
CN106559157A (en) | A kind of clock synchronizing method, device and communication equipment | |
CN106231669A (en) | The method of Time Synchronization for Wireless Sensor Networks | |
CN104486058B (en) | A kind of PTP system method for synchronizing time and device | |
CN108633067A (en) | Wireless communication system and wireless communications method | |
CN106160909A (en) | The processing method and processing device of leap second saltus step | |
CN103378916A (en) | Clock transmission method, boundary clock and transparent clock | |
CN106162856A (en) | A kind of node synchronization method in wireless Ad Hoc network | |
CN106162858B (en) | Directintermination time synchronization method and device | |
CN105960820B (en) | A kind of synchronizing device and method | |
CN102263631B (en) | Method and clock node for determining master clock within 1588 clock domain | |
CN113424466A (en) | Method and device for clock synchronization | |
CN109347588A (en) | A kind of wide-area distribution type system clock synchronizing device and method based on LoRa |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |