WO2024189860A1 - Transfer device, transfer method, and program - Google Patents
Transfer device, transfer method, and program Download PDFInfo
- Publication number
- WO2024189860A1 WO2024189860A1 PCT/JP2023/010181 JP2023010181W WO2024189860A1 WO 2024189860 A1 WO2024189860 A1 WO 2024189860A1 JP 2023010181 W JP2023010181 W JP 2023010181W WO 2024189860 A1 WO2024189860 A1 WO 2024189860A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time
- message
- pdelay
- resp
- level device
- Prior art date
Links
- 238000012546 transfer Methods 0.000 title claims abstract description 135
- 238000000034 method Methods 0.000 title claims description 49
- 230000005540 biological transmission Effects 0.000 claims abstract description 114
- 238000012545 processing Methods 0.000 claims description 100
- 230000001360 synchronised effect Effects 0.000 claims description 19
- 238000012937 correction Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- KNMAVSAGTYIFJF-UHFFFAOYSA-N 1-[2-[(2-hydroxy-3-phenoxypropyl)amino]ethylamino]-3-phenoxypropan-2-ol;dihydrochloride Chemical compound Cl.Cl.C=1C=CC=CC=1OCC(O)CNCCNCC(O)COC1=CC=CC=C1 KNMAVSAGTYIFJF-UHFFFAOYSA-N 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Definitions
- This disclosure relates to a transfer device, a transfer method, and a program.
- the Precision Time Protocol defined in the IEEE-1588 standard is a protocol that synchronizes the time (internal device time) of computers on a Local Area Network (LAN) with high precision (see Non-Patent Document 1).
- Figures 4A and 4B show an example configuration of a time synchronization system 10A that uses PTP to synchronize the time of devices on a network.
- the time synchronization system 10A includes a Grand Master Clock 1 and a Client device 2.
- the Grand Master Clock 1 is equipped with a GNSS antenna 1a that receives signals (GNSS signals) from satellites of the Global Navigation Satellite System (GNSS), such as the Global Positioning System (GPS).
- GNSS Global Navigation Satellite System
- GPS Global Positioning System
- the Grand Master Clock 1 receives the GNSS signals via the GNSS antenna 1a and acquires Universal Time Coordinated (UTC) from the received GNSS signals.
- the Grand Master Clock 1 has a master function that distributes the acquired UTC as the reference time via the network.
- the client device 2 has a slave function that synchronizes the internal time of the device with the time distributed from a device with a master function.
- the client device 2 is a device used by a user, such as a base station device in a mobile phone network.
- a relay device that relays signals may be installed between the Grand Master Clock 1 and the Client device 2 depending on the distance between the Grand Master Clock 1 and the Client device 2 and the number of Client devices 2 that are synchronized with the Grand Master Clock 1.
- Relay devices that can be used with PTP include the Boundary Clock 3 shown in Figure 4A and the Transparent Clock 4 shown in Figure 4B.
- the Boundary Clock 3 shown in FIG. 4A functions as a device with a slave function for synchronizing its own internal time with the time distributed from a higher-level device with a master function, and functions as a device with a master function for a lower-level device with a slave function.
- the Boundary Clock 3 functions as a device with a slave function for the Grand Master Clock 1, and functions as a device with a master function for the Client device 2.
- the Boundary Clock 3 measures the offset, which is the difference between the internal time of the higher-level device, Grand Master Clock 1, and the internal time of its own device (the difference between the internal time of the device with the master function and the internal time of the device with the slave function), by sending and receiving PTP packets with the Grand Master Clock 1, and synchronizes the internal time of its own device with the time distributed from the Grand Master Clock 1 (reference time) based on the measured offset.
- the Boundary Clock 3 synchronizes the internal time of the Client device 2 with the internal time of its own device by sending and receiving PTP packets with the Client device 2.
- Transparent Clock 4 shown in Figure 4B transfers PTP packets received from the higher-level device, Grand Master Clock 1, to the lower-level device, Client device 3, and transfers PTP packets received from the lower-level device, Client device 3, to the higher-level device, Grand Master Clock 1.
- Transparent Clock 4 measures the time it takes for a PTP packet to pass through its own device, and writes the result into the PTP packet while transferring it. In this way, the internal time of Client device 2 can be synchronized with the internal time of Grand Master Clock 1.
- IEEE Std 1588TM-2008 “IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems”
- the purpose of this disclosure is to provide a transfer device, a transfer method, and a program that can enable time synchronization between devices using different profiles, in particular between a higher-level device that performs time synchronization by sending and receiving messages using a Peer-to-Peer method, and a lower-level device that performs time synchronization by sending and receiving messages using an End-to-End method.
- a transfer device is a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End to End manner, a first message processor that transmits a Pdelay_Req message to the higher-level device and acquires a transmission time t1 of the Pdelay_Req message; a second message processor that receives a Pdelay_Resp message transmitted from the higher-level device and acquires a reception time t2 of the Pdelay_Req message by the higher-level device contained in the Pdelay_Resp message and acquires a reception time t4 of the Pdelay_Resp message; a third message processor that receives a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquires a transmission time t3 of the Pdelay_Re
- the transfer method disclosed herein is a transfer method by a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End to End manner, and includes the steps of: transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message; receiving a Pdelay_Resp message transmitted from the higher-level device and acquiring a reception time t2 of the Pdelay_Req message by the higher-level device, which is included in the Pdelay_Resp message, and acquiring a reception time t4 of the Pdelay_Resp message; receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquiring a transmission time t3 of the Pdelay_Resp message by the
- the program disclosed herein causes a computer to operate as the above-mentioned transfer device.
- the transfer device, transfer method, and program disclosed herein enable time synchronization between devices using different profiles, in particular between a higher-level device that performs time synchronization by sending and receiving messages using a Peer-to-Peer method, and a lower-level device that performs time synchronization by sending and receiving messages using an End-to-End method.
- FIG. 2 is a diagram illustrating a configuration example of a transfer device according to an embodiment of the present disclosure.
- 2 is a sequence diagram illustrating an example of an operation of the transfer device illustrated in FIG. 1 .
- 2 is a sequence diagram illustrating an example of a hardware configuration of the transfer device illustrated in FIG. 1 .
- FIG. 1 illustrates an example of a time synchronization system.
- FIG. 11 illustrates another example of a time synchronization system.
- This is a sequence diagram showing an example of the operation of a Transparent Clock when the End to End method is used.
- This is a sequence diagram showing an example of the operation of a Transparent Clock when the Peer to Peer method is used.
- FIG. 5 is a sequence diagram showing an example of the operation of Transparent Clock 4 when a Master device and a Client device perform time synchronization by sending and receiving messages using the End to End method.
- the Master device is a device with a Master function, such as Grand Master Clock 1 shown in Figure 4B
- the Client device is Client device 2 such as a wireless base station shown in Figure 4B.
- Figure 5 explains the case where the two-step method is used.
- the Master device sends a Sync message to Transparent Clock 4 (step S101).
- Messages sent and received between devices in PTP include a field called correctionField (CF), which contains a correction value used for time correction (for example, a value obtained by adding the time it takes for a frame to pass through the device).
- CF correctionField
- Transparent Clock 4 When Transparent Clock 4 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S102). Transparent Clock 4 leaves the CF of the Sync message at 0. Transparent Clock 4 also stores the reception time dt1 of the Sync message from the Master device and the transmission time dt2 of the Sync message to the Client device.
- the client device receives the Sync message sent from Transparent Clock 4 at time T2.
- the client device stores the time T2 when the Sync message was received.
- the Master device After sending the Sync message, the Master device sends a Follow_Up message to Transparent Clock 4 (step S103).
- the Master device includes the sending time T1 of the Sync message in the Follow_Up message.
- the Master device also sets CF of the Follow_Up message to 0.
- the client device When the client device receives the Sync message and the Follow_Up message, it transmits a Delay_Req message to Transparent Clock 4 at time T3 (step S105).
- the client device includes the transmission time T3 of the Delay_Req message in the Delay_Req message.
- the client device also sets CF of the Delay_Req message to 0.
- Transparent Clock 4 When Transparent Clock 4 receives the Delay_Req message at time dt3, it transmits the received Delay_Req message to the Master device at time dt4 (step S106). Transparent Clock 4 leaves the CF of the Delay_Req message at 0. Transparent Clock 4 also stores the reception time dt3 of the Delay_Req message from the Client device and the transmission time dt4 of the Delay_Req message to the Master device.
- the Master device receives the Delay_Req message sent from Transparent Clock 4.
- the Master device stores the time T4 at which the Delay_Req message was received.
- the master device When the master device receives the Delay_Req message, it sends a Delay_Resp message to Transparent Clock 4 (step S107).
- the master device includes the reception time T4 of the Delay_Req message in the Delay_Resp message.
- the client device sets CF of the Delay_Resp message to 0.
- Offset ((T2-T1-(dt2-dt1))-(T4-T3-(dt4-dt3)))/2
- the client device can synchronize its internal time with the internal time of the master device by correcting the internal time based on the calculated offset.
- Figure 6 is a sequence diagram showing an example of the operation of Transparent Clock 4 when a Master device and a Client device perform time synchronization by sending and receiving messages using the Peer to Peer method.
- Figure 6 explains the case where the two-step method is used.
- Transparent Clock 4 transmits a Pdelay_Req message to the Master device at time t1 (step S201).
- Transparent Clock 4 sets CF of the Pdelay_Req message to 0.
- Transparent Clock 4 also stores the transmission time t1 of the Pdelay_Req message to the Master device.
- the master device receives the Pdelay_Req message at time t2.
- the master device stores the time t2 when it received the Pdelay_Req message from Transparent Clock 4.
- the master device When the master device receives the Pdelay_Req message, it transmits a Pdelay_Resp message to Transparent Clock 4 at time t3 (step S202).
- the master device includes the reception time t2 of the Pdelay_Req message in the Pdelay_Resp message.
- the master device also sets the CF of the Pdelay_Resp message to 0.
- the master device also stores the transmission time t3 of the Pdelay_Resp message to Transparent Clock 4.
- the master device After sending the Pdelay_Resp message, the master device sends a Pdelay_Resp_Follow_Up message to Transparent Clock 4 (step S203).
- the master device includes the sending time t3 of the Pdelay_Resp message to Transparent Clock 4 in the Pdelay_Resp_Follow_Up message.
- the master device also sets CF of the Pdelay_Resp_Follow_Up message to 0.
- the Transparent Clock 4 receives the Pdelay_Resp message at time t4.
- the Transparent Clock 4 stores the reception time t4 of the Pdelay_Resp message from the Master device.
- the Transparent Clock 4 also receives the Pdelay_Resp_Follow_Up message.
- the Transparent Clock 4 calculates the transmission delay time pt1 between the Master device and the Transparent Clock 4 using the following formula (2) based on the transmission time t1 of the Pdelay_Req message by the Transparent Clock 4, the reception time t2 of the Pdelay_Req message by the Master device, which is included in the Pdelay_Resp message, the transmission time t3 of the Pdelay_Resp message by the Master device, which is included in the Pdelay_Resp_Follow_Up message, and the reception time t4 of the Pdelay_Resp message by the Transparent Clock 4.
- pt1 ((t2-t1) + (t4-t3))/2 Equation (2)
- Transparent Clock 4 receives the Pdelay_Req message at time t6. Transparent Clock 4 stores the time t6 when the Pdelay_Req message was received from the Client device.
- Transparent Clock 4 When Transparent Clock 4 receives the Pdelay_Req message, it transmits a Pdelay_Resp message to the Client device at time t7 (step S205).
- Transparent Clock 4 includes the reception time t6 of the Pdelay_Req message from the Client device in the Pdelay_Resp message.
- Transparent Clock 4 also sets CF of the Pdelay_Resp message to 0.
- Transparent Clock 4 also stores the transmission time t7 of the Pdelay_Resp message to the Client device.
- Transparent Clock 4 After transmitting the Pdelay_Resp message, Transparent Clock 4 transmits a Pdelay_Resp_Follow_Up message to the Client device (step S206). Transparent Clock 4 includes in the Pdelay_Resp_Follow_Up message the transmission time t7 of the Pdelay_Resp message to the Client device. Transparent Clock 4 also sets CF of the Pdelay_Resp_Follow_Up message to 0.
- the client device receives the Pdelay_Resp message at time t8.
- the client device stores the reception time t8 of the Pdelay_Resp message from Transparent Clock 4.
- the client device also receives the Pdelay_Resp_Follow_Up message.
- the client device calculates the transmission delay time pt2 between Transparent Clock 4 and the client device using the following formula (3) based on the transmission time t5 of the Pdelay_Req message by the client device, the reception time t6 of the Pdelay_Req message by Transparent Clock 4 which is included in the Pdelay_Resp message, the transmission time t7 of the Pdelay_Resp message by Transparent Clock 4 which is included in the Pdelay_Resp_Follow_Up message, and the reception time t8 of the Pdelay_Resp message by the client device.
- pt2 ((t6-t5)+(t8-t7))/2
- the Master device After the transmission delay times pt1 and pt2 are calculated, the Master device sends a Sync message to Transparent Clock 4 at time T1 (step S207). The Master device sets CF of the Sync message to 0.
- Transparent Clock 4 When Transparent Clock 4 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S208). Transparent Clock 4 leaves the CF of the Sync message at 0. Transparent Clock 4 also stores the reception time dt1 of the Sync message from the Master device and the transmission time dt2 of the Sync message to the Client device.
- the client device receives the Sync message sent from Transparent Clock 4.
- the Master device After sending the Sync message, the Master device sends a Follow_Up message to Transparent Clock 4 (step S209).
- the Master device includes in the Follow_Up message the sending time T1 of the Sync message to Transparent Clock 4.
- the Master device also sets CF of the Follow_Up message to 0.
- T2 T1+pt1+(dt2-dt1)+pt2 Formula (4)
- the client device synchronizes its internal time with the calculated reception time T2 of the Sync message. This allows the client device's internal time to be synchronized with the master device's internal time.
- the transmission time T1 of the Sync message by the Master device can be included in the Sync message.
- the CF of the Sync message can be set to the sum (pt1+(dt2-dt1)) of the transmission delay time pt1 between the Master device and Transparent Clock 4 and the processing time of the Sync message in Transparent Clock 4 (dt2-dt1).
- the transmission time t3 of the Pdelay_Resp message by the Master device and the transmission time t7 of the Pdelay_Resp message by Transparent Clock 4, which were included in the Pdelay_Resp_Follow_Up message, can be set in the CF of the Pdelay_Resp message.
- the transfer device 100 transfers messages between a Grand Master Clock 1 (higher-level device) which is a master device, and a Client device 2 (lower-level device) in a time synchronization system 10 in which the two perform time synchronization.
- the Grand Master Clock 1 performs time synchronization by sending and receiving messages using the Peer to Peer method
- the Client device 2 performs time synchronization by sending and receiving messages using the End to End method.
- the transfer device 100 transfers messages between a higher-level device which performs time synchronization by sending and receiving messages using the Peer to Peer method, and a lower-level device which performs time synchronization by sending and receiving messages using the End to End method.
- FIG. 2 is a sequence diagram showing an example of the operation of the transfer device 100 according to this embodiment, and is a diagram for explaining the transfer method by the transfer device 100.
- the transfer device 100 transfers messages between a Master device (Grand Master Clock 1) that performs time synchronization by sending and receiving messages using the Peer to Peer method, and a Client device (Client device 2) that performs time synchronization by sending and receiving messages using the End to End method.
- a Master device Gram Master Clock 1
- Client device 2 Client device 2
- Figure 2 describes the case where the two-step method is used.
- the transfer device 100 transmits a Pdelay_Req message to the master device (step S301).
- the transfer device 100 sets the CF of the Pdelay_Req message to 0.
- the Transparent Clock 4 stores the transmission time t1 of the Pdelay_Req message to the master device.
- the master device receives the Pdelay_Req message at time t2.
- the master device stores the time t2 at which the Pdelay_Req message was received from the transfer device 100.
- the master device When the master device receives the Pdelay_Req message, it transmits a Pdelay_Resp message to the transfer device 100 at time t3 (step S302).
- the master device includes the reception time t2 of the Pdelay_Req message from the transfer device 100 in the Pdelay_Resp message.
- the master device also sets the CF of the Pdelay_Resp message to 0.
- the master device also stores the transmission time t3 of the Pdelay_Resp message to the transfer device 100.
- the master device After sending the Pdelay_Resp message, the master device sends a Pdelay_Resp_Follow_Up message to the transfer device 100 (step S303).
- the master device includes in the Pdelay_Resp_Follow_Up message the sending time t3 of the Pdelay_Resp message to the transfer device 100.
- the master device also sets the CF of the Pdelay_Resp_Follow_Up message to 0.
- the transfer device 100 receives a Pdelay_Resp message at time t4.
- the Transparent Clock 4 stores the reception time t4 of the Pdelay_Resp message from the master device.
- the transfer device 100 also receives a Pdelay_Resp_Follow_Up message.
- the transfer device 100 calculates an offset X, which is the difference between the device time of the master device and the device time of the transfer device 100, using the following formula (5) based on the transmission time t1 of the Pdelay_Req message by the transfer device 100, the reception time t2 of the Pdelay_Req message by the master device, which is included in the Pdelay_Resp message, the transmission time t3 of the Pdelay_Resp message by the master device, which is included in the Pdelay_Resp_Follow_Up message, and the reception time t4 of the Pdelay_Resp message by the transfer device 100.
- Offset X ((t2-t1)-(t4-t3))/2 Equation (5)
- the master device transmits a Sync message to the transfer device 100 (step S304).
- the master device sets the CF of the Sync message to 0.
- the transfer device 100 When the transfer device 100 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S305).
- the master device After sending the Sync message, the master device sends a Follow_Up message to the transfer device 100 (step S306).
- the master device includes in the Follow_Up message the sending time T1 of the Sync message to the transfer device 100.
- the master device also sets CF of the Follow_Up message to 0.
- the transfer device 100 When the transfer device 100 receives the Follow_Up message, it transmits the received Follow_Up message to the client device (step S307).
- the transfer device 100 calculates time T1' synchronized with the master device as the transmission time of the Sync message by the master device. Specifically, the transfer device 100 calculates time T1' by the following formula (6) or formula (7).
- T1' T1+pt1+(dt2-dt1)
- T1' dt2+offsetX Equation (7)
- the transfer device 100 sets the calculated time T1' to the CF of the Follow_Up message.
- the transfer device 100 sets the CF of the Follow_Up message to 0.
- the client device receives the Sync message at time T2.
- the client device stores the time T2 at which the Sync message was received from the transfer device 100.
- the client device also receives a Follow_Up message.
- the client device When the client device receives the Sync message and the Follow_Up message, it transmits a Delay_Req message to the transfer device 100 at time T3 (step S308).
- the client device includes in the Delay_Req message the transmission time T3 of the Delay_Req message to the transfer device 100.
- the client device also sets CF of the Delay_Req message to 0.
- the transfer device 100 receives the Delay_Req message at time dt3.
- Transparent Clock 4 forwards the received Delay_Req message to the Master device.
- the transfer device 100 terminates the Delay_Req message without forwarding it.
- the transfer device 100 transmits a Delay_Resp message to the Client device (step S309).
- the transfer device 100 includes the calculated time T4' in the Delay_Resp message.
- the transfer device 100 also sets CF of the Delay_Resp message to 0.
- the client device synchronizes its own internal time with the internal time of the transfer device 100 (i.e., the internal time of the master device) based on the calculated offset Y.
- the transfer method using the transfer device 100 virtually transmits and receives messages between the transfer device 100 and a client device using the End to End method, thereby enabling time synchronization between devices using different profiles, in particular between a higher-level device using Peer to Peer and a lower-level device using End to End.
- FIG. 1 shows an example in which the higher-level device is Grand Master Clock 1 and the lower-level device is Client device 2, but the present disclosure is not limited to this.
- the higher-level device may be a device with a master function
- the lower-level device may be a device with a slave function.
- the higher-level device and the lower-level device may be Boundary Clock 3.
- the transfer device 100 includes packet transmission/reception units 101, 102, a Pdelay_Req message processing unit 103, a Pdelay_Resp message processing unit 104, a Pdelay_Resp_Follow_Up message processing unit 105, an offset calculation unit 106, a Sync message processing unit 107, synchronization time calculation units 108, 111, a Follow_Up message processing unit 109, a Delay_Req message processing unit 110, a Delay_Resp message processing unit 112, and a CF processing unit 113.
- the packet transmission/reception unit 101 transmits and receives PTP packets (messages) with the Grand Master Clock 1, which is a higher-level device.
- the packet transmission/reception unit 102 transmits and receives PTP packets (messages) with the Client device 2, which is a lower-level device.
- the Pdelay_Req message processing unit 103 which serves as the first message processing unit, transmits the Pdelay_Req message to the Grand Master Clock 1 via the packet transmitting/receiving unit 101.
- the Pdelay_Req message processing unit 103 also obtains the transmission time t1 of the Pdelay_Req message by the transfer device 100, and outputs this to the offset calculation unit 106.
- the Pdelay_Resp message processing unit 104 acting as the second message processing unit, receives the Pdelay_Resp message transmitted from Grand Master Clock 1 via the packet transmitting/receiving unit 101, and acquires the reception time t2 of the Pdelay_Req message by Grand Master Clock 1, which is included in the Pdelay_Resp message.
- the Pdelay_Resp message processing unit 104 also acquires the reception time t4 of the Pdelay_Resp message by the transfer device 100.
- the Pdelay_Resp message processing unit 104 outputs the acquired reception time t2 of the Pdelay_Req message by Grand Master Clock 1 and the reception time t4 of the Pdelay_Resp message by the transfer device 100 to the offset calculation unit 106.
- the Pdelay_Resp_Follow_Up message processing unit 105 which serves as the third message processing unit, receives the Pdelay_Resp_Follow_Up message transmitted from Grand Master Clock 1 via the packet transmitting/receiving unit 101, and acquires the transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1, which is included in the Pdelay_Resp_Follow_Up message.
- the Pdelay_Resp_Follow_Up message processing unit 105 outputs the acquired transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1 to the offset calculation unit 106.
- the offset calculation unit 106 calculates the offset X, which is the difference between the device time of Grand Master Clock 1 and the device time of transfer device 100, using the above-mentioned formula (5) based on the transmission time t1 of the Pdelay_Req message by transfer device 100, the reception time t2 of the Pdelay_Req message by Grand Master Clock 1, the transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1, and the reception time t4 of the Pdelay_Resp message by transfer device 100.
- the offset calculation unit 106 outputs the calculation result of offset X to the synchronization time calculation unit 111. Furthermore, when offset X is used in the calculation of time T1' described later, the offset calculation unit 106 outputs the calculation result of offset X to the synchronization time calculation unit 108.
- the Sync message processing unit 107 which serves as the fourth message processing unit, receives the Sync message transmitted from the Grand Master Clock 1 via the packet transmission/reception unit 101.
- the Sync message processing unit 107 outputs the received Sync message to the CF processing unit 113.
- the Sync message output to the CF processing unit 113 has CF set to 0 and is transmitted to the Client device 2 via the packet transmission/reception unit 102. Therefore, the Sync message processing unit 107 receives the Sync message transmitted from the Grand Master Clock 1 and transmits it to the Client device 2, which is a lower-level device, via the CF processing unit 113 and the packet transmission/reception unit 102.
- the Sync message processing unit 107 also obtains the transmission time dt2 of the Sync message by the transfer device 100, and outputs it to the synchronization time calculation unit 108.
- the synchronization time calculation unit 108 which serves as the first synchronization time calculation unit, calculates the time T1' synchronized with Grand Master Clock 1 as the transmission time of the Sync message by Grand Master Clock 1 based on the transmission time dt2 of the Sync message by the transfer device 100 output from the Sync message processing unit 107.
- the synchronization time calculation unit 108 may calculate the time T1', for example, using the above-mentioned formula (6). That is, the synchronization time calculation unit 108 may calculate the time T1' by adding the transmission time dt2 of the Sync message by the transfer device 100, the transmission delay time pt1 between the Grand Master Clock 1 and the transfer device 100, and the processing time of the Sync message in the transfer device 100 (i.e., the difference between the transmission time dt2 of the Sync message by the transfer device 100 and the reception time dt1 of the Sync message by the transfer device 100).
- the synchronization time calculation unit 108 can calculate the transmission delay time pt1 using the above-mentioned formula (2) based on the time t1 when the Pdelay_Req message is sent by the transfer device 100, the time t2 when the Pdelay_Req message is received by Grand Master Clock 1, the time t3 when the Pdelay_Resp message is sent by Grand Master Clock 1, and the time t4 when the Pdelay_Resp message is received by the transfer device 100.
- the synchronization time calculation unit 108 may also calculate the time T1' using, for example, the above-mentioned formula (7). That is, the synchronization time calculation unit 108 may calculate the time T1' by adding the transmission time dt2 of the Sync message by the transfer device 100 and the offset X.
- the synchronization time calculation unit 108 outputs the calculated time T1' to the Follow_Up message processing unit 109.
- the follow_Up message processing unit 109 which serves as the fifth message processing unit, receives the Follow_Up message transmitted from Grand Master Clock 1 via the packet transmission/reception unit 101.
- the Follow_Up message processing unit 109 changes the transmission time T1 of the Sync message by Grand Master Clock 1, which is included in the received Follow_Up message, to time T1', and outputs the message to the CF processing unit 113.
- the Sync message output to the CF processing unit 113 has CF set to 0 by the CF processing unit 113, and is transmitted to the Client device 2 via the packet transmission/reception unit 102.
- the follow_Up message processing unit 109 receives the Follow_Up message transmitted from Grand Master Clock 1, changes the transmission time T1 of the Sync message by Grand Master Clock 1, which is included in the Follow_Up message, to time T1', and transmits the message to the Client device 2.
- the Delay_Req message processing unit 110 which serves as the sixth message processing unit, receives the Delay_Req message sent from the Client device 2 via the packet transmitting/receiving unit 102.
- the Delay_Req message processing unit 110 acquires the reception time dt3 of the Delay_Req message and outputs it to the synchronization time calculation unit 111.
- the synchronization time calculation unit 111 which serves as the second synchronization time calculation unit, calculates time T4' synchronized with Grand Master Clock 1 as the reception time of the Delay_Req message using the above-mentioned formula (8) based on the offset X calculated by the offset calculation unit 106 and the reception time dt3 of the Delay_Req message by the transfer device 100 output from the Delay_Req message processing unit 110.
- the synchronization time calculation unit 111 outputs the calculation result of time T4' to the Delay_Resp message processing unit 112.
- the Delay_Resp message processing unit 112 which serves as the seventh message processing unit, outputs a Delay_Resp message including the time T4' calculated by the synchronization time calculation unit 111 to the CF processing unit 113.
- the Delay_Resp message output to the CF processing unit 113 has CF set to 0 by the CF processing unit 113, and is transmitted to the Client device 2 via the packet transmission/reception unit 102. Therefore, the Delay_Resp message processing unit 112 transmits a Delay_Resp message including the time T4' to the Client device 2, which is a lower-level device.
- each message sent and received for time synchronization includes a CF in which a value used for time correction is set.
- the CF processing unit 113 sets the CF included in each message to 0.
- the CF processing unit 113 sets the CF of the Sync message, Follow_Up message, and Delay_Resp message to 0.
- the information set in the CF of the above-mentioned message is unnecessary due to the processing described with reference to FIG. 2.
- the CF processing unit 113 sets the CF of the message to 0, thereby preventing the transmission of information unnecessary for processing in the client device 2.
- the transfer device 100 can virtually send and receive messages between the transfer device 100 and a client device using the End to End method, thereby enabling time synchronization between devices using different profiles, in particular between a higher-level device using Peer to Peer and a lower-level device using End to End.
- FIG. 3 is a diagram showing an example of the hardware configuration of the transfer device 100 according to this embodiment.
- FIG. 3 shows an example of the hardware configuration of the transfer device 100 when the transfer device 100 is configured by a computer capable of executing program instructions.
- the computer may be a general-purpose computer, a dedicated computer, a workstation, a PC (Personal computer), an electronic notepad, etc.
- the program instructions may be program code, code segments, etc. for performing the required tasks.
- the transfer device 100 has a processor 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 203, storage 204, an input unit 205, a display unit 206, and a communication interface (I/F) 207.
- the processor 201 is specifically a CPU (Central Processing Unit), MPU (Micro Processing Unit), GPU (Graphics Processing Unit), DSP (Digital Signal Processor), SoC (System on a Chip), etc., and may be composed of multiple processors of the same or different types.
- Processor 201 is a control unit that controls each component and executes various types of arithmetic processing. That is, processor 201 reads a program from ROM 202 or storage 204, and executes the program using RAM 203 as a working area. Processor 201 controls each of the above components and executes various types of arithmetic processing according to the program stored in ROM 202 or storage 204. In this embodiment, ROM 202 or storage 204 stores a program for operating a computer as transfer device 100 according to the present disclosure.
- each component of the transfer device 100 such as the Pdelay_Req message processing unit 103, the Pdelay_Resp message processing unit 104, the Pdelay_Resp_Follow_Up message processing unit 105, the offset calculation unit 106, the Sync message processing unit 107, the synchronization time calculation units 108 and 111, the Follow_Up message processing unit 109, the Delay_Req message processing unit 110, the Delay_Resp message processing unit 112, and the CF processing unit 113, are realized.
- the program may be provided in a form stored on a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory.
- a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory.
- the program may also be provided via a network.
- ROM 202 stores various programs and data.
- RAM 203 temporarily stores programs or data as a working area.
- Storage 204 is composed of a HDD (Hard Disk Drive) or SSD (Solid State Drive), and stores various programs and data including the operating system.
- the input unit 205 includes a pointing device such as a mouse and a keyboard, and is used to perform various input operations.
- the display unit 206 is, for example, a liquid crystal display, and displays various information.
- the display unit 206 may also function as the input unit 205 by adopting a touch panel system.
- the communication interface 207 is an interface for communicating with other devices (e.g., the Grand Master Clock 1 and the Client device 2), and is, for example, an interface for a LAN.
- the packet transmission/reception units 101 and 102 are, for example, configured with the communication interface 207.
- a computer can be suitably used to function as each part of the transfer device 100 described above.
- Such a computer can be realized by storing a program describing the processing contents for realizing the functions of each part of the transfer device 100 in the memory of the computer, and having the processor of the computer read and execute this program.
- the program can cause the computer to function as the transfer device 100 described above.
- the program can also be stored in a non-transitory storage medium.
- the program can also be provided via a network.
- a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner,
- a control unit is provided, The control unit is Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message; receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message; receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-
- the control unit calculates a transmission delay time pt1 between the higher-level device and the transfer device based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4, and calculates the time T1' by adding the sending time T1, the transmission delay time pt1, and the difference between the sending time dt2 and the sending time dt1 of the Sync message by the transfer device.
- the control unit calculates the time T1' by adding the transmission time dt2 and the offset.
- Each of the messages includes a correctionField (CF) in which a value used for time correction is set, The control unit sets the CF included in each message to 0.
- CF correctionField
- a method for transferring messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner comprising: Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message; receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message; receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being
- a non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to operate as a transfer device according to any one of claims 1 to 4.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A transfer device (100) according to the present disclosure transmits a Pdelay_Req message to a higher-order device; receives a Pdelay_Resp message from the higher-order device; receives a Pdelay_Resp_Follow_Up message from the higher-order device; calculates an offset on the basis of a transmission time t1, a reception time t2, a transmission time t3, and a reception time t4; receives a Sync message from the higher-order device and transmits the Sync message to the lower-order device; calculates a time T1' of synchronization with the higher-order device as the time of transmission of the Sync message by the higher-order device, on the basis of a transmission time dt2; includes the time T1' in a Follow_Up message from the higher-order device and transmits the Follow_Up message to the lower-order device; receives a Delay_Req message from the lower-order device; calculates a time T4' of synchronization with the higher-order device as a reception time of the Delay_Req message, on the basis of a reception time dt3 and the offset; and transmits a Delay_Resp message including the time T4' to the lower-order device.
Description
本開示は、転送装置、転送方法およびプログラムに関する。
This disclosure relates to a transfer device, a transfer method, and a program.
IEEE-1588規格で定義されたPTP(Precision Time Protocol)は、LAN(Local Area Network)上のコンピュータの時刻(装置内時刻)を高い精度で同期させるプロトコルである(非特許文献1参照)。図4A,4Bは、PTPを用いてネットワーク上の装置の時刻を同期させる、時刻同期システム10Aの構成例を示す図である。
The Precision Time Protocol (PTP) defined in the IEEE-1588 standard is a protocol that synchronizes the time (internal device time) of computers on a Local Area Network (LAN) with high precision (see Non-Patent Document 1). Figures 4A and 4B show an example configuration of a time synchronization system 10A that uses PTP to synchronize the time of devices on a network.
図4A,4Bに示すように、時刻同期システム10Aは、Grand Master Clock1と、Client装置2とを含む。
As shown in Figures 4A and 4B, the time synchronization system 10A includes a Grand Master Clock 1 and a Client device 2.
Grand Master Clock1は、GPS(Global Positioning System)などの全球測位衛星システム(GNSS:Global Navigation Satellite System)の衛星からの信号(GNSS信号)を受信するGNSSアンテナ1aを備える。Grand Master Clock1は、GNSSアンテナ1aを介してGNSS信号を受信し、受信したGNSS信号から協定世界時(UTC:Universal Time Coordinated)を取得する。Grand Master Clock1は、ネットワークを介して、取得したUTCを基準時刻として配信するマスター機能を備える。
The Grand Master Clock 1 is equipped with a GNSS antenna 1a that receives signals (GNSS signals) from satellites of the Global Navigation Satellite System (GNSS), such as the Global Positioning System (GPS). The Grand Master Clock 1 receives the GNSS signals via the GNSS antenna 1a and acquires Universal Time Coordinated (UTC) from the received GNSS signals. The Grand Master Clock 1 has a master function that distributes the acquired UTC as the reference time via the network.
Client装置2は、マスター機能を備える装置から配信された時刻に、装置内時刻を同期させるスレーブ機能を備える。Client装置2は、例えば、携帯電話網における基地局装置などの、ユーザにより使用される装置である。
The client device 2 has a slave function that synchronizes the internal time of the device with the time distributed from a device with a master function. The client device 2 is a device used by a user, such as a base station device in a mobile phone network.
時刻源となるGrand Master Clock1と、ユーザにより使用されるClient装置2とを同期させる場合、Grand Master Clock1とClient装置2との距離、および、Grand Master Clock1と同期するClient装置2の数によっては、Grand Master Clock1とClient装置2との間に、信号を中継する中継装置が設けられることがある。PTPで使用可能な中継装置としては、図4Aに示すBoundary Clock3と、図4Bに示すTransparent Clock4と、がある。
When synchronizing the Grand Master Clock 1, which serves as the time source, with the Client device 2 used by the user, a relay device that relays signals may be installed between the Grand Master Clock 1 and the Client device 2 depending on the distance between the Grand Master Clock 1 and the Client device 2 and the number of Client devices 2 that are synchronized with the Grand Master Clock 1. Relay devices that can be used with PTP include the Boundary Clock 3 shown in Figure 4A and the Transparent Clock 4 shown in Figure 4B.
図4Aに示すBoundary Clock3は、マスター機能を備える上位装置に対しては、上位装置から配信された時刻に自装置の装置内時刻を同期させるスレーブ機能を備える装置として機能し、スレーブ機能を備える下位装置に対してはマスター機能を備える装置として機能する。図4Aに示す時刻同期システム10Aにおいては、Boundary Clock3は、Grand Master Clock1に対してはスレーブ機能を備える装置として機能し、Client装置2に対してはマスター機能を備える装置として機能する。具体的には、Boundary Clock3は、Grand Master Clock1とのPTPパケットの送受信により、上位装置であるGrand Master Clock1の装置内時刻と自装置の装置内時刻との差(マスター機能を備える装置の装置内時刻とスレーブ機能を備える装置の装置内時刻との差)であるオフセットを測定し、測定したオフセットに基づき、自装置の装置内時刻をGrand Master Clock1から配信される時刻(基準時刻)に同期させる。また、Boundary Clock3は、Client装置2とのPTPパケットの送受信により、Client装置2の装置内時刻を、自装置の装置内時刻に同期させる。
The Boundary Clock 3 shown in FIG. 4A functions as a device with a slave function for synchronizing its own internal time with the time distributed from a higher-level device with a master function, and functions as a device with a master function for a lower-level device with a slave function. In the time synchronization system 10A shown in FIG. 4A, the Boundary Clock 3 functions as a device with a slave function for the Grand Master Clock 1, and functions as a device with a master function for the Client device 2. Specifically, the Boundary Clock 3 measures the offset, which is the difference between the internal time of the higher-level device, Grand Master Clock 1, and the internal time of its own device (the difference between the internal time of the device with the master function and the internal time of the device with the slave function), by sending and receiving PTP packets with the Grand Master Clock 1, and synchronizes the internal time of its own device with the time distributed from the Grand Master Clock 1 (reference time) based on the measured offset. In addition, the Boundary Clock 3 synchronizes the internal time of the Client device 2 with the internal time of its own device by sending and receiving PTP packets with the Client device 2.
図4Bに示すTransparent Clock4は、上位装置であるGrand Master Clock1から受信したPTPパケットを下位装置であるClient装置3に転送し、下位装置であるClient装置3から受信したPTPパケットを上位装置であるGrand Master Clock1に転送する。ここで、Transparent Clock4は、PTPパケットが自装置内を通過する時間を計測し、その結果をPTPパケットに書き込みつつ転送する。こうすることで、Client装置2の装置内時刻を、Grand Master Clock1の装置内時刻に同期させることができる。
The Transparent Clock 4 shown in Figure 4B transfers PTP packets received from the higher-level device, Grand Master Clock 1, to the lower-level device, Client device 3, and transfers PTP packets received from the lower-level device, Client device 3, to the higher-level device, Grand Master Clock 1. Here, Transparent Clock 4 measures the time it takes for a PTP packet to pass through its own device, and writes the result into the PTP packet while transferring it. In this way, the internal time of Client device 2 can be synchronized with the internal time of Grand Master Clock 1.
PTPでは、使用される分野ごとに、プロファイルと呼ばれる、求められるパラメータおよび時刻情報の形式などが異なるフォーマットが規定されており、異なるプロファイル間では時刻同期ができない。異なるプロファイル間で時刻同期ができない理由の1つとして、遅延測定方法の違いがある。
In PTP, different formats, called profiles, are specified for each field of use, which contain different required parameters and time information formats, and time synchronization is not possible between different profiles. One of the reasons time synchronization is not possible between different profiles is the difference in the delay measurement method.
図4Bに示すTransparent Clock4の遅延測定方法としては、End to End方式と、Peer to Peer方式という2つの方式がある。これらの方式では使用するメッセージが異なるため、End to End方式を用いる装置と、Peer to Peer方式を用いる装置との間では、一方の装置からのメッセージをそのまま他方の装置に転送しても時刻同期させることはできない。プロファイルの異なる装置間で時刻同期ができない場合、プロファイルごとに個別に時刻配信ネットワークの構築が必要になるため、高コスト化を招いてしまう。
There are two methods for measuring delay for Transparent Clock 4 shown in Figure 4B: the End to End method and the Peer to Peer method. Because these methods use different messages, time synchronization cannot be achieved between a device using the End to End method and a device using the Peer to Peer method by simply forwarding a message from one device to the other. If time synchronization is not possible between devices with different profiles, it would be necessary to build a separate time distribution network for each profile, resulting in high costs.
上記のような問題点に鑑みてなされた本開示の目的は、使用するプロファイルの異なる装置間、特に、Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置との間で時刻同期を可能とすることができる転送装置、転送方法およびプログラムを提供することにある。
The purpose of this disclosure, made in consideration of the above problems, is to provide a transfer device, a transfer method, and a program that can enable time synchronization between devices using different profiles, in particular between a higher-level device that performs time synchronization by sending and receiving messages using a Peer-to-Peer method, and a lower-level device that performs time synchronization by sending and receiving messages using an End-to-End method.
上記課題を解決するため、本開示に係る転送装置は、Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置であって、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得する第1メッセージ処理部と、前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得する第2メッセージ処理部と前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得する第3メッセージ処理部と、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算するオフセット計算部と、前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得する第4メッセージ処理部と、前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算する第1同期時刻計算部と、前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信する第5メッセージ処理部と、前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得する第6メッセージ処理部と、前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算する第2同期時刻計算部と、前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する第7メッセージ処理部と、を備える。 In order to solve the above problem, a transfer device according to the present disclosure is a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End to End manner,
a first message processor that transmits a Pdelay_Req message to the higher-level device and acquires a transmission time t1 of the Pdelay_Req message; a second message processor that receives a Pdelay_Resp message transmitted from the higher-level device and acquires a reception time t2 of the Pdelay_Req message by the higher-level device contained in the Pdelay_Resp message and acquires a reception time t4 of the Pdelay_Resp message; a third message processor that receives a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquires a transmission time t3 of the Pdelay_Resp message by the higher-level device contained in the Pdelay_Resp_Follow_Up message; an offset calculator that calculates an offset that is a difference between the device internal time of the higher-level device and the device internal time of the transfer device based on the transmission time t1, the reception time t2, the transmission time t3, and the reception time t4; the Sync message is transmitted to the lower device and the transmission time dt3 of the Delay_Req message is obtained; a fourth message processing unit that transmits the Sync message to a lower device and obtains the transmission time dt2 of the Sync message by the transfer device; a first synchronization time calculation unit that calculates a time T1' synchronized with the upper device as the transmission time of the Sync message by the upper device based on the transmission time dt2; a fifth message processing unit that receives a Follow_Up message transmitted from the upper device, changes the transmission time T1 of the Sync message by the upper device contained in the Follow_Up message to the time T1', and transmits the message to the lower device; a sixth message processing unit that receives a Delay_Req message transmitted from the lower device and obtains the reception time dt3 of the Delay_Req message; a second synchronization time calculation unit that calculates a time T4' synchronized with the upper device as the reception time of the Delay_Req message based on the offset and the reception time dt3; and a seventh message processing unit that transmits a Delay_Resp message including the time T4' to the lower device.
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得する第1メッセージ処理部と、前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得する第2メッセージ処理部と前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得する第3メッセージ処理部と、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算するオフセット計算部と、前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得する第4メッセージ処理部と、前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算する第1同期時刻計算部と、前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信する第5メッセージ処理部と、前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得する第6メッセージ処理部と、前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算する第2同期時刻計算部と、前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する第7メッセージ処理部と、を備える。 In order to solve the above problem, a transfer device according to the present disclosure is a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End to End manner,
a first message processor that transmits a Pdelay_Req message to the higher-level device and acquires a transmission time t1 of the Pdelay_Req message; a second message processor that receives a Pdelay_Resp message transmitted from the higher-level device and acquires a reception time t2 of the Pdelay_Req message by the higher-level device contained in the Pdelay_Resp message and acquires a reception time t4 of the Pdelay_Resp message; a third message processor that receives a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquires a transmission time t3 of the Pdelay_Resp message by the higher-level device contained in the Pdelay_Resp_Follow_Up message; an offset calculator that calculates an offset that is a difference between the device internal time of the higher-level device and the device internal time of the transfer device based on the transmission time t1, the reception time t2, the transmission time t3, and the reception time t4; the Sync message is transmitted to the lower device and the transmission time dt3 of the Delay_Req message is obtained; a fourth message processing unit that transmits the Sync message to a lower device and obtains the transmission time dt2 of the Sync message by the transfer device; a first synchronization time calculation unit that calculates a time T1' synchronized with the upper device as the transmission time of the Sync message by the upper device based on the transmission time dt2; a fifth message processing unit that receives a Follow_Up message transmitted from the upper device, changes the transmission time T1 of the Sync message by the upper device contained in the Follow_Up message to the time T1', and transmits the message to the lower device; a sixth message processing unit that receives a Delay_Req message transmitted from the lower device and obtains the reception time dt3 of the Delay_Req message; a second synchronization time calculation unit that calculates a time T4' synchronized with the upper device as the reception time of the Delay_Req message based on the offset and the reception time dt3; and a seventh message processing unit that transmits a Delay_Resp message including the time T4' to the lower device.
また、上記課題を解決するため、本開示に係る転送方法は、Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置による転送方法であって、Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得するステップと、前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得するステップと、前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得するステップと、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算するステップと、前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得するステップと、前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算するステップと、前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信するステップと、前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得するステップと、前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算するステップと、前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信するステップと、を含む。
In addition, in order to solve the above problem, the transfer method disclosed herein is a transfer method by a transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End to End manner, and includes the steps of: transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message; receiving a Pdelay_Resp message transmitted from the higher-level device and acquiring a reception time t2 of the Pdelay_Req message by the higher-level device, which is included in the Pdelay_Resp message, and acquiring a reception time t4 of the Pdelay_Resp message; receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, which is included in the Pdelay_Resp_Follow_Up message; The method includes the steps of: calculating an offset, which is the difference between the internal time of the upper device and the internal time of the transfer device; receiving a Sync message transmitted from the upper device and transmitting it to the lower device, and acquiring a transmission time dt2 of the Sync message by the transfer device; calculating a time T1' synchronized with the upper device as the transmission time of the Sync message by the upper device based on the transmission time dt2; receiving a Follow_Up message transmitted from the upper device, changing the transmission time T1 of the Sync message by the upper device contained in the Follow_Up message to the time T1', and transmitting it to the lower device; receiving a Delay_Req message transmitted from the lower device, and acquiring a reception time dt3 of the Delay_Req message; calculating a time T4' synchronized with the upper device as the reception time of the Delay_Req message based on the offset and the reception time dt3; and transmitting a Delay_Resp message including the time T4' to the lower device.
また、上記課題を解決するため、本開示に係るプログラムは、コンピュータを、上述した転送装置として動作させる。
In addition, to solve the above problem, the program disclosed herein causes a computer to operate as the above-mentioned transfer device.
本開示に係る転送装置、転送方法およびプログラムによれば、使用するプロファイルの異なる装置間、特に、Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置との間で時刻同期を可能とすることができる。
The transfer device, transfer method, and program disclosed herein enable time synchronization between devices using different profiles, in particular between a higher-level device that performs time synchronization by sending and receiving messages using a Peer-to-Peer method, and a lower-level device that performs time synchronization by sending and receiving messages using an End-to-End method.
以下、本開示の実施の形態について図面を参照して説明する。
The following describes an embodiment of the present disclosure with reference to the drawings.
まず、比較のために、図4Bに示すTransparent Clock4の動作について説明する。
First, for comparison, we will explain the operation of Transparent Clock 4 shown in Figure 4B.
図5は、Master装置とClient装置とがEnd to End方式によるメッセージの送受信により時刻同期を行う場合のTransparent Clock4の動作の一例を示すシーケンス図である。Master装置は、Master機能を備える装置であり、例えば、図4Bに示すGrand Master Clock1であり、Client装置は、図4Bに示す、無線基地局などのClient装置2である。PTPの時刻配信方法には、2ステップ方式と、1ステップ方式という2つの方式がある。図5においては、2ステップ方式を用いた場合について説明する。
Figure 5 is a sequence diagram showing an example of the operation of Transparent Clock 4 when a Master device and a Client device perform time synchronization by sending and receiving messages using the End to End method. The Master device is a device with a Master function, such as Grand Master Clock 1 shown in Figure 4B, and the Client device is Client device 2 such as a wireless base station shown in Figure 4B. There are two methods for distributing time in PTP: the two-step method and the one-step method. Figure 5 explains the case where the two-step method is used.
Master装置は、時刻T1において、SyncメッセージをTransparent Clock4に送信する(ステップS101)。PTPにおいて装置間で送受信されるメッセージには、correctionField(CF)と呼ばれる、時刻補正に用いる補正値(例えば、装置内をフレームが通過するのにかかった時間などを加算した値)が設定されるフィールドが含まれる。Master装置は、SyncメッセージのCFに0を設定する。
At time T1, the Master device sends a Sync message to Transparent Clock 4 (step S101). Messages sent and received between devices in PTP include a field called correctionField (CF), which contains a correction value used for time correction (for example, a value obtained by adding the time it takes for a frame to pass through the device). The Master device sets the CF of the Sync message to 0.
Transparent Clock4は、時刻dt1においてSyncメッセージを受信すると、時刻dt2において、受信したSyncメッセージをClient装置に送信する(ステップS102)。Transparent Clock4は、SyncメッセージのCFを0のままとする。また、Transparent Clock4は、Master装置からのSyncメッセージの受信時刻dt1と、Client装置へのSyncメッセージの送信時刻dt2とを記憶する。
When Transparent Clock 4 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S102). Transparent Clock 4 leaves the CF of the Sync message at 0. Transparent Clock 4 also stores the reception time dt1 of the Sync message from the Master device and the transmission time dt2 of the Sync message to the Client device.
Client装置は、時刻T2において、Transparent Clock4から送信されたSyncメッセージを受信する。Client装置は、Syncメッセージの受信時刻T2を記憶する。
The client device receives the Sync message sent from Transparent Clock 4 at time T2. The client device stores the time T2 when the Sync message was received.
Master装置は、Syncメッセージの送信後、Follow_UpメッセージをTransparent Clock4に送信する(ステップS103)。Master装置は、Syncメッセージの送信時刻T1をFollow_Upメッセージに含める。また、Master装置は、Follow_UpメッセージのCFに0を設定する。
After sending the Sync message, the Master device sends a Follow_Up message to Transparent Clock 4 (step S103). The Master device includes the sending time T1 of the Sync message in the Follow_Up message. The Master device also sets CF of the Follow_Up message to 0.
Transparent Clock4は、Follow_Upメッセージを受信すると、受信したFollow_UpメッセージをClient装置に送信する(ステップS104)。Transparent Clock4は、Follow_UpメッセージのCFに、Transparent Clock4におけるSyncメッセージの処理時間(=dt2-dt1)を設定する。
When Transparent Clock 4 receives the Follow_Up message, it transmits the received Follow_Up message to the Client device (step S104). Transparent Clock 4 sets the CF of the Follow_Up message to the processing time of the Sync message at Transparent Clock 4 (= dt2 - dt1).
Client装置は、SyncメッセージおよびFollow_Upメッセージを受信すると、時刻T3において、Delay_ReqメッセージをTransparent Clock4に送信する(ステップS105)。Client装置は、Delay_Reqメッセージの送信時刻T3をDelay_Reqメッセージに含める。また、Client装置は、Delay_ReqメッセージのCFに0を設定する。
When the client device receives the Sync message and the Follow_Up message, it transmits a Delay_Req message to Transparent Clock 4 at time T3 (step S105). The client device includes the transmission time T3 of the Delay_Req message in the Delay_Req message. The client device also sets CF of the Delay_Req message to 0.
Transparent Clock4は、時刻dt3においてDelay_Reqメッセージを受信すると、時刻dt4において、受信したDelay_ReqメッセージをMaster装置に送信する(ステップS106)。Transparent Clock4は、Delay_ReqメッセージのCFを0のままとする。また、Transparent Clock4は、Client装置からのDelay_Reqメッセージの受信時刻dt3と、Master装置へのDelay_Reqメッセージの送信時刻dt4とを記憶する。
When Transparent Clock 4 receives the Delay_Req message at time dt3, it transmits the received Delay_Req message to the Master device at time dt4 (step S106). Transparent Clock 4 leaves the CF of the Delay_Req message at 0. Transparent Clock 4 also stores the reception time dt3 of the Delay_Req message from the Client device and the transmission time dt4 of the Delay_Req message to the Master device.
Master装置は、時刻T4において、Transparent Clock4から送信されたDelay_Reqメッセージを受信する。Master装置は、Delay_Reqメッセージの受信時刻T4を記憶する。
At time T4, the Master device receives the Delay_Req message sent from Transparent Clock 4. The Master device stores the time T4 at which the Delay_Req message was received.
Master装置は、Delay_Reqメッセージを受信すると、Delay_RespメッセージをTransparent Clock4に送信する(ステップS107)。Master装置は、Delay_Reqメッセージの受信時刻T4をDelay_Respメッセージに含める。また、Client装置は、Delay_RespメッセージのCFに0を設定する。
When the master device receives the Delay_Req message, it sends a Delay_Resp message to Transparent Clock 4 (step S107). The master device includes the reception time T4 of the Delay_Req message in the Delay_Resp message. In addition, the client device sets CF of the Delay_Resp message to 0.
Transparent Clock4は、Delay_Respメッセージを受信すると、受信したDelay_RespメッセージをClient装置に転送する(ステップS108)。Transparent Clock4は、Delay_RespメッセージのCFに、Transparent Clock4におけるDelay_Reqメッセージの処理時間(=dt4-dt3)を設定する。
When Transparent Clock 4 receives the Delay_Resp message, it transfers the received Delay_Resp message to the Client device (step S108). Transparent Clock 4 sets the processing time of the Delay_Req message at Transparent Clock 4 (= dt4 - dt3) to the CF of the Delay_Resp message.
Client装置は、Follow_Upメッセージに含まれる、Master装置によるSyncメッセージの送信時刻T1、Client装置によるSyncメッセージの受信時刻T2、Client装置によるDelay_Reqメッセージの送信時刻T3、Delay_Respメッセージに含まれる、Master装置によるDelay_Reqメッセージの受信時刻T4、Follow_UpメッセージのCFに設定された、Transparent Clock4におけるSyncメッセージの処理時間(=dt2-dt1)、および、Delay_RespメッセージのCFに設定された、Transparent Clock4におけるDelay_Reqメッセージの処理時間(=dt4-dt3)に基づき、Master装置の装置内時刻とClient装置の装置内時刻との差であるオフセットを、以下の式(1)により計算する。
オフセット=((T2-T1-(dt2-dt1))-(T4-T3-(dt4-dt3)))/2 式(1) The client device calculates an offset, which is the difference between the device time of the Master device and the device time of the Client device, using the following formula (1) based on the time T1 when the Sync message was sent by the Master device, the time T2 when the Sync message was received by the Client device, the time T3 when the Delay_Req message was sent by the Client device, the time T4 when the Delay_Req message was received by the Master device, which is included in the Delay_Resp message, the processing time of the Sync message inTransparent Clock 4 set in the CF of the Follow_Up message (= dt2 - dt1), and the processing time of the Delay_Req message in Transparent Clock 4 set in the CF of the Delay_Resp message (= dt4 - dt3).
Offset = ((T2-T1-(dt2-dt1))-(T4-T3-(dt4-dt3)))/2 Formula (1)
オフセット=((T2-T1-(dt2-dt1))-(T4-T3-(dt4-dt3)))/2 式(1) The client device calculates an offset, which is the difference between the device time of the Master device and the device time of the Client device, using the following formula (1) based on the time T1 when the Sync message was sent by the Master device, the time T2 when the Sync message was received by the Client device, the time T3 when the Delay_Req message was sent by the Client device, the time T4 when the Delay_Req message was received by the Master device, which is included in the Delay_Resp message, the processing time of the Sync message in
Offset = ((T2-T1-(dt2-dt1))-(T4-T3-(dt4-dt3)))/2 Formula (1)
Client装置は、計算したオフセットに基づき装置内時刻を修正することで、Client装置の装置内時刻をMaster装置の装置内時刻に同期させることができる。
The client device can synchronize its internal time with the internal time of the master device by correcting the internal time based on the calculated offset.
図5においては2ステップ方式を用いた場合について説明したが、1ステップ方式の場合には、Follow_Upメッセージは使用されない。この場合、Follow_Upメッセージに含まれていた、Syncメッセージの送信時刻T1およびTransparent Clock4におけるSyncメッセージの処理時間(=dt2-dt1)は、Syncメッセージに含めればよい。
In Figure 5, the case where the two-step method is used is explained, but in the case of the one-step method, the Follow_Up message is not used. In this case, the transmission time T1 of the Sync message and the processing time of the Sync message at Transparent Clock 4 (= dt2 - dt1) contained in the Follow_Up message can be included in the Sync message.
図6は、Master装置とClient装置とがPeer to Peer方式によるメッセージの送受信により時刻同期を行う場合の、Transparent Clock4の動作の一例を示すシーケンス図である。図6においては、2ステップ方式を用いた場合について説明する。
Figure 6 is a sequence diagram showing an example of the operation of Transparent Clock 4 when a Master device and a Client device perform time synchronization by sending and receiving messages using the Peer to Peer method. Figure 6 explains the case where the two-step method is used.
Transparent Clock4は、時刻t1において、Pdelay_ReqメッセージをMaster装置に送信する(ステップS201)。Transparent Clock4は、Pdelay_ReqメッセージのCFに0を設定する。また、Transparent Clock4は、Master装置へのPdelay_Reqメッセージの送信時刻t1を記憶する。
Transparent Clock 4 transmits a Pdelay_Req message to the Master device at time t1 (step S201). Transparent Clock 4 sets CF of the Pdelay_Req message to 0. Transparent Clock 4 also stores the transmission time t1 of the Pdelay_Req message to the Master device.
Master装置は、時刻t2において、Pdelay_Reqメッセージを受信する。Master装置は、Transparent Clock4からのPdelay_Reqメッセージの受信時刻t2を記憶する。
The master device receives the Pdelay_Req message at time t2. The master device stores the time t2 when it received the Pdelay_Req message from Transparent Clock 4.
Master装置は、Pdelay_Reqメッセージを受信すると、時刻t3において、Pdelay_RespメッセージをTransparent Clock4に送信する(ステップS202)。Master装置は、Pdelay_Reqメッセージの受信時刻t2をPdelay_Respメッセージに含める。また、Master装置は、Pdelay_RespメッセージのCFに0を設定する。また、Master装置は、Transparent Clock4へのPdelay_Respメッセージの送信時刻t3を記憶する。
When the master device receives the Pdelay_Req message, it transmits a Pdelay_Resp message to Transparent Clock 4 at time t3 (step S202). The master device includes the reception time t2 of the Pdelay_Req message in the Pdelay_Resp message. The master device also sets the CF of the Pdelay_Resp message to 0. The master device also stores the transmission time t3 of the Pdelay_Resp message to Transparent Clock 4.
Master装置は、Pdelay_Respメッセージの送信後、Pdelay_Resp_Follow_UpメッセージをTransparent Clock4に送信する(ステップS203)。Master装置は、Transparent Clock4へのPdelay_Respメッセージの送信時刻t3を、Pdelay_Resp_Follow_Upメッセージに含める。また、Master装置は、Pdelay_Resp_Follow_UpメッセージのCFに0を設定する。
After sending the Pdelay_Resp message, the master device sends a Pdelay_Resp_Follow_Up message to Transparent Clock 4 (step S203). The master device includes the sending time t3 of the Pdelay_Resp message to Transparent Clock 4 in the Pdelay_Resp_Follow_Up message. The master device also sets CF of the Pdelay_Resp_Follow_Up message to 0.
Transparent Clock4は、時刻t4において、Pdelay_Respメッセージを受信する。Transparent Clock4は、Master装置からのPdelay_Respメッセージの受信時刻t4を記憶する。また、Transparent Clock4は、Pdelay_Resp_Follow_Upメッセージを受信する。Transparent Clock4は、Transparent Clock4によるPdelay_Reqメッセージの送信時刻t1、Pdelay_Respメッセージに含まれる、Master装置によるPdelay_Reqメッセージの受信時刻t2、Pdelay_Resp_Follow_Upメッセージに含まれる、Master装置によるPdelay_Respメッセージの送信時刻t3、および、Transparent Clock4によるPdelay_Respメッセージの受信時刻t4に基づき、Master装置とTransparent Clock4との間の伝送遅延時間pt1を、以下の式(2)により計算する。
pt1=((t2-t1)+(t4-t3))/2 式(2) TheTransparent Clock 4 receives the Pdelay_Resp message at time t4. The Transparent Clock 4 stores the reception time t4 of the Pdelay_Resp message from the Master device. The Transparent Clock 4 also receives the Pdelay_Resp_Follow_Up message. The Transparent Clock 4 calculates the transmission delay time pt1 between the Master device and the Transparent Clock 4 using the following formula (2) based on the transmission time t1 of the Pdelay_Req message by the Transparent Clock 4, the reception time t2 of the Pdelay_Req message by the Master device, which is included in the Pdelay_Resp message, the transmission time t3 of the Pdelay_Resp message by the Master device, which is included in the Pdelay_Resp_Follow_Up message, and the reception time t4 of the Pdelay_Resp message by the Transparent Clock 4.
pt1 = ((t2-t1) + (t4-t3))/2 Equation (2)
pt1=((t2-t1)+(t4-t3))/2 式(2) The
pt1 = ((t2-t1) + (t4-t3))/2 Equation (2)
時刻t5において、Client装置は、Pdelay_ReqメッセージをTransparent Clock4に送信する(ステップS204)。Client装置は、Pdelay_ReqメッセージのCFに0を設定する。また、Client装置は、Transparent Clock4へのPdelay_Reqメッセージの送信時刻t5を記憶する。
At time t5, the client device transmits a Pdelay_Req message to Transparent Clock 4 (step S204). The client device sets CF of the Pdelay_Req message to 0. The client device also stores the transmission time t5 of the Pdelay_Req message to Transparent Clock 4.
Transparent Clock4は、時刻t6において、Pdelay_Reqメッセージを受信する。Transparent Clock4は、Client装置からのPdelay_Reqメッセージの受信時刻t6を記憶する。
Transparent Clock 4 receives the Pdelay_Req message at time t6. Transparent Clock 4 stores the time t6 when the Pdelay_Req message was received from the Client device.
Transparent Clock4は、Pdelay_Reqメッセージを受信すると、時刻t7において、Pdelay_RespメッセージをClient装置に送信する(ステップS205)。Transparent Clock4は、Client装置からのPdelay_Reqメッセージの受信時刻t6をPdelay_Respメッセージに含める。また、Transparent Clock4は、Pdelay_RespメッセージのCFに0を設定する。また、Transparent Clock4は、Client装置へのPdelay_Respメッセージの送信時刻t7を記憶する。
When Transparent Clock 4 receives the Pdelay_Req message, it transmits a Pdelay_Resp message to the Client device at time t7 (step S205). Transparent Clock 4 includes the reception time t6 of the Pdelay_Req message from the Client device in the Pdelay_Resp message. Transparent Clock 4 also sets CF of the Pdelay_Resp message to 0. Transparent Clock 4 also stores the transmission time t7 of the Pdelay_Resp message to the Client device.
Transparent Clock4は、Pdelay_Respメッセージの送信後、Pdelay_Resp_Follow_UpメッセージをClient装置に送信する(ステップS206)。Transparent Clock4は、Client装置へのPdelay_Respメッセージの送信時刻t7をPdelay_Resp_Follow_Upメッセージに含める。また、Transparent Clock4は、Pdelay_Resp_Follow_UpメッセージのCFに0を設定する。
After transmitting the Pdelay_Resp message, Transparent Clock 4 transmits a Pdelay_Resp_Follow_Up message to the Client device (step S206). Transparent Clock 4 includes in the Pdelay_Resp_Follow_Up message the transmission time t7 of the Pdelay_Resp message to the Client device. Transparent Clock 4 also sets CF of the Pdelay_Resp_Follow_Up message to 0.
Client装置は、時刻t8において、Pdelay_Respメッセージを受信する。Client装置は、Transparent Clock4からのPdelay_Respメッセージの受信時刻t8を記憶する。また、Client装置は、Pdelay_Resp_Follow_Upメッセージを受信する。Client装置は、Client装置によるPdelay_Reqメッセージの送信時刻t5、Pdelay_Respメッセージに含まれる、Transparent Clock4によるPdelay_Reqメッセージの受信時刻t6、Pdelay_Resp_Follow_Upメッセージに含まれる、Transparent Clock4によるPdelay_Respメッセージの送信時刻t7、および、Client装置によるPdelay_Respメッセージの受信時刻t8に基づき、Transparent Clock4とClient装置との間の伝送遅延時間pt2を、以下の式(3)により計算する。
pt2=((t6-t5)+(t8-t7))/2 式(3) The client device receives the Pdelay_Resp message at time t8. The client device stores the reception time t8 of the Pdelay_Resp message fromTransparent Clock 4. The client device also receives the Pdelay_Resp_Follow_Up message. The client device calculates the transmission delay time pt2 between Transparent Clock 4 and the client device using the following formula (3) based on the transmission time t5 of the Pdelay_Req message by the client device, the reception time t6 of the Pdelay_Req message by Transparent Clock 4 which is included in the Pdelay_Resp message, the transmission time t7 of the Pdelay_Resp message by Transparent Clock 4 which is included in the Pdelay_Resp_Follow_Up message, and the reception time t8 of the Pdelay_Resp message by the client device.
pt2=((t6-t5)+(t8-t7))/2 Formula (3)
pt2=((t6-t5)+(t8-t7))/2 式(3) The client device receives the Pdelay_Resp message at time t8. The client device stores the reception time t8 of the Pdelay_Resp message from
pt2=((t6-t5)+(t8-t7))/2 Formula (3)
伝送遅延時間pt1,pt2が計算された後、Master装置は、時刻T1において、SyncメッセージをTransparent Clock4に送信する(ステップS207)。Master装置は、SyncメッセージのCFに0を設定する。
After the transmission delay times pt1 and pt2 are calculated, the Master device sends a Sync message to Transparent Clock 4 at time T1 (step S207). The Master device sets CF of the Sync message to 0.
Transparent Clock4は、時刻dt1においてSyncメッセージを受信すると、時刻dt2において、受信したSyncメッセージをClient装置に送信する(ステップS208)。Transparent Clock4は、SyncメッセージのCFを0のままとする。また、Transparent Clock4は、Master装置からのSyncメッセージの受信時刻dt1と、Client装置へのSyncメッセージの送信時刻dt2とを記憶する。
When Transparent Clock 4 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S208). Transparent Clock 4 leaves the CF of the Sync message at 0. Transparent Clock 4 also stores the reception time dt1 of the Sync message from the Master device and the transmission time dt2 of the Sync message to the Client device.
Client装置は、時刻T2において、Transparent Clock4から送信されたSyncメッセージを受信する。
At time T2, the client device receives the Sync message sent from Transparent Clock 4.
Master装置は、Syncメッセージの送信後、Follow_UpメッセージをTransparent Clock4に送信する(ステップS209)。Master装置は、Transparent Clock4へのSyncメッセージの送信時刻T1をFollow_Upメッセージに含める。また、Master装置は、Follow_UpメッセージのCFに0を設定する。
After sending the Sync message, the Master device sends a Follow_Up message to Transparent Clock 4 (step S209). The Master device includes in the Follow_Up message the sending time T1 of the Sync message to Transparent Clock 4. The Master device also sets CF of the Follow_Up message to 0.
Transparent Clock4は、Follow_Upメッセージを受信すると、受信したFollow_UpメッセージをClient装置に送信する(ステップS210)。Transparent Clock4は、Follow_UpメッセージのCFに、Master装置とTransparent Clock4との間の伝送遅延時間pt1と、Transparent Clock4におけるSyncメッセージの処理時間とを加算した値(=pt1+(dt2―dt1))を設定する。
When Transparent Clock 4 receives the Follow_Up message, it transmits the received Follow_Up message to the Client device (step S210). Transparent Clock 4 sets the CF of the Follow_Up message to a value obtained by adding the transmission delay time pt1 between the Master device and Transparent Clock 4 and the processing time of the Sync message in Transparent Clock 4 (=pt1 + (dt2 - dt1)).
Client装置は、Follow_Upメッセージに含まれる、Master装置によるSyncメッセージの送信時刻T1と、Transparent Clock4とClient装置との間の伝送遅延時間pt2と、Follow_UpメッセージのCFに設定された、Master装置とTransparent Clock4との間の伝送遅延時間pt1と、Transparent Clock4におけるSyncメッセージの処理時間とを加算した値(=pt1+(dt2―dt1))と、に基づき、Client装置におけるSyncメッセージの受信時刻T2を、以下の式(4)により計算する。
T2=T1+pt1+(dt2-dt1)+pt2 式(4) The client device calculates the reception time T2 of the Sync message at the client device using the following equation (4) based on the transmission time T1 of the Sync message by the Master device, which is included in the Follow_Up message, the transmission delay time pt2 between theTransparent Clock 4 and the client device, and the transmission delay time pt1 between the Master device and the Transparent Clock 4, which is set in the CF of the Follow_Up message, plus the processing time of the Sync message at the Transparent Clock 4 (=pt1 + (dt2 - dt1)).
T2=T1+pt1+(dt2-dt1)+pt2 Formula (4)
T2=T1+pt1+(dt2-dt1)+pt2 式(4) The client device calculates the reception time T2 of the Sync message at the client device using the following equation (4) based on the transmission time T1 of the Sync message by the Master device, which is included in the Follow_Up message, the transmission delay time pt2 between the
T2=T1+pt1+(dt2-dt1)+pt2 Formula (4)
Client装置は、計算したSyncメッセージの受信時刻T2にClient装置の装置内時刻を同期させる。こうすることで、Client装置の装置内時刻をMaster装置の装置内時刻に同期させることができる。
The client device synchronizes its internal time with the calculated reception time T2 of the Sync message. This allows the client device's internal time to be synchronized with the master device's internal time.
なお、図6においては2ステップ方式を用いた場合について説明したが、1ステップ方式の場合には、Follow_UpメッセージおよびPdelay_Resp_Follow_Upメッセージは使用されない。この場合、Follow_Upメッセージに含まれていた、Master装置によるSyncメッセージの送信時刻T1は、Syncメッセージに含めればよい。また、SyncメッセージのCFには、Master装置とTransparent Clock4との間の伝送遅延時間pt1と、Transparent Clock4におけるSyncメッセージの処理時間(=dt2-dt1)とを加算した値(=pt1+(dt2-dt1))が設定されればよい。また、Pdelay_Resp_Follow_Upメッセージに含まれていた、Master装置によるPdelay_Respメッセージの送信時刻t3およびTransparent Clock4によるPdelay_Respメッセージの送信時刻t7は、Pdelay_RespメッセージのCFに設定されればよい。
Note that while Figure 6 illustrates the case where the two-step method is used, the Follow_Up message and the Pdelay_Resp_Follow_Up message are not used in the case of the one-step method. In this case, the transmission time T1 of the Sync message by the Master device, which was included in the Follow_Up message, can be included in the Sync message. The CF of the Sync message can be set to the sum (pt1+(dt2-dt1)) of the transmission delay time pt1 between the Master device and Transparent Clock 4 and the processing time of the Sync message in Transparent Clock 4 (dt2-dt1). The transmission time t3 of the Pdelay_Resp message by the Master device and the transmission time t7 of the Pdelay_Resp message by Transparent Clock 4, which were included in the Pdelay_Resp_Follow_Up message, can be set in the CF of the Pdelay_Resp message.
次に、本実施形態に係る転送装置100について説明する。本実施形態に係る転送装置100は、図1に示すように、Master装置であるGrand Master Clock1(上位装置)と、Client装置2(下位装置)とが時刻同期を行う時刻同期システム10において、Grand Master Clock1とClient装置2の間でメッセージを転送するものである。本実施形態においては、Grand Master Clock1は、Peer to Peer方式によるメッセージの送受信により時刻同期を行い、Client装置2は、End to End方式によるメッセージの送受信により時刻同期を行うものとする。したがって、転送装置100は、Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する。
Next, the transfer device 100 according to this embodiment will be described. As shown in FIG. 1, the transfer device 100 according to this embodiment transfers messages between a Grand Master Clock 1 (higher-level device) which is a master device, and a Client device 2 (lower-level device) in a time synchronization system 10 in which the two perform time synchronization. In this embodiment, the Grand Master Clock 1 performs time synchronization by sending and receiving messages using the Peer to Peer method, and the Client device 2 performs time synchronization by sending and receiving messages using the End to End method. Thus, the transfer device 100 transfers messages between a higher-level device which performs time synchronization by sending and receiving messages using the Peer to Peer method, and a lower-level device which performs time synchronization by sending and receiving messages using the End to End method.
まず、本実施形態に係る転送装置100の動作について説明する。
First, the operation of the transfer device 100 according to this embodiment will be described.
図2は、本実施形態に係る転送装置100の動作の一例を示すシーケンス図であり、転送装置100による転送方法を説明するための図である。
FIG. 2 is a sequence diagram showing an example of the operation of the transfer device 100 according to this embodiment, and is a diagram for explaining the transfer method by the transfer device 100.
上述したように、本実施形態に係る転送装置100は、Peer to Peer方式によるメッセージの送受信により時刻同期を行うMaster装置(Grand Master Clock1)と、End to End方式によるメッセージの送受信により時刻同期を行うClient装置(Client装置2)との間で、メッセージを転送する。また、上述したように、PTPの時刻配信方法には、2ステップ方式と、1ステップ方式という2つの方式がある。図2においては、2ステップ方式を用いた場合について説明する。
As described above, the transfer device 100 according to this embodiment transfers messages between a Master device (Grand Master Clock 1) that performs time synchronization by sending and receiving messages using the Peer to Peer method, and a Client device (Client device 2) that performs time synchronization by sending and receiving messages using the End to End method. As described above, there are two methods for distributing time in PTP: the two-step method and the one-step method. Figure 2 describes the case where the two-step method is used.
転送装置100は、時刻t1において、Pdelay_ReqメッセージをMaster装置に送信する(ステップS301)。転送装置100は、Pdelay_ReqメッセージのCFに0を設定する。また、Transparent Clock4は、Master装置へのPdelay_Reqメッセージの送信時刻t1を記憶する。
At time t1, the transfer device 100 transmits a Pdelay_Req message to the master device (step S301). The transfer device 100 sets the CF of the Pdelay_Req message to 0. In addition, the Transparent Clock 4 stores the transmission time t1 of the Pdelay_Req message to the master device.
Master装置は、時刻t2において、Pdelay_Reqメッセージを受信する。Master装置は、転送装置100からのPdelay_Reqメッセージの受信時刻t2を記憶する。
The master device receives the Pdelay_Req message at time t2. The master device stores the time t2 at which the Pdelay_Req message was received from the transfer device 100.
Master装置は、Pdelay_Reqメッセージを受信すると、時刻t3において、Pdelay_Respメッセージを転送装置100に送信する(ステップS302)。Master装置は、転送装置100からのPdelay_Reqメッセージの受信時刻t2をPdelay_Respメッセージに含める。また、Master装置は、Pdelay_RespメッセージのCFに0を設定する。また、Master装置は、転送装置100へのPdelay_Respメッセージの送信時刻t3を記憶する。
When the master device receives the Pdelay_Req message, it transmits a Pdelay_Resp message to the transfer device 100 at time t3 (step S302). The master device includes the reception time t2 of the Pdelay_Req message from the transfer device 100 in the Pdelay_Resp message. The master device also sets the CF of the Pdelay_Resp message to 0. The master device also stores the transmission time t3 of the Pdelay_Resp message to the transfer device 100.
Master装置は、Pdelay_Respメッセージの送信後、Pdelay_Resp_Follow_Upメッセージを転送装置100に送信する(ステップS303)。Master装置は、転送装置100へのPdelay_Respメッセージの送信時刻t3をPdelay_Resp_Follow_Upメッセージに含める。また、Master装置は、Pdelay_Resp_Follow_UpメッセージのCFに0を設定する。
After sending the Pdelay_Resp message, the master device sends a Pdelay_Resp_Follow_Up message to the transfer device 100 (step S303). The master device includes in the Pdelay_Resp_Follow_Up message the sending time t3 of the Pdelay_Resp message to the transfer device 100. The master device also sets the CF of the Pdelay_Resp_Follow_Up message to 0.
転送装置100は、時刻t4において、Pdelay_Respメッセージを受信する。Transparent Clock4は、Master装置からのPdelay_Respメッセージの受信時刻t4を記憶する。また、転送装置100は、Pdelay_Resp_Follow_Upメッセージを受信する。転送装置100は、転送装置100によるPdelay_Reqメッセージの送信時刻t1、Pdelay_Respメッセージに含まれる、Master装置によるPdelay_Reqメッセージの受信時刻t2、Pdelay_Resp_Follow_Upメッセージに含まれる、Master装置によるPdelay_Respメッセージの送信時刻t3、および、転送装置100によるPdelay_Respメッセージの受信時刻t4に基づき、Master装置の装置内時刻と転送装置100の装置内時刻との差であるオフセットXを以下の式(5)により計算する。
オフセットX=((t2-t1)-(t4-t3))/2 式(5) Thetransfer device 100 receives a Pdelay_Resp message at time t4. The Transparent Clock 4 stores the reception time t4 of the Pdelay_Resp message from the master device. The transfer device 100 also receives a Pdelay_Resp_Follow_Up message. The transfer device 100 calculates an offset X, which is the difference between the device time of the master device and the device time of the transfer device 100, using the following formula (5) based on the transmission time t1 of the Pdelay_Req message by the transfer device 100, the reception time t2 of the Pdelay_Req message by the master device, which is included in the Pdelay_Resp message, the transmission time t3 of the Pdelay_Resp message by the master device, which is included in the Pdelay_Resp_Follow_Up message, and the reception time t4 of the Pdelay_Resp message by the transfer device 100.
Offset X = ((t2-t1)-(t4-t3))/2 Equation (5)
オフセットX=((t2-t1)-(t4-t3))/2 式(5) The
Offset X = ((t2-t1)-(t4-t3))/2 Equation (5)
時刻T1において、Master装置は、Syncメッセージを転送装置100に送信する(ステップS304)。Master装置は、SyncメッセージのCFに0を設定する。
At time T1, the master device transmits a Sync message to the transfer device 100 (step S304). The master device sets the CF of the Sync message to 0.
転送装置100は、時刻dt1においてSyncメッセージを受信すると、時刻dt2において、受信したSyncメッセージをClient装置に送信する(ステップS305)。
When the transfer device 100 receives the Sync message at time dt1, it transmits the received Sync message to the Client device at time dt2 (step S305).
Master装置は、Syncメッセージの送信後、Follow_Upメッセージを転送装置100に送信する(ステップS306)。Master装置は、転送装置100へのSyncメッセージの送信時刻T1をFollow_Upメッセージに含める。また、Master装置は、Follow_UpメッセージのCFに0を設定する。
After sending the Sync message, the master device sends a Follow_Up message to the transfer device 100 (step S306). The master device includes in the Follow_Up message the sending time T1 of the Sync message to the transfer device 100. The master device also sets CF of the Follow_Up message to 0.
転送装置100は、Follow_Upメッセージを受信すると、受信したFollow_UpメッセージをClient装置に送信する(ステップS307)。転送装置100は、Master装置によるSyncメッセージの送信時刻として、Master装置と同期した時刻T1’を計算する。具体的には、転送装置100は、以下の式(6)または式(7)により、時刻T1’を計算する。
T1’=T1+pt1+(dt2-dt1) 式(6)
T1’=dt2+オフセットX 式(7) When thetransfer device 100 receives the Follow_Up message, it transmits the received Follow_Up message to the client device (step S307). The transfer device 100 calculates time T1' synchronized with the master device as the transmission time of the Sync message by the master device. Specifically, the transfer device 100 calculates time T1' by the following formula (6) or formula (7).
T1'=T1+pt1+(dt2-dt1) Formula (6)
T1'=dt2+offsetX Equation (7)
T1’=T1+pt1+(dt2-dt1) 式(6)
T1’=dt2+オフセットX 式(7) When the
T1'=T1+pt1+(dt2-dt1) Formula (6)
T1'=dt2+offsetX Equation (7)
転送装置100は、Follow_UpメッセージのCFに、計算した時刻T1’を設定する。図6においては、Transparent Clock4は、Follow_UpメッセージのCFに、Master装置とTransparent Clock4との間の伝送遅延時間pt1と、Transparent Clock4におけるSyncメッセージの処理時間とを加算した値(=pt1+(dt2―dt1))を設定した。一方、本実施形態においては、転送装置100は、Follow_UpメッセージのCFに0を設定する。
The transfer device 100 sets the calculated time T1' to the CF of the Follow_Up message. In FIG. 6, Transparent Clock 4 sets the CF of the Follow_Up message to a value obtained by adding the transmission delay time pt1 between the Master device and Transparent Clock 4 and the processing time of the Sync message at Transparent Clock 4 (=pt1 + (dt2 - dt1)). On the other hand, in this embodiment, the transfer device 100 sets the CF of the Follow_Up message to 0.
Client装置は、時刻T2において、Syncメッセージを受信する。Client装置は、転送装置100からのSyncメッセージの受信時刻T2を記憶する。また、Client装置は、Follow_Upメッセージを受信する。
The client device receives the Sync message at time T2. The client device stores the time T2 at which the Sync message was received from the transfer device 100. The client device also receives a Follow_Up message.
Client装置は、SyncメッセージおよびFollow_Upメッセージを受信すると、時刻T3において、Delay_Reqメッセージを転送装置100に送信する(ステップS308)。Client装置は、転送装置100へのDelay_Reqメッセージの送信時刻T3をDelay_Reqメッセージに含める。また、Client装置は、Delay_ReqメッセージのCFに0を設定する。
When the client device receives the Sync message and the Follow_Up message, it transmits a Delay_Req message to the transfer device 100 at time T3 (step S308). The client device includes in the Delay_Req message the transmission time T3 of the Delay_Req message to the transfer device 100. The client device also sets CF of the Delay_Req message to 0.
転送装置100は、時刻dt3においてDelay_Reqメッセージを受信する。図6においては、Transparent Clock4は、受信したDelay_ReqメッセージをMaster装置に転送した。一方、本実施形態においては、転送装置100は、Delay_Reqメッセージを転送することなく終端する。
The transfer device 100 receives the Delay_Req message at time dt3. In FIG. 6, Transparent Clock 4 forwards the received Delay_Req message to the Master device. On the other hand, in this embodiment, the transfer device 100 terminates the Delay_Req message without forwarding it.
転送装置100は、Delay_Reqメッセージの受信時刻として、Master装置と同期した時刻T4’を計算する。具体的には、転送装置100は、以下の式(8)により、時刻T4’を計算する。
T4’=dt3+オフセットX 式(8) Thetransfer device 100 calculates the time T4' synchronized with the master device as the reception time of the Delay_Req message. Specifically, the transfer device 100 calculates the time T4' by the following formula (8).
T4' = dt3 + offset X Equation (8)
T4’=dt3+オフセットX 式(8) The
T4' = dt3 + offset X Equation (8)
転送装置100は、Delay_RespメッセージをClient装置に送信する(ステップS309)。転送装置100は、計算した時刻T4’をDelay_Respメッセージに含める。また、転送装置100は、Delay_RespメッセージのCFに0を設定する。
The transfer device 100 transmits a Delay_Resp message to the Client device (step S309). The transfer device 100 includes the calculated time T4' in the Delay_Resp message. The transfer device 100 also sets CF of the Delay_Resp message to 0.
Client装置は、Follow_Upメッセージに含まれる時刻T1’と、Delay_Respメッセージに含まれる時刻T4’と、Client装置によるSyncメッセージの受信時刻T2と、Client装置によるDelay_Reqメッセージの送信時刻T3とに基づき、Client装置の装置内時刻と転送装置100の装置内時刻との差であるオフセットYを以下の式(9)により計算する。
オフセットY=((T2-T1’)-(T4’-T3))/2 式(9) Based on the time T1' included in the Follow_Up message, the time T4' included in the Delay_Resp message, the time T2 at which the client device receives the Sync message, and the time T3 at which the client device sends the Delay_Req message, the client device calculates an offset Y, which is the difference between the client device's internal time and thetransfer device 100's internal time, using the following equation (9):
Offset Y = ((T2-T1')-(T4'-T3))/2 Equation (9)
オフセットY=((T2-T1’)-(T4’-T3))/2 式(9) Based on the time T1' included in the Follow_Up message, the time T4' included in the Delay_Resp message, the time T2 at which the client device receives the Sync message, and the time T3 at which the client device sends the Delay_Req message, the client device calculates an offset Y, which is the difference between the client device's internal time and the
Offset Y = ((T2-T1')-(T4'-T3))/2 Equation (9)
Client装置は、計算したオフセットYに基づき、自装置の装置内時刻を転送装置100の装置内時刻(すなわち、Master装置の装置内時刻)に同期させる。
The client device synchronizes its own internal time with the internal time of the transfer device 100 (i.e., the internal time of the master device) based on the calculated offset Y.
図2においては2ステップ方式を用いた場合について説明したが、1ステップ方式の場合には、Pdelay_Resp_Follow_UpメッセージおよびFollow_Upメッセージは使用されない。この場合、Pdelay_Resp_Follow_Upメッセージに含まれていた、Master装置によるPdelay_Respメッセージの送信時刻t3は、Pdelay_Respメッセージに含めればよい。また、Follow_Upメッセージに含まれていた時刻T1’は、Syncメッセージに含めればよい。
In Figure 2, the case where the two-step method is used is explained, but in the case of the one-step method, the Pdelay_Resp_Follow_Up message and the Follow_Up message are not used. In this case, the transmission time t3 of the Pdelay_Resp message by the Master device, which was included in the Pdelay_Resp_Follow_Up message, can be included in the Pdelay_Resp message. Also, the time T1' included in the Follow_Up message can be included in the Sync message.
上述した処理により、本実施形態に係る転送装置100による転送方法によれば、転送装置100とClient装置との間で仮想的にEnd to End方式によるメッセージの送受信を行うことで、使用するプロファイルの異なる装置間、特に、Peer to Peerを使用する上位装置と、End to Endを使用する下位装置との間で時刻同期を可能とすることができる。
By performing the above-described processing, the transfer method using the transfer device 100 according to this embodiment virtually transmits and receives messages between the transfer device 100 and a client device using the End to End method, thereby enabling time synchronization between devices using different profiles, in particular between a higher-level device using Peer to Peer and a lower-level device using End to End.
次に、本実施形態に係る転送装置100の構成について、図1を参照して説明する。なお、図1においては、上位装置がGrand Master Clock1であり、下位装置がClient装置2である例を示しているが、本開示はこれに限られるものではない。上位装置はマスター機能を備えた装置であり、下位装置はスレーブ機能を備えた装置であればよい。したがって、例えば、上位装置および下位装置がBoundary Clock3であってもよい。
Next, the configuration of the transfer device 100 according to this embodiment will be described with reference to FIG. 1. Note that FIG. 1 shows an example in which the higher-level device is Grand Master Clock 1 and the lower-level device is Client device 2, but the present disclosure is not limited to this. The higher-level device may be a device with a master function, and the lower-level device may be a device with a slave function. Thus, for example, the higher-level device and the lower-level device may be Boundary Clock 3.
図1に示すように、本実施形態に係る転送装置100は、パケット送受信部101,102と、Pdelay_Reqメッセージ処理部103と、Pdelay_Respメッセージ処理部104と、Pdelay_Resp_Follow_Upメッセージ処理部105と、オフセット計算部106と、Syncメッセージ処理部107と、同期時刻計算部108,111と、Follow_Upメッセージ処理部109と、Delay_Reqメッセージ処理部110と、Delay_Respメッセージ処理部112と、CF処理部113と、を備える。
As shown in FIG. 1, the transfer device 100 according to this embodiment includes packet transmission/ reception units 101, 102, a Pdelay_Req message processing unit 103, a Pdelay_Resp message processing unit 104, a Pdelay_Resp_Follow_Up message processing unit 105, an offset calculation unit 106, a Sync message processing unit 107, synchronization time calculation units 108, 111, a Follow_Up message processing unit 109, a Delay_Req message processing unit 110, a Delay_Resp message processing unit 112, and a CF processing unit 113.
パケット送受信部101は、上位装置であるGrand Master Clock1との間でPTPパケット(メッセージ)を送受信する。パケット送受信部102は、下位装置であるClient装置2との間でPTPパケット(メッセージ)の送受信を行う。
The packet transmission/reception unit 101 transmits and receives PTP packets (messages) with the Grand Master Clock 1, which is a higher-level device. The packet transmission/reception unit 102 transmits and receives PTP packets (messages) with the Client device 2, which is a lower-level device.
第1メッセージ処理部としてのPdelay_Reqメッセージ処理部103は、パケット送受信部101を介して、Pdelay_ReqメッセージをGrand Master Clock1に送信する。また、Pdelay_Reqメッセージ処理部103は、転送装置100によるPdelay_Reqメッセージの送信時刻t1を取得し、オフセット計算部106に出力する。
The Pdelay_Req message processing unit 103, which serves as the first message processing unit, transmits the Pdelay_Req message to the Grand Master Clock 1 via the packet transmitting/receiving unit 101. The Pdelay_Req message processing unit 103 also obtains the transmission time t1 of the Pdelay_Req message by the transfer device 100, and outputs this to the offset calculation unit 106.
第2メッセージ処理部としてのPdelay_Respメッセージ処理部104は、パケット送受信部101を介して、Grand Master Clock1から送信されてきたPdelay_Respメッセージを受信し、Pdelay_Respメッセージに含まれる、Grand Master Clock1によるPdelay_Reqメッセージの受信時刻t2を取得する。また、Pdelay_Respメッセージ処理部104は、転送装置100によるPdelay_Respメッセージの受信時刻t4を取得する。Pdelay_Respメッセージ処理部104は、取得した、Grand Master Clock1によるPdelay_Reqメッセージの受信時刻t2と、転送装置100によるPdelay_Respメッセージの受信時刻t4とをオフセット計算部106に出力する。
The Pdelay_Resp message processing unit 104, acting as the second message processing unit, receives the Pdelay_Resp message transmitted from Grand Master Clock 1 via the packet transmitting/receiving unit 101, and acquires the reception time t2 of the Pdelay_Req message by Grand Master Clock 1, which is included in the Pdelay_Resp message. The Pdelay_Resp message processing unit 104 also acquires the reception time t4 of the Pdelay_Resp message by the transfer device 100. The Pdelay_Resp message processing unit 104 outputs the acquired reception time t2 of the Pdelay_Req message by Grand Master Clock 1 and the reception time t4 of the Pdelay_Resp message by the transfer device 100 to the offset calculation unit 106.
第3メッセージ処理部としてのPdelay_Resp_Follow_Upメッセージ処理部105は、パケット送受信部101を介して、Grand Master Clock1から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、Pdelay_Resp_Follow_Upメッセージに含まれる、Grand Master Clock1によるPdelay_Respメッセージの送信時刻t3を取得する。Pdelay_Resp_Follow_Upメッセージ処理部105は、取得した、Grand Master Clock1によるPdelay_Respメッセージの送信時刻t3をオフセット計算部106に出力する。
The Pdelay_Resp_Follow_Up message processing unit 105, which serves as the third message processing unit, receives the Pdelay_Resp_Follow_Up message transmitted from Grand Master Clock 1 via the packet transmitting/receiving unit 101, and acquires the transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1, which is included in the Pdelay_Resp_Follow_Up message. The Pdelay_Resp_Follow_Up message processing unit 105 outputs the acquired transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1 to the offset calculation unit 106.
オフセット計算部106は、転送装置100によるPdelay_Reqメッセージの送信時刻t1と、Grand Master Clock1によるPdelay_Reqメッセージの受信時刻t2と、Grand Master Clock1によるPdelay_Respメッセージの送信時刻t3と、転送装置100によるPdelay_Respメッセージの受信時刻t4とに基づき、Grand Master Clock1の装置内時刻と転送装置100の装置内時刻との差であるオフセットXを上述した式(5)により計算する。オフセット計算部106は、オフセットXの計算結果を同期時刻計算部111に出力する。また、オフセット計算部106は、後述する時刻T1’の計算にオフセットXが用いられる場合には、オフセットXの計算結果を同期時刻計算部108に出力する。
The offset calculation unit 106 calculates the offset X, which is the difference between the device time of Grand Master Clock 1 and the device time of transfer device 100, using the above-mentioned formula (5) based on the transmission time t1 of the Pdelay_Req message by transfer device 100, the reception time t2 of the Pdelay_Req message by Grand Master Clock 1, the transmission time t3 of the Pdelay_Resp message by Grand Master Clock 1, and the reception time t4 of the Pdelay_Resp message by transfer device 100. The offset calculation unit 106 outputs the calculation result of offset X to the synchronization time calculation unit 111. Furthermore, when offset X is used in the calculation of time T1' described later, the offset calculation unit 106 outputs the calculation result of offset X to the synchronization time calculation unit 108.
第4メッセージ処理部としてのSyncメッセージ処理部107は、パケット送受信部101を介して、Grand Master Clock1から送信されてきたSyncメッセージを受信する。Syncメッセージ処理部107は、受信したSyncメッセージをCF処理部113に出力する。後述するように、CF処理部113に出力されたSyncメッセージは、CFに0が設定され、パケット送受信部102を介して、Client装置2に送信される。したがって、Syncメッセージ処理部107は、Grand Master Clock1から送信されてきたSyncメッセージを受信し、CF処理部113およびパケット送受信部102を介して、下位装置であるClient装置2に送信する。また、Syncメッセージ処理部107は、転送装置100によるSyncメッセージの送信時刻dt2を取得し、同期時刻計算部108に出力する。
The Sync message processing unit 107, which serves as the fourth message processing unit, receives the Sync message transmitted from the Grand Master Clock 1 via the packet transmission/reception unit 101. The Sync message processing unit 107 outputs the received Sync message to the CF processing unit 113. As described below, the Sync message output to the CF processing unit 113 has CF set to 0 and is transmitted to the Client device 2 via the packet transmission/reception unit 102. Therefore, the Sync message processing unit 107 receives the Sync message transmitted from the Grand Master Clock 1 and transmits it to the Client device 2, which is a lower-level device, via the CF processing unit 113 and the packet transmission/reception unit 102. The Sync message processing unit 107 also obtains the transmission time dt2 of the Sync message by the transfer device 100, and outputs it to the synchronization time calculation unit 108.
第1同期時刻計算部としての同期時刻計算部108は、Syncメッセージ処理部107から出力された、転送装置100によるSyncメッセージの送信時刻dt2に基づき、Grand Master Clock1によるSyncメッセージの送信時刻として、Grand Master Clock1と同期した時刻T1’を計算する。
The synchronization time calculation unit 108, which serves as the first synchronization time calculation unit, calculates the time T1' synchronized with Grand Master Clock 1 as the transmission time of the Sync message by Grand Master Clock 1 based on the transmission time dt2 of the Sync message by the transfer device 100 output from the Sync message processing unit 107.
同期時刻計算部108は、例えば、上述した式(6)により時刻T1’を計算してよい。すなわち、同期時刻計算部108は、転送装置100によるSyncメッセージの送信時刻dt2と、Grand Master Clock1と転送装置100との間の伝送遅延時間pt1と、転送装置100におけるSyncメッセージの処理時間(すなわち、転送装置100によるSyncメッセージの送信時刻dt2と、転送装置100によるSyncメッセージの受信時刻dt1との差)と、を加算して時刻T1’を計算してよい。この場合、同期時刻計算部108は、転送装置100によるPdelay_Reqメッセージの送信時刻t1と、Grand Master Clock1によるPdelay_Reqメッセージの受信時刻t2と、Grand Master Clock1によるPdelay_Respメッセージの送信時刻t3と、転送装置100によるPdelay_Respメッセージの受信時刻t4とに基づき、上述した式(2)により伝送遅延時間pt1を計算することができる。
The synchronization time calculation unit 108 may calculate the time T1', for example, using the above-mentioned formula (6). That is, the synchronization time calculation unit 108 may calculate the time T1' by adding the transmission time dt2 of the Sync message by the transfer device 100, the transmission delay time pt1 between the Grand Master Clock 1 and the transfer device 100, and the processing time of the Sync message in the transfer device 100 (i.e., the difference between the transmission time dt2 of the Sync message by the transfer device 100 and the reception time dt1 of the Sync message by the transfer device 100). In this case, the synchronization time calculation unit 108 can calculate the transmission delay time pt1 using the above-mentioned formula (2) based on the time t1 when the Pdelay_Req message is sent by the transfer device 100, the time t2 when the Pdelay_Req message is received by Grand Master Clock 1, the time t3 when the Pdelay_Resp message is sent by Grand Master Clock 1, and the time t4 when the Pdelay_Resp message is received by the transfer device 100.
また、同期時刻計算部108は、例えば、上述した式(7)により時刻T1’を計算してよい。すなわち、同期時刻計算部108は、転送装置100によるSyncメッセージの送信時刻dt2と、オフセットXと、を加算して時刻T1’を計算してよい。
The synchronization time calculation unit 108 may also calculate the time T1' using, for example, the above-mentioned formula (7). That is, the synchronization time calculation unit 108 may calculate the time T1' by adding the transmission time dt2 of the Sync message by the transfer device 100 and the offset X.
同期時刻計算部108は、計算した時刻T1’をFollow_Upメッセージ処理部109に出力する。
The synchronization time calculation unit 108 outputs the calculated time T1' to the Follow_Up message processing unit 109.
第5メッセージ処理部としてのFollow_Upメッセージ処理部109は、パケット送受信部101を介して、Grand Master Clock1から送信されてきたFollow_Upメッセージを受信する。Follow_Upメッセージ処理部109は、受信したFollow_Upメッセージに含まれる、Grand Master Clock1によるSyncメッセージの送信時刻T1を、時刻T1’に変更して、CF処理部113に出力する。CF処理部113に出力されたSyncメッセージは、CF処理部113によりCFに0が設定され、パケット送受信部102を介して、Client装置2に送信される。したがって、Follow_Upメッセージ処理部109は、Grand Master Clock1から送信されてきたFollow_Upメッセージを受信し、Follow_Upメッセージに含まれるGrand Master Clock1によるSyncメッセージの送信時刻T1を、時刻T1’に変更して、Client装置2に送信する。
The Follow_Up message processing unit 109, which serves as the fifth message processing unit, receives the Follow_Up message transmitted from Grand Master Clock 1 via the packet transmission/reception unit 101. The Follow_Up message processing unit 109 changes the transmission time T1 of the Sync message by Grand Master Clock 1, which is included in the received Follow_Up message, to time T1', and outputs the message to the CF processing unit 113. The Sync message output to the CF processing unit 113 has CF set to 0 by the CF processing unit 113, and is transmitted to the Client device 2 via the packet transmission/reception unit 102. Therefore, the Follow_Up message processing unit 109 receives the Follow_Up message transmitted from Grand Master Clock 1, changes the transmission time T1 of the Sync message by Grand Master Clock 1, which is included in the Follow_Up message, to time T1', and transmits the message to the Client device 2.
第6メッセージ処理部としてのDelay_Reqメッセージ処理部110は、パケット送受信部102を介して、Client装置2から送信されてきたDelay_Reqメッセージを受信する。Delay_Reqメッセージ処理部110は、Delay_Reqメッセージの受信時刻dt3を取得し、同期時刻計算部111に出力する。
The Delay_Req message processing unit 110, which serves as the sixth message processing unit, receives the Delay_Req message sent from the Client device 2 via the packet transmitting/receiving unit 102. The Delay_Req message processing unit 110 acquires the reception time dt3 of the Delay_Req message and outputs it to the synchronization time calculation unit 111.
第2同期時刻計算部としての同期時刻計算部111は、オフセット計算部106により計算されたオフセットXと、Delay_Reqメッセージ処理部110から出力された、転送装置100によるDelay_Reqメッセージの受信時刻dt3とに基づき、上述した式(8)により、Delay_Reqメッセージの受信時刻として、Grand Master Clock1と同期した時刻T4’を計算する。同期時刻計算部111は、時刻T4’の計算結果をDelay_Respメッセージ処理部112に出力する。
The synchronization time calculation unit 111, which serves as the second synchronization time calculation unit, calculates time T4' synchronized with Grand Master Clock 1 as the reception time of the Delay_Req message using the above-mentioned formula (8) based on the offset X calculated by the offset calculation unit 106 and the reception time dt3 of the Delay_Req message by the transfer device 100 output from the Delay_Req message processing unit 110. The synchronization time calculation unit 111 outputs the calculation result of time T4' to the Delay_Resp message processing unit 112.
第7メッセージ処理部としてのDelay_Respメッセージ処理部112は、同期時刻計算部111により計算された時刻T4’を含むDelay_RespメッセージをCF処理部113に出力する。CF処理部113に出力されたDelay_Respメッセージは、CF処理部113によりCFに0が設定され、パケット送受信部102を介して、Client装置2に送信される。したがって、Delay_Respメッセージ処理部112は、時刻T4’を含むDelay_Respメッセージを、下位装置であるClient装置2に送信する。
The Delay_Resp message processing unit 112, which serves as the seventh message processing unit, outputs a Delay_Resp message including the time T4' calculated by the synchronization time calculation unit 111 to the CF processing unit 113. The Delay_Resp message output to the CF processing unit 113 has CF set to 0 by the CF processing unit 113, and is transmitted to the Client device 2 via the packet transmission/reception unit 102. Therefore, the Delay_Resp message processing unit 112 transmits a Delay_Resp message including the time T4' to the Client device 2, which is a lower-level device.
上述したように、時刻同期のために送受信されるそれぞれのメッセージには、時刻補正に用いられる値が設定されるCFが含まれる。CF処理部113は、それぞれのメッセージに含まれるCFを0に設定する。本実施形態においては、CF処理部113は、Syncメッセージ、Follow_UpメッセージおよびDelay_RespメッセージのCFを0に設定する。
As described above, each message sent and received for time synchronization includes a CF in which a value used for time correction is set. The CF processing unit 113 sets the CF included in each message to 0. In this embodiment, the CF processing unit 113 sets the CF of the Sync message, Follow_Up message, and Delay_Resp message to 0.
図5を参照して説明したように、Transparent Clock4からClient装置に送信されるDelay_RespメッセージのCFには、Transparent Clock4におけるDelay_Reqメッセージの処理時間(=dt4-dt3)が設定される。また、図6を参照して説明したように、Transparent Clock4からClient装置に送信されるSyncメッセージのCFには0が設定され、Transparent Clock4からClient装置に送信されるFollow_UpメッセージのCFには、Master装置とTransparent Clock4との間の伝送遅延時間pt1と、Transparent Clock4におけるSyncメッセージの処理時間とを加算した値(=pt1+(dt2―dt1))が設定される。
As explained with reference to Figure 5, the CF of the Delay_Resp message sent from Transparent Clock 4 to the Client device is set to the processing time of the Delay_Req message at Transparent Clock 4 (= dt4 - dt3). Also, as explained with reference to Figure 6, the CF of the Sync message sent from Transparent Clock 4 to the Client device is set to 0, and the CF of the Follow_Up message sent from Transparent Clock 4 to the Client device is set to the sum of the transmission delay time pt1 between the Master device and Transparent Clock 4 and the processing time of the Sync message at Transparent Clock 4 (= pt1 + (dt2 - dt1)).
一方、本実施形態においては、図2を参照して説明した処理により、上述したメッセージのCFに設定された情報は不要である。CF処理部113によりメッセージのCFに0が設定されることで、Client装置2での処理に不要な情報が伝送されることを防ぐことができる。
On the other hand, in this embodiment, the information set in the CF of the above-mentioned message is unnecessary due to the processing described with reference to FIG. 2. The CF processing unit 113 sets the CF of the message to 0, thereby preventing the transmission of information unnecessary for processing in the client device 2.
上述した構成により、本実施形態に係る転送装置100によれば、転送装置100とClient装置との間で仮想的にEnd to End方式によるメッセージの送受信を行うことで、使用するプロファイルの異なる装置間、特に、Peer to Peerを使用する上位装置と、End to Endを使用する下位装置との間で時刻同期を可能とすることができる。
With the above-described configuration, the transfer device 100 according to this embodiment can virtually send and receive messages between the transfer device 100 and a client device using the End to End method, thereby enabling time synchronization between devices using different profiles, in particular between a higher-level device using Peer to Peer and a lower-level device using End to End.
次に、本実施形態に係る転送装置100のハードウェア構成について説明する。
Next, we will explain the hardware configuration of the transfer device 100 according to this embodiment.
図3は、本実施形態に係る転送装置100のハードウェア構成の一例を示す図である。図3においては、転送装置100がプログラム命令を実行可能なコンピュータにより構成される場合の、転送装置100のハードウェア構成の一例を示している。ここで、コンピュータは、汎用コンピュータ、専用コンピュータ、ワークステーション、PC(Personal computer)、電子ノートパッドなどであってもよい。プログラム命令は、必要なタスクを実行するためのプログラムコード、コードセグメントなどであってもよい。
FIG. 3 is a diagram showing an example of the hardware configuration of the transfer device 100 according to this embodiment. FIG. 3 shows an example of the hardware configuration of the transfer device 100 when the transfer device 100 is configured by a computer capable of executing program instructions. Here, the computer may be a general-purpose computer, a dedicated computer, a workstation, a PC (Personal computer), an electronic notepad, etc. The program instructions may be program code, code segments, etc. for performing the required tasks.
図3に示すように、転送装置100は、プロセッサ201、ROM(Read Only Memory)202、RAM(Random Access Memory)203、ストレージ204、入力部205、表示部206および通信インターフェース(I/F)207を有する。各構成は、バス209を介して相互に通信可能に接続されている。プロセッサ201は、具体的にはCPU(Central Processing Unit)、MPU(Micro Processing Unit)、GPU(Graphics Processing Unit)、DSP(Digital Signal Processor)、SoC(System on a Chip)などであり、同種または異種の複数のプロセッサにより構成されてもよい。
As shown in FIG. 3, the transfer device 100 has a processor 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 203, storage 204, an input unit 205, a display unit 206, and a communication interface (I/F) 207. Each component is connected to each other via a bus 209 so that they can communicate with each other. The processor 201 is specifically a CPU (Central Processing Unit), MPU (Micro Processing Unit), GPU (Graphics Processing Unit), DSP (Digital Signal Processor), SoC (System on a Chip), etc., and may be composed of multiple processors of the same or different types.
プロセッサ201は、各構成の制御および各種の演算処理を実行する制御部である。すなわち、プロセッサ201は、ROM202またはストレージ204からプログラムを読み出し、RAM203を作業領域としてプログラムを実行する。プロセッサ201は、ROM202あるいはストレージ204に記憶されているプログラムに従って、上記各構成の制御および各種の演算処理を行う。本実施形態では、ROM202またはストレージ204には、コンピュータを本開示に係る転送装置100として動作させるためのプログラムが格納されている。当該プログラムがプロセッサ201により読み出されて実行されることで、転送装置100の各構成、例えば、Pdelay_Reqメッセージ処理部103、Pdelay_Respメッセージ処理部104、Pdelay_Resp_Follow_Upメッセージ処理部105、オフセット計算部106、Syncメッセージ処理部107、同期時刻計算部108,111、Follow_Upメッセージ処理部109、Delay_Reqメッセージ処理部110、Delay_Respメッセージ処理部112およびCF処理部113が実現される。
Processor 201 is a control unit that controls each component and executes various types of arithmetic processing. That is, processor 201 reads a program from ROM 202 or storage 204, and executes the program using RAM 203 as a working area. Processor 201 controls each of the above components and executes various types of arithmetic processing according to the program stored in ROM 202 or storage 204. In this embodiment, ROM 202 or storage 204 stores a program for operating a computer as transfer device 100 according to the present disclosure. When the program is read and executed by the processor 201, each component of the transfer device 100, such as the Pdelay_Req message processing unit 103, the Pdelay_Resp message processing unit 104, the Pdelay_Resp_Follow_Up message processing unit 105, the offset calculation unit 106, the Sync message processing unit 107, the synchronization time calculation units 108 and 111, the Follow_Up message processing unit 109, the Delay_Req message processing unit 110, the Delay_Resp message processing unit 112, and the CF processing unit 113, are realized.
プログラムは、CD-ROM(Compact Disk Read Only Memory)、DVD-ROM(Digital Versatile Disk Read Only Memory)、USB(Universal Serial Bus)メモリなどの非一時的(non-transitory)記憶媒体に記憶された形態で提供されてもよい。また、プログラムは、ネットワークを介して提供される形態としてもよい。
The program may be provided in a form stored on a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be provided via a network.
ROM202は、各種プログラムおよび各種データを格納する。RAM203は、作業領域として一時的にプログラムまたはデータを記憶する。ストレージ204は、HDD(Hard Disk Drive)またはSSD(Solid State Drive)により構成され、オペレーティングシステムを含む各種プログラムおよび各種データを格納する。
ROM 202 stores various programs and data. RAM 203 temporarily stores programs or data as a working area. Storage 204 is composed of a HDD (Hard Disk Drive) or SSD (Solid State Drive), and stores various programs and data including the operating system.
入力部205は、マウスなどのポインティングデバイス、およびキーボードを含み、各種の入力を行うために使用される。
The input unit 205 includes a pointing device such as a mouse and a keyboard, and is used to perform various input operations.
表示部206は、例えば、液晶ディスプレイであり、各種の情報を表示する。表示部206は、タッチパネル方式を採用して、入力部205として機能してもよい。
The display unit 206 is, for example, a liquid crystal display, and displays various information. The display unit 206 may also function as the input unit 205 by adopting a touch panel system.
通信インターフェース207は、他の装置(例えば、Grand Master Clock1およびClient装置2)と通信するためのインターフェースであり、例えば、LAN用のインターフェースである。パケット送受信部101,102は、例えば、通信インターフェース207により構成される。
The communication interface 207 is an interface for communicating with other devices (e.g., the Grand Master Clock 1 and the Client device 2), and is, for example, an interface for a LAN. The packet transmission/ reception units 101 and 102 are, for example, configured with the communication interface 207.
上述した転送装置100の各部として機能させるためにコンピュータを好適に用いることが可能である。そのようなコンピュータは、転送装置100の各部の機能を実現する処理内容を記述したプログラムを該コンピュータの記憶部に格納しておき、該コンピュータのプロセッサによってこのプログラムを読み出して実行させることで実現することができる。すなわち、当該プログラムは、コンピュータを、上述した転送装置100として機能させることができる。また、当該プログラムを非一時的記憶媒体に記憶することも可能である。また、当該プログラムを、ネットワークを介して提供することも可能である。
A computer can be suitably used to function as each part of the transfer device 100 described above. Such a computer can be realized by storing a program describing the processing contents for realizing the functions of each part of the transfer device 100 in the memory of the computer, and having the processor of the computer read and execute this program. In other words, the program can cause the computer to function as the transfer device 100 described above. The program can also be stored in a non-transitory storage medium. The program can also be provided via a network.
以上の実施形態に関し、更に以下の付記を開示する。
The following notes are further provided with respect to the above embodiment.
[付記項1]
Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置であって、
制御部を備え、
前記制御部は、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得し、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得し、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得し、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算し、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得し、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算し、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信し、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得し、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算し、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する、転送装置。 [Additional Note 1]
A transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner,
A control unit is provided,
The control unit is
Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message;
receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message;
receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
calculating an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
Receive a Sync message transmitted from the upper device and transmit it to the lower device, and obtain a transmission time dt2 of the Sync message by the transfer device;
Calculate a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
receiving a Follow_Up message transmitted from the higher-level device, changing the transmission time T1 of the Sync message by the higher-level device contained in the Follow_Up message to the time T1', and transmitting the changed message to the lower-level device;
Receive a Delay_Req message transmitted from the lower device, and obtain a reception time dt3 of the Delay_Req message;
Calculating a time T4' synchronized with the higher-level device as the reception time of the Delay_Req message based on the offset and the reception time dt3;
The transfer device transmits a Delay_Resp message including the time T4' to the lower device.
Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置であって、
制御部を備え、
前記制御部は、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得し、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得し、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得し、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算し、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得し、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算し、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信し、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得し、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算し、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する、転送装置。 [Additional Note 1]
A transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner,
A control unit is provided,
The control unit is
Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message;
receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message;
receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
calculating an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
Receive a Sync message transmitted from the upper device and transmit it to the lower device, and obtain a transmission time dt2 of the Sync message by the transfer device;
Calculate a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
receiving a Follow_Up message transmitted from the higher-level device, changing the transmission time T1 of the Sync message by the higher-level device contained in the Follow_Up message to the time T1', and transmitting the changed message to the lower-level device;
Receive a Delay_Req message transmitted from the lower device, and obtain a reception time dt3 of the Delay_Req message;
Calculating a time T4' synchronized with the higher-level device as the reception time of the Delay_Req message based on the offset and the reception time dt3;
The transfer device transmits a Delay_Resp message including the time T4' to the lower device.
[付記項2]
付記項1に記載の転送装置において、
前記制御部は、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置と前記転送装置との間の伝送遅延時間pt1を計算し、前記送信時刻T1と、前記伝送遅延時間pt1と、前記送信時刻dt2と前記転送装置による前記Syncメッセージの送信時刻dt1との差と、を加算して前記時刻T1’を計算する、転送装置。 [Additional Note 2]
In the transfer device according to claim 1,
The control unit calculates a transmission delay time pt1 between the higher-level device and the transfer device based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4, and calculates the time T1' by adding the sending time T1, the transmission delay time pt1, and the difference between the sending time dt2 and the sending time dt1 of the Sync message by the transfer device.
付記項1に記載の転送装置において、
前記制御部は、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置と前記転送装置との間の伝送遅延時間pt1を計算し、前記送信時刻T1と、前記伝送遅延時間pt1と、前記送信時刻dt2と前記転送装置による前記Syncメッセージの送信時刻dt1との差と、を加算して前記時刻T1’を計算する、転送装置。 [Additional Note 2]
In the transfer device according to claim 1,
The control unit calculates a transmission delay time pt1 between the higher-level device and the transfer device based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4, and calculates the time T1' by adding the sending time T1, the transmission delay time pt1, and the difference between the sending time dt2 and the sending time dt1 of the Sync message by the transfer device.
[付記項3]
付記項1に記載の転送装置において、
前記制御部は、前記送信時刻dt2と、前記オフセットと、を加算して前記時刻T1’を計算する、転送装置。 [Additional Note 3]
In the transfer device according to claim 1,
The control unit calculates the time T1' by adding the transmission time dt2 and the offset.
付記項1に記載の転送装置において、
前記制御部は、前記送信時刻dt2と、前記オフセットと、を加算して前記時刻T1’を計算する、転送装置。 [Additional Note 3]
In the transfer device according to claim 1,
The control unit calculates the time T1' by adding the transmission time dt2 and the offset.
[付記項4]
付記項1から3のいずれか一項に記載の転送装置において、
前記それぞれのメッセージには、時刻補正に用いられる値が設定されるcorrectionField(CF)が含まれ、
前記制御部は、それぞれのメッセージに含まれる前記CFに0を設定する、転送装置。 [Additional Item 4]
In the transfer device according to any one of claims 1 to 3,
Each of the messages includes a correctionField (CF) in which a value used for time correction is set,
The control unit sets the CF included in each message to 0.
付記項1から3のいずれか一項に記載の転送装置において、
前記それぞれのメッセージには、時刻補正に用いられる値が設定されるcorrectionField(CF)が含まれ、
前記制御部は、それぞれのメッセージに含まれる前記CFに0を設定する、転送装置。 [Additional Item 4]
In the transfer device according to any one of claims 1 to 3,
Each of the messages includes a correctionField (CF) in which a value used for time correction is set,
The control unit sets the CF included in each message to 0.
[付記項5]
Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置による転送方法であって、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得し、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得し、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得し、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算し、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得し、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算し、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信し、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得し、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算し、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する、転送方法。 [Additional Note 5]
A method for transferring messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner, comprising:
Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message;
receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message;
receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
calculating an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
Receive a Sync message transmitted from the upper device and transmit it to the lower device, and obtain a transmission time dt2 of the Sync message by the transfer device;
Calculate a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
receiving a Follow_Up message transmitted from the higher-level device, changing the transmission time T1 of the Sync message by the higher-level device contained in the Follow_Up message to the time T1', and transmitting the changed message to the lower-level device;
Receive a Delay_Req message transmitted from the lower device, and obtain a reception time dt3 of the Delay_Req message;
Calculating a time T4' synchronized with the higher-level device as the reception time of the Delay_Req message based on the offset and the reception time dt3;
A transfer method comprising: transmitting a Delay_Resp message including the time T4' to the lower device.
Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置による転送方法であって、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得し、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得し、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得し、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算し、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得し、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算し、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信し、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得し、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算し、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する、転送方法。 [Additional Note 5]
A method for transferring messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner, comprising:
Transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message;
receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message;
receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
calculating an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
Receive a Sync message transmitted from the upper device and transmit it to the lower device, and obtain a transmission time dt2 of the Sync message by the transfer device;
Calculate a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
receiving a Follow_Up message transmitted from the higher-level device, changing the transmission time T1 of the Sync message by the higher-level device contained in the Follow_Up message to the time T1', and transmitting the changed message to the lower-level device;
Receive a Delay_Req message transmitted from the lower device, and obtain a reception time dt3 of the Delay_Req message;
Calculating a time T4' synchronized with the higher-level device as the reception time of the Delay_Req message based on the offset and the reception time dt3;
A transfer method comprising: transmitting a Delay_Resp message including the time T4' to the lower device.
[付記項6]
コンピュータによって実行可能なプログラムを記憶した非一時的記憶媒体であって、前記コンピュータを、付記項1から4のいずれか一項に記載の転送装置として動作させる、プログラムを記憶した非一時的記憶媒体。 [Additional Note 6]
A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to operate as a transfer device according to any one of claims 1 to 4.
コンピュータによって実行可能なプログラムを記憶した非一時的記憶媒体であって、前記コンピュータを、付記項1から4のいずれか一項に記載の転送装置として動作させる、プログラムを記憶した非一時的記憶媒体。 [Additional Note 6]
A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to operate as a transfer device according to any one of claims 1 to 4.
上述の実施形態は代表的な例として説明したが、本開示の趣旨および範囲内で、多くの変更および置換ができることは当業者に明らかである。したがって、本発明は、上述の実施形態によって制限するものと解するべきではなく、請求の範囲から逸脱することなく、種々の変形または変更が可能である。例えば、実施形態の構成図に記載の複数の構成ブロックを1つに組み合わせたり、あるいは1つの構成ブロックを分割したりすることが可能である。
The above-mentioned embodiments have been described as representative examples, but it will be apparent to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiments, and various modifications or changes are possible without departing from the scope of the claims. For example, it is possible to combine multiple configuration blocks shown in the configuration diagram of the embodiment into one, or to divide one configuration block.
1 Grand Master Clock(上位装置)
2 Client装置(下位装置)
3 Boundary Clock
4 Transparent Clock
10,10A 時刻同期システム
100 転送装置
101,102 パケット送受信部
103 Pdelay_Reqメッセージ処理部(第1メッセージ処理部)
104 Pdelay_Respメッセージ処理部(第2メッセージ処理部)
105 Pdelay_Resp_Follow_Upメッセージ処理部(第3メッセージ処理部)
106 オフセット計算部
107 Syncメッセージ処理部(第4メッセージ処理部)
108 同期時刻計算部(第1同期時刻計算部)
109 Follow_Upメッセージ処理部(第5メッセージ処理部)
110 Delay_Reqメッセージ処理部(第6メッセージ処理部)
111 同期時刻計算部(第2同期時刻計算部)
112 Delay_Respメッセージ処理部(第7メッセージ処理部)
113 CF処理部
201 プロセッサ
202 ROM
203 RAM
204 ストレージ
205 入力部
206 表示部
207 通信I/F
209 パス 1. Grand Master Clock (higher-level device)
2 Client device (lower device)
3. Boundary Clock
4. Transparent Clock
10, 10ATime synchronization system 100 Transfer device 101, 102 Packet transmission/reception unit 103 Pdelay_Req message processing unit (first message processing unit)
104 Pdelay_Resp message processing unit (second message processing unit)
105 Pdelay_Resp_Follow_Up message processing unit (third message processing unit)
106 Offsetcalculation unit 107 Sync message processing unit (fourth message processing unit)
108 Synchronization time calculation unit (first synchronization time calculation unit)
109 Follow_Up message processing unit (fifth message processing unit)
110 Delay_Req message processing unit (sixth message processing unit)
111 Synchronization time calculation unit (second synchronization time calculation unit)
112 Delay_Resp message processing unit (seventh message processing unit)
113CF processing unit 201 Processor 202 ROM
203 RAM
204 Storage 205 Input unit 206 Display unit 207 Communication I/F
209 Pass
2 Client装置(下位装置)
3 Boundary Clock
4 Transparent Clock
10,10A 時刻同期システム
100 転送装置
101,102 パケット送受信部
103 Pdelay_Reqメッセージ処理部(第1メッセージ処理部)
104 Pdelay_Respメッセージ処理部(第2メッセージ処理部)
105 Pdelay_Resp_Follow_Upメッセージ処理部(第3メッセージ処理部)
106 オフセット計算部
107 Syncメッセージ処理部(第4メッセージ処理部)
108 同期時刻計算部(第1同期時刻計算部)
109 Follow_Upメッセージ処理部(第5メッセージ処理部)
110 Delay_Reqメッセージ処理部(第6メッセージ処理部)
111 同期時刻計算部(第2同期時刻計算部)
112 Delay_Respメッセージ処理部(第7メッセージ処理部)
113 CF処理部
201 プロセッサ
202 ROM
203 RAM
204 ストレージ
205 入力部
206 表示部
207 通信I/F
209 パス 1. Grand Master Clock (higher-level device)
2 Client device (lower device)
3. Boundary Clock
4. Transparent Clock
10, 10A
104 Pdelay_Resp message processing unit (second message processing unit)
105 Pdelay_Resp_Follow_Up message processing unit (third message processing unit)
106 Offset
108 Synchronization time calculation unit (first synchronization time calculation unit)
109 Follow_Up message processing unit (fifth message processing unit)
110 Delay_Req message processing unit (sixth message processing unit)
111 Synchronization time calculation unit (second synchronization time calculation unit)
112 Delay_Resp message processing unit (seventh message processing unit)
113
203 RAM
209 Pass
Claims (6)
- Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置であって、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得する第1メッセージ処理部と、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得する第2メッセージ処理部と、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得する第3メッセージ処理部と、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算するオフセット計算部と、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得する第4メッセージ処理部と、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算する第1同期時刻計算部と、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信する第5メッセージ処理部と、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得する第6メッセージ処理部と、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算する第2同期時刻計算部と、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信する第7メッセージ処理部と、を備える転送装置。 A transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner,
a first message processor that transmits a Pdelay_Req message to the higher-level device and acquires a transmission time t1 of the Pdelay_Req message;
a second message processor that receives a Pdelay_Resp message transmitted from the higher-level device, acquires a time t2 of the Pdelay_Req message received by the higher-level device, and acquires a time t4 of the Pdelay_Resp message, the time being included in the Pdelay_Resp message;
a third message processor that receives a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and acquires a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
an offset calculation unit that calculates an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
a fourth message processing unit that receives a Sync message transmitted from the higher-level device, transmits the Sync message to the lower-level device, and acquires a transmission time dt2 of the Sync message by the transfer device;
a first synchronization time calculation unit that calculates a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
a fifth message processor that receives a Follow_Up message transmitted from the higher-level device, changes a transmission time T1 of the Sync message by the higher-level device included in the Follow_Up message to the time T1', and transmits the changed message to the lower-level device;
a sixth message processor that receives a Delay_Req message transmitted from the lower device and acquires a reception time dt3 of the Delay_Req message;
a second synchronization time calculation unit that calculates a time T4′ synchronized with the higher-level device as a reception time of the Delay_Req message based on the offset and the reception time dt3;
a seventh message processing unit that transmits a Delay_Resp message including the time T4' to the lower device. - 請求項1に記載の転送装置において、
前記第1同期時刻計算部は、前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置と前記転送装置との間の伝送遅延時間pt1を計算し、前記送信時刻T1と、前記伝送遅延時間pt1と、前記送信時刻dt2と前記転送装置による前記Syncメッセージの送信時刻dt1との差と、を加算して前記時刻T1’を計算する、転送装置。 2. The transfer device according to claim 1,
The first synchronization time calculation unit calculates a transmission delay time pt1 between the higher-level device and the transfer device based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4, and calculates the time T1' by adding the sending time T1, the transmission delay time pt1, and the difference between the sending time dt2 and the sending time dt1 of the Sync message by the transfer device. - 請求項1に記載の転送装置において、
前記第1同期時刻計算部は、前記送信時刻dt2と、前記オフセットと、を加算して前記時刻T1’を計算する、転送装置。 2. The transfer device according to claim 1,
The first synchronization time calculation unit calculates the time T1' by adding the transmission time dt2 and the offset. - 請求項1に記載の転送装置において、
前記それぞれのメッセージには、時刻補正に用いられる値が設定されるcorrectionField(CF)が含まれ、
前記それぞれのメッセージに含まれる前記CFに0を設定するCF処理部をさらに備える転送装置。 2. The transfer device according to claim 1,
Each of the messages includes a correctionField (CF) in which a value used for time correction is set,
The transfer device further comprises a CF processing unit that sets the CF included in each of the messages to 0. - Peer to Peer方式によるメッセージの送受信により時刻同期を行う上位装置と、End to End方式によるメッセージの送受信により時刻同期を行う下位装置と、の間でメッセージを転送する転送装置による転送方法であって、
Pdelay_Reqメッセージを前記上位装置に送信し、前記Pdelay_Reqメッセージの送信時刻t1を取得するステップと、
前記上位装置から送信されてきたPdelay_Respメッセージを受信し、前記Pdelay_Respメッセージに含まれる、前記上位装置による前記Pdelay_Reqメッセージの受信時刻t2を取得し、前記Pdelay_Respメッセージの受信時刻t4を取得するステップと、
前記上位装置から送信されてきたPdelay_Resp_Follow_Upメッセージを受信し、前記Pdelay_Resp_Follow_Upに含まれる、前記上位装置による前記Pdelay_Respメッセージの送信時刻t3を取得するステップと、
前記送信時刻t1と、前記受信時刻t2と、前記送信時刻t3と、前記受信時刻t4とに基づき、前記上位装置の装置内時刻と前記転送装置の装置内時刻との差であるオフセットを計算するステップと、
前記上位装置から送信されてきたSyncメッセージを受信して前記下位装置に送信し、前記転送装置による前記Syncメッセージの送信時刻dt2を取得するステップと、
前記送信時刻dt2に基づき、前記上位装置による前記Syncメッセージの送信時刻として、前記上位装置と同期した時刻T1’を計算するステップと、
前記上位装置から送信されてきたFollow_Upメッセージを受信し、前記Follow_Upメッセージに含まれる前記上位装置による前記Syncメッセージの送信時刻T1を、前記時刻T1’に変更して、前記下位装置に送信するステップと、
前記下位装置から送信されてきたDelay_Reqメッセージを受信し、前記Delay_Reqメッセージの受信時刻dt3を取得するステップと、
前記オフセットと、前記受信時刻dt3とに基づき、前記Delay_Reqメッセージの受信時刻として、前記上位装置と同期した時刻T4’を計算するステップと、
前記時刻T4’を含むDelay_Respメッセージを前記下位装置に送信するステップと、を含む転送方法。 A method for transferring messages between a higher-level device that performs time synchronization by transmitting and receiving messages in a Peer-to-Peer manner and a lower-level device that performs time synchronization by transmitting and receiving messages in an End-to-End manner, comprising:
transmitting a Pdelay_Req message to the higher-level device and acquiring a transmission time t1 of the Pdelay_Req message;
receiving a Pdelay_Resp message transmitted from the higher-level device, acquiring a time t2 of the Pdelay_Req message received by the higher-level device, the time t2 being included in the Pdelay_Resp message, and acquiring a time t4 of the Pdelay_Resp message received by the higher-level device;
receiving a Pdelay_Resp_Follow_Up message transmitted from the higher-level device, and acquiring a transmission time t3 of the Pdelay_Resp message by the higher-level device, the transmission time being included in the Pdelay_Resp_Follow_Up message;
calculating an offset, which is a difference between the device time of the higher-level device and the device time of the transfer device, based on the sending time t1, the receiving time t2, the sending time t3, and the receiving time t4;
receiving a Sync message transmitted from the upper device and transmitting it to the lower device, and acquiring a transmission time dt2 of the Sync message by the transfer device;
calculating a time T1' synchronized with the higher-level device as a transmission time of the Sync message by the higher-level device based on the transmission time dt2;
receiving a Follow_Up message transmitted from the higher-level device, changing the transmission time T1 of the Sync message by the higher-level device included in the Follow_Up message to the time T1', and transmitting the same to the lower-level device;
receiving a Delay_Req message transmitted from the lower device and acquiring a reception time dt3 of the Delay_Req message;
calculating a time T4' synchronized with the higher-level device as a reception time of the Delay_Req message based on the offset and the reception time dt3;
and transmitting a Delay_Resp message including the time T4' to the lower device. - コンピュータを、請求項1に記載の転送装置として動作させる、プログラム。 A program that causes a computer to operate as the transfer device described in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2023/010181 WO2024189860A1 (en) | 2023-03-15 | 2023-03-15 | Transfer device, transfer method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2023/010181 WO2024189860A1 (en) | 2023-03-15 | 2023-03-15 | Transfer device, transfer method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024189860A1 true WO2024189860A1 (en) | 2024-09-19 |
Family
ID=92754924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2023/010181 WO2024189860A1 (en) | 2023-03-15 | 2023-03-15 | Transfer device, transfer method, and program |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2024189860A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011077558A1 (en) * | 2009-12-25 | 2011-06-30 | 株式会社東芝 | Communication apparatus and time synchronization system |
CN103378993A (en) * | 2012-04-20 | 2013-10-30 | 华东电网有限公司 | Slave clock monitoring method based on PTP |
JP2014116672A (en) * | 2012-12-06 | 2014-06-26 | Hitachi Ltd | Relay device and relay method |
-
2023
- 2023-03-15 WO PCT/JP2023/010181 patent/WO2024189860A1/en unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011077558A1 (en) * | 2009-12-25 | 2011-06-30 | 株式会社東芝 | Communication apparatus and time synchronization system |
CN103378993A (en) * | 2012-04-20 | 2013-10-30 | 华东电网有限公司 | Slave clock monitoring method based on PTP |
JP2014116672A (en) * | 2012-12-06 | 2014-06-26 | Hitachi Ltd | Relay device and relay method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8081663B2 (en) | Time synchronization method and relay apparatus | |
US20160170440A1 (en) | Method and devices for time transfer using end-to-end transparent clocks | |
US9621647B2 (en) | Peer-to-peer networking through universal port connections | |
KR20090032306A (en) | Time synchronization system and method on the network | |
WO2021077289A1 (en) | Synchronization method and device | |
WO2013051447A1 (en) | Time control device, time control method, and program | |
CN110800246A (en) | Communication system, master device and slave device | |
WO2024189860A1 (en) | Transfer device, transfer method, and program | |
WO2024189862A1 (en) | Transfer device, transfer method, and program | |
WO2016092243A1 (en) | Method and devices for time transfer using end to end transparent clocks | |
JP7545099B2 (en) | Measuring instrument, measuring method and time synchronization system | |
EP3518456A1 (en) | Wireless device, processing method for wireless device and program | |
WO2019235101A1 (en) | Time-adding method, time-adding device, and program | |
WO2025104815A1 (en) | Communication device, communication system, and communication method | |
JP7506351B2 (en) | Measuring instrument, measuring method and time synchronization system | |
US20240421930A1 (en) | Time synchronization device, time synchronization method, and program | |
WO2025104816A1 (en) | Communications device, communications system and communications method | |
WO2025104814A1 (en) | Communication device, communication system, and communication method | |
WO2023238203A1 (en) | Time synchronization device, time synchronization system, and time synchronization method | |
JP7610168B2 (en) | Time synchronization device, time synchronization method, and program | |
KR20220153158A (en) | Method for performing synchronization according to Precision Time Protocol (PTP) in ring topology network, and apparatus therefor | |
CN118466691B (en) | Clock synchronization method, device, equipment, medium and product | |
US11968638B2 (en) | Providing a clock value to a client device | |
JP7644393B2 (en) | Time synchronization device, time synchronization method, and program | |
WO2024166271A1 (en) | Determination device and determination method |
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: 23927479 Country of ref document: EP Kind code of ref document: A1 |