WO2010102565A1 - Procédé, appareil et système pour une synchronisation temporelle - Google Patents

Procédé, appareil et système pour une synchronisation temporelle Download PDF

Info

Publication number
WO2010102565A1
WO2010102565A1 PCT/CN2010/070966 CN2010070966W WO2010102565A1 WO 2010102565 A1 WO2010102565 A1 WO 2010102565A1 CN 2010070966 W CN2010070966 W CN 2010070966W WO 2010102565 A1 WO2010102565 A1 WO 2010102565A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
adjustment
time adjustment
node
local
Prior art date
Application number
PCT/CN2010/070966
Other languages
English (en)
Chinese (zh)
Inventor
陈宏�
原飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010102565A1 publication Critical patent/WO2010102565A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a method, apparatus, and system for time synchronization. Background technique
  • the IEEE 1588 standard is introduced into the communication field.
  • PTP 1588 Precision Time Protocol
  • the time accuracy of the single-node nanometer is achieved.
  • the ingress and egress ports of each network device add time stamps to the PTP 1588 packets to enter and leave the network device, and implement time synchronization between the base stations.
  • the time synchronization method of the prior art includes: in a fixed time interval, the master node sends a timestamp synchronization message to the slave node, and the slave node sends the response message of the timestamp synchronization message. After receiving the response message, the master node sends a feedback message carrying the response time of the response message to the slave node. The slave node sends the timestamp information of the timestamp synchronization message, the response message, and the feedback message to the off-chip clock chip, and calculates the time adjustment amount of the current master node.
  • the local time of the slave node is adjusted according to the current time adjustment amount of the master node.
  • the slave node receives the time stamp synchronization message each time, and obtains the time adjustment amount of the master node to determine whether it is necessary to adjust the local state of the slave node. Time, computational complexity, and high system resource consumption.
  • the information exchange with the master node determines the time adjustment amount of the master node, and increases the transmission of the interaction information on the transmission link. Time, which prolongs the acquisition time of the time adjustment amount, causing the slave node to not synchronize with the master node in time.
  • the time synchronization method, device and communication system provided by the embodiments of the present invention can quickly adjust the synchronization time of the slave nodes and the implementation method is simple.
  • a method of time synchronization including:
  • a time synchronization device comprising: an obtaining module, configured to receive a time adjustment message sent by a master node, where the time adjustment message carries time adjustment information and a time adjustment sequence number of the master node; The time adjustment information and the time adjustment sequence number are used to synchronously adjust the local time of the slave node.
  • a method of time synchronization including:
  • a time synchronization device comprising: a detecting module, configured to detect whether the local time of the master node is adjusted; and a sending module, configured to: after the detecting module detects that the local time of the master node is adjusted, to the slave node The time adjustment packet is sent, and the time adjustment message carries time adjustment information and a time adjustment sequence number of the master node.
  • a communication system comprising: a master node and at least one slave node, the master node, configured to send a time adjustment message to the slave node after detecting that the local time of the master node is adjusted, the time The adjustment packet carries the time adjustment information and the time adjustment sequence number of the master node; the slave node is configured to receive the time adjustment message sent by the master node, and adjust the synchronization information according to the time adjustment information and the time adjustment sequence number. The local time of the node.
  • the method, device and system for time synchronization provided by the embodiment of the present invention notify the slave node that the local time has been adjusted when the local time of the master node is adjusted, and shorten the time for the slave node to determine whether the local time of the master node is adjusted, so that the slave node is adjusted. Quickly synchronize time with the master node to achieve real-time synchronization of nodes in the network. If the master node has multiple time adjustments, the slave node can distinguish multiple adjustments by adjusting the sequence number.
  • FIG. 1 is a flowchart of a method for time synchronization according to an embodiment of the present invention
  • 2 is a flowchart of another method for time synchronization according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for time synchronization according to another embodiment of the present invention
  • Figure 4a is a flow chart of S304 in Figure 3;
  • Figure 4b is a schematic diagram of packet interaction of the slave node before and after the time adjustment of the master node
  • FIG. 5 is a schematic structural diagram of a device for time synchronization according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an adjustment module of FIG. 5;
  • FIG. 7 is a schematic structural diagram of another apparatus for time synchronization according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention. detailed description
  • an embodiment of the present invention provides a method for time synchronization, including:
  • S101 Receive time adjustment packets sent by the master node, where the time adjustment message carries time adjustment information and a time adjustment sequence number of the master node.
  • an embodiment of the present invention provides a method for time synchronization, including:
  • a time synchronization method provided by another embodiment of the present invention includes:
  • the master node detects whether the local time is adjusted.
  • the method for determining whether the local synchronization time is adjusted in the prior art is applicable to this step, and details are not described herein again. For example, it is detected whether the change of the local synchronization time is uniform, that is, whether the value of the local synchronization time change is equal within a fixed time interval, and if they are equal, the time synchronization message is sent to the slave node; if not, the S302 is executed. .
  • the master node sends a time adjustment message to the slave node, where the time adjustment message carries time adjustment information and a time adjustment sequence number of the primary node.
  • the master node may send the time adjustment information and the time adjustment sequence number in various forms, for example, sending the time adjustment information in the form of a message.
  • the time adjustment information may be added to the unused field of the existing message, and the existing message carrying the time adjustment information may be sent to the slave node, where the existing message may be a time synchronization message, and the unused field may be The field or extension field is reserved; or the time adjustment information may be added to the newly added message, and the added message carrying the time adjustment information may be directly sent to the slave node.
  • the added message carrying the time adjustment information is referred to as a time adjustment message, and is used to notify the slave node of the local time adjustment.
  • the time adjustment message may be an event message. Enter the physical port to record the current time information.
  • the message format can be found in the following table:
  • the messageType is an assignable type field, and the carried value is 0x5;
  • the originTimestamp and the correctionField add the port time to the egress time, and carry the time when the master node sends the time adjustment message, where the originTimestamp field adds the time of the second and the integer part of the nanosecond, and the correctionField field adds the d and the number of the nanosecond in the time. ;
  • AdjustOffset is the time adjustment range, and the value of the filled value ranges from 0 to 48 bit seconds to 32 bit nanoseconds;
  • Group—sequenceld is the time adjustment sequence number field, and the record triggers the master node to send the time tone. The number of times the message is received;
  • Single—sequenced sends a sequence number to the 4 ⁇ text, and records the number of times the time adjustment message is sent when the synchronization time is adjusted once.
  • S303 The slave node receives a time adjustment message sent by the master node.
  • step S304 may specifically include:
  • the sending time and the receiving time of the time adjustment message are obtained, and the response message of the time adjustment message is simultaneously sent, and the sending time of the response message is recorded.
  • Receiving a feedback message of the response message where the feedback message carries a reception time of the response message.
  • the slave node sends the transmission and reception time of the time adjustment message and the transmission and reception time of the response message to the off-chip clock chip, and calculates the current time adjustment amount.
  • the master node can also directly send the time adjustment amount of the master node when transmitting the time adjustment message. Therefore, when the time adjustment packet includes the time adjustment amount of the master node, the time adjustment amount of the master node may be directly extracted from the time adjustment message. For example, the time adjustment amount of the master node is obtained from the AdjustOffset field in the timestamp adjustment message.
  • the time adjustment packet carries the time adjustment amount of the master node, so that the slave node obtains the time adjustment amount of the master node directly from the time adjustment message, shortens the time for calculating the time adjustment amount from the node, and speeds up synchronization of the slave node. Adjusting the speed of local time improves the accuracy of slave time.
  • the time adjustment packet sent by the current master node obtains the current time adjustment packet t-the transmission time T ⁇ n+l and Receiving time ⁇ ", and selecting any time synchronization message Sync from the time interval between receiving the current time adjustment message and the last time adjustment message, and acquiring the time synchronization time T1 n of the time synchronization message Reception time ⁇ 2 radical. Substituting the above time and the time adjustment amount of the master node into the formula (1)
  • ⁇ 2 ⁇ + ⁇ - ⁇ 2 ⁇ obtains the frequency adjustment factor of the current slave node by the above formula (1).
  • the time adjustment amount of the time adjustment message is subtracted from the time adjustment amount of the master node, so that the calculation parameters of the frequency adjustment factor are parameters before the time adjustment, and the accuracy of the frequency adjustment factor is ensured. Improve the accuracy of the frequency adjustment factor.
  • the ring increases the voltage of the voltage controlled oscillator, and increases the clock frequency of the slave node, so that the clock frequency of the slave node is equal to the clock frequency of the master node, and the clock frequency of the master and slave nodes is synchronized; otherwise, the voltage of the voltage controlled oscillator is reduced. Reduce the clock frequency of the slave node.
  • the time adjustment amount of the master node is increased to the local time, and the time synchronization of the master and slave nodes is completed.
  • the master node performs two time adjustments, in order for the slave node to distinguish the at least two time adjustments, the master node needs to add a time adjustment sequence number to the time adjustment information, which is used to indicate the order of the adjustment time of the master node.
  • the local time is adjusted according to the order of the time adjustment sequence numbers.
  • the master node needs to send two time adjustment messages and adjust the message in the time.
  • Carrying a sequence number which is used to indicate the order in which the slave node processes the time adjustment information.
  • an example of adding a consecutive sequence number from small to large in the time adjustment message is taken as an example.
  • the time adjustment message includes When the time adjustment amount of the master node is added, the adjustment amount of the master node is added to the time adjustment message of the sequence number ", and the adjustment amount of the master node is added to the time adjustment message of the sequence number w + l is - « .
  • the master node After receiving the two time adjustment messages, the master node determines the sequence of synchronously adjusting the local time according to the sequence numbers in the two time adjustment messages. Adjusting the local time of the slave node according to the time adjustment information corresponding to the time adjustment sequence according to the determined adjustment sequence; after the current synchronization adjustment ends, adjusting the message according to the next time, and synchronously adjusting the local time of the slave node .
  • the slave receives the time adjustment message with the sequence number "and" + 1, and determines that the order of adjusting the local time is the sequence of the sequence number from small to large, and then according to the sequence number of the sequence adjustment message, the synchronization Adjust the local time. After the adjustment is completed, adjust the local time according to the time adjustment message with the serial number "+ 1".
  • the master node may send at least two time adjustment packets after detecting the local time adjustment, and the at least two time adjustment packets carry the phase Adjust the serial number at the same time. After receiving the information that the at least two time adjustment sequence numbers are the same from the node, determining that the at least two time adjustment messages are the same time adjusted notification message. It is also possible to monitor whether the time adjustment amount carried in the same notification message is the same. If not, the retransmission time adjustment request may be sent to the primary node, and the packet is adjusted according to the retransmission time of the primary node to determine the serial number. The corresponding amount of time adjustment.
  • the time synchronization method when the local time of the primary node is adjusted, notifies that the local time of the slave node has been adjusted, shortens the time for the slave node to determine whether the local time of the master node is adjusted, and makes the slave node fast and the master node. Time synchronization is achieved to achieve real-time synchronization of nodes in the network.
  • a device for time synchronization provided by an embodiment of the present invention includes:
  • the obtaining module 501 is configured to receive a time adjustment message sent by the master node, where the time adjustment message carries time adjustment information and a time adjustment sequence number of the master node;
  • the adjusting module 502 is configured to adjust the local time of the slave node according to the time adjustment information and the time adjustment sequence number.
  • the adjusting module 502 is further configured to: determine, according to the time adjustment sequence number in the time adjustment message, an order of adjusting the local time; adjust the time adjustment information corresponding to the sequence number according to the determined adjustment order, and perform synchronization adjustment The local time of the slave node; After the current synchronization adjustment is completed, the message is adjusted according to the next time, and the local time of the slave node is synchronously adjusted.
  • the time adjustment information includes a time adjustment amount of the master node
  • the adjustment module 502 may further include:
  • the obtaining sub-module 601 is configured to obtain the time adjustment amount of the master node from the adjustment packet, and the frequency adjustment sub-module 602 is configured to adjust the local clock frequency according to the local time adjustment amount;
  • the time adjustment sub-module 603 is configured to increase the time adjustment amount of the primary node to the local time at the adjusted clock frequency.
  • the embodiment of the present invention further provides an apparatus for adjusting a synchronization time, including: a detecting module 701, configured to detect whether an local time of a primary node is adjusted;
  • the sending module 702 is configured to: after the detecting module detects that the local time of the primary node is adjusted, send a time adjustment message to the slave node, where the time adjustment message carries time adjustment information and time adjustment of the master node serial number.
  • the sending module 702 is configured to continuously send the multiple time adjustment messages to the slave node, and the time adjustment sequence numbers of the multiple time adjustment messages continuously sent are the same.
  • the time synchronization device notifies the slave node that the local time has been adjusted when the local time of the master node is adjusted, and shortens the time for the slave node to determine whether the local time of the master node is adjusted, so that the slave node is fast and the master node Time synchronization is achieved to achieve real-time synchronization of nodes in the network.
  • the communication system provided by the embodiment of the present invention includes:
  • the master node 801 is configured to detect whether the local time of the master node is adjusted. After detecting that the local time of the master node is adjusted, the time adjustment packet is sent to the slave node, where the time adjustment packet carries the master. The time adjustment information and time adjustment sequence number of the node.
  • the master node For the structure of the master node, reference may be made to the related description of the embodiment shown in FIG. 7, and details are not described herein again.
  • the at least one slave node 802 is configured to receive a time adjustment message sent by the master node, and adjust the local time of the slave node according to the time adjustment information and the time adjustment sequence number.
  • the structure of the slave node can be referred to the related description of the embodiment shown in FIG. 5 to FIG. 6, and details are not described herein again.
  • the communication system notifies the slave node that the local time has been adjusted when the local time of the master node is adjusted, and shortens the time for the slave node to determine whether the local time of the master node is adjusted.
  • the slave node quickly synchronizes with the master node to achieve real-time synchronization of each node in the network.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

