JPWO2020188703A1 - Time sync device, communication system, time sync method and time sync program - Google Patents

Time sync device, communication system, time sync method and time sync program Download PDF

Info

Publication number
JPWO2020188703A1
JPWO2020188703A1 JP2019545379A JP2019545379A JPWO2020188703A1 JP WO2020188703 A1 JPWO2020188703 A1 JP WO2020188703A1 JP 2019545379 A JP2019545379 A JP 2019545379A JP 2019545379 A JP2019545379 A JP 2019545379A JP WO2020188703 A1 JPWO2020188703 A1 JP WO2020188703A1
Authority
JP
Japan
Prior art keywords
unit
reception monitoring
message
request message
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019545379A
Other languages
Japanese (ja)
Other versions
JP6612006B1 (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of JP6612006B1 publication Critical patent/JP6612006B1/en
Publication of JPWO2020188703A1 publication Critical patent/JPWO2020188703A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Abstract

第1の装置が、複数の第1の装置を接続可能な中継装置を介して第2の装置との間で伝搬遅延時間計測を実施する第1の装置である時刻同期装置であって、第2の装置に伝搬遅延時間計測の要求メッセージを送信するフレーム送信部(32)と、要求メッセージの応答である応答メッセージを受信するフレーム受信部(31)と、受信監視タイマ(340)を有し、フレーム送信部(32)が要求メッセージを送信したときに受信監視タイマ(340)を起動し、フレーム受信部(31)が応答メッセージを受信する前に受信監視タイマ(340)がタイムアウトした場合、フレーム送信部(32)に要求メッセージの再送を指示する受信監視部(34)と、を備え、受信監視タイマ(340)のタイムアウト設定値をtO、中継装置に接続される時刻同期装置の接続数をN、フレーム送信部(32)の要求メッセージの送信周期をTとし、tO≦T/Nである。The first device is a time synchronization device, which is a first device that measures propagation delay time with a second device via a relay device to which a plurality of first devices can be connected. It has a frame transmission unit (32) for transmitting a request message for propagation delay time measurement to the second device, a frame reception unit (31) for receiving a response message which is a response of the request message, and a reception monitoring timer (340). , When the reception monitoring timer (340) is activated when the frame transmitting unit (32) transmits the request message, and the reception monitoring timer (340) times out before the frame receiving unit (31) receives the response message. A reception monitoring unit (34) that instructs the frame transmission unit (32) to retransmit the request message is provided, the timeout setting value of the reception monitoring timer (340) is set to tO, and the number of connections of the time synchronization device connected to the relay device. Is N, the transmission cycle of the request message of the frame transmission unit (32) is T, and tO ≦ T / N.

Description

本発明は、時刻同期を行う時刻同期装置、通信システム、時刻同期方法および時刻同期プログラムに関する。 The present invention relates to a time synchronization device, a communication system, a time synchronization method, and a time synchronization program that perform time synchronization.

従来、ネットワークで接続された複数の機器が連携して動作するシステムでは、複数の機器の制御タイミングを合わせるため、各機器の時刻を同期させることが必要である。機器間の時刻を同期させる規格として、IEEE(The Institute of Electrical and Electronics Engineers)1588のように、複数の機器から成るマスタスレーブシステムにおいて、ネットワーク上の複数の機器の時刻を同期させる時刻同期技術がある(非特許文献1)。 Conventionally, in a system in which a plurality of devices connected by a network operate in cooperation with each other, it is necessary to synchronize the time of each device in order to match the control timing of the plurality of devices. As a standard for synchronizing the time between devices, a time synchronization technology that synchronizes the time of multiple devices on the network in a master-slave system consisting of multiple devices, such as IEEE (The Institute of Electrical and Electronics Engineers) 1588, is used. Yes (Non-Patent Document 1).

IEEE1588では、機器間の伝搬路の通信遅延時間を計測し、時刻の同期を実施することが規定されている。伝搬路の通信遅延時間計測は、各機器が一定周期で実施する。伝搬路の通信遅延計測は、遅延計測を要求する機器であるRequesterが、DelayReqメッセージを送信し、DelayReqメッセージを受信した機器であるResponderが、DelayRespメッセージにDelayReq受信時のタイムスタンプを格納してRequesterへ送信することなどによって実施される。 IEEE1588 stipulates that the communication delay time of the propagation path between devices is measured and the time is synchronized. The communication delay time of the propagation path is measured by each device at a fixed cycle. In the communication delay measurement of the propagation path, the Requester, which is a device requesting the delay measurement, sends a DelayReq message, and the Responder, which is a device that receives the DelayReq message, stores the time stamp at the time of receiving the DelayReq in the DelayResp message and the Requester. It is carried out by sending to.

IEEE Std 1588-2008(IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems)IEEE Std 1588-2008 (IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems)

しかしながら、IEEE1588に非対応のスイッチングハブが存在し、IEEE1588に非対応のスイッチングハブに複数のRequesterが接続されているシステムでは、1台のResponderが、伝搬遅延時間計測を実施する複数のRequesterが送信するDelayReqメッセージを複数個受信する。Responderは、DelayReqメッセージ受信時のタイムスタンプを送信元ごとに複数個保持する必要があるが、タイムスタンプを保持する数には制限がある。Responderは、タイムスタンプを保持することができたRequesterにのみDelayRespメッセージを送信する。そのため、ある周期では、RequesterによってはDelayRespメッセージを受信できず、伝搬遅延時間計測を完了できない、という問題があった。また、各Requesterは、一定周期でDelayReqメッセージを送信する。そのため、あるRequesterは、DelayRespメッセージを受信できなかった次の周期でもDelayRespメッセージを受信できない可能性があり、伝搬遅延時間計測を完了することができず時刻同期できない、という問題があった。 However, in a system in which a switching hub that does not support IECEE1588 exists and a plurality of requesters are connected to the switching hub that does not support IECEE1588, one Responder transmits by a plurality of Requesters that perform propagation delay time measurement. Receives a plurality of DelayReq messages. The Responder needs to hold a plurality of time stamps at the time of receiving the DelayReq message for each source, but the number of time stamps held is limited. The Responder sends a DelayResp message only to the Requester who was able to retain the time stamp. Therefore, there is a problem that the DelayResp message cannot be received by the Requester in a certain cycle, and the propagation delay time measurement cannot be completed. In addition, each Requester transmits a DelayReq message at regular intervals. Therefore, a certain requester may not be able to receive the DelayResp message even in the next cycle in which the DelayResp message could not be received, and there is a problem that the propagation delay time measurement cannot be completed and the time cannot be synchronized.

本発明は、上記に鑑みてなされたものであって、複数の時刻同期装置が中継装置に接続された通信システムにおいても時刻同期可能な時刻同期装置を得ることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to obtain a time synchronization device capable of time synchronization even in a communication system in which a plurality of time synchronization devices are connected to a relay device.

上述した課題を解決し、目的を達成するために、本発明は、第1の装置が、複数の第1の装置を接続可能な中継装置を介して第2の装置との間で伝搬遅延時間計測を実施する第1の装置である時刻同期装置である。時刻同期装置は、第2の装置に伝搬遅延時間計測の要求メッセージを送信する送信部と、要求メッセージの応答である第2の装置からの応答メッセージを受信する受信部と、受信監視タイマを有し、送信部が要求メッセージを送信したときに受信監視タイマを起動し、受信部が応答メッセージを受信する前に受信監視タイマがタイムアウトした場合、送信部に要求メッセージの再送を指示する受信監視部と、を備える。受信監視タイマのタイムアウト設定値をtO、中継装置に接続される時刻同期装置の接続数をN、送信部の要求メッセージの送信周期をTとし、tO≦T/Nであることを特徴とする。 In order to solve the above-mentioned problems and achieve the object, the present invention has a propagation delay time between the first device and the second device via a relay device to which a plurality of first devices can be connected. It is a time synchronization device which is a first device for performing measurement. The time synchronization device has a transmission unit that transmits a request message for measuring the propagation delay time to the second device, a reception unit that receives a response message from the second device that is a response to the request message, and a reception monitoring timer. Then, when the transmitting unit sends the request message, the reception monitoring timer is activated, and if the reception monitoring timer times out before the receiving unit receives the response message, the receiving monitoring unit instructs the transmitting unit to retransmit the request message. And. The time-out setting value of the reception monitoring timer is tO, the number of connections of the time synchronization device connected to the relay device is N, the transmission cycle of the request message of the transmission unit is T, and tO ≦ T / N.

本発明にかかる時刻同期装置は、複数の時刻同期装置が中継装置に接続された通信システムにおいても時刻同期できる、という効果を奏する。 The time synchronization device according to the present invention has an effect that time synchronization can be performed even in a communication system in which a plurality of time synchronization devices are connected to a relay device.

実施の形態1に係る通信システムの構成例を示す図The figure which shows the configuration example of the communication system which concerns on Embodiment 1. 実施の形態1に係る通信システムの他の構成例を示す図The figure which shows the other configuration example of the communication system which concerns on Embodiment 1. 実施の形態1に係る同期スレーブの構成例を示す図The figure which shows the configuration example of the synchronous slave which concerns on Embodiment 1. 実施の形態1に係る同期スレーブの受信監視部の監視動作を示すフローチャートA flowchart showing a monitoring operation of the reception monitoring unit of the synchronous slave according to the first embodiment. 実施の形態1に係る通信システムにおいて、同期スレーブが伝搬遅延時間計測を行うときの、各装置のメッセージの送受信のタイミングを示すシーケンス図In the communication system according to the first embodiment, a sequence diagram showing the timing of sending and receiving messages of each device when the synchronous slave measures the propagation delay time. 実施の形態1に係る同期スレーブを実現するハードウェアの一例を示す図The figure which shows an example of the hardware which realizes the synchronous slave which concerns on Embodiment 1. 実施の形態2に係る通信システムの構成例を示す図The figure which shows the configuration example of the communication system which concerns on Embodiment 2. 実施の形態2に係る通信システムの他の構成例を示す図The figure which shows the other configuration example of the communication system which concerns on Embodiment 2. 実施の形態2に係る同期スレーブの構成例を示す図The figure which shows the configuration example of the synchronous slave which concerns on Embodiment 2. 実施の形態2に係る同期スレーブの受信監視部がタイムアウト設定値を算出する動作を示すフローチャートA flowchart showing an operation in which the reception monitoring unit of the synchronous slave according to the second embodiment calculates a timeout set value.

以下に、本発明の実施の形態に係る時刻同期装置、通信システム、時刻同期方法および時刻同期プログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, the time synchronization device, the communication system, the time synchronization method, and the time synchronization program according to the embodiment of the present invention will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.

実施の形態1.
図1は、本発明の実施の形態1に係る通信システム4の構成例を示す図である。通信システム4は、基準となる時刻を持つ同期マスタ1と、IEEE1588に非対応のスイッチングハブ2と、同期マスタ1に同期する同期スレーブ3a,3bと、を備える。図1に示す通信システム4では、同期スレーブ3a,3bが同期マスタ1との間の伝搬路の伝搬遅延時間を計測するRequesterとなり、同期マスタ1がResponderとなる。同期マスタ1は、IEEE1588の規格と同一の動作を実施する。同期マスタ1は、同期スレーブ3a,3bから送信された伝搬遅延時間計測のDelayReqメッセージを受信した場合、DelayReqメッセージの応答であるDelayRespメッセージを送信する。IEEE1588非対応のスイッチングハブ2は、受信するフレームの宛先アドレスに従い、フレーム転送を実施する中継装置である。スイッチングハブ2は、3つ以上の同期スレーブと接続することも可能である。同期スレーブ3a,3bは、スイッチングハブ2を介して同期マスタ1との間で伝搬遅延時間計測を実施する。以降の説明において、Requesterを第1の装置と称し、Responderを第2の装置と称することがある。また、Requesterである第1の装置を時刻同期装置と称することがある。
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a communication system 4 according to a first embodiment of the present invention. The communication system 4 includes a synchronization master 1 having a reference time, a switching hub 2 that does not support IECEE1588, and synchronization slaves 3a and 3b that synchronize with the synchronization master 1. In the communication system 4 shown in FIG. 1, the synchronization slaves 3a and 3b serve as a requester for measuring the propagation delay time of the propagation path to and from the synchronization master 1, and the synchronization master 1 serves as the responder. The synchronization master 1 performs the same operation as the standard of IECEE1588. When the synchronization master 1 receives the DelayReq message for measuring the propagation delay time transmitted from the synchronization slaves 3a and 3b, the synchronization master 1 transmits a DelayResp message which is a response of the DelayReq message. The switching hub 2 that does not support IECEE1588 is a relay device that performs frame transfer according to the destination address of the received frame. The switching hub 2 can also be connected to three or more synchronous slaves. The synchronization slaves 3a and 3b measure the propagation delay time with the synchronization master 1 via the switching hub 2. In the following description, the Requester may be referred to as a first device, and the Responder may be referred to as a second device. Further, the first device which is a requester may be referred to as a time synchronization device.

なお、通信システムの構成によっては、同期スレーブがResponderになることもある。図2は、実施の形態1に係る通信システム4aの構成例を示す図である。通信システム4aは、同期マスタ1と、スイッチングハブ2と、同期スレーブ3cと、同期スレーブ3cに同期する同期スレーブ3a,3bと、を備える。図2に示す通信システム4aでは、同期スレーブ3a,3bが同期スレーブ3cとの間の伝搬路の伝搬遅延時間を計測するRequesterとなり、同期スレーブ3cがResponderとなる。図2に示す通信システム4aにおいて、同期スレーブ3cは、IEEE1588の手順に従って、同期マスタ1との間の伝搬路の伝搬遅延時間を計測することができる。本実施の形態では、図1に示す通信システム4を例にして説明する。 Depending on the configuration of the communication system, the synchronous slave may be the Responder. FIG. 2 is a diagram showing a configuration example of the communication system 4a according to the first embodiment. The communication system 4a includes a synchronization master 1, a switching hub 2, a synchronization slave 3c, and synchronization slaves 3a and 3b that synchronize with the synchronization slave 3c. In the communication system 4a shown in FIG. 2, the synchronous slaves 3a and 3b serve as a requester for measuring the propagation delay time of the propagation path to and from the synchronous slave 3c, and the synchronous slave 3c serves as a responder. In the communication system 4a shown in FIG. 2, the synchronization slave 3c can measure the propagation delay time of the propagation path to and from the synchronization master 1 according to the procedure of IECEE1588. In this embodiment, the communication system 4 shown in FIG. 1 will be described as an example.

同期スレーブ3a,3bの構成について説明する。図3は、実施の形態1に係る同期スレーブ3aの構成例を示す図である。同期スレーブ3a,3bは同様の構成のため、同期スレーブ3aを例にして説明する。同期スレーブ3aは、フレーム受信部31と、フレーム送信部32と、時刻同期部33と、受信監視部34と、を備える。 The configuration of the synchronous slaves 3a and 3b will be described. FIG. 3 is a diagram showing a configuration example of the synchronous slave 3a according to the first embodiment. Since the synchronous slaves 3a and 3b have the same configuration, the synchronous slave 3a will be described as an example. The synchronization slave 3a includes a frame reception unit 31, a frame transmission unit 32, a time synchronization unit 33, and a reception monitoring unit 34.

フレーム受信部31は、フレーム解析部310を有する受信部である。フレーム解析部310は、スイッチングハブ2から受信したフレームを解析する。フレーム解析部310は、受信したフレームが時刻同期に関連するメッセージの場合、受信フレームに含まれていた受信データを時刻同期部33に出力する。同期スレーブ3aがRequesterの場合、フレーム解析部310は、時刻同期に関連するメッセージのうち同期スレーブ3a宛のDelayRespメッセージを受信すると、受信監視部34にDelayRespメッセージを受信した旨を通知する。DelayRespメッセージは、Responderである同期マスタ1が、Requesterである同期スレーブ3aから受信したDelayReqメッセージへの応答のメッセージである。以降の説明において、DelayRespメッセージを応答メッセージと称することがある。また、DelayReqメッセージは、Requesterである同期スレーブ3aが、Responderである同期マスタ1に伝搬遅延時間計測を要求するメッセージである。以降の説明において、DelayReqメッセージを要求メッセージと称することがある。 The frame receiving unit 31 is a receiving unit having a frame analysis unit 310. The frame analysis unit 310 analyzes the frame received from the switching hub 2. When the received frame is a message related to time synchronization, the frame analysis unit 310 outputs the received data included in the received frame to the time synchronization unit 33. When the synchronization slave 3a is a requester, when the frame analysis unit 310 receives the DayResp message addressed to the synchronization slave 3a among the messages related to time synchronization, the frame analysis unit 310 notifies the reception monitoring unit 34 that the DeliveryResp message has been received. The DelayResp message is a response message to the DelayReq message received by the sync master 1 which is the responder from the sync slave 3a which is the requester. In the following description, the DelayResp message may be referred to as a response message. The DelayReq message is a message in which the synchronous slave 3a, which is the requester, requests the synchronization master 1, which is the responder, to measure the propagation delay time. In the following description, the DelayReq message may be referred to as a request message.

同期スレーブ3aがResponderの場合、フレーム解析部310は、時刻同期に関連するメッセージのうちDelayReqメッセージを受信すると、受信時点のタイムスタンプ値を保持する。フレーム解析部310は、保持したタイムスタンプ値、DelayReqメッセージに含まれる情報であって送信元であるRequesterを示すDelayReqメッセージの送信元情報、およびDelayReqメッセージを受信した旨を、フレーム送信部32に通知する。 When the synchronization slave 3a is a Reader, the frame analysis unit 310 holds the time stamp value at the time of reception when it receives the DelayReq message among the messages related to time synchronization. The frame analysis unit 310 notifies the frame transmission unit 32 of the retained time stamp value, the source information of the DelayReq message indicating the requester which is the information included in the DelayReq message and is the source, and the fact that the DelayReq message has been received. To do.

フレーム送信部32は、送信周期タイマ320を有する送信部である。送信周期タイマ320は、フレーム送信部32がDelayReqメッセージを送信する周期である送信周期Tでタイムアウトするタイマである。同期スレーブ3aがRequesterの場合、フレーム送信部32は、送信周期タイマ320が送信周期Tでタイムアウトすると、タイムアウト時、スイッチングハブ2にDelayReqメッセージを送信する。フレーム送信部32は、DelayReqメッセージを送信すると、DelayReqメッセージを送信した旨を時刻同期部33および受信監視部34に通知する。また、フレーム送信部32は、受信監視部34からDelayReqメッセージの再送指示を受けると、DelayReqメッセージを送信し、送信周期タイマ320を再起動する。 The frame transmission unit 32 is a transmission unit having a transmission cycle timer 320. The transmission cycle timer 320 is a timer that times out in the transmission cycle T, which is the cycle in which the frame transmission unit 32 transmits the DelayReq message. When the synchronous slave 3a is the Requester, the frame transmission unit 32 transmits a DelayReq message to the switching hub 2 at the time-out when the transmission cycle timer 320 times out in the transmission cycle T. When the frame transmission unit 32 transmits the DelayReq message, the frame transmission unit 32 notifies the time synchronization unit 33 and the reception monitoring unit 34 that the DelayReq message has been transmitted. Further, when the frame transmission unit 32 receives an instruction to retransmit the DeliveryReq message from the reception monitoring unit 34, the frame transmission unit 32 transmits the DeliveryReq message and restarts the transmission cycle timer 320.

同期スレーブ3aがResponderの場合、フレーム送信部32は、フレーム受信部31から、タイムスタンプ値、DelayReqメッセージの送信元情報、およびDelayReqメッセージを受信した旨が通知されると、タイムスタンプ値、およびDelayReqメッセージの送信元情報をDelayRespメッセージに格納して送信する。 When the synchronous slave 3a is a Reader, the frame transmitting unit 32 is notified by the frame receiving unit 31 that the time stamp value, the source information of the DelayReq message, and the DelayReq message have been received, and the time stamp value and the DelayReq are notified. The source information of the message is stored in the DelayResp message and transmitted.

時刻同期部33は、時刻カウンタ330を有する。時刻同期部33は、フレーム受信部31から受信データを取得した場合、取得した時点の時刻カウンタ330の時刻カウンタ値を記録する。時刻同期部33は、フレーム送信部32からDelayReqメッセージが送信された旨が通知された場合、通知された時点の時刻カウンタ330の時刻カウンタ値を記録する。時刻同期部33は、記録した時刻カウンタ値とフレーム受信部31から取得した受信データとを用いて同期マスタ1の時刻を算出し、時刻カウンタ330を同期マスタ1に同期させる。 The time synchronization unit 33 has a time counter 330. When the received data is acquired from the frame receiving unit 31, the time synchronization unit 33 records the time counter value of the time counter 330 at the time of acquisition. When the frame transmission unit 32 notifies that the DelayReq message has been transmitted, the time synchronization unit 33 records the time counter value of the time counter 330 at the time of notification. The time synchronization unit 33 calculates the time of the synchronization master 1 using the recorded time counter value and the reception data acquired from the frame reception unit 31, and synchronizes the time counter 330 with the synchronization master 1.

例えば、フレーム送信部32がDelayReqメッセージを送信した時刻をt1、同期マスタ1がDelayReqメッセージを受信した時刻をt2、同期マスタ1がDelayRespメッセージを送信した時刻をt3、フレーム受信部31がDelayRespメッセージを受信した時刻をt4とする。同期スレーブ3aは、同期マスタ1がt2およびt3の情報をDelayRespメッセージに含めることで、t2およびt3の情報を取得することができる。時刻同期部33は、((t4−t3)+(t2−t1))/2から片道の通信遅延時間を算出し、算出した片道の通信遅延時間を用いて同期マスタ1の時刻を算出し、時刻カウンタ330を同期マスタ1に同期させる。 For example, the time when the frame transmission unit 32 transmits the DelayReq message is t1, the time when the synchronization master 1 receives the DelayReq message is t2, the time when the synchronization master 1 transmits the DelayResp message is t3, and the frame reception unit 31 transmits the DelayResp message. Let t4 be the time of reception. The synchronization slave 3a can acquire the information of t2 and t3 by including the information of t2 and t3 in the DelayResp message by the synchronization master 1. The time synchronization unit 33 calculates the one-way communication delay time from ((t4-t3) + (t2-t1)) / 2, and calculates the time of the synchronization master 1 using the calculated one-way communication delay time. The time counter 330 is synchronized with the synchronization master 1.

受信監視部34は、受信監視タイマ340を有する。受信監視タイマ340は、DelayRespメッセージの受信を監視するためのタイマである。受信監視部34は、フレーム送信部32がDelayReqメッセージを送信したときに受信監視タイマ340を起動する。受信監視部34は、フレーム受信部31がDelayRespメッセージを受信する前に受信監視タイマ340がタイムアウトした場合、フレーム送信部32にDelayReqメッセージの再送を指示する。受信監視タイマ340のタイムアウト設定値をtO、スイッチングハブ2に接続されるRequesterである同期スレーブ3a,3bの接続数をN、フレーム送信部32がDelayReqメッセージを送信する送信周期をTとすると、タイムアウト設定値tOは、tO≦T/Nとなる値である。タイムアウト設定値tOについては、例えば、通信システム4を管理するユーザが、あらかじめtO≦T/Nとなる値を演算した結果を受信監視部34に設定しておく。 The reception monitoring unit 34 has a reception monitoring timer 340. The reception monitoring timer 340 is a timer for monitoring the reception of the DelayResp message. The reception monitoring unit 34 activates the reception monitoring timer 340 when the frame transmission unit 32 transmits a DelayReq message. If the reception monitoring timer 340 times out before the frame receiving unit 31 receives the DelayResp message, the reception monitoring unit 34 instructs the frame transmitting unit 32 to retransmit the DelayReq message. When the timeout setting value of the reception monitoring timer 340 is tO, the number of connections of the synchronous slaves 3a and 3b which are the requesters connected to the switching hub 2 is N, and the transmission cycle in which the frame transmission unit 32 transmits the DelayReq message is T, the timeout is set. The set value tO is a value at which tO ≦ T / N. Regarding the timeout set value tO, for example, the user who manages the communication system 4 sets the result of calculating the value of tO ≦ T / N in advance in the reception monitoring unit 34.

つづいて、同期スレーブ3a,3bの動作について説明する。図4は、実施の形態1に係る同期スレーブ3aの受信監視部34の監視動作を示すフローチャートである。同期スレーブ3a,3bは同様の動作を行うため、同期スレーブ3aを例にして説明する。 Next, the operations of the synchronous slaves 3a and 3b will be described. FIG. 4 is a flowchart showing a monitoring operation of the reception monitoring unit 34 of the synchronous slave 3a according to the first embodiment. Since the synchronous slaves 3a and 3b perform the same operation, the synchronous slave 3a will be described as an example.

受信監視部34は、フレーム送信部32からのDelayReqメッセージを送信した旨の通知の有無を確認する(ステップS11)。受信監視部34は、フレーム送信部32からDelayReqメッセージを送信した旨の通知が無い場合(ステップS11:No)、フレーム送信部32からDelayReqメッセージを送信した旨の通知が有るまで待機する。受信監視部34は、フレーム送信部32からDelayReqメッセージを送信した旨の通知が有った場合(ステップS11:Yes)、受信監視タイマ340を起動する(ステップS12)。 The reception monitoring unit 34 confirms whether or not there is a notification from the frame transmission unit 32 that the DelayReq message has been transmitted (step S11). When there is no notification from the frame transmission unit 32 that the DelayReq message has been transmitted (step S11: No), the reception monitoring unit 34 waits until the frame transmission unit 32 notifies that the DelayReq message has been transmitted. The reception monitoring unit 34 activates the reception monitoring timer 340 (step S12) when the frame transmission unit 32 notifies that the DelayReq message has been transmitted (step S11: Yes).

受信監視部34は、受信監視タイマ340を起動すると、受信監視タイマ340のタイムアウトを確認する(ステップS13)。受信監視部34は、受信監視タイマ340がタイムアウトした場合(ステップS13:Yes)、フレーム送信部32にDelayReqメッセージの再送を指示する(ステップS14)。 When the reception monitoring unit 34 activates the reception monitoring timer 340, the reception monitoring unit 34 confirms the timeout of the reception monitoring timer 340 (step S13). When the reception monitoring timer 340 times out (step S13: Yes), the reception monitoring unit 34 instructs the frame transmission unit 32 to retransmit the DelayReq message (step S14).

受信監視部34は、受信監視タイマ340がタイムアウトしていない場合(ステップS13:No)、フレーム受信部31からのDelayRespメッセージを受信した旨の通知の有無を確認する(ステップS15)。受信監視部34は、フレーム受信部31からDelayRespメッセージを受信した旨の通知が有った場合(ステップS15:Yes)、受信監視タイマ340を停止し、リセットする(ステップS16)。受信監視部34は、フレーム受信部31からDelayRespメッセージを受信した旨の通知が無い場合(ステップS15:No)、ステップS13の動作に戻り、受信監視タイマ340のタイムアウトを確認する(ステップS13)。 When the reception monitoring timer 340 has not timed out (step S13: No), the reception monitoring unit 34 confirms whether or not there is a notification that the DeliveryResp message has been received from the frame receiving unit 31 (step S15). When the reception monitoring unit 34 receives a notification from the frame receiving unit 31 that the DeliveryResp message has been received (step S15: Yes), the reception monitoring unit 34 stops and resets the reception monitoring timer 340 (step S16). When there is no notification from the frame receiving unit 31 that the DelayResp message has been received (step S15: No), the reception monitoring unit 34 returns to the operation of step S13 and confirms the timeout of the reception monitoring timer 340 (step S13).

同期スレーブ3a,3bが伝搬遅延時間計測を行うときの、各装置のメッセージの送受信のタイミングについて説明する。図5は、実施の形態1に係る通信システム4において、同期スレーブ3a,3bが伝搬遅延時間計測を行うときの、各装置のメッセージの送受信のタイミングを示すシーケンス図である。ここでは、Responderである同期マスタ1は、DelayReqメッセージを受信したとき、タイムスタンプ値を1つのみ保持できるものとする。 The timing of sending and receiving messages of each device when the synchronous slaves 3a and 3b measure the propagation delay time will be described. FIG. 5 is a sequence diagram showing the timing of transmitting and receiving messages of each device when the synchronous slaves 3a and 3b measure the propagation delay time in the communication system 4 according to the first embodiment. Here, it is assumed that the synchronization master 1 which is a Responder can hold only one time stamp value when receiving the DelayReq message.

Requesterである同期スレーブ3a,3bは、伝搬遅延時間計測を実施するため、DelayReqメッセージを送信する。同期スレーブ3a,3bは、DelayReqメッセージを送信すると、送信周期タイマ320および受信監視タイマ340を起動する(ステップS21)。 The synchronous slaves 3a and 3b, which are requesters, transmit a DelayReq message in order to measure the propagation delay time. When the synchronous slaves 3a and 3b transmit the DelayReq message, the synchronous slaves 3a and 3b activate the transmission cycle timer 320 and the reception monitoring timer 340 (step S21).

図5に示すシーケンス図の以降の説明において、同期スレーブ3aが送信するDelayReqメッセージをDelayReqメッセージ3aとし、同期スレーブ3bが送信するDelayReqメッセージをDelayReqメッセージ3bとし、同期マスタ1が同期スレーブ3aに送信するDelayRespメッセージをDelayRespメッセージ3aとし、同期マスタ1が同期スレーブ3bに送信するDelayRespメッセージをDelayRespメッセージ3bとする。 In the following description of the sequence diagram shown in FIG. 5, the DelayReq message transmitted by the synchronous slave 3a is referred to as the DelayReq message 3a, the DelayReq message transmitted by the synchronous slave 3b is referred to as the DelayReq message 3b, and the synchronous master 1 transmits to the synchronous slave 3a. The DelayResp message is referred to as a DelayResp message 3a, and the DelayResp message transmitted by the synchronization master 1 to the synchronization slave 3b is referred to as a DelayResp message 3b.

Responderである同期マスタ1は、同期スレーブ3bからのDelayReqメッセージ3bを先に受信し、受信時のタイムスタンプを保持する。同期マスタ1は、直後に受信した同期スレーブ3aからのDelayReqメッセージ3aを無視する。同期マスタ1は、同期スレーブ3bにDelayRespメッセージ3bを送信する(ステップS22)。同期スレーブ3bは、DelayRespメッセージ3bを受信すると、受信監視タイマ340を停止し、リセットする(ステップS23)。 The synchronization master 1 which is a receiver receives the DelayReq message 3b from the synchronization slave 3b first, and retains the time stamp at the time of reception. The synchronization master 1 ignores the DelayReq message 3a from the synchronization slave 3a received immediately afterwards. The synchronization master 1 transmits a DelayResp message 3b to the synchronization slave 3b (step S22). When the synchronous slave 3b receives the DelayResp message 3b, the synchronous slave 3b stops and resets the reception monitoring timer 340 (step S23).

同期スレーブ3aは、受信監視タイマ340のタイムアウトにより、DelayReqメッセージ3aを再送し、送信周期タイマ320を再起動する(ステップS24)。同期マスタ1は、同期スレーブ3aからのDelayReqメッセージ3aを受信し、受信時のタイムスタンプを保持する。同期マスタ1は、同期スレーブ3aにDelayRespメッセージ3aを送信する(ステップS25)。同期スレーブ3aは、DelayRespメッセージ3aを受信すると、受信監視タイマ340を停止し、リセットする(ステップS26)。 The synchronous slave 3a retransmits the DelayReq message 3a due to the timeout of the reception monitoring timer 340, and restarts the transmission cycle timer 320 (step S24). The synchronization master 1 receives the DelayReq message 3a from the synchronization slave 3a and retains the time stamp at the time of reception. The synchronization master 1 transmits a DelayResp message 3a to the synchronization slave 3a (step S25). When the synchronous slave 3a receives the DelayResp message 3a, the synchronous slave 3a stops and resets the reception monitoring timer 340 (step S26).

同期スレーブ3bは、送信周期タイマ320がタイムアウトすると、DelayReqメッセージ3bを送信する。同期スレーブ3bは、DelayReqメッセージ3bを送信すると、送信周期タイマ320および受信監視タイマ340を起動する(ステップS27)。同期マスタ1は、同期スレーブ3bからのDelayReqメッセージ3bを受信し、受信時のタイムスタンプを保持する。同期マスタ1は、同期スレーブ3bにDelayRespメッセージ3bを送信する(ステップS28)。同期スレーブ3bは、DelayRespメッセージ3bを受信すると、受信監視タイマ340を停止し、リセットする(ステップS29)。 When the transmission cycle timer 320 times out, the synchronous slave 3b transmits the DelayReq message 3b. When the synchronous slave 3b transmits the DelayReq message 3b, the synchronous slave 3b activates the transmission cycle timer 320 and the reception monitoring timer 340 (step S27). The synchronization master 1 receives the DelayReq message 3b from the synchronization slave 3b and retains the time stamp at the time of reception. The synchronization master 1 transmits a DelayResp message 3b to the synchronization slave 3b (step S28). When the synchronous slave 3b receives the DelayResp message 3b, the synchronous slave 3b stops and resets the reception monitoring timer 340 (step S29).

同期スレーブ3aは、送信周期タイマ320がタイムアウトすると、DelayReqメッセージ3aを送信する。同期スレーブ3aは、DelayReqメッセージ3aを送信すると、送信周期タイマ320および受信監視タイマ340を起動する(ステップS30)。同期マスタ1は、同期スレーブ3aからのDelayReqメッセージ3aを受信し、受信時のタイムスタンプを保持する。同期マスタ1は、同期スレーブ3aにDelayRespメッセージ3aを送信する(ステップS31)。同期スレーブ3aは、DelayRespメッセージ3aを受信すると、受信監視タイマ340を停止し、リセットする(ステップS32)。 When the transmission cycle timer 320 times out, the synchronous slave 3a transmits the DelayReq message 3a. When the synchronous slave 3a transmits the DelayReq message 3a, the synchronous slave 3a activates the transmission cycle timer 320 and the reception monitoring timer 340 (step S30). The synchronization master 1 receives the DelayReq message 3a from the synchronization slave 3a and retains the time stamp at the time of reception. The synchronization master 1 transmits a DelayResp message 3a to the synchronization slave 3a (step S31). When the synchronous slave 3a receives the DelayResp message 3a, the synchronous slave 3a stops and resets the reception monitoring timer 340 (step S32).

通信システム4では、以降、ステップS27からステップS32の動作が繰り返される。これにより、同期スレーブ3aは、受信監視タイマ340のタイムアウトによるDelayReqメッセージの送信時、送信周期タイマ320のタイムアウト待ち状態にある同期スレーブ3bとは送信タイミングが重なることなく、DelayReqメッセージを送信することができる。同期スレーブ3aは、DelayReqメッセージの送信タイミングが同期スレーブ3bと重なることがないため、伝搬遅延時間計測を完了することが可能となり、時刻同期を実施することができる。 In the communication system 4, the operations of steps S27 to S32 are repeated thereafter. As a result, when the synchronous slave 3a transmits the DelayReq message due to the timeout of the reception monitoring timer 340, the synchronous slave 3a can transmit the DelayReq message without overlapping the transmission timing with the synchronous slave 3b waiting for the timeout of the transmission cycle timer 320. it can. Since the synchronization slave 3a does not overlap with the synchronization slave 3b in the transmission timing of the DelayReq message, the propagation delay time measurement can be completed and the time synchronization can be performed.

通信システム4では、スイッチングハブ2に接続されるRequesterである同期スレーブの接続数Nが3以上の場合においても、tO≦T/Nとすることで、伝搬遅延時間計測を完了した同期スレーブと未完了の同期スレーブとでDelayReqメッセージの送信タイミングが重なることがなくなる。この結果、通信システム4では、全ての同期スレーブが伝搬遅延時間計測を完了することが可能となり、時刻同期を実施することができる。 In the communication system 4, even when the number of connections N of the synchronous slaves, which are the requesters connected to the switching hub 2, is 3 or more, by setting tO ≦ T / N, the synchronous slave and the synchronous slave that have completed the propagation delay time measurement are not yet available. The transmission timing of the DelayReq message does not overlap with the completed synchronous slave. As a result, in the communication system 4, all the synchronized slaves can complete the propagation delay time measurement, and the time synchronization can be performed.

つづいて、同期スレーブ3aのハードウェア構成について説明する。同期スレーブ3a,3bは同様の構成のため、同期スレーブ3aを用いて説明する。図6は、実施の形態1に係る同期スレーブ3aを実現するハードウェアの一例を示す図である。同期スレーブ3aは、図6に示したプロセッサ101、記憶装置102、および通信インタフェース103により実現することができる。 Next, the hardware configuration of the synchronous slave 3a will be described. Since the synchronous slaves 3a and 3b have the same configuration, the synchronous slave 3a will be described. FIG. 6 is a diagram showing an example of hardware that realizes the synchronous slave 3a according to the first embodiment. The synchronous slave 3a can be realized by the processor 101, the storage device 102, and the communication interface 103 shown in FIG.

プロセッサ101は、CPU(Central Processing Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、DSP(Digital Signal Processor)ともいう)、システムLSI(Large Scale Integration)などである。記憶装置102は、RAM(Random Access Memory)、ROM(Read Only Memory)、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable Programmable Read Only Memory)、ハードディスクドライブなどである。通信インタフェース103は、同期スレーブ3aにおいて、フレーム受信部31が通信フレームを受信し、フレーム送信部32が通信フレームを送信するための処理回路であり、例えば、ネットワークインタフェースカードである。 The processor 101 is a CPU (Central Processing Unit, central processing unit, processing unit, arithmetic unit, microprocessor, microprocessor, DSP (Digital Signal Processor)), system LSI (Large Scale Integration), and the like. The storage device 102 includes a RAM (Random Access Memory), a ROM (Read Only Memory), an EPROM (Erasable Programmable Read Only Memory), an EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory), a hard disk drive, and the like. The communication interface 103 is a processing circuit for the frame receiving unit 31 to receive the communication frame and the frame transmitting unit 32 to transmit the communication frame in the synchronous slave 3a, and is, for example, a network interface card.

