JP2012023654A - Time synchronization device via network - Google Patents

Time synchronization device via network Download PDF

Info

Publication number
JP2012023654A
JP2012023654A JP2010161405A JP2010161405A JP2012023654A JP 2012023654 A JP2012023654 A JP 2012023654A JP 2010161405 A JP2010161405 A JP 2010161405A JP 2010161405 A JP2010161405 A JP 2010161405A JP 2012023654 A JP2012023654 A JP 2012023654A
Authority
JP
Japan
Prior art keywords
time
master
synchronization
packet
slave
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.)
Granted
Application number
JP2010161405A
Other languages
Japanese (ja)
Other versions
JP5495323B2 (en
Inventor
Takahide Murakami
隆秀 村上
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.)
KDDI Corp
Original Assignee
KDDI 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 KDDI Corp filed Critical KDDI Corp
Priority to JP2010161405A priority Critical patent/JP5495323B2/en
Publication of JP2012023654A publication Critical patent/JP2012023654A/en
Application granted granted Critical
Publication of JP5495323B2 publication Critical patent/JP5495323B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a time synchronization device via a network, capable of suppressing deteriorated synchronization accuracy produced in the event of a trouble in a main device or a line and by line congestion.SOLUTION: In the time synchronization device for synchronizing the time of a subordinate device with the time of a main device by exchanging packets for synchronization via a packed-based network, the subordinate device exchanges the packets for synchronization between with a plurality of main devices, and calculates each priority order of the plurality of main devices, and based on the priority order of the main devices and the packets for synchronization, synchronizes the time of the subordinate device with the time of the main device.

Description

本発明は複数装置の時刻を、パケットベースのネットワークを介して高精度かつ高信頼に同期させる時刻同期装置に関する。   The present invention relates to a time synchronization device that synchronizes the time of a plurality of devices with high accuracy and high reliability via a packet-based network.

パケットベースのネットワークを介した時刻同期プロトコルとして、例えば非特許文献1のIEEE 1588 Precision Time Protocol(PTP)がある。同プロトコルでは、時刻基準を持つ主装置(マスタ)とそれに従属する従装置(スレーブ)が定義され、両者で定期的に時刻同期用パケットを交換することでスレーブの時刻を補正する。具体的には、マスタからスレーブに送信されるパケット(Syncメッセージ)のマスタ送信時刻とスレーブ受信時刻、およびスレーブからマスタに送信されるパケット(Delay_Reqメッセージ)のスレーブ送信時刻とマスタ受信時刻を用いて、スレーブ・クロックのマスタ・クロックに対する周波数ドリフトおよび時刻オフセットを推定して補正する。   As a time synchronization protocol via a packet-based network, for example, IEEE 1588 Precision Time Protocol (PTP) of Non-Patent Document 1 is available. In this protocol, a master device (master) having a time reference and a slave device (slave) subordinate thereto are defined, and the time of the slave is corrected by periodically exchanging time synchronization packets between them. Specifically, the master transmission time and slave reception time of the packet (Sync message) transmitted from the master to the slave, and the slave transmission time and master reception time of the packet (Delay_Req message) transmitted from the slave to the master are used. The frequency drift and time offset of the slave clock with respect to the master clock are estimated and corrected.

ネットワークを介した時刻同期において同期精度を劣化させる原因として、以下に述べる二つの要因が挙げられる。   The following two factors can be cited as causes of deterioration of synchronization accuracy in time synchronization via a network.

一つめの要因として、マスタ装置あるいは回線で発生する障害による、同期用パケット交換の中断が挙げられる。これに対し、図1に示すように複数台のマスタを用意することで、同期用パケットを交換していたマスタ装置かあるいは回線に障害が発生した際に、スレーブ装置は別のマスタ装置と同期用パケットを交換することで同期精度の劣化を抑えることができる。   The first factor is the interruption of synchronization packet exchange due to a failure occurring in the master device or the line. On the other hand, by preparing a plurality of masters as shown in FIG. 1, when a failure occurs in the master device that exchanges the synchronization packet or in the line, the slave device synchronizes with another master device. By exchanging packets for use, it is possible to suppress degradation of synchronization accuracy.

IEEE 1588で規定される時刻同期プロトコルでは、複数の時刻同期装置がネットワーク上に存在する場合に、各装置の動作ステートを自動的に決定するためのBest Master Clock(BMC)アルゴリズムが規定されている。このアルゴリズムでは、時刻同期管理用のドメイン(PTPドメイン)が定義されており、一つのPTPドメインではマスタとして動作する装置は1台のみと規定されている。複数のマスタ候補装置がある場合は、各自の装置のクロック性能や意図的に設定された優先度などの情報を含むパケット(Announceメッセージ)を定期的に交換し、BMCアルゴリズムで規定される判定条件に基づいてマスタとなる装置が決定される。なおBMCアルゴリズムは各装置で実行されるが、判定に用いる装置情報はAnnounceメッセージにより交換されたものであるから、best masterの判定結果はPTPドメイン内のどの装置においても同一となる。   The time synchronization protocol defined by IEEE 1588 defines a Best Master Clock (BMC) algorithm for automatically determining the operation state of each device when multiple time synchronization devices exist on the network. . In this algorithm, a domain for time synchronization management (PTP domain) is defined, and only one device that operates as a master is defined in one PTP domain. When there are a plurality of master candidate devices, a packet (Announce message) including information such as clock performance of each device and intentionally set priority is periodically exchanged, and a determination condition defined by the BMC algorithm Based on the above, a master device is determined. Although the BMC algorithm is executed by each device, since the device information used for the determination is exchanged by the Announce message, the determination result of the best master is the same in any device in the PTP domain.

BMCアルゴリズムは、State Decisionアルゴリズムと、Data Set Comparisonアルゴリズムで構成される。データセット(Data set)は装置の情報(クロック精度や優先度など)をまとめたものであり、マスタ装置がAnnounceメッセージにより定期的に送信している。Announceメッセージを受信した装置は、受信メッセージのdata setと自装置のdata setをData Set Comparisonアルゴリズムにより比較し、比較対象の二つの装置のどちらが優れているかを判定する。判定の結果から、State Decisionアルゴリズムにより最も優れた装置(best master)と自装置の推奨動作ステートを決定する。   The BMC algorithm is composed of a state decision algorithm and a data set comparison algorithm. A data set is a collection of device information (clock accuracy, priority, etc.), and is periodically transmitted by the master device using an Announce message. The device that has received the Announce message compares the data set of the received message with the data set of its own device using the Data Set Comparison algorithm, and determines which of the two devices to be compared is superior. From the determination result, the best device and the recommended operation state of the device itself are determined by the State Decision algorithm.

自らの推奨動作ステートがマスタとなった装置は、スレーブと同期用パケットの交換を開始する。推奨動作ステートがスレーブとなった装置では、同期すべきマスタ装置(best master)が決定され、そのマスタとの同期を開始する。一方、マスタとして動作しない他のマスタ候補装置はパッシブモードに移行し、同期メッセージの送受信は行わず現在のマスタ装置から定期的に送信されるAnnounceメッセージを受信し続ける。   A device whose recommended operation state is the master starts exchanging synchronization packets with the slave. In a device whose recommended operation state is a slave, a master device (best master) to be synchronized is determined, and synchronization with the master is started. On the other hand, the other master candidate devices that do not operate as the master shift to the passive mode, and do not transmit / receive the synchronization message, and continue to receive the Announce message periodically transmitted from the current master device.

現在のマスタに障害が発生するか、あるいはネットワーク経路に障害が発生した場合、当該マスタからAnnounceメッセージが届かなくなる。これにより、残りのマスタ候補装置は障害の発生を検知し、マスタ候補装置の中から新たなマスタが決定される。スレーブ装置は新たなマスタ装置と同期用パケットを交換して時刻同期を継続する。   If a failure occurs in the current master or a failure occurs in the network path, the Announce message does not arrive from the master. Thereby, the remaining master candidate devices detect the occurrence of a failure, and a new master is determined from the master candidate devices. The slave device exchanges synchronization packets with the new master device and continues time synchronization.

