Transfer device, transfer method, and program

The transfer device and method address the challenge of synchronizing devices with different PTP profiles by converting messages and calculating offsets, allowing for cost-effective time synchronization across different profiles.

WO2024189862A1PCT designated stage expired Publication Date: 2024-09-19NT T INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/010183
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Time synchronization between devices using different PTP profiles is not possible due to differences in delay measurement methods, leading to the need for separate time distribution networks, which increases costs.

Method used

A transfer device and method that enables time synchronization between devices using the Peer-to-Peer method and those using the End-to-End method by converting messages and calculating offsets, allowing for seamless communication across different profiles.

Benefits of technology

Enables time synchronization between devices with different profiles, reducing the need for separate networks and lowering costs by facilitating communication between devices using the Peer-to-Peer and End-to-End methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023010183_19092024_PF_FP_ABST
    Figure JP2023010183_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A transfer device (100) according to the present disclosure: receives a Sync message from a higher-order device and transmits the Sync message to a subordinate device; receives a Follow_Up message transmitted from the higher-order device; transmits, to the subordinate device, the Follow_Up message having included therein the difference between the transmission time dt2 of transmitting the Sync message to the subordinate device and the reception time dt1 of receiving the Sync message; receives a Delay_Req message from the subordinate device; converts the Delay_Req message into a Pdelay_Req message and transmits the Pdelay_Req message to the higher-order device; receives a Pdelay_Resp message from the higher-order device; includes, in the Pdelay_Resp message, the difference between the transmission time dt4 of transmitting the Pdelay_Req message and the reception time dt3 of receiving the Delay_Req message; and converts the Pdelay_Resp message including the difference between the transmission time dt4 and reception time dt3 into a Delay_Resp message, and transmits the Delay_Resp message to the subordinate device.
Need to check novelty before this filing date? Find Prior Art

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 that synchronizes its internal time 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.

[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, and includes a first message processing unit that receives a Sync message transmitted from the higher-level device and transmits it to the lower-level device, and acquires a reception time dt1 of the Sync message and a transmission time dt2 of the Sync message to the lower-level device, a second message processing unit that receives a Follow_Up message transmitted from the higher-level device and transmits the Follow_Up message to the lower-level device while including a difference between the transmission time dt2 and the reception time dt1 in the Follow_Up message, a third message processing unit that receives a Delay_Req message transmitted from the lower-level device and acquires a reception time dt3 of the Delay_Req message, and a third message processing unit that transmits the Delay_Req message to the Peer to The device comprises a first message conversion unit that converts the Pdelay_Resp message sent from the higher-level device into a Peer-based Pdelay_Req message, transmits the Pdelay_Req message to the higher-level device, and acquires the transmission time dt4 of the Pdelay_Req message; a fourth message processing unit that receives a Pdelay_Resp message sent from the higher-level device and includes in the Pdelay_Resp message the difference between the transmission time dt4 and the reception time dt3; and a second message conversion unit that converts the Pdelay_Resp message including the difference between the transmission time dt4 and the reception time dt3 into an End to End-based Delay_Resp message and transmits the Pdelay_Resp message to the lower-level device.

[0014] In order to solve the above-mentioned problems, a transfer method according to the present disclosure 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, the method including the steps of receiving a Sync message transmitted from the higher-level device, transmitting the Sync message to the lower-level device, and acquiring a reception time dt1 of the Sync message and a transmission time dt2 of the Sync message to the lower-level device; receiving a Follow_Up message transmitted from the higher-level device, and transmitting the Follow_Up message to the lower-level device while including a difference between the transmission time dt2 and the reception time dt1 in the Follow_Up message; receiving a Delay_Req message transmitted from the lower-level device, and acquiring a reception time dt3 of the Delay_Req message; The method includes the steps of converting the Pdelay_Resp message sent from the higher-level device into a Peer-based Pdelay_Req message, transmitting it to the higher-level device, and acquiring the transmission time dt4 of the Pdelay_Req message; receiving a Pdelay_Resp message sent from the higher-level device, and including the difference between the transmission time dt4 and the reception time dt3 in the Pdelay_Resp message; and converting the Pdelay_Resp message including the difference between the transmission time dt4 and the reception time dt3 into an End to End-based Delay_Resp message and transmitting it to the lower-level 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] At time T1, the master device transmits a Sync message to the transfer device 100 (step S301). The master device sets CF of the Sync message to 0.

[0058] When the transfer device 100 receives a Sync message at time dt1, it transmits the Sync message to the client device at time dt2 (step S302). The transfer device 100 leaves the CF of the Sync message at 0. The transfer device 100 also stores the time dt1 when the Sync message was received from the master device and the time dt2 when the Sync message was transmitted to the client device.

[0059] The client device receives the Sync message at time T2 and stores the time T2 at which the client device receives the Sync message from the transfer device 100.

[0060] After transmitting the Sync message, the master device transmits a Follow_Up message to the transfer device 100 (step S303). 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.

[0061] The transfer device 100 receives the Follow_Up message, sets the processing time (=dt2-dt1) of the Sync message in the transfer device 100 in the CF of the Follow_Up message, and transmits the message to the Client device (step S304).

[0062] Upon receiving the Follow_Up message, the client device transmits a Delay_Req message to the transfer device 100 at time T3 (step S305). 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.

[0063] The transfer device 100 receives a Delay_Req message at time dt3. The transfer device 100 stores the reception time dt3 of the Delay_Req message from the client device. Because the Delay_Req message is an end-to-end message, the transfer device 100 converts the Delay_Req message into a peer-to-peer Pdelay_Req message that can be processed by the master device, and transmits the Pdelay_Req message to the master device at time dt4 (step S306). The transfer device 100 sets CF of the Pdelay_Req message to 0. The transfer device 100 stores the transmission time dt4 of the Pdelay_Req message to the master device.

[0064] When the master device receives the Pdelay_Req message at time T4, it transmits a Pdelay_Resp message to the transfer device 100 at time t5 (step S307). The master device includes the reception time T4 of the Pdelay_Req message from the transfer device 100 in the Pdelay_Resp message. The master device sets CF of the Pdelay_Resp message to 0. The master device also stores the transmission time t5 of the Pdelay_Resp message.

[0065] The transfer device 100 receives the Pdelay_Resp message. Because the Pdelay_Req message is a Peer-to-Peer message, the transfer device 100 converts the Pdelay_Req message into an End-to-End Delay_Resp message that can be processed by the client device, and transmits the Delay_Resp message to the client device (step S308). The transfer device 100 sets the processing time (= dt4 - dt3) of the Delay_Resp message in the transfer device 100.

[0066] After transmitting the Pdelay_Resp message, the master device transmits a Pdelay_Resp_Follow_Up message to the transfer device 100 (step S309). The master device includes in the Pdelay_Resp_Follow_Up message the transmission time t5 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.

[0067] The transfer device 100 receives the Pdelay_Resp_Follow_Up message but does not transfer it to the client device.

[0068] The client device calculates an offset, which is the difference between the device time of the client device and the device time of the master device, using the following equation (5): Offset = ((T2 - T1 - (dt2 - dt1)) - (T4 - T3 - (dt4 - dt3))) / 2 (Equation 5)

[0069] Based on the calculated offset, the client device synchronizes its own internal time with the internal time of the master device.

[0070] 2 illustrates the case where the two-step method is used, but in the case of the one-step method, the Follow_Up message and the Pdelay_Resp_Follow_Up message are not used. In this case, the transmission time T1 of the Sync message by the master device and the processing time of the Sync message by the transfer device 100 (= dt2 - dt1), which were included in the Follow_Up message, can be included in the Sync message. Also, the transmission time t5 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.

[0071] According to the transfer method using the transfer device 100 of this embodiment, the above-described processing virtually transmits and receives messages between the Master device 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.

[0072] 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.

[0073] As shown in Figure 1, the transfer device 100 of this embodiment includes packet transmission / reception units 101 and 102, a Sync message processing unit 103, a Follow_Up message processing unit 104, a Delay_Req message processing unit 105, a Pdelay_Req message conversion unit 106, a Pdelay_Resp message processing unit 107, a Delay_Resp message conversion unit 108, and a Pdelay_Resp_Follow_Up message processing unit 109.

[0074] 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.

[0075] Sync message processing unit 103, which serves as a first message processing unit, receives the Sync message transmitted from Grand Master Clock 1 via packet transmitting / receiving unit 101, and transmits it to Client device 2 via packet transmitting / receiving unit 102. As described above, CF of the Sync message is set to 0, and Sync message processing unit 103 transfers the Sync message to Client device 2 with CF remaining at 0. In addition, Sync message processing unit 103 obtains the time dt1 when the Sync message was received by transfer device 100 and the time dt2 when the Sync message was transmitted to Client device 2, and outputs these to Follow_Up message processing unit 104.

[0076] The Follow_Up message processing unit 104, which serves as a second message processing unit, receives the Follow_Up message transmitted from Grand Master Clock 1 via the packet transmitting / receiving unit 101, and transmits the Follow_Up message to Client device 2 via the packet transmitting / receiving unit 102. The Follow_Up message processing unit 104 includes the processing time of the Sync message by the transfer device 100, i.e., the difference between the transmission time dt2 of the Sync message to Client device 2 and the reception time dt1 of the Sync message by the transfer device 100, in the Follow_Up message, and transmits the Follow_Up message to Client device 2. Specifically, the Follow_Up message processing unit 104 sets the difference (= dt2 - dt1) between the transmission time dt2 of the Sync message to Client device 2 and the reception time dt1 of the Sync message by the transfer device 100 in the CF of the Follow_Up message.

[0077] The Delay_Req message processing unit 105, which serves as a third message processing unit, receives the Delay_Req message transmitted from the client device 2 via the packet transmitting / receiving unit 102, and outputs the message to the Pdelay_Req message conversion unit 106. The Delay_Req message processing unit 105 also acquires the reception time dt3 of the Delay_Req message by the transfer device 100, and outputs the received message to the Pdelay_Resp message processing unit 107.

[0078] The Pdelay_Req message conversion unit 106, which serves as a first message conversion unit, converts the Delay_Req message output from the Delay_Req message processing unit 105 into a Peer-to-Peer Pdelay_Req message that can be processed by the Grand Master Clock 1, and transmits it to the Grand Master Clock 1 via the packet transmission / reception unit 101. The message header of a PTP packet has a field called "Message Type," in which a value indicating each message is set. The Pdelay_Req message conversion unit 106 converts a Delay_Req message into a Pdelay_Req message by changing the Message Type of the Delay_Req message to a value indicating a Pdelay_Req message. Also, as described above, the CF of the Delay_Req message is set to 0, and the Pdelay_Req message conversion unit 106 leaves the CF of the Pdelay_Req message at 0. The Pdelay_Req message conversion unit 106 also stores the transmission time dt4 of the Pdelay_Req message to Grand Master Clock 1.

[0079] The Pdelay_Resp message processing unit 107, which serves as a fourth message processing unit, receives a Pdelay_Resp message transmitted from Grand Master Clock 1 via the packet transmitting / receiving unit 101, and outputs the Pdelay_Resp message to the Delay_Resp message conversion unit 108. The Pdelay_Resp message processing unit 107 includes in the Pdelay_Resp message the processing time of the Delay_Req message by the transfer device 100, i.e., the difference between the transmission time dt4 of the Delay_Req message to Grand Master Clock 1 and the reception time dt3 of the Delay_Req message by the transfer device 100, and outputs the Pdelay_Resp message to the Delay_Resp message conversion unit 108. Specifically, the Pdelay_Resp message processing unit 107 sets the difference (= dt4 - dt3) between the transmission time dt4 of the Delay_Req message to Grand Master Clock 1 and the reception time dt3 of the Delay_Req message by the transfer device 100 in the CF of the Pdelay_Resp message.

[0080] The Delay_Resp message conversion unit 108, which serves as the second message conversion unit, converts the Pdelay_Resp message output from the Pdelay_Resp message processing unit 107, which includes the difference between the transmission time dt4 of the Delay_Req message to the Grand Master Clock 1 and the reception time dt3 of the Delay_Req message by the transfer device 100, into an end-to-end Delay_Resp message that can be processed by the client device 2, and transmits it to the client device 2 via the packet transmission / reception unit 102. As described above, the message header of a PTP packet has a field called "Message Type," in which a value indicating each message is set. The Delay_Resp message conversion unit 108 converts a Pdelay_Resp message into a Delay_Resp message by changing the Message Type of the Pdelay_Resp message to a value indicating a Delay_Resp message. Also, as described above, the CF of the Delay_Req message is set to the difference (= dt4 - dt3) between the transmission time dt4 of the Delay_Req message to Grand Master Clock 1 and the reception time dt3 of the Delay_Req message by transfer device 100, and the Delay_Resp message conversion unit 108 leaves the CF of the Delay_Rewp message as is (= dt4 - dt3).

[0081] A Pdelay_Resp_Follow_Up message processor 109 serving as a fifth message processor receives the Pdelay_Resp_Follow_Up message transmitted from the Grand Master Clock 1 via the packet transmitter / receiver 101, but does not transfer it to the client device.

[0082] As explained with reference to Fig. 6, after transmitting the Pdelay_Resp message, the master device (Grand Master Clock 1) transmits a Pdelay_Resp_Follow_Up message including the transmission time t3 of the Pdelay_Resp message, which is used to calculate the transmission delay time pt1 between the master device and Transparent Clock 4.

[0083] On the other hand, in this embodiment, as described above, the transmission time t5 of the Pdelay_Resp message by the Grand Master Clock 1 is not necessary for calculating the offset, which is the difference between the device time of the client device and the device time of the master device. Therefore, by not transmitting the Pdelay_Resp_Follow_Up message to the client device 2 by the Pdelay_Resp_Follow_Up message processing unit 109, it is possible to reduce the transmission and reception of unnecessary messages. Furthermore, the Grand Master Clock 1 may transmit a Pdelay_Resp message after transmitting a Pdelay_Resp message, as in the case of using the conventional peer-to-peer method. Therefore, the Grand Master Clock 1 only needs to perform the same processing as in the case of using the conventional peer-to-peer method, so there is no need to modify the Grand Master Clock 1, and it is possible to suppress increases in costs.

[0084] With the above-described configuration, the transfer device 100 according to this embodiment virtually transmits and receives messages between the Master device 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.

[0085] Next, the hardware configuration of the transfer device 100 according to this embodiment will be described.

[0086] 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.

[0087] 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.

[0088] The processor 201 is a control unit that controls each component and performs 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 performs various arithmetic processing according to 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 operating a computer as the transfer device 100 according to the present disclosure. The program is read and executed by the processor 201 to realize each component of the transfer device 100, for example, the Sync message processing unit 103, the Follow_Up message processing unit 104, the Delay_Req message processing unit 105, the Pdelay_Req message conversion unit 106, the Pdelay_Resp message processing unit 107, the Delay_Resp message conversion unit 108, and the Pdelay_Resp_Follow_Up message processing unit 109.

[0089] 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.

[0090] 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.

[0091] The input unit 205 includes a pointing device such as a mouse and a keyboard, and is used to input various types of information.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] The following additional notes are provided regarding the above-described embodiments.

