JP7193004B2 - Slave device, time synchronization system, time synchronization method, and time synchronization program - Google Patents
Slave device, time synchronization system, time synchronization method, and time synchronization program Download PDFInfo
- Publication number
- JP7193004B2 JP7193004B2 JP2021545495A JP2021545495A JP7193004B2 JP 7193004 B2 JP7193004 B2 JP 7193004B2 JP 2021545495 A JP2021545495 A JP 2021545495A JP 2021545495 A JP2021545495 A JP 2021545495A JP 7193004 B2 JP7193004 B2 JP 7193004B2
- Authority
- JP
- Japan
- Prior art keywords
- path
- time
- time synchronization
- steady
- interval
- 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
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
本発明は、スレーブ装置、時刻同期システム、時刻同期方法、および時刻同期プログラムに関する。 The present invention relates to a slave device, time synchronization system, time synchronization method, and time synchronization program.
産業用ロボットは、コントローラと複数のサーボモータ等によって制御される。産業用ロボットを制御するために、機器間で協調作業が必要となる。そのため、機器同士の高精度な時刻同期が必要である。 Industrial robots are controlled by a controller and a plurality of servo motors. In order to control industrial robots, coordinated work is required between devices. Therefore, highly accurate time synchronization between devices is required.
各機器のクロックソースは異なるので、各機器のクロックの周波数は、機器ごとに若干異なる。従って、設定された時刻が、時間が経過するにつれて他の機器上における時刻に対して徐々にずれる。そのため、異なるクロックソースの機器間では、ずれた時刻を修正するために同期をとる必要がある。 Since the clock source of each device is different, the frequency of the clock of each device is slightly different for each device. Therefore, the set time gradually shifts from the time on other devices as time elapses. Therefore, devices with different clock sources need to be synchronized in order to correct the time lag.
工場自動化システムなど産業用途における無線化の要求は高い。機器の柔軟な運用を実現する無線通信を使用した同期を行うことが要求される。しかし、無線通信では利用できる帯域が限定されているため無線リソース(例えば、1つの通信帯域におけるパケット量)を節減することが課題となる。また、無線通信では電波の揺らぎが発生するため、高精度な時刻同期を実現することが困難である。 There is a high demand for wireless communication in industrial applications such as factory automation systems. Synchronization using wireless communication is required to realize flexible operation of equipment. However, since the bands that can be used in wireless communication are limited, reducing wireless resources (for example, the amount of packets in one communication band) is an issue. In addition, since radio wave fluctuations occur in wireless communication, it is difficult to achieve highly accurate time synchronization.
ネットワーク通信を用いることによって、スレーブ装置となる機器のクロックをマスタ装置となる機器のクロックに合わせる方法は既に知られている。 A method is already known for synchronizing the clock of a device serving as a slave device with the clock of a device serving as a master device by using network communication.
例えば、ネットワークを介して接続される複数のクロックをマイクロ秒レベルで同期させる方法として、IEEE(Institute of Electrical and Electronics Engineers )1588規格に基づく方法がある。無線ネットワークを介した機器間でIEEE1588規格に従って時刻同期が行われる場合、1台のマスタ装置に複数台のスレーブ装置が接続されるシステム(1:N接続)では、マスタ装置と、各スレーブ装置とが時刻同期のためのメッセージの送受信を行う。そのため、1:1接続の場合のN倍の同期メッセージが発生する。すなわち、1:N接続では、無線リソースの消費量が大きい。無線リソースの大量消費は、周辺の通信に影響を及ぼす。例えば、通信の遅延時間が増大する。 For example, as a method of synchronizing a plurality of clocks connected via a network at the microsecond level, there is a method based on the IEEE (Institute of Electrical and Electronics Engineers) 1588 standard. When time synchronization is performed between devices via a wireless network according to the IEEE 1588 standard, in a system (1:N connection) in which a plurality of slave devices are connected to one master device, the master device and each slave device sends and receives messages for time synchronization. Therefore, there are N times as many synchronization messages as for a 1:1 connection. That is, the 1:N connection consumes a large amount of radio resources. Massive consumption of radio resources affects peripheral communications. For example, communication delay time increases.
また、無線通信では、電波の揺らぎのために伝送遅延を正確に測定することは困難である。従って、クロックのずれを正確に計測することは困難である。具体的には、スレーブ装置がマスタ装置から1つの同期パケットを受信する。スレーブ装置は、送信と受信のタイムスタンプの差分を取得できる。しかし、差分には、マスタクロックとスレーブクロックとのずれと、ネットワークの伝送遅延とが含まれている。すなわち、無線ネットワークを介して受信した同期パケットは、無線の伝送遅延の揺らぎの影響を受けている。タイムスタンプの差分から伝送遅延の揺らぎの影響を除去しないと、マスタクロックとスレーブクロックとの時刻の同期を高精度に行えない。 Moreover, in wireless communication, it is difficult to accurately measure transmission delay due to fluctuations in radio waves. Therefore, it is difficult to accurately measure the clock deviation. Specifically, the slave device receives one synchronization packet from the master device. A slave device can obtain the difference between the send and receive timestamps. However, the difference includes the deviation between the master clock and the slave clock and the transmission delay of the network. That is, the synchronization packet received via the wireless network is affected by fluctuations in wireless transmission delay. Unless the influence of transmission delay fluctuations is removed from the time stamp difference, time synchronization between the master clock and the slave clock cannot be performed with high accuracy.
特許文献1には、ネットワークを介して一定間隔で送信された同期パケットを受信し、内部で発生させたクロックを送信側のクロックに同期させる同期方式が記載されている。特許文献1に記載された同期方式では、ブロードキャストによって同期パケットが一括して送信されるため、無線リソースを削減できる。しかし、達成できるクロック精度は、システムの伝送遅延の揺らぎの影響を受ける。無線ネットワークを介した場合には、伝送遅延の揺らぎが特に大きく、また、環境に応じて変動する。そのために、一般に、伝送遅延のランダム性を平準化して、揺らぎの影響を排除する処理が施される。
また、特許文献2には、複数の通信手段を併用することによって時刻同期を行う方法が記載されている。特許文献2に記載されている方法では、送信側の装置が、同期用パケットを複製して2つの経路に送信する。一方の経路の受信パケット数が想定と異なる場合に、他方の経路の受信パケット数による補完処理を行う。なお、特許文献2に記載された方法は、ATM(Asynchronous Transfer Mode)網の多重ループの有線ネットワークに適用される。
Further,
また、特許文献3には、通信揺らぎの変動に対応する時刻同期方法が記載されている。特許文献3に記載されている時刻同期方法では、スレーブ装置において、遅延量が小さいパケットのみがクロック同期回路に取り込まれる。クロック同期回路は、時刻同期を行う。すなわち、周波数調整量が許容できるしきい値を超過する遅延が発生した場合に、そのパケットは廃棄される。その結果、遅延量が小さいパケットのみを用いて時刻同期制御が行われるので同期精度は向上する。
Further,
しかし、特許文献1に記載された方式では、遅延量が大きいパケットが到着すると揺らぎの影響を十分に排除することが困難な場合がある。従って、同期精度が劣化することがある。特許文献2に記載された方法では、無線を使用した場合の通信リソースの制約や無線通信の揺らぎに対する対応が困難である。特許文献3に記載された方法では、使用している通信が劣化し、所定のしきい値を超えた遅延が継続した場合、時刻同期が行えない。その結果、時間の経過に併って同期精度が劣化する。
However, with the method described in
本発明は、無線リソースの消費を節減しつつ、精度の高いクロック同期を実現するスレーブ装置、時刻同期システム、時刻同期方法、および時刻同期プログラムを提供することを目的とする。 An object of the present invention is to provide a slave device, a time synchronization system, a time synchronization method, and a time synchronization program that achieve highly accurate clock synchronization while reducing consumption of radio resources.
本発明によるスレーブ装置は、マスタ装置が無線帯域が異なる複数のパスを介して送信するパケットに基づいてマスタ装置との時刻同期を行うスレーブ装置であって、各々がいずれかのパスを介してパケットを受信する複数の受信手段と、複数の受信手段の各々が受信したパケットの受信間隔を計測する受信間隔計測手段と、マスタ装置がパケットを送信する間隔を自身のクロックを用いて送信間隔として計測する送信間隔計測手段と、各々の受信間隔と送信間隔との差を算出する時間差計算手段と、時間差計算手段が複数回算出した差を用いて分散値を算出する分散算出手段と、最も小さい分散値を呈した受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとして選択するパス選択手段と、定常状態のパスを介する通信に基づいて時刻補正を行う補正手段とを含み、定常状態のパスの品質が低下した場合に、分散算出手段は、定常状態のパスよりも高い品質の他のパスを介して受信を行う受信手段が受信したパケットを用いて、時刻同期のために定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出する。 A slave device according to the present invention is a slave device that performs time synchronization with a master device based on packets transmitted by the master device via a plurality of paths with different wireless bands, each of which transmits a packet via one of the paths. receiving interval measuring means for measuring the interval of receiving packets received by each of the plurality of receiving means; and measuring the interval at which the master device transmits packets as the transmission interval using its own clock. a transmission interval measuring means for calculating a difference between each reception interval and a transmission interval; a variance calculating means for calculating a variance value using the differences calculated a plurality of times by the time difference calculating means; A path selecting means for selecting a path through which a packet having a measured reception interval representing a value is transferred as a steady-state path used for time synchronization, and performing time correction based on communication via the steady-state path. and a compensating means, wherein when the quality of the steady-state path degrades, the variance calculating means uses packets received by the receiving means for receiving over other paths of higher quality than the steady-state path. Then, the variance value is calculated with a period shorter than the period when the steady-state path is used for time synchronization .
本発明による時刻同期システムは、スレーブ装置と、マスタ装置とが無線帯域が異なる複数のパスを介して接続され、マスタ装置は、タイムスタンプを含むパケットを生成するパケット生成手段と、パケットを送信する送信手段とを含む。 In the time synchronization system according to the present invention, a slave device and a master device are connected via a plurality of paths with different radio bands, and the master device has packet generation means for generating a packet containing a time stamp and transmission of the packet. and transmission means.
本発明による時刻同期方法は、マスタ装置が無線帯域が異なる複数のパスを介して送信するパケットに基づいてマスタ装置との時刻同期を行う時刻同期方法であって、複数のパスを介してパケットを受信し、複数のパスの各々について、受信したパケットの受信間隔を計測し、マスタ装置がパケットを送信する間隔を送信間隔として計測し、各々の受信間隔と送信間隔との差を算出し、複数回算出した差を用いて分散値を算出し、最も小さい分散値を呈した受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとして選択し、定常状態のパスを介する通信に基づいて時刻補正を行い、定常状態のパスの品質が低下した場合に、定常状態のパスよりも高い品質の他のパスを介して受信されたパケットを用いて、時刻同期のために定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出する。 A time synchronization method according to the present invention is a time synchronization method for synchronizing time with a master device based on packets transmitted by a master device via a plurality of paths with different wireless bands, wherein packets are transmitted via a plurality of paths. receive, measure the reception interval of the received packet for each of the plurality of paths, measure the interval at which the master device transmits the packet as the transmission interval, calculate the difference between each reception interval and the transmission interval, The variance value is calculated using the calculated difference, and the path that forwarded the packet whose reception interval is measured to exhibit the smallest variance value is selected as the steady-state path to be used for time synchronization, and the steady-state , and if the quality of the steady-state path degrades, packets received over other paths with higher quality than the steady-state path are used to correct the time The variance values are calculated with a period that is shorter than the period when the steady-state path is used for synchronization .
本発明による時刻同期プログラムは、マスタ装置が無線帯域が異なる複数のパスを介して送信するパケットに基づいてマスタ装置との時刻同期を行うための時刻同期プログラムであって、コンピュータに、複数のパスを介してパケットを受信する受信処理と、複数のパスの各々について、受信したパケットの受信間隔を計測する受信間隔計測処理と、マスタ装置がパケットを送信する間隔を送信間隔として計測する送信間隔計測処理と、各々の受信間隔と送信間隔との差を算出する時間差計算処理と、複数回算出した差を用いて分散値を算出する分散値計算処理と、最も小さい分散値を呈した受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとしてを選択するパス選択処理と、定常状態のパスを介する通信に基づいて時刻補正を行う時刻補正処理とを実行させ、定常状態のパスの品質が低下した場合に、定常状態のパスよりも高い品質の他のパスを介して受信されたパケットを用いて、時刻同期のために定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出させる。 A time synchronization program according to the present invention is a time synchronization program for synchronizing time with a master device based on packets transmitted by the master device via a plurality of paths with different wireless bands, wherein a computer includes a plurality of paths reception interval measurement processing for measuring the reception interval of received packets for each of a plurality of paths, and transmission interval measurement for measuring the interval at which the master device transmits packets as the transmission interval. processing, time difference calculation processing for calculating the difference between each reception interval and transmission interval, variance value calculation processing for calculating the variance value using the differences calculated a plurality of times , and the reception interval exhibiting the smallest variance value Execute path selection processing to select the path that forwarded the measured packets as a steady-state path to be used for time synchronization, and time correction processing to correct the time based on communication via the steady-state path and if the quality of the steady-state path degrades, the steady-state path is used for time synchronization using packets received over other paths of higher quality than the steady-state path. The variance value is calculated in a cycle shorter than the cycle when the
本発明によれば、無線リソースの消費を節減しつつ、精度の高いクロック同期を実現することができる。 According to the present invention, highly accurate clock synchronization can be achieved while reducing radio resource consumption.
実施形態1.
以下、本発明の第1の実施形態を、図面を参照して説明する。
A first embodiment of the present invention will be described below with reference to the drawings.
本実施形態による時刻同期システムの構成を説明する。図1は、時刻同期システムの一例を示すブロック図である。本実施形態による時刻同期システムは、データ転送装置102(マスタ装置)と、データ転送装置111(スレーブ装置)とを含む。データ転送装置102は、無線通信部103,104,105,106を含む。データ転送装置111は、無線通信部107、108,109,110を含む。なお、図1には、マスタ装置としてのデータ転送装置102に、1台のスレーブ装置としてのデータ伝送装置111が接続された構成が示されているが、データ転送装置102に複数台のスレーブ装置が接続されてもよい。
The configuration of the time synchronization system according to this embodiment will be described. FIG. 1 is a block diagram showing an example of a time synchronization system. The time synchronization system according to this embodiment includes a data transfer device 102 (master device) and a data transfer device 111 (slave device). The
端末101は、データ転送装置102に接続されたコントローラ等である。端末112は、データ転送装置111と接続されたサーボモータ等である。また、データ転送装置102とデータ転送装置111とは、無線帯域が異なる複数のパス(通信経路)を介して接続されている。具体的には、データ転送装置102の無線通信部103は、データ転送装置111の無線通信部107と、2.4GHz帯の第1パスを介して通信を行う。無線通信部104は、5GHz帯(W52)の第2パスを介して無線通信部108と通信を行う。無線通信部105は、5GHz帯(W56)の第3パスを介して無線通信部109と通信を行う。無線通信部106は、1.9GHz帯の第4パスを介して無線通信部110と通信を行う。
A terminal 101 is a controller or the like connected to the
図2は、時刻同期システムにおける接続シーケンスの一例を示すシーケンス図である。図2には、時刻同期システムに、2台のスレーブ装置であるデータ転送装置111,113が含まれる構成が例示されている。
FIG. 2 is a sequence diagram showing an example of a connection sequence in the time synchronization system. FIG. 2 illustrates a configuration in which a time synchronization system includes
マスタ装置(データ転送装置102)とスレーブ装置(データ転送装置111,113)は、最初に時刻同期を確立する。図2では、IEEE1588規格に基づくシーケンスによる時刻同期方法を例示する。例えば、マスタ装置は、複数のスレーブ装置にSyncパケットを送信する。各スレーブ装置は、自身のクロックで受信タイムスタンプを作成する。そして、各スレーブ装置は、受信タイムスタンプを含むDelayRequestパケットをマスタ装置に送信する。マスタ装置は、DelayRequestパケットを受信してタイムスタンプを作成する。そして、マスタ装置は、DelayResponseパケットをスレーブ装置に送信する。マスタ装置とスレーブ装置とは、このような一連の処理を繰り返し時刻同期を行う。時刻同期のための方法として、他の方法が用いられてもよい。
The master device (data transfer device 102) and slave devices (
マスタ装置(データ転送装置102)のクロックと複数のスレーブ装置(データ転送装置111,113)のクロックとの時間同期が確立した後、マスタ装置は、複数のスレーブ装置にSyncパケットを送信間隔[T]([T]は例えば1秒)でブロードキャストまたはマルチキャストで送信する。
After establishing time synchronization between the clock of the master device (data transfer device 102) and the clocks of the plurality of slave devices (
図3は、データ転送装置301の構成例を示すブロック図である。図3に示す例では、データ転送装置301は、送信データ処理部302と、発振器306と、制御部307と、時計309と、受信データ処理部310と、第1無線通信部から第n無線通信部を有する無線部314とを含む。送信データ処理部302は、Syncパケット生成部303と、バッファ304と、送信間隔タイマ305とを含む。制御部307は、クロック補正部308を含む。受信データ処理部310は、Syncパケット処理部311と、バッファ312と、受信解析フィルタ313とを含む。データ転送装置301は、図1に示されたデータ転送装置102,111の具体的な構成例に相当する。
FIG. 3 is a block diagram showing a configuration example of the
送信データ処理部302は、時刻同期のためにSyncパケットを送信する。また、データ転送装置301が、図1に示されたデータ転送装置102として使用される場合、端末101から入力されたデータをデータパケットとして送信する。
The transmission
送信間隔タイマ305は、発振器306、時計309から時刻情報を得て、送信間隔[T]をカウントする。
Syncパケット生成部303は、パケットを生成して無線部314へ渡す。
Sync
無線部314において、複数の無線通信部は、対向するスレーブ装置に、Syncパケットをブロードキャストまたはマルチキャストで送信する。無線部314の無線通信部は、対応する周波数のパスでのプロトコルや無線通信機能を備える。なお、図3における複数の無線通信部は、図1における無線通信部103~106または無線通信部107~110に相当する。
In
制御部307は、図1に示された端末101からデータが入力されたときに、冗長符号化のエンコードを実施し、送信データ処理部302のバッファ304にデータ(符号化データ)を格納する。
When data is input from
バッファ304において、格納された符号化データには、時計309から得られた時刻情報に基づくタイムスタンプが付加される。符号化データは、バッファ304から無線部314に出力される。無線部314は、符号化データをデータパケットとして無線伝送路に送出する。
The encoded data stored in the
無線部314において、符号化データは、複数の無線通信部のいずれかに入力される。符号化データは、例えばラウンドロビン方式でいずれかの無線通信部に順番に渡される。
In
受信データ処理部310は、Syncパケットの受信を契機として時刻同期の制御を行う。また、データ転送装置301が、図1に示されたデータ転送装置111として使用される場合、受信データ処理部310は、データパケットを受信する。
The reception
無線部314が、マスタ装置からのパケットを受信すると、パケットを受信データ処理部310の受信解析フィルタ313に出力する。
When
受信解析フィルタ313は、時計309より時刻情報を得る。すなわち、受信解析フィルタ313は、パケットの受信時刻を取得する。また、受信解析フィルタ313は、パケットがSyncパケットかデータパケットかを判別する。パケットがSyncパケットである場合には、受信解析フィルタ313は、受信時刻情報と共にSyncパケットをSyncパケット処理部311に渡す。パケットがデータパケットである場合には、受信解析フィルタ313は、制御部307にデータパケットを渡す。
The
Syncパケット処理部311は、受信解析フィルタ313から受け取ったSyncパケットに基づいて時刻同期処理を行う。
The Sync
制御部307は、データパケットを受信した場合には、符号化されたデータのデコードを行い、データをバッファ312に格納する。Syncパケットを受信した場合には、クロック補正部308は、Syncパケット処理部311で算出された補正値に従って発振器306を補正する。
When receiving a data packet, the
デコードされたデータがバッファ312に格納される際に、デコード時のタイムスタンプ情報が付与される。マスタ装置の送信データ処理部302が図1に示された端末101からデータを受信した間隔を保って、スレーブ装置の受信データ処理部310が図1に示された端末112へデータを出力する。そのために、制御部307は、マスタ装置でエンコード前にデータパケットに付与されたタイムスタンプ情報から次にエンコードされるパケットとのデータ間隔を確認する。受信データ処理部310は、図1に示された端末112へデータを出力するタイミングを制御する。
When the decoded data is stored in the
送信データ処理部302(バッファ304を除く。)、制御部307、および受信データ処理部310(バッファ312を除く。)は、プログラム(時刻同期プログラム)に従って動作するコンピュータのCPUによって実現される。
The transmission data processing unit 302 (excluding the buffer 304), the
例えば、プログラムは、データ転送装置301の記憶部(図示せず)に記憶され、CPUは、プログラムに従って、送信データ処理部302、制御部307、および受信データ処理部310として動作する。
For example, a program is stored in a storage unit (not shown) of
図4は、受信データ処理部310におけるSyncパケット処理部311の構成例を示すブロック図である。Syncパケット処理部311は、伝送揺らぎ吸収部401と、全パス状態判断部402と、伝送揺らぎ検出部403と、時間差検出部404と、送信間隔カウント部405と、受信間隔計測部406とを含む。
FIG. 4 is a block diagram showing a configuration example of the Sync
受信間隔計測部406は、マスタ装置からパケットを受信した際に受信解析フィルタ313が付与したタイムスタンプ情報を元に、ひとつ前に受信したパケットの受信時刻からの受信間隔を計測する。
The reception
送信間隔カウント部405は、スレーブ装置の時計309が計時した時刻を用いて所定間隔をカウントする。具体的には、所定間隔は、マスタ装置で規定されている送信間隔[T]と同じ間隔[T’]である。以下、間隔[T’]を送信間隔という。
A transmission
時間差検出部404は、受信間隔計測部406が計測した受信間隔と、送信間隔カウント部405がカウント(計測)した送信間隔[T’]との時間差を検出する。
The time
伝送揺らぎ検出部403は、定常状態において、あらかじめ定められた回数分の時間差検出部404が検出した時間差の分散値を算出する。伝送揺らぎ検出部403は、算出した分散値に基づいてパスの伝送遅延の揺らぎの大きさを検出する。
Transmission
全パス状態判断部402は、複数のパスの伝送遅延の揺らぎの状態を監視する。全パス状態判断部402は、非定常状態において、伝送遅延の揺らぎを検出する。全パス状態判断部402は、全てのパスの状態を比較し、全てのパスの中から最も安定したパスを選択する。なお、定常状態は、伝送遅延の揺らぎは安定していると判断されている状態である。非定常状態では、伝送遅延の揺らぎが大きくなったと判断されている。
The all-paths
伝送揺らぎ吸収部401は、伝送遅延の揺らぎの影響を排除して時計の補正値を算出する。伝送揺らぎ吸収部401は、例えば、全パス状態判断部402が選択したパスを対象として、あらかじめ定められた回数分の時間差検出部404が検出した時間差の平均値を伝送揺らぎ検出部403で算出し、平均値を時計の補正値とする。算出された補正値に従って、クロック補正部308が、発振器306を補正する。
図5は、Syncパケット処理部311における全パス状態判断部402の構成例を示すブロック図である。図5には、3つのパスが存在する場合が例示されている。全パス状態判断部402は、第1パスに関する分散算出部5011および状態検出部5021を含む。また、全パス状態判断部402は、第2パスに関する分散算出部5012および状態検出部5022を含む。また、全パス状態判断部402は、第3パスに関する分散算出部5013および状態検出部5023を含む。全パス状態判断部402は、さらに、パス選択部503を含む。全パス状態判断部402は、データ転送装置301に搭載された複数の無線通信部における各パスの伝送状態を判断する。
FIG. 5 is a block diagram showing a configuration example of the all-paths
図5には、第1パスに関する第1受信解析フィルタ3131、第2パスに関する第2受信解析フィルタ3132、および第3パスに関する第3受信解析フィルタ3133も示されている。それらは、図4に示された受信解析フィルタ313に含まれる。
Also shown in FIG. 5 are a first receive
図5には、第1パスに関する第1受信間隔計測部4061、第2パスに関する第2受信間隔計測部4062、および第3パスに関する第3受信間隔計測部4063も示されている。それらは、図4に示された受信間隔計測部406に含まれる。
FIG. 5 also shows a first reception
図5には、第1パスに関する第1時間差検出部4041、第2パスに関する第2時間差検出部4042、および第3パスに関する第3時間差検出部4043も示されている。それらは、図4に示された時間差検出部404に含まれている。
FIG. 5 also shows a first
分散算出部5011,5012,5013は、対応する時間差検出部4041,4042,4043が検出した時間差をサンプルとして、あらかじめ定めた定常状態における間隔よりも短い間隔(例えば1分)におけるサンプルy(例えば60回分)の分散値を算出する。分散算出部5011,5012,5013が算出した分散値は、定常状態における周期よりも短い周期における伝送遅延の揺らぎの大きさに相当する。
The
状態検出部5021,5022,5023は、対応する時間差検出部である第1時間差検出部4041、第2時間差検出部4042、または第3時間差検出部4043が検出したデータと以前に検出されたデータとに基づいて変動を監視する。具体的には、状態検出部5021,5022,5023は、伝送遅延の変動量を算出する。また、状態検出部5021,5022,5023は、分散算出部5011,5012,5013が算出した分散値を入力する。状態検出部5021,5022,5023は、伝送遅延の変動量と分散値とをパス選択部503に出力する。
The
パス選択部503は、第1パス~第3パスのそれぞれに対応する状態検出部5021,5022,5023から通知された伝送遅延の変動量と分散値とに基づいて、伝送遅延が相対的に小さく、かつ、伝送遅延の揺らぎの変動が最も小さい安定したパスを、時刻同期に適用するための一時的なパスすなわち非定常状態におけるパス(一時避難パスともいう。)として選択する。
The
次に、図6および図7のフローチャートを参照して第1の実施形態の時刻同期システムの動作を説明する。一例として、図5に例示されたように、第1パス、第2パスおよび第3パスがあるとする。また、一例として、定常状態のパス(定常状態で使用されるパス)を第1パスとする。 Next, the operation of the time synchronization system of the first embodiment will be described with reference to the flow charts of FIGS. 6 and 7. FIG. As an example, suppose there are a first pass, a second pass and a third pass, as illustrated in FIG. Also, as an example, a path in a steady state (a path used in a steady state) is set as the first pass.
スレーブ装置がマスタ装置からSyncパケットを受信すると(ステップS601)、以下の処理が実行される。 When the slave device receives a Sync packet from the master device (step S601), the following processes are executed.
Syncパケットは、無線部314を介して受信解析フィルタ313(この例では、第1受信解析フィルタ3131、第2受信解析フィルタ3132、および第3受信解析フィルタ3133の各々)に入力される。受信解析フィルタ313は、Syncパケットに、時計309に基づくタイムスタンプ情報を付与する(ステップS604)。
The Sync packet is input to reception analysis filter 313 (each of first
送信間隔カウント部405は、時計309を用いてカウント処理を行う(ステップS602)。カウント値が送信間隔[T’]に達したら、送信間隔カウント部405は、時間差検出部404に、送信間隔[T’]がカウントされたことを通知する(ステップS603)。送信間隔[T’]がカウントされたことは、送信間隔[T’]が計測されたことを意味する。
The transmission
受信間隔計測部406(この例では、第1受信間隔計測部4061、第2受信間隔計測部4062、および第3受信間隔計測部4063の各々)は、受信されたSyncパケットに付与されたタイムスタンプ情報で示される時刻([n])を受信解析フィルタ313から得て、直前に受信されたSyncパケットの受信時刻([n-1])との時間差を計測し、時間差を受信間隔とする(ステップS605)。そして、受信データ処理部310は、時間差検出部404(この例では、第1時間差検出部4041、第2時間差検出部4042、および第3時間差検出部404の各々)に受信間隔を通知する。
The reception interval measurement unit 406 (in this example, each of the first reception
マスタ装置でカウントされた送信間隔[T]と、スレーブ装置でカウントされた送信間隔[T’]とは、機器ごとにクロックが異なるため、わずかなカウントのずれが生じる。時間差検出部404は、送信間隔カウント部405から通知された送信間隔[T’]と、受信間隔計測部406から通知された受信間隔との時間差を、各々のパスについて算出する(ステップS606)。時間差は、伝送遅延に相当する。
The transmission interval [T] counted by the master device and the transmission interval [T'] counted by the slave device have different clocks, so there is a slight difference in count. The time
後述するステップS621の処理で定常状態のパスと異なるパスが選択された場合には、ステップS608,S609の処理が実行される状態に移行する。なお、ステップS621の処理で一旦定常状態のパスが定められた後に、ステップS621の処理で、そのパスとは異なるパスが選択された場合に、異なるパスが選択されたことになる。また、異なるパスが選択されたときには、そのパスの品質に比べて、定常状態のパスの品質が低下したことになる。 If a path different from the steady-state path is selected in the processing of step S621, which will be described later, the processing of steps S608 and S609 is executed. Note that if a path different from the steady-state path is selected in the process of step S621 after the path in the steady state is once determined in the process of step S621, the different path is selected. Also, when a different path is selected, the quality of the steady-state path has degraded relative to the quality of that path.
異なるパスが選択されなかった場合には、伝送揺らぎ検出部403は、あらかじめ定めた時間(例えば、10分間)において時間差検出部404が検出したサンプル数x(例えば、600回分)の時間差から各々のパスの分散値を算出する。伝送揺らぎ検出部403は、分散値を、各パスにおける伝送遅延の揺らぎの大きさとする(ステップS616,S617)。
If a different path is not selected, the
伝送揺らぎ検出部403は、それぞれのパスについて検出された分散値(伝送遅延の揺らぎの大きさ)を比較し、最も揺らぎが小さいパスを選択して伝送揺らぎ吸収部401に通知する(ステップS618)。
The transmission
伝送揺らぎ吸収部401は、通知を受けたパスについてのサンプル数x(例えば、600回分)の時間差の平均値を算出する(ステップS619)。クロック補正部308は、時計309を、伝送揺らぎ吸収部401が算出した平均値(補正値)分補正する(ステップS620)。なお、具体的には、クロック補正部308は、例えば、発振器306の発振周波数を補正する。
The
上記の一連の動作(ステップS602~S606,S616~S620の処理)が所定回数実行されると(ステップS621)、品質が安定しているパスが定まる。なお、品質が安定しているパスは、ステップS618の処理で繰り返し選択されたパス(例えば、所定回選択されたパス)である。また、品質が安定しているパスは、伝送遅延の揺らぎの大きさが、あらかじめ定められている値(しきい値)以下になっているパス、または、伝送遅延の揺らぎが最も小さいパスである。伝送遅延の揺らぎの大きさが、あらかじめ定められているしきい値よりも大きくなるパスを品質低下のパス(品質が低下しているパス)とする。そして、制御部307は、品質が安定しているパスを選択して、そのパスを定常状態のパスとして記憶する(ステップS622)。この例では、第1パスを示すデータが記憶される。
When the above series of operations (processes of steps S602 to S606 and S616 to S620) are performed a predetermined number of times (step S621), a path with stable quality is determined. A path with stable quality is a path repeatedly selected in the process of step S618 (for example, a path selected a predetermined number of times). A path with stable quality is a path whose transmission delay fluctuation is equal to or less than a predetermined value (threshold value) or a path with the smallest transmission delay fluctuation. . A path whose transmission delay fluctuation is greater than a predetermined threshold value is defined as a path with degraded quality (a path with degraded quality). Then, the
次に、定常状態のパスとは異なるパスが選択された場合の処理を説明する(ステップS607の処理で「Y」の場合)。 Next, the processing when a path different from the steady state path is selected will be described (if "Y" in the processing of step S607).
制御部307は、定常状態のパスの品質が低下したと判断した場合に(ステップS607)、他のパスを一時的に使用するパス(一時避難パス)とする。そして、制御部307は、短い周期で各パスの状態を検出するようにSyncパケット処理部311に通知する。
When the
なお、制御部307は、例えば、ステップS621の処理で、定常状態のパスとは異なるパスが選択された場合に、定常状態のパスの品質が低下したと判断する。
Note that the
Syncパケット処理部311が制御部307から通知を受けると、全パス状態判断部402における状態検出部(図5に示された例では、状態検出部5021,5022,5023の各々)は、時間差検出部404(図5に示された例では、第1時間差検出部4041、第2時間差検出部4042、および第3時間差検出部4043の各々)から取得した伝送遅延の揺らぎを示す時間差と、以前に取得した時間差とから、伝送遅延の変動量を算出する。
When the sync
分散算出部(図5に示された例では、分散算出部5011,5012,5013の各々)は、対応する時間差検出部404(図5に示された例では、時間差検出部4041,4042,4043)が検出した時間差をサンプルとして、あらかじめ定めた定常状態における間隔よりも短い間隔(例えば1分)におけるサンプルy(例えば60回分)の分散値を算出する。状態検出部(図5に示された例では、状態検出部5021,5022,5023)は、時間差検出部404(図5に示された例では、第1時間差検出部4041、第2時間差検出部4042、第3時間差検出部4043)が検出した時間差と以前に検出された時間差とに基づいて、伝送遅延の変動量を算出する(ステップS608)。
Variance calculators (
また、状態検出部5021,5022,5023は、分散算出部5011,5012,5013が算出した分散値を入力する。状態検出部5021,5022,5023は、伝送遅延の変動量と分散値とをパス選択部503に出力する。
The
パス選択部503は、状態検出部(図5に示された例では、状態検出部5021,5022,5023の各々)から入力された各パスの状態を相対的に比較して一時避難パスを選択する(ステップS610,S611)。
The
例えば、パス選択部503は、状態検出部5021,5022,5023から入力された各々のパスについての伝送遅延の変動量を比較するとともに各々のパスについての分散値の推移を比較する。そして、パス選択部503は、伝送遅延が急激に変化していないパスであって、伝送遅延の変動が最も小さいパスを選択し、選択したパスを一時避難パスとする。なお、分散値の推移は、複数回算出された分散値に基づいて判断される。
For example, the
パス選択部503は、パスを切替える前、すなわち、定常パスの品質が低下する前のあらかじめ定められた回数分の時間差の平均値(補正値)を算出する。クロック補正部308は、時計309を補正値で補正する。クロック補正部308は、時計309を補正するために、例えば、発振器306の発振周波数を補正する。そして、制御部307は、使用するパスを、定常状態のパス(この例では、第1パス)から、一時避難パスに切替える(ステップS613,S614)。
The
定常状態で使用されていたパス(この例では、第1パス)の品質が安定し、ステップS611の処理で再度選択された場合には、Syncパケット処理部311は、制御部307に、定常状態のパスが安定したことを通知する。制御部307は、短い周期のパス選択動作(ステップS608~S614の処理)を終了し、定常状態時の動作に戻る(ステップS615)。
When the quality of the path used in the steady state (the first path in this example) stabilizes and is reselected in the process of step S611, the Sync
図8は、時刻同期に使用されるパスの選択の例を示す説明図である。 FIG. 8 is an explanatory diagram showing an example of selection of paths used for time synchronization.
図8において、横軸は、経過時間を示す。縦軸は、遅延の大きさを示す。図8に示す例では、最初の10秒間において第1パスが用いられ、次の10秒間において第3パスが用いられ、20秒経過時に、使用されるパスが第1パスに戻る。 In FIG. 8, the horizontal axis indicates elapsed time. The vertical axis indicates the magnitude of delay. In the example shown in FIG. 8, the first pass is used for the first 10 seconds, the third pass is used for the next 10 seconds, and the used path returns to the first pass after 20 seconds.
以上に説明したように、第1の実施形態の時刻同期システムにおいて、スレーブ装置は、無線帯域が異なる複数のパスの伝送遅延を比較する。スレーブ装置は、伝送遅延の揺らぎが最も安定しているパスを介する通信に基づいて時刻同期を行う。そのため、第1の実施形態の時刻同期システムは、単独の無線帯域を使用する時刻同期に比べて、無線環境の変動があっても、精度よく時刻同期を行うことができる。 As described above, in the time synchronization system of the first embodiment, the slave device compares the transmission delays of multiple paths with different radio bands. The slave device performs time synchronization based on communication via the path with the most stable transmission delay fluctuation. Therefore, the time synchronization system of the first embodiment can perform time synchronization with high accuracy even if there are fluctuations in the wireless environment, compared to time synchronization using a single wireless band.
また、第1の実施形態の時刻同期システムにおいて、スレーブ装置は、使用しているパス(定常状態のパス)で品質の低下が検出された場合に、定常状態での間隔よりも短い間隔で伝送遅延の揺らぎを検出し、検出した揺らぎに基づいて時刻同期を行う。従って、定常状態のパスにおいて品質が低下しても、精度よく時刻同期を行うことができる。 Further, in the time synchronization system of the first embodiment, when a deterioration in quality is detected in the path being used (steady-state path), the slave device transmits at an interval shorter than the steady-state interval. Delay fluctuations are detected, and time synchronization is performed based on the detected fluctuations. Therefore, even if the quality of paths in the steady state is degraded, accurate time synchronization can be performed.
なお、本実施形態では、データのばらつきを判別する値として分散値を使用していたが標準偏差を使用してもよい。 In addition, in this embodiment, the variance value is used as the value for discriminating the variation of the data, but the standard deviation may be used.
実施形態2.
第2の実施形態では、スレーブ装置は、全てのパスについて品質の劣化を検出すると、マスタ装置の時刻同期制御に関して障害が発生したと判定する。
In the second embodiment, when the slave device detects quality deterioration for all paths, it determines that a failure has occurred in the time synchronization control of the master device.
図9は、第2の実施形態のSyncパケット処理部311における全パス状態判断部402の構成例を示すブロック図である。Syncパケット処理部311以外のデータ転送装置(特に、スレーブ装置)の構成は、第1の実施形態における構成と同じである。
FIG. 9 is a block diagram showing a configuration example of the all-paths
全パス状態判断部402は、マスタ異常検出部504を含む。マスタ異常検出部504は、各パスにおける状態検出部(図9に示された例では、状態検出部5021,5022,5023の各々)の検出データ(伝送遅延の変動量および分散値)を確認する。マスタ異常検出部504は、全てのパスについて品質の低下が検出した場合に、マスタ装置に障害が発生したと判断する。全パス状態判断部402におけるその他の構成は、第1の実施形態における構成と同じである。
The all-paths
図10および図11は、第2の実施形態の時刻同期システムの動作を示すフローチャートである。なお、ステップS601~ステップS622の動作は、第1の実施形態における動作と同様である。 10 and 11 are flowcharts showing the operation of the time synchronization system of the second embodiment. The operations of steps S601 to S622 are the same as those in the first embodiment.
ステップS701で、マスタ異常検出部504は、全パスにおける状態検出部5021,5022,5023の検出データを確認する。マスタ異常検出部504は、全パスについて品質の低下を確認した場合には、マスタ装置において時刻同期に関する障害が発生したと判断する。
In step S701, the master
マスタ異常検出部504がマスタ装置において時刻同期に関する障害が発生したと判断した場合には、クロックの補正(ステップS612,S613の処理)は実行されない。
When the master
以上に説明したように、第2の実施形態の時刻同期システムにおいて、マスタ異常検出部504は、いずれのパスを用いても精度よく時刻同期できないと判断した場合、すなわち、全パスについて品質の低下を確認した場合には、時刻同期の制御を行うことなく、マスタ装置に障害が発生したとする。
As described above, in the time synchronization system of the second embodiment, when the master
なお、スレーブ装置において表示手段や音出力手段が設けられている場合には、それらを用いて、マスタ装置において障害が発生したと判断されたことをユーザに報知してもよい。 If the slave device is provided with display means or sound output means, it may be used to inform the user that it has been determined that a failure has occurred in the master device.
次に、本発明の概要を説明する。図12は、本発明によるスレーブ装置の主要部を示すブロック図である。スレーブ装置800は、マスタ装置が無線帯域が異なる複数のパスを介して送信するパケットに基づいてマスタ装置との時刻同期を行うスレーブ装置800であって、各々がいずれかのパスを介してパケットを受信する複数の受信手段801(例えば、無線部314における第1~第n無線通信部で実現される。)と、複数の受信手段の各々が受信したパケットの受信間隔を計測する受信間隔計測手段802(例えば、受信間隔計測部406で実現される。)と、マスタ装置がパケットを送信する間隔を自身のクロックを用いて送信間隔として計測する送信間隔計測手段803(例えば、送信間隔カウント部405で実現される。)と、各々の受信間隔と送信間隔との差を算出する時間差計算手段804(例えば、時間差検出部404で実現される。)と、時間差計算手段804が時間経過により送信間隔毎に算出した一定数の差から分散をとり標準偏差の値を算出する標準偏差計算手段805(例えば、伝送揺らぎ吸収部401および伝送揺らぎ検出部403で実現される。)と、各々のパスで標準偏差計算手段805が算出した値のうち最も小さい値を選択する比較選択手段806(例えば、パス選択部503で実現される。)と、選択した値を用いて時刻補正を行う補正手段807(例えば、クロック補正部308)とを備える。
Next, an outline of the present invention will be described. FIG. 12 is a block diagram showing the main parts of the slave device according to the invention. The
そのような構成により、無線リソースの消費を節減しつつ、精度の高いクロック同期を実現することができる。 With such a configuration, highly accurate clock synchronization can be achieved while reducing radio resource consumption.
スレーブ装置は、時間差計算手段804が複数回算出した差を用いて分散値を算出する分散算出手段(例えば、伝送揺らぎ検出部403、分散算出部5011,5012,5013)と、最も小さい分散値を呈した受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとして選択するパス選択手段(例えば、制御部307、パス選択部503)とを備えていてもよい。
The slave device has variance calculation means (for example, transmission
なお、定常状態では、伝送揺らぎ検出部403が分散算出手段として機能し、制御部307が、パス選択手段として機能する。非定常状態では、分散算出部5011,5012,5013が分散算出手段として機能し、パス選択部503が、パス選択手段として機能する。
In a steady state, the transmission
図13は、本発明による時刻同期システムの主要部を示すブロック図である。時刻同期システム1000は、スレーブ装置800と、マスタ装置900とが無線帯域が異なる複数のパスを介して接続され、マスタ装置900は、タイムスタンプを含むパケットを生成するパケット生成手段901(例えば、Syncパケット生成部303)と、パケットを送信する送信手段902(例えば、送信データ処理部302)とを備える。
FIG. 13 is a block diagram showing main parts of the time synchronization system according to the present invention. In the
以上、本実施形態および実施例を参照して本願発明を説明したが、本願発明は上記実施形態および実施例に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。 Although the present invention has been described with reference to the embodiments and examples, the present invention is not limited to the above embodiments and examples. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.
この出願は、2019年9月9日に出願された日本特許出願2019-163599を基礎とする優先権を主張し、その開示の全てをここに取り込む。 This application claims priority based on Japanese Patent Application No. 2019-163599 filed on September 9, 2019, and incorporates all of its disclosure herein.
101 端末
102 データ転送装置(マスタ装置)
103~110 無線通信部
111 データ転送装置(スレーブ装置)
112 端末
113 データ転送装置(スレーブ装置)
301 データ転送装置
302 送信データ処理部
303 Syncパケット生成部
304 バッファ
305 送信間隔タイマ
306 発振器
307 制御部
308 クロック補正部
309 時計
310 受信データ処理部
311 Syncパケット処理部
312 バッファ
313 受信解析フィルタ
314 無線部
401 伝送揺らぎ吸収部
402 全パス状態判断部
403 伝送揺らぎ検出部
404 時間差検出部
405 送信間隔カウント部
406 受信間隔計測部
5011,5012,5013 分散算出部
5021,5022,5023 状態検出部
503 パス選択部
504 マスタ異常検出部
800 スレーブ装置
801 受信手段
802 受信間隔計測手段
803 送信間隔計測手段
804 時間差計算手段
805 標準偏差計算手段
806 比較選択手段
807 補正手段
900 マスタ装置
901 パケット生成手段
902 送信手段
1000 時刻同期システム101 terminal 102 data transfer device (master device)
103 to 110
112 terminal 113 data transfer device (slave device)
301
Claims (8)
各々がいずれかのパスを介してパケットを受信する複数の受信手段と、
前記複数の受信手段の各々が受信したパケットの受信間隔を計測する受信間隔計測手段と、
前記マスタ装置がパケットを送信する間隔を自身のクロックを用いて送信間隔として計測する送信間隔計測手段と、
各々の前記受信間隔と前記送信間隔との差を算出する時間差計算手段と、
前記時間差計算手段が複数回算出した差を用いて分散値を算出する分散算出手段と、
最も小さい分散値を呈した前記受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとして選択するパス選択手段と、
前記定常状態のパスを介する通信に基づいて時刻補正を行う補正手段とを備え、
前記定常状態のパスの品質が低下した場合に、前記分散算出手段は、前記定常状態のパスよりも高い品質の他のパスを介して受信を行う前記受信手段が受信したパケットを用いて、時刻同期のために前記定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出する
ことを特徴とするスレーブ装置。 A slave device that performs time synchronization with the master device based on packets transmitted by the master device via a plurality of paths with different wireless bands,
a plurality of receiving means each receiving a packet via either path;
a receiving interval measuring means for measuring a receiving interval of packets received by each of the plurality of receiving means;
transmission interval measuring means for measuring intervals at which the master device transmits packets as transmission intervals using its own clock;
time difference calculation means for calculating the difference between each of the reception intervals and the transmission intervals;
Variance calculation means for calculating a variance value using the differences calculated multiple times by the time difference calculation means ;
path selection means for selecting a path through which the packet having the smallest variance value and the reception interval of which is measured is selected as a steady-state path to be used for time synchronization ;
a correcting means for correcting the time based on communication via the steady-state path ,
When the quality of the path in the steady state is degraded, the variance calculation means uses the packet received by the receiving means for receiving via another path with higher quality than the path in the steady state to calculate the time Calculating variance values with a period shorter than the period when the steady-state path is used for synchronization
A slave device characterized by:
請求項1記載のスレーブ装置。 2. The slave device according to claim 1, wherein said correction means performs time correction using an average value of differences calculated a plurality of times by said time difference calculation means as a correction value.
請求項1または請求項2記載のスレーブ装置。 3. The slave device according to claim 1 , further comprising master failure detection means for determining that a failure has occurred in said master device when the quality of all paths has deteriorated.
前記マスタ装置は、
タイムスタンプを含むパケットを生成するパケット生成手段と、
前記パケットを送信する送信手段とを備える
ことを特徴とする時刻同期システム。 The slave device according to any one of claims 1 to 3 and the master device are connected via a plurality of paths with different radio bands,
The master device
packet generating means for generating packets including timestamps;
and transmission means for transmitting the packet.
前記複数のパスを介してパケットを受信し、
前記複数のパスの各々について、受信したパケットの受信間隔を計測し、
前記マスタ装置がパケットを送信する間隔を送信間隔として計測し、
各々の前記受信間隔と前記送信間隔との差を算出し、
複数回算出した前記差を用いて分散値を算出し、
最も小さい分散値を呈した前記受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとして選択し、
前記定常状態のパスを介する通信に基づいて時刻補正を行い、
前記定常状態のパスの品質が低下した場合に、前記定常状態のパスよりも高い品質の他のパスを介して受信されたパケットを用いて、時刻同期のために前記定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出する
ことを特徴とする時刻同期方法。 A time synchronization method for synchronizing time with a master device based on packets transmitted by the master device via a plurality of paths with different wireless bands,
receiving packets over the plurality of paths;
measuring a reception interval of received packets for each of the plurality of paths;
measuring an interval at which the master device transmits packets as a transmission interval;
calculating the difference between each said reception interval and said transmission interval;
Calculate a variance value using the difference calculated multiple times ,
Selecting the path that forwarded the packet with the measured reception interval exhibiting the smallest variance value as the steady-state path used for time synchronization ,
performing time correction based on communication over the steady-state path ;
When the quality of the steady-state path degrades, the steady-state path is used for time synchronization using packets received over other paths of higher quality than the steady-state path. Calculate the variance value with a period shorter than the period when
A time synchronization method characterized by:
請求項5記載の時刻同期方法。 6. The time synchronization method according to claim 5 , wherein time correction is performed using an average value of differences between said reception intervals and said transmission intervals calculated a plurality of times as a correction value.
コンピュータに、
前記複数のパスを介してパケットを受信する受信処理と、
前記複数のパスの各々について、受信したパケットの受信間隔を計測する受信間隔計測処理と、
前記マスタ装置がパケットを送信する間隔を送信間隔として計測する送信間隔計測処理と、
各々の前記受信間隔と前記送信間隔との差を算出する時間差計算処理と、
複数回算出した前記差を用いて分散値を算出する分散値計算処理と、
最も小さい分散値を呈した前記受信間隔が計測されたパケットを転送したパスを、時刻同期のために使用する定常状態のパスとしてを選択するパス選択処理と、
前記定常状態のパスを介する通信に基づいて時刻補正を行う時刻補正処理とを実行させ、
前記定常状態のパスの品質が低下した場合に、前記定常状態のパスよりも高い品質の他のパスを介して受信されたパケットを用いて、時刻同期のために前記定常状態のパスが用いられているときの周期よりも短い周期で分散値を算出させる
ための時刻同期プログラム。 A time synchronization program for performing time synchronization with a master device based on packets transmitted by the master device via a plurality of paths with different wireless bands,
to the computer,
a reception process for receiving packets via the plurality of paths;
a reception interval measurement process for measuring a reception interval of received packets for each of the plurality of paths;
a transmission interval measurement process for measuring an interval at which the master device transmits packets as a transmission interval;
a time difference calculation process for calculating the difference between each of the reception intervals and the transmission intervals;
Variance value calculation processing for calculating a variance value using the difference calculated multiple times ;
A path selection process for selecting the path that forwarded the packet with the smallest variance value and the reception interval of which is measured as a steady-state path to be used for time synchronization ;
executing a time correction process for correcting the time based on the communication via the steady-state path ;
When the quality of the steady-state path degrades, the steady-state path is used for time synchronization using packets received over other paths of higher quality than the steady-state path. Calculate the variance value with a period shorter than the period when
A time synchronization program for
複数回算出された前記受信間隔と前記送信間隔との差の平均値を補正値として時刻補正を行わせる
請求項7記載の時刻同期プログラム。 to the computer,
8. The time synchronization program according to claim 7 , wherein time correction is performed using an average value of differences between said reception intervals and said transmission intervals calculated a plurality of times as a correction value.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019163599 | 2019-09-09 | ||
JP2019163599 | 2019-09-09 | ||
PCT/JP2020/033393 WO2021049406A1 (en) | 2019-09-09 | 2020-09-03 | Slave device, time synchronization system, time synchronization method, and time synchronization program |
Publications (3)
Publication Number | Publication Date |
---|---|
JPWO2021049406A1 JPWO2021049406A1 (en) | 2021-03-18 |
JPWO2021049406A5 JPWO2021049406A5 (en) | 2022-04-27 |
JP7193004B2 true JP7193004B2 (en) | 2022-12-20 |
Family
ID=74866617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021545495A Active JP7193004B2 (en) | 2019-09-09 | 2020-09-03 | Slave device, time synchronization system, time synchronization method, and time synchronization program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP7193004B2 (en) |
WO (1) | WO2021049406A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113225348B (en) * | 2021-05-19 | 2023-04-07 | 中国建设银行股份有限公司 | Request anti-replay verification method and device |
CN114827576A (en) * | 2022-04-20 | 2022-07-29 | 深圳看到科技有限公司 | Multi-camera synchronous correction method, device, equipment and storage medium |
CN115442244B (en) * | 2022-09-02 | 2024-01-19 | 南方电网科学研究院有限责任公司 | Method and device for calibrating communication interval in power real-time simulation and related equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012023654A (en) | 2010-07-16 | 2012-02-02 | Kddi Corp | Time synchronization device via network |
JP2012209791A (en) | 2011-03-30 | 2012-10-25 | Hitachi Ltd | Network node, time synchronization method, and network system |
-
2020
- 2020-09-03 WO PCT/JP2020/033393 patent/WO2021049406A1/en active Application Filing
- 2020-09-03 JP JP2021545495A patent/JP7193004B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012023654A (en) | 2010-07-16 | 2012-02-02 | Kddi Corp | Time synchronization device via network |
JP2012209791A (en) | 2011-03-30 | 2012-10-25 | Hitachi Ltd | Network node, time synchronization method, and network system |
Also Published As
Publication number | Publication date |
---|---|
JPWO2021049406A1 (en) | 2021-03-18 |
WO2021049406A1 (en) | 2021-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7193004B2 (en) | Slave device, time synchronization system, time synchronization method, and time synchronization program | |
US8824511B2 (en) | Clock synchronization system, node, clock synchronization method, and program | |
US10797686B1 (en) | Phase predictor and associated method of use | |
US8532241B2 (en) | Time synchronization apparatus based on parallel processing | |
Gundall et al. | Integration of 5G with TSN as prerequisite for a highly flexible future industrial automation: Time synchronization based on IEEE 802.1 AS | |
US7590151B2 (en) | Method and apparatus for aligning time references when separated by an unreliable data packet network | |
JP5561426B2 (en) | Synchronization system, synchronization method, first synchronization device, second synchronization device, and computer program | |
CN103828449A (en) | Method and apparatus for time synchronization in wireless networks | |
KR101685856B1 (en) | Correction parameter calculation device and system, correction parameter calculation method, and computer program | |
US20140241381A1 (en) | Time control device, time control method, and program | |
JP2013083451A (en) | Time control device, time control method, and program | |
US20140241479A1 (en) | Frequency difference detection device, frequency difference detection method, and program | |
CN113574813A (en) | Network entity and method for a wireless network system for determining time information | |
EP2568653A1 (en) | Transmitting device, receiving device, communication system, transmission method, reception method, and program | |
JP5298592B2 (en) | Time stamp packet communication system, time stamp packet transmitter, time stamp packet receiver | |
WO2014118984A1 (en) | Signal processing apparatus | |
JP5391964B2 (en) | Clock synchronization method and packet communication system | |
JP2014235013A (en) | Time synchronization device, system, and method | |
JP2016152487A (en) | Time synchronization method and time synchronization device | |
JP7409786B2 (en) | Transmission device and transmission device control method | |
JP2012249040A (en) | Network connection reception side device and time synchronization system | |
KR101642441B1 (en) | Filtering method and apparatus for precision time protocol | |
JP2024011842A (en) | Information communication system and information communication device | |
JP2023045230A (en) | Information communication system and information communication device | |
JP2007129382A (en) | Method and device for measuring delay time difference |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220214 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220214 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220830 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20221027 |
|
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: 20221108 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221121 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7193004 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |