[go: up one dir, main page]

WO2012118177A1 - Synchronization device, time management method, and computer program - Google Patents

Synchronization device, time management method, and computer program Download PDF

Info

Publication number
WO2012118177A1
WO2012118177A1 PCT/JP2012/055371 JP2012055371W WO2012118177A1 WO 2012118177 A1 WO2012118177 A1 WO 2012118177A1 JP 2012055371 W JP2012055371 W JP 2012055371W WO 2012118177 A1 WO2012118177 A1 WO 2012118177A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
synchronization
clock signal
clock
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2012/055371
Other languages
French (fr)
Japanese (ja)
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.)
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
Publication of WO2012118177A1 publication Critical patent/WO2012118177A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R40/00Correcting the clock frequency
    • G04R40/06Correcting the clock frequency by computing the time value implied by the radio signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J2203/00Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
    • H04J2203/0001Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
    • H04J2203/0073Services, e.g. multimedia, GOS, QOS
    • H04J2203/0082Interaction of SDH with non-ATM protocols
    • H04J2203/0085Support of Ethernet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • the present invention relates to a technique for synchronizing time between devices that perform communication.
  • FIG. 7 is a diagram illustrating a configuration example of the time synchronization apparatus 90 related to the above technique.
  • the time synchronization apparatus 90 includes a synchronization packet transmission / reception unit 901, a synchronization control unit 902, a clock oscillator 904, and a time management unit 905.
  • the time synchronization device 90 keeps the time counted by the time management unit 905 with a certain accuracy by the clock oscillator 904 provided in the time synchronization device 90. That is, the time synchronization is maintained only by the clock signal of the clock oscillator 904 during the interval (time synchronization interval) at which the phase signal is generated in response to reception of the synchronization packet.
  • an object of the present invention is to provide a technique that can increase the accuracy of time synchronization between communication devices without significantly increasing the device cost and the communication frequency of synchronization packets.
  • One aspect of the present invention is a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet according to a synchronization protocol with another device, and a transmission and reception unit that transmits and receives the synchronization packet; Based on the clock signal acquisition unit that acquires the clock signal flowing through the communication path, the synchronization control unit that acquires the difference between the time of its own device and the time of the other device, based on the synchronization packet, and the difference A time management unit that corrects the time of the own device and manages the time of the own device based on the corrected time and the clock signal.
  • One aspect of the present invention is a time management method performed by a synchronization device that synchronizes time with another device by transmitting and receiving a synchronization packet with the other device according to a synchronization protocol, and transmits and receives the synchronization packet.
  • a transmission / reception step a clock signal acquisition step of acquiring a clock signal flowing through the communication path, a synchronization control step of acquiring a difference between the time of the own device and the time of the other device based on the synchronization packet, A time management step of correcting the time of the own device based on the difference and managing the time of the own device based on the corrected time and the clock signal.
  • One aspect of the present invention is a computer program for operating a computer as a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet with the other device according to a synchronization protocol.
  • FIG. 3 is a sequence diagram showing a communication sequence by an IEEE 1588 time synchronization algorithm. It is a functional block diagram showing the structure of a time synchronous slave apparatus. It is a flowchart showing the flow of operation
  • FIG. 1 is a system configuration diagram showing a system configuration of the first embodiment (synchronization system 100) of the synchronization system.
  • the synchronization system 100 includes a clock generator 10, a time synchronization master device 20 (corresponding to “another device” of the present invention), a relay device 30, and a time synchronization slave device 40 (corresponding to “a synchronization device” of the present invention).
  • the synchronization system 100 includes one device, but the number of devices included in the synchronization system 100 is not limited to one. Further, the number of relay devices 30 provided between the time synchronization master device 20 and the time synchronization slave device 40 is not limited to one, and may be two or more.
  • the time synchronization master device 20 and the time synchronization slave device 40 transmit and receive synchronization packets according to a predetermined protocol.
  • the time synchronization master device 20 and the time synchronization slave device 40 perform time synchronization by transmitting and receiving synchronization packets.
  • the predetermined protocol may be any protocol as long as time synchronization is possible. Specific examples of the predetermined protocol include IEEE 1588, IEEE 1588 version 2, and the like.
  • the time synchronization slave device 40 counts the time based on the clock signal between the time synchronization and the next time synchronization.
  • the time synchronization slave device 40 outputs a time synchronization signal every time a predetermined time is reached.
  • the clock signal used by the time synchronization slave device 40 to count the time is a clock signal that flows through the communication path between the relay device 30 and the time synchronization slave device 40. Therefore, the time synchronization slave device 40 does not need to include a clock signal generation device (for example, a clock oscillator) that outputs a clock signal for generating a time synchronization signal, and can maintain high time accuracy.
  • a clock signal generation device for example, a clock oscillator
  • FIG. 2 is a sequence diagram showing a communication sequence based on the IEEE 1588 time synchronization algorithm.
  • a clock master (corresponding to a time synchronization master device) and a clock slave (corresponding to a time synchronization slave device) perform bidirectional communication, and the clock slave periodically synchronizes the time with the clock master.
  • each message (Sync message, Follow_up message, Delay_Request message, Delay_Response message) transmitted from the clock master or clock slave corresponds to a synchronization packet.
  • the clock master periodically sends a Sync message to the clock slave (step S900).
  • the clock master records the transmission time of the Sync message (hereinafter referred to as “Sync transmission time”) Tm (0) (step S901).
  • the clock master transmits a Follow_up message to the clock slave (step S903).
  • the clock master stores the Sync transmission time Tm (0) in the Follow_up message.
  • the clock slave Upon receiving the Sync message, the clock slave records the reception time of the Sync message (hereinafter referred to as “Sync reception time”) Ts (0) using this reception process as a trigger (step S902). Next, the clock slave receives the Follow_up message and extracts and records the Sync transmission time Tm (0) stored in the Follow_up message. Next, the clock slave transmits a Delay_Request message to the clock master (step S904). Then, the clock slave records the transmission time of the Delay_Request message (hereinafter referred to as “Delay transmission time”) Ts (1) (step S905).
  • Delay transmission time the transmission time of the Delay_Request message
  • the clock master Upon receiving the Delay_Request message, the clock master records the reception time of the Delay_Request message (hereinafter referred to as “Delay reception time”) Tm (1) using this reception process as a trigger (step S906). Next, the clock master transmits a Delay_Response message to the clock slave (step S907). At this time, the clock master stores the Delay reception time Tm (1) in the Delay_Response message.
  • the clock slave obtains the difference between the slave time and the master time from the following equation 2 based on the Delay transmission time Ts (1) and the Delay reception time Tm (1).
  • MS_Delay represents the transmission delay from the clock master to the clock slave
  • SM_Delay represents the transmission delay from the clock slave to the clock master
  • Offset represents the time offset (advance) of the clock slave with respect to the clock master.
  • the transmission delays MS_Delay and SM_Delay are composed of a propagation delay between the clock master and the clock slave and a queuing delay that occurs at a relay node on the network between the clock master and the clock slave.
  • the clock slave calculates the offset based on Equation 5 and corrects the slave time based on the offset to synchronize the slave time with the master time.
  • the above is the time synchronization algorithm defined in IEEE1588.
  • the clock generator 10 supplies a clock signal to the time synchronization master device 20 and the relay device 30.
  • the clock generator 10 is preferably a high-accuracy clock generator that generates a clock signal with high accuracy.
  • the clock generator 10 may be a GPS (Global Positioning System) receiver, for example, or may be configured using a high-performance oscillator.
  • the time synchronization master device 20 operates in synchronization with the clock signal output from the clock generator 10.
  • the time synchronization master device 20 operates according to a predetermined protocol, and performs time synchronization with the time synchronization slave device 40 by transmitting and receiving synchronization packets.
  • the time synchronization processing synchronizes the time in the time synchronization master device 20 (hereinafter referred to as “master device time”) and the time in the time synchronization slave device 40 (hereinafter referred to as “slave device time”). .
  • the relay device 30 is a clock synchronous communication device, and performs packet relay processing in synchronization with the clock signal output from the clock generator 10. For example, the relay device 30 relays packets according to a synchronous communication method such as SDH (Synchronous Digital Hierarchy) or Synchronous Ethernet (registered trademark). More specifically, the relay device 30 synchronizes its own clock with the clock signal received from the communication path, and transmits the signal to the communication path at the same frequency.
  • the communication path between the relay device 30 and the time synchronization slave device 40 is clock-synchronized according to the clock signal output by the clock generator 10, and a clock signal having a predetermined cycle is propagated.
  • a clock signal flows through the communication path at 125 MHz.
  • the relay device 30 relays the synchronization packet received from the time synchronization master device 20 to the time synchronization slave device 40.
  • the relay device 30 relays the synchronization packet received from the time synchronization slave device 40 to the time synchronization master device 20.
  • the time synchronization slave device 40 transmits / receives a synchronization packet to / from the time synchronization master device 20 via the relay device 30 and performs time synchronization with the time synchronization master device 20.
  • the time synchronization slave device 40 acquires a synchronized clock signal from the communication path with the relay device 30.
  • the time synchronization slave device 40 outputs a time synchronization signal synchronized with the time synchronization master device 20 based on the result of the time synchronization and the clock signal acquired from the communication path.
  • the destination to which the time synchronization slave device 40 outputs the time synchronization signal may be a network to which the time synchronization slave device 40 is connected, or may be a device to which the time synchronization slave device 40 is connected.
  • the time synchronization slave device 40 may be incorporated in the device as one component. In this case, the time synchronization slave device 40 outputs a time synchronization signal to other parts of the device in which the device is incorporated.
  • FIG. 3 is a functional block diagram showing the configuration of the time synchronization slave device 40.
  • the time synchronization slave device 40 includes a CPU (Central Processing Unit) connected via a bus, a memory, an auxiliary storage device, and the like, and executes a time synchronization program.
  • the time synchronization slave device 40 includes a synchronization packet transmission / reception unit 401 (corresponding to “transmission / reception unit” of the present invention), a synchronization control unit 402, a first clock signal extraction unit 403 (“clock signal of the present invention” It corresponds to an apparatus provided with a second clock signal generation unit 404 and a time management unit 405.
  • a synchronization packet transmission / reception unit 401 corresponding to “transmission / reception unit” of the present invention
  • a synchronization control unit 402 a first clock signal extraction unit 403 (“clock signal of the present invention” It corresponds to an apparatus provided with a second clock signal generation unit 404 and a time management unit 405.
  • the time synchronization slave device 40 may be realized using hardware such as ASIC (Application Specific Integrated Circuit), PLD (Programmable Logic Device), and FPGA (Field Programmable Gate Array). good.
  • the time synchronization program may be recorded on a computer-readable recording medium.
  • the computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system.
  • the synchronization packet transmission / reception unit 401 receives the synchronization packet from the communication path with the relay device 30 and transfers the synchronization packet to the synchronization control unit 402. In addition, the synchronization packet transmission / reception unit 401 sends the synchronization packet received from the synchronization control unit 402 to the communication path.
  • the synchronization packet sent to the communication path by the synchronization packet transmitting / receiving unit 401 is relayed by the relay device 30 and received by the time synchronization master device 20.
  • the synchronization control unit 402 synchronizes the slave device time with the master device time by exchanging synchronization packets with the time synchronization master device 20 at the end of the communication path.
  • the synchronization control unit 402 outputs a phase signal representing the difference between the slave device time before synchronization and the master device time to the time management unit 405 as a result of the time synchronization.
  • the first clock signal extraction unit 403 extracts a clock signal from the physical layer signal received from the communication path.
  • the first clock signal extraction unit 403 outputs the extracted clock signal to the second clock signal generation unit 404 as the first clock signal.
  • the second clock signal generation unit 404 generates a second clock signal synchronized with the first clock signal output from the first clock signal extraction unit 403.
  • the second clock signal generation unit 404 generates the second clock signal by multiplying or dividing the first clock signal.
  • the second clock signal is a clock signal used by the time management unit 405 to count the slave device time.
  • the time management unit 405 manages the slave device time. Specifically, the time management unit 405 counts the slave device time based on the second clock signal received from the second clock signal generation unit 404. The time management unit 405 generates and outputs a time synchronization signal at a predetermined time. When receiving the phase signal from the synchronization control unit 402, the time management unit 405 corrects the slave device time based on the received phase signal. By correcting the slave device time, the output timing of the time synchronization signal is corrected. The time management unit 405 corrects the slave device time based on the phase signal, and then receives the phase signal until the next time the phase signal is received, the slave device based on the second clock signal received from the second clock signal generation unit 404 Count the time. For this reason, if a shift occurs in the second clock signal, the slave device time being counted also shifts, and the timing at which the time synchronization signal is output shifts. This deviation is corrected based on the next phase signal.
  • FIG. 4 is a flowchart showing an operation flow of the time synchronization slave device 40.
  • the synchronization control unit 402 performs time synchronization by transmitting and receiving a synchronization packet to and from the time synchronization master device 20 at a predetermined timing.
  • the synchronization control unit 402 outputs a phase signal representing a difference between the slave device time and the master device time to the time management unit 405 as a result of the time synchronization (step S101).
  • the time management unit 405 corrects the slave device time based on the phase signal (step S102).
  • the second clock signal generation unit 404 continues to output the second clock signal to the time management unit 405 (steps S103, S105, S109).
  • the time management unit 405 determines the output timing of the time synchronization signal based on the corrected slave device time and the second clock signal. Then, the time management unit 405 outputs a time synchronization signal at the determined output timing (steps S104, S106, S110).
  • step S107 When a new phase signal is output from the synchronization control unit 402 (step S107), the time management unit 405 performs time correction based on the new phase signal (step S108). Thereafter, the time management unit 405 counts the slave device time based on the slave device time corrected in step S108 and the second clock signal (step S109) output from the second clock signal generation unit 404. When a predetermined time comes, a time synchronization signal is output (step S110).
  • the second clock signal used by the time management unit 405 to count the slave device time is synchronized with the clock signal (first clock signal) extracted from the communication path. Therefore, by making the clock signal flowing in the communication path into a high-accuracy clock signal, each time synchronization slave device 40 does not have a high-accuracy clock signal generator, and the slave is based on the high-accuracy clock signal. The device time can be counted. Therefore, in order to maintain highly accurate time synchronization, it is not necessary to shorten the interval between transmission and reception of synchronization packets.
  • the clock signal flowing in the communication path is synchronized with the clock signal input to the time synchronization master device 20. Therefore, once the time synchronization by the transmission / reception of the synchronization packet is performed once, the time synchronization master device 20 and the time synchronization slave device are not newly transmitted / received unless the clock signal flowing through the communication path is shifted. It is possible to maintain a synchronization state with 40.
  • the clock signal flowing through the communication path need not be limited to a clock signal as a synchronization signal used for transmission / reception of the relay device 30.
  • the relay device 30 may be configured so that a clock signal flows through the communication path. Therefore, in this case, the relay device 30 is not necessarily a clock synchronous communication device.
  • FIG. 5 is a system configuration diagram showing a system configuration of the second embodiment (synchronization system 100a) of the synchronization system.
  • the clock signal used by the time synchronization slave device 40a is not the clock signal extracted from the communication path between the relay device 30 and the time synchronization slave device 40a, but the clock synchronization to which the clock generator 10 is connected. It differs from the synchronization system 100 of the first embodiment in that it is extracted from the network 50.
  • the synchronization system 100a of the second embodiment will be described in detail.
  • the clock generator 10 is connected to the clock synchronization network 50 and supplies a clock signal to the clock synchronization network 50.
  • the relay device 30a is a general packet transmission device, and relays synchronous packets without clock synchronization.
  • FIG. 6 is a functional block diagram showing the configuration of the time synchronization slave device 40a in the second embodiment.
  • the time synchronization slave device 40a is different from the time synchronization slave device 40 of the first embodiment in that a first clock signal extraction unit 403a is provided instead of the first clock signal extraction unit 403.
  • the remaining configuration of the time synchronization slave device 40a is the same as that of the time synchronization slave device 40 of the first embodiment.
  • the first clock signal extraction unit 403a extracts the first clock signal based on the signal received from the clock synchronization network 50, not the communication path through which the synchronization packet is transmitted and received.
  • the first clock signal for generating the second clock signal is extracted from the clock synchronization network 50 instead of the communication path through which the synchronization packet is transmitted and received. Therefore, even when a failure occurs in the communication path through which the synchronization packet is transmitted and received, the time synchronization slave device 40 is counted by counting the time based on the first clock signal extracted from the clock synchronization network 50. It is possible to prevent the time of the time from deviating significantly.
  • the clock synchronization network 50 may be configured by a clock synchronization type transmission network that can operate in synchronization with the clock generator 10.
  • the relay device 30a of the second embodiment may perform synchronization packet relay by clock synchronization.
  • the present invention can be applied to a system or a device that synchronizes time between devices that perform communication.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

A synchronization device that synchronizes the time with another device by transmitting and receiving a synchronization packet to and from the other device in accordance with a synchronization protocol, the synchronization device including: a transmit/receive unit that transmits and receives the synchronization packet; a clock signal acquisition unit that acquires a clock signal flowing over a communication channel; a synchronization control unit that acquires the difference between the time of the device itself and the time of the other device on the basis of the synchronization packet; and a time management unit that corrects the time of the device itself on the basis of said difference, and that manages the time of the device itself on the basis of the corrected time and the clock signal.

Description

同期装置、時刻管理方法及びコンピュータプログラムSynchronization device, time management method, and computer program

 本発明は、通信を行う装置間で時刻の同期を行うための技術に関する。 The present invention relates to a technique for synchronizing time between devices that perform communication.

 従来、物理的に離れた位置にある通信装置間で時刻の同期を行う技術が提案されている(特許文献1参照)。このような技術の一例として、同期処理用のパケット(同期パケット)を用いた技術がある。図7は、上記技術に関連した時刻同期装置90の構成例を示す図である。時刻同期装置90は、同期パケット送受信部901、同期制御部902、クロックオシレータ904、時刻管理部905を備える。時刻同期装置90は、自装置で備えるクロックオシレータ904によって、時刻管理部905がカウントする時刻を一定の精度に保っている。すなわち、同期パケットの受信に応じて位相信号が生成される間隔(時刻同期間隔)の間は、クロックオシレータ904のクロック信号のみで時刻の同期が保たれる。 Conventionally, a technique for synchronizing time between communication devices located at physically separated positions has been proposed (see Patent Document 1). As an example of such a technique, there is a technique using a packet for synchronization processing (synchronization packet). FIG. 7 is a diagram illustrating a configuration example of the time synchronization apparatus 90 related to the above technique. The time synchronization apparatus 90 includes a synchronization packet transmission / reception unit 901, a synchronization control unit 902, a clock oscillator 904, and a time management unit 905. The time synchronization device 90 keeps the time counted by the time management unit 905 with a certain accuracy by the clock oscillator 904 provided in the time synchronization device 90. That is, the time synchronization is maintained only by the clock signal of the clock oscillator 904 during the interval (time synchronization interval) at which the phase signal is generated in response to reception of the synchronization packet.

特開2010-062992号公報JP 2010-062992 A

 時刻管理部905によって管理される自装置の時刻の精度をより高く保つことへの要求がある。このような要求を解決する方法として、より精度の高いクロックオシレータ904を備える方法がある。また、同期パケットを頻繁に送受信することによって時刻同期間隔を短くする方法がある。しかしながらいずれの方法にも問題があった。前者の場合は、精度の高いクロックオシレータ904を個々の時刻同期装置90に備えることによるコストの増加が問題となる。後者の場合は、同期パケットの通信相手となるマスタ装置に高い性能を要求することになる。後者の場合はさらに、マスタ装置と時刻同期装置90との間の通信路の帯域を同期パケットにより消費することとなる。
 上記事情に鑑み、本発明は、装置コスト及び同期パケットの通信頻度を大幅に上げることなく通信装置間の時刻同期の精度を高くすることを可能とする技術を提供することを目的としている。
There is a request to keep the time accuracy of the own device managed by the time management unit 905 higher. As a method for solving such a requirement, there is a method including a clock oscillator 904 with higher accuracy. There is also a method of shortening the time synchronization interval by frequently transmitting and receiving synchronization packets. However, there was a problem with either method. In the former case, an increase in cost due to the provision of the clock oscillator 904 with high accuracy in each time synchronization device 90 becomes a problem. In the latter case, high performance is required from the master device that is the communication partner of the synchronization packet. In the latter case, the bandwidth of the communication path between the master device and the time synchronization device 90 is further consumed by the synchronization packet.
In view of the above circumstances, an object of the present invention is to provide a technique that can increase the accuracy of time synchronization between communication devices without significantly increasing the device cost and the communication frequency of synchronization packets.

 本発明の一態様は、他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって、前記他の装置と時刻を同期する同期装置であって、前記同期用パケットを送受信する送受信部と、通信路を流れるクロック信号を取得するクロック信号取得部と、前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御部と、前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理部と、を備える。 One aspect of the present invention is a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet according to a synchronization protocol with another device, and a transmission and reception unit that transmits and receives the synchronization packet; Based on the clock signal acquisition unit that acquires the clock signal flowing through the communication path, the synchronization control unit that acquires the difference between the time of its own device and the time of the other device, based on the synchronization packet, and the difference A time management unit that corrects the time of the own device and manages the time of the own device based on the corrected time and the clock signal.

 本発明の一態様は、他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって、前記他の装置と時刻を同期する同期装置が行う時刻管理方法であって、前記同期用パケットを送受信する送受信ステップと、通信路を流れるクロック信号を取得するクロック信号取得ステップと、前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御ステップと、前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理ステップと、を有する。 One aspect of the present invention is a time management method performed by a synchronization device that synchronizes time with another device by transmitting and receiving a synchronization packet with the other device according to a synchronization protocol, and transmits and receives the synchronization packet. A transmission / reception step, a clock signal acquisition step of acquiring a clock signal flowing through the communication path, a synchronization control step of acquiring a difference between the time of the own device and the time of the other device based on the synchronization packet, A time management step of correcting the time of the own device based on the difference and managing the time of the own device based on the corrected time and the clock signal.

 本発明の一態様は、コンピュータを、他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって前記他の装置と時刻を同期する同期装置として動作させるためのコンピュータプログラムであって、前記同期用パケットを送受信する送受信ステップと、通信路を流れるクロック信号を取得するクロック信号取得ステップと、前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御ステップと、前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理ステップと、を前記コンピュータに実行させるためのコンピュータプログラムである。 One aspect of the present invention is a computer program for operating a computer as a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet with the other device according to a synchronization protocol. A transmission / reception step for transmitting and receiving a packet, a clock signal acquisition step for acquiring a clock signal flowing through a communication path, and a synchronization for acquiring a difference between the time of the own device and the time of the other device based on the synchronization packet A computer for causing the computer to execute a control step and a time management step of correcting the time of the own device based on the difference and managing the time of the own device based on the corrected time and the clock signal It is a program.

 本発明により、装置コスト及び同期パケットの通信頻度を大幅に上げることなく通信装置間の時刻同期の精度を高くすることが可能となる。 According to the present invention, it is possible to increase the accuracy of time synchronization between communication devices without significantly increasing the device cost and the communication frequency of synchronization packets.

同期システムの第一実施形態のシステム構成を表すシステム構成図である。It is a system configuration figure showing the system configuration of a first embodiment of a synchronous system. IEEE1588の時刻同期アルゴリズムによる通信シーケンスを表すシーケンス図である。FIG. 3 is a sequence diagram showing a communication sequence by an IEEE 1588 time synchronization algorithm. 時刻同期スレーブ装置の構成を表す機能ブロック図である。It is a functional block diagram showing the structure of a time synchronous slave apparatus. 時刻同期スレーブ装置の動作の流れを表すフローチャートである。It is a flowchart showing the flow of operation | movement of a time synchronous slave apparatus. 同期システムの第二実施形態のシステム構成を表すシステム構成図である。It is a system configuration figure showing the system configuration of a second embodiment of a synchronous system. 第二実施形態における時刻同期スレーブ装置の構成を表す機能ブロック図である。It is a functional block diagram showing the structure of the time synchronous slave apparatus in 2nd embodiment. 関連技術の時刻同期装置の構成例を示す図である。It is a figure which shows the structural example of the time synchronization apparatus of related technology.

 [第一実施形態]
 図1は、同期システムの第一実施形態(同期システム100)のシステム構成を表すシステム構成図である。同期システム100は、クロック生成器10、時刻同期マスタ装置20(本発明の「他の装置」に相当)、中継装置30、時刻同期スレーブ装置40(本発明の「同期装置」に相当)を備える。図1では同期システム100は各装置を1台ずつ備えているが、同期システム100に備えられる各装置の台数は一台に限られない。また、時刻同期マスタ装置20と時刻同期スレーブ装置40との間に設けられる中継装置30の台数も一台に限られず、二台以上であっても良い。
[First embodiment]
FIG. 1 is a system configuration diagram showing a system configuration of the first embodiment (synchronization system 100) of the synchronization system. The synchronization system 100 includes a clock generator 10, a time synchronization master device 20 (corresponding to “another device” of the present invention), a relay device 30, and a time synchronization slave device 40 (corresponding to “a synchronization device” of the present invention). . In FIG. 1, the synchronization system 100 includes one device, but the number of devices included in the synchronization system 100 is not limited to one. Further, the number of relay devices 30 provided between the time synchronization master device 20 and the time synchronization slave device 40 is not limited to one, and may be two or more.

 まず、同期システム100の概略について説明する。時刻同期マスタ装置20と時刻同期スレーブ装置40とは、互いに所定のプロトコルにしたがって同期パケットを送受信する。同期パケットの送受信によって、時刻同期マスタ装置20と時刻同期スレーブ装置40とは時刻同期を行う。所定のプロトコルは、時刻同期が可能なプロトコルであればどのようなものであっても良い。所定のプロトコルの具体例としてIEEE1588、IEEE1588version2などがある。
 時刻同期スレーブ装置40は、時刻同期が行われてから次の時刻同期が行われる間は、クロック信号に基づいて時刻のカウントを行う。そして、時刻同期スレーブ装置40は所定の時刻になる度に時刻同期信号を出力する。時刻同期スレーブ装置40が時刻のカウントに用いるクロック信号は、中継装置30と時刻同期スレーブ装置40との間の通信路に流れるクロック信号である。そのため、時刻同期スレーブ装置40は、時刻同期信号を生成するためのクロック信号を出力するクロック信号生成装置(例えばクロックオシレータ)を備える必要無く、時刻の精度を高く維持することが可能となる。
First, an outline of the synchronization system 100 will be described. The time synchronization master device 20 and the time synchronization slave device 40 transmit and receive synchronization packets according to a predetermined protocol. The time synchronization master device 20 and the time synchronization slave device 40 perform time synchronization by transmitting and receiving synchronization packets. The predetermined protocol may be any protocol as long as time synchronization is possible. Specific examples of the predetermined protocol include IEEE 1588, IEEE 1588 version 2, and the like.
The time synchronization slave device 40 counts the time based on the clock signal between the time synchronization and the next time synchronization. The time synchronization slave device 40 outputs a time synchronization signal every time a predetermined time is reached. The clock signal used by the time synchronization slave device 40 to count the time is a clock signal that flows through the communication path between the relay device 30 and the time synchronization slave device 40. Therefore, the time synchronization slave device 40 does not need to include a clock signal generation device (for example, a clock oscillator) that outputs a clock signal for generating a time synchronization signal, and can maintain high time accuracy.

 次に、上述した時刻同期のプロトコルのうち、一つの具体例としてIEEE1588について説明する。
 図2は、IEEE1588の時刻同期アルゴリズムによる通信シーケンスを表すシーケンス図である。図2では、クロックマスタ(時刻同期マスタ装置に相当)とクロックスレーブ(時刻同期スレーブ装置に相当)とが双方向通信を行っており、クロックスレーブが定期的にクロックマスタに時刻を同期させる。図2において、クロックマスタ又はクロックスレーブから送信される各メッセージ(Syncメッセージ、Follow_upメッセージ、Delay_Requestメッセージ、Delay_Responseメッセージ)が同期パケットに相当する。
Next, IEEE1588 will be described as one specific example of the above-described time synchronization protocols.
FIG. 2 is a sequence diagram showing a communication sequence based on the IEEE 1588 time synchronization algorithm. In FIG. 2, a clock master (corresponding to a time synchronization master device) and a clock slave (corresponding to a time synchronization slave device) perform bidirectional communication, and the clock slave periodically synchronizes the time with the clock master. In FIG. 2, each message (Sync message, Follow_up message, Delay_Request message, Delay_Response message) transmitted from the clock master or clock slave corresponds to a synchronization packet.

 クロックマスタは、クロックスレーブに対して、定期的にSyncメッセージを送信する(ステップS900)。クロックマスタは、このSyncメッセージの送信時刻(以下、「Sync送信時刻」という。)Tm(0)を記録する(ステップS901)。次に、クロックマスタは、クロックスレーブに対して、Follow_upメッセージを送信する(ステップS903)。このとき、クロックマスタは、Follow_upメッセージの中に、Sync送信時刻Tm(0)を格納する。 The clock master periodically sends a Sync message to the clock slave (step S900). The clock master records the transmission time of the Sync message (hereinafter referred to as “Sync transmission time”) Tm (0) (step S901). Next, the clock master transmits a Follow_up message to the clock slave (step S903). At this time, the clock master stores the Sync transmission time Tm (0) in the Follow_up message.

 クロックスレーブは、Syncメッセージを受信すると、この受信処理をトリガとしてSyncメッセージの受信時刻(以下、「Sync受信時刻」という。)Ts(0)を記録する(ステップS902)。次に、クロックスレーブはFollow_upメッセージを受信し、Follow_upメッセージ中に格納されるSync送信時刻Tm(0)を抽出し記録する。次に、クロックスレーブは、クロックマスタに対して、Delay_Requestメッセージを送信する(ステップS904)。そして、クロックスレーブは、このDelay_Requestメッセージの送信時刻(以下、「Delay送信時刻」という。)Ts(1)を記録する(ステップS905)。 Upon receiving the Sync message, the clock slave records the reception time of the Sync message (hereinafter referred to as “Sync reception time”) Ts (0) using this reception process as a trigger (step S902). Next, the clock slave receives the Follow_up message and extracts and records the Sync transmission time Tm (0) stored in the Follow_up message. Next, the clock slave transmits a Delay_Request message to the clock master (step S904). Then, the clock slave records the transmission time of the Delay_Request message (hereinafter referred to as “Delay transmission time”) Ts (1) (step S905).

 クロックマスタは、Delay_Requestメッセージを受信すると、この受信処理をトリガとしてDelay_Requestメッセージの受信時刻(以下、「Delay受信時刻」という。)Tm(1)を記録する(ステップS906)。次に、クロックマスタは、クロックスレーブに対してDelay_Responseメッセージを送信する(ステップS907)。このとき、クロックマスタは、Delay_Responseメッセージの中に、Delay受信時刻Tm(1)を格納する。 Upon receiving the Delay_Request message, the clock master records the reception time of the Delay_Request message (hereinafter referred to as “Delay reception time”) Tm (1) using this reception process as a trigger (step S906). Next, the clock master transmits a Delay_Response message to the clock slave (step S907). At this time, the clock master stores the Delay reception time Tm (1) in the Delay_Response message.

 クロックスレーブは、Delay_Responseメッセージを受信すると、Delay_Responseメッセージ中に格納されるDelay受信時刻Tm(1)を抽出し記録する。
 クロックスレーブは、Sync送信時刻Tm(0)、Sync受信時刻Ts(0)に基づいて、以下の式1から、クロックマスタにおける時刻(以下、「マスタ時刻」という。)とクロックスレーブにおける時刻(以下、「スレーブ時刻」という。)との差分MS_Diffを算出する。
 MS_Diff = Ts(0) - Tm(0) = MS_Delay + Offset ・・・式1
When receiving the Delay_Response message, the clock slave extracts and records the Delay reception time Tm (1) stored in the Delay_Response message.
Based on the Sync transmission time Tm (0) and the Sync reception time Ts (0), the clock slave calculates the time at the clock master (hereinafter referred to as “master time”) and the time at the clock slave (hereinafter referred to as “master time”). MS_Diff with “slave time”).
MS_Diff = Ts (0)-Tm (0) = MS_Delay + Offset ・ ・ ・ Equation 1

 また、クロックスレーブは、Delay送信時刻Ts(1)、Delay受信時刻Tm(1)に基づいて、以下の式2から、スレーブ時刻とマスタ時刻との差分を求める。
 SM_Diff = Tm(1) - Ts(1) = SM_Delay - Offset ・・・式2
Further, the clock slave obtains the difference between the slave time and the master time from the following equation 2 based on the Delay transmission time Ts (1) and the Delay reception time Tm (1).
SM_Diff = Tm (1)-Ts (1) = SM_Delay-Offset ・ ・ ・ Equation 2

 ここで、MS_Delayはクロックマスタからクロックスレーブへの伝送遅延を表し、SM_Delayはクロックスレーブからクロックマスタへの伝送遅延を表し、Offsetはクロックマスタに対するクロックスレーブの時刻オフセット(進み)を表す。なお、伝送遅延MS_Delay及びSM_Delayは、クロックマスタとクロックスレーブとの間の伝播遅延と、クロックマスタとクロックスレーブとの間のネットワーク上の中継ノードで生じるキューイング遅延から構成される。 Here, MS_Delay represents the transmission delay from the clock master to the clock slave, SM_Delay represents the transmission delay from the clock slave to the clock master, and Offset represents the time offset (advance) of the clock slave with respect to the clock master. The transmission delays MS_Delay and SM_Delay are composed of a propagation delay between the clock master and the clock slave and a queuing delay that occurs at a relay node on the network between the clock master and the clock slave.

 以上のように、クロックマスタに対するクロックスレーブの時刻のずれであるOffsetに関して、式1及び式2の二つの式が得られる。しかし、この二つの式には、Offsetの他にMS_Delay及びSM_Delayという未知のパラメータが含まれている。したがって、三つの未知のパラメータに対し二つの式しか存在しないため、Offsetを算出することができない。そのため、IEEE1588では、クロックマスタからクロックスレーブへの伝送遅延MS_Delayと、クロックスレーブからクロックマスタへの伝送遅延SM_Delayとが等しく、いずれの値もDelayであると仮定して、上記の式1及び式2を以下の式3及び式4に変形する。 As described above, two formulas of Formula 1 and Formula 2 are obtained with respect to Offset, which is a time lag of the clock slave with respect to the clock master. However, these two equations include unknown parameters MS_Delay and SM_Delay in addition to Offset. Therefore, since there are only two equations for the three unknown parameters, Offset cannot be calculated. Therefore, in IEEE1588, assuming that the transmission delay MS_Delay from the clock master to the clock slave is equal to the transmission delay SM_Delay from the clock slave to the clock master, and both values are delays, the above equations 1 and 2 Is transformed into the following equations 3 and 4.

 MS_Diff = Delay + Offset ・・・式3
 SM_Diff = Delay - Offset ・・・式4
 式3及び式4の連立方程式を解くことによって、以下の式5が導出される。
 Offset = (MS_Diff - SM_Diff) / 2 ・・・式5
MS_Diff = Delay + Offset ・ ・ ・ Equation 3
SM_Diff = Delay-Offset ・ ・ ・ Equation 4
By solving the simultaneous equations of Equation 3 and Equation 4, the following Equation 5 is derived.
Offset = (MS_Diff-SM_Diff) / 2 ... Formula 5

 クロックスレーブは、式5に基づいてOffsetを算出し、Offsetに基づいてスレーブ時刻を補正することによって、スレーブ時刻をマスタ時刻に同期させる。以上が、IEEE1588に規定される時刻同期アルゴリズムである。 The clock slave calculates the offset based on Equation 5 and corrects the slave time based on the offset to synchronize the slave time with the master time. The above is the time synchronization algorithm defined in IEEE1588.

 次に、同期システム100の詳細について説明する。クロック生成器10は、クロック信号を時刻同期マスタ装置20及び中継装置30に供給する。クロック生成器10は、高精度にクロック信号を生成する高精度クロック生成器であることが望ましい。クロック生成器10は、例えばGPS(Global Positioning System)受信機であっても良いし、高性能の発振器を用いて構成されても良い。
 時刻同期マスタ装置20は、クロック生成器10から出力されるクロック信号に同期して動作する。時刻同期マスタ装置20は、所定のプロトコルにしたがって動作し、同期パケットを送受信することによって時刻同期スレーブ装置40との間で時刻同期を行う。時刻同期の処理によって、時刻同期マスタ装置20内の時刻(以下、「マスタ装置時刻」という。)と、時刻同期スレーブ装置40内の時刻(以下、「スレーブ装置時刻」という。)とが同期する。
Next, details of the synchronization system 100 will be described. The clock generator 10 supplies a clock signal to the time synchronization master device 20 and the relay device 30. The clock generator 10 is preferably a high-accuracy clock generator that generates a clock signal with high accuracy. The clock generator 10 may be a GPS (Global Positioning System) receiver, for example, or may be configured using a high-performance oscillator.
The time synchronization master device 20 operates in synchronization with the clock signal output from the clock generator 10. The time synchronization master device 20 operates according to a predetermined protocol, and performs time synchronization with the time synchronization slave device 40 by transmitting and receiving synchronization packets. The time synchronization processing synchronizes the time in the time synchronization master device 20 (hereinafter referred to as “master device time”) and the time in the time synchronization slave device 40 (hereinafter referred to as “slave device time”). .

 中継装置30は、クロック同期型の通信装置であり、クロック生成器10から出力されるクロック信号に同期してパケットの中継処理を行う。例えば、中継装置30は、SDH(Synchronous Digital Hierarchy)やシンクロナスイーサネット(登録商標)(Synchronous Ethernet(登録商標))等の同期通信方式にしたがってパケットを中継する。より具体的には、中継装置30は、通信路から受信したクロック信号に自装置のクロックを同期させ、同じ周波数で通信路に信号を送信する。中継装置30と時刻同期スレーブ装置40との間の通信路は、クロック生成器10によって出力されるクロック信号に応じてクロック同期しており、所定の周期のクロック信号が伝播している。例えば、Ethernet(登録商標)で100BASE-TXのインタフェースの場合は、125MHzでクロック信号が通信路を流れている。
 中継装置30は、時刻同期マスタ装置20から受信した同期パケットを時刻同期スレーブ装置40へ中継する。また、中継装置30は、時刻同期スレーブ装置40から受信した同期パケットを時刻同期マスタ装置20へ中継する。
The relay device 30 is a clock synchronous communication device, and performs packet relay processing in synchronization with the clock signal output from the clock generator 10. For example, the relay device 30 relays packets according to a synchronous communication method such as SDH (Synchronous Digital Hierarchy) or Synchronous Ethernet (registered trademark). More specifically, the relay device 30 synchronizes its own clock with the clock signal received from the communication path, and transmits the signal to the communication path at the same frequency. The communication path between the relay device 30 and the time synchronization slave device 40 is clock-synchronized according to the clock signal output by the clock generator 10, and a clock signal having a predetermined cycle is propagated. For example, in the case of an Ethernet (registered trademark) 100BASE-TX interface, a clock signal flows through the communication path at 125 MHz.
The relay device 30 relays the synchronization packet received from the time synchronization master device 20 to the time synchronization slave device 40. The relay device 30 relays the synchronization packet received from the time synchronization slave device 40 to the time synchronization master device 20.

 時刻同期スレーブ装置40は、中継装置30を介して時刻同期マスタ装置20との間で同期パケットを送受信し、時刻同期マスタ装置20と時刻同期を行う。また、時刻同期スレーブ装置40は、中継装置30との間の通信路から、同期したクロック信号を取得する。時刻同期スレーブ装置40は、時刻同期の結果と、通信路から取得したクロック信号とに基づいて、時刻同期マスタ装置20と同期した時刻同期信号を出力する。時刻同期スレーブ装置40が時刻同期信号を出力する先は、時刻同期スレーブ装置40が接続されたネットワークであっても良いし、時刻同期スレーブ装置40が接続された装置であっても良い。また、時刻同期スレーブ装置40が一つの部品として装置に組み込まれていても良い。この場合は、時刻同期スレーブ装置40は、自装置が組み込まれた装置の他の部品に対して時刻同期信号を出力する。 The time synchronization slave device 40 transmits / receives a synchronization packet to / from the time synchronization master device 20 via the relay device 30 and performs time synchronization with the time synchronization master device 20. In addition, the time synchronization slave device 40 acquires a synchronized clock signal from the communication path with the relay device 30. The time synchronization slave device 40 outputs a time synchronization signal synchronized with the time synchronization master device 20 based on the result of the time synchronization and the clock signal acquired from the communication path. The destination to which the time synchronization slave device 40 outputs the time synchronization signal may be a network to which the time synchronization slave device 40 is connected, or may be a device to which the time synchronization slave device 40 is connected. Further, the time synchronization slave device 40 may be incorporated in the device as one component. In this case, the time synchronization slave device 40 outputs a time synchronization signal to other parts of the device in which the device is incorporated.

 図3は、時刻同期スレーブ装置40の構成を表す機能ブロック図である。時刻同期スレーブ装置40は、バスで接続されたCPU(Central Processing Unit)やメモリや補助記憶装置などを備え、時刻同期プログラムを実行する。時刻同期スレーブ装置40は、時刻同期プログラムの実行によって、同期パケット送受信部401(本発明の「送受信部」に相当)、同期制御部402、第一クロック信号抽出部403(本発明の「クロック信号取得部」に相当)、第二クロック信号生成部404、時刻管理部405を備える装置として機能する。なお、時刻同期スレーブ装置40の各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されても良い。時刻同期プログラムは、コンピュータ読み取り可能な記録媒体に記録されても良い。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。 FIG. 3 is a functional block diagram showing the configuration of the time synchronization slave device 40. The time synchronization slave device 40 includes a CPU (Central Processing Unit) connected via a bus, a memory, an auxiliary storage device, and the like, and executes a time synchronization program. By executing the time synchronization program, the time synchronization slave device 40 includes a synchronization packet transmission / reception unit 401 (corresponding to “transmission / reception unit” of the present invention), a synchronization control unit 402, a first clock signal extraction unit 403 (“clock signal of the present invention” It corresponds to an apparatus provided with a second clock signal generation unit 404 and a time management unit 405. All or some of the functions of the time synchronization slave device 40 may be realized using hardware such as ASIC (Application Specific Integrated Circuit), PLD (Programmable Logic Device), and FPGA (Field Programmable Gate Array). good. The time synchronization program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system.

 同期パケット送受信部401は、中継装置30との間の通信路から同期パケット受信し、同期パケットを同期制御部402に転送する。また、同期パケット送受信部401は、同期制御部402から受信した同期パケットを通信路に送出する。同期パケット送受信部401によって通信路に送出された同期パケットは、中継装置30によって中継されて時刻同期マスタ装置20によって受信される。 The synchronization packet transmission / reception unit 401 receives the synchronization packet from the communication path with the relay device 30 and transfers the synchronization packet to the synchronization control unit 402. In addition, the synchronization packet transmission / reception unit 401 sends the synchronization packet received from the synchronization control unit 402 to the communication path. The synchronization packet sent to the communication path by the synchronization packet transmitting / receiving unit 401 is relayed by the relay device 30 and received by the time synchronization master device 20.

 同期制御部402は、通信路の先にある時刻同期マスタ装置20との間で同期パケットのやり取りを行うことにより、スレーブ装置時刻をマスタ装置時刻に同期させる。同期制御部402は、時刻同期の結果として、同期前のスレーブ装置時刻とマスタ装置時刻との差分を表す位相信号を時刻管理部405に出力する。 The synchronization control unit 402 synchronizes the slave device time with the master device time by exchanging synchronization packets with the time synchronization master device 20 at the end of the communication path. The synchronization control unit 402 outputs a phase signal representing the difference between the slave device time before synchronization and the master device time to the time management unit 405 as a result of the time synchronization.

 第一クロック信号抽出部403は、通信路から受信した物理層の信号からクロック信号を抽出する。第一クロック信号抽出部403は、抽出したクロック信号を第一クロック信号として第二クロック信号生成部404へ出力する。
 第二クロック信号生成部404は、第一クロック信号抽出部403から出力された第一クロック信号に同期した第二クロック信号を生成する。第二クロック信号生成部404は、第一クロック信号を逓倍又は分周することによって第二クロック信号を生成する。第二クロック信号は、時刻管理部405がスレーブ装置時刻をカウントするために利用するクロック信号である。
The first clock signal extraction unit 403 extracts a clock signal from the physical layer signal received from the communication path. The first clock signal extraction unit 403 outputs the extracted clock signal to the second clock signal generation unit 404 as the first clock signal.
The second clock signal generation unit 404 generates a second clock signal synchronized with the first clock signal output from the first clock signal extraction unit 403. The second clock signal generation unit 404 generates the second clock signal by multiplying or dividing the first clock signal. The second clock signal is a clock signal used by the time management unit 405 to count the slave device time.

 時刻管理部405は、スレーブ装置時刻を管理する。具体的には、時刻管理部405は、第二クロック信号生成部404から受信する第二クロック信号に基づいて、スレーブ装置時刻をカウントする。時刻管理部405は、所定の時刻になると時刻同期信号を生成し出力する。時刻管理部405は、同期制御部402から位相信号を受信すると、受信した位相信号に基づいてスレーブ装置時刻を補正する。スレーブ装置時刻の補正により、時刻同期信号の出力タイミングが補正される。時刻管理部405は、位相信号に基づいてスレーブ装置時刻を補正した後、次に位相信号を受信するまでの間は、第二クロック信号生成部404から受信する第二クロック信号に基づいてスレーブ装置時刻をカウントする。そのため、第二クロック信号にずれが生じると、カウントしているスレーブ装置時刻もずれてしまい、時刻同期信号が出力されるタイミングがずれてしまう。このずれは、次回の位相信号に基づいて補正される。 The time management unit 405 manages the slave device time. Specifically, the time management unit 405 counts the slave device time based on the second clock signal received from the second clock signal generation unit 404. The time management unit 405 generates and outputs a time synchronization signal at a predetermined time. When receiving the phase signal from the synchronization control unit 402, the time management unit 405 corrects the slave device time based on the received phase signal. By correcting the slave device time, the output timing of the time synchronization signal is corrected. The time management unit 405 corrects the slave device time based on the phase signal, and then receives the phase signal until the next time the phase signal is received, the slave device based on the second clock signal received from the second clock signal generation unit 404 Count the time. For this reason, if a shift occurs in the second clock signal, the slave device time being counted also shifts, and the timing at which the time synchronization signal is output shifts. This deviation is corrected based on the next phase signal.

 次に、時刻同期スレーブ装置40の動作の流れについて説明する。図4は、時刻同期スレーブ装置40の動作の流れを表すフローチャートである。同期制御部402は、所定のタイミングで時刻同期マスタ装置20と同期パケットを送受信することによって時刻同期を行う。同期制御部402は、時刻同期の結果として、スレーブ装置時刻とマスタ装置時刻との差分を表す位相信号を時刻管理部405に出力する(ステップS101)。時刻管理部405は、位相信号に基づいてスレーブ装置時刻を補正する(ステップS102)。 Next, the operation flow of the time synchronization slave device 40 will be described. FIG. 4 is a flowchart showing an operation flow of the time synchronization slave device 40. The synchronization control unit 402 performs time synchronization by transmitting and receiving a synchronization packet to and from the time synchronization master device 20 at a predetermined timing. The synchronization control unit 402 outputs a phase signal representing a difference between the slave device time and the master device time to the time management unit 405 as a result of the time synchronization (step S101). The time management unit 405 corrects the slave device time based on the phase signal (step S102).

 第二クロック信号生成部404は、第二クロック信号を時刻管理部405に継続して出力し続ける(ステップS103、S105、S109)。時刻管理部405は、補正された後のスレーブ装置時刻と第二クロック信号とに基づいて時刻同期信号の出力タイミングを決定する。そして、時刻管理部405は、決定した出力タイミングで時刻同期信号を出力する(ステップS104、S106、S110)。 The second clock signal generation unit 404 continues to output the second clock signal to the time management unit 405 (steps S103, S105, S109). The time management unit 405 determines the output timing of the time synchronization signal based on the corrected slave device time and the second clock signal. Then, the time management unit 405 outputs a time synchronization signal at the determined output timing (steps S104, S106, S110).

 同期制御部402から新たに位相信号が出力された場合には(ステップS107)、時刻管理部405は、新たな位相信号に基づいて時刻補正を行う(ステップS108)。その後、時刻管理部405は、ステップS108で補正されたスレーブ装置時刻と第二クロック信号生成部404から出力される第二クロック信号(ステップS109)とに基づいて、スレーブ装置時刻をカウントする。そして、所定の時刻になると時刻同期信号を出力する(ステップS110)。 When a new phase signal is output from the synchronization control unit 402 (step S107), the time management unit 405 performs time correction based on the new phase signal (step S108). Thereafter, the time management unit 405 counts the slave device time based on the slave device time corrected in step S108 and the second clock signal (step S109) output from the second clock signal generation unit 404. When a predetermined time comes, a time synchronization signal is output (step S110).

 以上の同期システム100では、時刻管理部405がスレーブ装置時刻をカウントするために用いる第二クロック信号は、通信路から抽出されたクロック信号(第一クロック信号)に同期している。そのため、通信路に流れているクロック信号を高精度のクロック信号にすることにより、個々の時刻同期スレーブ装置40において高精度のクロック信号生成器を備えることなく、高精度のクロック信号に基づいてスレーブ装置時刻をカウントすることが可能となる。したがって、高精度の時刻同期を維持するために、同期パケットの送受信の間隔を短くする必要もない。 In the above synchronization system 100, the second clock signal used by the time management unit 405 to count the slave device time is synchronized with the clock signal (first clock signal) extracted from the communication path. Therefore, by making the clock signal flowing in the communication path into a high-accuracy clock signal, each time synchronization slave device 40 does not have a high-accuracy clock signal generator, and the slave is based on the high-accuracy clock signal. The device time can be counted. Therefore, in order to maintain highly accurate time synchronization, it is not necessary to shorten the interval between transmission and reception of synchronization packets.

 通信路に流れるクロック信号は時刻同期マスタ装置20に入力されるクロック信号と同期している。そのため、同期パケットの送受信による時刻同期を一回行えば、通信路に流れるクロック信号にずれが生じない限りは、新たに同期パケットの送受信を行うことなく、時刻同期マスタ装置20と時刻同期スレーブ装置40との間で同期状態を保持することが可能である。 The clock signal flowing in the communication path is synchronized with the clock signal input to the time synchronization master device 20. Therefore, once the time synchronization by the transmission / reception of the synchronization packet is performed once, the time synchronization master device 20 and the time synchronization slave device are not newly transmitted / received unless the clock signal flowing through the communication path is shifted. It is possible to maintain a synchronization state with 40.

 <変形例>
 通信路を流れるクロック信号は、中継装置30の送受信に用いられる同期信号としてのクロック信号に限定される必要はない。例えば、中継装置30がクロック同期型の通信装置でなくとも、通信路にクロック信号が流れるように構成されれば良い。したがって、この場合は中継装置30は必ずしもクロック同期型の通信装置でなくとも良い。
<Modification>
The clock signal flowing through the communication path need not be limited to a clock signal as a synchronization signal used for transmission / reception of the relay device 30. For example, even if the relay device 30 is not a clock synchronous communication device, it may be configured so that a clock signal flows through the communication path. Therefore, in this case, the relay device 30 is not necessarily a clock synchronous communication device.

 [第二実施形態]
 図5は、同期システムの第二実施形態(同期システム100a)のシステム構成を表すシステム構成図である。同期システム100aは、時刻同期スレーブ装置40aが用いるクロック信号が、中継装置30と時刻同期スレーブ装置40aとの間の通信路から抽出されるクロック信号ではなく、クロック生成器10が接続されたクロック同期網50から抽出される点で、第一実施形態の同期システム100と異なる。以下、第二実施形態の同期システム100aについて詳細に説明する。
 クロック生成器10は、クロック同期網50に接続され、クロック同期網50にクロック信号を供給する。
 中継装置30aは、一般的なパケット伝送装置であり、クロック同期をせずに同期パケットの中継を行う。
[Second Embodiment]
FIG. 5 is a system configuration diagram showing a system configuration of the second embodiment (synchronization system 100a) of the synchronization system. In the synchronization system 100a, the clock signal used by the time synchronization slave device 40a is not the clock signal extracted from the communication path between the relay device 30 and the time synchronization slave device 40a, but the clock synchronization to which the clock generator 10 is connected. It differs from the synchronization system 100 of the first embodiment in that it is extracted from the network 50. Hereinafter, the synchronization system 100a of the second embodiment will be described in detail.
The clock generator 10 is connected to the clock synchronization network 50 and supplies a clock signal to the clock synchronization network 50.
The relay device 30a is a general packet transmission device, and relays synchronous packets without clock synchronization.

 図6は、第二実施形態における時刻同期スレーブ装置40aの構成を表す機能ブロック図である。時刻同期スレーブ装置40aは、第一クロック信号抽出部403に代えて第一クロック信号抽出部403aを備える点で、第一実施形態の時刻同期スレーブ装置40と異なる。時刻同期スレーブ装置40aの残りの構成は、第一実施形態の時刻同期スレーブ装置40と同様である。 FIG. 6 is a functional block diagram showing the configuration of the time synchronization slave device 40a in the second embodiment. The time synchronization slave device 40a is different from the time synchronization slave device 40 of the first embodiment in that a first clock signal extraction unit 403a is provided instead of the first clock signal extraction unit 403. The remaining configuration of the time synchronization slave device 40a is the same as that of the time synchronization slave device 40 of the first embodiment.

 第一クロック信号抽出部403aは、同期パケットが送受信される通信路ではなく、クロック同期網50から受信した信号に基づいて第一クロック信号を抽出する。
 第二実施形態では、第二クロック信号を生成するための第一クロック信号は、同期パケットが送受信される通信路ではなく、クロック同期網50から抽出される。そのため、同期パケットが送受信される通信路に障害が生じてしまった場合であっても、クロック同期網50から抽出される第一クロック信号に基づいて時刻をカウントすることによって、時刻同期スレーブ装置40の時刻が大幅にずれてしまうことを防止できる。
The first clock signal extraction unit 403a extracts the first clock signal based on the signal received from the clock synchronization network 50, not the communication path through which the synchronization packet is transmitted and received.
In the second embodiment, the first clock signal for generating the second clock signal is extracted from the clock synchronization network 50 instead of the communication path through which the synchronization packet is transmitted and received. Therefore, even when a failure occurs in the communication path through which the synchronization packet is transmitted and received, the time synchronization slave device 40 is counted by counting the time based on the first clock signal extracted from the clock synchronization network 50. It is possible to prevent the time of the time from deviating significantly.

 <変形例>
 第二実施形態の同期システム100aにおいて、クロック同期網50は、クロック生成器10に同期して動作可能なクロック同期型の伝送ネットワーク網で構成してもよい。
 第二実施形態の中継装置30aは、クロック同期をして同期パケットの中継を行っても良い。
 以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。
 本願は、2011年3月3日に、日本に出願された特願2011-046155号に基づき優先権を主張し、その内容をここに援用する。
<Modification>
In the synchronization system 100 a of the second embodiment, the clock synchronization network 50 may be configured by a clock synchronization type transmission network that can operate in synchronization with the clock generator 10.
The relay device 30a of the second embodiment may perform synchronization packet relay by clock synchronization.
The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.
This application claims priority on March 3, 2011 based on Japanese Patent Application No. 2011-046155 for which it applied to Japan, and uses the content here.

 本発明は、通信を行う装置間で時刻の同期を行うシステムや装置に適用できる。 The present invention can be applied to a system or a device that synchronizes time between devices that perform communication.

100,100a…同期システム
10…クロック生成器
20…時刻同期マスタ装置(他の装置)
30,30a…中継装置
40,40a…時刻同期スレーブ装置(同期装置)
401…同期パケット送受信部(送受信部)
402…同期制御部
403,403a…第一クロック信号抽出部(クロック信号取得部)
404…第二クロック信号生成部
405…時刻管理部
100, 100a ... synchronization system 10 ... clock generator 20 ... time synchronization master device (other device)
30, 30a ... Relay device 40, 40a ... Time synchronization slave device (synchronization device)
401... Synchronous packet transmission / reception unit (transmission / reception unit)
402: Synchronization control units 403, 403a ... First clock signal extraction unit (clock signal acquisition unit)
404 ... Second clock signal generation unit 405 ... Time management unit

Claims (6)

 他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって、前記他の装置と時刻を同期する同期装置であって、
 前記同期用パケットを送受信する送受信部と、
 通信路を流れるクロック信号を取得するクロック信号取得部と、
 前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御部と、
 前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理部と、
を備える同期装置。
A synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet according to a synchronization protocol with the other device,
A transmission / reception unit for transmitting / receiving the synchronization packet;
A clock signal acquisition unit for acquiring a clock signal flowing through the communication path;
Based on the synchronization packet, a synchronization control unit that acquires a difference between the time of its own device and the time of the other device;
A time management unit that corrects the time of the own device based on the difference, and manages the time of the own device based on the corrected time and the clock signal;
A synchronization device comprising:
 前記時刻管理部は、前記自装置の時刻に基づいて所定のタイミングを判定し、前記所定のタイミングで信号を出力する、請求項1に記載の同期装置。 The synchronization device according to claim 1, wherein the time management unit determines a predetermined timing based on the time of the own device and outputs a signal at the predetermined timing.  前記クロック信号取得部は、前記通信網を流れる電気信号に基づいて前記クロック信号を取得する、請求項1又は2に記載の同期装置。 The synchronization device according to claim 1 or 2, wherein the clock signal acquisition unit acquires the clock signal based on an electrical signal flowing through the communication network.  前記クロック信号取得部は、前記同期用パケットが伝送される通信路を流れるクロック信号を取得する、請求項1~3のいずれか一項に記載の同期装置。 The synchronization device according to any one of claims 1 to 3, wherein the clock signal acquisition unit acquires a clock signal flowing through a communication path through which the synchronization packet is transmitted.  他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって、前記他の装置と時刻を同期する同期装置が行う時刻管理方法であって、
 前記同期用パケットを送受信する送受信ステップと、
 通信路を流れるクロック信号を取得するクロック信号取得ステップと、
 前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御ステップと、
 前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理ステップと、
を有する時刻管理方法。
A time management method performed by a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet according to a synchronization protocol with the other device,
A transmission / reception step of transmitting / receiving the synchronization packet;
A clock signal acquisition step for acquiring a clock signal flowing through the communication path;
Based on the synchronization packet, a synchronization control step for obtaining a difference between the time of the own device and the time of the other device;
A time management step of correcting the time of the own device based on the difference and managing the time of the own device based on the corrected time and the clock signal;
A time management method.
 コンピュータを、他の装置と同期プロトコルにしたがって同期用パケットを送受信することによって前記他の装置と時刻を同期する同期装置として動作させるためのコンピュータプログラムであって、
 前記同期用パケットを送受信する送受信ステップと、
 通信路を流れるクロック信号を取得するクロック信号取得ステップと、
 前記同期用パケットに基づいて、自装置の時刻と前記他の装置の時刻との差分を取得する同期制御ステップと、
 前記差分に基づいて自装置の時刻を修正し、修正後の時刻と前記クロック信号とに基づいて自装置の時刻を管理する時刻管理ステップと、
を前記コンピュータに実行させるためのコンピュータプログラム。
A computer program for operating a computer as a synchronization device that synchronizes time with the other device by transmitting and receiving a synchronization packet with the other device according to a synchronization protocol,
A transmission / reception step of transmitting / receiving the synchronization packet;
A clock signal acquisition step for acquiring a clock signal flowing through the communication path;
Based on the synchronization packet, a synchronization control step for obtaining a difference between the time of the own device and the time of the other device;
A time management step of correcting the time of the own device based on the difference and managing the time of the own device based on the corrected time and the clock signal;
A computer program for causing the computer to execute.
PCT/JP2012/055371 2011-03-03 2012-03-02 Synchronization device, time management method, and computer program Ceased WO2012118177A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011-046155 2011-03-03
JP2011046155 2011-03-03

Publications (1)

Publication Number Publication Date
WO2012118177A1 true WO2012118177A1 (en) 2012-09-07

Family

ID=46758103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/055371 Ceased WO2012118177A1 (en) 2011-03-03 2012-03-02 Synchronization device, time management method, and computer program

Country Status (1)

Country Link
WO (1) WO2012118177A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105652655A (en) * 2016-04-01 2016-06-08 湖南述泰信息技术有限公司 Handheld satellite time service synchronizing terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63106252U (en) * 1986-12-26 1988-07-09
JPH08191301A (en) * 1995-01-10 1996-07-23 Anritsu Corp Measuring system and time setting method of measuring instrument
JP2000314788A (en) * 1999-05-07 2000-11-14 Kanda Tsushin Kogyo Co Ltd Clock synchronized with synchronization signal from digital network
JP2001036538A (en) * 1999-07-19 2001-02-09 Nippon Telegr & Teleph Corp <Ntt> Time synchronization method and device
JP2001054152A (en) * 1999-08-17 2001-02-23 Nec Shizuoka Ltd Time correction system and method for key telephone system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63106252U (en) * 1986-12-26 1988-07-09
JPH08191301A (en) * 1995-01-10 1996-07-23 Anritsu Corp Measuring system and time setting method of measuring instrument
JP2000314788A (en) * 1999-05-07 2000-11-14 Kanda Tsushin Kogyo Co Ltd Clock synchronized with synchronization signal from digital network
JP2001036538A (en) * 1999-07-19 2001-02-09 Nippon Telegr & Teleph Corp <Ntt> Time synchronization method and device
JP2001054152A (en) * 1999-08-17 2001-02-23 Nec Shizuoka Ltd Time correction system and method for key telephone system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105652655A (en) * 2016-04-01 2016-06-08 湖南述泰信息技术有限公司 Handheld satellite time service synchronizing terminal

Similar Documents

Publication Publication Date Title
JP5561426B2 (en) Synchronization system, synchronization method, first synchronization device, second synchronization device, and computer program
JP5811794B2 (en) Communication device
US10432336B2 (en) System and method of synchronizing a distributed clock in a packet-compatible network
JP5661951B2 (en) Network elements for packet-switched networks
JP5358813B2 (en) Network node, time synchronization method, and network system
EP3226504B1 (en) Time synchronization method and apparatus
JP5377663B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND TIME SYNCHRONIZATION METHOD
JP5459415B2 (en) Transmission apparatus, transmission method, and computer program
EP2541815A1 (en) Clock synchronization network
US9641269B2 (en) Apparatus and method for synchronizing clocks among communication devices
CN103259640A (en) Method and device for synchronizing time
US9065748B2 (en) Symmetrical latency with TDM circuit emulated service
JP5426695B2 (en) Method for synchronizing clocks by separately transmitting first data and second data by at least one timing distribution protocol, and related systems and modules
KR20100048124A (en) Time synchronization method in bridged local area network
JP6216692B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
JP6254028B2 (en) Slave node and time synchronization method
JP6010802B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
WO2012118177A1 (en) Synchronization device, time management method, and computer program
JP2014165581A (en) Time synchronization system, time synchronization method, slave node and computer program
JP2006148774A (en) Synchronizer
JP2023094100A (en) Communication device and communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12752020

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12752020

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP