JP2017216563A - Repeating device, control method, and communication system - Google Patents

Repeating device, control method, and communication system Download PDF

Info

Publication number
JP2017216563A
JP2017216563A JP2016108591A JP2016108591A JP2017216563A JP 2017216563 A JP2017216563 A JP 2017216563A JP 2016108591 A JP2016108591 A JP 2016108591A JP 2016108591 A JP2016108591 A JP 2016108591A JP 2017216563 A JP2017216563 A JP 2017216563A
Authority
JP
Japan
Prior art keywords
packet
synchronization
synchronization packet
failure
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.)
Pending
Application number
JP2016108591A
Other languages
Japanese (ja)
Inventor
耕 万
geng Wan
耕 万
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2016108591A priority Critical patent/JP2017216563A/en
Publication of JP2017216563A publication Critical patent/JP2017216563A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a repeating device in which precision of time synchronization of a slave device is not deteriorated, upon occurrence of failure in the repeating device interposed between a master device and the slave device.SOLUTION: A repeating device 10 has a reception unit 11 for receiving a first synchronous packet containing time information from a mater device 20, a time information processing unit 14 for generating second synchronous packet containing time information indicating the delay time occurred in the own device based on the first synchronous packet, a failure detector 12 for monitoring whether or not the failure has occurred in the own device, a transmission unit 15 for transmitting the second synchronous packet to a slave device 30, when the failure has not occurred, and an abnormal time processing unit 13 executing abnormal time processing onto the second synchronous packet when the failure has occurred.SELECTED DRAWING: Figure 1

Description

本発明は中継装置、制御方法、及び、通信システムに関し、例えばネットワークを介して同期情報を伝送する中継装置、制御方法、及び、通信システムに関する。   The present invention relates to a relay apparatus, a control method, and a communication system, for example, a relay apparatus, a control method, and a communication system that transmit synchronization information via a network.

GPS(Global Positioning System)等を用いる場合に必要となる時刻同期を行う際に、GNSS(Global Navigation Satellite System:全地球航法システム)受信器は、GNSS衛星から放送された信号(同期信号)を受信する。GNSS受信機は、GNSS衛星から放送された同期信号を用いることによって、UTC(Coordinated Universal Time)に同期したタイミング信号を出力することができる。   GNSS (Global Navigation Satellite System) receivers receive signals (synchronization signals) broadcast from GNSS satellites when performing time synchronization required when using GPS (Global Positioning System), etc. To do. The GNSS receiver can output a timing signal synchronized with UTC (Coordinated Universal Time) by using a synchronization signal broadcast from a GNSS satellite.

また、GNSS衛星から同期信号を直接受信できない場所に存在する通信装置においても同期信号を用いるために、GNSS衛星から同期信号を受信したGNSS受信機が、パケットネットワークを介して同期信号を通信装置へ送信することもある。   Further, in order to use the synchronization signal even in a communication device that exists in a place where the synchronization signal cannot be directly received from the GNSS satellite, the GNSS receiver that has received the synchronization signal from the GNSS satellite transmits the synchronization signal to the communication device via the packet network. May be sent.

しかしながら、パケットネットワークを介して送信された同期信号は、伝送遅延を伴う。また、パケットネットワークにおけるトラヒック状況等により、伝送遅延の値に揺らぎが発生する。そのため、通信装置は、パケットネットワークにおいて発生する伝送遅延を考慮して同期信号を用いる必要がある。   However, the synchronization signal transmitted through the packet network has a transmission delay. In addition, the transmission delay value fluctuates depending on traffic conditions in the packet network. For this reason, the communication apparatus needs to use a synchronization signal in consideration of a transmission delay that occurs in the packet network.

ここで、パケットデータ(同期パケット)を用いた位相同期を実行するために定められたIEEE1588v2(IEEE1588-2008)網においては、その網を構成する伝送装置や中継装置の伝送遅延を低減させるために、同期用の装置として、Transparent Clock装置を用いることが規定されている。Transparent Clock装置は、マスター装置から同期パケット(Ingress パケット)を受信する。そして、Transparent Clock装置は、受信した同期パケットの補正フィールドに、当該同期パケットがTransparent Clock装置内において滞留した時間を書き込むよう、同期パケットを処理する。具体的には、Transparent Clock装置は、同期パケットの補正フィールドを更新する。そして、Transparent Clock装置は、処理した同期パケット(Egress パケット)をスレーブ通信装置へ送信する。IEEE1588-2008で規定される同期パケットはPTP (precision time protocol)パケットである。また、IEEE1588-2008で規定される補正フィールドは、correctionFieldである。   Here, in the IEEE1588v2 (IEEE1588-2008) network defined to execute phase synchronization using packet data (synchronization packet), in order to reduce the transmission delay of the transmission device and the relay device constituting the network The use of a transparent clock device as a synchronization device is specified. The transparent clock device receives a synchronization packet (Ingress packet) from the master device. Then, the transparent clock device processes the synchronization packet so as to write in the correction field of the received synchronization packet the time when the synchronization packet stayed in the transparent clock device. Specifically, the transparent clock device updates the correction field of the synchronization packet. Then, the transparent clock device transmits the processed synchronization packet (egress packet) to the slave communication device. The synchronization packet defined by IEEE1588-2008 is a precision time protocol (PTP) packet. The correction field defined in IEEE 1588-2008 is correctionField.

特許文献1には、マスター装置と、中継スレーブ装置と、末端スレーブ装置とを有する階層化された通信システムの構成が開示されている。また、特許文献1には、マスター装置に障害が発生した場合であっても、時刻同期の精度を劣化させない処理が開示されている。具体的には、特許文献1には次のような処理が開示されている。   Patent Document 1 discloses a configuration of a hierarchical communication system having a master device, a relay slave device, and a terminal slave device. Patent Document 1 discloses a process that does not degrade the accuracy of time synchronization even when a failure occurs in the master device. Specifically, Patent Document 1 discloses the following processing.

マスター装置と中継スレーブ装置とは、Syncメッセージ、Announceメッセージ等を送受信する。マスター装置に障害が発生した場合、マスター装置は、障害情報を有するAnnounceメッセージを中継スレーブ装置へ送信する。中継スレーブ装置は、障害情報を有するAnnounceメッセージを受信した場合、マスター装置から送信される時刻情報を時刻同期処理に使用しない。中継スレーブ装置は、障害が発生したマスター装置と異なるマスター装置から送信される時刻情報を時刻同期処理に使用する。   The master device and the relay slave device transmit and receive Sync messages, Announce messages, and the like. When a failure occurs in the master device, the master device transmits an Announce message having failure information to the relay slave device. When the relay slave device receives the Announce message having the failure information, the relay slave device does not use the time information transmitted from the master device for the time synchronization processing. The relay slave device uses time information transmitted from a master device different from the master device in which the failure has occurred for time synchronization processing.

特開2015−216438号公報JP2015-216438A

ところで、特許文献1には、マスター装置と中継スレーブ装置との間に、中継装置としてTransparent Clock装置が配置された通信システムにおいて、Transparent Clock装置に障害が発生した場合の処理が開示されていない。その結果、例えば、Transparent Clock装置に障害が発生した場合に、特許文献1に開示されている障害時の処理を実行しても、マスター装置から送信されるAnnounceメッセージにはTransparent Clock装置に発生した障害に関する情報が含まれることはない。その理由は、Transparent Clock装置は、同期パケットの補正フィールドを更新するが、自装置の障害情報をAnnounceメッセージに設定して、中継スレーブ装置にAnnunceメッセージをすることはない。従って、中継スレーブ装置は、Transparent Clock装置の障害を検知することができない。   By the way, Patent Document 1 does not disclose processing when a failure occurs in a transparent clock device in a communication system in which a transparent clock device is arranged as a relay device between a master device and a relay slave device. As a result, for example, when a failure occurs in the Transparent Clock device, the Announce message transmitted from the master device is generated in the Transparent Clock device even if the failure process disclosed in Patent Document 1 is executed. It does not contain information about disabilities. The reason is that the Transparent Clock device updates the correction field of the synchronization packet, but sets its own failure information in the Announce message and does not send an Annunce message to the relay slave device. Therefore, the relay slave device cannot detect the failure of the transparent clock device.