同期スレーブ3aにおいて、時刻同期部33、受信監視部34、フレーム受信部31およびフレーム送信部32において通信インタフェース103で実現される機能以外の部分は、これらの各部として動作するためのプログラムをプロセッサ101が実行することにより実現される。このようなプログラムは記憶装置102に予め格納されている。プロセッサ101は、上記プログラムを記憶装置102から読み出して実行することにより、時刻同期部33、受信監視部34、フレーム受信部31およびフレーム送信部32において通信インタフェース103で実現される機能以外の部分を実現する。 In the synchronization slave 3a, the parts other than the functions realized by the communication interface 103 in the time synchronization unit 33, the reception monitoring unit 34, the frame reception unit 31 and the frame transmission unit 32 are the processors 101 for operating as each of these parts. Is realized by executing. Such a program is stored in the storage device 102 in advance. By reading and executing the above program from the storage device 102, the processor 101 performs parts other than the functions realized by the communication interface 103 in the time synchronization unit 33, the reception monitoring unit 34, the frame reception unit 31 and the frame transmission unit 32. Realize.

上記プログラムは、記憶装置102に予め格納された状態でユーザに提供される形態であってもよいし、コンピュータなどで読み取り可能な記録媒体、例えば、CD(Compact Disc)−ROM、DVD(Digital Versatile Disc)−ROMなどに書き込まれた状態でユーザに供給され、ユーザが記憶装置102にインストールする形態であってもよい。 The program may be provided to the user in a state of being stored in the storage device 102 in advance, or may be a recording medium readable by a computer or the like, for example, a CD (Compact Disc) -ROM, a DVD (Digital Versatile). Disc) -It may be supplied to the user in a state of being written in a ROM or the like, and may be installed by the user in the storage device 102.

