JP7610168B2 - Time synchronization device, time synchronization method, and program - Google Patents
Time synchronization device, time synchronization method, and program Download PDFInfo
- Publication number
- JP7610168B2 JP7610168B2 JP2023564347A JP2023564347A JP7610168B2 JP 7610168 B2 JP7610168 B2 JP 7610168B2 JP 2023564347 A JP2023564347 A JP 2023564347A JP 2023564347 A JP2023564347 A JP 2023564347A JP 7610168 B2 JP7610168 B2 JP 7610168B2
- Authority
- JP
- Japan
- Prior art keywords
- time
- offset
- transmission delay
- threshold
- delay time
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
本開示は、時刻同期装置、時刻同期方法およびプログラムに関する。 The present disclosure relates to a time synchronization device, a time synchronization method, and a program.
IEEE-1588規格で定義されたPTP(Precision Time Protocol)は、LAN(Local Area Network)上のコンピュータの時刻(装置内時刻)を高い精度で同期させるプロトコルである(非特許文献1参照)。図11は、PTPプロトコルを用いてネットワーク上の装置の時刻を同期させる、時刻同期システム1の構成例を示す図である。 PTP (Precision Time Protocol) defined in the IEEE-1588 standard is a protocol that synchronizes the time (internal device time) of computers on a LAN (Local Area Network) with high precision (see Non-Patent Document 1). Figure 11 is a diagram showing an example of the configuration of a time synchronization system 1 that uses the PTP protocol to synchronize the time of devices on a network.
図11に示す時刻同期システム1は、Grand Master Clock2と、従来のBoundary Clock100aと、クライアント装置3とを備える。Grand Master Clock2とBoundary Clock100aとは、LANなどのネットワークを介して通信可能である。また、Boundary Clock100aとクライアント装置3とは、LANなどのネットワークを介して通信可能である。The time synchronization system 1 shown in Figure 11 comprises a Grand Master
Grand Master Clock2は、GPS(Global Positioning System)などの全球測位衛星システム(GNSS:Global Navigation Satellite System)の衛星からの信号(GNSS信号)を受信するGNSSアンテナを備える。Grand Master Clock2は、GNSSアンテナを介してGNSS信号を受信し、受信したGNSS信号から協定世界時(UTC:Universal Time Coordinated)を取得する。Grand Master Clock2は、ネットワークを介して、取得したUTCを基準時刻として配信するマスター機能を備える。 The Grand Master Clock 2 is equipped with a GNSS antenna that receives signals (GNSS signals) from satellites of a Global Navigation Satellite System (GNSS) such as the Global Positioning System (GPS). The Grand Master Clock 2 receives the GNSS signals via the GNSS antenna and acquires Universal Time Coordinated (UTC) from the received GNSS signals. The Grand Master Clock 2 is equipped with a master function that distributes the acquired UTC as a reference time via a network.
Boundary Clock100aは、マスター機能を備える上位装置に対しては、上位装置から配信された時刻に自装置の装置内時刻を同期させるスレーブ機能を備える装置として機能し、スレーブ機能を備える下位装置に対してはマスター機能を備える装置として機能する。図11に示す時刻同期システム1においては、Boundary Clock100aは、Grand Master Clock2に対してはスレーブ機能を備える装置として機能し、クライアント装置3に対してはマスター機能を備える装置として機能する。したがって、Boundary Clock100aは、Grand Master Clock2とのPTPパケットの送受信により、Grand Master Clock2から配信される時刻(基準時刻)に、Boundary Clock100aの装置内時刻を同期させる。また、Boundary Clock100aは、クライアント装置3とのPTPパケットの送受信により、装置内時刻をクライアント装置3に配信し、クライアント装置3の装置内時刻を、自装置の装置内時刻に同期させる。
The Boundary
クライアント装置3は、マスター機能を備える装置から配信された時刻に、装置内時刻を同期させるスレーブ機能を備える。図11に示す時刻同期システム1では、クライアント装置3は、Boundary Clock100aから配信された時刻に、装置内時刻を同期させる。クライアント装置3は、例えば、携帯電話網における基地局装置である。
The
図11に示す時刻同期システム1においては、Grand Master Clock2が備えるGNSSアンテナ、Grand Master Clock2自体、あるいは、Grand Master Clock2とBoundary Clock100aの間の伝送経路で障害が発生し、Grand Master Clock2の装置内時刻とBoundary Clock100aの装置内時刻とに大きなズレが発生することがある。In the time synchronization system 1 shown in Figure 11, a failure may occur in the GNSS antenna equipped to the Grand Master
伝送経路で障害が発生した場合には、Grand Master Clock2から配信される時刻自体は正確であり、Boundary Clock100aは、誤った時刻に同期しない。
If a fault occurs on the transmission path, the time delivered by Grand Master Clock 2 is accurate, and Boundary
一方、Grand Master Clock2が備えるGNSSアンテナ、あるいは、Grand Master Clock2自体に障害が発生した場合、Grand Master Clock2から配信される時刻自体が、UTCとのズレが大きい、誤った時刻となることがある。この場合、従来のBoundary Clock100aは、大きな誤差を含むGrand Master Clock2の装置内時刻に同期し、配下のクライアント装置3に、UTCとの誤差が大きく、誤った時刻を配信し続ける可能性がある。このような誤った時刻が配信されると、クライアント装置3の配下のユーザ装置の装置内時刻までずれて、システム障害あるいは通信障害が発生する可能性がある。また、クライアント装置3の配下のユーザ装置だけでなく、別のGrand Master Clock2あるいはBoundary Clock100aと同期することで装置内時刻がずれていないクライアント装置3の配下のユーザ装置に対しても、システム障害あるいは通信障害を引き起こす可能性がある。このように、誤った時刻への同期が発生すると、非常に影響が大きな問題が生じる可能性がある。従って、より正確に上位装置の装置内時刻と自装置の装置内時刻の同期の障害の発生および障害の発生箇所を判定する必要がある。On the other hand, if a fault occurs in the GNSS antenna of the Grand Master Clock 2 or in the Grand Master Clock 2 itself, the time distributed from the Grand Master Clock 2 may become an incorrect time with a large deviation from UTC. In this case, the conventional Boundary
上記のような問題点に鑑みてなされた本開示の目的は、上位装置から配信された時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を自装置の装置内時刻に同期させる場合に、より正確に、上位装置の装置内時刻と自装置の装置内時刻との同期の障害の発生および障害の発生箇所を判定することができる時刻同期装置、時刻同期方法およびプログラムを提供することにある。 The objective of the present disclosure, made in consideration of the above-mentioned problems, is to provide a time synchronization device, a time synchronization method, and a program that can more accurately determine the occurrence of a failure in synchronization between the internal time of a higher-level device and the internal time of the device itself, and the location of the failure, when synchronizing the internal time of the device itself with the time distributed from a higher-level device and synchronizing the internal time of a lower-level device with the internal time of the device itself.
上記課題を解決するため、本開示に係る時刻同期装置は、上位装置とのパケットの送受信により、前記上位装置の装置内時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を前記自装置の装置内時刻に同期させる時刻同期装置であって、前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算するオフセット計算部と、前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算する伝送遅延時間計算部と、前記オフセットの変動パターンを判定するオフセットパターン判定部と、前記伝送遅延時間の変動パターンを判定する伝送遅延時間パターン判定部と、前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定する障害箇所判定部と、を備える。In order to solve the above problems, the time synchronization device disclosed herein is a time synchronization device that synchronizes the internal time of its own device with the internal time of the higher-level device and synchronizes the internal time of a lower-level device with the internal time of its own device by transmitting and receiving packets with a higher-level device, and is equipped with an offset calculation unit that calculates an offset, which is the difference between the internal time of the higher-level device and the internal time of the local device, a transmission delay time calculation unit that calculates the transmission delay time of packets transmitted and received between the higher-level device and its own device, an offset pattern determination unit that determines the fluctuation pattern of the offset, a transmission delay time pattern determination unit that determines the fluctuation pattern of the transmission delay time, and a fault location determination unit that determines the location of a fault in time synchronization with the higher-level device based on the fluctuation pattern of the offset and the fluctuation pattern of the transmission delay time.
また、上記課題を解決するため、本開示に係る時刻同期方法は、上位装置とのパケットの送受信により、前記上位装置の装置内時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を前記自装置の装置内時刻に同期させる時刻同期方法であって、前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算するステップと、前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算するステップと、前記オフセットの変動パターンを判定するステップと、前記伝送遅延時間の変動パターンを判定するステップと、前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定するステップと、を含む。In addition, in order to solve the above problem, the time synchronization method disclosed herein is a time synchronization method for synchronizing the internal time of a device with the internal time of a higher-level device and synchronizing the internal time of a lower-level device with the internal time of the device by transmitting and receiving packets with a higher-level device, and includes the steps of calculating an offset, which is the difference between the internal time of the higher-level device and the internal time of the device, calculating the transmission delay time of packets transmitted and received between the higher-level device and the device, determining the fluctuation pattern of the offset, determining the fluctuation pattern of the transmission delay time, and determining the location of a failure in time synchronization with the higher-level device based on the fluctuation pattern of the offset and the fluctuation pattern of the transmission delay time.
また、上記課題を解決するため、本開示に係るプログラムは、コンピュータを、上述した時刻同期装置として動作させる。 In addition, to solve the above problem, the program disclosed herein causes a computer to operate as the above-mentioned time synchronization device.
本開示に係る時刻同期装置、時刻同期方法およびプログラムによれば、上位装置から配信された時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を自装置の装置内時刻に同期させる場合に、より正確に、上位装置の装置内時刻と自装置の装置内時刻との同期の障害の発生および障害の発生箇所を判定することができる。 With the time synchronization device, time synchronization method, and program disclosed herein, when the internal time of a device is synchronized with the time distributed from a higher-level device and the internal time of a lower-level device is synchronized with the internal time of the device itself, it is possible to more accurately determine the occurrence of a failure in synchronization between the internal time of the higher-level device and the internal time of the device itself and the location of the failure.
以下、本開示の実施の形態について図面を参照して説明する。 Below, the embodiments of the present disclosure are described with reference to the drawings.
(第1の実施形態)
図1は、本開示の第1の実施形態に係る時刻同期装置としてのBoundary Clock100の構成例を示す図である。本実施形態に係るBoundary Clock100は、図11に示す時刻同期システム1において、Boundary Clock100aの代わりに、Grand Master Clock2から配信された時刻を、クライアント装置3に配信するものである。すなわち、本実施形態に係る時刻同期装置としてのBoundary Clock100は、上位装置(Grand Master Clock2)とのパケット(PTPパケット)の送受信により、上位装置の装置内時刻に自装置の装置内時刻を同期させ、下位装置(クライアント装置3)の装置内時刻を自装置の装置内時刻に同期させるものである。
(First embodiment)
Fig. 1 is a diagram showing an example of the configuration of a
図1に示すように、本実施形態に係るBoundary Clock100は、パケット送受信部101,105と、オフセット計算部102と、伝送遅延時間計算部103と、時刻同期処理部104と、閾値記憶部106と、オフセットパターン判定部107と、伝送遅延時間パターン判定部108と、カウントフラグ部109と、Clock Class書換部110と、障害箇所判定部111とを備える。As shown in FIG. 1, the
パケット送受信部101は、Grand Master Clock2との間でPTPパケットの送受信を行う。パケット送受信部101は、Grand Master Clock2から受信したパケットをオフセット計算部102および伝送遅延時間計算部103に出力する。The packet transmission/
オフセット計算部102は、上位装置であるGrand Master Clock2と自装置(Boundary Clock100)の装置内時刻との差であるオフセットを計算する。具体的には、オフセット計算部102は、パケット送受信部101から出力されたパケットからタイムスタンプを取得し、取得したタイムスタンプに基づき、オフセットを計算する。以下、オフセット計算部102によるオフセットの計算について、図2を参照して説明する。The
図2に示すように、Grand Master Clock2は、Sync message(同期メッセージ)をBoundary Clock100に送信する。Grand Master Clock2は、Sync messageの送信時刻である時刻T1を示すタイムスタンプを、Sync messageに含めてBoundary Clock100に送信する。As shown in FIG. 2, Grand Master
Boundary Clock100は、時刻T2において、Grand Master Clock2から送信されてきたSync messageを受信すると、時刻T3において、Delay_Req message(遅延リクエストメッセージ)をGrand Master Clock2に送信する。When the Boundary
Grand Master Clock2は、時刻T4において、Boundary Clock100から送信されてきたDelay_Req messageを受信すると、Delay_Resp message(遅延レスポンスメッセージ)をBoundary Clock100に送信する。Grand Master Clock2は、Delay_Req messageの受信時刻である時刻T4を示すタイムスタンプを、Delay_Resp messageに含めてBoundary Clock100に送信する。When Grand Master
オフセット計算部102は、Sync messageに含まれる、Grand Master Clock2がSync messageを送信した時刻T1を示すタイムスタンプ、Boundary Clock100がSync messageを受信した時刻T2を示すタイムスタンプ、Boundary Clock100がDelay_Req messageを送信した時刻T3を示すタイムスタンプ、および、Delay_Resp messageに含まれる、Grand Master Clock2がDelay_Req messageを送信した時刻T4を示すタイムスタンプを取得する。そして、オフセット計算部102は、以下の式1に基づきオフセットを計算する。
オフセット=((T2-T1)-(T4-T3))/2 ・・・式1
The
Offset = ((T2 - T1) - (T4 - T3)) / 2 ... Equation 1
図1を再び参照すると、オフセット計算部102は、オフセットの計算結果を時刻同期処理部104およびオフセットパターン判定部107に出力する。
Referring again to Figure 1, the offset
伝送遅延時間計算部103は、上位装置であるGrand Master Clock2とBoundary Clock100との間で送受信されるPTPパケットの伝送遅延時間を計算する。伝送遅延時間計算部103は、Boundary Clock100がSync messageを受信した時刻T2と、Grand Master Clock2がSync messageを送信した時刻T1との差、および、Grand Master Clock2がDelay_Req messageを受信した時刻T4と、Boundary Clock100がDelay_Req messageを送信した時刻T3との差の平均を、伝送遅延時間として計算する。すなわち、伝送遅延時間計算部103は、図2を参照して説明した、時刻T1,T2,T3,T4をそれぞれ示すタイムスタンプを用いて、以下の式2に基づき、伝送遅延時間を計算する。
伝送遅延時間=((T2-T1)+(T4-T3))/2 ・・・式2
The transmission delay
Transmission delay time = ((T2 - T1) + (T4 - T3)) / 2 ...
伝送遅延時間計算部103は、伝送遅延時間の計算結果を時刻同期処理部104および伝送遅延時間パターン判定部108に出力する。The transmission delay
時刻同期処理部104は、オフセット計算部102により計算されたオフセット、および、伝送遅延時間計算部103により計算された伝送遅延時間に基づき、Boundary Clock100の装置内時刻を、Grand Master Clock2の装置内時刻に同期させる。The time
パケット送受信部105は、クライアント装置3との間でPTPパケットの送受信を行う。クライアント装置3との間で送受信されるパケットには、Boundary Clock100の装置内時刻の時刻情報が含まれ、当該パケットの送受信により、クライアント装置3の装置内時刻をBoundary Clock100の装置内時刻に同期させることができる。The packet transmission/
閾値記憶部106は、後述するオフセットパターン判定部107および伝送遅延時間パターン判定部108での処理に必要となる閾値(第1の閾値TH1、第2の閾値TH2、第3の閾値TH3および第4の閾値TH4)を記憶する。各閾値の設定方法としては、予め定められた固定値を設定する方法、一定期間におけるオフセットおよび伝送遅延時間のデータを取得し、その平均値などに基づいて設定する方法などがある。The
オフセットパターン判定部107は、オフセット計算部102により計算されたオフセットの変動パターンを判定する。具体的には、オフセットパターン判定部107は、オフセットの絶対値が第1の閾値TH1より大きいか否かを判定する。そして、オフセットパターン判定部107は、オフセットの変動パターンとして、オフセットの絶対値が第1の閾値TH1より大きいと判定された時間または回数が第2の閾値TH2より大きいか否かを判定する。オフセットパターン判定部107は、判定結果を障害箇所判定部111に出力する。The offset
伝送遅延時間パターン判定部108は、伝送遅延時間計算部103により計算された伝送遅延時間の変動パターンを判定する。具体的には、伝送遅延時間パターン判定部108は、伝送遅延が第3の閾値TH3より大きいか否かを判定する。そして、伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンとして、伝送遅延時間が第3の閾値TH3より大きいと判定された時間または回数が第4の閾値TH4より大きいか否かを判定する。伝送遅延時間パターン判定部108は、判定結果を障害箇所判定部111に出力する。The transmission delay time
カウントフラグ部109は、オフセットの絶対値が第1の閾値TH1より大きいと判定された時間または回数をカウント中であるか否かを示すオフセットカウントフラグを管理する。また、カウントフラグ部109は、伝送遅延時間が第3の閾値TH3より大きいと判定された時間または回数をカウント中であるか否かを示す伝送遅延時間カウントフラグを管理する。The
Clock Class書換部110は、障害箇所判定部111の制御に従い、Boundary Clock100の装置内時刻がGrand Master Clock2の装置内時刻に同期しているか否かを示すClock Classを書き換え、パケット送受信部105に出力する。Clock Classは、Boundary Clock100とクライアント装置3との間で送受信されるPTPパケットに含まれ、クライアント装置3に送信される。クライアント装置3では、Clock Classが、Boundary Clock100の装置内時刻がGrand Master Clock2の装置内時刻に同期していることを示す場合、クライアント装置3の装置内時刻のBoundary Clock100の装置内時刻への同期が行われる。また、Clock Classが、Boundary Clock100の装置内時刻がGrand Master Clock2の装置内時刻に同期していないことを示す場合、クライアント装置3の装置内時刻のBoundary Clock100の装置内時刻への同期が停止される。The Clock
障害箇所判定部111は、オフセットパターン判定部107により判定された、オフセットの変動パターンと、伝送遅延時間パターン判定部108により判定された、伝送遅延時間の変動パターンとに基づき、上位装置であるGrand Master Clock2との時刻同期の障害の発生および障害の発生箇所を判定する。The fault
時刻同期の障害の発生箇所としては、Grand Master Clock2が備えるGNSSアンテナ、Grand Master Clock2自体、あるいは、Grand Master Clock2とBoundary Clock100との間の伝送経路が考えられる。障害の発生箇所がGNSSアンテナである場合、ジャミング(妨害電波)あるいはスプーフィング(なりすまし)などの信号攻撃を受けたことが考えられる。また、障害の発生箇所がGrand Master Clock2自体である場合、Grand Master Clock2内の一部の機能が故障したことが考えられる。また、障害の発生の箇所がGrand Master Clock2とBoundary Clock100との間の伝送経路である場合、例えば、一時的にケーブル異常が発生したことが考えられる。Possible locations of time synchronization failures include the GNSS antenna equipped to the
障害箇所判定部111は、障害の発生箇所が、Grand Master Clock2(Grand Master Clock2が備えるGNSSアンテナ、あるいは、Grand Master Clock2自体)であるか、Grand Master Clock2とBoundary Clock100との間の伝送経路であるかを判定する。障害箇所判定部111による障害箇所の判定の詳細については後述する。The fault
障害箇所判定部111は、障害の発生箇所がGrand Master Clock2であると判定すると、クライアント装置3の装置内時刻の自装置の装置内時刻への同期を停止する。具体的には、障害箇所判定部111は、Boundary Clock100の装置内時刻がGrand Master Clock2の装置内時刻に同期していないことをClock Classが示すように、Clock Classの書き換えをClock Class書換部110に指示する。When the fault
次に、本実施形態に係るBoundary Clock100の動作について説明する。
Next, we will explain the operation of the
図3は、本実施形態に係るBoundary Clock100の動作の一例を示すフローチャートであり、Boundary Clock100による時刻同期方法を説明するための図である。
Figure 3 is a flowchart showing an example of the operation of the
オフセット計算部102は、パケット送受信部101から出力されたパケットからタイムスタンプを取得し、オフセットを計算する(ステップS101)。The offset
オフセットパターン判定部107は、オフセット計算部102により計算されたオフセットの絶対値が、閾値記憶部106に記憶されている第1の閾値TH1より大きいか否かを判定する(ステップS102)。第1の閾値TH1は、オフセットが大きく変動したか否かを判定するための閾値である。例えば、通常時には、Grand Master Clock2の装置内時刻とBoundary Clock100の装置内時刻とのオフセットの絶対値が1msより小さい場合、第1の閾値TH1は、例えば、1msに設定される。この場合、オフセットパターン判定部107は、オフセットの絶対値が1msより大きいか否かを逐次、判定する。オフセットパターン判定部107は、オフセットの絶対値が第1の閾値TH1より大きいと連続して判定した回数をカウントする。以下では、このカウント値をオフセットカウントと称する。The offset
なお、上述したように、第1の閾値TH1としては、一定期間のデータの平均値が設定されてよい。例えば、Grand Master Clock2とBoundary Clock100との間でPTPでの通信が開始されてからの1分間において、1秒ごとにオフセットを計算し、その60個のデータの平均値が第1の閾値TH1として設定されてよい。As described above, the first threshold TH1 may be set to the average value of data over a certain period of time. For example, during the first minute after PTP communication is started between the
オフセットの絶対値が第1の閾値TH1より大きいと判定した場合(ステップS102:Yes)、オフセットパターン判定部107は、オフセットカウントを1増やし(ステップS103)、オフセットカウントフラグをオンにする。オフセットパターン判定部107は、既にオフセットカウントフラグがオンの場合、オフセットカウントフラグをオンのままとする。If it is determined that the absolute value of the offset is greater than the first threshold TH1 (step S102: Yes), the offset
次に、オフセットパターン判定部107は、オフセットカウントが第2の閾値TH2より大きいか否かを判定する(ステップS104)。第2の閾値TH2は、オフセットの変化が一時的であるか否かを判定するための閾値である。第2の閾値TH2は、例えば、10回に設定される。この場合、オフセットパターン判定部107は、オフセットの絶対値が第1の閾値TH1(例えば、1ms)よりも10回連続で大きいか否かを判定する。Next, the offset
オフセットカウントが第2の閾値TH2以下である(0<オフセットカウント≦第2の閾値TH2)であるとオフセットパターン判定部107により判定された場合(ステップS104:No)、ステップS101から処理が繰り返される。If the offset
オフセットカウントが第2の閾値TH2より大きい(第2の閾値TH2<オフセットカウント)と判定した場合(ステップS104:Yes)、オフセットパターン判定部107は、オフセットカウントが第2の閾値TH2より大きくなったことを障害箇所判定部111に通知する。すなわち、オフセットパターン判定部107は、オフセットの変動パターンとして、オフセットの絶対値が第1の閾値TH1より大きい状態が、第2の閾値TH2に応じた所定時間だけ継続したことを障害箇所判定部111に通知することができる。When it is determined that the offset count is greater than the second threshold TH2 (second threshold TH2<offset count) (step S104: Yes), the offset
オフセットの絶対値が第1の閾値TH1以下であると判定した場合(ステップS102:No)、オフセットパターン判定部107は、オフセットカウントを0にするとともに、オフセットカウントフラグをオフにする(ステップS105)。オフセットの絶対値が第1の閾値TH1以下である状態が継続している場合、オフセットカウントは0であるとともに、オフセットカウントフラグはオフのままである。したがって、オフセットパターン判定部107は、オフセットの変動パターンとして、オフセットの絶対値が第1の閾値TH1以下である状態が継続していることを障害箇所判定部111に通知することができる。If it is determined that the absolute value of the offset is equal to or less than the first threshold value TH1 (step S102: No), the offset
なお、オフセットの絶対値が第1の閾値TH1より大きくても、Boundary Clock100が、自装置の装置内時刻をGrand Master Clock2の装置内時刻に同期させることで、オフセットはやがて、第1の閾値TH1よりも小さくなる。したがって、オフセットパターン判定部107は、オフセットの変動パターンが、図4Aに示す、オフセットが第1の閾値TH1より小さいままであるパターン(パターン0)であるか、図4Bに示す、オフセットが第1の閾値TH1より大きくなり、第2の閾値TH2に応じた所定時間が経過した後、第1の閾値TH1より小さくなるパターン(パターン1)であるかを判定し、判定結果を障害箇所判定部111に出力する。Note that even if the absolute value of the offset is greater than the first threshold value TH1, the
上述したステップS101からステップS105の処理と並行して、以下で説明するステップS106からステップS109の処理が行われる。 In parallel with the processing of steps S101 to S105 described above, the processing of steps S106 to S109 described below is performed.
伝送遅延時間計算部103は、パケット送受信部101から出力されたパケットからタイムスタンプを取得し、伝送遅延時間を計算する(ステップS106)。The transmission delay
伝送遅延時間パターン判定部108は、伝送遅延時間計算部103により計算された伝送遅延時間が、閾値記憶部106に記憶されている第3の閾値TH3より大きいか否かを判定する(ステップS107)。第3の閾値TH3は、伝送遅延時間が大きく変動したか否かを判定するための閾値である。例えば、通常時には、Grand Master Clock2とBoundary Clock100との間で、10ms以内でパケットの送受信が行われる場合、第3の閾値TH3は、例えば、10msに設定される。この場合、伝送遅延時間パターン判定部108は、伝送遅延時間が10msより大きいか否かを逐次、判定する。伝送遅延時間パターン判定部108は、伝送遅延時間が第3の閾値TH3より大きいと連続して判定した回数をカウントする。以下では、このカウント値を伝送遅延時間カウントと称する。The transmission delay time
なお、上述したように、第3の閾値TH3としては、一定期間のデータの平均値が設定されてよい。例えば、Grand Master Clock2とBoundary Clock100との間でPTPでの通信が開始されてからの1分間において、1秒ごとに伝送遅延時間を計算し、その60個のデータの平均値が第3の閾値TH3として設定されてよい。As described above, the third threshold TH3 may be set to the average value of data over a certain period of time. For example, the transmission delay time may be calculated every second for one minute after PTP communication is started between the
伝送遅延時間が第3の閾値TH3より大きいと判定した場合(ステップS107:Yes)、伝送遅延時間パターン判定部108は、伝送遅延時間カウントを1増やし(ステップS108)、伝送遅延時間カウントフラグをオンにする。伝送遅延時間パターン判定部108は、既に伝送遅延時間カウントフラグがオンの場合、伝送遅延時間カウントフラグをオンのままとする。If it is determined that the transmission delay time is greater than the third threshold value TH3 (step S107: Yes), the transmission delay time
次に、伝送遅延時間パターン判定部108は、伝送遅延時間カウントが第4の閾値TH4より大きいか否かを判定する(ステップS109)。第4の閾値TH4は、伝送遅延時間の変化が一時的であるか否かを判定するための閾値である。第4の閾値TH4は、例えば、10回に設定される。この場合、伝送遅延時間パターン判定部108は、伝送遅延時間が第3の閾値TH3(例えば、10ms)よりも10回連続で大きいか否かを判定する。Next, the transmission delay time
伝送遅延時間カウントが第4の閾値TH以下である(0<伝送遅延時間カウント≦第4の閾値TH4)であると伝送遅延時間パターン判定部108により判定された場合(ステップS109:No)、ステップS106から処理が繰り返される。If the transmission delay time
伝送遅延時間カウントが第4の閾値TH4より大きい(第4の閾値TH4<伝送遅延時間カウント)と判定した場合(ステップS109:Yes)、伝送遅延時間パターン判定部108は、伝送遅延時間カウントが第4の閾値TH4より大きくなったことを障害箇所判定部111に通知する。すなわち、伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンとして、伝送遅延時間が第3の閾値TH3より大きい状態が、第4の閾値TH4に応じた所定時間だけ継続したことを障害箇所判定部111に通知することができる。When it is determined that the transmission delay time count is greater than the fourth threshold TH4 (fourth threshold TH4<transmission delay time count) (step S109: Yes), the transmission delay time
伝送遅延時間が第3の閾値TH3以下であると判定した場合(ステップS107:No)、伝送遅延時間パターン判定部108は、伝送遅延時間カウントを0にするとともに、伝送遅延時間カウントフラグをオフにする(ステップS105)。伝送遅延時間が第3の閾値TH3以下である状態が継続している場合、伝送遅延時間カウントは0であるとともに、伝送遅延時間カウントフラグはオフのままである。したがって、伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンとして、伝送遅延時間が第3の閾値TH3以下である状態が継続していることを障害箇所判定部111に通知することができる。また、伝送遅延時間が第3の閾値TH3より大きくなり、第4の閾値TH4に応じた所定時間経過する前に、伝送遅延時間が第3の閾値TH3以下になった場合、伝送遅延時間カウントは0であるとともに、伝送遅延時間カウントフラグはオンからオフになる。したがって、伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンとして、伝送遅延時間が第3の閾値TH3より大きくなり、第4の閾値TH4に応じた所定時間の経過前に、伝送遅延時間が第3の閾値TH3以下になったことを障害箇所判定部111に通知することができる。If it is determined that the transmission delay time is equal to or less than the third threshold TH3 (step S107: No), the transmission delay time
したがって、伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンが、図5Aに示す、伝送遅延時間が第3の閾値TH3より小さいままであるパターン(パターン0)であるか、図5Bに示す、伝送遅延時間が第3の閾値TH3より大きくなり、第4の閾値TH4に応じた所定時間が経過する前に、第3の閾値TH3より小さくなるパターン(パターン1)であるか、図5Cに示す、伝送遅延時間が第3の閾値TH3より大きい状態が、第4の閾値TH4に応じた所定時間を経過しても継続するパターンであるかを判定し、判定結果を障害箇所判定部111に出力する。Therefore, the transmission delay time
オフセットパターン判定部107によるオフセットの変動パターンの判定結果および伝送遅延時間パターン判定部108による伝送遅延時間の変動パターンの判定結果を受けて(ステップS104、ステップS105またはステップS109の処理の後)、障害箇所判定部111は、オフセットの変動パターンと、伝送遅延時間の変動パターンとに基づいて、Grand Master Clock2との時刻同期の障害の発生および障害の発生箇所を判定する(ステップS110)。図6を参照して、障害箇所判定部111による障害箇所の判定について説明する。
After receiving the offset fluctuation pattern determination result by the offset
図4A,4Bを参照して説明したように、オフセットの変動パターンとしては、パターン0およびパターン1の2通りのパターンがある。また、図5A,5B,5Cを参照して説明したように、伝送遅延時間の変動パターンとしては、パターン0,パターン1およびパターン2の3通りのパターンがある。したがって、オフセットの変動パターンと伝送遅延時間の変動パターンとを組み合わせると、図6に示すように、6通りのパターン(パターンA-パターンF)がある。
As explained with reference to Figures 4A and 4B, there are two offset fluctuation patterns, pattern 0 and pattern 1. Also, as explained with reference to Figures 5A, 5B, and 5C, there are three transmission delay time fluctuation patterns, pattern 0, pattern 1, and
パターンAは、オフセットの変動パターンがパターン0であり、伝送遅延時間の変動パターンがパターン0であるパターンである。すなわち、パターンAは、オフセットの絶対値が第1の閾値TH1以下であり(図4A)、かつ、伝送遅延時間が第3の閾値TH3以下の状態である。したがって、オフセットおよび伝送遅延時間に異常はなく、Grand Master Clock2の装置内時刻とBoundary Clock100の装置内時刻との同期に障害は発生していないと考えられる。Pattern A is a pattern in which the offset fluctuation pattern is pattern 0 and the transmission delay time fluctuation pattern is pattern 0. That is, pattern A is a state in which the absolute value of the offset is equal to or less than the first threshold value TH1 (Figure 4A) and the transmission delay time is equal to or less than the third threshold value TH3. Therefore, there is no abnormality in the offset and the transmission delay time, and it is considered that no problem has occurred in the synchronization between the internal time of
パターンBは、オフセットの変動パターンがパターン1であり、伝送遅延時間の変動パターンがパターン0であるパターンである。すなわち、パターンBは、オフセットの絶対値が第1の閾値TH1より大きく、かつ、伝送遅延時間が第3の閾値TH3以下である状態である。この場合、パターンBでは、Grand Master Clock2とBoundary Clock100との間の伝送路には異常が無いにも変わらず、オフセットの絶対値には第1の閾値TH1より大きいずれが生じていることから、Grand Master Clock2の装置内時刻に異常が生じている(Grand Master Clock2で障害が発生した)と考えられる。Pattern B is a pattern in which the offset fluctuation pattern is pattern 1 and the transmission delay time fluctuation pattern is pattern 0. That is, pattern B is a state in which the absolute value of the offset is greater than the first threshold value TH1 and the transmission delay time is equal to or less than the third threshold value TH3. In this case, in pattern B, there is no abnormality in the transmission path between
パターンCは、オフセットの変動パターンがパターン0であり、伝送遅延時間の変動パターンがパターン1であるパターンである。すなわち、パターンCは、オフセットの絶対値が第1の閾値TH1以下であり、かつ、伝送遅延時間が第3の閾値TH3より大きくなり、その後、第3の閾値TH3より小さくなった状態である。この場合、パターンCでは、伝送遅延時間が一時的に大きく変動しても、オフセットには第1の閾値TH1より大きいずれが生じていないことから、Grand Master Clock2とBoundary Clock100との間の伝送路に一時的な障害(例えば、輻輳)が発生したと考えられる。Pattern C is a pattern in which the offset fluctuation pattern is pattern 0 and the transmission delay time fluctuation pattern is pattern 1. That is, pattern C is a state in which the absolute value of the offset is equal to or less than the first threshold TH1, and the transmission delay time becomes greater than the third threshold TH3, and then becomes smaller than the third threshold TH3. In this case, in pattern C, even if the transmission delay time temporarily fluctuates greatly, the offset does not deviate by more than the first threshold TH1, so it is considered that a temporary failure (e.g., congestion) has occurred in the transmission path between
パターンDは、オフセットの変動パターンがパターン1であり、伝送遅延時間の変動パターンがパターン1であるパターンである。すなわち、パターンDは、オフセットの絶対値が第1の閾値TH1より大きくなり、その後、第1の閾値TH1以下となり、かつ、伝送遅延時間が、第3の閾値TH3より大きくなり、その後、第3の閾値TH3より小さくなった状態である。この場合、パターンDでは、伝送遅延時間が一時的に大きくなっても、元の値に戻っていることから、Grand Master Clock2とBoundary Clock100との間の伝送路には障害が無く、Grand Master Clock2自体に障害が発生したと考えられる。Pattern D is a pattern in which the offset fluctuation pattern is pattern 1 and the transmission delay time fluctuation pattern is pattern 1. That is, pattern D is a state in which the absolute value of the offset becomes larger than the first threshold TH1, then becomes equal to or smaller than the first threshold TH1, and the transmission delay time becomes larger than the third threshold TH3, then becomes smaller than the third threshold TH3. In this case, in pattern D, even if the transmission delay time temporarily increases, it returns to the original value, so it is considered that there is no failure in the transmission path between
パターンEは、オフセットの変動パターンがパターン0であり、伝送遅延時間の変動パターンがパターン2であるパターンである。すなわち、パターンEは、オフセットの絶対値が第1の閾値TH1以下であり、かつ、伝送遅延時間が第3の閾値TH3より大きいままの状態である。また、パターンFは、オフセットの変動パターンがパターン1であり、伝送遅延時間の変動パターンがパターン2であるパターンである。すなわち、パターンFは、オフセットの絶対値が第1の閾値TH1より大きくなり、その後、第1の閾値TH1以下となり、かつ、伝送遅延時間が第3の閾値TH3より大きいままの状態である。パターンE,Fでは、伝送遅延時間の異常が長時間続いていることから、Grand Master Clock2とBoundary Clock100との間の伝送路(例えば、ケーブル)に異常が生じていると考えられる。Pattern E is a pattern in which the offset fluctuation pattern is pattern 0 and the transmission delay time fluctuation pattern is
障害箇所判定部111は、図6を参照して説明したような、オフセットの変動パターンと伝送遅延時間の変動パターンとの組み合わせに基づき、障害の発生箇所を判定する。具体的には、障害箇所判定部111は、パターンA,C,E,Fの場合、障害が発生していない、あるいは、Grand Master Clock2とBoundary Clock100との間の伝送路で障害が発生したと判定する。一方、障害箇所判定部111は、パターンB,Dの場合、Grand Master Clock2で障害が発生したと判定する。The fault
図3を再び参照すると、障害箇所判定部111は、障害が発生していない、あるいは、Grand Master Clock2とBoundary Clock100との間の伝送路で障害が発生したと判定した場合(オフセットの変動パターンと伝送遅延時間の変動パターンとの組み合わせがパターンA,C,E,Fである場合)、Grand Master Clock2から配信される時刻自体は正確であるため引き続き、クライアント装置3の装置内時刻を自装置の装置内時刻に同期させる。
Referring again to Figure 3, if the fault
障害箇所判定部111は、Grand Master Clock2で障害が発生したと判定した場合(オフセットの変動パターンと伝送遅延時間の変動パターンとの組み合わせがパターンB,Dである場合)、Grand Master Clock2で障害が発生したことをClock Class書換部110に通知する(ステップS111)。If the fault
Clock Class書換部110は、障害箇所判定部111の通知を受けると、Boundary Clock100の装置内時刻がGrand Master Clock2の装置内時刻に同期していないことをClock Classが示すように、Clock Classを書き換える。この結果、クライアント装置3の装置内時刻のBoundary Clock100の装置内時刻への同期が停止される。When the Clock
なお、図3においては、第2の閾値TH2は、オフセットの絶対値が第1の閾値TH1より大きいと判定された回数である例を用いて説明したが、これに限られるものではない。第2の閾値TH2は、連続してオフセットの絶対値が第1の閾値TH1より大きいと判定された時間であってもよい。この場合、オフセットパターン判定部107は、例えば、オフセットの絶対値が第1の閾値TH1を超えている時間が、第2の閾値TH2(例えば、30秒)より長い否かを判定する。
Note that in FIG. 3, the second threshold TH2 is described as the number of times the absolute value of the offset is determined to be greater than the first threshold TH1, but this is not limited to the above. The second threshold TH2 may be the time during which the absolute value of the offset is consecutively determined to be greater than the first threshold TH1. In this case, the offset
また、図3においては、第4の閾値TH4は、伝送遅延時間が第3の閾値TH3より大きいと判定された回数である例を用いて説明したが、これに限られるものではない。第4の閾値TH4は、連続して伝送遅延時間が第3の閾値TH3より大きいと判定された時間であってもよい。この場合、伝送遅延時間パターン判定部108は、例えば、伝送遅延時間が第3の閾値TH3を超えている時間が、第4の閾値TH4(例えば、30秒)より長いか否かを判定する。
In addition, in FIG. 3, the fourth threshold TH4 is described as the number of times the transmission delay time is determined to be greater than the third threshold TH3, but this is not limited to the above. The fourth threshold TH4 may be the time during which the transmission delay time is consecutively determined to be greater than the third threshold TH3. In this case, the transmission delay time
そして、障害箇所判定部111は、オフセットの絶対値が第1の閾値TH1より大きいと判定された時間または回数が第2の閾値TH2より大きく、かつ、伝送遅延時間が第3の閾値TH3以下である場合、障害の発生箇所がGrand Master Clock2であると判定する。または、障害箇所判定部111は、オフセットの絶対値が第1の閾値TH1より大きいと判定された時間または回数が第2の閾値TH2より大きく、かつ、伝送遅延時間が第3の閾値TH3より大きいと判定された時間または回数が第4の閾値TH4より小さい場合、障害の発生箇所がGrand Master Clock2であると判定する。Then, the fault
なお、伝送遅延時間の変動パターンのみを用いて、障害の発生および障害の発生箇所を判定する方法も考えられる。例えば、伝送遅延時間の変動パターンが、図5Bに示すパターン1のように変動した場合には、Grand Master Clock2で障害が発生し、図5Cに示すパターン2のように変動した場合には、Grand Master Clock2とBoundary Clock100との間の伝送路で障害が発生したと判定する方法が考えられる。しかしながら、この方法では、障害の発生および障害の発生箇所を正確に判定できない場合がある。It is also possible to consider a method of determining the occurrence and location of a fault using only the fluctuation pattern of the transmission delay time. For example, if the fluctuation pattern of the transmission delay time fluctuates as shown in pattern 1 in FIG. 5B, it is determined that a fault has occurred in
例えば、時刻T1および時刻T4が同じ時間だけずれた場合、上述した式2から明らかなように、時刻T1と時刻T4とが打ち消し合い、時刻T1および時刻T4のずれによる伝送遅延時間の変化が判別できないことがある。For example, if time T1 and time T4 are shifted by the same amount, as is clear from
一方、本実施形態においては、伝送遅延時間の変動パターンだけでなく、オフセットの変動パターンも用いることで、より正確に障害の発生および障害の発生箇所を正確に判定することができる。上述した例では、時刻T1および時刻T4が同じ時間だけずれた場合にも、上述した式1から明らかなように、時刻T1と時刻T4とが打ち消されることが無いので、時刻T1および時刻T4のずれを、オフセットの変動として判別することができる。On the other hand, in this embodiment, by using not only the fluctuation pattern of the transmission delay time but also the fluctuation pattern of the offset, it is possible to more accurately determine the occurrence of a fault and the location of the fault. In the above example, even if time T1 and time T4 are shifted by the same amount, as is clear from the above formula 1, time T1 and time T4 are not canceled out, so the shift between time T1 and time T4 can be determined as a fluctuation in the offset.
なお、本実施形態においては、本開示に係る時刻同期装置が、Grand Master Clock2とクライアント装置3との間で時刻同期を行う例を用いて説明したが、これに限られるものではない。本開示に係る時刻同期装置は、例えば、一のBoundary Clockと他のBoundary Clockとの間で時刻同期を行うものであってもよい。In this embodiment, the time synchronization device according to the present disclosure has been described using an example in which the device performs time synchronization between the
次に、本実施形態に係る時刻同期装置としてのBoundary Clock100のハードウェア構成について説明する。Next, we will explain the hardware configuration of the
図7は、本実施形態に係る時刻同期装置としてのBoundary Clock100のハードウェア構成の一例を示す図である。図7においては、Boundary Clock100がプログラム命令を実行可能なコンピュータにより構成される場合の、Boundary Clock100のハードウェア構成の一例を示している。ここで、コンピュータは、汎用コンピュータ、専用コンピュータ、ワークステーション、PC(Personal computer)、電子ノートパッドなどであってもよい。プログラム命令は、必要なタスクを実行するためのプログラムコード、コードセグメントなどであってもよい。
Figure 7 is a diagram showing an example of the hardware configuration of the
図7に示すように、Boundary Clock100は、プロセッサ11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、ストレージ14、入力部15、表示部16および通信インタフェース(I/F)17を有する。各構成は、バス19を介して相互に通信可能に接続されている。プロセッサ11は、具体的にはCPU(Central Processing Unit)、MPU(Micro Processing Unit)、GPU(Graphics Processing Unit)、DSP(Digital Signal Processor)、SoC(System on a Chip)などであり、同種または異種の複数のプロセッサにより構成されてもよい。As shown in Figure 7, the
プロセッサ11は、各構成の制御および各種の演算処理を実行する制御部である。すなわち、プロセッサ11は、ROM12またはストレージ14からプログラムを読み出し、RAM13を作業領域としてプログラムを実行する。プロセッサ11は、ROM12あるいはストレージ14に記憶されているプログラムに従って、上記各構成の制御および各種の演算処理を行う。本実施形態では、ROM12またはストレージ14には、コンピュータを本開示に係るBoundary Clock100として機能させるためのプログラムが格納されている。当該プログラムがプロセッサ11により読み出されて実行されることで、Boundary Clock100の各構成、すなわち、オフセット計算部102、伝送遅延時間計算部103、時刻同期処理部104、オフセットパターン判定部107、伝送遅延時間パターン判定部108、カウントフラグ部109、Clock Class書換部110および障害箇所判定部111が実現される。The
プログラムは、CD-ROM(Compact Disk Read Only Memory)、DVD-ROM(Digital Versatile Disk Read Only Memory)、USB(Universal Serial Bus)メモリなどの非一時的(non-transitory)記憶媒体に記憶された形態で提供されてもよい。また、プログラムは、ネットワークを介して外部装置からダウンロードされる形態としてもよい。The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be provided in a form downloaded from an external device via a network.
ROM12は、各種プログラムおよび各種データを格納する。RAM13は、作業領域として一時的にプログラムまたはデータを記憶する。ストレージ14は、HDD(Hard Disk Drive)またはSSD(Solid State Drive)により構成され、オペレーティングシステムを含む各種プログラムおよび各種データを格納する。ROM12またはストレージ14は、例えば、上述した第1の閾値TH1、第2の閾値TH2、第3の閾値TH3および第4の閾値TH4を記憶する。
入力部15は、マウスなどのポインティングデバイス、およびキーボードを含み、各種の入力を行うために使用される。The
表示部16は、例えば、液晶ディスプレイであり、各種の情報を表示する。表示部16は、タッチパネル方式を採用して、入力部15として機能してもよい。The
通信インタフェース17は、他の装置(例えば、Grand Master Clock2およびクライアント装置3)と通信するためのインタフェースであり、例えば、LAN用のインタフェースである。The
上述したBoundary Clock100の各部として機能させるためにコンピュータを好適に用いることが可能である。そのようなコンピュータは、Boundary Clock100の各部の機能を実現する処理内容を記述したプログラムを該コンピュータの記憶部に格納しておき、該コンピュータのプロセッサによってこのプログラムを読み出して実行させることで実現することができる。すなわち、当該プログラムは、コンピュータを、上述したBoundary Clock100として機能させることができる。また、当該プログラムを非一時的記憶媒体に記録することも可能である。また、当該プログラムを、ネットワークを介して提供することも可能である。A computer can be suitably used to function as each part of the
このように本実施形態に係る時刻同期装置としてのBoundary Clock100は、オフセット計算部102と、伝送遅延時間計算部103と、オフセットパターン判定部107と、伝送遅延時間パターン判定部108と、障害箇所判定部111とを備える。オフセット計算部102は、上位装置の装置内時刻と自装置の装置内時刻との差であるオフセットを計算する。伝送遅延時間計算部103は、上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算する。オフセットパターン判定部107は、オフセットの変動パターンを判定する。伝送遅延時間パターン判定部108は、伝送遅延時間の変動パターンを判定する。障害箇所判定部111は、オフセットの変動パターンと、伝送遅延時間の変動パターンとに基づき、上位装置との時刻同期の障害の発生箇所を判定する。
Thus, the
また、実施形態に係る時刻同期方法は、オフセット計算部102が、上位装置の装置内時刻と自装置の装置内時刻との差であるオフセットを計算するステップ(ステップS101)と、伝送遅延時間計算部103が、上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算するステップ(ステップS106)とを含む。また、本実施形態に係る時刻同期方法は、オフセットパターン判定部107が、オフセットの変動パターンを判定するステップ(ステップS102~ステップS104)と、伝送遅延時間パターン判定部108が、伝送遅延時間の変動パターンを判定するステップ(ステップS107~ステップS109)と、障害箇所判定部111が、オフセットの変動パターンと、伝送遅延時間の変動パターンとに基づき、上位装置との時刻同期の障害の発生箇所を判定するステップ(ステップS110)と、を含む。
The time synchronization method according to the embodiment includes a step (step S101) in which the offset
オフセットの変動パターンと、伝送遅延時間の変動パターンとに基づき、障害の発生箇所を判定することで、Grand Master Clock2における装置内時刻のずれ方の影響を受けることなく、より正確に障害の発生および障害の発生箇所を正確に判定することができる。その結果、下位装置の装置内時刻を誤った時刻に同期させる可能性の低減を図ることができる。
By determining the location of a fault based on the offset fluctuation pattern and the transmission delay time fluctuation pattern, it is possible to more accurately determine the occurrence and location of a fault without being affected by the deviation of the internal time of the
(第2の実施形態)
図8は、本開示の第2の実施形態に係る時刻同期装置としてのBoundary Clock100Aの構成例を示す図である。
Second Embodiment
FIG. 8 is a diagram illustrating an example of the configuration of a
図8に示すように、本実施形態に係るBoundary Clock100Aは、パケット送受信部101,101A,105と、オフセット計算部102と、伝送遅延時間計算部103と、時刻同期処理部104と、閾値記憶部106と、オフセットパターン判定部107、伝送遅延時間パターン判定部108と、カウントフラグ部109と、障害箇所判定部111Aと、時刻選択部112とを備える。本実施形態に係るBoundary Clock100Aは、第1の実施形態に係るBoundary Clock100と比較して、パケット送受信部101Aおよび時刻選択部112が追加された点と、Clock Class書換部110が削除された点と、障害箇所判定部111が障害箇所判定部111Aに変更された点とが異なる。8, the
パケット送受信部101Aは、パケット送受信部101がパケットの送受信を行うGrand Master Clock2とは別のGrand Master Clock2Aとパケットの送受信を行う。すなわち、本実施形態に係るBoundary Clock100Aは、複数のGrand Master Clock2,2Aと通信可能である。パケット送受信部101Aは、Grand Master Clock2Aから受信したパケットをオフセット計算部102および伝送遅延時間計算部103に出力する。The packet transmitter/
時刻選択部112は、Boundary Clock100Aが通信可能な複数のGrand Master Clock2,2Aの中から、自装置の装置内時刻を同期させる対象を選択する。時刻選択部112は、例えば、IEEE Std 1588TM-2019で規定されているBMCA(Best Master Clock Algorithm)に従い、装置内時刻を同期させる対象を選択する。
The
障害箇所判定部111Aは、障害箇所判定部111と同様に、オフセットの変動パターンと、伝送遅延時間の変動パターンとに基づき、上位装置との時刻同期の障害の発生および障害の発生箇所を判定する。そして、障害箇所判定部111Aは、障害の発生箇所が、自装置の装置内時刻を同期させている上位装置であると判定すると、時刻選択部112に、自装置の装置内時刻を同期させる対象を切り替えさせる。Like the fault
次に、本実施形態に係るBoundary Clock100Aの動作について説明する。Next, the operation of the
図9は、本実施形態に係るBoundary Clock100Aの動作の一例を示すフローチャートである。図9において、図3と同様の処理には同じ符号を付し、説明を省略する。
Figure 9 is a flowchart showing an example of the operation of the
時刻選択部112は、図3を参照して説明した、ステップS101からステップS104の処理およびステップS106からステップS109の処理と並行して、BMCAにより、自装置の装置内時刻を同期させる、時刻同期の対象を選択する(ステップS201)。BMCAによる時刻同期の対象の選択については、IEEE Std 1588TM-2019などに記載されているため、詳細な説明は省略するが、概要について、図10を参照して説明する。図10においては、2つの上位装置(Grand Master Clock AおよびGrand Master Clock B)の中から時刻同期の対象を選択する例を用いて説明する。
In parallel with the processes of steps S101 to S104 and steps S106 to S109 described with reference to Fig. 3, the
時刻選択部112は、パケット送受信部101,101Aを介して、Grand Master Clock AおよびGrand Master Clock Bそれぞれ送信された、以下に示すパラメータを含むパケットを取得する。
識別コード(GM Identity):Grand Master Clock固有の識別コード
優先度1(GM priority 1):管理者が設定するGrand Master Clockごとの第1の優先度
GMクラス(GM class):Grand Master Clockごとのトレーサビリティ(UTCへの追跡可能性(時刻の信頼性を示す指標))を示す値
GMクロック精度:(GM accuracy value):Grand Master Clockごとの時刻の精度を示す値
GMクロック安定度(GM offsetScaledLogVariance):Grand Master Clockごとの安定度を示す値
優先度2(GM priority 2):管理者が設定するGrand Master Clockごとの第2の優先度
The
GM Identity: Unique identification code for the Grand Master Clock GM priority 1: First priority for each Grand Master Clock set by the administrator GM class: Value indicating the traceability (traceability to UTC (index showing the reliability of time)) for each Grand Master Clock GM accuracy value: Value indicating the accuracy of the time for each Grand Master Clock GM offsetScaledLogVariance: Value indicating the stability for each Grand Master Clock GM priority 2: Second priority for each Grand Master Clock set by the administrator
まず、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock Bの識別コードを比較し、Grand Master Clock AおよびGrand Master Clock Bの識別コードが同じであるか否かを判定する(ステップS301)。Grand Master Clock AおよびGrand Master Clock Bの識別コードが同じであると判定した場合(ステップS301:Yes)、詳細は省略するが、時刻選択部112は、各Grand Master ClockからBoundary Clock100Aまでの接続段数、上流のポート番号、受信側のポート番号、同一のデータセットの受信側のポート番号の比較により、時刻同期の対象を選択する。First, the
Grand Master Clock AおよびGrand Master Clock Bの識別コードが同じでないと判定した場合(ステップS301:No)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock Bの優先度1を比較する(ステップS302)。If it is determined that the identification codes of Grand Master Clock A and Grand Master Clock B are not the same (step S301: No), the
Grand Master Clock Aの優先度1がGrand Master Clock Bの優先度1よりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If priority 1 of Grand Master Clock A is lower than priority 1 of Grand Master Clock B (A<B), the
Grand Master Clock Bの優先度1がGrand Master Clock Aの優先度1よりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If priority 1 of Grand Master Clock B is lower than priority 1 of Grand Master Clock A (B<A), the
Grand Master Clock AおよびGrand Master Clock Bの優先度1が同じである場合(A=B)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock BのGMクラスを比較する(ステップS303)。
If the priority 1 of Grand Master Clock A and Grand Master Clock B is the same (A=B), the
Grand Master Clock AのGMクラスがGrand Master Clock BのGMクラスよりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If the GM class of Grand Master Clock A is smaller than the GM class of Grand Master Clock B (A<B), the
Grand Master Clock BのGMクラスがGrand Master Clock AのGMクラスよりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If the GM class of Grand Master Clock B is smaller than the GM class of Grand Master Clock A (B<A), the
Grand Master Clock AおよびGrand Master Clock BのGMクラスが同じである場合(A=B)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock BのGMクロック精度を比較する(ステップS304)。
If the GM classes of Grand Master Clock A and Grand Master Clock B are the same (A=B), the
Grand Master Clock AのGMクロック精度がGrand Master Clock BのGMクロック精度よりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If the GM clock accuracy of Grand Master Clock A is smaller than the GM clock accuracy of Grand Master Clock B (A<B), the
Grand Master Clock BのGMクロック精度がGrand Master Clock AのGMクロック精度よりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If the GM clock accuracy of Grand Master Clock B is smaller than the GM clock accuracy of Grand Master Clock A (B<A), the
Grand Master Clock AおよびGrand Master Clock BのGMクロック精度が同じである場合(A=B)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock BのGMクロック安定度を比較する(ステップS305)。
If the GM clock accuracy of Grand Master Clock A and Grand Master Clock B is the same (A=B), the
Grand Master Clock AのGMクロック安定度がGrand Master Clock BのGMクロック安定度よりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If the GM clock stability of Grand Master Clock A is less than the GM clock stability of Grand Master Clock B (A<B), the
Grand Master Clock BのGMクロック安定度がGrand Master Clock AのGMクロック安定度よりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If the GM clock stability of Grand Master Clock B is less than the GM clock stability of Grand Master Clock A (B<A), the
Grand Master Clock AおよびGrand Master Clock BのGMクロック安定度が同じである場合(A=B)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock Bの優先度2を比較する(ステップS306)。
If the GM clock stability of Grand Master Clock A and Grand Master Clock B is the same (A=B), the
Grand Master Clock Aの優先度2がGrand Master Clock Bの優先度2よりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If
Grand Master Clock Bの優先度2がGrand Master Clock Aの優先度2よりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If
Grand Master Clock AおよびGrand Master Clock Bの優先度2が同じである場合(A=B)、時刻選択部112は、Grand Master Clock AおよびGrand Master Clock Bの識別コードを比較する(ステップS307)。If the
Grand Master Clock Aの識別コードがGrand Master Clock Bの識別コードよりも小さい場合(A<B)、時刻選択部112は、Grand Master Clock Aを時刻同期の対象として選択する。
If the identification code of Grand Master Clock A is smaller than the identification code of Grand Master Clock B (A<B), the
Grand Master Clock Bの識別コードがGrand Master Clock Aの識別コードよりも小さい場合(B<A)、時刻選択部112は、Grand Master Clock Bを時刻同期の対象として選択する。
If the identification code of Grand Master Clock B is smaller than the identification code of Grand Master Clock A (B<A), the
上述した処理により、時刻選択部112は適宜、Boundary Clock100Aの装置内時刻を同期させる上位装置(Grand Master Clock2またはGrand Master Clock2A)を選択する。Through the above-described processing, the
図9を再び参照すると、障害箇所判定部111Aは、障害の発生箇所が自装置の装置内時刻を同期させている上位装置(例えば、Grand Master Clock2)であると判定すると、Grand Master Clock2で障害が発生したことを時刻選択部112に通知する(ステップS202)。
Referring again to Figure 9, when the fault
障害箇所判定部111Aからの通知を受けて、時刻選択部112は、自装置の装置内時刻を同期させる時刻同期の対象を切り替える。例えば、Grand Master Clock2の装置内時刻に自装置の装置内時刻を同期させている状態で、Grand Master Clock2で障害が発生したことを障害箇所判定部111Aから通知されると、時刻選択部112は、時刻同期の対象を、Grand Master Clock2からGrand Master Clock2Aに切り替える。時刻選択部112は、例えば、図10を参照して説明したBMCAによる時刻同期の対象の選択の処理おいて、ステップS305でA=Bであると判定すると、時刻同期の対象を切り替える。Upon receiving a notification from the fault
このように本実施形態に係る時刻同期装置としてのBoundary Clock100Aは、複数の上位装置(Grand Master Clock2,2A)の中から、自装置の装置内時刻を同期させる上位装置を選択する時刻選択部112をさらに備える。障害箇所判定部111Aは、障害の発生箇所が、自装置の装置内時刻を同期させている上位装置であると判定すると、時刻選択部112に、自装置の装置内時刻を同期させる上位装置を切り替えさせる。Thus, the
そのため、下位装置の装置内時刻を誤った時刻に同期させる可能性の低減を図ることができる。 This reduces the possibility of synchronizing the internal time of a lower-level device to an incorrect time.
なお、第2の実施形態に係るBoundary Clock100Aについても、図7を参照して説明したハードウェア構成のコンピュータにより構成することができる。
The
以上の実施形態に関し、更に以下の付記を開示する。 The following notes are further disclosed with respect to the above embodiments.
[付記項1]
上位装置とのパケットの送受信により、前記上位装置の装置内時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を前記自装置の装置内時刻に同期させる時刻同期装置であって、
メモリと、
前記メモリに接続された制御部と、
を備え、
前記制御部は、
前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算し、
前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算し、
前記オフセットの変動パターンを判定し、
前記伝送遅延時間の変動パターンを判定し、
前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定する、時刻同期装置。
[Additional Note 1]
A time synchronization device that synchronizes its own internal time with the internal time of a higher-level device and synchronizes the internal time of a lower-level device with the internal time of its own device by transmitting and receiving packets to and from the higher-level device,
Memory,
A control unit connected to the memory;
Equipped with
The control unit is
Calculating an offset, which is a difference between the device time of the higher-level device and the device time of the own device;
Calculating a transmission delay time of a packet transmitted and received between the higher-level device and the own device;
determining a variation pattern of the offset;
determining a variation pattern of the transmission delay time;
A time synchronization device that determines a location of an occurrence of a failure in time synchronization with the higher-level device based on a fluctuation pattern of the offset and a fluctuation pattern of the transmission delay time.
[付記項2]
付記項1に記載の時刻同期装置において、
前記制御部は、前記障害の発生箇所が前記上位装置であると判定すると、前記下位装置の装置内時刻の前記自装置の装置内時刻への同期を停止する、時刻同期装置。
[Additional Note 2]
In the time synchronization device according to claim 1,
When the control unit determines that the location of the failure is the higher-level device, the control unit stops synchronization of the internal device time of the lower-level device with the internal device time of the own device.
[付記項3]
付記項1に記載の時刻同期装置において、
前記制御部は、
複数の上位装置の中から、自装置の装置内時刻を同期させる上位装置を選択し、
前記障害の発生箇所が前記上位装置であると判定すると、複数の上位装置の中から、自装置の装置内時刻を同期させる上位装置を切り替える、時刻同期装置。
[Additional Note 3]
In the time synchronization device according to claim 1,
The control unit is
selecting a host device with which to synchronize the internal time of the host device from among the plurality of host devices;
When it is determined that the location of the failure is the host device, the time synchronization device switches, from among a plurality of host devices, a host device with which the internal device time of the time synchronization device is synchronized.
[付記項4]
付記項1に記載の時刻同期装置において、
前記制御部は、
前記オフセットの絶対値が第1の閾値より大きいか否かを判定し、前記オフセットの変動パターンとして、前記オフセットの絶対値が前記第1の閾値より大きいと判定された時間または回数が第2の閾値より大きいか否かを判定し、
前記伝送遅延時間が第3の閾値より大きいか否かを判定し、前記伝送遅延時間の変動パターンとして、前記伝送遅延時間が前記第3の閾値より大きいと判定された時間または回数が第4の閾値より大きいか否かを判定する、時刻同期装置。
[Additional Note 4]
In the time synchronization device according to claim 1,
The control unit is
determining whether an absolute value of the offset is greater than a first threshold value, and determining, as a fluctuation pattern of the offset, whether a time or a number of times that the absolute value of the offset is determined to be greater than the first threshold value is greater than a second threshold value;
A time synchronization device that determines whether the transmission delay time is greater than a third threshold value, and determines, as a fluctuation pattern of the transmission delay time, whether the time or number of times that the transmission delay time is determined to be greater than the third threshold value is greater than a fourth threshold value.
[付記項5]
付記項4に記載の時刻同期装置において、
前記制御部は、前記オフセットの絶対値が前記第1の閾値より大きいと判定された時間または回数が前記第2の閾値より大きく、かつ、前記伝送遅延時間が前記第3の閾値以下である場合、または、前記伝送遅延時間が前記第3の閾値より大きいと判定された時間または回数が前記第4の閾値より小さい場合、前記障害の発生箇所が前記上位装置であると判定する、時刻同期装置。
[Additional Note 5]
In the time synchronization device according to claim 4,
The control unit determines that the location of the fault is the higher-level device when the time or number of times that the absolute value of the offset is determined to be greater than the first threshold is greater than the second threshold and the transmission delay time is less than the third threshold, or when the time or number of times that the transmission delay time is determined to be greater than the third threshold is less than the fourth threshold.
[付記項6]
上位装置とのパケットの送受信により、前記上位装置の装置内時刻に自装置の装置内時刻を同期させ、下位装置の装置内時刻を前記自装置の装置内時刻に同期させる時刻同期方法であって、
前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算し、
前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算し、
前記オフセットの変動パターンを判定し、
前記伝送遅延時間の変動パターンを判定し、
前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定する、時刻同期方法。
[Additional Note 6]
1. A time synchronization method for synchronizing a device's internal time with a device's internal time of a higher-level device by transmitting and receiving packets to and from the higher-level device, and for synchronizing a device's internal time with the device's internal time, comprising:
Calculating an offset, which is a difference between the device time of the higher-level device and the device time of the own device;
Calculating a transmission delay time of a packet transmitted and received between the higher-level device and the device itself;
determining a variation pattern of the offset;
determining a variation pattern of the transmission delay time;
A time synchronization method for determining a location of a failure in time synchronization with the higher-level device based on a fluctuation pattern of the offset and a fluctuation pattern of the transmission delay time.
[付記項7]
コンピュータによって実行可能なプログラムを記憶した非一時的記憶媒体であって、前記コンピュータを、付記項1に記載の時刻同期装置として動作させる、プログラムを記憶した非一時的記憶媒体。
[Additional Note 7]
A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to operate as the time synchronization device according to claim 1.
上述の実施形態は代表的な例として説明したが、本開示の趣旨および範囲内で、多くの変更および置換ができることは当業者に明らかである。したがって、本発明は、上述の実施形態によって制限するものと解するべきではなく、請求の範囲から逸脱することなく、種々の変形または変更が可能である。例えば、実施形態の構成図に記載の複数の構成ブロックを1つに組み合わせたり、あるいは1つの構成ブロックを分割したりすることが可能である。Although the above-mentioned embodiment has been described as a representative example, it will be apparent to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiment, and various modifications or changes are possible without departing from the scope of the claims. For example, it is possible to combine multiple configuration blocks shown in the configuration diagram of the embodiment into one, or to divide one configuration block.
1 時刻同期システム
2,2A Grand Master Clock(上位装置)
3 クライアント装置(下位装置)
11 プロセッサ
12 ROM
13 RAM
14 ストレージ
15 入力部
16 表示部
17 通信I/F
19 バス
100,100A Boundary Clock(時刻同期装置)
101,101A,105 パケット送受信部
102 オフセット計算部
103 伝送遅延時間計算部
104 時刻同期処理部
106 閾値記憶部
107 オフセットパターン判定部
108 伝送遅延時間パターン判定部
109 カウントフラグ部
110 Clock Class書換部
111,111A 障害箇所判定部
112 時刻選択部
1
3. Client device (lower device)
11
13 RAM
14
19
REFERENCE SIGNS
Claims (7)
前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算するオフセット計算部と、
前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算する伝送遅延時間計算部と、
前記オフセットの変動パターンを判定するオフセットパターン判定部と、
前記伝送遅延時間の変動パターンを判定する伝送遅延時間パターン判定部と、
前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定する障害箇所判定部と、を備える時刻同期装置。 A time synchronization device that synchronizes its own internal time with the internal time of a higher-level device and synchronizes the internal time of a lower-level device with the internal time of its own device by transmitting and receiving packets to and from the higher-level device,
an offset calculation unit that calculates an offset, which is a difference between a device time of the higher-level device and a device time of the own device;
a transmission delay time calculation unit that calculates a transmission delay time of a packet transmitted and received between the higher-level device and the device itself;
an offset pattern determination unit that determines a fluctuation pattern of the offset;
A transmission delay time pattern determination unit that determines a fluctuation pattern of the transmission delay time;
A time synchronization device comprising: a failure location determination unit that determines a location of a failure in time synchronization with the higher-level device based on a fluctuation pattern of the offset and a fluctuation pattern of the transmission delay time.
前記障害箇所判定部は、前記障害の発生箇所が前記上位装置であると判定すると、前記下位装置の装置内時刻の前記自装置の装置内時刻への同期を停止する、時刻同期装置。 2. The time synchronization device according to claim 1,
When the failure location determination unit determines that the location of the failure is the higher-level device, the failure location determination unit stops synchronization of the internal device time of the lower-level device with the internal device time of the own device.
複数の上位装置の中から、自装置の装置内時刻を同期させる上位装置を選択する時刻選択部をさらに備え、
前記障害箇所判定部は、前記障害の発生箇所が前記上位装置であると判定すると、前記時刻選択部に、自装置の装置内時刻を同期させる上位装置を切り替えさせる、時刻同期装置。 2. The time synchronization device according to claim 1,
a time selection unit that selects, from among a plurality of higher-level devices, a higher-level device with which the internal time of the device is to be synchronized;
a time synchronization device, wherein when the failure location determination unit determines that the location of the failure is the higher-level device, the time selection unit switches the higher-level device with which the internal device time of the device is synchronized;
前記オフセットパターン判定部は、前記オフセットの絶対値が第1の閾値より大きいか否かを判定し、前記オフセットの変動パターンとして、前記オフセットの絶対値が前記第1の閾値より大きいと判定された時間または回数が第2の閾値より大きいか否かを判定し、
前記伝送遅延時間パターン判定部は、前記伝送遅延時間が第3の閾値より大きいか否かを判定し、前記伝送遅延時間の変動パターンとして、前記伝送遅延時間が前記第3の閾値より大きいと判定された時間または回数が第4の閾値より大きいか否かを判定する、時刻同期装置。 4. The time synchronization device according to claim 1,
the offset pattern determination unit determines whether an absolute value of the offset is greater than a first threshold, and determines, as a fluctuation pattern of the offset, whether a time or a number of times that the absolute value of the offset is determined to be greater than the first threshold is greater than a second threshold;
The transmission delay time pattern determination unit determines whether the transmission delay time is greater than a third threshold value, and determines, as a fluctuation pattern of the transmission delay time, whether the time or number of times the transmission delay time is determined to be greater than the third threshold value is greater than a fourth threshold value.
前記障害箇所判定部は、
前記オフセットの絶対値が前記第1の閾値より大きいと判定された時間または回数が前記第2の閾値より大きく、かつ、前記伝送遅延時間が前記第3の閾値以下である場合、または、
前記オフセットの絶対値が前記第1の閾値より大きいと判定された時間または回数が前記第2の閾値より大きく、かつ、前記伝送遅延時間が前記第3の閾値より大きいと判定された時間または回数が前記第4の閾値より小さい場合、前記障害の発生箇所が前記上位装置であると判定する、時刻同期装置。 5. The time synchronization device according to claim 4,
The fault location determination unit is
The time or the number of times that the absolute value of the offset is determined to be greater than the first threshold is greater than the second threshold, and the transmission delay time is equal to or less than the third threshold, or
A time synchronization device that determines that the location of the fault is the higher-level device when the time or number of times that the absolute value of the offset is determined to be greater than the first threshold is greater than the second threshold, and when the time or number of times that the transmission delay time is determined to be greater than the third threshold is smaller than the fourth threshold.
前記上位装置の装置内時刻と前記自装置の装置内時刻との差であるオフセットを計算するステップと、
前記上位装置と自装置との間で送受信されるパケットの伝送遅延時間を計算するステップと、
前記オフセットの変動パターンを判定するステップと、
前記伝送遅延時間の変動パターンを判定するステップと、
前記オフセットの変動パターンと、前記伝送遅延時間の変動パターンとに基づき、前記上位装置との時刻同期の障害の発生箇所を判定するステップと、を含む時刻同期方法。 1. A time synchronization method for synchronizing a device's internal time with a device's internal time of a higher-level device by transmitting and receiving packets to and from the higher-level device, and for synchronizing a device's internal time with the device's internal time, comprising:
calculating an offset which is a difference between a device time of the higher-level device and a device time of the own device;
calculating a transmission delay time of a packet transmitted and received between the higher-level device and the own device;
determining a variation pattern of the offset;
determining a fluctuation pattern of the transmission delay time;
and determining a location of a failure in time synchronization with the higher-level device based on a fluctuation pattern of the offset and a fluctuation pattern of the transmission delay time.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2021/044154 WO2023100299A1 (en) | 2021-12-01 | 2021-12-01 | Time synchronization device, time synchronization method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2023100299A1 JPWO2023100299A1 (en) | 2023-06-08 |
| JP7610168B2 true JP7610168B2 (en) | 2025-01-08 |
Family
ID=86611655
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2023564347A Active JP7610168B2 (en) | 2021-12-01 | 2021-12-01 | Time synchronization device, time synchronization method, and program |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7610168B2 (en) |
| WO (1) | WO2023100299A1 (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016152488A (en) | 2015-02-17 | 2016-08-22 | 日本電信電話株式会社 | Time synchronization method and time synchronization device |
| JP2017098694A (en) | 2015-11-20 | 2017-06-01 | 富士通株式会社 | Communication apparatus and time synchronizing method therefor |
-
2021
- 2021-12-01 JP JP2023564347A patent/JP7610168B2/en active Active
- 2021-12-01 WO PCT/JP2021/044154 patent/WO2023100299A1/en not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016152488A (en) | 2015-02-17 | 2016-08-22 | 日本電信電話株式会社 | Time synchronization method and time synchronization device |
| JP2017098694A (en) | 2015-11-20 | 2017-06-01 | 富士通株式会社 | Communication apparatus and time synchronizing method therefor |
Non-Patent Citations (1)
| Title |
|---|
| 中西 隆 他,高精度時刻同期アクセスシステムの開発導入,NTT技術ジャーナル,日本,2017年04月01日,第29巻,第4号,pp.50-53 |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2023100299A1 (en) | 2023-06-08 |
| JPWO2023100299A1 (en) | 2023-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5569299B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION INTERFACE DEVICE, AND SYNCHRONIZATION METHOD | |
| EP3009897B1 (en) | Distribution device, distribution system, and distribution method | |
| US9712270B2 (en) | Transfer of synchronization in a hybrid global navigation satellite packet network system | |
| CA2676117C (en) | Server time protocol messages and methods | |
| EP4044466B1 (en) | Synchronization method and device | |
| JP7230690B2 (en) | Time synchronization program, information processing device and time synchronization method | |
| KR101716630B1 (en) | Communication device, communication method and computer readable recording medium recording program | |
| CA2675645A1 (en) | Facilitating synchronization of servers in a coordinated timing network | |
| CN111385051A (en) | Clock synchronization method, device and storage medium | |
| JP2011193457A (en) | System and method for performing time synchronization | |
| CN103842918A (en) | Time control device, time control method, and program | |
| JP7587194B2 (en) | Time synchronization device, time synchronization method, and program | |
| JP7610168B2 (en) | Time synchronization device, time synchronization method, and program | |
| US11876609B2 (en) | Time sync device, time sync method, and program | |
| CN110830138A (en) | Information processing method, electronic equipment and server | |
| JP7545099B2 (en) | Measuring instrument, measuring method and time synchronization system | |
| JP7659220B2 (en) | Time synchronization device, time synchronization method, and program | |
| JP7506351B2 (en) | Measuring instrument, measuring method and time synchronization system | |
| WO2025104815A1 (en) | Communication device, communication system, and communication method | |
| JP7644393B2 (en) | Time synchronization device, time synchronization method, and program | |
| US20250365086A1 (en) | Time synchronization device, time synchronization system, and time synchronization method | |
| WO2024166272A1 (en) | Time correction device and time correction method | |
| WO2024189860A1 (en) | Transfer device, transfer method, and program | |
| JP7737915B2 (en) | Communication system, communication method and program | |
| WO2024166271A1 (en) | Determination device and determination method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240404 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241015 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241106 |
|
| 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: 20241119 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20241202 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7610168 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |