CN108123773B - Time synchronization method and device - Google Patents

Time synchronization method and device Download PDF

Info

Publication number
CN108123773B
CN108123773B CN201611089875.9A CN201611089875A CN108123773B CN 108123773 B CN108123773 B CN 108123773B CN 201611089875 A CN201611089875 A CN 201611089875A CN 108123773 B CN108123773 B CN 108123773B
Authority
CN
China
Prior art keywords
time
time synchronization
synchronization
interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611089875.9A
Other languages
Chinese (zh)
Other versions
CN108123773A (en
Inventor
韩柳燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611089875.9A priority Critical patent/CN108123773B/en
Publication of CN108123773A publication Critical patent/CN108123773A/en
Application granted granted Critical
Publication of CN108123773B publication Critical patent/CN108123773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Landscapes

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

Abstract

The application relates to the technical field of internet, in particular to a time synchronization method and time synchronization equipment, which are used for solving the problem of low time synchronization precision of the existing time synchronization network; the time synchronization device provided by the embodiment of the application comprises: the time interactive interface is used for time interaction with other time synchronization equipment; the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface; and the time output type interface is used for outputting the time information after the time synchronization. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be effectively improved.

Description

Time synchronization method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a time synchronization method and device.
Background
At present, a plurality of industries such as mobile communication, finance and electric power have higher Precision requirements on network time synchronization, and the industries mostly establish a time synchronization network through a Precision time synchronization Protocol (PTP).
In the prior art, a PTP-based time synchronization network mainly adopts a master-slave architecture, and under the master-slave architecture, a source service device acquires time information from a satellite or a ground time service center, and then transmits the acquired time information to a downstream node in the time synchronization network, so that if the time information acquired by the source service device has an error, the error is introduced into the downstream node of the source server device. In addition, in the existing time synchronization network, if there are multiple source service devices, the multiple source service devices may respectively acquire time sources, and at this time, since the time sources providing time to the respective source service devices may be different, even if different source servers acquire time from the same time source, errors introduced by the respective source servers may be different, thereby causing a large difference in time between downstream nodes of the respective source servers.
With the development of technologies such as the cooperation between the mobile communication base stations of the fifth Generation (5th-Generation, 5G) and the positioning of the ultra-high-precision base station, the technologies all put forward higher requirements on the precision of the network time synchronization, and the existing network time synchronization method cannot meet the requirements. Therefore, the existing time synchronization network has the problem of low time synchronization precision.
Disclosure of Invention
The embodiment of the application provides a time synchronization method and time synchronization equipment, which are used for solving the problem that the existing time synchronization network is low in time synchronization precision.
The time synchronization method provided by the embodiment of the application comprises the following steps:
the first time synchronization equipment carries out time interaction with other time synchronization equipment through a time interaction type interface;
determining time information after time synchronization according to the time information interacted through the time interactive interface;
and outputting the time information after the time synchronization through a time output type interface.
Optionally, the first time synchronization device performs time interaction with other time synchronization devices through a time interaction type interface, including:
when time synchronization equipment and other time synchronization equipment carry out time interaction, a first time offset is loaded to the time before the time synchronization equipment interacts;
and sending the time information loaded with the first time offset to other time synchronization equipment through a time interactive interface.
Optionally, outputting the time information after the time synchronization through a time output type interface includes:
when the time synchronization equipment outputs the time information after the time synchronization, loading a second time offset to the time after the time synchronization;
and sending the time information loaded with the second time offset to a downstream node through a time output type interface.
An embodiment of the present application provides a time synchronization apparatus, including:
the time interactive interface is used for carrying out time interaction with other time synchronization equipment;
the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface;
and the time output type interface is used for outputting the time information after the time synchronization.
Optionally, the time-interactive interface is further configured to:
if the time information sent by other time synchronization equipment is not received within the preset time length, switching to a time output type interface;
the time-out interface is further configured to:
and after receiving the time information sent by other time synchronization equipment, switching to a time interactive interface.
Optionally, the time synchronization apparatus further includes:
the second processing unit is used for loading a first time offset to the time before the time synchronization equipment is interacted when the time synchronization equipment and other time synchronization equipment perform time interaction;
the time-interactive interface is specifically configured to:
and sending the time information loaded with the first time offset to other time synchronization equipment.
Optionally, the time synchronization apparatus further includes:
a third processing unit, configured to load a second time offset to the time after the time synchronization when the time synchronization device outputs the time information after the time synchronization;
the time-out interface is specifically configured to:
and sending the time information loaded with the second time offset to a downstream node.
Another time synchronization apparatus provided in an embodiment of the present application includes:
the time interface is used for carrying out time interaction with other time synchronization equipment after the time interaction function is switched; the time synchronization module is also used for outputting time information after time synchronization after switching to the time output function;
and the first processing unit is used for determining the time information after time synchronization according to the time information interacted through the time interface.
Optionally, the time interface is specifically configured to:
if the time information sent by other time synchronization equipment is not received within the preset time length, executing the time output function; and if the time information sent by other time synchronization equipment is received, executing the time interaction function.
Optionally, the time synchronization apparatus further includes:
the second processing unit is used for loading a first time offset to the time before the time synchronization equipment is interacted when the time synchronization equipment and other time synchronization equipment perform time interaction;
the time interface is specifically configured to:
sending the time information loaded with the first time offset to other time synchronization equipment; and/or the presence of a gas in the gas,
the time synchronization apparatus further includes:
a third processing unit, configured to load a second time offset to the time after the time synchronization when the time synchronization device outputs the time information after the time synchronization;
the time interface is specifically configured to:
and sending the time information loaded with the second time offset to a downstream node.
The time synchronization equipment in the embodiment of the application comprises a time interactive interface, a time output interface and a first processing unit, wherein the time interactive interface is used for time interaction with other time synchronization equipment; the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface; and the time output type interface is used for outputting the time information after the time synchronization. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be improved.
Drawings
Fig. 1 is a structural diagram of a time synchronization apparatus according to an embodiment of the present application;
fig. 2 is a schematic diagram of a time synchronization network architecture according to an embodiment of the present application;
fig. 3 is a structural diagram of another time synchronization apparatus provided in the embodiment of the present application;
fig. 4 is a flowchart of a time synchronization method according to an embodiment of the present application.
Detailed Description
The time synchronization equipment in the embodiment of the application comprises a time interactive interface, a time output interface and a first processing unit, wherein the time interactive interface is used for time interaction with other time synchronization equipment; the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface; and the time output type interface is used for outputting the time information after the time synchronization. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be improved.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
Example one
As shown in fig. 1, a structure diagram of a time synchronization apparatus 10 provided in the embodiment of the present application includes:
a time interactive interface 101 for time interaction with other time synchronization devices.
Here, the time interactive interface performs a function of transmitting local time information to other time synchronization apparatuses, and simultaneously, receiving time information transmitted from other time synchronization apparatuses. The time information transmitted and/or received may be a time synchronization message with time stamp information, or a pulse per second signal. In addition, the physical type of the time interactive interface may be an ethernet interface, a D-type data interface connector (DB9), a coaxial connector, or the like.
In a specific implementation, the time interactive interface of the time synchronization device may be one or more. When receiving the time information from the time interactive interface, the time information may be sent to the first processing unit, so as to adjust the time of the time synchronization device, and at the same time, the time of the time synchronization device is sent to the time interactive interface for external output.
The first processing unit 102 is configured to determine time information after performing time synchronization according to the time information interacted through the time interactive interface.
Here, the time information interacted with through the time interaction type interface may include time information transmitted by the other peer time synchronization apparatus, and time information determined by the time synchronization apparatus 10 before interacting with the other peer time synchronization apparatus, wherein the time information determined by the time synchronization apparatus 10 before interacting with the other peer time synchronization apparatus may be determined according to the following information:
time information held locally by the time synchronization device 10; and/or the presence of a gas in the gas,
time information acquired through other types of interfaces than the time interactive interface, the time output type interface described above, for example, time information acquired from a satellite through the time reception type interface.
That is, as one implementation, the first processing unit may determine the time information after performing time synchronization, by combining the time information acquired from the time receiving type interface, the locally held time information (such as the time information acquired from a built-in satellite receiver), and the time information transmitted by other peer time synchronization devices.
In a specific implementation process, the time synchronization device may have a plurality of time interactive interfaces, and therefore may perform time interaction with a plurality of other time synchronization devices at the same time, and after obtaining the time information of the plurality of other time synchronization devices, the first processing unit may compare the time information of the plurality of other time synchronization devices with the local time information to determine a most accurate time for synchronization. In addition, during synchronization, the time synchronization device may need to perform multiple time interactions with other time synchronization devices to complete one time of time synchronization.
And a time output type interface 103 for outputting the time information after the time synchronization.
The time output type interface is used for outputting the time information after time synchronization, and is not used for receiving the time information of other time synchronization devices (the other time synchronization devices can send the time information to the time output type interface, but the time output type interface does not process the time information). The time information output by the time output type interface may be a time synchronization message with time stamp information, or a pulse per second signal. Further, the physical type of the time output type interface may be an ethernet interface, DB9, coaxial connector, or the like.
In the specific implementation process, the functions of each time interface of the time synchronization equipment can be flexibly configured. In the initialization state, the configuration can be manually carried out. For example, one time synchronization device has 3 time interfaces, 2 of which may be set as time interactive interfaces, and 1 may be set as time output interfaces; or 3 are each set as a time output type interface.
In addition, after the time synchronization device is put into use, the time synchronization device may be automatically configured as a time interactive interface or a time output interface according to the condition that each time interface receives a time signal. Specifically, after the time synchronization device is put into use, if the time interactive interface configured manually in the initialization state does not receive the time information sent by other time synchronization devices within the preset duration, the time interactive interface may be switched to a time output interface, and then, a function of outputting the time information after time synchronization by the time output interface is performed; if the time output type interface which is manually configured in the initialization state receives the time information sent by other time synchronization equipment, the time output type interface is switched into a time interactive type interface, and then the time interactive type interface and other time synchronization equipment perform the time interactive function.
For example, the time synchronization device a has two time interfaces m and n, where m is a time interactive interface and n is a time output interface in an initialization state. After the time synchronization device a is put into use, if the positions of the two time interfaces m and n are reversed in the time synchronization network, the time interactive interface m cannot receive the time information sent by other time synchronization devices within a certain time period, such as 5 minutes, and the time synchronization device a can switch the time interactive interface m to a time output interface; similarly, the time output type interface n should output the time information outwards, but the interface detects the time information sent by other time synchronization devices, and the time synchronization device a can switch the time output type interface n to a time interactive type interface, so that the problem of adaptation of the time synchronization device a when the time synchronization device a is initially accessed to the time synchronization network can be well solved.
In addition, after the time synchronization device a accesses the time synchronization network, if the network topology structure of the time synchronization network changes, the time synchronization device a may also reconfigure the functions of each time interface according to the above method, without manual adjustment, resulting in better flexibility.
In a specific implementation process, the time synchronization device further includes a second processing unit 104, configured to load a first time offset to a time before the time synchronization device interacts when the time synchronization device interacts with other time synchronization devices; and then, sending the time information loaded with the first time offset to other time synchronization equipment through a time interactive interface.
Optionally, when the time synchronization apparatus has a plurality of time interactive interfaces, the first time offset loaded by the second processing unit to each time interactive interface may be different, so that the time synchronization apparatus may serve regions with different time standards.
For example, when the time synchronization device performs time interaction with other time synchronization devices, the time offset may be determined, for example, 600 nanoseconds according to time zone information of geographic locations where the time synchronization device and the other time synchronization devices are located, and then the second processing unit may add 600 nanoseconds to the time before the time synchronization device interacts; when the time synchronization device performs time interaction with other time synchronization devices, a time offset, for example, -200 ns, may be determined according to a preselected time standard between the time synchronization device and the other time synchronization devices, for example, the selected time standard is Global Positioning System (GPS) time or beidou time, and then the second processing unit may subtract 200 ns from the time before the time synchronization device interacts. In addition, in the process of the time information of the time synchronization device reaching the time interactive interface, a time offset, such as 100 ns, may also be introduced due to a processing process of an internal device of the time synchronization device, and at this time, when the time synchronization device performs time interaction with other time synchronization devices, the second processing unit may add 100 ns to the time before the time synchronization device interacts. In addition, a time error may also exist in a time when the time synchronization device interacts with another time synchronization device in a link transmission process, for example, the time error is 100 nanoseconds, and at this time, when the time synchronization device performs time interaction with another time synchronization device, the second processing unit may add 100 nanoseconds to a time before the time synchronization device interacts, so as to compensate for a link time deviation.
In a specific implementation process, the time synchronization apparatus further includes a third processing unit 105, configured to load a second time offset to the time after the time synchronization when the time synchronization apparatus outputs the time information after the time synchronization, and then send the time information after the second time offset is loaded to the downstream node through the time output type interface.
Alternatively, when the time synchronization apparatus has a plurality of time output type interfaces, the second time offset loaded by the second processing unit to each time output type interface may be different, so that the time synchronization apparatus may serve regions of different time standards.
For example, in the process of the time information after time synchronization reaching the time output type interface, a certain time offset, for example, 60 ns, may be introduced due to the processing process of the internal device of the time synchronization device on the time information, so that when the time synchronization device outputs the time information after time synchronization, the third processing unit may add 60 ns to the time after time synchronization device interaction, and then, the time information after time offset is loaded is sent to the downstream node through the time output type interface.
In a specific implementation process, the first processing unit, the second processing unit, and the third processing unit may be integrated in the same processor, or may be respectively disposed in separate processors, which is not limited herein.
Fig. 2 is a schematic diagram of a time synchronization network architecture according to an embodiment of the present application. For the time synchronization device a, m, n, and p are time interactive interfaces, and q is a time output interface. The time synchronization device B, the time synchronization device C, the time synchronization device D and the time synchronization device A are in the same level in the time synchronization network, and the time synchronization device A and the time synchronization device B also output time information to a downstream node respectively.
Here, the time synchronization apparatus a has 3 time interactive interfaces m, n, and p, and thus, the time synchronization apparatus B, the time synchronization apparatus C, and the time synchronization apparatus D can perform time interaction simultaneously through the three time interactive interfaces to determine synchronized time information, and further, the time synchronization apparatus a can output the synchronized time information to a downstream node through the time output interface q.
In the time synchronization network in the prior art, the time synchronization device and the time interface are only suitable for a master-slave architecture, and the time noise deviation of each source service device is large. The time synchronization equipment provided by the embodiment of the application can simultaneously meet the requirements of mutual calibration and master-slave synchronization between the time synchronization equipment, and can be flexibly deployed in a network, so that the time synchronization requirement in the time synchronization network can be better met.
The time synchronization equipment in the embodiment of the application comprises a time interactive interface, a time output interface and a first processing unit, wherein the time interactive interface is used for time interaction with other time synchronization equipment; the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface; and the time output type interface is used for outputting the time information after the time synchronization. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be improved.
Example two
As shown in fig. 3, a structure diagram of another time synchronization apparatus 30 provided in the embodiment of the present application includes:
the time interface 301 is used for performing time interaction with other time synchronization equipment after the time interaction function is switched; and the time synchronization module is also used for outputting time information after time synchronization after switching to the time output function.
Thus, one time interface can have two functions of time interaction and time output. The time interaction function means that a time interface sends local time information to other time synchronization equipment and receives the time information sent by other time synchronization equipment; the time output function is to externally output the time information after time synchronization, and is not used for receiving the time information of other time synchronization devices (the other time synchronization devices may send the time information to the time output type interface, but the time output type interface does not process the time information). Further, the physical type of the time interface may be an ethernet interface, DB9, coaxial connector, or the like.
In a specific implementation process, if the time interface does not receive time information sent by other time synchronization equipment within a preset time (for example, 5 minutes), executing a time output function; and if the time information sent by other time synchronization equipment is received, executing the time interaction function.
The first processing unit 302 is configured to determine time information after performing time synchronization according to the time information interacted through the time interface.
Here, the time information interacted with through the time interface may include time information transmitted by the other peer time synchronization apparatus, and time information determined by the time synchronization apparatus 30 before interacting with the other peer time synchronization apparatus, wherein the time information determined by the time synchronization apparatus 30 before interacting with the other peer time synchronization apparatus may be determined according to the following information:
time information held locally by the time synchronization device 30; and/or the presence of a gas in the gas,
time information acquired through an interface of another function other than the above time interface, for example, time information acquired from a satellite through a time reception function interface.
That is, as one implementation manner, the first processing unit may determine the time information after performing time synchronization, by combining the time information acquired from the time receiving function interface, the locally maintained time information (such as the time information acquired from a built-in satellite receiver), and the time information sent by other peer time synchronization devices.
Optionally, the time synchronization apparatus further includes a second processing unit 303, configured to load a first time offset to a time before the time synchronization apparatus interacts when the time synchronization apparatus interacts with another time synchronization apparatus. Correspondingly, the time interface sends the time information loaded with the first time offset to other time synchronization equipment.
Optionally, the time synchronization apparatus further comprises a third processing unit 304 for loading a second time offset to the time after the time synchronization when the time synchronization apparatus outputs the time information after the time synchronization. And correspondingly, the time interface sends the time information loaded with the second time offset to the downstream node.
In a specific implementation process, the first processing unit, the second processing unit, and the third processing unit may be integrated in the same processor, or may be respectively disposed in separate processors, which is not limited herein.
The time synchronization equipment in the embodiment of the application comprises a time interactive interface, a time output interface and a first processing unit, wherein the time interactive interface is used for time interaction with other time synchronization equipment; the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface; and the time output type interface is used for outputting the time information after the time synchronization. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be improved.
EXAMPLE III
Based on the same inventive concept, the embodiment of the present application further provides a time synchronization method corresponding to the time synchronization device, and as the principle of the method for solving the problem is similar to that of the time synchronization device in the embodiment of the present application, the implementation of the method can refer to the implementation of the device, and repeated parts are not described again.
As shown in fig. 4, a flowchart of a time synchronization method provided in the embodiment of the present application includes the following steps:
s401: the first time synchronization device performs time interaction with other time synchronization devices through a time interaction type interface.
S402: and determining the time information after time synchronization according to the time information interacted through the time interactive interface.
S403: and outputting the time information after the time synchronization through a time output type interface.
In a specific implementation process, if the interactive interface does not receive time information sent by other time synchronization equipment within a preset time duration, for example, 5 minutes, the time interactive interface can be switched to a time output interface, and then a function of outputting the time information after time synchronization by the time output interface is executed; if the time output type interface receives the time information sent by other time synchronization equipment, the time output type interface can be switched into a time interactive type interface, and then the time interactive type interface performs the time interaction function with other time synchronization equipment.
Optionally, when the time synchronization device performs time interaction with other time synchronization devices, the time synchronization device may further load a first time offset to time before the interaction, and then send time information after the first time offset is loaded to the other time synchronization devices through the time interactive interface.
Optionally, when the time synchronization device outputs the time information after time synchronization, the time synchronization device may further load a second time offset to the time after time synchronization, and then send the time information after the second time offset is loaded to the downstream node through the time output type interface.
According to the time synchronization method in the embodiment of the application, the first time synchronization device carries out time interaction with other time synchronization devices through the time interactive interface, then the time information after the time synchronization is determined according to the time information interacted through the time interactive interface, and finally the time information after the time synchronization is output through the time output interface. Therefore, time synchronization can be firstly carried out among the time synchronization devices at the same level in the time synchronization network, and then the synchronized time is output to the downstream node, so that the time synchronization precision of the time synchronization network can be improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (8)

1. A time synchronization apparatus includes a time interactive interface, a time output interface, and a first processing unit,
the time interactive interface is used for time interaction with other time synchronization equipment;
the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interactive interface;
the time output type interface is used for outputting the time information after the time synchronization;
wherein the time synchronization apparatus further comprises: a time-receiving type interface is provided,
the time receiving type interface is used for receiving the time information acquired from the satellite, so that the time synchronization equipment determines the time information after time synchronization according to the time information received by the time receiving type interface, the time information sent by at least one other time synchronization equipment and/or the locally stored time information;
wherein the time synchronization apparatus further comprises:
a second processing unit, configured to load a first time offset to a time before the time synchronization device interacts when the time synchronization device and the other time synchronization device perform time interaction, where the first time offset is used to compensate a time deviation of the time synchronization device due to a time zone or a time source difference or internal processing or external transmission;
the time interactive interface is specifically configured to:
and sending the time information after the first time offset is loaded to other time synchronization equipment.
2. The time synchronization device of claim 1, wherein the time interactive interface is further to:
if the time information sent by the other time synchronization equipment is not received within the preset time length, switching to a time output type interface;
the time-out interface is further configured to:
and after receiving the time information sent by other time synchronization equipment, switching to a time interactive interface.
3. The time synchronization apparatus of claim 1, wherein the time synchronization apparatus further comprises:
a third processing unit, configured to load a second time offset to the time after the time synchronization when the time synchronization apparatus outputs the time information after the time synchronization, where the second time offset is a time offset caused by a time zone or internal processing loaded in an output interface by the time synchronization apparatus;
the time output interface is specifically configured to:
and sending the time information loaded with the second time offset to a downstream node.
4. The time synchronization equipment is characterized by comprising a time interface and a first processing unit, wherein the time interface has a time interaction function and a time output function;
the time interface is used for carrying out time interaction with other time synchronization equipment after the time interface is switched to the time interaction function; the time synchronization module is also used for outputting time information after time synchronization after switching to the time output function;
the first processing unit is used for determining time information after time synchronization according to the time information interacted through the time interface;
the time interface is further used for receiving time information acquired from a satellite, so that the time synchronization equipment determines the time information after time synchronization according to each piece of time information received by the time interface and/or the locally stored time information;
wherein the time synchronization apparatus further comprises:
a second processing unit, configured to load a first time offset to a time before the time synchronization device interacts when the time synchronization device and the other time synchronization device perform time interaction, where the first time offset is used to compensate a time deviation of the time synchronization device due to a time zone or a time source difference or internal processing or external transmission;
the time interface is specifically configured to:
and sending the time information after the first time offset is loaded to other time synchronization equipment.
5. The time synchronization device of claim 4, wherein the time interface is specifically configured to:
if the time information sent by other time synchronization equipment is not received within the preset time length, executing the time output function; and if the time information sent by other time synchronization equipment is received, executing the time interaction function.
6. The time synchronization apparatus of claim 4, wherein the time synchronization apparatus further comprises:
a third processing unit, configured to load a second time offset to the time after the time synchronization when the time synchronization apparatus outputs the time information after the time synchronization, where the second time offset is a time offset caused by a time zone or internal processing loaded in an output interface by the time synchronization apparatus;
the time interface is specifically configured to:
and sending the time information loaded with the second time offset to a downstream node.
7. A method of time synchronization, the method comprising:
the first time synchronization equipment carries out time interaction with other time synchronization equipment through a time interaction type interface;
determining time information after time synchronization according to the time information interacted through the time interactive interface;
outputting the time information after the time synchronization through a time output type interface;
wherein the method further comprises:
receiving time information acquired from a satellite through a time receiving type interface, so that time synchronization equipment determines the time information after time synchronization according to the time information received by the time receiving type interface, the time information sent by at least one other time synchronization equipment and/or the locally stored time information;
wherein, the first time synchronization device performs time interaction with other time synchronization devices through a time interactive interface, and the method comprises the following steps:
when the time synchronization equipment and the other time synchronization equipment perform time interaction, loading a first time offset to the time before the time synchronization equipment interacts, wherein the first time offset is used for compensating the time deviation of the time synchronization equipment caused by time zone or time source difference or internal processing or external transmission;
and sending the time information loaded with the first time offset to other time synchronization equipment through the time interactive interface.
8. The time synchronization method according to claim 7, wherein the outputting the time-synchronized time information through a time output type interface includes:
when the time synchronization equipment outputs the time information after the time synchronization, loading a second time offset to the time after the time synchronization, wherein the second time offset is a time deviation caused by a time zone or internal processing loaded in an output interface by the time synchronization equipment;
and sending the time information loaded with the second time offset to a downstream node through the time output type interface.
CN201611089875.9A 2016-11-30 2016-11-30 Time synchronization method and device Active CN108123773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611089875.9A CN108123773B (en) 2016-11-30 2016-11-30 Time synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611089875.9A CN108123773B (en) 2016-11-30 2016-11-30 Time synchronization method and device

Publications (2)

Publication Number Publication Date
CN108123773A CN108123773A (en) 2018-06-05
CN108123773B true CN108123773B (en) 2021-07-06

Family

ID=62226518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611089875.9A Active CN108123773B (en) 2016-11-30 2016-11-30 Time synchronization method and device

Country Status (1)

Country Link
CN (1) CN108123773B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020077577A1 (en) * 2018-10-17 2020-04-23 Oppo广东移动通信有限公司 Data packet transmission method and device
CN109587784B (en) * 2018-12-27 2020-04-14 广州供电局有限公司 Clock synchronization communication system and time synchronization method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765199A (en) * 2008-12-24 2010-06-30 中国移动通信集团公司 Communication system and time synchronization method in system and OTN equipment
CN102833027A (en) * 2012-09-21 2012-12-19 烽火通信科技股份有限公司 Synchronization status monitoring method based on time offset
CN103166729A (en) * 2013-01-30 2013-06-19 华为技术有限公司 Clock synchronization method and equipment
CN103916950A (en) * 2012-12-31 2014-07-09 中兴通讯股份有限公司 Time synchronization method and system
CN105281885A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Time synchronization method and device used for network equipment and time synchronization server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9483209B2 (en) * 2014-09-22 2016-11-01 Freescale Semiconductor, Inc. Interface system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765199A (en) * 2008-12-24 2010-06-30 中国移动通信集团公司 Communication system and time synchronization method in system and OTN equipment
CN102833027A (en) * 2012-09-21 2012-12-19 烽火通信科技股份有限公司 Synchronization status monitoring method based on time offset
CN103916950A (en) * 2012-12-31 2014-07-09 中兴通讯股份有限公司 Time synchronization method and system
CN103166729A (en) * 2013-01-30 2013-06-19 华为技术有限公司 Clock synchronization method and equipment
CN105281885A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Time synchronization method and device used for network equipment and time synchronization server

Also Published As

Publication number Publication date
CN108123773A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
US10051587B2 (en) System for network discovery and synchronization
US10958367B2 (en) Network apparatus and clock synchronization method
EP3849235A1 (en) Positioning resource coordination method and device, network node, terminal, and base station
EP3846379A1 (en) Clock synchronization method and apparatus, system, storage medium, and electronic device
CN109996325B (en) Clock synchronization system and method of wireless sensor network
EP3622638A1 (en) Methods and devices for synchronization in communication networks
CN108123773B (en) Time synchronization method and device
WO2016177090A1 (en) Clock synchronization method and device
CN107682925A (en) A kind of determination method and device of access time
Diouf et al. A USRP-based testbed for wideband ranging and positioning signal acquisition
CN108259105B (en) time synchronization processing method and device and synchronization network
WO2019100336A1 (en) Method for synchronizing network device and network device
CN110730496B (en) Synchronization method and terminal equipment
CN108768573B (en) Clock synchronization method and device
WO2019119213A1 (en) Method for synchronizing network device and network device
US10244491B2 (en) Synchronization module and method
KR101044065B1 (en) Method for Synchronizing Time in IPTV Service Network
CN102263672A (en) Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device
CN112511255B (en) Time synchronization method and device
CN105281882A (en) Method and device for realizing time synchronization
JP6490971B2 (en) Time synchronization system
CN113204516A (en) Method and device for time synchronization of processors
US10721699B2 (en) Collection and distribution of timing information in a wireless network
JP2016036060A (en) Time synchronization method and time synchronization system
CN104768217A (en) Synchronization method, terminal and base station

Legal Events

Date Code Title Description
PB01 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