同期精度を劣化させる二つめの要因として、ネットワークの混雑による同期用パケットの伝送遅延時間変動が挙げられる。非特許文献1で述べられているように、IEEE 1588において、スレーブ装置の時刻とマスタ装置の時刻のオフセットは、Syncパケットのスレーブ受信時刻と同パケットのマスタ送信時刻の時間差を求め、この時間差から同期用パケットのマスタ装置とスレーブ装置間の伝送遅延時間を減ずることで求めている。この伝送遅延時間はあらかじめ求めておく必要があり、具体的にはSyncパケットのマスタ送信時刻とスレーブ受信時刻、およびDelay_Reqパケットのスレーブ送信時刻とマスタ受信時刻から求めている。   A second factor that degrades the synchronization accuracy is a fluctuation in the transmission delay time of the synchronization packet due to network congestion. As described in Non-Patent Document 1, in IEEE 1588, the offset between the time of the slave device and the time of the master device is obtained by calculating the time difference between the slave reception time of the Sync packet and the master transmission time of the packet. This is obtained by reducing the transmission delay time between the master device and the slave device of the synchronization packet. This transmission delay time needs to be obtained in advance, specifically, from the master transmission time and slave reception time of the Sync packet and the slave transmission time and master reception time of the Delay_Req packet.

このとき、同期用パケットの伝送遅延時間が一定であればスレーブは正確に時刻を補正することができる。しかし一般的なネットワークでは伝送遅延時間は変動しており、スレーブの時刻補正値には誤差が含まれる。   At this time, if the transmission delay time of the synchronization packet is constant, the slave can correct the time accurately. However, in a general network, the transmission delay time fluctuates, and the slave time correction value includes an error.

パケット伝送遅延時間が変動する原因の一つとして、伝送経路途中のスイッチで発生するパケットのキューイング遅延が挙げられる。スイッチへ時刻同期用パケットとその他のパケットが同時に到来した場合に、これらのパケットの転送先ポートが同じであるとき、送信先ポートにおいて転送待ち時間すなわちキューイング遅延が生ずる。キューイングの発生、およびキューイング遅延時間はランダムである。   One of the causes of fluctuations in the packet transmission delay time is a queuing delay of packets generated at a switch in the middle of the transmission path. When the time synchronization packet and other packets arrive at the switch at the same time, when the transfer destination ports of these packets are the same, a transfer waiting time, that is, a queuing delay occurs at the transmission destination port. The occurrence of queuing and the queuing delay time are random.

これに対して非特許文献2では、スレーブに到来した時刻同期用パケットにキューイング遅延が生じたかどうかを、特許文献1を基にした方法で推定し、キューイング遅延が生じていないパケットのみを抽出して時刻同期処理に用いることで時刻同期精度の劣化を抑えている。   On the other hand, Non-Patent Document 2 estimates whether or not a queuing delay has occurred in a time synchronization packet that has arrived at a slave by a method based on Patent Document 1, and determines only packets that have no queuing delay By extracting and using it for time synchronization processing, deterioration of time synchronization accuracy is suppressed.

特開2010−74600号公報JP 2010-74600 A

“IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems,” IEEE Standard 1588-2008.“IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems,” IEEE Standard 1588-2008. “Improvement of synchronization accuracy in IEEE 1588 using a queuing estimation method,”Proceedings of 2009 IEEE International Symposium on Precision Clock Synchronization for Measurement, Control, and Communications, pp. 12-16.“Improvement of synchronization accuracy in IEEE 1588 using a queuing estimation method,” Proceedings of 2009 IEEE International Symposium on Precision Clock Synchronization for Measurement, Control, and Communications, pp. 12-16.

上記で述べたように、時刻同期精度の劣化を抑えるには、マスタ装置を複数台設置し、マスタ装置あるいは回線に障害が生じた際に予備のマスタ装置と同期を継続させるのが有効である。さらに各々のマスタとスレーブ間の通信を異なる経路で行わせると、スレーブは混雑していない経路を用いて通信するマスタ装置と優先的に同期することで、時刻同期精度の劣化を抑えることができる。しかし従来方法には以下で述べる二つの問題がある。   As described above, in order to suppress deterioration of time synchronization accuracy, it is effective to install a plurality of master devices and continue synchronization with the standby master device when a failure occurs in the master device or the line. . Furthermore, if communication between each master and slave is performed through different paths, the slaves can preferentially synchronize with the master device that communicates using a non-congested path, thereby suppressing deterioration in time synchronization accuracy. . However, the conventional method has the following two problems.

一つめの問題点は、従来方法ではマスタ装置がネットワーク上に一つしか存在できず、マスタ装置や伝送路に障害が発生した際にスレーブ装置の同期精度劣化が発生することである。   The first problem is that in the conventional method, only one master device can exist on the network, and when the master device or the transmission path fails, the synchronization accuracy of the slave device deteriorates.

上記で述べたように、IEEE 1588では、一つの時刻同期管理用のドメイン(PTPドメイン)ではマスタは1台しか存在することができない。現在のマスタに障害が発生するか、あるいはネットワーク経路に障害が発生するなどして、当該マスタからAnnounceメッセージが届かなくなると、残りのマスタ候補装置は障害の発生を検知し、マスタ候補装置の中から新たなマスタが決定される。このときスレーブではどの装置とも同期用パケットを送受信しない、すなわちどの装置とも同期していない状態が一定期間発生するうえに、マスタが切り替わるたびに新しいマスタと同期を確立しなおす必要があり、確立するまでの間はスレーブの時計自身の性能で動作することとなり同期精度が劣化する恐れがある。   As described above, in IEEE 1588, only one master can exist in one time synchronization management domain (PTP domain). If the Announce message is not received from the current master due to a failure in the current master or a failure in the network path, the remaining master candidate devices detect the failure and A new master is determined. At this time, the slave does not transmit / receive the synchronization packet with any device, that is, it does not synchronize with any device for a certain period of time, and it is necessary to reestablish synchronization with the new master every time the master is switched. In the meantime, the slave clock itself operates at the performance, and the synchronization accuracy may deteriorate.

二つめの問題として、各装置の動作ステートを決定するBMCアルゴリズムでは、マスタ候補装置の性能のみが判定条件に用いられており、回線の混雑度を考慮していないことが挙げられる。マスタとなった装置の性能がPTPドメイン内の候補装置の中で最良であったとしても、マスタとスレーブ間の経路が混雑している場合は同期精度が劣化してしまう。非特許文献2のような手法を用いることで同期精度の改善が図れるが、経路が極端に混雑したり、混雑が長時間継続したりする場合は限界がある。また、マスタ候補装置を複数設置する際に必ずしも各装置で性能に差違を持たせるとは限らず、同等の性能を有する装置が用いられることも多い。このような場合は、経路の混雑を検出し、空いている別の経路を経由して通信できるマスタとの同期を確立した方が、スレーブ装置のクロックの精度および安定度の向上が期待できる。   The second problem is that, in the BMC algorithm for determining the operation state of each device, only the performance of the master candidate device is used as the determination condition, and the congestion level of the line is not considered. Even if the performance of the master device is the best among the candidate devices in the PTP domain, the synchronization accuracy deteriorates if the route between the master and the slave is congested. Although the synchronization accuracy can be improved by using the method as described in Non-Patent Document 2, there is a limit in the case where the route is extremely congested or the congestion continues for a long time. In addition, when a plurality of master candidate devices are installed, the devices do not necessarily have a difference in performance, and devices having equivalent performance are often used. In such a case, the accuracy and stability of the clock of the slave device can be expected to be improved by detecting the congestion of the route and establishing synchronization with the master that can communicate via another available route.

従って、以上述べた二つの問題を解決するために、本発明は、冗長機能を改善してマスタ装置を複数同時稼働させ、マスタ装置あるいは回線に障害が発生した際にも、同期精度劣化を抑制する、さらに経路の混雑を検出し、混雑が少ない経路を経由するマスタを選択し、回線混雑による同期精度劣化を抑えることが可能なネットワークを介した時刻同期装置を提供することを目的とする。   Therefore, in order to solve the two problems described above, the present invention improves the redundancy function and operates a plurality of master devices at the same time, and suppresses the deterioration of synchronization accuracy even when a failure occurs in the master device or the line. In addition, an object of the present invention is to provide a time synchronization device via a network that can detect congestion of a route, select a master via a route with less congestion, and suppress deterioration in synchronization accuracy due to line congestion.

上記目的を実現するため本発明による時刻同期装置は、時刻基準を有する複数の主装置と該複数の主装置の時計に同期する従装置を備え、パケットベースのネットワークを介して同期用パケットを交換して前記従装置の時刻を前記主装置の時刻に同期させる時刻同期装置において、前記従装置が前記複数の主装置と前記同期用パケットを交換する手段と、前記複数の主装置の優先順位を算出する算出手段と、前記複数の主装置の優先順位および前記同期用パケットに基づき、前記従装置の時刻を前記主装置の時刻に同期させる同期手段とを備える。   To achieve the above object, a time synchronizer according to the present invention comprises a plurality of master devices having time references and slave devices synchronized with the clocks of the master devices, and exchanges synchronization packets via a packet-based network. In the time synchronization device for synchronizing the time of the slave device with the time of the master device, the slave device exchanges the synchronization packets with the plurality of master devices, and the priority order of the master devices. And calculating means for calculating, and synchronizing means for synchronizing the time of the slave device with the time of the master device based on the priority order of the plurality of master devices and the synchronization packet.

また、前記複数の主装置と従装置間の経路の経路混雑度を推定する推定手段をさらに備え、前記算出手段は、前記経路混雑度に基づき、前記複数の主装置の優先順位を算出することも好ましい。   In addition, the information processing apparatus further includes an estimation unit that estimates a route congestion degree of a route between the plurality of master devices and the slave device, and the calculation unit calculates a priority order of the plurality of master devices based on the route congestion degree. Is also preferable.

また、前記同期手段は、最高の優先順位を有する主装置の同期用パケットから求めたクロック誤差を用い前記従装置の時刻を補正する、または前記複数の主装置の同期用パケットから求めたクロック誤差を前記複数の主装置の優先順位で加重平均した値を用い前記従装置の時刻を補正することも好ましい。   Further, the synchronization means corrects the time of the slave device using the clock error obtained from the synchronization packet of the master device having the highest priority, or the clock error obtained from the synchronization packets of the plurality of master devices. It is also preferable to correct the time of the slave device using a value obtained by weighted average of the priority values of the plurality of master devices.

また、前記同期用パケットの伝送遅延揺らぎ発生を推定する手段をさらに有し、前記クロック誤差は、伝送遅延揺らぎが発生していないと推定された同期用パケットから求められることも好ましい。   Further, it is preferable that the apparatus further includes means for estimating occurrence of transmission delay fluctuation in the synchronization packet, and the clock error is obtained from the synchronization packet estimated that transmission delay fluctuation has not occurred.

また、前記推定手段は、伝送遅延揺らぎが発生していないと推定された同期用パケットの個数に基づいて、経路混雑度を推定することも好ましい。   In addition, it is preferable that the estimation unit estimates a route congestion degree based on the number of synchronization packets estimated that transmission delay fluctuation does not occur.

また、前記算出手段は、前記経路混雑度および主装置の性能に基づき、最良と判断する主装置を選択するアルゴリズムを有し、前記複数の主装置の中から、前記アルゴリズムにより最高の優先順位の主装置を選択し、前記最高の優先順位の主装置を除く前記複数の主装置の中から、前記アルゴリズムにより次の優先順位の主装置を選択し、前記最高および前記次の優先順位の主装置を除く前記複数の主装置の中から、前記アルゴリズムにより第3の優先順位の主装置を選択することを繰り返すことにより、前記複数の主装置の優先順位を算出することも好ましい。   Further, the calculation means has an algorithm for selecting the main device to be determined as the best based on the degree of congestion of the route and the performance of the main device, and the highest priority is determined by the algorithm from the plurality of main devices. A main device is selected, a main device of the next priority is selected from the plurality of main devices excluding the main device of the highest priority by the algorithm, and the main device of the highest and the next priority is selected. It is also preferable to calculate the priority order of the plurality of main devices by repeatedly selecting the main device having the third priority order from the plurality of main devices excluding the main device.

また、前記アルゴリズムは、前記経路混雑度が少ない主装置を最良と判断する比較をData Set Comparisonアルゴリズムに挿入したものであることも好ましい。   Further, it is also preferable that the algorithm is a data set comparison algorithm in which a comparison for determining that the main device with a low degree of route congestion is the best is inserted.

本発明では、複数マスタ装置を同一ネットワーク内(あるいは同一PTPドメイン内)で同時に稼働させることにより、ある一つのマスタ装置に障害が発生した場合や、マスタとスレーブ間の経路に障害が発生した場合、あるいは当該経路が混雑した場合においても、スレーブ装置が別のマスタ装置との同期を継続して自クロックの精度劣化の抑制を図ることができる。また経路混雑度の推定手段を設けるとともに、BMCアルゴリズムを用いてマスタ優先度を決定する際に経路混雑度を判定条件として採用することで、当該スレーブ装置にとって最良のマスタ装置を選択することが可能となる。これによって、スレーブ装置のクロック同期精度の向上を図ると共に、装置や経路で発生する障害や回線の輻輳による同期精度の劣化を抑えてスレーブ装置の信頼性の向上を図ることができる。   In the present invention, when a plurality of master devices are simultaneously operated in the same network (or in the same PTP domain), a failure occurs in one master device, or a failure occurs in a path between the master and the slave. Alternatively, even when the route is congested, the slave device can continue to synchronize with another master device and suppress degradation in accuracy of the own clock. It is possible to select the best master device for the slave device by providing route congestion degree estimation means and adopting the route congestion degree as a determination condition when determining the master priority using the BMC algorithm. It becomes. As a result, the clock synchronization accuracy of the slave device can be improved, and the reliability of the slave device can be improved by suppressing the deterioration of the synchronization accuracy due to a failure occurring in the device or path or congestion of the line.

時刻同期装置の設置形態を示す。The installation form of a time synchronizer is shown. 本実施形態の時刻同期装置の機能構成を示す。The function structure of the time synchronizer of this embodiment is shown. 同期用メッセージの送受信シーケンスを示す。The transmission / reception sequence of the synchronization message is shown. 同期用メッセージの送信間隔および受信間隔を示す。Indicates the transmission interval and reception interval of synchronization messages. パケットキューイング遅延推定の例を示す。An example of packet queuing delay estimation is shown. 経路混雑度を考慮するよう変更したData Set Comparisonアルゴリズムのフローチャートを示す。The flowchart of the Data Set Comparison algorithm changed in consideration of the route congestion degree is shown. クロック制御部の構成例を示す。The structural example of a clock control part is shown. ドリフト・オフセット推定部の構成例を示す。The structural example of a drift offset estimation part is shown. 計算機シミュレーションで想定するネットワーク構成を示す。The network configuration assumed in computer simulation is shown. シミュレーションで想定するクロス・トラフィック負荷変動(1)を示す。The cross traffic load fluctuation (1) assumed in the simulation is shown. 図10のクロス・トラフィックが存在する場合の時刻同期精度シミュレート例を示す。An example of simulating time synchronization accuracy when the cross traffic of FIG. 10 exists is shown. 図10のクロス・トラフィックが存在場合の経路混雑度推定例を示す。An example of estimating the degree of route congestion when the cross traffic in FIG. 10 exists is shown. シミュレーションで想定するクロス・トラフィック負荷変動(2)を示す。The cross traffic load fluctuation (2) assumed in the simulation is shown. 図13のクロス・トラフィックが存在する場合の時刻同期精度シミュレート例を示す。An example of time synchronization accuracy simulation when the cross traffic of FIG. 13 exists is shown. 図13のクロス・トラフィックが存在場合の経路混雑度推定例を示す。FIG. 14 shows an example of estimating the route congestion level when there is cross traffic in FIG.

本発明を実施するための最良の実施形態について、以下では図面を用いて詳細に説明する。本発明では、図1に示すように複数のマスタ装置と一台以上のスレーブ装置により構成される。各装置の代表的な構成は、図2に示すように、ネットワークインタフェース部1、タイムスタンプ処理部2、プロトコルスタック処理部3、時刻同期制御部4、クロック制御部5、ローカルクロック部6およびクロックインタフェース部7で構成される。ネットワークインタフェース部1、タイムスタンプ処理部2、およびプロトコルスタック処理部3は非特許文献1に記載されている機能と同様である。   The best mode for carrying out the present invention will be described in detail below with reference to the drawings. In the present invention, as shown in FIG. 1, it is composed of a plurality of master devices and one or more slave devices. As shown in FIG. 2, a typical configuration of each device includes a network interface unit 1, a time stamp processing unit 2, a protocol stack processing unit 3, a time synchronization control unit 4, a clock control unit 5, a local clock unit 6, and a clock. The interface unit 7 is configured. The network interface unit 1, the time stamp processing unit 2, and the protocol stack processing unit 3 have the same functions as described in Non-Patent Document 1.

時刻同期制御部4は、複数のマスタ候補装置が同時にマスタとして稼働できるようにする手段と、スレーブ装置が複数マスタの優先度を決定する手段と、スレーブ装置がマスタの優先度を決定する際に経路の混雑度を考慮する手段とを有し、クロック制御部5がスレーブ装置が複数マスタと並行して同期用パケットを交換して各々のマスタとのクロック周波数偏差およびオフセットを推定しクロック補正に用いる手段を有することにより、上記の2つの問題を解決する。以下では時刻同期プロトコルとしてIEEE 1588を用いた時刻同期装置を例に挙げて実施形態を述べる。   The time synchronization control unit 4 is configured to enable a plurality of master candidate devices to simultaneously operate as a master, a slave device to determine a priority of a plurality of masters, and a slave device to determine a master priority. The clock control unit 5 estimates the clock frequency deviation and the offset with each master for clock correction by the slave controller exchanging synchronization packets in parallel with a plurality of masters. Having the means to use solves the above two problems. In the following, an embodiment will be described by taking a time synchronization apparatus using IEEE 1588 as a time synchronization protocol as an example.

ローカルクロック部6は、必要とするクロック精度により、ルビジウム発振器、温度補償機能付き発振器(TCXO)、温度制御機能付き発振器(OCXO)などを具備する。マスタ装置では、必要に応じてGPSなどの基準時刻をクロックインタフェース部7を介して取得し、クロック制御部5によりローカルクロック部6のドリフトおよびオフセットを補正して外部基準時刻に同期させる。スレーブ装置では、時刻同期制御部4およびクロック制御部5で推定したローカルクロックのマスタ装置のクロックに対するドリフト、オフセットを補正するとともに、クロックインタフェース部7でクロック信号、例えばPPS(pulse per second)信号、10MHzクロック信号、ToD(time of day)などを生成し、外部装置に対して出力する。   The local clock unit 6 includes a rubidium oscillator, an oscillator with a temperature compensation function (TCXO), an oscillator with a temperature control function (OCXO), and the like depending on the required clock accuracy. In the master device, a reference time such as GPS is acquired via the clock interface unit 7 as necessary, and the clock control unit 5 corrects the drift and offset of the local clock unit 6 to synchronize with the external reference time. In the slave device, the drift and offset of the local clock estimated by the time synchronization control unit 4 and the clock control unit 5 with respect to the clock of the master device are corrected, and a clock signal such as a PPS (pulse per second) signal, A 10 MHz clock signal, ToD (time of day), etc. are generated and output to an external device.

時刻同期制御部4では、時刻同期用パケットの送受信制御、同パケットの送受信時刻と同パケットで伝送されるPTPデータを収集し、時刻同期に係る処理を行う。時刻同期用パケットに含まれるデータは非特許文献1に記述されている。時刻同期処理は、非特許文献1で述べられているような処理、すなわち、BMCアルゴリズムの実行、クロック制御部5でのドリフト・オフセット推定処理の制御などである。以下では時刻同期制御部4、クロック制御部5、ローカルクロック部6での処理について述べる。   The time synchronization control unit 4 controls transmission / reception of the time synchronization packet, collects the transmission / reception time of the packet and PTP data transmitted in the same packet, and performs processing related to time synchronization. Non-Patent Document 1 describes data included in the time synchronization packet. The time synchronization processing is processing as described in Non-Patent Document 1, that is, execution of the BMC algorithm, control of drift / offset estimation processing in the clock control unit 5, and the like. Hereinafter, processing in the time synchronization control unit 4, the clock control unit 5, and the local clock unit 6 will be described.

本発明で用いる装置では、まずBMCアルゴリズムを改良して複数装置が同時にマスタとして稼働できるようにする。本装置では、アルゴリズムを実行した結果、自ノードの推奨動作ステートがパッシブとなったノードの動作ステートを強制的にマスタに移行させることで実現する。   In the apparatus used in the present invention, first, the BMC algorithm is improved so that a plurality of apparatuses can simultaneously operate as a master. This device is realized by forcibly shifting the operation state of the node whose recommended operation state of the node becomes passive as a result of executing the algorithm to the master.

次に、マスタの優先度を決定する際に各マスタとスレーブ間の経路混雑度を考慮できるようにする。経路混雑度は、特許文献1のような手法を用いて時刻同期制御部4が推定する。本装置では経路混雑度推定を実現するために、図3に示すメッセージ・シーケンスを用いる。これは、IEEE 1588で定義されているDelay-request responseメカニズムを基にしており、SyncメッセージおよびDelay_Reqメッセージの前後にプローブパケット(probing packet)を併せて送信するシーケンスである。伝送経路途中にあるスイッチにおいてキューイングが発生すると、図4に示すようにパケット間隔が変動する。   Next, when determining the priority of the master, it becomes possible to consider the degree of path congestion between each master and the slave. The time synchronization control unit 4 estimates the degree of route congestion using a technique such as that disclosed in Patent Document 1. In the present apparatus, the message sequence shown in FIG. 3 is used to realize the route congestion degree estimation. This is a sequence based on the Delay-request response mechanism defined in IEEE 1588, and transmits a probe packet (probing packet) before and after the Sync message and Delay_Req message. When queuing occurs in the switch in the middle of the transmission path, the packet interval varies as shown in FIG.

図5はパケットキューイング遅延推定の一例を示したものである。同期用パケットを受信した装置ではまず、j番目のパケットとその後続の(j+1)番目のパケットの送信間隔τdep(j)をそれらのパケットに含まれる送信時刻から計算し、さらに自装置で測定した受信時刻からパケットの到来間隔τarr(j)を計算する。次にこのj番目(ただし1<j<N+1とする)のパケットについて、そのパケットの前後のパケットとの送信間隔と受信間隔を比較し、次の条件に基づいてキューイング遅延の発生の有無を推定する。
a−i) (τarr(j−1)−τdep(j−1))>Δτもしくは(τarr(j)−τdep(j))<−Δτであれば、j番目のパケットではキューイング遅延が発生した。
a−ii) 上記以外の場合は、j番目のパケットではキューイング遅延は発生していない。
FIG. 5 shows an example of packet queuing delay estimation. The device that received the synchronization packet first calculates the transmission interval τ dep (j) of the j-th packet and the subsequent (j + 1) -th packet from the transmission time included in those packets, and further measures by the own device The packet arrival interval τ arr (j) is calculated from the received time. Next, for this j-th packet (where 1 <j <N p +1), the transmission interval and the reception interval of the packet before and after the packet are compared, and the occurrence of queuing delay occurs based on the following conditions: Presence or absence is estimated.
a−i) If (τ arr (j−1) −τ dep (j−1) )> Δτ or (τ arr (j) −τ dep (j) ) <− Δτ, the queue for the jth packet Ing delay occurred.
a-ii) In cases other than the above, no queuing delay occurs in the j-th packet.

Δτは判定スレッショルドであり、以降の検証では200ナノ秒とした。この判定スレッショルドは、パケットのキューイング以外の原因で生ずるパケット間隔変化を考慮して決定する。例えば、伝送中に通過するスイッチの転送処理ジッタやスレーブ装置のタイムスタンプ処理精度を考慮する必要がある。   Δτ is a determination threshold, and is 200 nanoseconds in the subsequent verification. This determination threshold is determined in consideration of a change in packet interval caused by a cause other than packet queuing. For example, it is necessary to consider transfer processing jitter of a switch that passes during transmission and time stamp processing accuracy of a slave device.

本装置では、推定確度を向上させるために、上記一度目の推定で「キューイング遅延発生」と推定したパケットを破棄し、「キューイング遅延発生せず」と推定したパケットだけで改めて推定処理を行う。キューイング遅延発生せずと推定したパケットの中でk番目のパケットとその後続の(k+1)番目のパケットの送信間隔と受信間隔をそれぞれτorg(k)、τsrv(k)として、次の条件に基づいてキューイング遅延の発生の有無を推定する。
b−i) (τsrv(k−1)−τorg(k−1))>Δτもしくは(τsrv(k)−τorg(k))<−Δτであれば、k番目のパケットではキューイング遅延が発生した。
b−ii) 上記以外の場合は、k番目のパケットではキューイング遅延は発生していない。
In order to improve the estimation accuracy, this device discards the packet estimated as “occurrence of queuing delay” in the first estimation, and performs the estimation process again only with the packet estimated as “no queuing delay occurred”. Do. Among the packets estimated not to cause a queuing delay, the transmission interval and reception interval of the kth packet and the subsequent (k + 1) th packet are τ org (k) and τ srv (k) , respectively, and Presence of occurrence of queuing delay is estimated based on the condition.
b−i) If (τ srv (k−1) −τ org (k−1) )> Δτ or (τ srv (k) −τ org (k) ) <− Δτ, the queue is queued for the kth packet. Ing delay occurred.
b-ii) In cases other than the above, no queuing delay occurs in the kth packet.

図5の例では、5番のパケットが一度目の推定ではキューイング遅延発生せずと推定されているが、二度目の推定ではキューイング遅延発生と推定され破棄されている。時刻同期処理には、二度目の推定でキューイング遅延発生せずと推定されたパケットの中から一つを選んで用いる。   In the example of FIG. 5, it is estimated that the queuing delay does not occur in the 5th packet in the first estimation. However, in the second estimation, it is estimated that the queuing delay occurs and is discarded. For the time synchronization process, one of the packets estimated not to cause a queuing delay in the second estimation is selected and used.

続いて、パケットキューイング推定の結果から経路混雑度を示す指数uを以下の式を用いて計算する。

Figure 2012023654
上式のnsrvはキューイング遅延推定において「キューイング遅延発生せず」と判定されたパケットの個数である。またNはSyncパケットあるいはDelay_Reqパケットと一緒に送信されるプローブパケットの個数である。 Subsequently, an index u indicating the degree of route congestion is calculated from the packet queuing estimation result using the following equation.
Figure 2012023654
In the above equation, n srv is the number of packets determined as “no queuing delay occurs” in the queuing delay estimation. The N p is the number of probe packets sent with Sync packet or Delay_Req packet.

これらの推定は、スレーブ装置においてはSyncメッセージとそれに付随して送信されたプローブパケットが到来する毎に実行される。一方マスタ装置においては、スレーブからDelay_Reqメッセージとそれに付随して送信されたプローブパケットが到来する毎に実行され、推定結果はDelay_Respメッセージによりスレーブに送信される。なお本装置の時刻同期処理、すなわちSyncメッセージおよびDelay_Reqメッセージの送受信タイムスタンプを用いたクロックの周波数偏差および時刻オフセットの補正処理は、非特許文献1や非特許文献2と同様の手法を用いている。   These estimations are performed every time a Sync message and a probe packet transmitted accompanying it arrive at the slave device. On the other hand, in the master device, it is executed each time a Delay_Req message and a probe packet transmitted accompanying it arrive from the slave, and the estimation result is transmitted to the slave by a Delay_Resp message. Note that the time synchronization processing of this apparatus, that is, the correction processing of the clock frequency deviation and time offset using the transmission / reception time stamps of the Sync message and Delay_Req message, uses the same method as in Non-Patent Document 1 and Non-Patent Document 2. .

上記により求めた経路混雑度をData Set Comparisonアルゴリズムに適用してマスタ優先度の決定で考慮できるようにする。経路混雑度はマスタ〜スレーブ方向uとその逆方向uの二つがあり、本装置では次式により重み付け平均した値を求める。

Figure 2012023654
、wは重み付け係数であり、同期メッセージの送信間隔などにより決定する。以降の検証では簡単のためにw=wとしている。この係数を以降ではestimatedPathCongestionと呼ぶ。マスタ優先度の決定では、この値をさらに過去何回かの計算値を平均して用いる。平均値を数式中ではavg[ρ]と表記し、以降の検証では過去5回の計算値を平均して用いる。データセットAおよびデータセットBに含まれる経路混雑度は、次の条件で比較する。
c−i) avg[ρ]−avg[ρ]>Δρならば、データセットBは同Aより良い
c−ii) avg[ρ]−avg[ρ]>Δρならば、データセットAは同Bより良い
c−iii) 上記以外の場合は、データセットAと同Bは同等である
Δρは判定スレッショルドであり、avg[ρ]の推定確度、時間変動などを考慮して決定する。この比較は、従来のData Set Comparisonアルゴリズムの任意の箇所に挿入する(以下、修正BMCアルゴリズムと言う)。以降の検証では、図6に示すようにGM priority1値の比較処理の前に挿入する。 The route congestion degree obtained as described above is applied to the Data Set Comparison algorithm so that it can be considered in determining the master priority. Route congestion degree is two is a master-slave direction u m and its opposite direction u s, in this apparatus for determining the average value weighted by the following equation.
Figure 2012023654
w m and w s are weighting factors, and are determined by the transmission interval of the synchronization message. In the subsequent verification, w m = w s is set for simplicity. This coefficient is hereinafter referred to as estimatedPathCongestion. In determining the master priority, this value is further used by averaging the calculated values in the past several times. The average value is expressed as avg [ρ] in the formula, and the calculation values of the past five times are averaged and used in the subsequent verification. The route congestion levels included in data set A and data set B are compared under the following conditions.
c-i) If avg [ρ A ] -avg [ρ B ]> Δρ, then data set B is better than A. c-ii) If avg [ρ B ] -avg [ρ A ]> Δρ, the data set A is better than B. c-iii) In all other cases, Δρ, which is equivalent to data sets A and B, is a determination threshold, and is determined in consideration of the estimation accuracy of avg [ρ], time variation, and the like. . This comparison is inserted at an arbitrary location in the conventional Data Set Comparison algorithm (hereinafter referred to as a modified BMC algorithm). In the subsequent verification, as shown in FIG. 6, it is inserted before the comparison processing of the GM priority1 value.

複数の装置を同時にマスタとして稼働させる場合、従来のbest masterに加えてこれ以降の優先度を決定しておくと、スレーブの冗長処理において便利である。本装置ではbest master以下のマスタ装置をsecond best master、third best master…と定義し、次の手順により決定する。
・修正BMCアルゴリズムを実行し、best masterとなるノードを決定する。
・自装置の推奨動作ステートがマスタでなく、かつパッシブでない場合は、上記best masterノードのデータセットを破棄し、修正BMCアルゴリズムを残りのデータセットを用いて実行する。
・上記二度目に実行した修正BMCアルゴリズムで最良と決定されたノードをsecond best masterとする。
・上記second best masterのデータセットを破棄し、自ノード以外のデータセットが残っている場合は、さらに修正BMCアルゴリズムを実行してthird best masterを決定する。以降同様に繰り返す。
When operating a plurality of devices simultaneously as a master, it is convenient in slave redundancy processing to determine priorities after this in addition to the conventional best master. In this device, master devices below best master are defined as second best master, third best master... And determined by the following procedure.
Execute the modified BMC algorithm to determine the node that will be the best master.
If the recommended operation state of the device is not the master and is not passive, the data set of the best master node is discarded, and the modified BMC algorithm is executed using the remaining data set.
The node determined as the best by the modified BMC algorithm executed the second time is set as the second best master.
If the second best master data set is discarded and a data set other than its own node remains, the modified BMC algorithm is further executed to determine the third best master. Thereafter, the same is repeated.

上記手順で求められたマスタ装置の優先度順位は、以降で述べる冗長制御処理で用いられる。   The priority order of the master device obtained in the above procedure is used in the redundancy control process described below.