従って、特許文献1に記載の通信システムにおいて、中継装置であるTransparent Clock装置に何らかの障害が発生した場合であっても、中継スレーブ装置は、障害が発生したTransparent Clock装置から受信した同期パケットを、時刻同期処理に使用してしまう。このような場合、障害が発生したTransparent Clock装置は、同期パケットの補正フィールドを適切に更新していない可能性がある。そのため、Transparent Clock装置に障害が発生した場合、中継スレーブ装置における時刻同期の精度が劣化する可能性がある。   Therefore, in the communication system described in Patent Document 1, even if some failure occurs in the transparent clock device that is a relay device, the relay slave device transmits the synchronization packet received from the failed transparent clock device, Used for time synchronization processing. In such a case, the transparent clock device in which the failure has occurred may not have properly updated the correction field of the synchronization packet. Therefore, when a failure occurs in the transparent clock device, the accuracy of time synchronization in the relay slave device may deteriorate.

そこで、本発明の目的は、マスター装置とスレーブ装置との間に配置された中継装置に障害が発生した場合であっても、スレーブ装置における時刻同期の精度の劣化を低減させることができる中継装置、制御方法、及び、通信システムを提供することにある。   Therefore, an object of the present invention is to provide a relay device that can reduce deterioration in time synchronization accuracy in a slave device even when a failure occurs in the relay device arranged between the master device and the slave device. A control method and a communication system are provided.

本発明の第1の態様にかかる中継装置は、マスター装置から時刻情報を含む第1の同期パケットを受信する受信部と、前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成する時刻情報処理部と、自装置内において発生した障害が発生しているか否かを監視する障害検出部と、障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信する送信部と、障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行する異常時処理部と、を有するものである。   The relay device according to the first aspect of the present invention includes: a receiving unit that receives a first synchronization packet including time information from a master device; and a delay time generated in the device based on the first synchronization packet. A time information processing unit that generates a second synchronization packet including time information indicating a failure, a failure detection unit that monitors whether or not a failure that has occurred in the device itself, and a failure has not occurred A transmission unit that transmits the second synchronization packet to the slave device, and an abnormal time processing unit that executes processing for an abnormal time on the second synchronization packet when a failure occurs, It is what has.

本発明の第2の態様にかかる中継装置における制御方法は、マスター装置から時刻情報を含む第1の同期パケットを受信し、前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成し、自装置内において障害が発生しているか否かを監視し、障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信し、障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行するものである。   In the control method in the relay device according to the second aspect of the present invention, the first synchronization packet including the time information is received from the master device, and the delay time generated in the own device based on the first synchronization packet. And generates a second synchronization packet including time information indicating whether or not a failure has occurred in the device itself. If no failure has occurred, the second synchronization packet is transmitted to the slave device. When a failure occurs, an abnormal process is executed on the second synchronization packet.

本発明の第3の態様にかかる通信システムは、マスター装置とスレーブ装置と前記マスター装置と前記スレーブ装置との間に配置される中継装置とを備える通信システムであって、前記中継装置は、マスター装置から時刻情報を含む第1の同期パケットを受信する受信部と、前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成する時刻情報処理部と、自装置内において発生した障害が発生しているか否かを監視する障害検出部と、障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信する送信部と、障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行する異常時処理部と、を備えるものである。   A communication system according to a third aspect of the present invention is a communication system including a master device, a slave device, and a relay device disposed between the master device and the slave device, wherein the relay device is a master device. A reception unit that receives a first synchronization packet including time information from the device, and generates a second synchronization packet that includes time information indicating a delay time generated within the device based on the first synchronization packet. A time information processing unit, a failure detection unit that monitors whether or not a failure has occurred in the device itself, and if no failure has occurred, the second synchronization packet is transmitted to the slave device. A transmission unit; and an abnormality processing unit that executes an abnormality processing for the second synchronization packet when a failure occurs.

本発明により、マスター装置とスレーブ装置との間に配置された中継装置に障害が発生した場合に、スレーブ装置における時刻同期の精度を劣化させない中継装置、制御方法、及び、通信システムを提供することができる。   The present invention provides a relay device, a control method, and a communication system that do not deteriorate the accuracy of time synchronization in a slave device when a failure occurs in a relay device arranged between a master device and a slave device. Can do.

実施の形態1にかかる中継装置の構成図である。1 is a configuration diagram of a relay device according to a first embodiment; 実施の形態2にかかる通信システムの構成図である。FIG. 3 is a configuration diagram of a communication system according to a second exemplary embodiment. 実施の形態2にかかる中継装置の構成図である。It is a block diagram of the relay apparatus concerning Embodiment 2. FIG. 実施の形態2にかかる中継装置における障害検出処理の流れを示す図である。FIG. 10 is a diagram illustrating a flow of failure detection processing in the relay device according to the second embodiment. 実施の形態3にかかる中継装置の構成図である。FIG. 6 is a configuration diagram of a relay device according to a third embodiment. 実施の形態3にかかる中継装置における障害検出処理の流れを示す図である。。FIG. 10 is a diagram illustrating a flow of failure detection processing in the relay device according to the third embodiment; .

(実施の形態1)
以下、図面を参照して本発明の実施の形態について説明する。はじめに、図1を用いて実施の形態1にかかる中継装置10の構成例について説明する。中継装置10は、マスター装置20とスレーブ装置30との間に配置される。さらに、中継装置10は、Transparent Clock機能を有する。Transparent Clock機能は、同期パケットが中継装置10内に滞留した時間を同期パケット内の補正フィールドに書き込む機能である。スレーブ装置30は、中継装置10を介して受信した同期パケットを用いて自装置のクロックをマスター装置20のクロックに同期する。マスター装置20及びスレーブ装置30は、PTP(Precision Time Protocol)を用いて時刻同期を行う。中継装置10は、このように機能する専用の回路を備えてもよい。また、中継装置10は、内蔵するプロセッサが内蔵するメモリに格納された、または、読み込まれたプログラムを実行することによって、このような機能を論理的に備えることにより動作するコンピュータ装置であってもよい。
(Embodiment 1)
Embodiments of the present invention will be described below with reference to the drawings. First, a configuration example of the relay apparatus 10 according to the first embodiment will be described with reference to FIG. The relay device 10 is disposed between the master device 20 and the slave device 30. Furthermore, the relay apparatus 10 has a Transparent Clock function. The transparent clock function is a function for writing the time that the synchronization packet stays in the relay apparatus 10 in the correction field in the synchronization packet. The slave device 30 synchronizes its own clock with the clock of the master device 20 using the synchronization packet received via the relay device 10. The master device 20 and the slave device 30 perform time synchronization using PTP (Precision Time Protocol). The relay device 10 may include a dedicated circuit that functions in this way. Further, the relay device 10 may be a computer device that operates by logically providing such a function by executing a program stored in or read from a memory built in a built-in processor. Good.

より詳細には、中継装置10は、受信部11、障害検出部12、異常時処理部13、時刻情報処理部14、及び、送信部15とを有する。受信部11、障害検出部12、異常時処理部13、時刻情報処理部14、及び、送信部15等の中継装置10を構成する構成要素は、プロセッサがメモリに格納されたプログラムを実行することによって処理が実行されるソフトウェアもしくはモジュールであってもよい。または、中継装置10を構成する構成要素は、チップもしくは回路等のハードウェアであってもよい。   More specifically, the relay device 10 includes a reception unit 11, a failure detection unit 12, an abnormality processing unit 13, a time information processing unit 14, and a transmission unit 15. The components constituting the relay device 10 such as the reception unit 11, the failure detection unit 12, the abnormal time processing unit 13, the time information processing unit 14, and the transmission unit 15 execute a program stored in the memory by the processor. It may be software or a module that executes processing according to the above. Or the component which comprises the relay apparatus 10 may be hardware, such as a chip | tip or a circuit.