以上説明したように、本実施の形態によれば、IEEE1588非対応のスイッチングハブ2が接続された通信システム4において、時刻同期を行う同期スレーブ3a,3bは、DelayReqメッセージを送信するときに受信監視タイマ340を起動する。受信監視タイマ340のタイムアウト設定値をtO、スイッチングハブ2に接続される同期スレーブ3a,3bの接続数をN、同期スレーブ3a,3bのDelayReqメッセージの送信周期をTとし、tO≦T/Nとする。同期スレーブ3a,3bは、タイムアウト設定値tO内に同期マスタ1からDelayRespメッセージを受信しない場合、DelayReqメッセージを再送する。同期スレーブ3a,3bは、再送したDelayReqメッセージで伝搬遅延時間計測ができた場合、DelayReqメッセージを再送した時刻から送信周期Tの間隔でDelayReqメッセージを送信することとした。これにより、同期スレーブ3a,3bは、複数のRequesterである同期スレーブ3a,3bがIEEE1588非対応のスイッチングハブ2が接続された通信システム4においても、伝搬遅延時間の計測をすることができ、時刻同期が可能となる。 As described above, according to the present embodiment, in the communication system 4 to which the switching hub 2 not compatible with IEEE1588 is connected, the synchronization slaves 3a and 3b that perform time synchronization monitor reception when transmitting the DelayReq message. Start the timer 340. The timeout setting value of the reception monitoring timer 340 is tO, the number of connections of the synchronous slaves 3a and 3b connected to the switching hub 2 is N, the transmission cycle of the DelayReq message of the synchronous slaves 3a and 3b is T, and tO≤T / N. To do. If the synchronous slaves 3a and 3b do not receive the DelayResp message from the synchronous master 1 within the timeout set value tO, the synchronous slaves 3a and 3b retransmit the DelayReq message. When the propagation delay time can be measured by the retransmitted DelayReq message, the synchronous slaves 3a and 3b will transmit the DelayReq message at intervals of the transmission cycle T from the time when the DelayReq message is retransmitted. As a result, the synchronous slaves 3a and 3b can measure the propagation delay time even in the communication system 4 in which the synchronous slaves 3a and 3b, which are a plurality of requesters, are connected to the switching hub 2 which does not support IECEE1588. Synchronization is possible.

実施の形態2.
実施の形態2では、Requesterである同期スレーブが、接続数Nをカウントし、タイムアウト設定値tOを自動で算出する。実施の形態1と異なる部分について説明する。
Embodiment 2.
In the second embodiment, the synchronous slave, which is the requester, counts the number of connections N and automatically calculates the timeout set value tO. A part different from the first embodiment will be described.

図7は、実施の形態2に係る通信システム4Aの構成例を示す図である。通信システム4Aは、同期マスタ1と、スイッチングハブ2と、同期マスタ1に同期する同期スレーブ3Aa,3Abと、を備える。図7に示す通信システム4Aでは、同期スレーブ3Aa,3Abが同期マスタ1との間の伝搬路の伝搬遅延時間を計測するRequesterとなり、同期マスタ1がResponderとなる。 FIG. 7 is a diagram showing a configuration example of the communication system 4A according to the second embodiment. The communication system 4A includes a synchronization master 1, a switching hub 2, and synchronization slaves 3Aa and 3Ab that synchronize with the synchronization master 1. In the communication system 4A shown in FIG. 7, the synchronization slaves 3Aa and 3Ab serve as a requester for measuring the propagation delay time of the propagation path to and from the synchronization master 1, and the synchronization master 1 serves as the responder.

なお、通信システムの構成によっては、同期スレーブがResponderになることもある。図8は、実施の形態2に係る通信システム4Aaの構成例を示す図である。通信システム4Aaは、同期マスタ1と、スイッチングハブ2と、同期スレーブ3Acと、同期スレーブ3Acに同期する同期スレーブ3Aa,3Abと、を備える。図8に示す通信システム4Aaでは、同期スレーブ3Aa,3Abが同期スレーブ3Acとの間の伝搬路の伝搬遅延時間を計測するRequesterとなり、同期スレーブ3AcがResponderとなる。図8に示す通信システム4Aaにおいて、同期スレーブ3Acは、IEEE1588の手順に従って、同期マスタ1との間の伝搬路の伝搬遅延時間を計測することができる。本実施の形態では、図7に示す通信システム4Aを例にして説明する。 Depending on the configuration of the communication system, the synchronous slave may be the Responder. FIG. 8 is a diagram showing a configuration example of the communication system 4Aa according to the second embodiment. The communication system 4Aa includes a synchronization master 1, a switching hub 2, a synchronization slave 3Ac, and synchronization slaves 3Aa and 3Ab that synchronize with the synchronization slave 3Ac. In the communication system 4Aa shown in FIG. 8, the synchronous slaves 3Aa and 3Ab serve as a requester for measuring the propagation delay time of the propagation path between the synchronous slaves 3Aa and 3Ab, and the synchronous slave 3Ac serves as a responder. In the communication system 4Aa shown in FIG. 8, the synchronization slave 3Ac can measure the propagation delay time of the propagation path to and from the synchronization master 1 according to the procedure of IECEE1588. In this embodiment, the communication system 4A shown in FIG. 7 will be described as an example.

