JP6254028B2 - Slave node and time synchronization method - Google Patents

Slave node and time synchronization method Download PDF

Info

Publication number
JP6254028B2
JP6254028B2 JP2014064791A JP2014064791A JP6254028B2 JP 6254028 B2 JP6254028 B2 JP 6254028B2 JP 2014064791 A JP2014064791 A JP 2014064791A JP 2014064791 A JP2014064791 A JP 2014064791A JP 6254028 B2 JP6254028 B2 JP 6254028B2
Authority
JP
Japan
Prior art keywords
time
node
master node
master
slave node
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
JP2014064791A
Other languages
Japanese (ja)
Other versions
JP2015188159A (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.)
Nippon Telegraph and Telephone East Corp
Original Assignee
Nippon Telegraph and Telephone East Corp
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 Nippon Telegraph and Telephone East Corp filed Critical Nippon Telegraph and Telephone East Corp
Priority to JP2014064791A priority Critical patent/JP6254028B2/en
Publication of JP2015188159A publication Critical patent/JP2015188159A/en
Application granted granted Critical
Publication of JP6254028B2 publication Critical patent/JP6254028B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Description

本発明は、時刻同期の技術に関する。   The present invention relates to a time synchronization technique.

近年、複数の基地局間で連係した動作を行うため、高精度な時刻同期が求められている。そこで、ネットワーク接続された複数の機器の時刻をマイクロ秒以下の精度で同期させる技術として、IEEE1588で定義されたPTP(Precision Time Protocol)が知られている(例えば、非特許文献1参照)。PTPでは、マスターノードとスレーブノードとの間で時刻情報を含むメッセージが定期的に交換される。スレーブノードは、マスターノード及びスレーブノードにおけるメッセージが送受信された時刻情報から、マスターノードに対するスレーブノードの時刻のずれ(Offset)を計算する。そして、スレーブノードは、計算したOffsetに基づいてスレーブノードの時刻を補正して、スレーブノードの時刻をマスターノードの時刻に同期させる。   In recent years, highly accurate time synchronization has been demanded in order to perform coordinated operations between a plurality of base stations. Therefore, PTP (Precision Time Protocol) defined by IEEE 1588 is known as a technique for synchronizing the times of a plurality of devices connected to the network with an accuracy of microseconds or less (see, for example, Non-Patent Document 1). In PTP, messages including time information are periodically exchanged between a master node and a slave node. The slave node calculates a time lag (Offset) of the slave node with respect to the master node from the time information at which the messages at the master node and the slave node are transmitted and received. Then, the slave node corrects the time of the slave node based on the calculated offset, and synchronizes the time of the slave node with the time of the master node.

“IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems,” IEEE Standard 1588-2008.“IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems,” IEEE Standard 1588-2008.

上述したPTPでは、マスターノードからスレーブノードへの遅延時間と、スレーブノードからマスターノードへの遅延時間とが等しいことを前提として時刻同期が行われる。しかしながら、一般的なネットワークでは、マスターノードとスレーブノードとがルータ等の中継装置を介して接続されることが多いため、中継装置内のキューイング遅延等の影響によりマスターノードとスレーブノードとの間の遅延時間に揺らぎが生じてしまう。このような場合、スレーブノードの時刻を補正する際に求められるOffsetの値には誤差が含まれる。つまり、中継装置内のキューイング遅延等の影響が大きい場合、求められるOffsetの値に含まれる誤差も大きくなってしまう。したがって、スレーブノードは、誤差の大きいOffsetの値でスレーブノードの時刻を補正してしまうおそれがあった。このような問題が発生すると、スレーブノードの時刻同期の精度が劣化してしまう。このような問題は、PTPに限らず、時刻同期を行う全ての通信プロトコルに共通する問題である。   In the PTP described above, time synchronization is performed on the assumption that the delay time from the master node to the slave node is equal to the delay time from the slave node to the master node. However, in a general network, a master node and a slave node are often connected via a relay device such as a router. Therefore, the master node and the slave node are affected by the queuing delay in the relay device. The delay time will fluctuate. In such a case, the offset value obtained when correcting the time of the slave node includes an error. That is, when the influence of the queuing delay or the like in the relay apparatus is large, an error included in the obtained offset value also increases. Therefore, the slave node may correct the time of the slave node with an offset value having a large error. When such a problem occurs, the accuracy of time synchronization of the slave node deteriorates. Such a problem is not limited to PTP but is common to all communication protocols that perform time synchronization.

上記事情に鑑み、本発明は、スレーブノードの時刻同期の精度低下を抑えることができる技術の提供を目的としている。   In view of the above circumstances, an object of the present invention is to provide a technique capable of suppressing a decrease in accuracy of time synchronization of a slave node.

本発明の一態様は、スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信部と、前記通信部が前記制御メッセージを送受信した際に取得される時刻情報に基づいて自装置の時刻を補正する時刻補正部と、を備え、取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出部をさらに備え、前記時刻補正部は、算出された前記統計値に基づいて自装置の時刻を補正し、前記算出部は、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出するスレーブノードである。 One aspect of the present invention is a communication unit that transmits and receives a control message used for time synchronization processing, which is processing for synchronizing time in a slave node to time in a master node, with the plurality of master nodes; A time correction unit that corrects the time of the own device based on the time information acquired when the unit transmits and receives the control message, and based on the acquired time information, the time of each master node and the own device A calculation unit that calculates a statistical value of a time difference from the time, wherein the time correction unit corrects the time of the own apparatus based on the calculated statistical value, and the calculation unit Based on the time information acquired in step 1, a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period is obtained for each master node. Calculated, based on the calculated first statistic for each of the master node is the slave node for calculating a second statistical value is a statistical value of the time difference between the time of the time and its own device for each master node .

本発明の一態様は、スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信部と、前記通信部が前記制御メッセージを送受信した際に取得される時刻情報に基づいて自装置の時刻を補正する時刻補正部と、を備え、取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出部をさらに備え、前記時刻補正部は、算出された前記統計値に基づいて自装置の時刻を補正し、前記算出部は、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に対し、所定の期間における前記マスターノード毎の時刻差の分散値で重み付けした後に、重み付けされた前記第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出するスレーブノードである。 One aspect of the present invention is a communication unit that transmits and receives a control message used for time synchronization processing, which is processing for synchronizing time in a slave node to time in a master node, with the plurality of master nodes; A time correction unit that corrects the time of the own device based on the time information acquired when the unit transmits and receives the control message, and based on the acquired time information, the time of each master node and the own device A calculation unit that calculates a statistical value of a time difference from the time, wherein the time correction unit corrects the time of the own apparatus based on the calculated statistical value, and the calculation unit Based on the time information acquired in step 1, a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period is obtained for each master node. After calculating and weighting the calculated first statistic value for each master node with the variance value of the time difference for each master node in a predetermined period, based on the weighted first statistic value, It is a slave node that calculates a second statistical value that is a statistical value of a time difference between the time of each master node and the time of its own device .

本発明の一態様は、スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信ステップと、前記通信ステップによって前記制御メッセージを送受信した際に取得される時刻情報に基づいて前記スレーブノードの時刻を補正する時刻補正ステップと、を有し、取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出ステップをさらに有し、前記時刻補正ステップにおいて、算出された前記統計値に基づいて自装置の時刻を補正し、前記算出ステップにおいて、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出する時刻同期方法である。また、本発明の一態様は、スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信ステップと、前記通信ステップによって前記制御メッセージを送受信した際に取得される時刻情報に基づいて前記スレーブノードの時刻を補正する時刻補正ステップと、を有し、取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出ステップをさらに有し、前記時刻補正ステップにおいて、算出された前記統計値に基づいて自装置の時刻を補正し、前記算出ステップにおいて、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に対し、所定の期間における前記マスターノード毎の時刻差の分散値で重み付けした後に、重み付けされた前記第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出する時刻同期方法である。 One aspect of the present invention is a communication step of transmitting / receiving a control message used for time synchronization processing, which is processing for synchronizing time in a slave node to time in a master node, with a plurality of master nodes; step by have a, a time correction step of correcting the time of the slave node based on the time information acquired upon receiving the control message, the host and the time of each master node based on the time information obtained A calculation step of calculating a statistical value of a time difference from the time of the device, and correcting the time of the own device based on the calculated statistical value in the time correction step; Based on the time information acquired during the period, the master node time and self-equipment in the predetermined period A first statistical value that is a statistical value of a time difference from the time of each master node is calculated for each master node, and based on the calculated first statistical value for each master node, the time of each master node and the own device This is a time synchronization method for calculating a second statistical value that is a statistical value of a time difference from the time . Further, according to one aspect of the present invention, a communication step of transmitting and receiving a control message used for time synchronization processing, which is processing for synchronizing time at a slave node to time at a master node, with a plurality of master nodes; A time correction step of correcting the time of the slave node based on the time information acquired when the control message is transmitted / received by the communication step, and the time of each master node based on the acquired time information And calculating a statistical value of a time difference between the time and the time of the own device, and correcting the time of the own device based on the calculated statistical value in the time correction step, Based on the time information acquired during a predetermined period, the time of the master node in the predetermined period A first statistical value that is a statistical value of a time difference from the time of the own device is calculated for each master node, and for each master node in a predetermined period with respect to the calculated first statistical value for each master node After weighting with the variance value of the time difference, a second statistical value, which is a statistical value of the time difference between the time of each master node and the time of its own device, is calculated based on the weighted first statistical value Time synchronization method.

本発明により、スレーブノードの時刻同期の精度低下を抑えることが可能となる。   According to the present invention, it is possible to suppress a decrease in time synchronization accuracy of the slave node.

本発明の時刻同期システム100のシステム構成を示す図である。It is a figure which shows the system configuration | structure of the time synchronization system 100 of this invention. マスターノード10及びスレーブノード20の概略ブロック図である。2 is a schematic block diagram of a master node 10 and a slave node 20. FIG. 本発明の第1動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。It is a sequence diagram showing the operation example of the communication sequence of the time synchronous process in the 1st operation example of this invention. 本発明の第1動作例におけるスレーブノード20の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the slave node 20 in the 1st operation example of this invention. 本発明の第2動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。It is a sequence diagram showing the operation example of the communication sequence of the time synchronous process in the 2nd operation example of this invention. 本発明の第2動作例におけるスレーブノード20の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the slave node 20 in the 2nd operation example of this invention. 本発明の第3動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。It is a sequence diagram showing the operation example of the communication sequence of the time synchronous process in the 3rd operation example of this invention. 本発明の第3動作例におけるスレーブノード20の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the slave node 20 in the 3rd operation example of this invention. 本発明の第4動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。It is a sequence diagram showing the operation example of the communication sequence of the time synchronous process in the 4th operation example of this invention. 本発明の第4動作例におけるスレーブノード20の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the slave node 20 in the 4th operation example of this invention. 本発明の第5動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。It is a sequence diagram showing the operation example of the communication sequence of the time synchronous process in the 5th operation example of this invention. 所定の期間T0の間に算出されたマスターノード10毎のノード間時刻差の推移を表す図である。It is a figure showing transition of the time difference between nodes for every master node 10 computed during predetermined period T0. 本発明の第5動作例におけるスレーブノード20の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the slave node 20 in the 5th operation example of this invention.

以下、本発明の一実施形態を、図面を参照しながら説明する。
図1は、本発明の時刻同期システム100のシステム構成を示す図である。本発明の時刻同期システム100は、マスターノード10(10−1及び10−2)及びスレーブノード20を備える。マスターノード10−1及びスレーブノード20は、ネットワーク30−1を介して互いに通信可能に接続される。マスターノード10−2及びスレーブノード20は、ネットワーク30−2を介して互いに通信可能に接続される。図1では、時刻同期システム100が2台のマスターノード10を備える構成を示しているが、時刻同期システム100は3台以上のマスターノード10を備えるように構成されてもよい。また、図1では、時刻同期システム100が1台のスレーブノード20を備える構成を示しているが、時刻同期システム100は2台以上のスレーブノード20を備えるように構成されてもよい。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a system configuration of a time synchronization system 100 of the present invention. The time synchronization system 100 of the present invention includes a master node 10 (10-1 and 10-2) and a slave node 20. The master node 10-1 and the slave node 20 are communicably connected to each other via the network 30-1. The master node 10-2 and the slave node 20 are communicably connected to each other via the network 30-2. Although FIG. 1 shows a configuration in which the time synchronization system 100 includes two master nodes 10, the time synchronization system 100 may be configured to include three or more master nodes 10. 1 shows a configuration in which the time synchronization system 100 includes one slave node 20, the time synchronization system 100 may be configured to include two or more slave nodes 20.

マスターノード10は、定期的にスレーブノード20との間でPTPメッセージ(制御メッセージ)を送受信する。PTPメッセージとは、時刻同期処理に使用される制御メッセージ(制御パケット)であり、例えばAnnounceメッセージ、Syncメッセージ、Follow_upメッセージ、Delay_Requestメッセージ、Delay_Responseメッセージである。時刻同期処理とは、スレーブノード20における時刻をマスターノード10における時刻に同期させるための処理である。   The master node 10 periodically transmits and receives PTP messages (control messages) to and from the slave node 20. The PTP message is a control message (control packet) used for time synchronization processing, and is, for example, an Announce message, Sync message, Follow_up message, Delay_Request message, and Delay_Response message. The time synchronization process is a process for synchronizing the time at the slave node 20 with the time at the master node 10.

Announceメッセージは、自装置の状態情報を他の装置に通知するためのメッセージである。例えば、Announceメッセージには、マスターノード10の時刻源の品質を表すClockclass情報(以下、「品質情報」という。)が含まれる。Clockclass情報は、1〜255までの255段階でマスターノード10の時刻源の品質を表す情報であり、数字が小さいほど時刻源の品質が良いことを表す。つまり、Clockclass情報が“1”である場合にはマスターノード10の時刻源の品質が最も良いことを表し、Clockclass情報が“255”である場合にはマスターノード10の時刻源の品質が最も悪いことを表す。   The Announce message is a message for notifying other devices of the status information of the device itself. For example, the Announce message includes Clockclass information (hereinafter referred to as “quality information”) indicating the quality of the time source of the master node 10. Clockclass information is information indicating the quality of the time source of the master node 10 in 255 stages from 1 to 255, and the smaller the number, the better the quality of the time source. That is, when the clockclass information is “1”, it indicates that the quality of the time source of the master node 10 is the best, and when the clockclass information is “255”, the quality of the time source of the master node 10 is the worst. Represents that.