受信部11は、位相同期及び時刻同期に用いられる同期パケットをマスター装置20から受信する。ここで、IEEE1588v2(IEEE1588-2008)網においては、位相同期及び時刻同期に用いられる同期パケット(Ingressパケット)は、PTPパケットである。時刻情報処理部14は、受信部11がマスター装置20から受信した同期パケット(Ingressパケット)に前述の装置内滞留時間、すなわち、自装置内での遅延時間を示す時間情報、を書き込み、新たな同期パケット(Engressパケット)を生成する。そして、送信部15は、この新たに生成された同期パケットをスレーブ装置30に送信する。   The receiving unit 11 receives a synchronization packet used for phase synchronization and time synchronization from the master device 20. Here, in the IEEE 1588v2 (IEEE 1588-2008) network, a synchronization packet (Ingress packet) used for phase synchronization and time synchronization is a PTP packet. The time information processing unit 14 writes the above-mentioned dwell time in the device, that is, time information indicating the delay time in its own device, into the synchronization packet (Ingress packet) received by the receiving unit 11 from the master device 20, and creates a new A synchronization packet (Engress packet) is generated. Then, the transmission unit 15 transmits the newly generated synchronization packet to the slave device 30.

障害検出部12は、中継装置10内において発生した障害を検出する。例えば、障害検出部12は、中継装置10を構成するそれぞれの構成要素に対して、定期的に信号を出力し、応答信号を受信したかによって、中継装置10内に障害が発生したか否かを検出、または、判断してもよい。他の例として、障害検出部12は、Transparent Clock機能の異常動作を検出または判断してもよい。具体的には、障害検出部12は、中継装置10内に同期パケットが滞留した時間が、予め定められた時間の範囲内である場合、Transparent Clock機能が正常に動作していると判定し、予め定められた時間を超える場合、Transparent Clock機能が正常に動作していないと判定する。もしくは、障害検出部12は、同期パケットの補正フィールドに設定された補正値を用いて補正した時刻と、受信部11において同期パケットを受信した時刻との差が、予め定められた範囲内であるか否かに応じて、Transparent Clock機能が正常に動作しているか否かを判定してもよい。   The failure detection unit 12 detects a failure that has occurred in the relay device 10. For example, the failure detection unit 12 periodically outputs a signal to each component constituting the relay device 10 and determines whether or not a failure has occurred in the relay device 10 depending on whether a response signal has been received. May be detected or determined. As another example, the failure detection unit 12 may detect or determine an abnormal operation of the transparent clock function. Specifically, the failure detection unit 12 determines that the transparent clock function is operating normally when the time that the synchronization packet stays in the relay device 10 is within a predetermined time range, If the predetermined time is exceeded, it is determined that the transparent clock function is not operating normally. Alternatively, the failure detection unit 12 has a difference between the time corrected using the correction value set in the correction field of the synchronization packet and the time when the reception unit 11 receives the synchronization packet within a predetermined range. Whether or not the transparent clock function is operating normally may be determined depending on whether or not the transparent clock function is operating normally.

異常時処理部13は、障害検出部12において障害が検出された場合、同期パケット(Egressパケット)の送信先となるスレーブ装置30におけるクロック品質、すなわち、マスター装置20とスレーブ装置30との同期の精度、が低下しないように異常時の処理を実行する。異常時処理部13が実行する異常時の処理は、例えば、中継装置10が、中継装置10の障害を示す情報を設定した同期パケット(Egressパケット)を送信部15からスレーブ装置30へ送信することであってもよい。もしくは、異常時処理は、障害が発生している中継装置10が、同期パケットを送信部15からスレーブ装置30へ送信しないことであってもよい。   When a failure is detected by the failure detection unit 12, the abnormal time processing unit 13 performs clock quality in the slave device 30 that is a transmission destination of the synchronization packet (Egress packet), that is, synchronization between the master device 20 and the slave device 30. Execute the process at the time of abnormality so as not to reduce the accuracy. For example, the processing at the time of abnormality executed by the abnormality processing unit 13 is that the relay device 10 transmits a synchronization packet (Egress packet) in which information indicating a failure of the relay device 10 is set from the transmission unit 15 to the slave device 30. It may be. Alternatively, the abnormal time process may be that the relay apparatus 10 in which the failure has occurred does not transmit the synchronization packet from the transmission unit 15 to the slave apparatus 30.

以上説明したように、図1の中継装置10を用いることによって、中継装置10は、自装置に障害が発生した場合に、スレーブ装置30におけるクロック品質が低下しないように異常時処理を実行することができる。言い換えると、中継装置10が、スレーブ装置30へ中継装置10に障害が発生したことを通知することによって、スレーブ装置30は、障害が発生していない中継装置を介して受信した同期パケットを用いてクロックの同期を行う等の対応処理を実行することができる。   As described above, by using the relay device 10 of FIG. 1, the relay device 10 executes the abnormal process so that the clock quality in the slave device 30 does not deteriorate when a failure occurs in the own device. Can do. In other words, when the relay device 10 notifies the slave device 30 that a failure has occurred in the relay device 10, the slave device 30 uses the synchronization packet received via the relay device in which no failure has occurred. Corresponding processing such as clock synchronization can be executed.

(実施の形態2)
続いて、図2を用いて本発明の実施の形態2に係る通信システムの構成例について説明する。図2の通信システムは、GNSS(Global Navigation Satellite System:全地球航法システム)衛星40、GNSS受信機50、マスター装置20、マスター装置25、中継装置10、中継装置17、中継装置18、及び、スレーブ装置30を有している。
(Embodiment 2)
Then, the structural example of the communication system which concerns on Embodiment 2 of this invention using FIG. 2 is demonstrated. 2 includes a GNSS (Global Navigation Satellite System) satellite 40, a GNSS receiver 50, a master device 20, a master device 25, a relay device 10, a relay device 17, a relay device 18, and a slave. A device 30 is included.

GNSS衛星40は、UTC(Coordinated Universal Time)に同期したGNSS放送信号を送信する。また、GNSSは、GPS、GLONASS、Galileo、Compassもしくは準天頂衛星(QZSS)等を含む衛星測位システムの総称である。GNSS受信機50は、GNSS衛星40から送信されたGNSS放送信号を受信する。GNSS受信機50は、GNSS放送信号に基づいて同期信号を再生し、再生した同期信号をマスター装置20及びマスター装置25へ送信する。もしくは、GNSS受信機50における機能とマスター装置20における機能とは、同一の装置に組み込まれてもよい。   The GNSS satellite 40 transmits a GNSS broadcast signal synchronized with UTC (Coordinated Universal Time). GNSS is a general term for satellite positioning systems including GPS, GLONASS, Galileo, Compass, or Quasi-Zenith Satellite (QZSS). The GNSS receiver 50 receives a GNSS broadcast signal transmitted from the GNSS satellite 40. The GNSS receiver 50 reproduces a synchronization signal based on the GNSS broadcast signal, and transmits the reproduced synchronization signal to the master device 20 and the master device 25. Alternatively, the function in the GNSS receiver 50 and the function in the master device 20 may be incorporated in the same device.

マスター装置20は、中継装置10を介して同期パケットをスレーブ装置30へ送信する。さらに、マスター装置20は、中継装置18を介して同期パケットをスレーブ装置30へ送信する。マスター装置25は、中継装置17を介して同期パケットをスレーブ装置30へ送信する。同期パケットは、例えば、GNSS放送信号を用いて生成されたクロック信号である。ここで、マスター装置20は、例えばIEEE1588において規定されている方式(以下、IEEE1588伝送とする)もしくはSynchronous Ethernet(登録商標)(以下、SyncEとする)方式を用いて同期信号を送信する。IEEE1588伝送及びSyncE伝送は、イーサネット(登録商標)を介して行われる。また、IEEE1588は、PTP(Precision Time Protocol)と称されてもよい。IEEE1588において規定されている方式は、例えば、IEEE1588Version2(IEEE1588-2008)等の、更新版も含む。   The master device 20 transmits a synchronization packet to the slave device 30 via the relay device 10. Further, the master device 20 transmits a synchronization packet to the slave device 30 via the relay device 18. The master device 25 transmits a synchronization packet to the slave device 30 via the relay device 17. The synchronization packet is, for example, a clock signal generated using a GNSS broadcast signal. Here, the master device 20 transmits a synchronization signal using, for example, a method defined in IEEE 1588 (hereinafter referred to as IEEE 1588 transmission) or a Synchronous Ethernet (registered trademark) (hereinafter referred to as SyncE) method. IEEE 1588 transmission and SyncE transmission are performed via Ethernet (registered trademark). IEEE 1588 may also be referred to as PTP (Precision Time Protocol). The system defined in IEEE 1588 includes an updated version such as IEEE 1588 Version 2 (IEEE 1588-2008).