図7にスレーブ装置のクロック制御部5の構成を示す。本装置では複数のドリフト・オフセット推定部51を具備しており、スレーブ装置のクロック周波数ドリフトと時刻オフセットをマスタ装置毎に並行して推定する。ドリフト・オフセット推定部51は例えば図8に示すような構成である。推定結果は冗長制御部52に入力され、PI(proportional-integral)制御部53への入力値を演算する。PI制御は自動制御で一般的に用いられる制御方式である。該制御部は、ドリフト補正用とオフセット補正用の二つのPI制御器を具備するか、あるいはいずれか一つのPI制御器と、冗長制御部52から入力されるドリフト補正値とオフセット補正値からPI制御器に入力する値を計算する機能を具備する。また、冗長制御部52に、時刻同期制御部4からマスタ装置の優先度順位が入力される。   FIG. 7 shows the configuration of the clock control unit 5 of the slave device. In this apparatus, a plurality of drift / offset estimation units 51 are provided, and the clock frequency drift and the time offset of the slave apparatus are estimated in parallel for each master apparatus. The drift / offset estimation unit 51 is configured as shown in FIG. 8, for example. The estimation result is input to the redundancy control unit 52, and an input value to the PI (proportional-integral) control unit 53 is calculated. PI control is a control method generally used in automatic control. The control unit includes two PI controllers for drift correction and offset correction, or any one PI controller, and a drift correction value and an offset correction value input from the redundancy control unit 52 are used as PI. A function for calculating a value to be input to the controller is provided. Further, the priority order of the master device is input from the time synchronization control unit 4 to the redundancy control unit 52.

冗長制御部52では、各マスタとの推定結果から実際に自クロックのドリフト補正量およびオフセット補正量を求める。本装置では、下記の二つの方法のいずれかを用いる。   The redundancy control unit 52 actually determines the drift correction amount and the offset correction amount of the own clock from the estimation result with each master. In this apparatus, one of the following two methods is used.

一つめの方法は、best masterから推定した周波数ドリフトおよび時刻オフセットのみを自クロックの補正に用いる方法である。best masterが更新された際は、PI制御部53に入力する値を冗長制御部で新しいbest masterのものに切り替える。このとき、PI制御部53は初期化されず、それまでの状態が保持される。以降ではこの方法を「切替制御法」と表記する。   The first method uses only the frequency drift and time offset estimated from the best master for correcting the own clock. When the best master is updated, the value input to the PI control unit 53 is switched to the new best master by the redundancy control unit. At this time, the PI control unit 53 is not initialized, and the previous state is maintained. Hereinafter, this method is referred to as a “switching control method”.

二つめの方法は、各マスタとの推定結果を、マスタ優先度を考慮して重み付け平均する方法である。優先度n番目のマスタとのオフセット推定値およびドリフト推定値をそれぞれO、Dとすると、PI制御部53に入力するドリフト補正値Dおよびオフセット補正値Oはそれぞれ次式で表される。

Figure 2012023654
ここで、wは重み付係数である。Best masterが更新された場合も、PI制御部53は初期化されずそれまでの状態が保持される。以降ではこの方法を「加重平均法」と呼ぶ。 The second method is a weighted average of the estimation results with each master in consideration of the master priority. Priority n-th respectively O n offset estimate and drift estimate value with the master, when the D n, drift correction value is input to the PI control unit 53 D w and the offset correction value O w are expressed respectively as: The
Figure 2012023654
Here, w is a weighting coefficient. Even when the Best master is updated, the PI control unit 53 is not initialized and the previous state is maintained. Hereinafter, this method is referred to as “weighted average method”.

続いて、上記装置の動作を計算機シミュレーションで検証した例を示す。ネットワークは図9に示す構成を想定し、回線速度は100Mbpsとした。Master#1およびMaster#2の時刻は完全に一致すると仮定した。同期用パケットの送信間隔は、SyncおよびDelay_Reqメッセージは0.5秒とし、Announceメッセージは1秒とした。SyncおよびDelay_Reqメッセージと一緒に送信するプローブパケットは20個とし、各パケット間の送信間隔(図4のτdep(1)、…、τdep(np)に相当する間隔)は139.04マイクロ秒とした。回線負荷(クロス・トラフィック)をトラフィック・ジェネレータ1〜4により発生させた。クロス・トラフィックは図9に示すように、トラフィック・ジェネレータ1と同2の間と、同3と同4の間で生成した。クロス・トラフィックのフレームサイズは1518バイトとした。回線占有率はトラフィック・ジェネレータ1と同2の間は40%で一定とし、同3と同4の間は後述するように時間変動するよう設定して検証した。 Then, the example which verified operation | movement of the said apparatus by computer simulation is shown. The network is assumed to have the configuration shown in FIG. 9, and the line speed is 100 Mbps. We assumed that Master # 1 and Master # 2 time exactly coincide. The synchronization packet transmission interval was 0.5 seconds for Sync and Delay_Req messages, and 1 second for Announce messages. The number of probe packets to be transmitted together with the Sync and Delay_Req messages is 20, and the transmission interval between the packets ( interval corresponding to τ dep (1) ,..., Τ dep (np) in FIG. 4) is 139.04 microseconds. It was. A line load (cross traffic) was generated by the traffic generators 1 to 4. As shown in FIG. 9, the cross traffic was generated between the traffic generator 1 and 2 and between 3 and 4. The cross traffic frame size was 1518 bytes. The line occupancy rate was fixed at 40% between the traffic generator 1 and the same 2 as in the traffic generator 1, and the time between 3 and 4 was set so as to change with time as described later.

クロス・トラフィックが図10に示すような回線占有率の時間変動となるようにしてシミュレートした場合の、スレーブ装置の時刻誤差を図11に示す。同図には、各時刻におけるbest masterのノードも示している。またマスタからスレーブ方向の経路混雑度推定値を図12に示す。クロス・トラフィックの時間変動に応じて経路混雑度推定値が変化しており、その結果経路混雑度が低い経路を経由して通信するマスタ装置をbest masterとしていることがわかる。冗長方式を用いた装置の時刻誤差の変動量は、冗長制御を用いない装置と比較して小さくなっていることがわかる。   FIG. 11 shows the time error of the slave device when the simulation is performed so that the cross traffic has the time fluctuation of the line occupation rate as shown in FIG. The figure also shows the best master node at each time. FIG. 12 shows estimated route congestion values from the master to the slave. It can be seen that the estimated value of the route congestion changes according to the time fluctuation of the cross traffic, and as a result, the master device that communicates via the route with the low route congestion is the best master. It can be seen that the fluctuation amount of the time error of the apparatus using the redundancy method is smaller than that of the apparatus not using the redundancy control.

別のシミュレーション結果として、クロス・トラフィックが図13に示すような回線占有率の時間変動となるようにした場合の結果を図14、図15に示す。クロス・トラフィックの時間変動に応じてbest masterが更新され、冗長方式を用いない装置と比較して時刻誤差変動が抑えられていることがわかる。本例では、経路混雑度が急激に変動しており、このためbest master更新時に誤差変動が生じている。このような経路混雑度の急激な変動を関知した場合は、一定時間PI制御部53への入力を停止するなどの処理を行うと時刻誤差変動の抑制が図れる。   As another simulation result, FIG. 14 and FIG. 15 show the results when the cross traffic has the time fluctuation of the line occupation rate as shown in FIG. It can be seen that the best master is updated according to the cross traffic time fluctuation, and the time error fluctuation is suppressed as compared with the apparatus not using the redundancy method. In this example, the route congestion degree fluctuates abruptly, and therefore error fluctuation occurs when updating the best master. When such a rapid change in the degree of congestion of the route is noticed, the time error fluctuation can be suppressed by performing a process such as stopping input to the PI control unit 53 for a certain period of time.

なお、上記本発明の時刻同期装置では、時刻同期プロトコルの一例としてIEEE 1588を用いて説明したが、本発明はこれと同様のメカニズムを有するプロトコルに対しても適用できる。   The time synchronization apparatus of the present invention has been described using IEEE 1588 as an example of the time synchronization protocol. However, the present invention can also be applied to a protocol having a similar mechanism.

また、以上述べた実施形態は全て本発明を例示的に示すものであって限定的に示すものではなく、本発明は他の種々の変形態様および変更態様で実施することができる。従って本発明の範囲は特許請求の範囲およびその均等範囲によってのみ規定されるものである。   Moreover, all the embodiments described above are illustrative of the present invention and are not intended to limit the present invention, and the present invention can be implemented in other various modifications and changes. Therefore, the scope of the present invention is defined only by the claims and their equivalents.