Syncメッセージは、時刻同期化の動作を開始するために送信されるメッセージである。Follow_upメッセージは、Syncメッセージが送信された後に、Syncメッセージの送信時刻の時刻情報を通知するために送信されるメッセージである。Delay_Requestメッセージは、スレーブノード20がマスターノード10から送信されるFollow_upメッセージを受信した後に、マスターノード10にDelay_Responseメッセージを要求するために送信されるメッセージである。Delay_Responseメッセージは、Delay_Requestメッセージの応答として送信されるメッセージである。   The Sync message is a message transmitted to start the time synchronization operation. The Follow_up message is a message transmitted to notify the time information of the transmission time of the Sync message after the Sync message is transmitted. The Delay_Request message is a message that is transmitted in order to request the Delay_Response message from the master node 10 after the slave node 20 receives the Follow_up message transmitted from the master node 10. The Delay_Response message is a message transmitted as a response to the Delay_Request message.

スレーブノード20は、各マスターノード10との間でPTPメッセージを送受信した際に得られる時刻情報に基づいて、自装置(スレーブノード20)の時刻(以下、「スレーブ時刻」という。)を補正する。
ネットワーク30−1は、どのように構成されたネットワークでもよい。例えば、ネットワーク30−1はLAN(Local Area Network)を用いて構成されてもよい。
ネットワーク30−2は、どのように構成されたネットワークでもよい。例えば、ネットワーク30−2はLANを用いて構成されてもよい。
The slave node 20 corrects the time (hereinafter referred to as “slave time”) of its own device (slave node 20) based on time information obtained when a PTP message is transmitted / received to / from each master node 10. .
The network 30-1 may be a network configured in any way. For example, the network 30-1 may be configured using a LAN (Local Area Network).
The network 30-2 may be a network configured in any way. For example, the network 30-2 may be configured using a LAN.

図2は、マスターノード10及びスレーブノード20の概略ブロック図である。
まず、マスターノード10の具体的な機能構成について説明する。マスターノード10は、バスで接続されたCPU(Central Processing Unit)やメモリや補助記憶装置などを備え、時刻同期用プログラムを実行する。時刻同期用プログラムの実行によって、マスターノード10は、マスタークロック生成部101、時計部102、パケット生成部103、通信部104を備える装置として機能する。なお、マスターノード10の各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されてもよい。また、時刻同期用プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、時刻同期用プログラムは、電気通信回線を介して送受信されてもよい。
FIG. 2 is a schematic block diagram of the master node 10 and the slave node 20.
First, a specific functional configuration of the master node 10 will be described. The master node 10 includes a CPU (Central Processing Unit), a memory, an auxiliary storage device, and the like connected by a bus, and executes a time synchronization program. By executing the time synchronization program, the master node 10 functions as an apparatus including the master clock generation unit 101, the clock unit 102, the packet generation unit 103, and the communication unit 104. All or some of the functions of the master node 10 may be realized by using hardware such as an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a field programmable gate array (FPGA). The time synchronization program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system. The time synchronization program may be transmitted / received via a telecommunication line.

マスタークロック生成部101は、例えば、VCXO(Voltage controlled xtal oscillators)等の電圧可変型の水晶発振器等を用いて構成される。また、マスタークロック生成部101は、マスタークロックを生成する。具体的には、マスタークロック生成部101は、マスターノード10における1秒の時間幅を決定する。なお、マスタークロック生成部101は、マスターノード10の外部に存在してもよい。   The master clock generation unit 101 is configured by using a voltage variable crystal oscillator such as VCXO (Voltage controlled xtal oscillators), for example. The master clock generation unit 101 generates a master clock. Specifically, the master clock generation unit 101 determines a time width of 1 second in the master node 10. Note that the master clock generation unit 101 may exist outside the master node 10.

時計部102は、マスタークロック生成部101が生成したマスタークロックに従い、マスター時刻を決定する。具体的には、時計部102は、マスターノード10において何時何分何秒であるかを決める。時計部102は、マスター時刻の時刻情報をパケット生成部103に出力する。   The clock unit 102 determines the master time according to the master clock generated by the master clock generation unit 101. Specifically, the clock unit 102 determines what hour, minute, and second in the master node 10. The clock unit 102 outputs the time information of the master time to the packet generation unit 103.

パケット生成部103は、各種パケットを生成する。パケット生成部103が生成するパケットは、例えばAnnounceメッセージ、Syncメッセージ、Follow_upメッセージ、Delay_Responseメッセージなどである。パケット生成部103は、Announceメッセージを生成する際、マスターノード10の時刻源の品質情報を付加する。パケット生成部103は、定期的にSyncメッセージを生成する。パケット生成部103は、通信部104を介してスレーブノード20にSyncメッセージを送信し、略同時に時計部102を参照してSyncメッセージの送信時刻(以下、「Sync送信時刻」という。)T1k(kは1以上の整数)を記録する。また、例えば、パケット生成部103は、Syncメッセージ送信後に、Sync送信時刻T1kを格納したFollow_upメッセージを生成する。パケット生成部103は、通信部104を介してスレーブノード20にFollow_upメッセージを送信する。   The packet generator 103 generates various packets. The packet generated by the packet generation unit 103 is, for example, an Announce message, Sync message, Follow_up message, Delay_Response message, or the like. The packet generation unit 103 adds the quality information of the time source of the master node 10 when generating the Announce message. The packet generation unit 103 periodically generates a Sync message. The packet generation unit 103 transmits a Sync message to the slave node 20 via the communication unit 104, and refers to the clock unit 102 at substantially the same time as the transmission time of the Sync message (hereinafter referred to as “Sync transmission time”) T1k (k. Is an integer of 1 or more. Further, for example, the packet generation unit 103 generates a Follow_up message storing the Sync transmission time T1k after transmitting the Sync message. The packet generation unit 103 transmits a Follow_up message to the slave node 20 via the communication unit 104.

また、パケット生成部103は、通信部104によって受信されるDelay_Requestメッセージの受信時刻(以下、「Delay受信時刻」という。)T4kを、時計部102を参照して記録する。その後、パケット生成部103は、記録したDelay受信時刻T4kを格納したDelay_Responseメッセージを生成し、通信部104を介してスレーブノード20にDelay_Responseメッセージを送信する。   Further, the packet generation unit 103 records the reception time (hereinafter referred to as “Delay reception time”) T4k of the Delay_Request message received by the communication unit 104 with reference to the clock unit 102. Thereafter, the packet generation unit 103 generates a Delay_Response message that stores the recorded Delay reception time T4k, and transmits the Delay_Response message to the slave node 20 via the communication unit 104.

通信部104は、スレーブノード20との間でPTPメッセージの送受信を行う。例えば、通信部104は、スレーブノード20からDelay_Requestメッセージを受信し、パケット生成部103に転送する。また、例えば通信部104は、Announceメッセージ、Syncメッセージ、Follow_upメッセージ、Delay_Responseメッセージをスレーブノード20に送信する。   The communication unit 104 transmits and receives PTP messages to and from the slave node 20. For example, the communication unit 104 receives a Delay_Request message from the slave node 20 and transfers it to the packet generation unit 103. For example, the communication unit 104 transmits an Announce message, a Sync message, a Follow_up message, and a Delay_Response message to the slave node 20.

次に、スレーブノード20の機能構成を説明する。
スレーブノード20は、バスで接続されたCPUやメモリや補助記憶装置などを備え、時刻同期用プログラムを実行する。時刻同期用プログラムの実行によって、スレーブノード20は、通信部201、制御部202、同期処理部203、時計部204、算出部205、時刻補正部206を備える装置として機能する。なお、スレーブノード20の各機能の全て又は一部は、ASICやPLDやFPGA等のハードウェアを用いて実現されてもよい。また、時刻同期用プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、時刻同期用プログラムは、電気通信回線を介して送受信されてもよい。
Next, the functional configuration of the slave node 20 will be described.
The slave node 20 includes a CPU, a memory, an auxiliary storage device, and the like connected by a bus, and executes a time synchronization program. By executing the time synchronization program, the slave node 20 functions as an apparatus including the communication unit 201, the control unit 202, the synchronization processing unit 203, the clock unit 204, the calculation unit 205, and the time correction unit 206. All or some of the functions of the slave node 20 may be realized using hardware such as an ASIC, PLD, or FPGA. The time synchronization program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system. The time synchronization program may be transmitted / received via a telecommunication line.

通信部201は、各マスターノード10との間でPTPメッセージの送受信を行う。例えば、通信部201は、Announceメッセージ、Syncメッセージ、Follow_upメッセージ、Delay_Responseメッセージを各マスターノード10から受信する。また、例えば、通信部201は、Delay_Requestメッセージを各マスターノード10に送信する。   The communication unit 201 transmits / receives a PTP message to / from each master node 10. For example, the communication unit 201 receives an Announce message, a Sync message, a Follow_up message, and a Delay_Response message from each master node 10. For example, the communication unit 201 transmits a Delay_Request message to each master node 10.

制御部202は、スレーブノード20の各機能部を制御する。制御部202は、Announceメッセージ中に格納されているマスターノード10の時刻源の品質情報を抽出する。制御部202は、Follow_upメッセージの受信後、Delay_Requestメッセージを生成する。その後、制御部202は、生成したDelay_Requestメッセージを通信部201に送信させ、略同時に時計部204を参照してDelay_Requestメッセージの送信時刻(以下、「Delay送信時刻」という。)T3kを記録する。また、制御部202は、Syncメッセージが通信部201から転送された際にSyncメッセージの受信時刻(以下、「Sync受信時刻」という。)T2kを記録する。また、制御部202は、Follow_upメッセージ中に格納されているSync送信時刻T1kを抽出し記録する。また、制御部202は、Delay_Responseメッセージ中に格納されているDelay受信時刻T4kを抽出し記録する。   The control unit 202 controls each functional unit of the slave node 20. The control unit 202 extracts the quality information of the time source of the master node 10 stored in the Announce message. After receiving the Follow_up message, the control unit 202 generates a Delay_Request message. Thereafter, the control unit 202 causes the communication unit 201 to transmit the generated Delay_Request message, and records the transmission time of the Delay_Request message (hereinafter referred to as “Delay transmission time”) T3k almost simultaneously with reference to the clock unit 204. Further, the control unit 202 records the reception time of the Sync message (hereinafter referred to as “Sync reception time”) T2k when the Sync message is transferred from the communication unit 201. In addition, the control unit 202 extracts and records the Sync transmission time T1k stored in the Follow_up message. Further, the control unit 202 extracts and records the delay reception time T4k stored in the delay_response message.

同期処理部203は、スレーブノード20における1秒の時間幅を決定する。具体的には、同期処理部203は、通信部201によって受信されたSyncメッセージに基づいてスレーブクロックを生成することによって、スレーブノード20における1秒の時間幅を決定する。生成されたスレーブクロックは、マスターノード10のマスタークロックに同期される。同期処理部203は、自身のクロックから生成するタイムスタンプとマスターノード10から受信したタイムスタンプとの差分を計算し、計算された差分を元に自身のクロックを調整できる構成であれば、どのような構成であってもよい。
時計部204は、同期処理部203によって生成されたスレーブクロックに従い、スレーブ時刻を決定する。具体的には、時計部204は、スレーブノード20において何時何分何秒であるかを決める。時計部204は、スレーブ時刻の時刻情報を制御部202に出力する。
The synchronization processing unit 203 determines a time width of 1 second in the slave node 20. Specifically, the synchronization processing unit 203 determines a time width of 1 second in the slave node 20 by generating a slave clock based on the Sync message received by the communication unit 201. The generated slave clock is synchronized with the master clock of the master node 10. The synchronization processing unit 203 calculates the difference between the time stamp generated from its own clock and the time stamp received from the master node 10, and any configuration can adjust its own clock based on the calculated difference. It may be a simple configuration.
The clock unit 204 determines the slave time according to the slave clock generated by the synchronization processing unit 203. Specifically, the clock unit 204 determines what hour, minute, and second in the slave node 20. The clock unit 204 outputs the time information of the slave time to the control unit 202.

算出部205は、通信部201がPTPメッセージを送受信した際に取得される時刻情報に基づいて、各マスターノード10それぞれのマスター時刻とスレーブ時刻との時刻差の統計値を算出する。統計値は、例えば、平均値、最大値、最小値、最頻値などである。なお、以下の説明では、統計値の具体例として平均値を例に説明する。以下、算出部205の動作について説明する。スレーブノード20は、マスターノード10のマスター時刻と、スレーブ時刻との時刻差(以下、「ノード間時刻差」という。)を、接続しているマスターノード10毎に算出する。そして、スレーブノード20は、算出したマスターノード10毎のノード間時刻差に基づいて、ノード間時刻差の平均値(以下、「時刻差平均値」という。)を算出する。
以上で、算出部205の動作についての説明を終了する。
時刻補正部206は、算出部205によって算出された時刻差平均値に基づいてスレーブ時刻を補正する。
以下、本発明の時刻同期システム100の具体的な動作例(第1動作例〜第5動作例)について説明する。
The calculation unit 205 calculates a statistical value of the time difference between the master time and the slave time of each master node 10 based on the time information acquired when the communication unit 201 transmits / receives the PTP message. The statistical value is, for example, an average value, a maximum value, a minimum value, a mode value, or the like. In the following description, an average value will be described as an example of a statistical value. Hereinafter, the operation of the calculation unit 205 will be described. The slave node 20 calculates the time difference between the master time of the master node 10 and the slave time (hereinafter referred to as “inter-node time difference”) for each connected master node 10. Then, the slave node 20 calculates an average value of the inter-node time differences (hereinafter referred to as “time difference average value”) based on the calculated inter-node time difference for each master node 10.
Above, description about operation | movement of the calculation part 205 is complete | finished.
The time correction unit 206 corrects the slave time based on the time difference average value calculated by the calculation unit 205.
Hereinafter, specific operation examples (first operation example to fifth operation example) of the time synchronization system 100 of the present invention will be described.

[第1動作例]
図3は、本発明の第1動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。なお、図3の説明では、マスターノード10の台数が2台(マスターノード10−1、マスターノード10−2)であり、スレーブノード20の台数が1台である場合を例に説明する。
マスターノード10−1は、スレーブノード20に対して定期的にSyncメッセージを送信する(ステップS101)。マスターノード10−1は、Sync送信時刻T11を記録する(ステップS102)。次に、マスターノード10−1は、スレーブノード20に対して、Follow_upメッセージを送信する(ステップS103)。この際、マスターノード10−1は、Follow_upメッセージの中に、Sync送信時刻T11を格納する。
[First operation example]
FIG. 3 is a sequence diagram showing an operation example of a communication sequence of time synchronization processing in the first operation example of the present invention. In the description of FIG. 3, a case where the number of master nodes 10 is two (master node 10-1 and master node 10-2) and the number of slave nodes 20 is one will be described as an example.
The master node 10-1 periodically transmits a Sync message to the slave node 20 (step S101). The master node 10-1 records the Sync transmission time T11 (step S102). Next, the master node 10-1 transmits a Follow_up message to the slave node 20 (step S103). At this time, the master node 10-1 stores the Sync transmission time T11 in the Follow_up message.

スレーブノード20は、マスターノード10−1から送信されたSyncメッセージを受信すると、この受信処理をトリガとしてSync受信時刻T21を記録する(ステップS104)。次に、スレーブノード20は、マスターノード10−1から送信されたFollow_upメッセージを受信し、Follow_upメッセージ中に格納されるSync送信時刻T11を抽出し記録する。   When receiving the Sync message transmitted from the master node 10-1, the slave node 20 records the Sync reception time T21 using this reception process as a trigger (Step S104). Next, the slave node 20 receives the Follow_up message transmitted from the master node 10-1, extracts the Sync transmission time T11 stored in the Follow_up message, and records it.

マスターノード10−2は、スレーブノード20に対して定期的にSyncメッセージを送信する(ステップS105)。マスターノード10−1は、Sync送信時刻T12を記録する(ステップS106)。次に、マスターノード10−2は、スレーブノード20に対して、Follow_upメッセージを送信する(ステップS107)。この際、マスターノード10−2は、Follow_upメッセージの中に、Sync送信時刻T12を格納する。   The master node 10-2 periodically transmits a Sync message to the slave node 20 (step S105). The master node 10-1 records the Sync transmission time T12 (step S106). Next, the master node 10-2 transmits a Follow_up message to the slave node 20 (step S107). At this time, the master node 10-2 stores the Sync transmission time T12 in the Follow_up message.

スレーブノード20は、マスターノード10−2から送信されたSyncメッセージを受信すると、この受信処理をトリガとしてSync受信時刻T22を記録する(ステップS108)。次に、スレーブノード20は、マスターノード10−2から送信されたFollow_upメッセージを受信し、Follow_upメッセージ中に格納されるSync送信時刻T12を抽出し記録する。   When receiving the Sync message transmitted from the master node 10-2, the slave node 20 records the Sync reception time T22 using this reception process as a trigger (Step S108). Next, the slave node 20 receives the Follow_up message transmitted from the master node 10-2, and extracts and records the Sync transmission time T12 stored in the Follow_up message.

次に、スレーブノード20は、マスターノード10−1に対して、Delay_Requestメッセージを送信する(ステップS109)。そして、スレーブノード20は、Delay送信時刻T31を記録する(ステップS110)。マスターノード10−1は、Delay_Requestメッセージを受信すると、この受信処理をトリガとしてDelay受信時刻T41を記録する(ステップS111)。   Next, the slave node 20 transmits a Delay_Request message to the master node 10-1 (step S109). Then, the slave node 20 records the delay transmission time T31 (step S110). When receiving the Delay_Request message, the master node 10-1 records the Delay reception time T41 using this reception process as a trigger (Step S111).

また、スレーブノード20は、マスターノード10−2に対して、Delay_Requestメッセージを送信する(ステップS112)。そして、スレーブノード20は、Delay送信時刻T32を記録する(ステップS113)。マスターノード10−2は、Delay_Requestメッセージを受信すると、この受信処理をトリガとしてDelay受信時刻T42を記録する(ステップS114)。   In addition, the slave node 20 transmits a Delay_Request message to the master node 10-2 (Step S112). Then, the slave node 20 records the delay transmission time T32 (step S113). When receiving the Delay_Request message, the master node 10-2 records the Delay reception time T42 using this reception process as a trigger (Step S114).

次に、マスターノード10−1は、スレーブノード20に対してDelay_Responseメッセージを送信する(ステップS115)。この際、マスターノード10−1は、Delay_Responseメッセージの中に、Delay受信時刻T41を格納する。スレーブノード20は、マスターノード10−1から送信されたDelay_Responseメッセージを受信すると、Delay_Responseメッセージ中に格納されるDelay受信時刻T41を抽出し記録する。   Next, the master node 10-1 transmits a Delay_Response message to the slave node 20 (step S115). At this time, the master node 10-1 stores the Delay reception time T41 in the Delay_Response message. When the slave node 20 receives the Delay_Response message transmitted from the master node 10-1, the slave node 20 extracts and records the Delay reception time T41 stored in the Delay_Response message.

マスターノード10−2は、スレーブノード20に対してDelay_Responseメッセージを送信する(ステップS116)。この際、マスターノード10−2は、Delay_Responseメッセージの中に、Delay受信時刻T42を格納する。スレーブノード20は、マスターノード10−2から送信されたDelay_Responseメッセージを受信すると、Delay_Responseメッセージ中に格納されるDelay受信時刻T42を抽出し記録する。   The master node 10-2 transmits a Delay_Response message to the slave node 20 (step S116). At this time, the master node 10-2 stores the Delay reception time T42 in the Delay_Response message. When the slave node 20 receives the Delay_Response message transmitted from the master node 10-2, the slave node 20 extracts and records the Delay reception time T42 stored in the Delay_Response message.

スレーブノード20は、上述した処理によりマスターノード10−1及び10−2との間で各時刻情報(Sync送信時刻T11及びT12、Sync受信時刻T21及びT22、Delay送信時刻T31及びT32、Delay受信時刻T41及びT42)を取得する。スレーブノード20は、取得した各時刻情報に基づいて時刻差平均値aveを算出する(ステップS117)。時刻差平均値aveは、例えば以下の式1に基づいて算出される。

Figure 0006254028
スレーブノード20は、算出した時刻差平均値aveに基づいてスレーブ時刻を補正する(ステップS118)。 The slave node 20 performs time information (Sync transmission times T11 and T12, Sync reception times T21 and T22, Delay transmission times T31 and T32, Delay reception time) with the master nodes 10-1 and 10-2 by the above-described processing. T41 and T42) are acquired. The slave node 20 calculates the time difference average value ave based on the acquired time information (step S117). The time difference average value ave is calculated based on the following formula 1, for example.
Figure 0006254028
The slave node 20 corrects the slave time based on the calculated time difference average value ave (step S118).

