Transfer device, transfer method, and program
The transfer device and method synchronize time across PTP systems with different profiles by calculating message processing times and delays, addressing the challenge of profile incompatibility and reducing network redundancy.
Patent Information
- Application Number
- PCT/JP2023/010181
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-09-19
AI Technical Summary
Current Precision Time Protocol (PTP) systems struggle to synchronize time between devices using different profiles, specifically between those employing peer-to-peer and end-to-end methods, due to differences in delay measurement methods, leading to the need for separate time distribution networks and increased costs.
A transfer device and method that facilitate time synchronization by calculating and adjusting message processing times and delays between devices using peer-to-peer and end-to-end methods, allowing for synchronization across different profiles by processing PTP messages and calculating offsets to align internal clock times.
Enables time synchronization between devices with different profiles, reducing the need for separate networks and lowering costs by allowing seamless communication and clock alignment across various PTP configurations.
Smart Images

Figure JP2023010181_19092024_PF_FP_ABST
Abstract
Description
Transfer device, transfer method, and program
[0001] The present disclosure relates to a transfer device, a transfer method, and a program.
[0002] The Precision Time Protocol (PTP) defined in the IEEE-1588 standard is a protocol for synchronizing 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 are diagrams showing an example configuration of a time synchronization system 10A that uses PTP to synchronize the time of devices on a network.
[0003] As shown in FIGS. 4A and 4B, a time synchronization system 10A includes a Grand Master Clock 1 and a Client device 2.
[0004] The Grand Master Clock 1 includes a GNSS antenna 1a that receives signals (GNSS signals) from satellites of a 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 a reference time via a network.
[0005] The client device 2 has a slave function for synchronizing its internal time with the time distributed from a device having 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.
[0006] When synchronizing a Grand Master Clock 1, which serves as a time source, with a client device 2 used by a user, a relay device that relays signals may be provided 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 synchronize with the Grand Master Clock 1. Relay devices that can be used in PTP include a Boundary Clock 3 shown in Fig. 4A and a Transparent Clock 4 shown in Fig. 4B.
[0007] The Boundary Clock 3 shown in FIG. 4A functions as a slave device with a function to synchronize its own internal time with the time distributed from a higher-level device with a master function, and as a master device with a function to 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 slave device with a function to the Grand Master Clock 1, and as a master device with a function to the Client device 2. Specifically, the Boundary Clock 3 measures an offset, which is the difference between the internal time of the Grand Master Clock 1 (the higher-level device) 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 transmitting 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 also synchronizes the internal time of the Client device 2 with the internal time of its own device by transmitting and receiving PTP packets with the Client device 2.
[0008] 4B transfers PTP packets received from Grand Master Clock 1, a higher-level device, to Client device 3, a lower-level device, and transfers PTP packets received from Client device 3, a lower-level device, to Grand Master Clock 1, a higher-level device. 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.
[0009] IEEE Std 1588TM-2008 “IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems”
[0010] In PTP, different formats called profiles are defined for each field of use, which have different required parameters and time information formats, and time synchronization cannot be achieved between different profiles.One of the reasons why time synchronization cannot be achieved between different profiles is the difference in delay measurement methods.
[0011] There are two methods for measuring delay for the 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, a separate time distribution network must be built for each profile, resulting in high costs.
[0012] In view of the above-mentioned problems, the purpose of the present disclosure is to provide a transfer device, a transfer method, and a program that enable time synchronization between devices that use 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.
[0013] 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 processing unit that transmits a Pdelay_Req message to the upper device and acquires a transmission time t1 of the Pdelay_Req message; a second message processing unit that receives a Pdelay_Resp message transmitted from the upper device and acquires a reception time t2 of the Pdelay_Req message by the upper device contained in the Pdelay_Resp message and acquires a reception time t4 of the Pdelay_Resp message; a third message processing unit that receives a Pdelay_Resp_Follow_Up message transmitted from the upper device and acquires a transmission time t3 of the Pdelay_Resp message by the upper device contained in the Pdelay_Resp_Follow_Up message; an offset calculation unit that calculates an offset that is a difference between the device internal time of the upper 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; a fourth message processing unit that transmits a Sync message to a lower device and acquires the transmission time dt2 of the Sync message by the transfer device; a first synchronization time calculation unit that calculates, based on the transmission time dt2, a time T1' synchronized with the upper device as the transmission time of the Sync message by the upper device; 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 acquires the reception time dt3 of the Delay_Req message; a second synchronization time calculation unit that calculates, based on the offset and the reception time dt3, a time T4' synchronized with the upper device as the reception time of the Delay_Req message; and a seventh message processing unit that transmits a Delay_Resp message including the time T4' to the lower device.
[0014] In order to solve the above problem, the transfer method according to the present disclosure is a transfer method for a host device that performs time synchronization by sending and receiving messages in a Peer to Peer manner, and an End toa transfer method by a transfer device for transferring messages between a higher-level device and a lower-level device that performs time synchronization by transmitting and receiving messages using an End-to-End method, the method comprising 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, the 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, the reception time t3 of the Pdelay_Resp message by the higher-level device; and 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 transmission time t1, the reception time t2, the transmission time t3, and the reception 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 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 included 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.
[0015] In order to solve the above problem, a program according to the present disclosure causes a computer to operate as the above-described transfer device.
[0016] The transfer device, transfer method, and program disclosed herein enable time synchronization between devices using different profiles, particularly 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.
[0017] 1 is a diagram illustrating an example of a configuration of a transfer device according to an embodiment of the present disclosure. FIG. 2 is a sequence diagram illustrating an example of an operation of the transfer device illustrated in FIG. 1. FIG. 3 is a sequence diagram illustrating an example of a hardware configuration of the transfer device illustrated in FIG. 1. FIG. 4 is a diagram illustrating an example of a time synchronization system. FIG. 5 is a diagram illustrating another example of a time synchronization system. FIG. 6 is a sequence diagram illustrating an example of an operation of a transparent clock when an end-to-end method is used. FIG. 7 is a sequence diagram illustrating an example of an operation of a transparent clock when a peer-to-peer method is used.
[0018] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0019] First, for comparison, the operation of Transparent Clock 4 shown in FIG. 4B will be described.
[0020] Figure 5 is a sequence diagram showing an example of the operation of the Transparent Clock 4 when a master device and a client device synchronize time by sending and receiving messages using the end-to-end method. The master device is a device equipped with a master function, such as the Grand Master Clock 1 shown in Figure 4B, and the client device is the client device 2, such as a wireless base station, shown in Figure 4B. There are two PTP time distribution methods: the two-step method and the one-step method. Figure 5 explains the case where the two-step method is used.
[0021] At time T1, the Master device transmits a Sync message to Transparent Clock 4 (step S101). Messages transmitted and received between devices in PTP include a field called a correction field (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 CF of the Sync message to 0.
[0022] When the 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). The Transparent Clock 4 leaves the CF of the Sync message at 0. The 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.
[0023] At time T2, the client device receives the Sync message sent from Transparent Clock 4. The client device stores the time T2 when the Sync message was received.
[0024] After transmitting the Sync message, the master device transmits a Follow_Up message to Transparent Clock 4 (step S103). The master device includes the transmission time T1 of the Sync message in the Follow_Up message. The master device also sets 0 to CF in the Follow_Up message.
[0025] When the Transparent Clock 4 receives the Follow_Up message, it transmits the received Follow_Up message to the Client device (step S104). The Transparent Clock 4 sets the processing time of the Sync message in the Transparent Clock 4 (=dt2-dt1) in the CF of the Follow_Up message.
[0026] Upon receiving the Sync message and the Follow_Up message, the client device 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.
[0027] When the 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). The Transparent Clock 4 leaves the CF of the Delay_Req message at 0. The Transparent Clock 4 also stores the time dt3 when the Delay_Req message was received from the client device and the time dt4 when the Delay_Req message was transmitted to the master device.
[0028] 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.
[0029] When the master device receives the Delay_Req message, it transmits 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 also sets CF of the Delay_Resp message to 0.
[0030] When the Transparent Clock 4 receives the Delay_Resp message, it transfers the received Delay_Resp message to the Client device (step S108).The Transparent Clock 4 sets the processing time of the Delay_Req message in the Transparent Clock 4 (=dt4-dt3) in the CF of the Delay_Resp message.
[0031] The client device calculates the 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): Offset = ((T2 - T1 - (dt2 - dt1)) - (T4 - T3 - (dt4 - dt3))) / 2 Formula (1) Based on the following: Time T1 when the master device sent the Sync message; Time T2 when the client device received the Sync message; Time T3 when the client device sent the Delay_Req message; Time T4 when the master device received the Delay_Resp message; the processing time of the Sync message in Transparent 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).
[0032] 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.
[0033] 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 Sync message transmission time T1 and the Sync message processing time (= dt2 - dt1) in Transparent Clock 4, which were included in the Follow_Up message, can be included in the Sync message.
[0034] 6 is a sequence diagram showing an example of the operation of the 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. In FIG. 6, a case where the two-step method is used will be described.
[0035] The transparent clock 4 transmits a Pdelay_Req message to the master device at time t1 (step S201). The transparent clock 4 sets CF of the Pdelay_Req message to 0. The transparent clock 4 also stores the time t1 at which the Pdelay_Req message was transmitted to the master device.
[0036] The Master device receives the Pdelay_Req message at time t2 and stores the time t2 at which the Master device receives the Pdelay_Req message from Transparent Clock 4.
[0037] Upon receiving the Pdelay_Req message, the master device transmits a Pdelay_Resp message to Transparent Clock 4 at time t3 (step S202). The master device includes the time t2 at which the Pdelay_Req message was received in the Pdelay_Resp message. The master device also sets CF of the Pdelay_Resp message to 0. The master device also stores the time t3 at which the Pdelay_Resp message was transmitted to Transparent Clock 4.
[0038] After transmitting the Pdelay_Resp message, the master device transmits a Pdelay_Resp_Follow_Up message to Transparent Clock 4 (step S203). The master device includes in the Pdelay_Resp_Follow_Up message the transmission time t3 of the Pdelay_Resp message to Transparent Clock 4. The master device also sets CF of the Pdelay_Resp_Follow_Up message to 0.
[0039] The Transparent Clock 4 receives the Pdelay_Resp message at time t4. The Transparent Clock 4 stores the time t4 at which the Pdelay_Resp message is received 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 equation (2) based on the time t1 at which the Transparent Clock 4 transmits the Pdelay_Req message, the time t2 at which the Master device receives the Pdelay_Req message, which is included in the Pdelay_Resp message, the time t3 at which the Master device transmits the Pdelay_Resp message, which is included in the Pdelay_Resp_Follow_Up message, and the time t4 at which the Transparent Clock 4 receives the Pdelay_Resp message. pt1=((t2-t1)+(t4-t3)) / 2 Equation (2)
[0040] 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 time t5 at which the Pdelay_Req message was transmitted to Transparent Clock 4.
[0041] The Transparent Clock 4 receives the Pdelay_Req message at time t6 and stores the time t6 when the Transparent Clock 4 receives the Pdelay_Req message from the client device.
[0042] When the Transparent Clock 4 receives the Pdelay_Req message, it transmits a Pdelay_Resp message to the client device at time t7 (step S205). The Transparent Clock 4 includes the reception time t6 of the Pdelay_Req message from the client device in the Pdelay_Resp message. The Transparent Clock 4 also sets CF of the Pdelay_Resp message to 0. The Transparent Clock 4 also stores the transmission time t7 of the Pdelay_Resp message to the client device.
[0043] After transmitting the Pdelay_Resp message, the Transparent Clock 4 transmits a Pdelay_Resp_Follow_Up message to the client device (step S206). The Transparent Clock 4 includes the time t7 at which the Pdelay_Resp message was transmitted to the client device in the Pdelay_Resp_Follow_Up message. The Transparent Clock 4 also sets CF of the Pdelay_Resp_Follow_Up message to 0.
[0044] The client device receives the Pdelay_Resp message at time t8. The client device stores the time t8 when the Pdelay_Resp message was received 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 equation (3) based on the time t5 when the client device sent the Pdelay_Req message, the time t6 when the Transparent Clock 4 received the Pdelay_Req message included in the Pdelay_Resp message, the time t7 when the Transparent Clock 4 sent the Pdelay_Resp message included in the Pdelay_Resp_Follow_Up message, and the time t8 when the client device received the Pdelay_Resp message: pt2=((t6-t5)+(t8-t7)) / 2 Equation (3)
[0045] After calculating the transmission delay times pt1 and pt2, the master device transmits a Sync message to Transparent Clock 4 at time T1 (step S207). The master device sets CF of the Sync message to 0.
[0046] When the 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). The Transparent Clock 4 leaves the CF of the Sync message at 0. The 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.
[0047] The client device receives the Sync message sent from Transparent Clock 4 at time T2.
[0048] After transmitting the Sync message, the master device transmits a Follow_Up message to Transparent Clock 4 (step S209). The master device includes in the Follow_Up message the transmission time T1 of the Sync message to Transparent Clock 4. The master device also sets 0 to CF in the Follow_Up message.
[0049] When the Transparent Clock 4 receives the Follow_Up message, it transmits the received Follow_Up message to the Client device (step S210). The 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 the Transparent Clock 4 and the processing time of the Sync message in the Transparent Clock 4 (=pt1+(dt2-dt1)).
[0050] The client device calculates the reception time T2 of the Sync message at the client device using the following formula (4): T2 = T1 + pt1 + (dt2 - dt1) + pt2 Formula (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 transparent clock 4 and the client device, and the sum of 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, and the processing time of the Sync message at the transparent clock 4.
[0051] The client device synchronizes its internal time with the calculated reception time T2 of the Sync message, thereby synchronizing the internal time of the client device with the internal time of the master device.
[0052] While the two-step method is described in FIG. 6 , the Follow_Up message and the Pdelay_Resp_Follow_Up message are not used in 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.
[0053] Next, a 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) that is a master device and a Client device 2 (lower-level device) in a time synchronization system 10 in which the two devices 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. Therefore, the transfer device 100 transfers messages between the higher-level device that performs time synchronization by sending and receiving messages using the Peer-to-Peer method and the lower-level device that performs time synchronization by sending and receiving messages using the End-to-End method.
[0054] First, the operation of the transfer device 100 according to this embodiment will be described.
[0055] 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 a transfer method by the transfer device 100.
[0056] 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 in a peer-to-peer manner and a client device (client device 2) that performs time synchronization by sending and receiving messages in an end-to-end manner. Also, as described above, there are two PTP time distribution methods: a two-step method and a one-step method. Figure 2 illustrates a case where the two-step method is used.
[0057] The transfer device 100 transmits a Pdelay_Req message to the master device at time t1 (step S301). The transfer device 100 sets CF of the Pdelay_Req message to 0. The transparent clock 4 also stores the time t1 at which the Pdelay_Req message is transmitted to the master device.
[0058] The master device receives the Pdelay_Req message at time t2 and stores the time t2 at which the master device receives the Pdelay_Req message from the transfer device 100.
[0059] Upon receiving the Pdelay_Req message, the master device 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 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.
[0060] After transmitting the Pdelay_Resp message, the master device transmits 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 transmission time t3 of the Pdelay_Resp message to the transfer device 100. The master device also sets CF of the Pdelay_Resp_Follow_Up message to 0.
[0061] The transfer device 100 receives a Pdelay_Resp message at time t4. The Transparent Clock 4 stores the time t4 at which the Pdelay_Resp message is received 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 equation (5) based on the time t1 at which the transfer device 100 transmits the Pdelay_Req message, the time t2 at which the master device receives the Pdelay_Req message, which is included in the Pdelay_Resp message, the time t3 at which the master device transmits the Pdelay_Resp message, which is included in the Pdelay_Resp_Follow_Up message, and the time t4 at which the transfer device 100 receives the Pdelay_Resp message. Offset X=((t2-t1)-(t4-t3)) / 2 Equation (5)
[0062] At time T1, the master device transmits a Sync message to the transfer device 100 (step S304). The master device sets 0 to CF in the Sync message.
[0063] 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).
[0064] After transmitting the Sync message, the master device transmits a Follow_Up message to the transfer device 100 (step S306). The master device includes in the Follow_Up message the transmission time T1 of the Sync message to the transfer device 100. The master device also sets 0 to CF in the Follow_Up message.
[0065] Upon receiving the Follow_Up message, the transfer device 100 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' using the following equation (6) or equation (7). T1'=T1+pt1+(dt2-dt1) equation (6) T1'=dt2+offsetX equation (7)
[0066] The transfer device 100 sets the calculated time T1' in the CF of the Follow_Up message. In Fig. 6, Transparent Clock 4 sets the CF of the Follow_Up message to a value (=pt1+(dt2-dt1)) 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. On the other hand, in this embodiment, the transfer device 100 sets 0 in the CF of the Follow_Up message.
[0067] 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.
[0068] Upon receiving the Sync message and the Follow_Up message, the client device 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.
[0069] The transfer device 100 receives the Delay_Req message at time dt3. In Fig. 6, the Transparent Clock 4 forwards the received Delay_Req message to the Master device. In contrast, in this embodiment, the transfer device 100 terminates the Delay_Req message without forwarding it.
[0070] The transfer device 100 calculates time T4' synchronized with the master device as the reception time of the Delay_Req message. Specifically, the transfer device 100 calculates time T4' using the following equation (8): T4'=dt3+offset X Equation (8)
[0071] 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 0 to CF in the Delay_Resp message.
[0072] The client device calculates offset Y, which is the difference between the device time of the client device and the device time of the transfer device 100, using the following equation (9) based on time T1' included in the Follow_Up message, time T4' included in the Delay_Resp message, time T2 when the client device receives the Sync message, and time T3 when the client device sends the Delay_Req message. Offset Y=((T2-T1')-(T4'-T3)) / 2 Equation (9)
[0073] Based on the calculated offset Y, 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).
[0074] 2 illustrates the case where the two-step method is used, 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', which was included in the Follow_Up message, can be included in the Sync message.
[0075] According to the transfer method using the transfer device 100 of this embodiment, the above-described processing virtually transmits and receives messages between the transfer device 100 and the client device using the end-to-end method, thereby enabling time synchronization between devices using different profiles, particularly between a higher-level device using peer-to-peer and a lower-level device using end-to-end.
[0076] Next, the configuration of a 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 upper device is a Grand Master Clock 1 and the lower device is a Client device 2, but the present disclosure is not limited to this. The upper device may be a device with a master function, and the lower device may be a device with a slave function. Therefore, for example, the upper device and the lower device may be a Boundary Clock 3.
[0077] As shown in FIG. 1, the transfer device 100 according to this embodiment includes packet transmission / reception units 101 and 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 and 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.
[0078] The packet transmitting / receiving unit 101 transmits and receives PTP packets (messages) to and from a Grand Master Clock 1, which is a higher-level device. The packet transmitting / receiving unit 102 transmits and receives PTP packets (messages) to and from a Client device 2, which is a lower-level device.
[0079] The Pdelay_Req message processing unit 103, which serves as a first message processing unit, transmits a Pdelay_Req message to Grand Master Clock 1 via the packet transmitting / receiving unit 101. The Pdelay_Req message processing unit 103 also acquires the transmission time t1 of the Pdelay_Req message by the transfer device 100, and outputs the time to the offset calculation unit 106.
[0080] The Pdelay_Resp message processing unit 104, which serves as a 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 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, which have been acquired, to the offset calculation unit 106.
[0081] The Pdelay_Resp_Follow_Up message processing unit 105 as a 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.
[0082] 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 the transfer device 100, using the above-mentioned equation (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 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 the transfer device 100. The offset calculation unit 106 outputs the calculation result of the offset X to the synchronization time calculation unit 111. Furthermore, when the offset X is used in calculating a time T1′, which will be described later, the offset calculation unit 106 outputs the calculation result of the offset X to the synchronization time calculation unit 108.
[0083] The Sync message processing unit 107, which serves as a fourth message processing unit, receives the Sync message transmitted from Grand Master Clock 1 via the packet transmitting / receiving unit 101. The Sync message processing unit 107 outputs the received Sync message to the CF processing unit 113. As will be described later, the Sync message output to the CF processing unit 113 has CF set to 0 and is transmitted to Client device 2 via the packet transmitting / receiving unit 102. Therefore, the Sync message processing unit 107 receives the Sync message transmitted from Grand Master Clock 1 and transmits it to Client device 2, which is a lower-level device, via the CF processing unit 113 and the packet transmitting / receiving unit 102. The Sync message processing unit 107 also acquires the transmission time dt2 of the Sync message by the transfer device 100, and outputs it to the synchronization time calculation unit 108.
[0084] The synchronization time calculation unit 108, which serves as the first synchronization time calculation unit, calculates 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.
[0085] The synchronization time calculation unit 108 may calculate time T1', for example, using equation (6) above. That is, the synchronization time calculation unit 108 may calculate time T1' by adding the transmission time dt2 of the Sync message by the transfer device 100, the transmission delay time pt1 between 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 equation (2) above, 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 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 the transfer device 100.
[0086] Furthermore, the synchronization time calculation unit 108 may calculate the time T1′ using, for example, the above-described 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.
[0087] The synchronization time calculation unit 108 outputs the calculated time T1′ to the Follow_Up message processing unit 109.
[0088] The Follow_Up message processing unit 109, which serves as a fifth message processing unit, receives the Follow_Up message transmitted from Grand Master Clock 1 via the packet transmitting / receiving 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 CF processing unit 113 sets CF to 0 for the Sync message output to the CF processing unit 113, and the message is transmitted to the client device 2 via the packet transmitting / receiving 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.
[0089] The Delay_Req message processing unit 110, which serves as a sixth message processing unit, receives the Delay_Req message transmitted 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.
[0090] The synchronization time calculation unit 111, which serves as a 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-described equation (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, which is 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.
[0091] The Delay_Resp message processing unit 112, which serves as a 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 transceiver unit 102. Therefore, the Delay_Resp message processing unit 112 transmits the Delay_Resp message including the time T4' to the Client device 2, which is a lower-level device.
[0092] As described above, each message transmitted 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.
[0093] As explained with reference to Fig. 5, the CF of the Delay_Resp message transmitted from the Transparent Clock 4 to the Client device is set to the processing time of the Delay_Req message in the Transparent Clock 4 (=dt4-dt3). Also, as explained with reference to Fig. 6, the CF of the Sync message transmitted from the Transparent Clock 4 to the Client device is set to 0, and the CF of the Follow_Up message transmitted from the Transparent Clock 4 to the Client device is set to the sum of the transmission delay time pt1 between the Master device and the Transparent Clock 4 and the processing time of the Sync message in the Transparent Clock 4 (=pt1+(dt2-dt1)).
[0094] On the other hand, in this embodiment, the information set in the CF of the message described above is unnecessary due to the processing described with reference to Fig. 2. The CF processing unit 113 sets 0 in the CF of the message, thereby preventing information unnecessary for processing in the client device 2 from being transmitted.
[0095] With the above-described configuration, 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, particularly between a higher-level device using peer-to-peer and a lower-level device using end-to-end.
[0096] Next, the hardware configuration of the transfer device 100 according to this embodiment will be described.
[0097] 3 is a diagram showing an example of the hardware configuration of the transfer device 100 according to this embodiment. In FIG. 3, an example of the hardware configuration of the transfer device 100 is shown, in which 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, or the like. The program instructions may be program code, code segments, or the like for performing necessary tasks.
[0098] 3, the transfer device 100 includes a processor 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 203, a 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 as to be able to communicate with each other. The processor 201 is specifically a CPU (Central Processing Unit), an MPU (Micro Processing Unit), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), a SoC (System on a Chip), or the like, and may be configured by multiple processors of the same type or different types.
[0099] The processor 201 is a control unit that controls each component and executes various arithmetic processing. That is, the processor 201 reads a program from the ROM 202 or the storage 204 and executes the program using the RAM 203 as a work area. The processor 201 controls each component and executes various arithmetic processing in accordance with the program stored in the ROM 202 or the storage 204. In this embodiment, the ROM 202 or the storage 204 stores a program for causing a computer to operate as the 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, for example, 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, 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.
[0100] 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), a USB (Universal Serial Bus) memory, etc. The program may also be provided via a network.
[0101] The ROM 202 stores various programs and various data. The RAM 203 temporarily stores programs or data as a working area. The storage 204 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including the operating system and various data.
[0102] The input unit 205 includes a pointing device such as a mouse and a keyboard, and is used to input various types of information.
[0103] The display unit 206 is, for example, a liquid crystal display, and displays various information. The display unit 206 may be a touch panel type and function as the input unit 205.
[0104] The communication interface 207 is an interface for communicating with other devices (for example, the Grand Master Clock 1 and the client device 2), and is, for example, an interface for a LAN. The packet transmitting / receiving units 101 and 102 are configured by the communication interface 207, for example.
[0105] A computer can be suitably used to function as each unit of the transfer device 100 described above. Such a computer can be realized by storing a program describing the processing content that realizes the functions of each unit 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.
[0106] The following additional notes are provided regarding the above-described embodiments.
[0107] [Supplementary Item 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, comprising a control unit, wherein the control unit: transmits a Pdelay_Req message to the higher-level device and acquires a transmission time t1 of the Pdelay_Req message; 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, which is included in the Pdelay_Resp message, and acquires a reception time t4 of the Pdelay_Resp message; 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, which is included in the Pdelay_Resp_Follow_Up message; 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; a transfer device that receives a Sync message sent from the upper device and sends it to the lower device, acquires the transmission time dt2 of the Sync message by the transfer device, 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, receives a Follow_Up message sent from the upper device, changes the transmission time T1 of the Sync message by the upper device included in the Follow_Up message to the time T1', and sends it to the lower device, receives a Delay_Req message sent from the lower device and acquires the reception time dt3 of the Delay_Req message, 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 sends a Delay_Resp message including the time T4' to the lower device.
[0108] [Supplementary Item 2] In the transfer device described in Supplementary Item 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.
[0109] [Supplementary Item 3] The transfer device according to Supplementary Item 1, wherein the control unit calculates the time T1' by adding the sending time dt2 and the offset.
[0110] [Supplementary Item 4] In the transfer device described in any one of Supplementary Items 1 to 3, each of the messages includes a correctionField (CF) in which a value used for time correction is set, and the control unit sets the CF included in each of the messages to 0.
[0111] [Supplementary Item 5] A transfer method by a transfer device 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 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; 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 transmission time t1, the reception time t2, the transmission time t3, and the reception time t4; A transfer method comprising: receiving a Sync message sent from the upper device and sending it to the lower device; obtaining the 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 sent from the upper device; changing the transmission time T1 of the Sync message by the upper device included in the Follow_Up message to the time T1' and sending it to the lower device; receiving a Delay_Req message sent from the lower device and obtaining the 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 sending a Delay_Resp message including the time T4' to the lower device.
[0112] [Supplementary Item 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 the transfer device described in any one of Supplementary Items 1 to 4.
[0113] Although the above-described embodiments have been described as typical examples, 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-described embodiments, and various modifications and alterations are possible without departing from the scope of the claims. For example, multiple building blocks shown in the block diagrams of the embodiments can be combined into one, or one building block can be divided.
[0114] 1 Grand Master Clock (higher-level device) 2 Client device (lower-level device) 3 Boundary Clock 4 Transparent Clock 10, 10A Time 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 Offset calculation 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) 113 CF processing unit 201 Processor 202 ROM 203 RAM 204 Storage 205 Input unit 206 Display unit 207 Communication I / F 209 Path
Claims
1. A transfer device that transfers messages between a higher-level device that performs time synchronization by transmitting and receiving messages using a Peer to Peer method and a lower-level device that performs time synchronization by transmitting and receiving messages using an End to End method, comprising: a first message processing unit that transmits a Pdelay_Req message to the higher-level device and obtains a transmission time t1 of the Pdelay_Req message; a second message processing unit that receives a Pdelay_Resp message transmitted from the higher-level device and obtains a reception time t2 of the Pdelay_Req message by the higher-level device, which is included in the Pdelay_Resp message, and obtains a reception time t4 of the Pdelay_Resp message; a third message processing unit that receives a Pdelay_Resp_Follow_Up message transmitted from the higher-level device and obtains a transmission time t3 of the Pdelay_Resp message by the higher-level device, which is 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 sent from the higher-level device, transmits it to the lower-level device, and acquires a sending 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 the sending time of the Sync message by the higher-level device, based on the sending time dt2; a fifth message processing unit that receives a Follow_Up message sent from the higher-level device, changes the sending time T1 of the Sync message by the higher-level device included in the Follow_Up message to the time T1', and transmits it to the lower-level device; a sixth message processing unit that receives a Delay_Req message sent from the lower device, and acquires a receiving 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.
2. A transfer device as described in claim 1, wherein 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.
3. A transfer device according to claim 1, wherein the first synchronization time calculation unit calculates the time T1' by adding the transmission time dt2 and the offset.
4. A transfer device as described in claim 1, wherein each of the messages includes a correctionField (CF) in which a value used for time correction is set, and the transfer device further includes a CF processing unit that sets the CF included in each of the messages to 0.
5. A transfer method by a transfer device for transferring messages between a higher-level device which performs time synchronization by transmitting and receiving messages in a Peer to Peer manner and a lower-level device which performs time synchronization by transmitting and receiving messages in an End to End manner, comprising 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; and calculating an offset which 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. a step of 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; a step of 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; a step of 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; a step of receiving a Delay_Req message transmitted from the lower device, and acquiring a reception time dt3 of the Delay_Req message; a step of 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 a step of transmitting a Delay_Resp message including the time T4' to the lower device.
6. A program for causing a computer to operate as the transfer device according to claim 1.
Citation Information
Patent Citations
Slave clock monitoring method based on PTP
CN103378993A
Relay device and relay method
JP2014116672A
Communication apparatus and time synchronization system
WO2011077558A1