中継装置10、中継装置17、及び中継装置18は、例えば、イーサネットや無線通信網を介してパケットデータを送信するパケットネットワーク内に配置される装置である。図2においては、スレーブ装置30が、中継装置10を経由するルート、中継装置18を経由するルート及び中継装置17を経由するルートを用いて同期パケットを受信することが示されているが、スレーブ装置30は、4以上のルートを用いて同期パケットを受信してもよい。また、図2は、一つのルートに対して一つの中継装置のみ配置されることが示されているが、スレーブ装置30は、一つのルートにおいて複数の中継装置を介して同期パケットを受信してもよい。   The relay device 10, the relay device 17, and the relay device 18 are devices arranged in a packet network that transmits packet data via, for example, Ethernet or a wireless communication network. In FIG. 2, it is shown that the slave device 30 receives a synchronization packet using a route passing through the relay device 10, a route passing through the relay device 18, and a route passing through the relay device 17. The device 30 may receive a synchronization packet using four or more routes. In addition, FIG. 2 shows that only one relay device is arranged for one route, but the slave device 30 receives a synchronization packet via a plurality of relay devices in one route. Also good.

中継装置10及び中継装置18は、マスター装置20から送信された同期パケットを受信する。中継装置17は、マスター装置25から送信された同期パケットを受信する。さらに、中継装置10、中継装置17、及び中継装置18は、同期パケットの時刻補正フィールドに、自装置のデータ処理時間を反映する。つまり、中継装置10、中継装置17、及び中継装置18は、同期パケットの時刻補正フィールドを更新する。同期パケットの時刻補正フィールドに、自装置のデータ処理時間を反映することは、Transparent Clock機能と称される。中継装置10、中継装置17、及び中継装置18は、時刻補正フィールドを更新した同期パケットをスレーブ装置30へ送信する。複数の中継装置が直列に接続されている場合、例えば、中継装置10は、他の中継装置から送信された同期パケットを受信してもよく、さらに、中継装置10は、他の中継装置へ更新した同期パケットを送信してもよい。   The relay device 10 and the relay device 18 receive the synchronization packet transmitted from the master device 20. The relay device 17 receives the synchronization packet transmitted from the master device 25. Further, the relay device 10, the relay device 17, and the relay device 18 reflect their own data processing time in the time correction field of the synchronization packet. That is, the relay device 10, the relay device 17, and the relay device 18 update the time correction field of the synchronization packet. Reflecting the data processing time of the own device in the time correction field of the synchronous packet is called a transparent clock function. The relay device 10, the relay device 17, and the relay device 18 transmit the synchronization packet with the updated time correction field to the slave device 30. When a plurality of relay devices are connected in series, for example, the relay device 10 may receive a synchronization packet transmitted from another relay device, and the relay device 10 is updated to another relay device. The synchronized packet may be transmitted.

スレーブ装置30は、中継装置10を介して送信された同期パケット、中継装置17を介して送信された同期パケット、及び、中継装置18を介して送信された同期パケットを受信する。さらに、スレーブ装置30は、中継装置10を介して送信された同期パケット、中継装置17を介して送信された同期パケット、及び、中継装置18を介して送信された同期パケットのいずれかを選択する。スレーブ装置30は、選択したした同期パケットを用いて、GNSS受信機50もしくはマスター装置20等において生成された時刻情報と同期する同期時刻情報を生成する。同期時刻情報の生成は、上述したIEEE1588等に規定されている方式を用いてもよく、その他の方式を用いてもよい。   The slave device 30 receives the synchronization packet transmitted via the relay device 10, the synchronization packet transmitted via the relay device 17, and the synchronization packet transmitted via the relay device 18. Further, the slave device 30 selects any one of the synchronization packet transmitted via the relay device 10, the synchronization packet transmitted via the relay device 17, and the synchronization packet transmitted via the relay device 18. . The slave device 30 uses the selected synchronization packet to generate synchronization time information that is synchronized with the time information generated in the GNSS receiver 50, the master device 20, or the like. Generation of the synchronization time information may use a method defined in the above-described IEEE 1588 or the like, or may use another method.

スレーブ装置30は、例えば、同期パケットに設定されている優先度に関する情報を用いて複数の同期パケットの中から一つの同期パケットを選択してもよい。例えば、スレーブ装置30は、優先度の高い同期パケットを選択する。   For example, the slave device 30 may select one synchronization packet from among a plurality of synchronization packets using information on the priority set in the synchronization packet. For example, the slave device 30 selects a synchronization packet with a high priority.

ここで、マスター装置20に障害が発生した場合の動作について説明する。スレーブ装置30は、マスター装置20から送信される同期パケットを用いて時刻同期を行っているとする。   Here, an operation when a failure occurs in the master device 20 will be described. It is assumed that the slave device 30 performs time synchronization using the synchronization packet transmitted from the master device 20.

マスター装置20に障害が発生した場合、マスター装置20は、自装置が正常に動作していないことを示す情報を含むPTPメッセージをスレーブ装置30へ送信する。PTPメッセージは、中継装置10及び中継装置18を介してマスター装置20からスレーブ装置30へ送信される。マスター装置20が正常に動作していないことを示す情報を含むPTPメッセージは、例えば、PTPを用いた時刻同期処理において送受信されるannounceメッセージであってもよい。   When a failure occurs in the master device 20, the master device 20 transmits a PTP message including information indicating that the device itself is not operating normally to the slave device 30. The PTP message is transmitted from the master device 20 to the slave device 30 via the relay device 10 and the relay device 18. The PTP message including information indicating that the master device 20 is not operating normally may be, for example, an announce message transmitted / received in time synchronization processing using PTP.

スレーブ装置30は、マスター装置20が正常に動作していないことを示す情報を含むannounceメッセージを受信すると、マスター装置20から送信された同期パケットを用いて時刻同期を行わない。言い換えると、スレーブ装置30は、マスター装置20が正常に動作していないことを示す情報を含むannounceメッセージを受信すると、マスター装置25から送信された同期パケットを用いて時刻同期を行う。   When the slave device 30 receives an announce message including information indicating that the master device 20 is not operating normally, the slave device 30 does not perform time synchronization using the synchronization packet transmitted from the master device 20. In other words, when receiving an announce message including information indicating that the master device 20 is not operating normally, the slave device 30 performs time synchronization using the synchronization packet transmitted from the master device 25.

続いて、中継装置10に障害が発生した場合の動作について説明する。スレーブ装置30は、中継装置10を介してマスター装置20から送信される同期パケットを用いて時刻同期を行っているとする。   Next, an operation when a failure occurs in the relay device 10 will be described. Assume that the slave device 30 performs time synchronization using a synchronization packet transmitted from the master device 20 via the relay device 10.

中継装置10は、マスター装置20から送信されるannounceメッセージをスレーブ装置30へ中継する。マスター装置20には障害が発生していないため、announceメッセージには、マスター装置20が正常に動作していることを示す情報が含まれている。そのため、障害が発生した中継装置10がマスター装置20から送信されたannounceメッセージをスレーブ装置30へ送信した場合、スレーブ装置30は、中継装置10から受信した同期パケットを用いて時刻同期処理を実行する。   The relay device 10 relays the announce message transmitted from the master device 20 to the slave device 30. Since no failure has occurred in the master device 20, the announce message includes information indicating that the master device 20 is operating normally. Therefore, when the relay device 10 in which the failure has occurred transmits the announce message transmitted from the master device 20 to the slave device 30, the slave device 30 executes time synchronization processing using the synchronization packet received from the relay device 10. .

障害が発生した中継装置10から送信される同期パケットは、例えば、補正フィールドに正しい値が設定されていない可能性がある。もしくは、障害が発生した中継装置10から送信される同期パケットは、時刻情報に正しい値が設定されていない可能性もある。そのため、スレーブ装置30が、中継装置10から送信された同期パケットを用いて時刻同期処理を実行した場合、正常に時刻同期を行えないことがある。   For example, there is a possibility that the correct value is not set in the correction field of the synchronization packet transmitted from the relay apparatus 10 in which the failure has occurred. Alternatively, there is a possibility that a correct value is not set in the time information of the synchronization packet transmitted from the relay apparatus 10 in which the failure has occurred. Therefore, when the slave device 30 executes the time synchronization process using the synchronization packet transmitted from the relay device 10, the time synchronization may not be performed normally.