同期スレーブ3Aa,3Abの構成について説明する。図9は、実施の形態2に係る同期スレーブ3Aaの構成例を示す図である。同期スレーブ3Aa,3Abは同様の構成のため、同期スレーブ3Aaを例にして説明する。同期スレーブ3Aaは、フレーム受信部31Aと、フレーム送信部32と、時刻同期部33と、受信監視部34Aと、を備える。 The configuration of the synchronous slaves 3Aa and 3Ab will be described. FIG. 9 is a diagram showing a configuration example of the synchronous slave 3Aa according to the second embodiment. Since the synchronous slaves 3Aa and 3Ab have the same configuration, the synchronous slave 3Aa will be described as an example. The synchronization slave 3Aa includes a frame reception unit 31A, a frame transmission unit 32, a time synchronization unit 33, and a reception monitoring unit 34A.

フレーム受信部31Aは、フレーム解析部310Aと、テーブル管理部311Aと、カウンタ312Aと、を有する受信部である。 The frame receiving unit 31A is a receiving unit having a frame analysis unit 310A, a table management unit 311A, and a counter 312A.

フレーム解析部310Aは、スイッチングハブ2から受信したフレームを解析する。フレーム解析部310Aは、受信したフレームが時刻同期に関連するメッセージの場合、受信フレームに含まれていた受信データを時刻同期部33に出力する。同期スレーブ3AaがRequesterの場合、フレーム解析部310Aは、時刻同期に関連するメッセージのうち同期スレーブ3Aa宛のDelayRespメッセージを受信すると、受信監視部34AにDelayRespメッセージを受信した旨を通知する。フレーム解析部310Aは、時刻同期に関連するメッセージのうち他のRequesterである同期スレーブから送信されたDelayReqメッセージを受信すると、DelayReqメッセージに含まれる情報であって送信元である同期スレーブを示すRequester識別情報をテーブル管理部311Aに通知する。Requester識別情報は、例えば、MAC(Media Access Control)アドレスなどである。 The frame analysis unit 310A analyzes the frame received from the switching hub 2. When the received frame is a message related to time synchronization, the frame analysis unit 310A outputs the received data included in the received frame to the time synchronization unit 33. When the synchronization slave 3Aa is the Requester, the frame analysis unit 310A notifies the reception monitoring unit 34A that the DeliveryResp message has been received when it receives the DeliveryResp message addressed to the synchronization slave 3Aa among the messages related to time synchronization. When the frame analysis unit 310A receives the DelayReq message transmitted from the synchronization slave which is another Requester among the messages related to the time synchronization, the Requester identification which is the information included in the DelayReq message and indicates the synchronization slave which is the source. Notify the information to the table management unit 311A. The Requester identification information is, for example, a MAC (Media Access Control) address or the like.