上述した処理によってスレーブノード20の時刻が補正される。時刻同期処理では、上述したように、スレーブノード20とマスターノード10との間で時刻同期に関わる一連のやり取りが行われる。時刻同期に関わる一連のやり取りとは、スレーブノード20とマスターノード10との間で、Syncメッセージ、Follow_upメッセージ、Delay_Requestメッセージ及びDelay_Responseメッセージの送受信が行われることを表す。   The time of the slave node 20 is corrected by the process described above. In the time synchronization process, as described above, a series of exchanges related to time synchronization is performed between the slave node 20 and the master node 10. A series of exchanges related to time synchronization indicates that a Sync message, a Follow_up message, a Delay_Request message, and a Delay_Response message are transmitted and received between the slave node 20 and the master node 10.

図4は、本発明の第1動作例におけるスレーブノード20の処理の流れを示すフローチャートである。
スレーブノード20の通信部201は、マスターノード10から送信されるSyncメッセージを受信する(ステップS201)。通信部201は、マスターノード10からSyncメッセージを受信すると、受信したSyncメッセージを制御部202に転送する。制御部202は、Syncメッセージが転送されると、時計部204を参照してSync受信時刻T2kを記録する。
FIG. 4 is a flowchart showing a processing flow of the slave node 20 in the first operation example of the present invention.
The communication unit 201 of the slave node 20 receives the Sync message transmitted from the master node 10 (Step S201). When receiving the Sync message from the master node 10, the communication unit 201 transfers the received Sync message to the control unit 202. When the Sync message is transferred, the control unit 202 refers to the clock unit 204 and records the Sync reception time T2k.

次に、通信部201は、マスターノード10から送信されるFollow_upメッセージを受信する(ステップS202)。通信部201は、マスターノード10からFollow_upメッセージを受信すると、受信したFollow_upメッセージを制御部202に転送する。制御部202は、Follow_upメッセージ中に格納されているSync送信時刻T1kを抽出し記録する。   Next, the communication unit 201 receives a Follow_up message transmitted from the master node 10 (step S202). When receiving the Follow_up message from the master node 10, the communication unit 201 transfers the received Follow_up message to the control unit 202. The control unit 202 extracts and records the Sync transmission time T1k stored in the Follow_up message.

その後、制御部202は、Delay_Requestメッセージを生成し、通信部201を介してDelay_Requestメッセージをマスターノード10に送信する(ステップS203)。この際、制御部202は、時計部204を参照してDelay送信時刻T3kを記録する(ステップS204)。その後、通信部201は、マスターノード10から送信されるDelay_Responseメッセージを受信する(ステップS205)。通信部201は、マスターノード10からDelay_Responseメッセージ受信すると、受信したDelay_Responseメッセージを制御部202に転送する。制御部202は、Delay_Responseメッセージ中に格納されているDelay受信時刻T4kを抽出し記録する。   Thereafter, the control unit 202 generates a Delay_Request message and transmits the Delay_Request message to the master node 10 via the communication unit 201 (step S203). At this time, the control unit 202 refers to the clock unit 204 and records the delay transmission time T3k (step S204). Thereafter, the communication unit 201 receives a Delay_Response message transmitted from the master node 10 (step S205). When receiving the Delay_Response message from the master node 10, the communication unit 201 transfers the received Delay_Response message to the control unit 202. The control unit 202 extracts and records the Delay reception time T4k stored in the Delay_Response message.

制御部202は、接続している全てのマスターノード10との間で時刻情報を取得したか否か判定する(ステップS206)。接続している全てのマスターノード10との間で時刻情報を取得していない場合(ステップS206−NO)、スレーブノード20はステップS201以降の処理を繰り返し実行する。
一方、接続している全てのマスターノード10との間で時刻情報を取得した場合(ステップS206−YES)、制御部202は記録している、各マスターノード10との間で取得した各時刻情報(Sync送信時刻T1k、Sync受信時刻T2k、Delay送信時刻T3k、Delay受信時刻T4k)を算出部205に出力する。
The control unit 202 determines whether time information has been acquired with all the connected master nodes 10 (step S206). When the time information is not acquired with all the connected master nodes 10 (step S206—NO), the slave node 20 repeatedly executes the processes after step S201.
On the other hand, when time information is acquired with all the connected master nodes 10 (step S206-YES), each time information acquired with each master node 10 which the control part 202 has recorded. (Sync transmission time T1k, Sync reception time T2k, Delay transmission time T3k, Delay reception time T4k) are output to calculation section 205.

算出部205は、制御部202から出力された各時刻情報に基づいて時刻差平均値aveを算出する(ステップS207)。時刻補正部206は、算出された時刻差平均値aveに基づいてスレーブ時刻を補正する(ステップS208)。   The calculating unit 205 calculates a time difference average value ave based on each time information output from the control unit 202 (step S207). The time correction unit 206 corrects the slave time based on the calculated time difference average value ave (step S208).

以上のように構成されたスレーブノード20によれば、中継装置内のキューイング遅延等の影響によりマスターノード10とスレーブノード20との間の遅延時間に揺らぎが生じた場合であっても、正しい時刻から大きくずれた時刻でスレーブノード20の時刻が補正されるおそれが軽減される。具体的には、複数のマスターノード10との間でそれぞれ取得された時刻情報に基づいて算出される、ノード間時刻差の平均値でスレーブ時刻が補正される。このように、スレーブ時刻と、他のマスターノード10のマスター時刻との時刻差も含めた平均値でスレーブ時刻が補正されることにより、正しい時刻から大きくずれた値でスレーブ時刻が補正されてしまうおそれを軽減することができる。そのため、スレーブノード20の時刻同期の精度低下を抑えることが可能になる。   According to the slave node 20 configured as described above, even if fluctuation occurs in the delay time between the master node 10 and the slave node 20 due to the influence of queuing delay or the like in the relay device, it is correct. The possibility that the time of the slave node 20 is corrected at a time greatly deviated from the time is reduced. Specifically, the slave time is corrected by the average value of the inter-node time differences calculated based on the time information acquired with each of the plurality of master nodes 10. As described above, the slave time is corrected with the average value including the time difference between the slave time and the master time of the other master node 10, so that the slave time is corrected with a value greatly deviating from the correct time. The fear can be reduced. Therefore, it is possible to suppress a decrease in accuracy of time synchronization of the slave node 20.

<変形例>
本動作例では、マスターノード10の台数が2台である場合の時刻差平均値aveを算出する式(式1)を示したが、マスターノード10の台数が3台以上である場合には、算出部205は以下の式2に基づいて時刻差平均値aveを算出する。

Figure 0006254028
式2のnは、スレーブノード20が接続しているマスターノード10の台数を表す。 <Modification>
In this operation example, the formula (formula 1) for calculating the time difference average value ave when the number of master nodes 10 is two is shown, but when the number of master nodes 10 is three or more, The calculation unit 205 calculates the time difference average value ave based on the following Equation 2.
Figure 0006254028
N in Equation 2 represents the number of master nodes 10 to which the slave node 20 is connected.

また、本動作例では、スレーブノード20が、接続している全てのマスターノード10との間で各時刻情報を取得した後、つまり、全てのマスターノード10との間で時刻同期に関わる一連のやり取りが1回行われた後に時刻差平均値aveを算出する構成を示したが、これに限定される必要はない。例えば、以下のような処理が行なわれてもよい。スレーブノード20は、接続しているマスターノード10毎に、時刻同期に関わる一連のやり取りが行われた後に、時刻同期に関わる一連のやり取りが行われたマスターノード10と、スレーブノード20とのノード間時刻差を算出する。スレーブノード20は、この処理を繰り返し実行し、接続しているマスターノード10毎のノード間時刻差をそれぞれ算出した後に、算出したノード間時刻差に基づいて時刻差平均値aveを算出する。以下、具体例を挙げて説明する。   In this operation example, after the slave node 20 acquires each time information with all the connected master nodes 10, that is, with a series of time synchronizations with all the master nodes 10. Although the configuration is shown in which the time difference average value ave is calculated after one exchange, the present invention is not limited to this. For example, the following processing may be performed. The slave node 20 is a node between the slave node 20 and the master node 10 in which a series of exchanges related to time synchronization are performed after a series of exchanges related to time synchronization is performed for each connected master node 10. The time difference is calculated. The slave node 20 repeatedly executes this process, calculates the inter-node time difference for each connected master node 10, and then calculates the time difference average value ave based on the calculated inter-node time difference. Hereinafter, a specific example will be described.

スレーブノード20が複数台(例えば、2台)のマスターノード10と接続している場合、スレーブノード20は複数台のマスターノード10それぞれとの間でPTPメッセージを送受信する。スレーブノード20が、マスターノード10−1との間で各時刻情報(Sync送信時刻T11、Sync受信時刻T21、Delay送信時刻T31、Delay受信時刻T41)を全て取得すると、スレーブノード20は以下の式3に基づいてマスターノード10−1とスレーブノード20とのノード間時刻差m1を算出する。

Figure 0006254028
When the slave node 20 is connected to a plurality of (for example, two) master nodes 10, the slave node 20 transmits and receives PTP messages to and from each of the plurality of master nodes 10. When the slave node 20 acquires all the time information (Sync transmission time T11, Sync reception time T21, Delay transmission time T31, Delay reception time T41) with the master node 10-1, the slave node 20 obtains the following formula: 3, the inter-node time difference m1 between the master node 10-1 and the slave node 20 is calculated.
Figure 0006254028

同様に、スレーブノード20が、マスターノード10−2との間で各時刻情報(Sync送信時刻T12、Sync受信時刻T22、Delay送信時刻T32、Delay受信時刻T42)を全て取得すると、スレーブノード20は以下の式4に基づいてマスターノード10−2とスレーブノード20とのノード間時刻差m2を算出する。

Figure 0006254028
Similarly, when the slave node 20 acquires all the time information (Sync transmission time T12, Sync reception time T22, Delay transmission time T32, Delay reception time T42) with the master node 10-2, the slave node 20 The inter-node time difference m2 between the master node 10-2 and the slave node 20 is calculated based on the following Equation 4.
Figure 0006254028

上述した処理により、スレーブノード20は、接続している全てのマスターノード10とのノード間時刻差を算出する。スレーブノード20が、全てのマスターノード10とのノード間時刻差を算出すると、スレーブノード20は算出した全てのノード間時刻差に基づいて時刻差平均値aveを算出する。スレーブノード20は、例えば以下の式5に基づいて時刻差平均値aveを算出する。

Figure 0006254028
Through the processing described above, the slave node 20 calculates the inter-node time difference with all the connected master nodes 10. When the slave node 20 calculates inter-node time differences with all the master nodes 10, the slave node 20 calculates a time difference average value ave based on all the calculated inter-node time differences. The slave node 20 calculates the time difference average value ave based on the following formula 5, for example.
Figure 0006254028

[第2動作例]
図5は、本発明の第2動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。なお、図5の説明では、マスターノード10の台数が2台(マスターノード10−1、マスターノード10−2)であり、スレーブノード20の台数が1台である場合を例に説明する。また、図3と同様の処理については、図5において図3と同様の符号を付して説明を省略する。
[Second operation example]
FIG. 5 is a sequence diagram showing an operation example of a communication sequence of time synchronization processing in the second operation example of the present invention. In the description of FIG. 5, a case where the number of master nodes 10 is two (master node 10-1 and master node 10-2) and the number of slave nodes 20 is one will be described as an example. Further, the processing similar to that in FIG. 3 is denoted by the same reference numerals as those in FIG. 3 in FIG.

図5に示されるように、第2動作例における時刻同期処理の通信シーケンスでは、所定の期間T0の間、ステップS101からステップS116までの処理が繰り返し実行される。つまり、マスターノード10−1とスレーブノード20との間、及び、マスターノード10−2とスレーブノード20との間で、所定の期間T0の間、時刻同期に関わる一連のやり取りが行われる。スレーブノード20が、マスターノード10−1及び10−2との間で時刻同期に関わる一連のやり取りを行う回数は、例えば以下の式6及び7に基づいて算出される。

Figure 0006254028
Figure 0006254028
As shown in FIG. 5, in the communication sequence of the time synchronization process in the second operation example, the processes from step S101 to step S116 are repeatedly executed during a predetermined period T0. That is, a series of exchanges related to time synchronization is performed between the master node 10-1 and the slave node 20 and between the master node 10-2 and the slave node 20 for a predetermined period T0. The number of times the slave node 20 performs a series of exchanges related to time synchronization with the master nodes 10-1 and 10-2 is calculated based on, for example, the following formulas 6 and 7.
Figure 0006254028
Figure 0006254028

式6のxは、所定の期間T0の間にスレーブノード20がマスターノード10−1との間で時刻同期に関わる一連のやり取りを行う回数を表し、Xはスレーブノード20とマスターノード10−1との間で時刻同期に関わる一連のやり取りを行う周期を表す。式7のyは、所定の期間T0の間にスレーブノード20がマスターノード10−2との間で時刻同期に関わる一連のやり取りを行う回数を表し、Yはスレーブノード20とマスターノード10−2との間で時刻同期に関わる一連のやり取りを行う周期を表す。なお、所定の期間T0の間にスレーブノード20が各マスターノード10との間で時刻同期に関わる一連のやり取りを行う回数は、全てのマスターノード10で同じ回数であってもよいし、マスターノード10毎に予め決められていてもよい。   In Expression 6, x represents the number of times that the slave node 20 performs a series of exchanges related to time synchronization with the master node 10-1 during a predetermined period T0, and X represents the slave node 20 and the master node 10-1. Represents a cycle in which a series of exchanges related to time synchronization are performed. Y in Expression 7 represents the number of times the slave node 20 performs a series of exchanges related to time synchronization with the master node 10-2 during a predetermined period T0, and Y represents the slave node 20 and the master node 10-2. Represents a cycle in which a series of exchanges related to time synchronization are performed. Note that the number of times that the slave node 20 performs a series of exchanges related to time synchronization with each master node 10 during the predetermined period T0 may be the same for all the master nodes 10 or the master node. It may be determined in advance every ten.

スレーブノード20は、マスターノード10毎に算出された回数に応じた回数で、各マスターノード10との間で時刻同期に関わる一連のやり取りを行う。これにより、スレーブノード20は、所定の期間T0における時刻情報をマスターノード10毎に取得する。所定の期間T0が経過すると、スレーブノード20は所定の期間T0の間に取得したマスターノード10毎の時刻情報に基づいて、所定の期間T0におけるノード間時刻差の平均値(以下、「期間平均値」という。)(第1の統計値)をマスターノード10毎に算出する(ステップS301)。例えば、マスターノード10−1とスレーブノード20との期間平均値M1は、以下の式8に基づいて算出される。また、例えば、マスターノード10−2とスレーブノード20との期間平均値M2は、以下の式9に基づいて算出される。

Figure 0006254028
Figure 0006254028
The slave node 20 performs a series of exchanges related to time synchronization with each master node 10 by the number of times corresponding to the number of times calculated for each master node 10. Thereby, the slave node 20 acquires the time information in the predetermined period T0 for each master node 10. When the predetermined period T0 elapses, the slave node 20 determines, based on the time information for each master node 10 acquired during the predetermined period T0, an average value of inter-node time differences in the predetermined period T0 (hereinafter referred to as “period average”). (Referred to as “value”) (first statistical value) is calculated for each master node 10 (step S301). For example, the period average value M1 between the master node 10-1 and the slave node 20 is calculated based on the following Expression 8. Further, for example, the period average value M2 between the master node 10-2 and the slave node 20 is calculated based on the following Expression 9.
Figure 0006254028
Figure 0006254028

式8及び式9の(l)は、所定の期間T0の間に各時刻情報が取得された時点の時刻同期に関わる一連のやり取りの回数を表す。つまり、1回目の時刻同期に関わる一連のやり取りにおいて取得された時刻情報は(l)の値が(1)となる。その後、スレーブノード20は、マスターノード10毎に算出した期間平均値M1及びM2に基づいて時刻差平均値ave1(第2の統計値)を算出する(ステップS302)。時刻差平均値ave1は、例えば以下の式10に基づいて算出される。

Figure 0006254028
スレーブノード20は、算出した時刻差平均値ave1に基づいてスレーブ時刻を補正する(ステップS303)。
上述した処理によってスレーブノード20の時刻が補正される。 (1) in Equation 8 and Equation 9 represents the number of series of exchanges related to time synchronization at the time when each time information is acquired during the predetermined period T0. That is, the value of (l) is (1) in the time information acquired in the series of exchanges related to the first time synchronization. Thereafter, the slave node 20 calculates a time difference average value ave1 (second statistical value) based on the period average values M1 and M2 calculated for each master node 10 (step S302). The time difference average value ave1 is calculated based on the following Expression 10, for example.
Figure 0006254028
The slave node 20 corrects the slave time based on the calculated time difference average value ave1 (step S303).
The time of the slave node 20 is corrected by the process described above.

図6は、本発明の第2動作例におけるスレーブノード20の処理の流れを示すフローチャートである。また、図4と同様の処理については、図6において図4と同様の符号を付して説明を省略する。
ステップS206までの処理が終了し、ステップS206において、全てのマスターノード10との間で時刻情報が取得された場合(ステップS206−YES)、制御部202は所定の期間T0が経過したか否か判定する(ステップS401)。所定の期間T0が経過していない場合(ステップS401−NO)、スレーブノード20はステップS201以降の処理を繰り返し実行する。
FIG. 6 is a flowchart showing a process flow of the slave node 20 in the second operation example of the present invention. Also, processing similar to that in FIG. 4 is denoted by the same reference numerals as in FIG. 4 in FIG.
When the processing up to step S206 is completed and time information is acquired with all the master nodes 10 in step S206 (step S206—YES), the control unit 202 determines whether or not a predetermined period T0 has elapsed. Determination is made (step S401). When the predetermined period T0 has not elapsed (step S401—NO), the slave node 20 repeatedly executes the processes after step S201.

一方、所定の期間T0が経過した場合(ステップS401−YES)、算出部205は所定の期間T0の間に取得された時刻情報に基づいてマスターノード10毎の期間平均値を算出する(ステップS402)。その後、算出部205は、算出したマスターノード10毎の期間平均値に基づいて時刻差平均値ave1を算出する(ステップS403)。時刻補正部206は、算出された時刻差平均値ave1に基づいてスレーブ時刻を補正する(ステップS404)。   On the other hand, when the predetermined period T0 has elapsed (step S401—YES), the calculation unit 205 calculates the average period value for each master node 10 based on the time information acquired during the predetermined period T0 (step S402). ). Thereafter, the calculation unit 205 calculates a time difference average value ave1 based on the calculated period average value for each master node 10 (step S403). The time correction unit 206 corrects the slave time based on the calculated time difference average value ave1 (step S404).

以上のように構成されたスレーブノード20によれば、中継装置内のキューイング遅延等の影響によりマスターノード10とスレーブノード20との間の遅延時間に揺らぎが生じた場合であっても、正しい時刻から大きくずれた時刻でスレーブノード20の時刻が補正されるおそれが軽減される。具体的には、所定の期間T0の間に複数のマスターノード10との間でそれぞれ取得された複数の時刻情報に基づいて算出されるマスターノード10毎の期間平均値の平均値でスレーブ時刻が補正される。したがって、時刻同期に関わる一連のやり取りが1回行われた際に取得された時刻情報により算出される、スレーブ時刻と各マスターノードそれぞれのマスター時刻との時刻差の平均値でスレーブ時刻が補正されるよりも正しい時刻に近い時刻で補正することができる。そのため、スレーブノード20の時刻同期の精度低下を抑えることが可能になる。   According to the slave node 20 configured as described above, even if fluctuation occurs in the delay time between the master node 10 and the slave node 20 due to the influence of queuing delay or the like in the relay device, it is correct. The possibility that the time of the slave node 20 is corrected at a time greatly deviated from the time is reduced. Specifically, the slave time is an average value of the period average values for each master node 10 calculated based on a plurality of time information respectively acquired with the plurality of master nodes 10 during a predetermined period T0. It is corrected. Therefore, the slave time is corrected by the average value of the time difference between the slave time and the master time of each master node, which is calculated from the time information acquired when a series of exchanges related to time synchronization is performed once. It is possible to correct the time closer to the correct time. Therefore, it is possible to suppress a decrease in accuracy of time synchronization of the slave node 20.

<変形例>
本動作例では、マスターノード10の台数が2台である場合の時刻差平均値ave1を算出する式(式10)を示したが、マスターノード10の台数が3台以上である場合には、算出部205は以下の式11に基づいて時刻差平均値ave1を算出する。

Figure 0006254028
式11のnは、スレーブノード20が接続しているマスターノード10の台数を表す。 <Modification>
In this operation example, the equation (Equation 10) for calculating the time difference average value ave1 when the number of master nodes 10 is two is shown, but when the number of master nodes 10 is three or more, The calculation unit 205 calculates the time difference average value ave1 based on the following Expression 11.
Figure 0006254028
N in Expression 11 represents the number of master nodes 10 to which the slave node 20 is connected.

また、本動作例では、スレーブノード20が、所定の期間T0の間に取得した時刻情報を全て記憶し、所定の期間T0経過後に期間平均値及び時刻差平均値ave1を算出する構成を示したが、これに限定される必要はない。例えば、以下のような処理が行なわれてもよい。スレーブノード20は、接続しているマスターノード10毎に、時刻同期に関わる一連のやり取りが行われた後に、時刻同期に関わる一連のやり取りが行われたマスターノード10と、スレーブノード20とのノード間時刻差を算出する。スレーブノード20は、この処理を所定の期間T0の間、繰り返し実行し、所定の期間T0におけるノード間時刻差をマスターノード10毎に算出する。所定の期間T0経過後、スレーブノード20は、所定の期間T0の間に算出したマスターノード10毎のノード間時刻差に基づいて、期間平均値をマスターノード10毎に算出する。そして、スレーブノード20は、算出したマスターノード10毎の期間平均値に基づいて時刻差平均値ave1を算出する。以下、具体例を挙げて説明する。   Further, in this operation example, a configuration is shown in which the slave node 20 stores all time information acquired during the predetermined period T0 and calculates the period average value and the time difference average value ave1 after the predetermined period T0 has elapsed. However, it need not be limited to this. For example, the following processing may be performed. The slave node 20 is a node between the slave node 20 and the master node 10 in which a series of exchanges related to time synchronization are performed after a series of exchanges related to time synchronization is performed for each connected master node 10. The time difference is calculated. The slave node 20 repeatedly executes this process for a predetermined period T0, and calculates the inter-node time difference in the predetermined period T0 for each master node 10. After the predetermined period T0 has elapsed, the slave node 20 calculates a period average value for each master node 10 based on the inter-node time difference for each master node 10 calculated during the predetermined period T0. Then, the slave node 20 calculates the time difference average value ave1 based on the calculated period average value for each master node 10. Hereinafter, a specific example will be described.

スレーブノード20が複数台(例えば、2台)のマスターノード10と接続している場合、スレーブノード20は複数台のマスターノード10それぞれとの間でPTPメッセージを送受信する。スレーブノード20が、マスターノード10−1との間で各時刻情報を全て取得すると、スレーブノード20は以下の式12に基づいてマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)を算出する。

Figure 0006254028
When the slave node 20 is connected to a plurality of (for example, two) master nodes 10, the slave node 20 transmits and receives PTP messages to and from each of the plurality of master nodes 10. When the slave node 20 acquires all the time information with the master node 10-1, the slave node 20 determines the inter-node time difference m1 between the master node 10-1 and the slave node 20 based on the following Expression 12. l) is calculated.
Figure 0006254028