そこで、障害が発生した中継装置10は、announceメッセージのヘッダ部もしくはペイロードに設定されている優先度の値を低い優先度の値に変更もしくは更新する。例えば、中継装置10は、設定することができる値のうち、一番優先度が低いことを示す値に変更してもよい。   Therefore, the relay device 10 in which the failure has occurred changes or updates the priority value set in the header part or payload of the announce message to a low priority value. For example, the relay device 10 may be changed to a value indicating that the priority is the lowest among the values that can be set.

スレーブ装置30は、中継装置10から、優先度が低いannounceメッセージを受信した場合、中継装置10から送信された同期パケットではなく、他の中継装置から送信された同期パケットを用いて時刻同期処理を行うように時刻同期処理を変更する。   When the slave device 30 receives an announce message with a low priority from the relay device 10, the slave device 30 performs time synchronization processing using a synchronization packet transmitted from another relay device instead of the synchronization packet transmitted from the relay device 10. Change the time synchronization process to do.

続いて、図3を用いて実施の形態2にかかる中継装置10の構成例について説明する。中継装置10は、パケット入出力部61、パケット処理部62、PEC(Packet based Equipment Clocks)スレーブ部63、時刻ソースクロック部64、時刻選択部65、時刻及び周波数生成部66、周波数選択部67、パケット処理部68、時刻サービス監視部69、及び、パケット入出力部70を有する。中継装置10を構成するパケット入出力部61等の構成要素は、プロセッサがメモリに格納されたプログラムを実行することによって動作するコンピュータ装置であってもよい。または、中継装置10を構成する構成要素は、チップもしくは回路等のハードウェアであってもよい。   Next, a configuration example of the relay apparatus 10 according to the second embodiment will be described with reference to FIG. The relay device 10 includes a packet input / output unit 61, a packet processing unit 62, a PEC (Packet based Equipment Clocks) slave unit 63, a time source clock unit 64, a time selection unit 65, a time and frequency generation unit 66, a frequency selection unit 67, A packet processing unit 68, a time service monitoring unit 69, and a packet input / output unit 70 are included. The components such as the packet input / output unit 61 constituting the relay device 10 may be a computer device that operates when a processor executes a program stored in a memory. Or the component which comprises the relay apparatus 10 may be hardware, such as a chip | tip or a circuit.

パケット入出力部61は、マスター装置20との間においてPTPパケットを送受信する。パケット入出力部61は、マスター装置20から受信したPTPパケットをパケット処理部62へ出力する。また、パケット入出力部61は、マスター装置20へ送信するPTPパケットをパケット処理部62から受け取る。中継装置10とマスター装置20との間に、他の中継装置が配置されている場合、パケット入出力部61は、他の中継装置との間においてPTPパケットを送受信する。   The packet input / output unit 61 transmits and receives PTP packets to and from the master device 20. The packet input / output unit 61 outputs the PTP packet received from the master device 20 to the packet processing unit 62. Further, the packet input / output unit 61 receives from the packet processing unit 62 a PTP packet to be transmitted to the master device 20. When another relay device is arranged between the relay device 10 and the master device 20, the packet input / output unit 61 transmits / receives a PTP packet to / from another relay device.

パケット入出力部70は、スレーブ装置30との間においてPTPパケットを送受信する。パケット入出力部70は、スレーブ装置30から受信したPTPパケットをパケット処理部68へ出力する。また、パケット入出力部61は、スレーブ装置30へ送信するPTPパケットをパケット処理部68から受け取る。中継装置10とスレーブ装置30との間に、他の中継装置が配置されている場合、パケット入出力部70は、他の中継装置との間においてPTPパケットを送受信する。   The packet input / output unit 70 transmits and receives PTP packets to and from the slave device 30. The packet input / output unit 70 outputs the PTP packet received from the slave device 30 to the packet processing unit 68. Further, the packet input / output unit 61 receives from the packet processing unit 68 a PTP packet to be transmitted to the slave device 30. When another relay device is arranged between the relay device 10 and the slave device 30, the packet input / output unit 70 transmits / receives a PTP packet to / from another relay device.

パケット処理部62は、パケット入出力部61を介してマスター装置20から送信されたPTPパケット(以下、ingress PTPパケットとする)からタイムスタンプを抽出する。パケット処理部62は、抽出したタイムスタンプをPECスレーブ部63へ出力する。タイムスタンプは、例えば、マスター装置20がingress PTPパケットを送信した時刻を示してもよい。   The packet processing unit 62 extracts a time stamp from a PTP packet (hereinafter referred to as an ingress PTP packet) transmitted from the master device 20 via the packet input / output unit 61. The packet processing unit 62 outputs the extracted time stamp to the PEC slave unit 63. For example, the time stamp may indicate a time at which the master device 20 transmits an ingress PTP packet.

時刻ソースクロック部64は、GNSS、eLORAN、1PPS、及びToD等の時間基準(time reference)に同期するクロック源である。時刻ソースクロック部64は、時間基準、もしくは、時間基準に同期した時刻情報を時刻選択部65及びPECスレーブ部63へ出力する。また、時刻ソースクロック部時刻ソースクロック部6464は、時間基準を用いて生成した周波数情報もしくは周波数基準(frequency reference)を周波数選択部67へ出力する。時刻ソースクロック部64は、いつでもGNSS等から時間基準を受信することができるわけではなく、時間基準を受信できないタイミングもある。また、時刻ソースクロック部64自体が無い場合もある。この場合、時刻選択部65は不要で、PECスレーブ部から出力された時刻情報が時刻及び周波数生成部66に入力される。   The time source clock unit 64 is a clock source that is synchronized with a time reference such as GNSS, eLORAN, 1PPS, and ToD. The time source clock unit 64 outputs the time reference or time information synchronized with the time reference to the time selection unit 65 and the PEC slave unit 63. The time source clock unit 6464 outputs the frequency information generated by using the time reference or the frequency reference (frequency reference) to the frequency selection unit 67. The time source clock unit 64 cannot always receive a time reference from GNSS or the like, and there is a timing at which the time reference cannot be received. Further, there may be no time source clock unit 64 itself. In this case, the time selection unit 65 is unnecessary, and the time information output from the PEC slave unit is input to the time and frequency generation unit 66.

PECスレーブ部63は、時刻ソースクロック部64から受け取った時間基準を用いて、パケット処理部62から受け取ったタイムスタンプを補正する。言い換えると、PECスレーブ部63は、パケット処理部62から受け取ったタイムスタンプの時間のずれを時刻ソースクロック部64から受け取った時間基準を用いて補償する。PECスレーブ部63は、補正後のタイムスタンプを時刻情報として時刻選択部65へ送信する。さらに、PECスレーブ部63は、パケット処理部62から受け取ったタイムスタンプ及び時刻ソースクロック部64から受け取った時間基準を用いて生成した周波数情報を周波数選択部67へ出力する。   The PEC slave unit 63 corrects the time stamp received from the packet processing unit 62 using the time reference received from the time source clock unit 64. In other words, the PEC slave unit 63 compensates for the time lag of the time stamp received from the packet processing unit 62 using the time reference received from the time source clock unit 64. The PEC slave unit 63 transmits the corrected time stamp to the time selection unit 65 as time information. Further, the PEC slave unit 63 outputs the frequency information generated using the time stamp received from the packet processing unit 62 and the time reference received from the time source clock unit 64 to the frequency selection unit 67.