同期スレーブ3AaがResponderの場合、フレーム解析部310Aは、時刻同期に関連するメッセージのうちDelayReqメッセージを受信すると、受信時点のタイムスタンプ値を保持する。フレーム解析部310Aは、保持したタイムスタンプ値、DelayReqメッセージに含まれる情報であって送信元であるRequesterを示すDelayReqメッセージの送信元情報、およびDelayReqメッセージを受信した旨を、フレーム送信部32に通知する。 When the synchronization slave 3Aa is a Reader, the frame analysis unit 310A holds the time stamp value at the time of reception when it receives the DelayReq message among the messages related to time synchronization. The frame analysis unit 310A notifies the frame transmission unit 32 of the retained time stamp value, the source information of the DelayReq message indicating the requester which is the information included in the DelayReq message and the source, and the fact that the DelayReq message has been received. To do.

テーブル管理部311Aは、フレーム解析部310Aから通知されたRequester識別情報を、テーブル管理部311Aが有するRequesterテーブルに登録する。テーブル管理部311Aは、Requester識別情報がRequesterテーブルに新規に登録される場合、カウンタ312Aを1カウントアップする。カウンタ312Aのカウンタ値の初期値は1とする。テーブル管理部311Aは、Requesterテーブルに登録されたRequester識別情報について、規定された時間内にフレーム解析部310Aから同一のRequester識別情報が通知されなかった場合、Requesterテーブルから該当するRequester識別情報を削除し、カウンタ312Aを1カウントダウンする。 The table management unit 311A registers the requester identification information notified from the frame analysis unit 310A in the requester table of the table management unit 311A. The table management unit 311A counts up the counter 312A by 1 when the requester identification information is newly registered in the requester table. The initial value of the counter value of the counter 312A is 1. When the same Requester identification information is not notified from the frame analysis unit 310A within the specified time for the Requester identification information registered in the Requester table, the table management unit 311A deletes the corresponding Requester identification information from the Requester table. Then, the counter 312A is counted down by one.

フレーム解析部310Aまたはテーブル管理部311Aは、カウンタ312Aのカウンタ値を受信監視部34Aに通知する。このように、同期スレーブ3Aaにおいて、フレーム受信部31Aは、他のRequesterである同期スレーブが送信するDelayReqメッセージを受信した数によって、スイッチングハブ2に接続されるRequesterである同期スレーブの接続数Nをカウントする。 The frame analysis unit 310A or the table management unit 311A notifies the reception monitoring unit 34A of the counter value of the counter 312A. In this way, in the synchronous slave 3Aa, the frame receiving unit 31A determines the number of connections N of the synchronous slaves that are the requesters connected to the switching hub 2 depending on the number of received DelayReq messages transmitted by the synchronous slaves that are other requesters. Count.

受信監視部34Aは、受信監視タイマ340Aと、タイムアウト値設定部341Aと、を有する。 The reception monitoring unit 34A includes a reception monitoring timer 340A and a timeout value setting unit 341A.

タイムアウト値設定部341Aは、フレーム受信部31Aから通知されたカウンタ312Aのカウンタ値を用いて、受信監視タイマ340Aのタイムアウト設定値tOを算出する。具体的には、タイムアウト値設定部341Aは、カウンタ312Aのカウンタ値を接続数Nとして、tO≦T/Nとなるように、受信監視タイマ340Aのタイムアウト設定値tOを算出する。タイムアウト値設定部341Aは、算出した受信監視タイマ340Aのタイムアウト設定値tOを受信監視タイマ340Aに通知する。 The timeout value setting unit 341A calculates the timeout setting value tO of the reception monitoring timer 340A by using the counter value of the counter 312A notified from the frame reception unit 31A. Specifically, the timeout value setting unit 341A calculates the timeout setting value tO of the reception monitoring timer 340A so that tO ≦ T / N, where the counter value of the counter 312A is the number of connections N. The timeout value setting unit 341A notifies the reception monitoring timer 340A of the calculated timeout setting value tO of the reception monitoring timer 340A.

受信監視タイマ340Aは、DelayRespメッセージの受信を監視するためのタイマである。受信監視タイマ340Aのタイムアウト設定値tOは、タイムアウト値設定部341Aから通知された値となる。 The reception monitoring timer 340A is a timer for monitoring the reception of the DelayResp message. The timeout setting value tO of the reception monitoring timer 340A is the value notified from the timeout value setting unit 341A.

このように、受信監視部34Aは、フレーム受信部31Aでカウントされた接続数N、および送信周期Tを用いて、タイムアウト設定値tOを算出する。 In this way, the reception monitoring unit 34A calculates the timeout set value tO using the number of connections N counted by the frame reception unit 31A and the transmission cycle T.

つづいて、同期スレーブ3Aa,3Abの動作について説明する。図10は、実施の形態2に係る同期スレーブ3Aaの受信監視部34Aがタイムアウト設定値tOを算出する動作を示すフローチャートである。同期スレーブ3Aa,3Abは同様の動作を行うため、同期スレーブ3Aaを例にして説明する。 Next, the operation of the synchronous slaves 3Aa and 3Ab will be described. FIG. 10 is a flowchart showing an operation in which the reception monitoring unit 34A of the synchronous slave 3Aa according to the second embodiment calculates the timeout set value tO. Since the synchronous slaves 3Aa and 3Ab perform the same operation, the synchronous slave 3Aa will be described as an example.

受信監視部34Aにおいて、タイムアウト値設定部341Aは、フレーム受信部31Aからカウンタ312Aのカウンタ値を取得する(ステップS41)。タイムアウト値設定部341Aは、カウンタ312Aのカウンタ値を接続数Nとして、接続数N、およびフレーム送信部32の送信周期タイマ320が送信周期Tを用いて、tO≦T/Nとなるタイムアウト設定値tOを算出する(ステップS42)。タイムアウト値設定部341Aは、算出したタイムアウト設定値tOを受信監視タイマ340Aに通知する(ステップS43)。タイムアウト設定値tOを用いた受信監視部34Aの監視動作は、図4に示す実施の形態1の受信監視部34の監視動作と同様のため、詳細説明については省略する。 In the reception monitoring unit 34A, the timeout value setting unit 341A acquires the counter value of the counter 312A from the frame receiving unit 31A (step S41). The timeout value setting unit 341A uses the counter value of the counter 312A as the number of connections N, the number of connections N, and the transmission cycle timer 320 of the frame transmission unit 32 uses the transmission cycle T, so that the timeout setting value is to ≦ T / N. Calculate toO (step S42). The timeout value setting unit 341A notifies the reception monitoring timer 340A of the calculated timeout setting value tO (step S43). Since the monitoring operation of the reception monitoring unit 34A using the timeout set value tO is the same as the monitoring operation of the reception monitoring unit 34 of the first embodiment shown in FIG. 4, detailed description thereof will be omitted.

同期スレーブ3Aaについては、実施の形態1の同期スレーブ3aと同様、図6に示すハードウェア構成により実現される。 The synchronous slave 3Aa is realized by the hardware configuration shown in FIG. 6, similarly to the synchronous slave 3a of the first embodiment.

以上説明したように、本実施の形態によれば、同期スレーブ3Aa,3Abは、受信した他の同期スレーブからのDelayReqメッセージの数からスイッチングハブ2に接続されるRequesterの接続数Nを求め、接続数Nを用いて受信監視タイマ340Aのタイムアウト設定値tOを算出することとした。これにより、同期スレーブ3Aa,3Abは、受信監視タイマ340Aのタイムアウト設定値tOを自動で算出できる。この結果、ユーザが通信システム4Aの構成の違いによりタイムアウト設定値を算出して変更することなく、容易に通信システム4Aを運用することができる。 As described above, according to the present embodiment, the synchronous slaves 3Aa and 3Ab obtain the connection number N of the requesters connected to the switching hub 2 from the number of DelayReq messages received from the other synchronous slaves, and connect them. It was decided to calculate the timeout set value tO of the reception monitoring timer 340A using the number N. As a result, the synchronous slaves 3Aa and 3Ab can automatically calculate the timeout set value tO of the reception monitoring timer 340A. As a result, the user can easily operate the communication system 4A without calculating and changing the timeout setting value due to the difference in the configuration of the communication system 4A.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configuration shown in the above-described embodiment shows an example of the content of the present invention, can be combined with another known technique, and is one of the configurations without departing from the gist of the present invention. It is also possible to omit or change the part.

1 同期マスタ、2 スイッチングハブ、3a,3b,3c,3Aa,3Ab,3Ac 同期スレーブ、4,4a,4A,4Aa 通信システム、31,31A フレーム受信部、32 フレーム送信部、33 時刻同期部、34,34A 受信監視部、310,310A フレーム解析部、311A テーブル管理部、312A カウンタ、320 送信周期タイマ、330 時刻カウンタ、340,340A 受信監視タイマ、341A タイムアウト値設定部。 1 Synchronous master, 2 Switching hub, 3a, 3b, 3c, 3Aa, 3Ab, 3Ac Synchronous slave, 4,4a, 4A, 4Aa communication system, 31, 31A frame receiver, 32 frame transmitter, 33 Time synchronization, 34 , 34A reception monitoring unit, 310, 310A frame analysis unit, 311A table management unit, 312A counter, 320 transmission cycle timer, 330 time counter, 340, 340A reception monitoring timer, 341A timeout value setting unit.

Claims (5)