同様に、スレーブノード20が、マスターノード10−2との間で各時刻情報を全て取得すると、スレーブノード20は以下の式13に基づいてマスターノード10−2とスレーブノード20との時刻差m2(l)を算出する。

Figure 0006254028
Similarly, when the slave node 20 acquires all the time information with the master node 10-2, the slave node 20 determines the time difference m2 between the master node 10-2 and the slave node 20 based on the following Expression 13. (L) is calculated.
Figure 0006254028

上述した処理により、スレーブノード20は、所定の期間T0の間、接続している全てのマスターノード10とのノード間時刻差mk(l)を算出する。所定の期間T0経過後、スレーブノード20は所定の期間T0の間に算出したノード間時刻差mk(l)に基づいて、期間平均値Mkをマスターノード10毎に算出する。例えば、スレーブノード20は、所定の期間T0の間におけるマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)の期間平均値M1を以下の式14に基づいて算出する。また、例えば、スレーブノード20は、所定の期間T0の間におけるマスターノード10−2とスレーブノード20とのノード間時刻差m2(l)の期間平均値M2を以下の式15に基づいて算出する。

Figure 0006254028
Figure 0006254028
その後、算出部205は、算出した期間平均値M1及びM2に基づいて時刻差平均値ave1を上記式10に基づいて算出する。 Through the processing described above, the slave node 20 calculates the inter-node time difference mk (l) with all the connected master nodes 10 during the predetermined period T0. After a predetermined period T0 has elapsed, the slave node 20 calculates a period average value Mk for each master node 10 based on the inter-node time difference mk (l) calculated during the predetermined period T0. For example, the slave node 20 calculates a period average value M1 of the inter-node time difference m1 (l) between the master node 10-1 and the slave node 20 during a predetermined period T0 based on the following Expression 14. For example, the slave node 20 calculates a period average value M2 of the inter-node time difference m2 (l) between the master node 10-2 and the slave node 20 during a predetermined period T0 based on the following Expression 15. .
Figure 0006254028
Figure 0006254028
After that, the calculation unit 205 calculates the time difference average value ave1 based on the above formula 10 based on the calculated period average values M1 and M2.

[第3動作例]
図7は、本発明の第3動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。なお、図7の説明では、マスターノード10の台数が2台(マスターノード10−1、マスターノード10−2)であり、スレーブノード20の台数が1台である場合を例に説明する。また、図3と同様の処理については、図7において図3と同様の符号を付して説明を省略する。
[Third operation example]
FIG. 7 is a sequence diagram showing an operation example of a communication sequence of time synchronization processing in the third operation example of the present invention. In the description of FIG. 7, a case where the number of master nodes 10 is two (master node 10-1 and master node 10-2) and the number of slave nodes 20 is one will be described as an example. Further, the processing similar to that in FIG. 3 is denoted by the same reference numerals as those in FIG. 3 in FIG.

マスターノード10−1は、定期的にスレーブノード20に対して、Announceメッセージを送信する(ステップS501)。この際、マスターノード10−1は、Announceメッセージの中に、マスターノード10−1の時刻源の品質情報を格納する。スレーブノード20は、マスターノード10−1から送信されたAnnounceメッセージを受信し、Announceメッセージ中に格納される品質情報を抽出し保持する。   The master node 10-1 periodically transmits an Announce message to the slave node 20 (step S501). At this time, the master node 10-1 stores the quality information of the time source of the master node 10-1 in the Announce message. The slave node 20 receives the Announce message transmitted from the master node 10-1, and extracts and holds quality information stored in the Announce message.

また、マスターノード10−2は、定期的にスレーブノード20に対して、Announceメッセージを送信する(ステップS502)。この際、マスターノード10−2は、Announceメッセージの中に、マスターノード10−2の時刻源の品質情報を格納する。スレーブノード20は、マスターノード10−2から送信されたAnnounceメッセージを受信し、Announceメッセージ中に格納される品質情報を抽出し保持する。その後、ステップS101〜ステップS116までの処理が実行される。   In addition, the master node 10-2 periodically transmits an Announce message to the slave node 20 (step S502). At this time, the master node 10-2 stores the quality information of the time source of the master node 10-2 in the Announce message. The slave node 20 receives the Announce message transmitted from the master node 10-2, extracts the quality information stored in the Announce message, and holds it. Thereafter, the processing from step S101 to step S116 is executed.

第3動作例におけるスレーブノード20は、上述した処理(ステップS501〜ステップS116までの処理)によりマスターノード10−1及び10−2との間で品質情報及び時刻情報(Sync送信時刻T11及びT12、Sync受信時刻T21及びT22、Delay送信時刻T31及びT32、Delay受信時刻T41及びT42)を取得する。スレーブノード20は、品質情報と各時刻情報とに基づいて時刻差平均値ave2を算出する(ステップS503)。時刻差平均値ave2は、例えば以下の式16に基づいて算出される。

Figure 0006254028
The slave node 20 in the third operation example performs quality information and time information (Sync transmission times T11 and T12, Sync messages) with the master nodes 10-1 and 10-2 by the above-described processing (processing from Step S501 to Step S116). Sync reception times T21 and T22, Delay transmission times T31 and T32, and Delay reception times T41 and T42) are acquired. The slave node 20 calculates the time difference average value ave2 based on the quality information and each time information (step S503). The time difference average value ave2 is calculated based on the following Expression 16, for example.
Figure 0006254028

式16のaはマスターノード10−1の時刻源の品質を表し、bはマスターノード10−2の時刻源の品質を表す。スレーブノード20は、算出した時刻差平均値ave2に基づいてスレーブ時刻を補正する(ステップS504)。
上述した処理によってスレーブノード20の時刻が補正される。
In Expression 16, a represents the quality of the time source of the master node 10-1, and b represents the quality of the time source of the master node 10-2. The slave node 20 corrects the slave time based on the calculated time difference average value ave2 (step S504).
The time of the slave node 20 is corrected by the process described above.

図8は、本発明の第3動作例におけるスレーブノード20の処理の流れを示すフローチャートである。また、図4と同様の処理については、図8において図4と同様の符号を付して説明を省略する。
スレーブノード20の通信部201は、マスターノード10から送信されるAnnounceメッセージを受信する(ステップS601)。通信部201は、マスターノード10からAnnounceメッセージを受信すると、受信したAnnounceメッセージを制御部202に転送する。制御部202は、Announceメッセージ中に格納されている品質情報を抽出し保持する。
FIG. 8 is a flowchart showing a process flow of the slave node 20 in the third operation example of the present invention. Also, the processing similar to that in FIG. 4 is denoted by the same reference numerals as those in FIG. 4 in FIG.
The communication unit 201 of the slave node 20 receives the Announce message transmitted from the master node 10 (step S601). Upon receiving the Announce message from the master node 10, the communication unit 201 transfers the received Announce message to the control unit 202. The control unit 202 extracts and holds the quality information stored in the Announce message.

その後、ステップS201〜ステップS205までの処理が実行されると、制御部202は接続している全てのマスターノード10との間で品質情報及び時刻情報を取得したか否か判定する(ステップS602)。全てのマスターノード10との間で品質情報及び時刻情報を取得していない場合(ステップS602−NO)、スレーブノード20はステップS601以降の処理を繰り返し実行する。   Thereafter, when the processing from step S201 to step S205 is executed, the control unit 202 determines whether or not the quality information and time information have been acquired with all the connected master nodes 10 (step S602). . When quality information and time information have not been acquired with all the master nodes 10 (step S602-NO), the slave node 20 repeatedly executes the processing after step S601.

一方、全てのマスターノード10との間で品質情報及び時刻情報を取得した場合(ステップS602−YES)、制御部202は記録している、各マスターノード10との間で取得した品質情報及び各時刻情報(Sync送信時刻T1k、Sync受信時刻T2k、Delay送信時刻T3k、Delay受信時刻T4k)を算出部205に出力する。
算出部205は、制御部202から出力された品質情報及び各時刻情報に基づいて時刻差平均値ave2を算出する(ステップS603)。時刻補正部206は、算出された時刻差平均値ave2に基づいてスレーブ時刻を補正する(ステップS604)。
On the other hand, when quality information and time information are acquired with all the master nodes 10 (step S602-YES), the control unit 202 records the quality information acquired with each master node 10 and each The time information (Sync transmission time T1k, Sync reception time T2k, Delay transmission time T3k, Delay reception time T4k) is output to the calculation unit 205.
The calculation unit 205 calculates the time difference average value ave2 based on the quality information and each time information output from the control unit 202 (step S603). The time correction unit 206 corrects the slave time based on the calculated time difference average value ave2 (step S604).

以上のように構成されたスレーブノード20によれば、中継装置内のキューイング遅延等の影響によりマスターノード10とスレーブノード20との間の遅延時間に揺らぎが生じた場合であっても、正しい時刻から大きくずれた時刻でスレーブノード20の時刻が補正されるおそれが軽減される。具体的には、複数のマスターノード10との間でそれぞれ取得された時刻情報に基づいて算出される、スレーブ時刻と各マスターノード10それぞれのマスター時刻との時刻差の平均値を各マスターノード10の時刻源の品質で重み付けした値の平均値でスレーブ時刻が補正される。したがって、より精度の高い同期を実現できる可能性を向上させることができる。例えば、マスターノード10の時刻源の品質は劣化するおそれがあるため、品質の高いものを重く時刻差平均値の算出に組み込むことで、より精度の高い同期が実現される。そのため、スレーブノード20の時刻同期の精度低下を抑えることが可能になる。   According to the slave node 20 configured as described above, even if fluctuation occurs in the delay time between the master node 10 and the slave node 20 due to the influence of queuing delay or the like in the relay device, it is correct. The possibility that the time of the slave node 20 is corrected at a time greatly deviated from the time is reduced. Specifically, the average value of the time difference between the slave time and the master time of each master node 10 calculated based on the time information acquired with each of the plurality of master nodes 10 is obtained for each master node 10. The slave time is corrected by an average value of values weighted by the quality of the time source. Therefore, it is possible to improve the possibility of realizing more accurate synchronization. For example, since the quality of the time source of the master node 10 may be deteriorated, synchronization with higher accuracy is realized by incorporating a high-quality one into the calculation of the time difference average value. Therefore, it is possible to suppress a decrease in accuracy of time synchronization of the slave node 20.

<変形例>
本動作例では、マスターノード10の台数が2台である場合の時刻差平均値ave2を算出する式(式16)を示したが、マスターノード10の台数が3台以上(例えば、n台)である場合には、算出部205は以下の式17に基づいて時刻差平均値ave2を算出する。

Figure 0006254028
式17のαkは、マスターノード10の時刻源の品質を表し、ここではマスターノード10の時刻源の品質が高い場合、αkの値は小さくなると定義している。算出部205は、ノード間時刻差の値が小さい順に、マスターノード10の時刻源の品質が高い値を順番に重みづけの値として割り当ててもよいし、その他の順番でマスターノード10の時刻源の品質を重みづけの値として割り当ててもよい。 <Modification>
In this operation example, the equation (Equation 16) for calculating the time difference average value ave2 when the number of master nodes 10 is two is shown, but the number of master nodes 10 is three or more (for example, n). In this case, the calculation unit 205 calculates the time difference average value ave2 based on the following Expression 17.
Figure 0006254028
Αk in Expression 17 represents the quality of the time source of the master node 10, and here, when the quality of the time source of the master node 10 is high, the value of αk is defined to be small. The calculation unit 205 may assign values having higher quality of the time source of the master node 10 as weighting values in order from the smallest value of the time difference between nodes, or the time sources of the master node 10 in other orders. May be assigned as a weighting value.

本動作例では、マスターノード10の時刻源の品質が固定値である場合を例に説明したが、マスターノード10の時刻源の品質は時間に応じて変化してもよい。
また、本動作例では、スレーブノード20が、接続している全てのマスターノード10との間で品質情報及び各時刻情報を取得した後、つまり、全てのマスターノード10との間で品質情報が取得され、かつ、時刻同期に関わる一連のやり取りが1回行われた後に時刻差平均値ave2を算出する構成を示したが、これに限定される必要はない。例えば、以下のような処理が行なわれてもよい。スレーブノード20は、接続しているマスターノード10毎に、Announceメッセージを受信し、受信したAnnounceメッセージからマスターノード10毎の時刻源の品質情報を取得する。また、スレーブノード20は、接続しているマスターノード10毎に、時刻同期に関わる一連のやり取りが行われた後に、時刻同期に関わる一連のやり取りが行われたマスターノード10と、スレーブノードとのノード間時刻差を算出する。スレーブノード20は、この処理を繰り返し実行し、接続しているマスターノード10毎のノード間時刻差をそれぞれ算出した後に、算出した各ノード間時刻差と取得した品質情報とに基づいて時刻差平均値ave2を算出する。以下、具体例を挙げて説明する。
In this operation example, the case where the quality of the time source of the master node 10 is a fixed value has been described as an example, but the quality of the time source of the master node 10 may change according to time.
In this operation example, after the slave node 20 acquires the quality information and each time information with all the connected master nodes 10, that is, with the quality information with all the master nodes 10. Although a configuration has been shown in which the time difference average value ave2 is calculated after a series of exchanges related to time synchronization that have been acquired and performed once, the present invention is not limited to this. For example, the following processing may be performed. The slave node 20 receives the Announce message for each connected master node 10, and acquires the time source quality information for each master node 10 from the received Announce message. In addition, the slave node 20 is connected between the master node 10 and the slave node that have performed a series of exchanges related to time synchronization after a series of exchanges related to time synchronization is performed for each connected master node 10. Calculate the time difference between nodes. The slave node 20 repeatedly executes this process, calculates the inter-node time difference for each connected master node 10, and then calculates the time difference average based on the calculated inter-node time difference and the acquired quality information. The value ave2 is calculated. Hereinafter, a specific example will be described.

スレーブノード20が複数台(例えば、2台)のマスターノード10と接続している場合、スレーブノード20は複数台のマスターノード10それぞれとの間でPTPメッセージを送受信する。スレーブノード20が、マスターノード10−1との間で時刻源の品質情報(例えば、a及びb)及び各時刻情報を全て取得すると、スレーブノード20は上記式3に基づいてマスターノード10−1とスレーブノード20とのノード間時刻差m1を算出する。
同様に、スレーブノード20が、マスターノード10−2との間で時刻源の品質情報及び各時刻情報を全て取得すると、スレーブノード20は上記式4に基づいてマスターノード10−2とスレーブノード20とのノード間時刻差m2を算出する。
When the slave node 20 is connected to a plurality of (for example, two) master nodes 10, the slave node 20 transmits and receives PTP messages to and from each of the plurality of master nodes 10. When the slave node 20 acquires all of the time source quality information (for example, a and b) and each time information with the master node 10-1, the slave node 20 determines that the master node 10-1 And the node time difference m1 between the slave node 20 and the slave node 20 is calculated.
Similarly, when the slave node 20 acquires all the quality information and each time information of the time source with the master node 10-2, the slave node 20 determines that the master node 10-2 and the slave node 20 are based on the above equation 4. The time difference m2 between the nodes is calculated.