時刻選択部65は、時刻ソースクロック部64及びPECスレーブ部63の少なくとも一方から出力された時刻情報から、パケット処理部62及びパケット処理部68等において用いられる時刻情報を選択する。つまり、時刻選択部65は、中継装置10において用いられるクロックの時刻源を選択する。時刻選択部65は、選択した時刻情報を時刻及び周波数生成部66へ出力する。例えば、時刻選択部65は、時刻ソースクロック部64から出力された時刻情報を優先的に選択し、時刻ソースクロック部64から時刻情報を受け取らなかった場合に、PECスレーブ部63から出力された時刻情報を選択してもよい。もしくは、時刻選択部65は、時刻ソースクロック部64からGNSS、eLORAN、1PPS、及びToD等の複数の時間基準が出力された場合、予め定められた優先順位に従って一つの時間基準を選択してもよい。もしくは、時刻選択部65は、複数の時刻情報もしくは複数の時間基準を組み合わせて時刻情報を生成してもよい。   The time selection unit 65 selects time information used in the packet processing unit 62, the packet processing unit 68, and the like from the time information output from at least one of the time source clock unit 64 and the PEC slave unit 63. That is, the time selection unit 65 selects a clock time source used in the relay apparatus 10. The time selection unit 65 outputs the selected time information to the time and frequency generation unit 66. For example, the time selection unit 65 preferentially selects the time information output from the time source clock unit 64, and the time output from the PEC slave unit 63 when the time information is not received from the time source clock unit 64. Information may be selected. Alternatively, when a plurality of time references such as GNSS, eLORAN, 1PPS, and ToD are output from the time source clock unit 64, the time selection unit 65 may select one time reference according to a predetermined priority order. Good. Alternatively, the time selection unit 65 may generate time information by combining a plurality of time information or a plurality of time references.

周波数選択部67は、時刻ソースクロック部64及びPECスレーブ部63の少なくとも一方から出力された周波数情報のから、パケット処理部62及びパケット処理部68等において用いられる周波数情報を選択する。   The frequency selection unit 67 selects frequency information used in the packet processing unit 62 and the packet processing unit 68 from the frequency information output from at least one of the time source clock unit 64 and the PEC slave unit 63.

時刻及び周波数生成部66は、時刻選択部65から出力された時刻情報及び周波数選択部67から出力された周波数情報を用いて、中継装置10において用いられるクロックの時間尺度(time scale)を生成する。   The time and frequency generation unit 66 uses the time information output from the time selection unit 65 and the frequency information output from the frequency selection unit 67 to generate a time scale of the clock used in the relay device 10. .

パケット処理部68は、パケット入出力部70を介してスレーブ装置30へ送信するPTPパケット(以下、egress PTPパケット、とする)を生成する。もしくは、パケット処理部68は、パケット処理部62から出力されたingress PTPパケットの補正フィールドもしくは優先度情報を更新することによって、egress PTPパケットを生成してもよい。   The packet processing unit 68 generates a PTP packet (hereinafter referred to as an egress PTP packet) to be transmitted to the slave device 30 via the packet input / output unit 70. Alternatively, the packet processing unit 68 may generate an egress PTP packet by updating the correction field or priority information of the ingress PTP packet output from the packet processing unit 62.

時刻サービス監視部69は、中継装置10内のクロックに関連する機能が正常に動作しているか否かを監視する。例えば、時刻サービス監視部69は、パケット処理部62及びパケット処理部68から出力されたタイムスタンプを分析することによって、Transparent Clock機能が正常に動作しているか否かを判定してもよい。または、時刻サービス監視部69は、パケット処理部62及びパケット処理部68から出力されたPTPパケットの時刻情報もしくは補正フィールドを分析することによって、Transparent Clock機能が正常に動作しているか否かを判定してもよい。また、時刻サービス監視部69は、中継装置10内のクロックに関連する機能が正常に動作していないと判定した場合、パケット処理部68に対して、egress PTPパケットの優先度を下げることを指示する。   The time service monitoring unit 69 monitors whether or not a function related to the clock in the relay apparatus 10 is operating normally. For example, the time service monitoring unit 69 may determine whether or not the transparent clock function is operating normally by analyzing time stamps output from the packet processing unit 62 and the packet processing unit 68. Alternatively, the time service monitoring unit 69 determines whether or not the transparent clock function is operating normally by analyzing the time information or correction field of the PTP packet output from the packet processing unit 62 and the packet processing unit 68. May be. When the time service monitoring unit 69 determines that the function related to the clock in the relay apparatus 10 is not operating normally, the time service monitoring unit 69 instructs the packet processing unit 68 to lower the priority of the egress PTP packet. To do.

パケット処理部68は、egress PTPパケットの優先度を下げることを指示された場合、優先度の値を低く更新したegress PTPパケットをパケット入出力部70を介してスレーブ装置30へ送信する。egress PTPパケットは、例えば、Syncメッセージもしくはannounceメッセージ等としてスレーブ装置30へ送信されてもよい。   When instructed to lower the priority of the egress PTP packet, the packet processing unit 68 transmits the egress PTP packet updated with a lower priority value to the slave device 30 via the packet input / output unit 70. The egress PTP packet may be transmitted to the slave device 30 as, for example, a Sync message or an announce message.

スレーブ装置30は、例えば、中継装置10から送信されたPTPパケットの優先度が、中継装置18から送信されたPTPパケット及び中継装置17から送信されたPTPパケットよりも低い場合、中継装置18から送信されたPTPパケットもしくは中継装置17から送信されたPTPパケットを用いて時刻同期を行う。   For example, when the priority of the PTP packet transmitted from the relay device 10 is lower than the PTP packet transmitted from the relay device 18 and the PTP packet transmitted from the relay device 17, the slave device 30 transmits from the relay device 18. The time synchronization is performed using the received PTP packet or the PTP packet transmitted from the relay device 17.

続いて、図4を用いて実施の形態2にかかる中継装置10における障害検出処理の流れについて説明する。はじめに、時刻サービス監視部69は、中継装置10内のクロックに関連する機能が正常に動作していないこと、つまり、中継装置10内のクロックに関連する機能に障害が発生していることを検出する(S11)。   Next, a flow of failure detection processing in the relay apparatus 10 according to the second embodiment will be described with reference to FIG. First, the time service monitoring unit 69 detects that the function related to the clock in the relay apparatus 10 is not operating normally, that is, that the function related to the clock in the relay apparatus 10 has failed. (S11).

次に、時刻サービス監視部69は、パケット処理部68に対して、PTPパケットに設定するクロックプライオリティの変更を指示する指示メッセージを出力する(S12)。クロックプライオリティは、PTPパケットの優先度を示す情報である。PTPパケットの優先度を示す情報は、中継装置10が中継するSynメッセージもしくはannounceメッセージ等の優先度を示す情報に相当する。クロックプライオリティは、PTPパケットのヘッダに設定されてもよく、PTPパケットのペイロードに設定されてもよい。クロックプライオリティは、例えば、優先度が高レベル、優先度が中レベル、優先度が低レベル等の複数のレベルを示してもよい。もしくは、クロックプライオリティは、4段階以上の詳細な優先度のレベルを示してもよい。   Next, the time service monitoring unit 69 outputs an instruction message instructing the packet processing unit 68 to change the clock priority set in the PTP packet (S12). The clock priority is information indicating the priority of the PTP packet. The information indicating the priority of the PTP packet corresponds to information indicating the priority of a Syn message or an announce message relayed by the relay apparatus 10. The clock priority may be set in the header of the PTP packet or may be set in the payload of the PTP packet. For example, the clock priority may indicate a plurality of levels such as a high priority, a medium priority, and a low priority. Alternatively, the clock priority may indicate detailed priority levels of four or more levels.

例えば、時刻サービス監視部69は、クロックプライオリティに設定する値として、現在設定されている優先度のレベルよりも1段階もしくは2段階以上低い優先度のレベルを設定することを指示してもよい。もしくは、時刻サービス監視部69は、クロックプライオリティに設定する値として、一番低い優先度のレベルを設定することを指示してもよい。   For example, the time service monitoring unit 69 may instruct to set a priority level that is one step or two steps lower than the currently set priority level as a value to be set for the clock priority. Alternatively, the time service monitoring unit 69 may instruct to set the lowest priority level as the value to be set for the clock priority.

次に、パケット処理部68は、クロックプライオリティを変更後のPTPパケットをスレーブ装置30へ送信する(S13)。   Next, the packet processing unit 68 transmits the PTP packet after changing the clock priority to the slave device 30 (S13).

以上説明したように、実施の形態2にかかる中継装置10を用いることによって、中継装置10内に障害が発生した場合に、PTPパケットのクロックプライオリティが示す優先度のレベルを下げることによって、スレーブ装置30へ、中継装置10の異常状態を通知することができる。スレーブ装置30は、中継装置10から送信されたPTPパケットを用いて時刻同期処理を行っている状態において、優先度のレベルが低いPTPパケットを受信すると、他の中継装置から送信されたPTPパケットを用いて時刻同期処理を行うことができる。   As described above, by using the relay device 10 according to the second embodiment, when a failure occurs in the relay device 10, the slave device can reduce the priority level indicated by the clock priority of the PTP packet. 30 can notify the abnormal state of the relay device 10. When the slave device 30 receives a PTP packet having a low priority level in a state in which time synchronization processing is performed using the PTP packet transmitted from the relay device 10, the slave device 30 receives the PTP packet transmitted from another relay device. Time synchronization processing can be performed.

これより、スレーブ装置30は、マスター装置20に障害が発生した時に以外にも、中継装置10に障害が発生した場合においても、時刻同期処理に用いるPTPパケットとして、障害が発生していない中継装置から受信したPTPパケットを用いることができる。   As a result, the slave device 30 is a relay device in which no failure has occurred as a PTP packet used for the time synchronization process not only when a failure occurs in the master device 20 but also when a failure occurs in the relay device 10. PTP packets received from can be used.

(実施の形態3)
続いて、図5を用いて実施の形態3にかかる中継装置80の構成例について説明する。中継装置80は、図3の中継装置10のパケット処理部68が、パケットフィルタ71を有する構成を示している。中継装置80におけるパケット処理部68以外のその他の構成は、図3の中継装置10と同様であるため詳細な説明を省略する。また、実施の形態3にかかる通信システムは、図2の通信システムにおける中継装置10を中継装置80へ置き換えた構成となる。
(Embodiment 3)
Next, a configuration example of the relay device 80 according to the third embodiment will be described with reference to FIG. The relay device 80 has a configuration in which the packet processing unit 68 of the relay device 10 in FIG. Since the configuration other than the packet processing unit 68 in the relay device 80 is the same as that of the relay device 10 in FIG. 3, detailed description thereof is omitted. Further, the communication system according to the third embodiment has a configuration in which the relay device 10 in the communication system of FIG.

時刻サービス監視部69は、中継装置80内のクロックに関連する機能に障害が発生していることを検出すると、パケット処理部68へ、障害検出に関する障害メッセージを出力する。   When the time service monitoring unit 69 detects that a failure has occurred in a function related to the clock in the relay device 80, the time service monitoring unit 69 outputs a failure message regarding failure detection to the packet processing unit 68.

パケット処理部68は、障害メッセージを受信すると、パケットフィルタ71を用いて、パケット入出力部70に対するPTPパケットの出力を停止する。具体的には、パケット処理部68は、障害メッセージを受信すると、パケットフィルタ71を用いて、egress PTPパケットをパケット入出力部70へ出力することを停止する。   When receiving the failure message, the packet processing unit 68 stops outputting the PTP packet to the packet input / output unit 70 using the packet filter 71. Specifically, when receiving the failure message, the packet processing unit 68 stops outputting the egress PTP packet to the packet input / output unit 70 using the packet filter 71.

続いて、図6を用いて実施の形態3にかかる中継装置80における障害検出処理の流れについて説明する。はじめに、時刻サービス監視部69は、中継装置80内のクロックに関連する機能が正常に動作していないこと、つまり、中継装置80内のクロックに関連する機能に障害が発生していることを検出する(S21)。   Next, a flow of failure detection processing in the relay device 80 according to the third embodiment will be described with reference to FIG. First, the time service monitoring unit 69 detects that the function related to the clock in the relay device 80 is not operating normally, that is, that a failure has occurred in the function related to the clock in the relay device 80. (S21).

次に、時刻サービス監視部69は、パケット処理部68に対して、中継装置80内のクロックに関連する機能に障害が発生したことを示す障害情報を時刻サービス監視部69へ出力する(S22)。   Next, the time service monitoring unit 69 outputs failure information indicating that a failure has occurred in a function related to the clock in the relay device 80 to the packet processing unit 68 to the time service monitoring unit 69 (S22). .

次に、パケット処理部68は、パケットフィルタ71を用いてPTPパケットをパケット入出力部70へ出力することを停止する。   Next, the packet processing unit 68 stops outputting the PTP packet to the packet input / output unit 70 using the packet filter 71.

以上説明したように、実施の形態3にかかる中継装置80は、障害が発生した際に、PTPパケットをスレーブ装置30へ送信することを停止することができる。スレーブ装置30は、中継装置80からPTPパケットが所定の期間送信されてこないことによって、他の中継装置から受信したPTPパケットを用いて時刻同期処理を行うことができる。   As described above, the relay device 80 according to the third embodiment can stop transmitting the PTP packet to the slave device 30 when a failure occurs. The slave device 30 can perform the time synchronization process using the PTP packet received from another relay device because the PTP packet is not transmitted from the relay device 80 for a predetermined period.

言い換えると、中継装置80が、障害が発生した際に、PTPパケットをスレーブ装置30へ送信しないことによって、スレーブ装置30は、中継装置80に障害が発生したことを検知することができる。   In other words, when the relay device 80 does not transmit a PTP packet to the slave device 30 when a failure occurs, the slave device 30 can detect that the relay device 80 has failed.

これより、スレーブ装置30は、マスター装置20に障害が発生した時に以外にも、中継装置80に障害が発生した場合においても、時刻同期処理に用いるPTPパケットとして、障害が発生していない中継装置から受信したPTPパケットを用いることができる。   As a result, the slave device 30 is a relay device in which no failure occurs as a PTP packet used for the time synchronization process even when a failure occurs in the relay device 80 other than when a failure occurs in the master device 20. PTP packets received from can be used.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。また、本発明は、上記の実施の形態を組み合わせて実施されてもよい。   Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention. Further, the present invention may be implemented by combining the above-described embodiments.

10 中継装置
11 受信部
12 障害検出部
13 異常時処理部
14 時刻情報処理部
15 送信部
17 中継装置
18 中継装置
20 マスター装置
25 マスター装置
30 スレーブ装置
40 GNSS衛星
50 GNSS受信機
61 パケット入出力部
62 パケット処理部
63 PECスレーブ部
64 時刻ソースクロック部
65 時刻選択部
66 時刻及び周波数生成部
67 周波数選択部
68 パケット処理部
69 時刻サービス監視部
70 パケット入出力部
71 パケットフィルタ
80 中継装置
DESCRIPTION OF SYMBOLS 10 Relay apparatus 11 Receiving part 12 Failure detection part 13 Abnormal time processing part 14 Time information processing part 15 Transmission part 17 Relay apparatus 18 Relay apparatus 20 Master apparatus 25 Master apparatus 30 Slave apparatus 40 GNSS satellite 50 GNSS receiver 61 Packet input / output part 62 packet processing unit 63 PEC slave unit 64 time source clock unit 65 time selection unit 66 time and frequency generation unit 67 frequency selection unit 68 packet processing unit 69 time service monitoring unit 70 packet input / output unit 71 packet filter 80 relay device

Claims (8)