[0096] [Supplementary Item 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 control unit, wherein the control unit receives a Sync message transmitted from the higher-level device and transmits it to the lower-level device, and obtains the reception time dt1 of the Sync message and the transmission time dt2 of the Sync message to the lower-level device, receives a Follow_Up message transmitted from the higher-level device and transmits the Follow_Up message to the lower-level device while including the difference between the transmission time dt2 and the reception time dt1 in the Follow_Up message, receives a Delay_Req message transmitted from the lower-level device and obtains the reception time dt3 of the Delay_Req message, converts the Delay_Req message into a Pdelay_Req message of the Peer to Peer method, transmits it to the higher-level device, and obtains the transmission time dt4 of the Pdelay_Req message, A transfer device that receives a Pdelay_Resp message sent from the higher-level device, includes the difference between the sending time dt4 and the receiving time dt3 in the Pdelay_Resp message, converts the Pdelay_Resp message including the difference between the sending time dt4 and the receiving time dt3 into an End to End type Delay_Resp message, and sends it to the lower-level device.

[0097] [Supplementary Item 2] The transfer device according to Supplementary Item 1, wherein the control unit does not transmit a Pdelay_Resp_Follow_Up message to the lower device even if the control unit receives the Pdelay_Resp_Follow_Up message from the higher device.

[0098] [Supplementary Item 3] 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: receiving a Sync message transmitted from the higher-level device and transmitting it to the lower-level device, and acquiring a reception time dt1 of the Sync message and a transmission time dt2 of the Sync message to the lower-level device; receiving a Follow_Up message transmitted from the higher-level device and transmitting the Follow_Up message to the lower-level device, including the difference between the transmission time dt2 and the reception time dt1; receiving a Delay_Req message transmitted from the lower-level device and acquiring a reception time dt3 of the Delay_Req message; converting the Delay_Req message into a Pdelay_Req message of the Peer to Peer manner and transmitting it to the higher-level device, and acquiring a transmission time dt4 of the Pdelay_Req message; A transfer method which receives a Pdelay_Resp message sent from the higher-level device, includes the difference between the sending time dt4 and the receiving time dt3 in the Pdelay_Resp message, converts the Pdelay_Resp message including the difference between the sending time dt4 and the receiving time dt3 into a Delay_Resp message of the End to End method, and sends it to the lower-level device.

[0099] [Supplementary Item 4] 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 according to Supplementary Item 1 or 2.

[0100] 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.

[0101] 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 Sync message processing unit (first message processing unit) 104 Follow_Up message processing unit (second message processing unit) 105 Delay_Req message processing unit (third message processing unit) 106 Pdelay_Req message conversion unit (first message conversion unit) 107 Pdelay_Resp message processing unit (fourth message processing unit) 108 Delay_Resp message conversion unit (second message conversion unit) 109 Pdelay_Resp_Follow_Up message processing unit (fifth message 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 receives a Sync message transmitted from the higher-level device and transmits it to the lower-level device, and obtains the reception time dt1 of the Sync message and the transmission time dt2 of the Sync message to the lower-level device; a second message processing unit that receives a Follow_Up message transmitted from the higher-level device and transmits the Follow_Up message to the lower-level device while including the difference between the transmission time dt2 and the reception time dt1; a third message processing unit that receives a Delay_Req message transmitted from the lower-level device and obtains the reception time dt3 of the Delay_Req message; and a first message conversion unit that converts the Delay_Req message into a Pdelay_Req message of the Peer to Peer method, transmits it to the higher-level device, and obtains the transmission time dt4 of the Pdelay_Req message. A transfer device comprising: a fourth message processing unit that receives a Pdelay_Resp message transmitted from the higher-level device and includes in the Pdelay_Resp message the difference between the transmission time dt4 and the reception time dt3; and a second message conversion unit that converts the Pdelay_Resp message including the difference between the transmission time dt4 and the reception time dt3 into a Delay_Resp message of the End to End method and transmits it to the lower-level device.

2. The transfer device according to claim 1, further comprising a fifth message processing unit which, even if a Pdelay_Resp_Follow_Up message transmitted from the higher-level device is received, does not transmit the Pdelay_Resp_Follow_Up message to the lower-level device.

3. 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: receiving a Sync message transmitted from the higher-level device and transmitting it to the lower-level device, and acquiring the reception time dt1 of the Sync message and the transmission time dt2 of the Sync message to the lower-level device; receiving a Follow_Up message transmitted from the higher-level device, and transmitting the Follow_Up message to the lower-level device while including the difference between the transmission time dt2 and the reception time dt1; receiving a Delay_Req message transmitted from the lower-level device, and acquiring the reception time dt3 of the Delay_Req message; converting the Delay_Req message into a Pdelay_Req message of the Peer to Peer manner, transmitting it to the higher-level device, and acquiring the transmission time dt4 of the Pdelay_Req message; A transfer method comprising the steps of: receiving a Pdelay_Resp message transmitted from the higher-level device, and including in the Pdelay_Resp message the difference between the transmission time dt4 and the reception time dt3; and converting the Pdelay_Resp message including the difference between the transmission time dt4 and the reception time dt3 into a Delay_Resp message of the End to End method and transmitting it to the lower-level device.

4. A program for causing a computer to operate as the transfer device according to claim 1.

Citation Information

Patent Citations

  • Network elements for packet-switched networks

    JP2014505444A

  • Communication system, communication device, and communication method

    JP2019146060A

  • Communication control device and communication control method

    JP2020184710A