第1の装置が、複数の前記第1の装置を接続可能な中継装置を介して第2の装置との間で伝搬遅延時間計測を実施する前記第1の装置である時刻同期装置であって、
前記第2の装置に前記伝搬遅延時間計測の要求メッセージを送信する送信部と、
前記要求メッセージの応答である前記第2の装置からの応答メッセージを受信する受信部と、
受信監視タイマを有し、前記送信部が前記要求メッセージを送信したときに前記受信監視タイマを起動し、前記受信部が前記応答メッセージを受信する前に前記受信監視タイマがタイムアウトした場合、前記送信部に前記要求メッセージの再送を指示する受信監視部と、
を備え、
前記受信監視タイマのタイムアウト設定値をtO、前記中継装置に接続される時刻同期装置の接続数をN、前記送信部の前記要求メッセージの送信周期をTとし、tO≦T/Nであることを特徴とする時刻同期装置。
The first device is a time synchronization device, which is the first device that measures propagation delay time with a second device via a relay device to which a plurality of the first devices can be connected. ,
A transmission unit that transmits the request message for measuring the propagation delay time to the second device, and
A receiver that receives a response message from the second device, which is a response to the request message, and a receiver.
When the reception monitoring timer has a reception monitoring timer, the reception monitoring timer is activated when the transmission unit transmits the request message, and the reception monitoring timer times out before the reception unit receives the response message, the transmission is performed. A reception monitoring unit that instructs the unit to resend the request message,
With
The timeout setting value of the reception monitoring timer is tO, the number of connections of the time synchronization device connected to the relay device is N, the transmission cycle of the request message of the transmission unit is T, and tO ≦ T / N. A featured time synchronizer.
前記送信部は、他の時刻同期装置が送信する要求メッセージを受信した数によって前記中継装置に接続される時刻同期装置の接続数をカウントし、
前記受信監視部は、前記受信部でカウントされた前記接続数、および前記送信周期を用いて、前記タイムアウト設定値を算出する、
ことを特徴とする請求項1に記載の時刻同期装置。
The transmitter counts the number of connections of the time synchronization device connected to the relay device based on the number of request messages transmitted by the other time synchronization device.
The reception monitoring unit calculates the timeout set value using the number of connections counted by the reception unit and the transmission cycle.
The time synchronization device according to claim 1.
請求項1または2に記載の時刻同期装置である第1の装置と、
複数の前記第1の装置を接続可能な中継装置と、
前記第1の装置から送信された伝搬遅延時間計測の要求メッセージを受信した場合、前記要求メッセージの応答である応答メッセージを送信する第2の装置と、
を備えることを特徴とする通信システム。
The first device, which is the time synchronization device according to claim 1 or 2,
A relay device capable of connecting a plurality of the first devices, and
When the request message for measuring the propagation delay time transmitted from the first device is received, the second device that transmits the response message that is the response of the request message and the second device.
A communication system characterized by comprising.
第1の装置が、複数の前記第1の装置を接続可能な中継装置を介して第2の装置との間で伝搬遅延時間計測を実施する前記第1の装置である時刻同期装置の時刻同期方法であって、
送信部が、前記第2の装置に前記伝搬遅延時間計測の要求メッセージを送信する送信ステップと、
受信部が、前記要求メッセージの応答である前記第2の装置からの応答メッセージを受信する受信ステップと、
受信監視部が、受信監視タイマを有し、前記送信部が前記要求メッセージを送信したときに前記受信監視タイマを起動し、前記受信部が前記応答メッセージを受信する前に前記受信監視タイマがタイムアウトした場合、前記送信部に前記要求メッセージの再送を指示する監視ステップと、
を含み、
前記受信監視タイマのタイムアウト設定値をtO、前記中継装置に接続される時刻同期装置の接続数をN、前記送信部の前記要求メッセージの送信周期をTとし、tO≦T/Nであることを特徴とする時刻同期方法。
The time synchronization of the time synchronization device, which is the first device, in which the first device measures the propagation delay time with the second device via a relay device to which a plurality of the first devices can be connected. It ’s a method,
A transmission step in which the transmission unit transmits the request message for measuring the propagation delay time to the second device, and
A receiving step in which the receiving unit receives the response message from the second device, which is the response of the request message,
The reception monitoring unit has a reception monitoring timer, and when the transmitting unit transmits the request message, the reception monitoring timer is activated, and the reception monitoring timer times out before the receiving unit receives the response message. If so, a monitoring step instructing the transmitter to resend the request message, and
Including
The timeout setting value of the reception monitoring timer is tO, the number of connections of the time synchronization device connected to the relay device is N, the transmission cycle of the request message of the transmission unit is T, and tO ≦ T / N. A featured time synchronization method.
第1の装置が、複数の前記第1の装置を接続可能な中継装置を介して第2の装置との間で伝搬遅延時間計測を実施する前記第1の装置である時刻同期装置の時刻同期プログラムであって、
送信部が、前記第2の装置に前記伝搬遅延時間計測の要求メッセージを送信する送信ステップと、
受信部が、前記要求メッセージの応答である前記第2の装置からの応答メッセージを受信する受信ステップと、
受信監視部が、受信監視タイマを有し、前記送信部が前記要求メッセージを送信したときに前記受信監視タイマを起動し、前記受信部が前記応答メッセージを受信する前に前記受信監視タイマがタイムアウトした場合、前記送信部に前記要求メッセージの再送を指示する監視ステップと、
をコンピュータに実行させ、
前記受信監視タイマのタイムアウト設定値をtO、前記中継装置に接続される時刻同期装置の接続数をN、前記送信部の前記要求メッセージの送信周期をTとし、tO≦T/Nであることを特徴とする時刻同期プログラム。
Time synchronization of the time synchronization device, which is the first device, in which the first device measures the propagation delay time with the second device via a relay device to which a plurality of the first devices can be connected. It ’s a program
A transmission step in which the transmission unit transmits the request message for measuring the propagation delay time to the second device, and
A receiving step in which the receiving unit receives the response message from the second device, which is the response of the request message,
The reception monitoring unit has a reception monitoring timer, and when the transmitting unit transmits the request message, the reception monitoring timer is activated, and the reception monitoring timer times out before the receiving unit receives the response message. If so, a monitoring step instructing the transmitter to resend the request message, and
Let the computer run
The timeout setting value of the reception monitoring timer is tO, the number of connections of the time synchronization device connected to the relay device is N, the transmission cycle of the request message of the transmission unit is T, and tO ≦ T / N. A featured time synchronization program.
JP2019545379A 2019-03-18 2019-03-18 Time synchronization apparatus, communication system, time synchronization method, and time synchronization program Active JP6612006B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/011215 WO2020188703A1 (en) 2019-03-18 2019-03-18 Time synchronization device, communication system, time synchronization method, and time synchronization program

Publications (2)

Publication Number Publication Date
JP6612006B1 JP6612006B1 (en) 2019-11-27
JPWO2020188703A1 true JPWO2020188703A1 (en) 2021-04-01

Family

ID=68692057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019545379A Active JP6612006B1 (en) 2019-03-18 2019-03-18 Time synchronization apparatus, communication system, time synchronization method, and time synchronization program

Country Status (3)

Country Link
JP (1) JP6612006B1 (en)
CN (1) CN113574827A (en)
WO (1) WO2020188703A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11601211B2 (en) * 2020-02-25 2023-03-07 Mitsubishi Electric Corporation Time synchronization system, master station, and time synchronization method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011196770A (en) * 2010-03-18 2011-10-06 Nec Corp Time synchronizing system, time information supply device, and response information transmission method
WO2012092892A2 (en) * 2012-02-01 2012-07-12 华为技术有限公司 Synchronization method, device, and system
CN102843725B (en) * 2012-08-15 2015-04-08 无锡北邮感知技术产业研究院有限公司 Data transmission method and data transmission device
CN102833062B (en) * 2012-09-25 2015-08-12 广东电网公司珠海供电局 Intelligent substation IEEE1588 master-salve clock synchronization message setting means and system
JP6132734B2 (en) * 2013-10-01 2017-05-24 株式会社日立製作所 Time synchronization system and apparatus
JP6203064B2 (en) * 2014-01-21 2017-09-27 株式会社東芝 Time synchronization client, system, and program
JP2016100659A (en) * 2014-11-19 2016-05-30 株式会社日立製作所 Synchronous data sharing system and method
JP6452427B2 (en) * 2014-12-17 2019-01-16 三菱電機株式会社 Time synchronization monitoring method, communication system, and master device
JP6737162B2 (en) * 2016-12-13 2020-08-05 住友電気工業株式会社 Surveillance system and equipment

Also Published As

Publication number Publication date
CN113574827A (en) 2021-10-29
WO2020188703A1 (en) 2020-09-24
JP6612006B1 (en) 2019-11-27

Similar Documents

Publication Publication Date Title
EP3367733B1 (en) Method, device, and system for synchronizing clocks of processors
US8689035B2 (en) Communication system, communication interface, and synchronization method
EP2515501B1 (en) Media clock negotiation
US8001225B2 (en) Server time protocol messages and methods
TWI608326B (en) Apparatus, method and system for measuring time offsets between devices with independent silicon clocks
JP6351889B1 (en) Communication system and slave device
TW201241594A (en) A system, method, and device to distribute accurate synchronization timestamps in an expandable and timing critical system
WO2017179608A1 (en) Timing synchronization method, sensor embedding terminal, and sensor network system
CN109996325B (en) Clock synchronization system and method of wireless sensor network
JP2010220036A (en) Gateway device, method of controlling the same, system, program for executing the method, and recording medium with the program recorded therein
CN112398567B (en) Clock synchronization method and device in encryption communication process and multi-device system
JP6612006B1 (en) Time synchronization apparatus, communication system, time synchronization method, and time synchronization program
KR20160122601A (en) Method for synchronizing time and time synchronizer
WO2019000398A1 (en) Method for scheduling transaction, and processor, distributed system, and unmanned aerial vehicle
JP2012175567A (en) Synchronization system, and synchronization method of synchronization system
JP7120657B2 (en) SERVER, SERVER SYSTEM, TIME SYNCHRONIZATION METHOD AND PROGRAM
WO2017122324A1 (en) Wireless communication system, termination device, node device, wireless communication method and wireless communication program
CN115441976A (en) Hardware clock synchronization method, terminal and storage medium under Wi-Fi environment
JP2662257B2 (en) Signal transmission method
JP2020053804A (en) Transmitter and video signal transmission system
JP2000305956A (en) Information collection system
JP2009232226A (en) Radio communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190820

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20190820

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20190913

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191029

R150 Certificate of patent or registration of utility model

Ref document number: 6612006

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250