マスター装置から時刻情報を含む第1の同期パケットを受信する受信部と、
前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成する時刻情報処理部と、
自装置内において発生した障害が発生しているか否かを監視する障害検出部と、
障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信する送信部と、
障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行する異常時処理部と、を有する中継装置。
A receiver for receiving a first synchronization packet including time information from the master device;
A time information processing unit for generating a second synchronization packet including time information indicating a delay time generated in the device based on the first synchronization packet;
A failure detection unit that monitors whether or not a failure that occurred in the device itself has occurred;
If no failure has occurred, a transmitter that transmits the second synchronization packet to the slave device;
A relay apparatus comprising: an abnormal time processing unit that executes an abnormal time process on the second synchronization packet when a failure occurs.
前記異常時処理部は、自装置に障害が検出された場合、優先度を下げた前記第2の同期パケットを前記スレーブ装置へ送信し、前記優先度は、前記スレーブ装置が複数の同期パケットを受信した際に使用する同期パケットを選択するために用いられる、請求項1に記載の中継装置。   When a failure is detected in the own device, the abnormal time processing unit transmits the second synchronization packet with a lowered priority to the slave device, and the priority is determined by the slave device with a plurality of synchronization packets. The relay device according to claim 1, which is used for selecting a synchronization packet to be used upon reception. 前記受信部において受信した前記第1の同期パケットから時刻情報を抽出する第1のパケット処理部と、
前記スレーブ装置へ送信する前記第2の同期パケットを生成する第2のパケット処理部とをさらに備え、
前記異常時処理部は、
前記第1のパケット処理部及び前記第2のパケット処理部のいずれかに対して、前記第1の同期パケットもしくは前記第2の同期パケットのクロックプライオリティを下げることを指示する、請求項2に記載の中継装置。
A first packet processing unit that extracts time information from the first synchronization packet received by the receiving unit;
A second packet processing unit that generates the second synchronization packet to be transmitted to the slave device;
The abnormality processing unit is
3. The control unit according to claim 2, wherein one of the first packet processing unit and the second packet processing unit is instructed to lower a clock priority of the first synchronization packet or the second synchronization packet. Relay device.
前記異常時処理部は、
自装置に障害が検出された場合、前記第2の同期パケットを前記スレーブ装置へ送信することを停止する、請求項1に記載の中継装置。
The abnormality processing unit is
The relay device according to claim 1, wherein when a failure is detected in the own device, transmission of the second synchronization packet to the slave device is stopped.
前記受信部において受信した前記第1の同期パケットから時刻情報を抽出する第1のパケット処理部と、
前記スレーブ装置へ送信する前記第2の同期パケットを生成する第2のパケット処理部とをさらに備え、
前記異常時処理部は、
前記第2のパケット処理部に対して前記第2の同期パケットの出力を停止させる、請求項4に記載の中継装置。
A first packet processing unit that extracts time information from the first synchronization packet received by the receiving unit;
A second packet processing unit that generates the second synchronization packet to be transmitted to the slave device;
The abnormality processing unit is
The relay apparatus according to claim 4, wherein the second packet processing unit stops the output of the second synchronization packet.
前記第1及び第2の同期パケットとしてPTPパケットが用いられる、請求項1乃至5のいずれか1項に記載の中継装置。   The relay apparatus according to claim 1, wherein a PTP packet is used as the first and second synchronization packets. マスター装置から時刻情報を含む第1の同期パケットを受信し、
前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成し、
自装置内において障害が発生しているか否かを監視し、
障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信し、
障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行する中継装置における制御方法。
Receiving a first synchronization packet including time information from the master device;
Based on the first synchronization packet, generate a second synchronization packet including time information indicating a delay time generated in the own device,
Monitor whether there is a failure in the device,
If no failure has occurred, send the second synchronization packet to the slave device;
A control method in a relay apparatus that executes processing for an abnormal time on the second synchronization packet when a failure occurs.
マスター装置と、
スレーブ装置と、
前記マスター装置と前記スレーブ装置との間に配置される中継装置とを備える通信システムであって、
前記中継装置は、
マスター装置から時刻情報を含む第1の同期パケットを受信する受信部と、
前記第1の同期パケットに基いて、自装置内で生じた遅延時間を示す時間情報を含む第2の同期パケットを生成する時刻情報処理部と、
自装置内において発生した障害が発生しているか否かを監視する障害検出部と、
障害が発生していない場合には、前記第2の同期パケットをスレーブ装置に送信する送信部と、
障害が発生した場合には、前記第2の同期パケットに対して、異常時用の処理を実行する異常時処理部と、を備える通信システム。
A master device,
A slave device;
A communication system comprising a relay device arranged between the master device and the slave device,
The relay device is
A receiver for receiving a first synchronization packet including time information from the master device;
A time information processing unit for generating a second synchronization packet including time information indicating a delay time generated in the device based on the first synchronization packet;
A failure detection unit that monitors whether or not a failure that occurred in the device itself has occurred;
If no failure has occurred, a transmitter that transmits the second synchronization packet to the slave device;
A communication system comprising: an abnormal time processing unit that executes an abnormal time process on the second synchronization packet when a failure occurs.
JP2016108591A 2016-05-31 2016-05-31 Repeating device, control method, and communication system Pending JP2017216563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016108591A JP2017216563A (en) 2016-05-31 2016-05-31 Repeating device, control method, and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016108591A JP2017216563A (en) 2016-05-31 2016-05-31 Repeating device, control method, and communication system

Publications (1)

Publication Number Publication Date
JP2017216563A true JP2017216563A (en) 2017-12-07

Family

ID=60575925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016108591A Pending JP2017216563A (en) 2016-05-31 2016-05-31 Repeating device, control method, and communication system

Country Status (1)

Country Link
JP (1) JP2017216563A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021117270A1 (en) * 2019-12-12 2021-06-17 三菱電機株式会社 Relay device and communication system
CN114362873A (en) * 2021-12-30 2022-04-15 苏州盛科通信股份有限公司 Optimization method and application of PTP clock synchronization
JP7098084B1 (en) * 2021-10-12 2022-07-08 三菱電機株式会社 Information processing equipment, information processing methods and information processing programs
JP7401656B2 (en) 2019-09-06 2023-12-19 華為技術有限公司 METHODS, APPARATUS AND SYSTEM AND STORAGE MEDIA FOR SELECTING CLOCK SOURCES

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7401656B2 (en) 2019-09-06 2023-12-19 華為技術有限公司 METHODS, APPARATUS AND SYSTEM AND STORAGE MEDIA FOR SELECTING CLOCK SOURCES
WO2021117270A1 (en) * 2019-12-12 2021-06-17 三菱電機株式会社 Relay device and communication system
JP7304801B2 (en) 2019-12-12 2023-07-07 三菱電機株式会社 Repeater and communication system
JP7098084B1 (en) * 2021-10-12 2022-07-08 三菱電機株式会社 Information processing equipment, information processing methods and information processing programs
WO2023062709A1 (en) * 2021-10-12 2023-04-20 三菱電機株式会社 Information processing device, information processing method, and information processing program
CN114362873A (en) * 2021-12-30 2022-04-15 苏州盛科通信股份有限公司 Optimization method and application of PTP clock synchronization
CN114362873B (en) * 2021-12-30 2023-12-19 苏州盛科通信股份有限公司 Optimization method and application of PTP clock synchronization

Similar Documents

Publication Publication Date Title
US8953645B2 (en) Communication system, communication apparatus and time synchronization method
JP6820586B2 (en) Time synchronization system
US20180097610A1 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
EP1427121B1 (en) Radio access network, radio communication method, synchronous server and node
US9548831B2 (en) Synchronizing system, synchronizing method, first synchronizing device, second synchronizing device, and computer program
JP5358813B2 (en) Network node, time synchronization method, and network system
US20190357165A1 (en) Synchronizing clocks in a wireless system
US9513388B2 (en) Method for providing synchronization in a data acquisition system
US10901372B2 (en) Time synchronization device, time synchronization system, and time synchronization method
RU2556082C1 (en) Synchronisation device and synchronisation method
JP2017216563A (en) Repeating device, control method, and communication system
JP5515735B2 (en) Time synchronization system, master node, slave node, relay device, time synchronization method, and time synchronization program
JP2008182385A (en) Mobile communication system, time server and intra-station synchronization method used for the same
US10834768B2 (en) Wireless apparats and wireless apparatus processing method to enhance time synchronization accuracy between a plurality of wireless apparatuses in a wireless network
JP2015068806A (en) Time synchronization system and time synchronization device
EP2053766A2 (en) Method and arrangement for transferring a time of day value between network elements
JP5407568B2 (en) Sync signal generating apparatus and sync signal generating method
WO2013069176A1 (en) Transmitter, transmission method, and non-temporary computer-readable medium in which program is stored
WO2020195573A1 (en) Time synchronization system, relay device, time synchronization method, and non-transitory computer-readable medium
JP4662842B2 (en) Time correction system
WO2017033416A1 (en) Relay device, communication system, and fault detection method
WO2017150306A1 (en) Communication system, backup communication device, main communication device, time synchronization method, and non-transitory computer-readable medium
JP2002094490A (en) Time-supplying system and time-supplying device
JP2012004940A (en) Remote i/o system and time synchronization method in remote i/o system
JP2023094100A (en) Communication device and communication system