Time synchronization method, device and apparatus, and storage medium
AssigneeSanechips Technology Co., Ltd.
InventorZiyuan Zhang
Life of this patent
Estimating the term…
Abstract
Disclosed are a time synchronization method, a time synchronization device, a time synchronization apparatus and a storage medium. The method includes: periodically generating, by a local device, a synchronization request signal, and determining a first reference ID of the local device; sending the synchronization request signal and the first reference ID to peer devices; receiving a second reference ID and time information sent from each peer device through a communication link; and updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices.
Claims19
A time synchronization method, comprising:
- receiving first routing information sent from each peer device;
- generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;
- determining the communication state between each peer device and the local device in the local area network according to the first routing table;
- periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;
- sending the synchronization request signal and the first reference ID to the peer devices;
- receiving a second reference ID and time information sent from each peer device through a communication link;
- and
- updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;
- wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.
A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, to implement a time synchronization method comprising:
- receiving first routing information sent from each peer device;
- generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;
- determining the communication state between each peer device and the local device in the local area network according to the first routing table;
- periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;
- sending the synchronization request signal and the first reference ID to the peer devices;
- receiving a second reference ID and time information sent from each peer device through a communication link;
- and
- updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;
- wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.
A non-transitory computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, to implement a time synchronization method comprising:
- receiving first routing information sent from each peer device;
- generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;
- determining the communication state between each peer device and the local device in the local area network according to the first routing table;
- periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;
- sending the synchronization request signal and the first reference ID to the peer devices;
- receiving a second reference ID and time information sent from each peer device through a communication link;
- and
- updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;
- wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.
Dependencies are inferred from the claim text.