上述した処理により、スレーブノード20は、接続している全てのマスターノード10とのノード間時刻差を算出する。スレーブノード20が、全てのマスターノード10とのノード間時刻差を算出すると、スレーブノード20は算出した全てのノード間時刻差と、各マスターノード10の品質情報(例えば、a及びb)とに基づいて時刻差平均値ave2を算出する。スレーブノード20は、例えば以下の式18に基づいて時刻差平均値ave2を算出する。

Figure 0006254028
Through the processing described above, the slave node 20 calculates the inter-node time difference with all the connected master nodes 10. When the slave node 20 calculates the inter-node time difference with all the master nodes 10, the slave node 20 calculates the inter-node time difference and the quality information (for example, a and b) of each master node 10. Based on this, the time difference average value ave2 is calculated. The slave node 20 calculates the time difference average value ave2 based on the following equation 18, for example.
Figure 0006254028

[第4動作例]
図9は、本発明の第4動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。なお、図9の説明では、マスターノード10の台数が2台(マスターノード10−1、マスターノード10−2)であり、スレーブノード20の台数が1台である場合を例に説明する。また、図7と同様の処理については、図9において図7と同様の符号を付して説明を省略する。
[Fourth operation example]
FIG. 9 is a sequence diagram showing an operation example of a communication sequence of time synchronization processing in the fourth operation example of the present invention. In the description of FIG. 9, a case where the number of master nodes 10 is two (master node 10-1 and master node 10-2) and the number of slave nodes 20 is one will be described as an example. Further, processing similar to that in FIG. 7 is denoted by the same reference numerals as those in FIG.

図9に示されるように、第4動作例における時刻同期処理の通信シーケンスでは、スレーブノード20がマスターノード10−1及び10−2からAnnounceメッセージをそれぞれ受信した後、所定の期間T0の間、ステップS101からステップS116までの処理が繰り返し実行される。つまり、マスターノード10−1とスレーブノード20との間、及び、マスターノード10−2とスレーブノード20との間で、所定の期間T0の間、時刻同期に関わる一連のやり取りが行われる。スレーブノード20が、マスターノード10−1及び10−2との間で時刻同期に関わる一連のやり取りを行う回数は、例えば上記式6及び7に基づいて算出される。なお、所定の期間T0の間にスレーブノード20が各マスターノード10との間で時刻同期に関わる一連のやり取りを行う回数は、全てのマスターノード10で同じ回数であってもよいし、マスターノード10毎に予め決められていてもよい。   As shown in FIG. 9, in the communication sequence of the time synchronization process in the fourth operation example, after the slave node 20 receives the Announce message from the master nodes 10-1 and 10-2, for a predetermined period T0, The processing from step S101 to step S116 is repeatedly executed. That is, a series of exchanges related to time synchronization is performed between the master node 10-1 and the slave node 20 and between the master node 10-2 and the slave node 20 for a predetermined period T0. The number of times that the slave node 20 performs a series of exchanges related to time synchronization with the master nodes 10-1 and 10-2 is calculated based on, for example, the above formulas 6 and 7. Note that the number of times that the slave node 20 performs a series of exchanges related to time synchronization with each master node 10 during the predetermined period T0 may be the same for all the master nodes 10 or the master node. It may be determined in advance every ten.

スレーブノード20は、マスターノード10毎に算出された回数に応じた回数で、各マスターノード10との間で時刻同期に関わる一連のやり取りを行う。これにより、スレーブノード20は、所定の期間T0における時刻情報をマスターノード10毎に取得する。所定の期間T0が経過すると、スレーブノード20は所定の期間T0の間に取得したマスターノード10毎の時刻情報に基づいて、所定の期間T0における期間平均値をマスターノード10毎に算出する(ステップS701)。例えば、マスターノード10−1とスレーブノード20との期間平均値M1は、上記式8に基づいて算出される。また、例えば、マスターノード10−2とスレーブノード20との期間平均値M2は、上記式9に基づいて算出される。   The slave node 20 performs a series of exchanges related to time synchronization with each master node 10 by the number of times corresponding to the number of times calculated for each master node 10. Thereby, the slave node 20 acquires the time information in the predetermined period T0 for each master node 10. When the predetermined period T0 elapses, the slave node 20 calculates the average period value for the predetermined period T0 for each master node 10 based on the time information for each master node 10 acquired during the predetermined period T0 (step S0). S701). For example, the average period value M1 between the master node 10-1 and the slave node 20 is calculated based on Equation 8 above. Further, for example, the average period value M2 between the master node 10-2 and the slave node 20 is calculated based on Equation 9 above.

その後、スレーブノード20は、マスターノード10毎に算出した期間平均値M1及びM2と、マスターノード10−1及び10−2から取得した各マスターノード10の品質情報とに基づいて時刻差平均値ave3を算出する(ステップS702)。時刻差平均値ave3は、例えば以下の式19に基づいて算出される。

Figure 0006254028
スレーブノード20は、算出した時刻差平均値ave3に基づいてスレーブ時刻を補正する(ステップS703)。
上述した処理によってスレーブノード20の時刻が補正される。 Thereafter, the slave node 20 calculates the time difference average value ave3 based on the average values M1 and M2 calculated for each master node 10 and the quality information of each master node 10 acquired from the master nodes 10-1 and 10-2. Is calculated (step S702). The time difference average value ave3 is calculated based on the following Expression 19, for example.
Figure 0006254028
The slave node 20 corrects the slave time based on the calculated time difference average value ave3 (step S703).
The time of the slave node 20 is corrected by the process described above.

図10は、本発明の第4動作例におけるスレーブノード20の処理の流れを示すフローチャートである。また、図8と同様の処理については、図10において図8と同様の符号を付して説明を省略する。
ステップS602までの処理が終了し、ステップS602において、全てのマスターノード10との間で品質情報及び時刻情報が取得された場合(ステップS602−YES)、制御部202は所定の期間T0が経過したか否か判定する(ステップS801)。所定の期間T0が経過していない場合(ステップS801−NO)、スレーブノード20はステップS201以降の処理を繰り返し実行する。
FIG. 10 is a flowchart showing a processing flow of the slave node 20 in the fourth operation example of the present invention. Further, the processing similar to that in FIG. 8 is denoted by the same reference numerals as those in FIG. 8 in FIG.
When the processing up to step S602 is completed and quality information and time information have been acquired with all the master nodes 10 in step S602 (step S602—YES), the control unit 202 has passed a predetermined period T0. Whether or not (step S801). When the predetermined period T0 has not elapsed (step S801—NO), the slave node 20 repeatedly executes the processes after step S201.

一方、所定の期間T0が経過した場合(ステップS801−YES)、算出部205は所定の期間T0の間に取得された時刻情報に基づいてマスターノード10毎の期間平均値を算出する(ステップS802)。その後、算出部205は、算出したマスターノード10毎の期間平均値と、各マスターノード10の品質情報とに基づいて時刻差平均値ave3を算出する(ステップS803)。時刻補正部206は、算出された時刻差平均値ave3に基づいてスレーブ時刻を補正する(ステップS804)。   On the other hand, when the predetermined period T0 has elapsed (step S801—YES), the calculation unit 205 calculates a period average value for each master node 10 based on the time information acquired during the predetermined period T0 (step S802). ). Thereafter, the calculation unit 205 calculates the time difference average value ave3 based on the calculated average period value for each master node 10 and the quality information of each master node 10 (step S803). The time correction unit 206 corrects the slave time based on the calculated time difference average value ave3 (step S804).

以上のように構成されたスレーブノード20によれば、中継装置内のキューイング遅延等の影響によりマスターノード10とスレーブノード20との間の遅延時間に揺らぎが生じた場合であっても、正しい時刻から大きくずれた時刻でスレーブノード20の時刻が補正されるおそれが軽減される。具体的には、所定の期間T0の間に複数のマスターノード10との間でそれぞれ取得された複数の時刻情報に基づいて算出されるマスターノード10毎の期間平均値の平均値を各マスターノード10の時刻源の品質で重み付けした値の平均値でスレーブ時刻が補正される。したがって、より精度の高い同期が実現できる可能性を向上させることができる。例えば、マスターノード10の時刻源の品質は劣化するおそれがあるため、品質の高いものを重く時刻差平均値の算出に組み込むことで、より精度の高い同期が実現される。そのため、スレーブノード20の時刻同期の精度低下を抑えることが可能になる。   According to the slave node 20 configured as described above, even if fluctuation occurs in the delay time between the master node 10 and the slave node 20 due to the influence of queuing delay or the like in the relay device, it is correct. The possibility that the time of the slave node 20 is corrected at a time greatly deviated from the time is reduced. Specifically, the average value of the period average values for each master node 10 calculated based on the plurality of time information respectively acquired with the plurality of master nodes 10 during the predetermined period T0 is set for each master node. The slave time is corrected by an average value of values weighted by the quality of the ten time sources. Therefore, it is possible to improve the possibility of realizing more accurate synchronization. For example, since the quality of the time source of the master node 10 may be deteriorated, synchronization with higher accuracy is realized by incorporating a high-quality one into the calculation of the time difference average value. Therefore, it is possible to suppress a decrease in accuracy of time synchronization of the slave node 20.

<変形例>
本動作例では、マスターノード10の台数が2台である場合の時刻差平均値ave3を算出する式(式19)を示したが、マスターノード10の台数が3台以上である場合には、算出部205は上記式17の時間間隔T0における平均で表される式に基づいて時刻差平均値ave3を算出する。
<Modification>
In this operation example, the equation (Equation 19) for calculating the time difference average value ave3 when the number of master nodes 10 is two is shown, but when the number of master nodes 10 is three or more, The calculation unit 205 calculates the time difference average value ave3 based on the expression represented by the average in the time interval T0 of Expression 17 above.

また、本動作例では、スレーブノード20が、所定の期間T0の間に取得した時刻情報を全て記憶し、所定の期間T0経過後に期間平均値及び時刻差平均値ave3を算出する構成を示したが、これに限定される必要はない。例えば、以下のような処理が行なわれてもよい。スレーブノード20は、接続しているマスターノード10毎に、時刻同期に関わる一連のやり取りが行われた後に、時刻同期に関わる一連のやり取りが行われたマスターノード10と、スレーブノード20とのノード間時刻差を算出する。スレーブノード20は、この処理を所定の期間T0の間、繰り返し実行し、所定の期間T0におけるノード間時刻差をマスターノード10毎に算出する。所定の期間T0経過後、スレーブノード20は、所定の期間T0の間に算出したマスターノード10毎のノード間時刻差に基づいて、期間平均値をマスターノード10毎に算出する。そして、スレーブノード20は、算出したマスターノード10毎の期間平均値と、各マスターノード10の時刻源の品質情報とに基づいて時刻差平均値ave3を算出する。以下、具体例を挙げて説明する。   Further, in this operation example, the configuration is shown in which the slave node 20 stores all the time information acquired during the predetermined period T0 and calculates the period average value and the time difference average value ave3 after the predetermined period T0 has elapsed. However, it need not be limited to this. For example, the following processing may be performed. The slave node 20 is a node between the slave node 20 and the master node 10 in which a series of exchanges related to time synchronization are performed after a series of exchanges related to time synchronization is performed for each connected master node 10. The time difference is calculated. The slave node 20 repeatedly executes this process for a predetermined period T0, and calculates the inter-node time difference in the predetermined period T0 for each master node 10. After the predetermined period T0 has elapsed, the slave node 20 calculates a period average value for each master node 10 based on the inter-node time difference for each master node 10 calculated during the predetermined period T0. Then, the slave node 20 calculates the time difference average value ave3 based on the calculated period average value for each master node 10 and the quality information of the time source of each master node 10. Hereinafter, a specific example will be described.

スレーブノード20が複数台(例えば、2台)のマスターノード10と接続している場合、スレーブノード20は複数台のマスターノード10それぞれとの間でPTPメッセージを送受信する。これにより、スレーブノード20は、各マスターノード10の品質情報(例えば、a及びb)及び時刻情報を取得する。スレーブノード20が、マスターノード10−1との間で各時刻情報を全て取得すると、スレーブノード20は上記式12に基づいてマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)を算出する。
同様に、スレーブノード20が、マスターノード10−2との間で各時刻情報を全て取得すると、スレーブノード20は上記式13に基づいてマスターノード10−2とスレーブノード20とのノード間時刻差m2(l)を算出する。
When the slave node 20 is connected to a plurality of (for example, two) master nodes 10, the slave node 20 transmits and receives PTP messages to and from each of the plurality of master nodes 10. Thereby, the slave node 20 acquires the quality information (for example, a and b) and time information of each master node 10. When the slave node 20 acquires all the time information with the master node 10-1, the slave node 20 determines the inter-node time difference m1 (l between the master node 10-1 and the slave node 20 based on the above equation 12. ) Is calculated.
Similarly, when the slave node 20 acquires all the time information with the master node 10-2, the slave node 20 determines the inter-node time difference between the master node 10-2 and the slave node 20 based on the above equation 13. m2 (l) is calculated.

上述した処理により、スレーブノード20は、所定の期間T0の間、接続している全てのマスターノード10とのノード間時刻差mk(l)を算出する。所定の期間T0経過後、スレーブノード20は所定の期間T0の間に算出したノード間時刻差に基づいて、期間平均値Mkをマスターノード10毎に算出する。例えば、スレーブノード20は、所定の期間T0の間におけるマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)の期間平均値M1を上記式14に基づいて算出する。スレーブノード20は、所定の期間T0の間におけるマスターノード10−2とスレーブノード20とのノード間時刻差m2(l)の期間平均値M2を上記式15に基づいて算出する。
その後、算出部205は、算出した各期間平均値M1及びM2と、品質情報(例えば、a及びb)とに基づいて時刻差平均値ave3を上記式19に基づいて算出する。
Through the processing described above, the slave node 20 calculates the inter-node time difference mk (l) with all the connected master nodes 10 during the predetermined period T0. After a predetermined period T0 has elapsed, the slave node 20 calculates a period average value Mk for each master node 10 based on the inter-node time difference calculated during the predetermined period T0. For example, the slave node 20 calculates the period average value M1 of the inter-node time difference m1 (l) between the master node 10-1 and the slave node 20 during the predetermined period T0 based on the above equation 14. The slave node 20 calculates the period average value M2 of the inter-node time difference m2 (l) between the master node 10-2 and the slave node 20 during the predetermined period T0 based on the above equation 15.
After that, the calculation unit 205 calculates the time difference average value ave3 based on the equation 19 based on the calculated period average values M1 and M2 and quality information (for example, a and b).