Les modes de réalisation de la présente invention portent sur un procédé, un appareil et un système pour une synchronisation temporelle dans le domaine de la communication, qui assurent qu'un nœud esclave obtient une synchronisation temporelle rapide avec un nœud maître lorsqu'un temps local du nœud maître est ajusté. Le procédé pour une synchronisation temporelle comprend : la réception d'un message d'ajustement temporel envoyé à partir du nœud maître et le message d'ajustement temporel portant des informations d'ajustement temporel et un numéro de séquence d'ajustement temporel du nœud maître; l'ajustement de manière synchrone du temps local du nœud esclave conformément aux informations d'ajustement temporel et au numéro de séquence d'ajustement temporel. Un autre procédé de synchronisation temporel comprend : la détection de l'ajustement ou non du temps local du nœud maître; après que le temps local du nœud maître est détecté comme ayant été ajusté, l'envoi d'un message d'ajustement temporel portant des informations d'ajustement temporel et un numéro de séquence d'ajustement temporel du nœud maître au nœud esclave.
PCT/CN2010/070966 2009-03-10 2010-03-10 Procédé, appareil et système pour une synchronisation temporelle WO2010102565A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2009101270312A CN101505214A (zh) 2009-03-10 2009-03-10 时间同步的方法、装置和系统
CN200910127031.2 2009-03-10

Publications (1)

Publication Number Publication Date
WO2010102565A1 true WO2010102565A1 (fr) 2010-09-16

Family

ID=40977299

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070966 WO2010102565A1 (fr) 2009-03-10 2010-03-10 Procédé, appareil et système pour une synchronisation temporelle

Country Status (2)

Country Link
CN (1) CN101505214A (fr)
WO (1) WO2010102565A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224885A (zh) * 2020-01-07 2020-06-02 联合汽车电子有限公司 节点标序方法、节点标序系统及车载无钥匙系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505214A (zh) * 2009-03-10 2009-08-12 华为技术有限公司 时间同步的方法、装置和系统
CN105027489B (zh) * 2013-12-20 2018-08-21 华为技术有限公司 精确时钟协议同步方法和节点
CN104917580B (zh) * 2014-03-14 2017-12-15 华为技术有限公司 一种检测时钟同步的方法、设备和系统
CN111867039B (zh) 2019-04-29 2021-12-10 华为技术有限公司 终端设备的ta确定方法及装置
CN118510063A (zh) * 2023-08-11 2024-08-16 北京云智软通信息技术有限公司 随机接入方法、定时调整方法、基站和设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925386A (zh) * 2006-09-30 2007-03-07 杭州华为三康技术有限公司 时钟同步方法以及应用该方法的第一部件和第二部件
CN101171789A (zh) * 2005-07-15 2008-04-30 三星电子株式会社 基于时间戳的时间同步方法和设备
CN101247168A (zh) * 2007-02-15 2008-08-20 华为技术有限公司 一种时间同步的方法及系统
CN101505214A (zh) * 2009-03-10 2009-08-12 华为技术有限公司 时间同步的方法、装置和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101171789A (zh) * 2005-07-15 2008-04-30 三星电子株式会社 基于时间戳的时间同步方法和设备
CN1925386A (zh) * 2006-09-30 2007-03-07 杭州华为三康技术有限公司 时钟同步方法以及应用该方法的第一部件和第二部件
CN101247168A (zh) * 2007-02-15 2008-08-20 华为技术有限公司 一种时间同步的方法及系统
CN101505214A (zh) * 2009-03-10 2009-08-12 华为技术有限公司 时间同步的方法、装置和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224885A (zh) * 2020-01-07 2020-06-02 联合汽车电子有限公司 节点标序方法、节点标序系统及车载无钥匙系统

Also Published As

Publication number Publication date
CN101505214A (zh) 2009-08-12

Similar Documents

Publication Publication Date Title
CN102013931B (zh) 时间同步方法及系统、从属定时设备及主定时设备
JP5912086B2 (ja) 通信システムでの通信階層とサブ階層との相互作用を介した通信システムの正確なクロック同期化のための方法及びシステム
EP3869858A1 (fr) Appareil et procédé de synchronisation
WO2020067977A1 (fr) Interfonctionnement entre un réseau sensible au temps et un réseau de communication cellulaire
CN112771941B (zh) 数据同步方法、装置、设备、系统及存储介质
CN102457371B (zh) 时间同步方法和相关设备及系统
CN102111258A (zh) 时钟同步方法、设备和系统
CN102244603B (zh) 传输承载时间的报文的方法、设备及系统
US11503557B2 (en) Time synchronization in integrated 5G wireless and time-sensitive networking systems
WO2017101528A1 (fr) Procédé et dispositif de commutation de liaison d'horloge, et station de base
WO2012003746A1 (fr) Procédé et dispositif de réalisation d'horloge frontière
CN110401505A (zh) 一种无线网络精确时间同步方法
JP4853625B2 (ja) 伝搬遅延時間測定方法、同期方法、及び無線lanシステム
WO2010102565A1 (fr) Procédé, appareil et système pour une synchronisation temporelle
JP2018505576A (ja) 複数のシンクデバイスへのワイヤレスストリーミング伝送のタイミングを同期する技法
WO2016078349A1 (fr) Procédé de transmission de données, dispositif de communication et système de communication
WO2014139413A1 (fr) Méthode et dispositif de mise en œuvre de mécanisme de mise en grappe non centralisée
US8831044B1 (en) System and method for synchronizing clocks in a wireless local area network
JP2015111885A (ja) 干渉を低減する方法および装置
EP4149159A1 (fr) Procédé et dispositif de communication, et support de stockage lisible par ordinateur
WO2011032494A1 (fr) Procédé et dispositif d'horloge pour traiter un message de protocole de synchronisation d'horloge
CN104579533A (zh) 调度定时分组以增强电信网络中的时间分布的装置和方法
CN116456450B (zh) 一种EtherCAT与5G融合组网的时间同步方法
KR20090012326A (ko) Wlan에서 타이밍을 조정하기 위한 방법 및 장치
WO2022023556A1 (fr) Distribution de temps de référence pendant des opérations de mobilité dans un réseau sensible au temps (tsn)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10750361

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10750361

Country of ref document: EP

Kind code of ref document: A1