[go: up one dir, main page]

JP6969150B2 - Time synchronization device, time synchronization method and time synchronization program - Google Patents

Time synchronization device, time synchronization method and time synchronization program Download PDF

Info

Publication number
JP6969150B2
JP6969150B2 JP2017094324A JP2017094324A JP6969150B2 JP 6969150 B2 JP6969150 B2 JP 6969150B2 JP 2017094324 A JP2017094324 A JP 2017094324A JP 2017094324 A JP2017094324 A JP 2017094324A JP 6969150 B2 JP6969150 B2 JP 6969150B2
Authority
JP
Japan
Prior art keywords
clock
internal clock
time
reference clock
time synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017094324A
Other languages
Japanese (ja)
Other versions
JP2018191229A (en
Inventor
靖 立石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Original Assignee
Meidensha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp filed Critical Meidensha Corp
Priority to JP2017094324A priority Critical patent/JP6969150B2/en
Publication of JP2018191229A publication Critical patent/JP2018191229A/en
Application granted granted Critical
Publication of JP6969150B2 publication Critical patent/JP6969150B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

本発明はネットワークの時刻同期の技術に関する。 The present invention relates to a network time synchronization technique.

IEEE1588PTP(Precision Time Protocol)は、ネットワークに属する各装置の時刻情報を基準の時刻情報に基づき同期するためのプロトコルである。IEEE1588PTPによる時刻同期によれば、ネットワークの基準時計から時刻を配信することにより当該ネットワークの各装置を同期できる。基準時計は一般的に原子時計やGPSを使用した高精度の時計であるが、電力設備の保護継電器等の用途では低精度な基準時計でも十分な場合がある。 IEEE1588PTP (Precision Time Protocol) is a protocol for synchronizing the time information of each device belonging to the network based on the reference time information. According to the time synchronization by IEEE1588PTP, each device of the network can be synchronized by distributing the time from the reference clock of the network. The reference clock is generally a high-precision clock using an atomic clock or GPS, but a low-precision reference clock may be sufficient for applications such as a protective relay of electric power equipment.

冗長性を確保するために基準時計を複数用意してネットワークに接続する場合がある。通常は優先度あるいは精度の一番高い基準時計により時刻同期をするが、その基準時計が故障あるいは通信できないときは予備の基準時計が選定されて時刻同期する。予備の基準時計の時刻が正しいのであれば問題はないが、時刻同期されていない低精度の基準時計は基準時計の選定により時刻値が不正確となることがある。 In order to ensure redundancy, multiple reference clocks may be prepared and connected to the network. Normally, time synchronization is performed using the reference clock with the highest priority or accuracy, but if the reference clock fails or cannot communicate, a spare reference clock is selected and time synchronization is performed. There is no problem if the time of the spare reference clock is correct, but the time value of a low-precision reference clock that is not time-synchronized may be inaccurate depending on the selection of the reference clock.

特開2009−111654号公報Japanese Unexamined Patent Publication No. 2009-11165

一般にIEEE1588PTPの基準時計は原子時計やGPSあるいは高精度の水晶デバイスを利用して標準時間を配信している。基準時計は優先度を設定することができて複数の基準時計が接続されていれば優先度あるいは精度が一番の高い基準時計が選定される。基準時計の故障や、通信不能になれば他の基準時計が選定されて時刻同期が実行される。 Generally, the reference clock of IEEE1588PTP distributes the standard time by using an atomic clock, GPS, or a high-precision crystal device. The priority of the reference clock can be set, and if a plurality of reference clocks are connected, the reference clock having the highest priority or accuracy is selected. If the reference clock fails or communication becomes impossible, another reference clock is selected and time synchronization is executed.

基準時計はGPSあるいは外部の時計を参照する場合があるが、他の基準時計に同期して動作するわけではない。 The reference clock may refer to GPS or an external clock, but it does not operate in synchronization with other reference clocks.

大規模なシステムは冗長性を確保するため高価な基準時計を複数設置するためにコストが高くなるが、システムの目的によっては低精度であっても問題がない場合が多くある。例えば、電力設備の保護継電器は50Hzまたは60Hzの電源周波数に電圧及び電流を時刻配信による同期したタイミングで測定する必要があり、測定タイミングは数マイクロ秒程度の精度で十分である、また、標準時間に合わせる必要もなく独自の時間軸でも問題はない。GPSを使用すれば高精度の同期が可能であるが、電波妨害によるセキュリティ上の問題と衛星が故障したときの対応が困難となる。 In a large-scale system, the cost is high because a plurality of expensive reference clocks are installed to ensure redundancy, but there are many cases where there is no problem even if the accuracy is low depending on the purpose of the system. For example, a protective relay of an electric power facility needs to measure a voltage and a current at a power supply frequency of 50 Hz or 60 Hz at a synchronized timing by time distribution, and the measurement timing is sufficient with an accuracy of several microseconds, and a standard time. There is no need to adjust to, and there is no problem with your own time axis. High-precision synchronization is possible by using GPS, but it becomes difficult to deal with security problems caused by jamming and satellite failures.

そこで、基準時計に水晶振動子を適用すれば時刻同期を低コストに行えるが、水晶振動子は低精度であり性能に固体差もあるので基準時計の切り替えに支障が生じることがある。 Therefore, if a crystal oscillator is applied to the reference clock, time synchronization can be performed at low cost, but since the crystal oscillator has low accuracy and individual differences in performance, switching of the reference clock may be hindered.

本発明は、上記の事情に鑑み、ネットワークの基準時計の低廉な冗長化を図ることを課題とする。 In view of the above circumstances, it is an object of the present invention to make the reference clock of the network inexpensively redundant.

そこで、本発明の一態様は、ネットワークに属する一つの装置の内部時計を当該ネットワークの基準時計と時刻同期させる時刻同期装置であって、前記基準時計が異常の際に前記一つの装置の内部時計を前記ネットワークに属する全ての装置のうちで当該基準時計の代替として最も優先度の高い他の装置の内部時計と時刻同期させる同期処理部と、前記一つの装置の内部時計が前記最も優先度の高い内部時計である場合に前記基準時計が異常の際に当該内部時計を当該基準時計の代替とさせる時計切り替え部を備える。 Therefore, one aspect of the present invention is a time synchronization device that synchronizes the time of the internal clock of one device belonging to the network with the reference clock of the network, and the internal clock of the one device when the reference clock is abnormal. The synchronization processing unit that synchronizes the time with the internal clock of the other device having the highest priority as an alternative to the reference clock among all the devices belonging to the network, and the internal clock of the one device have the highest priority. In the case of a high internal clock, the clock switching unit is provided so that the internal clock can be used as a substitute for the reference clock when the reference clock is abnormal.

前記時刻同期装置の一態様は、前記基準時計の時刻情報を保存する記憶部をさらに備え、前記同期処理部は、前記一つの装置の内部時計が前記基準時計の代替となった際に前記保存された時刻情報に基づき当該内部時計の経過速度を補正する。 One aspect of the time synchronization device further includes a storage unit for storing the time information of the reference clock, and the synchronization processing unit stores the time information when the internal clock of the one device replaces the reference clock. The elapsed speed of the internal clock is corrected based on the time information.

前記同期処理部の一態様は、前記一つの装置の内部時計が前記基準時計の代替となった場合に当該基準時計が正常であった際の当該内部時計の同期時におけるこの内部時計の経過速度の調整量が経時的に徐々にゼロに近づくように当該経過速度を補正する。 One aspect of the synchronization processing unit is the elapsed speed of the internal clock at the time of synchronization of the internal clock when the internal clock of the one device is a substitute for the reference clock and the reference clock is normal. The elapsed speed is corrected so that the adjustment amount of is gradually approaching zero over time.

また、本発明の一態様は、ネットワークに属する一つの装置の内部時計を当該ネットワークの基準時計と時刻同期させる時刻同期装置が実行する時刻同期方法であって、前記基準時計が異常の際に前記一つの装置の内部時計を前記ネットワークに属する全ての装置のうちで当該基準時計の代替として最も優先度の高い他の装置の内部時計と時刻同期させる過程と、前記一つの装置の内部時計が前記最も優先度の高い内部時計である場合に前記基準時計が異常の際に当該内部時計を当該基準時計の代替とさせる過程とを有する。 Further, one aspect of the present invention is a time synchronization method executed by a time synchronization device that synchronizes the internal clock of one device belonging to the network with the reference clock of the network, and is described above when the reference clock is abnormal. The process of synchronizing the time of the internal clock of one device with the internal clock of another device having the highest priority as an alternative to the reference clock among all the devices belonging to the network, and the internal clock of the one device are described above. When the internal clock has the highest priority, the internal clock has a process of substituting the reference clock when the reference clock is abnormal.

尚、本発明の他の態様としては、コンピュータを前記時刻同期装置として機能させる時刻同期プログラムが挙げられる。 As another aspect of the present invention, there is a time synchronization program that causes the computer to function as the time synchronization device.

以上の本発明によれば、ネットワークの基準時計の低廉な冗長化が図られる。 According to the above invention, the reference clock of the network can be made inexpensively redundant.

本発明の実施形態における時刻同期システムを例示したブロック構成図。The block block diagram which exemplified the time synchronization system in embodiment of this invention. 前記実施形態における時刻同期装置を例示したブロック構成図。The block block diagram illustrating the time synchronization apparatus in the said embodiment. 基準時計とその代替となる内部時計の時刻変化の差異。Difference in time change between the reference clock and its alternative internal clock. 内部時計が基準時計の代替となった際の補正前における当該内部時計の時刻変化。Time change of the internal clock before correction when the internal clock replaces the reference clock. 内部時計が基準時計の代替となった際の補正後における当該内部時計の時刻変化。Time change of the internal clock after correction when the internal clock replaces the reference clock.

以下に図面を参照しながら本発明の実施形態について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[本実施形態の概要及び構成]
図1に示した本実施形態の時刻同期システム1はネットワーク2のIEEE1588PTP(以下、PTP)に基づく時刻同期システムの一例である。
[Outline and configuration of this embodiment]
The time synchronization system 1 of the present embodiment shown in FIG. 1 is an example of a time synchronization system based on the IEEE1588 PTP (hereinafter, PTP) of the network 2.

ネットワーク2は、管理サーバ30が属するローカルネットワーク3と、複数の装置6が属するローカルネットワーク4と、このローカルネットワーク3,4を接続する広域ネットワーク5とを有する。 The network 2 has a local network 3 to which the management server 30 belongs, a local network 4 to which a plurality of devices 6 belong, and a wide area network 5 connecting the local networks 3 and 4.

個々の装置6は本発明の一態様である時刻同期装置10を備える。時刻同期装置10はネットワーク2に属する装置6の内部時計61をネットワーク2の基準時計31と時刻同期させる。 Each device 6 includes a time synchronization device 10 which is one aspect of the present invention. The time synchronization device 10 synchronizes the internal clock 61 of the device 6 belonging to the network 2 with the reference clock 31 of the network 2.

図2に示された本実施形態の時刻同期装置10の構成例について説明する。 A configuration example of the time synchronization device 10 of the present embodiment shown in FIG. 2 will be described.

時刻同期装置10は、コンピュータのハードウェア資源(中央演算装置、揮発性の記憶部、不揮発性の記憶部、通信部等)とソフトウェア資源との協働により、同期処理部11、時計切り替え部12及び記憶部13を実装する。 The time synchronization device 10 is a synchronization processing unit 11 and a clock switching unit 12 in cooperation with computer hardware resources (central processing unit, volatile storage unit, non-volatile storage unit, communication unit, etc.) and software resources. And the storage unit 13 is mounted.

同期処理部11は、基準時計31が異常の際に前記一つの装置6の内部時計61をネットワーク2に属する全ての装置6のうちで基準時計31の代替として最も優先度の高い他の装置の内部時計61と時刻同期させる。 When the reference clock 31 is abnormal, the synchronization processing unit 11 uses the internal clock 61 of the one device 6 as a substitute for the reference clock 31 among all the devices 6 belonging to the network 2. Synchronize the time with the internal clock 61.

また、同期処理部11は、前記一つの装置6の内部時計61が基準時計31の代替となった場合に基準時計31が正常であった際の内部時計61の同期時における内部時計61の経過速度の調整量が経時的に徐々にゼロに近づくように当該経過速度を補正する。 Further, the synchronization processing unit 11 advances the internal clock 61 at the time of synchronization of the internal clock 61 when the internal clock 61 of the one device 6 is a substitute for the reference clock 31 and the reference clock 31 is normal. The elapsed speed is corrected so that the amount of speed adjustment gradually approaches zero over time.

前記調整量は、例えば、以下のように定義される。1回目のタイミングT2_AでPTPに基づく時刻同期処理が実行されると基準時計31と内部時計61の時間差Diff_Aを得ることができる。次いで、2回目のタイミングT2_Bで時刻同期処理が実行されると、さらに、この基準時計31と内部時計61の時間差Diff_Bを得ることができる。そして、この得られた二つの時間差の差分を(単位時間当たりの調整量)=(Diff_B−Diff_A)/(T2_B−T2_A)の演算式のように1回目と2回目の経過時間で除すれば基準時計31と内部時計61の時刻変化の傾きの差が得られる。この差の値は、内部時計61と基準時計31の前記傾きを一致させるための単位時間当たりの調整量となる。 The adjustment amount is defined as follows, for example. When the time synchronization process based on PTP is executed at the first timing T2_A, the time difference Diff_A between the reference clock 31 and the internal clock 61 can be obtained. Next, when the time synchronization process is executed at the second timing T2_B, the time difference Diff_B between the reference clock 31 and the internal clock 61 can be further obtained. Then, if the difference between the two obtained time differences is divided by the elapsed time of the first time and the second time as in the calculation formula of (adjustment amount per unit time) = (Diff_B-Diff_A) / (T2_B-T2_A). The difference in the inclination of the time change between the reference clock 31 and the internal clock 61 can be obtained. The value of this difference is an adjustment amount per unit time for matching the inclinations of the internal clock 61 and the reference clock 31.

時計切り替え部12は、前記一つの装置6の内部時計61が前記最も優先度の高い内部時計61である場合に基準時計31が異常の際に内部時計61を基準時計31の代替とさせる。 The clock switching unit 12 causes the internal clock 61 to replace the reference clock 31 when the reference clock 31 is abnormal when the internal clock 61 of the one device 6 is the internal clock 61 having the highest priority.

記憶部13には、基準時計31と時刻同期させた際の内部時計61の経過速度の調整量が保存されている。同期処理部11は、前記一つの装置6の内部時計61が基準時計31の代替となった際に、この記憶部13から引き出した基準時計31の時刻情報に基づき内部時計61の経過速度を補正する。 The storage unit 13 stores an adjustment amount of the elapsed speed of the internal clock 61 when the time is synchronized with the reference clock 31. When the internal clock 61 of the one device 6 substitutes for the reference clock 31, the synchronization processing unit 11 corrects the elapsed speed of the internal clock 61 based on the time information of the reference clock 31 extracted from the storage unit 13. do.

[本実施形態の動作例]
以下に本実施形態の動作例について説明する。
[Operation example of this embodiment]
An operation example of this embodiment will be described below.

(1)基準時計31の代替としての選定と時刻の引継ぎ
時刻同期システム1においては、通常、ネットワーク2に属する個々の装置6の内部時計61の時刻は時刻同期装置10の同期処理部11によりネットワーク2の基準時計31と同期する。
(1) Selection as an alternative to the reference clock 31 and handing over the time In the time synchronization system 1, normally, the time of the internal clock 61 of each device 6 belonging to the network 2 is networked by the synchronization processing unit 11 of the time synchronization device 10. Synchronize with the reference clock 31 of 2.

ここで、基準時計31が異常となった際、個々の装置6の時刻同期装置10の時計切り替え部12は、ネットワーク2に属する全ての装置6のうち基準時計31の代替として最も優先度の高い装置6の内部時計61を基準時計31の代替とする。そして、個々の装置6の同期処理部11は、この装置6の内部時計61の時刻を前記代替となった内部時計61の時刻と同期させる。 Here, when the reference clock 31 becomes abnormal, the clock switching unit 12 of the time synchronization device 10 of each device 6 has the highest priority as a substitute for the reference clock 31 among all the devices 6 belonging to the network 2. The internal clock 61 of the device 6 is used as a substitute for the reference clock 31. Then, the synchronization processing unit 11 of each device 6 synchronizes the time of the internal clock 61 of the device 6 with the time of the alternative internal clock 61.

外部参照のない基準時計または低精度の基準時計は他の基準時計に対して正確な時刻を維持することができないことがある。上述のように本態様の時刻同期システム1においては、基準時計31の代替として優先度が最も高い、例えば、基準時計として精度が最も高い、内部時計61が選定される。そして、この選定された内部時計61がネットワーク2の基準時計31の代替となった際に、正常時であった以前の基準時計31の時刻情報が引き継がれる。したがって、ネットワーク2の基準時計31が異常となってもネットワーク2の時刻が正確に維持される。 A reference clock without an external reference or a low-precision reference clock may not be able to maintain accurate time with respect to other reference clocks. As described above, in the time synchronization system 1 of the present embodiment, the internal clock 61 having the highest priority, for example, the highest accuracy as the reference clock, is selected as an alternative to the reference clock 31. Then, when the selected internal clock 61 replaces the reference clock 31 of the network 2, the time information of the previous reference clock 31 that was normal is inherited. Therefore, even if the reference clock 31 of the network 2 becomes abnormal, the time of the network 2 is maintained accurately.

(2)ネットワーク2に属する内部時計61間での経過速度の差異への対応
時刻の経過速度は複数の内部時計61の間で固体差がある。特に、内部時計61に比較的低精度な水晶デバイスが適用された場合、複数の内部時計61の間で時刻の経過速度の誤差が大きくなる。
(2) Correspondence to the difference in the elapsed speed between the internal clocks 61 belonging to the network 2 The elapsed speed of the time has an individual difference among the plurality of internal clocks 61. In particular, when a relatively low-precision crystal device is applied to the internal clock 61, the error in the elapsed speed of time becomes large among the plurality of internal clocks 61.

例えば、水晶の精度が10ppmであれば正確な1秒に対して最大10μsecの誤差がある可能性がある。誤差は温度や電圧等の環境要因や固体差により発生し、冗長性のために互いに離れた場所に設置された2つの基準時計は1秒間に10μsecの速度差があるものと考えられる。 For example, if the accuracy of the crystal is 10 ppm, there may be an error of up to 10 μsec for an accurate 1 second. The error occurs due to environmental factors such as temperature and voltage and individual differences, and it is considered that the two reference clocks installed at separate locations due to redundancy have a speed difference of 10 μsec per second.

基準時計31がその代替の内部時計61に切り替わると、図3に示されたように、基準時計31と内部時計61の時刻経過の間に数秒間のタイムアウトによる空白が生じる。この基準時計31と内部時計61の時刻は略一致するが、時刻の経過速度は相違するために前記タイムアウトの間で時刻の誤差が増大する。 When the reference clock 31 is switched to the alternative internal clock 61, as shown in FIG. 3, there is a gap due to a timeout of several seconds between the time passage of the reference clock 31 and the internal clock 61. Although the times of the reference clock 31 and the internal clock 61 are substantially the same, the time error increases between the time-outs because the elapsed speeds of the times are different.

そこで、基準時計31と時刻同期した際の内部時計61の経過速度の調整量が記憶部13に予め保存される。そして、装置6の内部時計61が基準時計31の代替となった際に、装置6の同期処理部11は記憶部13から引き出した前記調整量に基づき内部時計61の経過速度を補正する。これにより、正常時であった以前の基準時計31と時刻同期させた際の内部時計61の前記調整量がそのまま適用されることにより、図5に示したように、基準時計31の経過速度が引き継がれるので、前記タイムアウトの数秒間の誤差が最小限に抑えられる。 Therefore, the adjustment amount of the elapsed speed of the internal clock 61 when the time is synchronized with the reference clock 31 is stored in advance in the storage unit 13. Then, when the internal clock 61 of the device 6 replaces the reference clock 31, the synchronization processing unit 11 of the device 6 corrects the elapsed speed of the internal clock 61 based on the adjustment amount drawn from the storage unit 13. As a result, as shown in FIG. 5, the elapsed speed of the reference clock 31 is increased by applying the adjustment amount of the internal clock 61 when the time is synchronized with the previous reference clock 31 which was normal. Since it is taken over, the error of several seconds of the timeout is minimized.

(3)内部時計61の経時的な調整
上記(1)(2)の機能が実行されると、比較的低精度な基準時計31とその代替の内部時計61の切り替えが実行されてもネットワーク2の時刻が不連続となることはない。
(3) Adjustment of the internal clock 61 over time When the functions of (1) and (2) above are executed, the network 2 is switched between the relatively low-precision reference clock 31 and its alternative internal clock 61. Times are not discontinuous.

しかしながら、前記切り替えが繰り返し実行されると、以前の単位時間当たりの調整量を引き継ぐため、正確な時刻の経過速度から徐々に逸脱することもある。 However, when the switching is repeatedly executed, the adjustment amount per unit time is inherited, so that the speed may gradually deviate from the accurate elapsed speed of the time.

そこで、装置6の内部時計61が基準時計31の代替となった場合、この装置6の同期処理部11は、内部時計61の前記調整量を引き継き、図4に示したように、この調整量が経時的に徐々にゼロに近づくように、内部時計61の経過速度を補正する。つまり、前記調整量がゼロになったとき内部時計61の水晶デバイスによる1秒で時刻配信されるため、経過速度が1秒から逸脱することがなくなる。したがって、基準時計31の代替が行われた際でもネットワーク2に属する装置6の連係への支障を回避できる。 Therefore, when the internal clock 61 of the device 6 replaces the reference clock 31, the synchronization processing unit 11 of the device 6 takes over the adjustment amount of the internal clock 61, and as shown in FIG. 4, this The elapsed speed of the internal clock 61 is corrected so that the adjustment amount gradually approaches zero over time. That is, when the adjustment amount becomes zero, the time is delivered in 1 second by the crystal device of the internal clock 61, so that the elapsed speed does not deviate from 1 second. Therefore, even when the reference clock 31 is replaced, it is possible to avoid a hindrance to the linkage of the device 6 belonging to the network 2.

以上のように本実施形態の時刻同期システム1によれば、時刻同期が実行されるので、装置6の内部時計61が基準時計31の代替となっても基準時計31の時刻値は継続する。 As described above, according to the time synchronization system 1 of the present embodiment, the time synchronization is executed, so that the time value of the reference clock 31 continues even if the internal clock 61 of the device 6 substitutes for the reference clock 31.

特に、内部時計61、基準時計31において時刻の経過速度に固体差のある水晶デバイスが適用されて装置6の内部時計61がネットワーク2の基準時計31の代替となっても、基準時計31の経過速度が引き継がれる。 In particular, even if a crystal device having an individual difference in the elapsed speed of time is applied to the internal clock 61 and the reference clock 31, and the internal clock 61 of the device 6 substitutes for the reference clock 31 of the network 2, the elapse of the reference clock 31 The speed is taken over.

また、内部時計61の経過速度の調整量がゼロとなるまで徐々に調整されるので、基準時計31の代替を繰り返しても調整量が逸脱せず、ネットワーク2に属する装置6の連係を安定的に維持できる。 Further, since the adjustment amount of the elapsed speed of the internal clock 61 is gradually adjusted until it becomes zero, the adjustment amount does not deviate even if the replacement of the reference clock 31 is repeated, and the linkage of the device 6 belonging to the network 2 is stable. Can be maintained.

さらに、基準時計31、内部時計61において比較的安価な水晶デバイスを適用できるのでネットワーク2の基準時計の冗長化が低廉に実現する。 Further, since a relatively inexpensive crystal device can be applied to the reference clock 31 and the internal clock 61, the redundancy of the reference clock of the network 2 can be realized at low cost.

本発明の他の態様としては、時刻同期装置10の一部若しくは全てとしてコンピュータを機能させるプログラムで構成しこれを当該コンピュータに実行させることにより実現できる。または、時刻同期装置10が実行する時刻同期方法の過程の一部若しくは全てをコンピュータに実行させるプログラムで構成しこれを当該コンピュータに実行させることにより実現できる。そして、このプログラム(時刻同期プログラム)をそのコンピュータが読み取り可能な周知の記録媒体に格納して提供できる。または、前記プログラムをインターネットや電子メール等でネットワークを介して提供できる。 Another aspect of the present invention can be realized by configuring a program that causes a computer to function as a part or all of the time synchronization device 10 and causing the computer to execute the program. Alternatively, it can be realized by configuring a program that causes a computer to execute a part or all of the process of the time synchronization method executed by the time synchronization device 10, and causing the computer to execute the program. Then, this program (time synchronization program) can be stored and provided in a well-known recording medium readable by the computer. Alternatively, the program can be provided via a network via the Internet, e-mail, or the like.

尚、本発明は、以上の実施形態に限定されるものではなく、本発明の特許請求の範囲内で様々な態様で実施が可能である。 The present invention is not limited to the above embodiments, and can be implemented in various embodiments within the scope of the claims of the present invention.

1…時刻同期システム
2…ネットワーク、31…基準時計
6…装置、61…内部時計
10…時刻同期装置、11…同期処理部、12…時計切り替え部、13…記憶部
1 ... Time synchronization system 2 ... Network, 31 ... Reference clock 6 ... Device, 61 ... Internal clock 10 ... Time synchronization device, 11 ... Synchronization processing unit, 12 ... Clock switching unit, 13 ... Storage unit

Claims (4)

ネットワークに属する一つの装置の内部時計を当該ネットワークの基準時計と時刻同期させる時刻同期装置であって、
前記一つの装置の内部時計が前記ネットワークに属する全ての装置のうちで前記基準時計の代替として最も優先度が高い装置の内部時計でない場合に当該基準時計が異常の際に当該一つの装置の内部時計を当該優先度の高い装置の内部時計と時刻同期させる同期処理部と、
前記一つの装置の内部時計が前記最も優先度の高い内部時計である場合に前記基準時計が異常の際に当該内部時計を当該基準時計の代替とさせる時計切り替え部と、
前記基準時計と時刻同期させた際の当該基準時計と前記一つの装置の内部時計の時刻変化の傾きの差で示される当該内部時計の時刻値の単位時間当たりの調整量を保存する記憶部
を備え、
前記同期処理部は、前記優先度が高い装置の内部時計が前記基準時計の代替となった際に当該優先度が高い装置の前記記憶部から引き出した前記調整量に基づき当該優先度が高い装置の内部時計の時刻値の経過速度を補正すること
を特徴とする時刻同期装置。
A time synchronization device that synchronizes the internal clock of one device belonging to a network with the reference clock of the network.
If the internal clock of the one device is not the internal clock of the device having the highest priority as a substitute for the reference clock among all the devices belonging to the network, the inside of the one device when the reference clock is abnormal. a synchronization processing unit for internal clock time synchronization of the high priority device clock,
When the internal clock of the one device is the internal clock having the highest priority, a clock switching unit that substitutes the internal clock for the reference clock when the reference clock is abnormal, and a clock switching unit.
A storage unit for storing the adjustment amount per unit time of the time value of the internal clock represented by the difference between the slope of the time variation of the internal clock of the reference clock and time synchronization is the reference clock and the one device when allowed
Equipped with
The synchronization processing unit is a device having a high priority based on the adjustment amount drawn from the storage unit of the device having a high priority when the internal clock of the device having a high priority replaces the reference clock. A time synchronization device characterized by correcting the elapsed speed of the time value of the internal clock of.
前記同期処理部は、前記優先度が高い装置の内部時計が前記基準時計の代替となった場合に当該基準時計が正常であった際の当該内部時計の同期時におけるこの内部時計の時刻値の単位時間当たりの調整量が経時的に徐々にゼロに近づくように当該内部時計の時刻値の経過速度を補正することを特徴とする請求項に記載の時刻同期装置。 The synchronization processing unit determines the time value of the internal clock at the time of synchronization of the internal clock when the reference clock is normal when the internal clock of the high-priority device replaces the reference clock. time synchronization apparatus of claim 1, the adjustment amount per unit time and corrects the elapsed velocity time value of the internal clock so as to approach zero gradually over time. ネットワークに属する一つの装置の内部時計を当該ネットワークの基準時計と時刻同期させる時刻同期装置が実行する時刻同期方法であって、
前記一つの装置の内部時計が前記ネットワークに属する全ての装置のうちで前記基準時計の代替として最も優先度が高い装置の内部時計でない場合に当該基準時計が異常の際に当該一つの装置の内部時計を当該優先度の高い装置の内部時計と時刻同期させる過程と、
前記一つの装置の内部時計が前記最も優先度の高い内部時計である場合に前記基準時計が異常の際に当該内部時計を当該基準時計の代替とさせる過程と
前記基準時計と時刻同期させた際の当該基準時計と前記一つの装置の内部時計の時刻変化の傾きの差で示される当該内部時計の時刻値の単位時間当たりの調整量を記憶部に保存する過程と、
を有し、
前記時刻同期の過程は、前記優先度が高い装置の内部時計が前記基準時計の代替となった際に当該優先度が高い装置の前記記憶部から引き出した前記調整量に基づき当該優先度が高い装置の内部時計の時刻値の経過速度を補正すること
を特徴とする時刻同期方法。
A time synchronization method executed by a time synchronization device that synchronizes the internal clock of one device belonging to a network with the reference clock of the network.
If the internal clock of the one device is not the internal clock of the device having the highest priority as a substitute for the reference clock among all the devices belonging to the network, the inside of the one device when the reference clock is abnormal. a process for internal clock and the time synchronization of the high priority device clock,
And process the internal clock to the internal clock and alternate the reference clock when the reference clock is abnormal when the is the highest priority internal clock of said one device,
The amount of adjustment of the time value of the internal clock, which is indicated by the difference in the inclination of the time change between the reference clock and the internal clock of the one device when the time is synchronized with the reference clock, is stored in the storage unit . The process and
Have a,
The time synchronization process has a high priority based on the adjustment amount drawn from the storage unit of the high priority device when the internal clock of the high priority device replaces the reference clock. A time synchronization method characterized by correcting the elapsed speed of the time value of the internal clock of the device.
コンピュータを請求項1または2に記載の時刻同期装置として機能させる時刻同期プログラム。 A time synchronization program that causes a computer to function as the time synchronization device according to claim 1 or 2.
JP2017094324A 2017-05-11 2017-05-11 Time synchronization device, time synchronization method and time synchronization program Active JP6969150B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017094324A JP6969150B2 (en) 2017-05-11 2017-05-11 Time synchronization device, time synchronization method and time synchronization program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017094324A JP6969150B2 (en) 2017-05-11 2017-05-11 Time synchronization device, time synchronization method and time synchronization program

Publications (2)

Publication Number Publication Date
JP2018191229A JP2018191229A (en) 2018-11-29
JP6969150B2 true JP6969150B2 (en) 2021-11-24

Family

ID=64480391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017094324A Active JP6969150B2 (en) 2017-05-11 2017-05-11 Time synchronization device, time synchronization method and time synchronization program

Country Status (1)

Country Link
JP (1) JP6969150B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665316B1 (en) * 1998-09-29 2003-12-16 Agilent Technologies, Inc. Organization of time synchronization in a distributed system
JP2003194974A (en) * 2001-12-28 2003-07-09 Fujitsu Ltd Time correction method and time correction device
JP2012249040A (en) * 2011-05-27 2012-12-13 Hitachi Ulsi Systems Co Ltd Network connection reception side device and time synchronization system
JP6907684B2 (en) * 2017-05-11 2021-07-21 株式会社明電舎 Time synchronization device, time synchronization method and time synchronization program

Also Published As

Publication number Publication date
JP2018191229A (en) 2018-11-29

Similar Documents

Publication Publication Date Title
CA2877720C (en) System for maintaining accurate ideal clock time
JP5165871B2 (en) System and method for calibrating a TOD clock
EP2528255B1 (en) A method and a device for controlling frequency synchronization
US10505652B2 (en) Methods and systems for estimating offset skew and drift
Cena et al. Synchronize your watches: Part I: General-purpose solutions for distributed real-time control
CN101026377A (en) Clock generation circuit
US20200382233A1 (en) Information processing apparatus and time synchronization method
WO2016119362A1 (en) Clock synchronization method, router and cluster routing system
JP6969150B2 (en) Time synchronization device, time synchronization method and time synchronization program
Kopetz et al. Integration of internal and external clock synchronization by the combination of clock-state and clock-rate correction in fault-tolerant distributed systems
CN111865468B (en) Precise time synchronization method
KR20200083030A (en) System for syncronizing satellite time and ground time and the operation method thereof
JP5407568B2 (en) Sync signal generating apparatus and sync signal generating method
CN112748758A (en) Clock source selection method and device, electronic equipment and storage medium
JP2020077929A (en) Time distribution device, synchronization system, and program
CN116131984A (en) Reference time determining method and device, electronic equipment and storage medium
JP6907684B2 (en) Time synchronization device, time synchronization method and time synchronization program
JP6196765B2 (en) Communication device, time control method, and program
Quesada et al. Evaluation of clock synchronization methods for measurement and control using embedded Linux SBCs
O'Raw et al. Precision Time Protocol (PTP) Using LinuxPTP on Single Board Computers
JP2002094490A (en) Time-supplying system and time-supplying device
US20230046689A1 (en) Multiple and cascaded redundant disciplined oscillator systems in a spoofing resistant reference time source system and methods thereof
KR101972798B1 (en) Network Time Protocol based Time synchronization apparatus and method
Armengaud et al. Non-Intrusive Remote Oscillator Drift Monitoring for Preventive Maintenance of Time-Triggered Systems
SE2350091A1 (en) Enhanced restart of nodes after interruption

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210405

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: 20210928

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211011

R150 Certificate of patent or registration of utility model

Ref document number: 6969150

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150