[第5動作例]
図11は、本発明の第5動作例における時刻同期処理の通信シーケンスの動作例を表すシーケンス図である。なお、図11の説明では、マスターノード10の台数が2台(マスターノード10−1、マスターノード10−2)であり、スレーブノード20の台数が1台である場合を例に説明する。また、図5と同様の処理については、図11において図5と同様の符号を付して説明を省略する。
[Fifth operation example]
FIG. 11 is a sequence diagram showing an operation example of a communication sequence of time synchronization processing in the fifth operation example of the present invention. In the description of FIG. 11, a case where the number of master nodes 10 is two (master node 10-1 and master node 10-2) and the number of slave nodes 20 is one will be described as an example. Further, processing similar to that in FIG. 5 is denoted by the same reference numerals as those in FIG. 5 in FIG.

図11に示されるように、第5動作例における時刻同期処理の通信シーケンスでは、所定の期間T0の間、ステップS101からステップS116までの処理が繰り返し実行される。つまり、マスターノード10−1とスレーブノード20との間、及び、マスターノード10−2とスレーブノード20との間で、所定の期間T0の間、時刻同期に関わる一連のやり取りが行われる。スレーブノード20が、マスターノード10−1及び10−2との間で時刻同期に関わる一連のやり取りを行う回数は、例えば上記式6及び7に基づいて算出される。なお、所定の期間T0の間にスレーブノード20が各マスターノード10との間で時刻同期に関わる一連のやり取りを行う回数は、全てのマスターノード10で同じ回数であってもよいし、マスターノード10毎に予め決められていてもよい。   As shown in FIG. 11, in the communication sequence of the time synchronization process in the fifth operation example, the processes from step S101 to step S116 are repeatedly executed during a predetermined period T0. That is, a series of exchanges related to time synchronization is performed between the master node 10-1 and the slave node 20 and between the master node 10-2 and the slave node 20 for a predetermined period T0. The number of times that the slave node 20 performs a series of exchanges related to time synchronization with the master nodes 10-1 and 10-2 is calculated based on, for example, the above formulas 6 and 7. Note that the number of times that the slave node 20 performs a series of exchanges related to time synchronization with each master node 10 during the predetermined period T0 may be the same for all the master nodes 10 or the master node. It may be determined in advance every ten.

スレーブノード20は、マスターノード10毎に算出された回数に応じた回数で、各マスターノード10との間で時刻同期に関わる一連のやり取りを行う。これにより、スレーブノード20は、所定の期間T0における時刻情報をマスターノード10毎に取得する。所定の期間T0が経過すると、スレーブノード20は所定の期間T0の間に取得したマスターノード10毎の時刻情報に基づいて、所定の期間T0におけるマスターノード10毎の期間平均値を算出する(ステップS901)。例えば、マスターノード10−1とスレーブノード20との期間平均値M1は、上記式8に基づいて算出される。また、例えば、マスターノード10−2とスレーブノード20との期間平均値M2は、上記式9に基づいて算出される。   The slave node 20 performs a series of exchanges related to time synchronization with each master node 10 by the number of times corresponding to the number of times calculated for each master node 10. Thereby, the slave node 20 acquires the time information in the predetermined period T0 for each master node 10. When the predetermined period T0 elapses, the slave node 20 calculates an average value for each master node 10 in the predetermined period T0 based on the time information for each master node 10 acquired during the predetermined period T0 (step S0). S901). For example, the average period value M1 between the master node 10-1 and the slave node 20 is calculated based on Equation 8 above. Further, for example, the average period value M2 between the master node 10-2 and the slave node 20 is calculated based on Equation 9 above.

その後、スレーブノード20は、マスターノード10毎に算出した期間平均値Mk(M1及びM2)と、所定の期間T0の間に行われた時刻同期に関わる一連のやり取り毎のノード間時刻差mk(l)とに基づいて、所定の期間T0におけるノード間時刻差mk(l)の分散値Vkをマスターノード10毎に算出する(ステップS902)。例えば、マスターノード10−1とスレーブノード20との所定の期間T0におけるノード間時刻差m1(l)の分散値V1は、以下の式20に基づいて算出される。また、例えば、マスターノード10−2とスレーブノード20との所定の期間T0の間におけるノード間時刻差m2(l)の分散値V2は、以下の式21に基づいて算出される。

Figure 0006254028
Figure 0006254028
Thereafter, the slave node 20 compares the period average value Mk (M1 and M2) calculated for each master node 10 and the inter-node time difference mk () for each series of exchanges related to time synchronization performed during the predetermined period T0. 1), a variance value Vk of the inter-node time difference mk (l) in a predetermined period T0 is calculated for each master node 10 (step S902). For example, the variance value V1 of the inter-node time difference m1 (l) in the predetermined period T0 between the master node 10-1 and the slave node 20 is calculated based on the following Expression 20. Further, for example, the variance value V2 of the inter-node time difference m2 (l) between the master node 10-2 and the slave node 20 during a predetermined period T0 is calculated based on the following Expression 21.
Figure 0006254028
Figure 0006254028

式20のxは、所定の期間T0の間にスレーブノード20がマスターノード10−1との間で時刻同期に関わる一連のやり取りを行う回数を表す。式21のyは、所定の期間T0の間にスレーブノード20がマスターノード10−2との間で時刻同期に関わる一連のやり取りを行う回数を表す。式20及び式21の(l)は、所定の期間T0の間に各時刻情報が取得された時点の時刻同期に関わる一連のやり取りの回数を表す。   X in Expression 20 represents the number of times that the slave node 20 performs a series of exchanges related to time synchronization with the master node 10-1 during the predetermined period T0. Y in Expression 21 represents the number of times that the slave node 20 performs a series of exchanges related to time synchronization with the master node 10-2 during the predetermined period T0. (L) in Expression 20 and Expression 21 represents the number of series of exchanges related to time synchronization at the time when each time information is acquired during the predetermined period T0.

その後、スレーブノード20は、マスターノード10毎に算出した分散値Vk(V1及びV2)と、期間平均値Mk(M1及びM2)とに基づいて時刻差平均値ave4を算出する(ステップS903)。時刻差平均値ave4は、例えば以下の式22に基づいて算出される。

Figure 0006254028
スレーブノード20は、算出した時刻差平均値ave4に基づいてスレーブ時刻を補正する(ステップS904)。
上述した処理によってスレーブノード20の時刻が補正される。 Thereafter, the slave node 20 calculates the time difference average value ave4 based on the variance value Vk (V1 and V2) calculated for each master node 10 and the period average value Mk (M1 and M2) (step S903). The time difference average value ave4 is calculated based on the following Expression 22, for example.
Figure 0006254028
The slave node 20 corrects the slave time based on the calculated time difference average value ave4 (step S904).
The time of the slave node 20 is corrected by the process described above.

図12は、所定の期間T0の間に算出されたマスターノード10毎のノード間時刻差の推移を表す図である。
図12において、縦軸はノード間時刻差mkを表し、横軸tは時間を表す。点線41は、所定の期間T0の間におけるマスターノード10−1とスレーブノード20とのノード間時刻差m1の推移を表す。長鎖線42は、所定の期間T0の間におけるマスターノード10−1とスレーブノード20とのノード間時刻差m2の推移を表す。矢印43は、マスターノード10−1とスレーブノード20との間で時刻同期に関わる一連のやり取りが行われたタイミングを表す。つまり、矢印43で示される時間にマスターノード10−1とスレーブノード20との間のノード間時刻差m1が算出されている。矢印44は、マスターノード10−2とスレーブノード20との間で時刻同期に関わる一連のやり取りが行われたタイミングを表す。つまり、矢印44で示される時間にマスターノード10−2とスレーブノード20との間のノード間時刻差m2が算出されている。
FIG. 12 is a diagram illustrating the transition of the inter-node time difference for each master node 10 calculated during the predetermined period T0.
In FIG. 12, the vertical axis represents the inter-node time difference mk, and the horizontal axis t represents time. A dotted line 41 represents a transition of the inter-node time difference m1 between the master node 10-1 and the slave node 20 during a predetermined period T0. The long chain line 42 represents the transition of the inter-node time difference m2 between the master node 10-1 and the slave node 20 during a predetermined period T0. An arrow 43 represents the timing at which a series of exchanges related to time synchronization is performed between the master node 10-1 and the slave node 20. That is, the inter-node time difference m1 between the master node 10-1 and the slave node 20 is calculated at the time indicated by the arrow 43. An arrow 44 represents a timing at which a series of exchanges related to time synchronization is performed between the master node 10-2 and the slave node 20. That is, the inter-node time difference m2 between the master node 10-2 and the slave node 20 is calculated at the time indicated by the arrow 44.

図12では、所定の期間T0の間に、マスターノード10−1とスレーブノード20との間で時刻同期に関わる一連のやり取りが3回行われ、マスターノード10−2とスレーブノード20との間で時刻同期に関わる一連のやり取りが2回行われたことが示されている。
スレーブノード20は、各タイミングで算出されたノード間時刻差mkと、所定の期間T0における期間平均値Mkとに基づいてノード間時刻差mkの分散値Vkを算出する。
In FIG. 12, during a predetermined period T0, a series of exchanges related to time synchronization is performed between the master node 10-1 and the slave node 20 three times, and the master node 10-2 and the slave node 20 are exchanged. It is shown that a series of exchanges related to time synchronization was performed twice.
The slave node 20 calculates the variance value Vk of the inter-node time difference mk based on the inter-node time difference mk calculated at each timing and the period average value Mk in a predetermined period T0.

図13は、本発明の第5動作例におけるスレーブノード20の処理の流れを示すフローチャートである。また、図6と同様の処理については、図13において図6と同様の符号を付して説明を省略する。
ステップS401までの処理が終了し、ステップS401において、所定の期間T0が経過した場合(ステップS401−YES)、算出部205は所定の期間T0の間に取得された時刻情報に基づいて期間平均値をマスターノード10毎に算出する(ステップS1001)。算出部205は、算出されたマスターノード10毎の期間平均値と、所定の期間T0の間に行われた時刻同期に関わる一連のやり取り毎のノード間時刻差とに基づいて分散値をマスターノード10毎に算出する(ステップS1002)。算出部205は、マスターノード10毎の期間平均値と、マスターノード10毎の分散値とに基づいて時刻差平均値ave4を算出する(ステップS1003)。時刻補正部206は、算出された時刻差平均値ave2に基づいてスレーブ時刻を補正する(ステップS1004)。
FIG. 13 is a flowchart showing a process flow of the slave node 20 in the fifth operation example of the present invention. Further, the processing similar to that in FIG. 6 is denoted by the same reference numerals as those in FIG.
When the processing up to step S401 is completed and the predetermined period T0 has elapsed in step S401 (step S401-YES), the calculation unit 205 calculates the period average value based on the time information acquired during the predetermined period T0. Is calculated for each master node 10 (step S1001). The calculation unit 205 calculates a variance value based on the calculated average value for each master node 10 and the inter-node time difference for each series of exchanges related to time synchronization performed during the predetermined period T0. It is calculated every 10 (step S1002). The calculation unit 205 calculates the time difference average value ave4 based on the period average value for each master node 10 and the variance value for each master node 10 (step S1003). The time correction unit 206 corrects the slave time based on the calculated time difference average value ave2 (step S1004).

以上のように構成されたスレーブノード20によれば、中継装置内のキューイング遅延等の影響によりマスターノード10とスレーブノード20との間の遅延時間に揺らぎが生じた場合であっても、正しい時刻から大きくずれた時刻でスレーブノード20の時刻が補正されるおそれが軽減される。具体的には、所定の期間T0の間に複数のマスターノード10との間でそれぞれ取得された複数の時刻情報に基づいて算出されるマスターノード10毎の期間平均値と、所定の期間T0の間で行われる時刻同期に関わる一連のやり取り毎の時刻差とに基づいて、分散値が算出される。そして、算出された分散値とマスターノード10毎の期間平均値とに基づいて算出された平均値でスレーブ時刻が補正される。したがって、より精度の高い同期が実現できる可能性を向上させることができる。例えば、ネットワークの揺らぎにより同期する時刻の精度は劣化するおそれがあるため、揺らぎの小さいものを重く時刻差平均値の算出に組み込むことで、より精度の高い同期が実現される。そのため、スレーブノード20の時刻同期の精度低下を抑えることが可能になる。   According to the slave node 20 configured as described above, even if fluctuation occurs in the delay time between the master node 10 and the slave node 20 due to the influence of queuing delay or the like in the relay device, it is correct. The possibility that the time of the slave node 20 is corrected at a time greatly deviated from the time is reduced. Specifically, a period average value for each master node 10 calculated based on a plurality of pieces of time information respectively acquired with a plurality of master nodes 10 during a predetermined period T0, and a predetermined period T0 A variance value is calculated based on a time difference for each series of exchanges related to time synchronization performed between the two. Then, the slave time is corrected with the average value calculated based on the calculated variance value and the period average value for each master node 10. Therefore, it is possible to improve the possibility of realizing more accurate synchronization. For example, since the accuracy of time to synchronize may be deteriorated due to fluctuations in the network, synchronization with higher accuracy can be realized by incorporating a small fluctuation in the calculation of the time difference average value. Therefore, it is possible to suppress a decrease in accuracy of time synchronization of the slave node 20.

<変形例>
本動作例では、マスターノード10の台数が2台である場合の時刻差平均値ave4を算出する式(式22)を示したが、マスターノード10の台数が3台以上である場合には、算出部205は以下の式23に基づいて時刻差平均値ave4を算出する。

Figure 0006254028
式23のβkは、分散値の逆数(1/Vk)を表す。算出部205は、期間平均値Mkの値が小さい順に、分散値の逆数βkが高い値を順番に重みづけの値として割り当ててもよいし、その他の順番で分散値の逆数βkを重みづけの値として割り当ててもよい。 <Modification>
In this operation example, the formula (Formula 22) for calculating the time difference average value ave4 when the number of master nodes 10 is two is shown. However, when the number of master nodes 10 is three or more, The calculation unit 205 calculates the time difference average value ave4 based on the following Expression 23.
Figure 0006254028
Βk in Equation 23 represents the reciprocal of the variance value (1 / Vk). The calculation unit 205 may assign values having higher reciprocal values βk as weighting values in order from the smallest average period value Mk, or weight the reciprocal values βk of the distributed values in other orders. It may be assigned as a value.

分散値に代えて、分散値の平方根であるσkが重み付けの値として用いられてもよい。このように構成される場合、算出部205は以下の式24に基づいて時刻差平均値ave4を算出する。

Figure 0006254028
Instead of the variance value, σk, which is the square root of the variance value, may be used as the weighting value. When configured in this way, the calculation unit 205 calculates the time difference average value ave4 based on the following Expression 24.
Figure 0006254028

また、本動作例では、スレーブノード20が、所定の期間T0の間に取得した時刻情報を全て記憶し、所定の期間T0経過後に期間平均値及び時刻差平均値ave4を算出する構成を示したが、これに限定される必要はない。例えば、以下のような処理が行なわれてもよい。スレーブノード20は、接続しているマスターノード10毎に、時刻同期に関わる一連のやり取りが行われた後に、時刻同期に関わる一連のやり取りが行われたマスターノード10と、スレーブノード20とのノード間時刻差を算出する。スレーブノード20は、この処理を所定の期間T0の間、繰り返し実行し、所定の期間T0におけるノード間時刻差をマスターノード10毎に算出する。所定の期間T0経過後、スレーブノード20は、所定の期間T0の間に算出したマスターノード10毎のノード間時刻差と、所定の期間T0におけるマスターノード毎の期間平均値とに基づいて、ノード間時刻差の分散値をマスターノード毎に算出する。スレーブノード20は、マスターノード10毎に算出された分散値と、マスターノード毎の期間平均値とに基づいて時刻差平均値ave4を算出する。以下、具体例を挙げて説明する。   Further, in this operation example, a configuration is shown in which the slave node 20 stores all the time information acquired during the predetermined period T0 and calculates the period average value and the time difference average value ave4 after the predetermined period T0 has elapsed. However, it need not be limited to this. For example, the following processing may be performed. The slave node 20 is a node between the slave node 20 and the master node 10 in which a series of exchanges related to time synchronization are performed after a series of exchanges related to time synchronization is performed for each connected master node 10. The time difference is calculated. The slave node 20 repeatedly executes this process for a predetermined period T0, and calculates the inter-node time difference in the predetermined period T0 for each master node 10. After the elapse of the predetermined period T0, the slave node 20 determines the node based on the inter-node time difference for each master node 10 calculated during the predetermined period T0 and the average period value for each master node in the predetermined period T0. A variance value of the inter-time difference is calculated for each master node. The slave node 20 calculates the time difference average value ave4 based on the variance value calculated for each master node 10 and the period average value for each master node. Hereinafter, a specific example will be described.

スレーブノード20が複数台(例えば、2台)のマスターノード10と接続している場合、スレーブノード20は複数台のマスターノード10それぞれとの間でPTPメッセージを送受信する。スレーブノード20が、マスターノード10−1との間で各時刻情報を全て取得すると、スレーブノード20は上記式12に基づいてマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)を算出する。
同様に、スレーブノード20が、マスターノード10−2との間で各時刻情報を全て取得すると、スレーブノード20は上記式13に基づいてマスターノード10−2とスレーブノード20とのノード間時刻差m2(l)を算出する。
When the slave node 20 is connected to a plurality of (for example, two) master nodes 10, the slave node 20 transmits and receives PTP messages to and from each of the plurality of master nodes 10. When the slave node 20 acquires all the time information with the master node 10-1, the slave node 20 determines the inter-node time difference m1 (l between the master node 10-1 and the slave node 20 based on the above equation 12. ) Is calculated.
Similarly, when the slave node 20 acquires all the time information with the master node 10-2, the slave node 20 determines the inter-node time difference between the master node 10-2 and the slave node 20 based on the above equation 13. m2 (l) is calculated.

上述した処理により、スレーブノード20は、所定の期間T0の間、接続している全てのマスターノード10とのノード間時刻差mk(l)を算出する。所定の期間T0経過後、スレーブノード20は所定の期間T0の間に算出したノード間時刻差mk(l)に基づいて、期間平均値Mkをマスターノード10毎に算出する。例えば、スレーブノード20は、所定の期間T0の間におけるマスターノード10−1とスレーブノード20とのノード間時刻差m1(l)の期間平均値M1を上記式14に基づいて算出する。また、例えば、スレーブノード20は、所定の期間T0の間におけるマスターノード10−2とスレーブノード20とのノード間時刻差m2(l)の期間平均値M2を上記式15に基づいて算出する。   Through the processing described above, the slave node 20 calculates the inter-node time difference mk (l) with all the connected master nodes 10 during the predetermined period T0. After a predetermined period T0 has elapsed, the slave node 20 calculates a period average value Mk for each master node 10 based on the inter-node time difference mk (l) calculated during the predetermined period T0. For example, the slave node 20 calculates the period average value M1 of the inter-node time difference m1 (l) between the master node 10-1 and the slave node 20 during the predetermined period T0 based on the above equation 14. Further, for example, the slave node 20 calculates the period average value M2 of the inter-node time difference m2 (l) between the master node 10-2 and the slave node 20 during the predetermined period T0 based on the above formula 15.

その後、スレーブノード20は、所定の期間T0の間に算出したマスターノード10毎のノード間時刻差と、算出した所定の期間T0における期間平均値とに基づいてノード間時刻差の分散値Vkをマスターノード毎に算出する。マスターノード10毎に算出された分散値Vkと、マスターノード毎の期間平均値とに基づいて時刻差平均値ave4を上記式22に基づいて算出する。   Thereafter, the slave node 20 calculates a variance value Vk of the inter-node time difference based on the inter-node time difference for each master node 10 calculated during the predetermined period T0 and the calculated period average value in the predetermined period T0. Calculate for each master node. Based on the variance value Vk calculated for each master node 10 and the period average value for each master node, the time difference average value ave4 is calculated based on the above equation 22.

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.

10(10−1〜10−2)…マスターノード, 20…スレーブノード, 30(30−1〜30−2)…ネットワーク, 101…マスタークロック生成部, 102…時計部, 103…パケット生成部, 104…通信部、 201…通信部, 202、…制御部, 203…同期処理部, 204…時計部, 205…算出部, 206…時刻補正部 10 (10-1 to 10-2) ... Master node, 20 ... Slave node, 30 (30-1 to 30-2) ... Network, 101 ... Master clock generation unit, 102 ... Clock unit, 103 ... Packet generation unit, DESCRIPTION OF SYMBOLS 104 ... Communication part, 201 ... Communication part, 202, ... Control part, 203 ... Synchronization processing part, 204 ... Clock part, 205 ... Calculation part, 206 ... Time correction part

Claims (4)

スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信部と、
前記通信部が前記制御メッセージを送受信した際に取得される時刻情報に基づいて自装置の時刻を補正する時刻補正部と、
を備え、
取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出部をさらに備え、
前記時刻補正部は、算出された前記統計値に基づいて自装置の時刻を補正し、
前記算出部は、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出するスレーブノード。
A communication unit that transmits and receives a control message used for time synchronization processing, which is processing for synchronizing the time in the slave node to the time in the master node, with a plurality of master nodes;
A time correction unit that corrects the time of its own device based on time information acquired when the communication unit transmits and receives the control message;
With
A calculation unit that calculates a statistical value of a time difference between the time of each master node and the time of the own device based on the acquired time information;
The time correction unit corrects the time of its own device based on the calculated statistical value,
The calculation unit obtains a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period based on the time information acquired during the predetermined period. Based on the calculated first statistical value for each master node, a second statistical value that is a statistical value of a time difference between the time of each master node and the time of the own device is calculated. Slave node to perform.
スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信部と、
前記通信部が前記制御メッセージを送受信した際に取得される時刻情報に基づいて自装置の時刻を補正する時刻補正部と、
を備え、
取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出部をさらに備え、
前記時刻補正部は、算出された前記統計値に基づいて自装置の時刻を補正し、
前記算出部は、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に対し、所定の期間における前記マスターノード毎の時刻差の分散値で重み付けした後に、重み付けされた前記第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出するスレーブノード。
A communication unit that transmits and receives a control message used for time synchronization processing, which is processing for synchronizing the time in the slave node to the time in the master node, with a plurality of master nodes;
A time correction unit that corrects the time of its own device based on time information acquired when the communication unit transmits and receives the control message;
With
A calculation unit that calculates a statistical value of a time difference between the time of each master node and the time of the own device based on the acquired time information;
The time correction unit corrects the time of its own device based on the calculated statistical value,
The calculation unit obtains a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period based on the time information acquired during the predetermined period. The first statistic calculated for each master node and weighted with the variance value of the time difference for each master node in a predetermined period for the calculated first statistic value for each master node. A slave node that calculates a second statistical value that is a statistical value of a time difference between the time of each master node and the time of its own device based on the value.
スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信ステップと、
前記通信ステップによって前記制御メッセージを送受信した際に取得される時刻情報に基づいて前記スレーブノードの時刻を補正する時刻補正ステップと、
を有し、
取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出ステップをさらに有し、
前記時刻補正ステップにおいて、算出された前記統計値に基づいて自装置の時刻を補正し、
前記算出ステップにおいて、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出する時刻同期方法。
A communication step of transmitting and receiving a control message used for time synchronization processing, which is processing for synchronizing the time at the slave node to the time at the master node, with a plurality of master nodes;
A time correction step of correcting the time of the slave node based on time information acquired when the control message is transmitted and received by the communication step;
Have
A calculation step of calculating a statistical value of a time difference between the time of each master node and the time of the own device based on the acquired time information;
In the time correction step, the time of the own device is corrected based on the calculated statistical value,
In the calculating step, based on the time information acquired during a predetermined period, a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period is Based on the calculated first statistical value for each master node, a second statistical value that is a statistical value of a time difference between the time of each master node and the time of the own device is calculated. How to synchronize time.
スレーブノードにおける時刻をマスターノードにおける時刻に同期させるための処理である時刻同期処理に使用される制御メッセージを複数のマスターノードとの間で送受信する通信ステップと、
前記通信ステップによって前記制御メッセージを送受信した際に取得される時刻情報に基づいて前記スレーブノードの時刻を補正する時刻補正ステップと、
を有し、
取得される時刻情報に基づいて各マスターノードの時刻と自装置の時刻との時刻差の統計値を算出する算出ステップをさらに有し、
前記時刻補正ステップにおいて、算出された前記統計値に基づいて自装置の時刻を補正し、
前記算出ステップにおいて、所定の期間の間に取得された前記時刻情報に基づいて、前記所定の期間におけるマスターノードの時刻と自装置の時刻との時刻差の統計値である第1の統計値を前記マスターノード毎に算出し、算出した前記マスターノード毎の第1の統計値に対し、所定の期間における前記マスターノード毎の時刻差の分散値で重み付けした後に、重み付けされた前記第1の統計値に基づいて、各マスターノードの時刻と自装置の時刻との時刻差の統計値である第2の統計値を算出する時刻同期方法。
A communication step of transmitting and receiving a control message used for time synchronization processing, which is processing for synchronizing the time at the slave node to the time at the master node, with a plurality of master nodes;
A time correction step of correcting the time of the slave node based on time information acquired when the control message is transmitted and received by the communication step;
Have
A calculation step of calculating a statistical value of a time difference between the time of each master node and the time of the own device based on the acquired time information;
In the time correction step, the time of the own device is corrected based on the calculated statistical value,
In the calculating step, based on the time information acquired during a predetermined period, a first statistical value that is a statistical value of a time difference between the time of the master node and the time of the own device in the predetermined period is The first statistic calculated for each master node and weighted with the variance value of the time difference for each master node in a predetermined period for the calculated first statistic value for each master node. A time synchronization method for calculating a second statistical value that is a statistical value of a time difference between the time of each master node and the time of its own device based on the value.
JP2014064791A 2014-03-26 2014-03-26 Slave node and time synchronization method Active JP6254028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014064791A JP6254028B2 (en) 2014-03-26 2014-03-26 Slave node and time synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014064791A JP6254028B2 (en) 2014-03-26 2014-03-26 Slave node and time synchronization method

Publications (2)

Publication Number Publication Date
JP2015188159A JP2015188159A (en) 2015-10-29
JP6254028B2 true JP6254028B2 (en) 2017-12-27

Family

ID=54430200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014064791A Active JP6254028B2 (en) 2014-03-26 2014-03-26 Slave node and time synchronization method

Country Status (1)

Country Link
JP (1) JP6254028B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5937243B1 (en) * 2015-02-17 2016-06-22 日本電信電話株式会社 Time synchronization method and time synchronization apparatus
JP6488195B2 (en) * 2015-05-27 2019-03-20 株式会社日立製作所 Communication device for time synchronization
JP6820586B2 (en) 2016-08-31 2021-01-27 株式会社メディアリンクス Time synchronization system
WO2020105130A1 (en) 2018-11-20 2020-05-28 三菱電機株式会社 Communication system, list reference station, list distribution station, communication method, and communication program
JP7029428B2 (en) * 2019-07-09 2022-03-03 株式会社日立製作所 Time synchronization system, time synchronization method and time slave device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2658962B2 (en) * 1995-03-15 1997-09-30 日本電気株式会社 Network time information synchronization method
JP5025130B2 (en) * 2005-12-27 2012-09-12 株式会社日立製作所 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION METHOD
JP2009065579A (en) * 2007-09-10 2009-03-26 Nec Corp Time synchronizing system, time synchronizing method, node, and program
CN104396180A (en) * 2012-06-19 2015-03-04 日本电气株式会社 Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored

Also Published As

Publication number Publication date
JP2015188159A (en) 2015-10-29

Similar Documents

Publication Publication Date Title
JP5561426B2 (en) Synchronization system, synchronization method, first synchronization device, second synchronization device, and computer program
US10615898B2 (en) System and method of clock management in a packet data network
JP6254028B2 (en) Slave node and time synchronization method
US9634782B2 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
JP6192995B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM
US20180097610A1 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
JP2010527193A (en) Method and network component for synchronizing a clock of a network component to a clock of another network component
JP2004186877A (en) Wireless access network system, wireless communication method, synchronous server, and node unit
CN106464397B (en) Timing and synchronous system and method are dynamically redistributed in a packet switched network
US9651984B2 (en) Feed-forward time transfer mechanism for time synchronization
US11252687B2 (en) Remote signal synchronization
JP2016139846A (en) Time synchronization system, master unit and slave unit, and time synchronization method
Resner et al. Speculative Precision Time Protocol: submicrosecond clock synchronization for the IoT
JP2017069669A (en) Time synchronizing device, base station device, and time synchronizing method
JP2011176768A (en) Push-type time distribution device, time synchronization server, and time synchronization client
JP6010802B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
Gong et al. Temperature compensated Kalman distributed clock synchronization
JP6170456B2 (en) Slave node, control server, time synchronization destination determination method and computer program
US20170117980A1 (en) Time synchronization for network device
WO2020090664A1 (en) Time synchronization system
JP6085864B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
JP6216692B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
Saarnisaari et al. Internetwork Time Synchronization of Mobile Ad Hoc Networks
WO2020095413A1 (en) Communication system, communication device, method, and program
Fontanelli et al. Master-less time synchronization for wireless sensor networks with generic topology

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170516

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170912

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171027

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171129

R150 Certificate of patent or registration of utility model

Ref document number: 6254028

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250