1 ネットワークインタフェース部
2 タイムスタンプ処理部
3 プロトコルスタック処理部
4 時刻同期制御部
5 クロック制御部
6 ローカルクロック部
7 クロックインタフェース部
51 ドリフト・オフセット推定部
52 冗長制御部
53 PI制御部
DESCRIPTION OF SYMBOLS 1 Network interface part 2 Time stamp process part 3 Protocol stack process part 4 Time synchronization control part 5 Clock control part 6 Local clock part 7 Clock interface part 51 Drift offset estimation part 52 Redundancy control part 53 PI control part

Claims (7)

時刻基準を有する複数の主装置と該複数の主装置の時計に同期する従装置を備え、パケットベースのネットワークを介して同期用パケットを交換して前記従装置の時刻を前記主装置の時刻に同期させる時刻同期装置において、
前記従装置が前記複数の主装置と前記同期用パケットを交換する手段と、
前記複数の主装置の優先順位を算出する算出手段と、
前記複数の主装置の優先順位および前記同期用パケットに基づき、前記従装置の時刻を前記主装置の時刻に同期させる同期手段と
を備えることを特徴とする時刻同期装置。
A plurality of master devices having a time reference and a slave device that synchronizes with the clocks of the master devices, and exchanging synchronization packets via a packet-based network to change the slave device time to the master device time In the time synchronization device to synchronize,
Means for the slave device to exchange the synchronization packet with the plurality of master devices;
Calculating means for calculating priorities of the plurality of main devices;
A time synchronization device comprising: synchronization means for synchronizing the time of the slave device with the time of the master device based on the priority order of the plurality of master devices and the synchronization packet.
前記複数の主装置と従装置間の経路の経路混雑度を推定する推定手段をさらに備え、
前記算出手段は、前記経路混雑度に基づき、前記複数の主装置の優先順位を算出することを特徴とする請求項1に記載の時刻同期装置。
An estimation means for estimating a route congestion degree of a route between the plurality of master devices and slave devices;
The time synchronization apparatus according to claim 1, wherein the calculation unit calculates a priority order of the plurality of main apparatuses based on the route congestion degree.
前記同期手段は、最高の優先順位を有する主装置の同期用パケットから求めたクロック誤差を用い前記従装置の時刻を補正する、または前記複数の主装置の同期用パケットから求めたクロック誤差を前記複数の主装置の優先順位で加重平均した値を用い前記従装置の時刻を補正することを特徴とする請求項1または2に記載の時刻同期装置。   The synchronization means corrects the time of the slave device using the clock error obtained from the synchronization packet of the master device having the highest priority, or the clock error obtained from the synchronization packets of the plurality of master devices. The time synchronization apparatus according to claim 1 or 2, wherein the time of the slave apparatus is corrected using a value obtained by weighted averaging with priority orders of a plurality of master apparatuses. 前記同期用パケットの伝送遅延揺らぎ発生を推定する手段をさらに有し、
前記クロック誤差は、伝送遅延揺らぎが発生していないと推定された同期用パケットから求められることを特徴とする請求項3に記載の時刻同期装置。
Means for estimating occurrence of transmission delay fluctuations in the synchronization packet;
4. The time synchronization apparatus according to claim 3, wherein the clock error is obtained from a synchronization packet estimated that transmission delay fluctuation does not occur.
前記推定手段は、伝送遅延揺らぎが発生していないと推定された同期用パケットの個数に基づいて、経路混雑度を推定することを特徴とする請求項4に記載の時刻同期装置。   The time synchronization apparatus according to claim 4, wherein the estimation unit estimates a path congestion degree based on the number of synchronization packets estimated that transmission delay fluctuation does not occur. 前記算出手段は、前記経路混雑度および主装置の性能に基づき、最良と判断する主装置を選択するアルゴリズムを有し、
前記複数の主装置の中から、前記アルゴリズムにより最高の優先順位の主装置を選択し、
前記最高の優先順位の主装置を除く前記複数の主装置の中から、前記アルゴリズムにより次の優先順位の主装置を選択し、
前記最高および前記次の優先順位の主装置を除く前記複数の主装置の中から、前記アルゴリズムにより第3の優先順位の主装置を選択することを繰り返すことにより、前記複数の主装置の優先順位を算出することを特徴とする請求項1から5のいずれか1項に記載の時刻同期装置。
The calculation means has an algorithm for selecting a main device that is determined to be the best based on the degree of congestion of the route and the performance of the main device,
From among the plurality of master units, the master unit with the highest priority is selected by the algorithm,
From the plurality of master devices excluding the master device with the highest priority, the master device with the next priority is selected by the algorithm,
The priority order of the plurality of main units is repeated by repeatedly selecting a main unit having the third priority order from the plurality of main units excluding the main unit having the highest priority and the next priority order. The time synchronizer according to claim 1, wherein the time synchronizer is calculated.
前記アルゴリズムは、前記経路混雑度が少ない主装置を最良と判断する比較をData Set Comparisonアルゴリズムに挿入したものであることを特徴とする請求項6に記載の時刻同期装置。   The time synchronization apparatus according to claim 6, wherein the algorithm is a data set comparison algorithm in which a comparison for determining that the main apparatus having a low degree of route congestion is the best is inserted.
JP2010161405A 2010-07-16 2010-07-16 Time synchronization device via network Expired - Fee Related JP5495323B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010161405A JP5495323B2 (en) 2010-07-16 2010-07-16 Time synchronization device via network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010161405A JP5495323B2 (en) 2010-07-16 2010-07-16 Time synchronization device via network

Publications (2)

Publication Number Publication Date
JP2012023654A true JP2012023654A (en) 2012-02-02
JP5495323B2 JP5495323B2 (en) 2014-05-21

Family

ID=45777509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010161405A Expired - Fee Related JP5495323B2 (en) 2010-07-16 2010-07-16 Time synchronization device via network

Country Status (1)

Country Link
JP (1) JP5495323B2 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189536A1 (en) * 2012-06-20 2013-12-27 Nokia Siemens Networks Oy Synchronization in computer network
WO2013190602A1 (en) * 2012-06-19 2013-12-27 日本電気株式会社 Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
CN103546268A (en) * 2013-10-15 2014-01-29 瑞斯康达科技发展股份有限公司 Method and device for compensating system time
JP2014078781A (en) * 2012-10-09 2014-05-01 Hitachi Ltd Communication controller
JP2015004598A (en) * 2013-06-21 2015-01-08 株式会社東芝 Radio communication device and radio communication system
WO2015136799A1 (en) * 2014-03-14 2015-09-17 株式会社東芝 Clock synchronization management device, clock synchronization management device control method and control program
JP2015188152A (en) * 2014-03-26 2015-10-29 東日本電信電話株式会社 Slave node, control server, time synchronization destination determination method, and computer program
JP2016502790A (en) * 2012-11-12 2016-01-28 ゼットティーイー コーポレーションZte Corporation Time synchronization method and apparatus
JP2016178378A (en) * 2015-03-18 2016-10-06 Kddi株式会社 Synchronizer, base station device, network node, and control method
KR20160135527A (en) * 2015-05-18 2016-11-28 (주)스프링웨이브 Apparatus and method for time synchronization
JP2016225677A (en) * 2015-05-27 2016-12-28 株式会社日立製作所 Communication device to perform time synchronization
WO2017126077A1 (en) * 2016-01-21 2017-07-27 三菱電機株式会社 Communication system, communication apparatus, and communication method
EP3185461A4 (en) * 2014-08-18 2018-07-18 Hitachi, Ltd. Communication control apparatus and network relay apparatus
JP2020098974A (en) * 2018-12-17 2020-06-25 日本電信電話株式会社 Time synchronization route selection device, and time synchronization route selection method
WO2021049406A1 (en) * 2019-09-09 2021-03-18 日本電気株式会社 Slave device, time synchronization system, time synchronization method, and time synchronization program
WO2021084771A1 (en) * 2019-11-01 2021-05-06 オムロン株式会社 Control system, communication control method of control system, and control device
US11303376B2 (en) 2019-05-28 2022-04-12 Fujitsu Limited Information processing apparatus and time synchronization method
WO2023233588A1 (en) * 2022-06-01 2023-12-07 三菱電機株式会社 Time synchronization device, time synchronization method, and time synchronization program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5937243B1 (en) * 2015-02-17 2016-06-22 日本電信電話株式会社 Time synchronization method and time synchronization apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08328690A (en) * 1995-05-26 1996-12-13 Mitsubishi Electric Corp Time management system device
JP2001308837A (en) * 2000-03-01 2001-11-02 Lucent Technol Inc Time synchronizing method, base station and communication system
JP2001337871A (en) * 2000-05-25 2001-12-07 Victor Co Of Japan Ltd Network system
JP2002094492A (en) * 2000-09-11 2002-03-29 Ntt Communications Kk Time-synchronizing method and communication apparatus
JP2007101183A (en) * 2005-09-30 2007-04-19 Seiko Epson Corp Communication system and time synchronization method
JP2008079008A (en) * 2006-09-21 2008-04-03 Murata Mach Ltd Network terminal
WO2010066664A1 (en) * 2008-12-09 2010-06-17 Alcatel Lucent Clock for a node of a packet-switched network and associated synchronisation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08328690A (en) * 1995-05-26 1996-12-13 Mitsubishi Electric Corp Time management system device
JP2001308837A (en) * 2000-03-01 2001-11-02 Lucent Technol Inc Time synchronizing method, base station and communication system
JP2001337871A (en) * 2000-05-25 2001-12-07 Victor Co Of Japan Ltd Network system
JP2002094492A (en) * 2000-09-11 2002-03-29 Ntt Communications Kk Time-synchronizing method and communication apparatus
JP2007101183A (en) * 2005-09-30 2007-04-19 Seiko Epson Corp Communication system and time synchronization method
JP2008079008A (en) * 2006-09-21 2008-04-03 Murata Mach Ltd Network terminal
WO2010066664A1 (en) * 2008-12-09 2010-06-17 Alcatel Lucent Clock for a node of a packet-switched network and associated synchronisation method

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013190602A1 (en) * 2012-06-19 2013-12-27 日本電気株式会社 Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
US9634782B2 (en) 2012-06-19 2017-04-25 Nec Corporation Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
WO2013189536A1 (en) * 2012-06-20 2013-12-27 Nokia Siemens Networks Oy Synchronization in computer network
JP2014078781A (en) * 2012-10-09 2014-05-01 Hitachi Ltd Communication controller
US9485045B2 (en) 2012-10-09 2016-11-01 Hitachi, Ltd. Communication control equipment
JP2016502790A (en) * 2012-11-12 2016-01-28 ゼットティーイー コーポレーションZte Corporation Time synchronization method and apparatus
JP2015004598A (en) * 2013-06-21 2015-01-08 株式会社東芝 Radio communication device and radio communication system
CN103546268B (en) * 2013-10-15 2016-08-10 瑞斯康达科技发展股份有限公司 The compensation method of a kind of system time and equipment
CN103546268A (en) * 2013-10-15 2014-01-29 瑞斯康达科技发展股份有限公司 Method and device for compensating system time
JP2015177275A (en) * 2014-03-14 2015-10-05 株式会社東芝 Clock synchronism management apparatus, control method of clock synchronism management apparatus, and control program
WO2015136799A1 (en) * 2014-03-14 2015-09-17 株式会社東芝 Clock synchronization management device, clock synchronization management device control method and control program
JP2015188152A (en) * 2014-03-26 2015-10-29 東日本電信電話株式会社 Slave node, control server, time synchronization destination determination method, and computer program
EP3185461A4 (en) * 2014-08-18 2018-07-18 Hitachi, Ltd. Communication control apparatus and network relay apparatus
JP2016178378A (en) * 2015-03-18 2016-10-06 Kddi株式会社 Synchronizer, base station device, network node, and control method
KR20160135527A (en) * 2015-05-18 2016-11-28 (주)스프링웨이브 Apparatus and method for time synchronization
KR101685123B1 (en) 2015-05-18 2016-12-12 (주)스프링웨이브 Apparatus and method for time synchronization
JP2016225677A (en) * 2015-05-27 2016-12-28 株式会社日立製作所 Communication device to perform time synchronization
WO2017126077A1 (en) * 2016-01-21 2017-07-27 三菱電機株式会社 Communication system, communication apparatus, and communication method
US10382188B2 (en) 2016-01-21 2019-08-13 Mitsubishi Electric Corporation Communication system, communication device, and communication method
JP6192847B1 (en) * 2016-01-21 2017-09-06 三菱電機株式会社 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
JP2020098974A (en) * 2018-12-17 2020-06-25 日本電信電話株式会社 Time synchronization route selection device, and time synchronization route selection method
JP7283069B2 (en) 2018-12-17 2023-05-30 日本電信電話株式会社 Time-synchronized path selection device and time-synchronized path selection method
US11303376B2 (en) 2019-05-28 2022-04-12 Fujitsu Limited Information processing apparatus and time synchronization method
JP7193004B2 (en) 2019-09-09 2022-12-20 日本電気株式会社 Slave device, time synchronization system, time synchronization method, and time synchronization program
JPWO2021049406A1 (en) * 2019-09-09 2021-03-18
WO2021049406A1 (en) * 2019-09-09 2021-03-18 日本電気株式会社 Slave device, time synchronization system, time synchronization method, and time synchronization program
JP2021072056A (en) * 2019-11-01 2021-05-06 オムロン株式会社 Control system, control system communication control method, and controller
WO2021084771A1 (en) * 2019-11-01 2021-05-06 オムロン株式会社 Control system, communication control method of control system, and control device
JP7404789B2 (en) 2019-11-01 2023-12-26 オムロン株式会社 Control system, communication control method for control system, and control device
US12009914B2 (en) 2019-11-01 2024-06-11 Omron Corporation Control system, communication control method of control system, and control device
WO2023233588A1 (en) * 2022-06-01 2023-12-07 三菱電機株式会社 Time synchronization device, time synchronization method, and time synchronization program

Also Published As

Publication number Publication date
JP5495323B2 (en) 2014-05-21

Similar Documents

Publication Publication Date Title
JP5495323B2 (en) Time synchronization device via network
JP5307905B2 (en) Method for processing distributed data having a type selected to synchronize communication nodes of a data packet network and associated device
JP5561426B2 (en) Synchronization system, synchronization method, first synchronization device, second synchronization device, and computer program
EP2342850B1 (en) A method for synchronizing clocks in a communication network
JP5358813B2 (en) Network node, time synchronization method, and network system
JP2010527193A (en) Method and network component for synchronizing a clock of a network component to a clock of another network component
US8018972B2 (en) Timing over packet performance
JP6147467B2 (en) Frame transmission apparatus and synchronization method
US20140029604A1 (en) Communicating time information in a network to enable synchronization
WO2015116980A1 (en) Network clock skew estimation and calibration
WO2011160595A1 (en) Method, slave clock node and system for selecting master clock node based on precision time protocol (ptp) and link quality
US9651984B2 (en) Feed-forward time transfer mechanism for time synchronization
JP6036179B2 (en) Communication device and synchronization method
US20230051166A1 (en) Delay Sensitive Network Estimation System
WO2015125439A1 (en) Communication system, wireless communication apparatus, and wireless communication method
JP6170456B2 (en) Slave node, control server, time synchronization destination determination method and computer program
Fontanelli et al. Performance analysis of a clock state estimator for PROFINET IO IRT synchronization
JP2017005378A (en) Estimation device, system, method, and program
CN107070815A (en) Sync message queuing delay control method and device in a kind of SDN
JP5045624B2 (en) Network load estimation method for estimating network queue delay time and line usage rate
JP2012004925A (en) Communication apparatus and clock synchronizing method
US12040886B2 (en) System and method of clock recovery in a packet-compatible network
JP5391964B2 (en) Clock synchronization method and packet communication system
WO2016177240A1 (en) Frequency synchronization method and device
US20220131681A1 (en) Communication control apparatus and communication control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130304

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130408

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20130520

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140115

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140205

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140227

R150 Certificate of patent or registration of utility model

Ref document number: 5495323

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees