Time synchronization device, time synchronization method, and program

The time synchronization device and method address incorrect synchronization issues by calculating offsets and transmission delay times to identify and correct failures, ensuring accurate time synchronization and preventing system failures.

JP7587194B2Active Publication Date: 2024-11-20NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023556074
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-11-20
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

In time synchronization systems using the PTP protocol, failures in the GNSS antenna or Grand Master Clock can lead to significant discrepancies between internal times, causing incorrect time synchronization and potential system or communication failures.

Method used

A time synchronization device and method that calculates offsets and transmission delay times to identify and prevent synchronization with incorrect times by determining the location of failures, such as in the Grand Master Clock or transmission path, and adjusts synchronization accordingly.

Benefits of technology

Reduces the likelihood of synchronizing to incorrect times, preventing system and communication failures by accurately synchronizing internal times across devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007587194000001
    Figure 0007587194000001
  • Figure 0007587194000002
    Figure 0007587194000002
  • Figure 0007587194000003
    Figure 0007587194000003
Patent Text Reader

Abstract

A boundary clock (100), which is a time synchronization device according to this disclosure, includes an offset calculation unit (102) that calculates an offset indicating a difference between the internal device time of an upper device and the internal device time of the boundary clock, a transmission delay time calculation unit (103) that calculates transmission delay times of packets transmitted and received between the upper device and the boundary clock, and a determination unit (111) that determines the location of occurrence of a failure of time synchronization with the upper device on the basis of the offset and the transmission delay times and stops synchronizing the internal device time of a lower device with the internal device time of the boundary clock when determining that the location of occurrence of the failure is the upper device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a time synchronization device, a time synchronization method, and a program. [Background technology]

[0002] PTP (Precision Time Protocol) defined in the IEEE-1588 standard is a protocol for synchronizing the time (device internal time) of computers on a LAN (Local Area Network) with high precision (see Non-Patent Document 1). Fig. 6 is a diagram showing an example of the configuration of a time synchronization system 1 that uses the PTP protocol to synchronize the time of devices on a network.

[0003] The time synchronization system 1 shown in Fig. 6 includes a Grand Master Clock 2, a conventional Boundary Clock 100a, and a client device 3. The Grand Master Clock 2 and the Boundary Clock 100a can communicate with each other via a network such as a LAN. The Boundary Clock 100a and the client device 3 can communicate with each other via a network such as a LAN.

[0004] The Grand Master Clock2 is equipped with a GNSS antenna that receives signals (GNSS signals) from satellites of the Global Navigation Satellite System (GNSS), such as the Global Positioning System (GPS). The Grand Master Clock2 receives GNSS signals via the GNSS antenna and acquires Universal Time Coordinated (UTC) from the received GNSS signals. The Grand Master Clock2 has a master function that distributes the acquired UTC as the reference time via the network.

[0005] The Boundary Clock 100a 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 functions as a master device with a function to a lower-level device with a slave function. In the time synchronization system 1 shown in FIG. 6, the Boundary Clock 100a functions as a slave device with the Grand Master Clock 2, and functions as a master device with the client device 3. Thus, the Boundary Clock 100a synchronizes its own internal time with the time (reference time) distributed from the Grand Master Clock 2 by transmitting and receiving PTP packets to and from the Grand Master Clock 2. The Boundary Clock 100a also distributes its internal time to the client device 3 by transmitting and receiving PTP packets to and from the client device 3, and synchronizes the internal time of the client device 3 with its own internal time.

[0006] The client device 3 has a slave function that synchronizes the internal time of the device with the time distributed from a device with a master function. In the time synchronization system 1 shown in Fig. 6, the client device 3 synchronizes the internal time of the device with the time distributed from the Boundary Clock 100a. The client device 3 is, for example, a base station device in a mobile phone network. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] IEEE Std 1588TM-2019 “IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems” Summary of the Invention [Problem to be solved by the invention]

[0008] In the time synchronization system 1 shown in FIG. 6, a failure may occur in the GNSS antenna equipped to the Grand Master Clock 2, in the Grand Master Clock 2 itself, or in the transmission path between the Grand Master Clock 2 and the Boundary Clock 100a, resulting in a large discrepancy between the internal time of the Grand Master Clock 2 and the internal time of the Boundary Clock 100a.

[0009] Even if a fault occurs on the transmission path, the time itself delivered by the Grand Master Clock 2 remains correct, and the Boundary Clock 100a is not synchronized to an incorrect time.

[0010] On the other hand, if a fault occurs in the GNSS antenna of the Grand Master Clock 2 or in the Grand Master Clock 2 itself, the time distributed from the Grand Master Clock 2 may become an incorrect time with a large deviation from UTC. In this case, the conventional Boundary Clock 100a may synchronize with the internal time of the Grand Master Clock 2, which includes a large error, and continue to distribute the incorrect time with a large error from UTC to the subordinate client device 3. If such an incorrect time is distributed, the internal time of the user device subordinate to the client device 3 may also be shifted, causing a system failure or communication failure. In addition, this may cause a system failure or communication failure not only in the user device subordinate to the client device 3, but also in the user device subordinate to the client device 3, whose internal time is not shifted by synchronizing with another Grand Master Clock 2 or the Boundary Clock 100a. In this way, if synchronization with an incorrect time occurs, a problem with a very large impact may occur.

[0011] The object of the present disclosure, made in consideration of the above-mentioned problems, is to provide a time synchronization device, a time synchronization method, and a program that can reduce the possibility of synchronizing the internal time of a lower-level device to an incorrect time when synchronizing the internal time of the device with a time distributed from a higher-level device and synchronizing the internal time of the lower-level device with the internal time of the device itself. [Means for solving the problem]

[0012] In order to solve the above problems, the time synchronization device disclosed herein is a time synchronization device that synchronizes its own device's internal time with the internal time of the higher-level device and synchronizes the internal time of a lower-level device with the internal time of its own device by sending and receiving packets with a higher-level device, and is equipped with an offset calculation unit that calculates an offset, which is the difference between the internal time of the higher-level device and the internal time of the own device, a transmission delay time calculation unit that calculates the transmission delay time of packets sent and received between the higher-level device and the own device, and a determination unit that determines the location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and if it determines that the location of the failure is the higher-level device, stops synchronization of the internal time of the lower-level device with the internal time of the own device.

[0013] In addition, in order to solve the above problems, the time synchronization method disclosed herein is a time synchronization method for synchronizing the internal time of a device with the internal time of a higher-level device and synchronizing the internal time of a lower-level device with the internal time of the internal device by sending and receiving packets with a higher-level device, and includes the steps of calculating an offset, which is the difference between the internal time of the higher-level device and the internal time of the internal device, calculating a transmission delay time of packets sent and received between the higher-level device and the internal device, and determining, based on the offset and the transmission delay time, where a failure in time synchronization with the higher-level device has occurred, and if it is determined that the failure has occurred in the higher-level device, stopping synchronization of the internal time of the lower-level device with the internal time of the internal device.

[0014] In order to solve the above problem, a program according to the present disclosure causes a computer to operate as the above-mentioned time synchronization device. Effect of the Invention

[0015] According to the time synchronization device, time synchronization method, and program disclosed herein, when the internal time of a device is synchronized with the time distributed from a higher-level device and the internal time of a lower-level device is synchronized with the internal time of the device, it is possible to reduce the possibility of synchronizing the internal time of the lower-level device with an incorrect time. [Brief description of the drawings]

[0016] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a Boundary Clock as a time synchronization device according to an embodiment of the present disclosure. [Diagram 2] 2 is a flowchart showing an example of the operation of the Boundary Clock shown in FIG. 1. [Figure 3A] 1 is a diagram for explaining fluctuations in transmission delay time when a fault occurs in the transmission path between the Grand Master Clock and the Boundary Clock. FIG. [Figure 3B] 1 is a diagram for explaining fluctuations in transmission delay time when a fault occurs in the Grand Master Clock itself; [Figure 4] 10 is a flowchart showing another example of the operation of the Boundary Clock shown in FIG. [Diagram 5] 2 is a diagram illustrating an example of a hardware configuration of the Boundary Clock illustrated in FIG. 1. [Figure 6] FIG. 1 is a diagram illustrating an example of the configuration of a conventional time synchronization system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.

[0018] Fig. 1 is a diagram showing an example of the configuration of a Boundary Clock 100 as a time synchronization device according to an embodiment of the present disclosure. The Boundary Clock 100 according to this embodiment distributes time distributed from a Grand Master Clock 2 to a client device 3 in place of the Boundary Clock 100a in the time synchronization system 1 shown in Fig. 6. That is, the Boundary Clock 100 as a time synchronization device according to this embodiment synchronizes its own internal time with the internal time of a higher-level device (Grand Master Clock 2) and synchronizes the internal time of a lower-level device (client device 3) with the internal time of its own device by transmitting and receiving packets (PTP packets) to and from the higher-level device (Grand Master Clock 2).

[0019] 1, the Boundary Clock 100 according to this embodiment includes packet transmitting / receiving units 101 and 105, an offset calculation unit 102, a transmission delay time calculation unit 103, a time synchronization processing unit 104, a threshold storage unit 106, a time offset determination unit 107, a transmission delay count flag unit 108, a Clock Class rewriting unit 109, and a fault location determination unit 110. The time offset determination unit 107 and the fault location determination unit 110 constitute a determination unit 111.

[0020] The packet transmitter / receiver 101 transmits and receives PTP packets to and from the Grand Master Clock 2. The packet transmitter / receiver 101 outputs packets received from the Grand Master Clock 2 to the offset calculator 102 and the transmission delay time calculator 103.

[0021] The offset calculation unit 102 calculates an offset, which is the difference between the internal time of the host device, Grand Master Clock 2, and its own device (Boundary Clock 100). Specifically, the offset calculation unit 102 acquires a timestamp from a packet output from the packet transmission / reception unit 101, and calculates an offset based on the acquired timestamp. The calculation of the offset by the offset calculation unit 102 will be described below.

[0022] The Grand Master Clock 2 transmits a Sync message to the Boundary Clock 100. The Grand Master Clock 2 transmits to the Boundary Clock 100 the Sync message including a timestamp indicating time T1, which is the transmission time of the Sync message.

[0023] When the Boundary Clock 100 receives a Sync message sent from the Grand Master Clock 2 at time T2, it sends a Delay_Req message (delay request message) to the Grand Master Clock 2 at time T3. The Boundary Clock 100 transmits to the Grand Master Clock 2 the Delay_Req message including a timestamp indicating time T3, which is the transmission time of the Delay_Req message.

[0024] When the Grand Master Clock 2 receives the Delay_Req message sent from the Boundary Clock 100 at time T4, it transmits a Delay_Resp message (delay response message) to the Boundary Clock 100. The Grand Master Clock 2 transmits to the Boundary Clock 100 the Delay_Resp message including a timestamp indicating time T4, which is the time when the Delay_Req message was received.

[0025] The offset calculation unit 102 acquires time stamps indicating times T1, T3, and T4 contained in PTP packets (Sync message, Delay_Req message, Delay_Resp message) transmitted and received between the Grand Master Clock 2 and the Boundary Clock 100. The offset calculation unit 102 also acquires the time T2 at which the Boundary Clock 100 receives the Sync message. The offset calculation unit 102 then calculates the offset based on the following formula. Offset = ((T2-T1)-(T4-T3)) / 2

[0026] The offset calculation unit 102 outputs the offset calculation result to the time synchronization processing unit 104 and the time deviation determination unit 107 .

[0027] The transmission delay time calculation unit 103 calculates the transmission delay time of PTP packets transmitted and received between the higher-level device Grand Master Clock 2 and Boundary Clock 100. For example, the transmission delay time calculation unit 103 calculates the transmission delay time as the average of the difference between the time T2 when Boundary Clock 100 receives a Sync message and the time T1 when Grand Master Clock 2 transmits the Sync message, and the difference between the time T4 when Grand Master Clock 2 receives a Delay_Req message and the time T3 when Boundary Clock 100 transmits the Delay_Req message. That is, the transmission delay time calculation unit 103 calculates the transmission delay time based on the following formula. Transmission delay time = ((T2-T1)+(T4-T3)) / 2

[0028] The transmission delay time calculation unit 103 outputs the calculation result of the transmission delay time to the time synchronization processing unit 104 and the failure location determination unit 110 .

[0029] The time synchronization processing unit 104 synchronizes the internal time of the Boundary Clock 100 with the internal time of the Grand Master Clock 2 based on the offset calculated by the offset calculation unit 102 and the transmission delay time calculated by the transmission delay time calculation unit 103 .

[0030] The packet transmitting / receiving unit 105 transmits and receives PTP packets to and from the client device 3. Packets transmitted and received to and from the client device 3 include time information of the internal time of the Boundary Clock 100, and the internal time of the client device 3 can be synchronized with the internal time of the Boundary Clock 100 by transmitting and receiving the packets.

[0031] The threshold storage unit 106 stores thresholds (first threshold TH1, second threshold TH2, and third threshold TH3) required for processing in the time offset determination unit 107 and the fault location determination unit 110 described later. Methods for setting the first threshold TH1, the second threshold TH2, and the third threshold TH3 include a method of setting a predetermined fixed value, a method of acquiring data on offset and transmission delay time over a certain period of time and setting the average value, and the like.

[0032] The time deviation determination unit 107 determines whether the absolute value of the offset calculated by the offset calculation unit 102 is greater than a first threshold value TH1. If the time deviation determination unit 107 determines that the offset is greater than the first threshold value TH1, it notifies the failure location determination unit 110 of the occurrence of a deviation between the device time of Grand Master Clock 2 and the device time of its own device (the occurrence of a failure in time synchronization with Grand Master Clock 2).

[0033] The transmission delay count flag unit 108 manages a transmission delay count flag, which is a flag for counting the time or number of times that the transmission delay time is continuously greater than a second threshold value TH2, which will be described later.

[0034] The Clock Class rewriting unit 109 rewrites the Clock Class indicating whether the local time of the Boundary Clock 100 is synchronized with the local time of the Grand Master Clock 2 under the control of the failure location determination unit 110, and outputs the rewritten Clock Class to the packet transmission / reception unit 105. The Clock Class is included in a PTP packet transmitted between the Boundary Clock 100 and the client device 3, and is transmitted to the client device 3. In the client device 3, if the Clock Class indicates that the local time of the Boundary Clock 100 is synchronized with the local time of the Grand Master Clock 2, the local time of the client device 3 is synchronized with the local time of the Boundary Clock 100. In addition, if the Clock Class indicates that the local time of the Boundary Clock 100 is not synchronized with the local time of the Grand Master Clock 2, the synchronization of the local time of the client device 3 with the local time of the Boundary Clock 100 is stopped.

[0035] When the failure location determining unit 110 receives the notification from the time deviation determining unit 107, it determines the location of the failure in time synchronization with the Grand Master Clock 2, which is the higher-level device, based on the transmission delay time calculated by the transmission delay time calculating unit 103.

[0036] The location of the time synchronization failure may be the GNSS antenna of the Grand Master Clock 2, the Grand Master Clock 2 itself, or the transmission path between the Grand Master Clock 2 and the Boundary Clock 100. If the failure occurs in the GNSS antenna, it may be that the Grand Master Clock 2 has been subjected to a signal attack such as jamming (interfering radio waves) or spoofing (impersonation). If the failure occurs in the Grand Master Clock 2 itself, it may be that some function in the Grand Master Clock 2 has broken down. If the failure occurs in the transmission path between the Grand Master Clock 2 and the Boundary Clock 100, it may be that, for example, a temporary cable abnormality has occurred. The failure location determination unit 110 determines whether the failure occurs in the Grand Master Clock 2 (the GNSS antenna of the Grand Master Clock 2 or the Grand Master Clock 2 itself) or in the transmission path between the Grand Master Clock 2 and the Boundary Clock 100. Details of the determination of the failure location by the failure location determination unit 110 will be described later.

[0037] When the failure location determination unit 110 determines that the location of the failure is the Grand Master Clock 2, it stops synchronizing the internal time of the client device 3 with the internal time of its own device. Specifically, the failure location determination unit 110 instructs the Clock Class rewriting unit 109 to rewrite the Clock Class so that the Clock Class indicates that the internal time of the Boundary Clock 100 is not synchronized with the internal time of the Grand Master Clock 2.

[0038] As described above, time offset determination section 107 and failure location determination section 110 constitute determination section 111. Therefore, determination section 111 determines the location of the failure in time synchronization with Grand Master Clock 2, which is a higher-level device, based on the offset and the transmission delay time, and when it determines that the failure is located in Grand Master Clock 2, stops synchronization of the internal time of client device 3, which is a lower-level device, with the internal time of its own device.

[0039] Next, the operation of the Boundary Clock 100 according to this embodiment will be described.

[0040] FIG. 2 is a flowchart showing an example of the operation of the Boundary Clock 100 according to this embodiment, and is a diagram for explaining a time synchronization method using the Boundary Clock 100.

[0041] The transmission delay time calculation unit 103 acquires a timestamp from a packet output from the packet transmission / reception unit 101, and calculates a transmission delay time (step S101).

[0042] The fault location determination unit 110 determines whether the transmission delay calculated by the transmission delay calculation unit 103 is greater than the second threshold TH2 stored in the threshold storage unit 106 (step S102). The second threshold TH2 is a threshold for determining whether the transmission delay has changed significantly. For example, when the Grand Master Clock 2 and the Boundary Clock 100 normally transmit and receive PTP packets within 10 ns, the second threshold TH2 is set to, for example, 10 ns. In this case, the fault location determination unit 110 sequentially determines whether the transmission delay is greater than 10 ns.

[0043] As described above, the second threshold TH2 may be set to an average value of data for a certain period of time. For example, the transmission delay time may be calculated every second for one minute after the start of PTP communication between the Grand Master Clock 2 and the Boundary Clock 100, and the average value of 60 pieces of data may be set as the second threshold TH2.

[0044] The failure location determining unit 110 counts the number of consecutive times that it is determined that the transmission delay time is greater than the second threshold value TH2. Hereinafter, this count value will be referred to as a transmission delay count.

[0045] If it is determined that the transmission delay time is greater than the second threshold TH2 (step S102: Yes), the fault location determination unit 110 increments the transmission delay count by 1 and turns on the transmission delay count flag managed by the transmission delay count flag unit 108 (step S103). If the transmission delay count flag is already on, the fault location determination unit 110 leaves the transmission delay count flag on. After the process of step S103, the process is repeated from step S101.

[0046] If it is determined that the transmission delay time is not greater than the second threshold TH2 (the transmission delay time is equal to or less than the second threshold TH2) (step S102: No), the fault location determination unit 110 sets the transmission delay count to 0 and turns off the transmission delay count flag (step S104). If the transmission delay time is equal to or less than the second threshold TH2, there is no abnormality in the transmission delay time, so the Boundary Clock 100 ends the process.

[0047] In parallel with the processes from step S101 to step S104 described above, the processes from step S105 onwards are carried out as described below.

[0048] The offset calculation unit 102 obtains a timestamp from the packet output from the packet transmission / reception unit 101, and calculates an offset (step S105).

[0049] The time lag determination unit 107 determines whether the absolute value of the offset calculated by the offset calculation unit 102 is greater than a first threshold TH1 stored in the threshold storage unit 106 (step S106). The first threshold TH1 is a threshold for determining whether the offset has changed significantly. For example, in normal cases, when the offset between the device time of Grand Master Clock 2 and the device time of Boundary Clock 100 is smaller than 1 ms, the first threshold TH1 is set to, for example, 1 ms. In this case, the time lag determination unit 107 sequentially determines whether the absolute value of the offset is greater than 1 ms.

[0050] As described above, the first threshold TH1 may be set to an average value of data for a certain period of time. For example, the offset may be calculated every second for one minute after the start of PTP communication between the Grand Master Clock 2 and the Boundary Clock 100, and the average value of 60 pieces of data may be set as the first threshold TH1.

[0051] If it is determined that the absolute value of the offset is not greater than the first threshold TH1 (the offset is equal to or smaller than the first threshold TH1) (step S106: No), there is no abnormality in the offset, so the Boundary Clock 100 ends the process.

[0052] If it is determined that the absolute value of the offset is greater than the first threshold TH1 (step S106: Yes), the time deviation determination unit 107 notifies the fault location determination unit 110 that the absolute value of the offset is greater than the first threshold TH1 (step 107). That is, the time deviation determination unit 107 notifies the fault location determination unit 110 of the occurrence of a fault in time synchronization between the internal time of the Grand Master Clock 2 and the internal time of the Boundary Clock 100 itself.

[0053] Upon receiving the notification from the time deviation determining unit 107, the failure point determining unit 110 determines whether or not the transmission delay count flag is on (step S108).

[0054] If it is determined that the transmission delay count flag is not on (the transmission delay count flag is off) (step S108: No), the failure location determining unit 110 ends the process.

[0055] If it is determined that the transmission delay count flag is on (step S108: Yes), the failure location determining unit 110 checks the transmission delay count (step S109).

[0056] If the transmission delay count is greater than 0 and is equal to or less than the third threshold TH3 stored in the threshold storage unit 106 (0<transmission delay count≦third threshold TH3), the fault location determination unit 110 repeats the process of step S109. The third threshold TH3 is a threshold for determining whether or not a change in the transmission delay time is temporary. The third threshold TH3 is set to, for example, 10 times. In this case, the fault location determination unit 110 determines whether or not the transmission delay time is greater than the second threshold TH2 (for example, 10 ms) 10 consecutive times.

[0057] If the failure location determining unit 110 determines that the transmission delay count is greater than the third threshold value TH3 (transmission delay count>third threshold value TH3), the failure location determining unit 110 ends the process.

[0058] FIG. 3A is a diagram for explaining a fluctuation in transmission delay time when a fault occurs in the transmission path between the Grand Master Clock 2 and the Boundary Clock 100. In FIG.

[0059] As shown in Fig. 3A, when a fault occurs in the transmission path between Grand Master Clock 2 and Boundary Clock 100, the time transmitted by Grand Master Clock 2 through PTP is correct, but the transmission delay time changes significantly due to the fault in the transmission path. In addition, since both the internal time of Grand Master Clock 2 and the internal time of Boundary Clock 100 remain correct and the fault remains in the transmission path, the transmission delay time does not return to the original value before the fault occurred but remains constant, as shown in Fig. 3A. Therefore, when the offset is larger than the first threshold TH1 and the transmission delay time does not return to the original value within a predetermined time (third threshold TH3) after it has significantly fluctuated (becomes larger than the second threshold TH2), the fault location determination unit 110 can determine that a fault has occurred in the transmission path between Grand Master Clock 2 and Boundary Clock 100.

[0060] If a fault occurs in the transmission path between Grand Master Clock 2 and Boundary Clock 100, both the internal time of Grand Master Clock 2 and the internal time of Boundary Clock 100 are correct, so there is no problem in synchronizing the internal time of client device 3 with the internal time of Boundary Clock 100. Therefore, when fault location determination unit 110 determines that the location of the fault is the transmission path between Grand Master Clock 2 and Boundary Clock 100, it continues to synchronize the internal time of client device 3 with the internal time of Boundary Clock 100 without rewriting the Clock Class.

[0061] 2 again, when the transmission delay count becomes 0 before it becomes larger than the third threshold value TH3, the failure location determination unit 110 determines that a failure has occurred in Grand Master Clock 2. Then, the failure location determination unit 110 notifies the Clock Class rewriting unit 109 that a failure has occurred in Grand Master Clock 2 (step S110). Upon receiving the notification from the failure location determination unit 110, the Clock Class rewriting unit 109 rewrites the Clock Class so that the Clock Class indicates that the internal time of Boundary Clock 100 is not synchronized with the internal time of Grand Master Clock 2. As a result, synchronization of the internal time of the client device 3 with the internal time of Boundary Clock 100 is stopped.

[0062] FIG. 3B is a diagram for explaining fluctuations in transmission delay time when a fault occurs in Grand Master Clock 2 (the GNSS antenna provided in Grand Master Clock 2 or Grand Master Clock 2 itself).

[0063] As shown in Fig. 3B, when a fault occurs in Grand Master Clock 2, the time transmitted from Grand Master Clock 2 by PTP is incorrect, and the transmission delay time changes significantly. However, after a while, the internal time of Boundary Clock 100 is synchronized with the incorrect time transmitted from Grand Master Clock 2, and the transmission delay time returns to the original value before the fault occurred. Therefore, the fault location determination unit 110 can determine that a fault has occurred in Grand Master Clock 2 when the offset is greater than the first threshold value TH1 and the transmission delay time returns to the original value within a predetermined time after a large fluctuation.

[0064] If a fault occurs in the Grand Master Clock 2, the time distributed from the Grand Master Clock 2 will be incorrect, and therefore, if the internal time of the client device 3 is synchronized with that time, adverse effects such as a system fault or a communication fault may occur. Therefore, when the fault location determination unit 110 determines that the location of the fault is the Grand Master Clock 2, it rewrites the Clock Class and stops synchronization of the internal time of the client device 3 with the internal time of the Boundary Clock 100.

[0065] 2, the third threshold TH3 is the number of times the transmission delay time is determined to be greater than the second threshold TH2, but the present invention is not limited to this. The third threshold TH3 may be the time during which the transmission delay time is consecutively determined to be greater than the second threshold TH2.

[0066] Thus, the time synchronization method according to this embodiment includes a step (step S105) in which the offset calculation unit 102 calculates an offset, which is the difference between the internal time of the Grand Master Clock 2, which is a higher-level device, and the internal time of the Boundary Clock 100, and a step (step S101) in which the transmission delay calculation unit 103 calculates the transmission delay time of packets transmitted and received between the Grand Master Clock 2 and the Boundary Clock 100. Furthermore, the time synchronization method according to this embodiment includes a step (step S110) in which the determination unit 111, which is composed of the time deviation determination unit 107 and the fault location determination unit 110, determines the location of the fault in the time synchronization with the Grand Master Clock 2 based on the offset and the transmission delay time.

[0067] Specifically, the determination unit 111 determines whether the offset is greater than the first threshold TH1 and whether the transmission delay time is greater than the second threshold TH2 (steps S102, S106). If the offset is greater than the first threshold TH1 (step S106: Yes) and the transmission delay time becomes equal to or less than the second threshold TH2 before the number of times or the time when the transmission delay time is determined to be greater than the second threshold TH2 becomes greater than the third threshold TH3 (transmission delay count=0 in step S109), the determination unit 111 determines that the location of the fault is the Grand Master Clock 2 and stops synchronization of the internal time of the client device 3 with the internal time of the Boundary Clock 100 (step S110).

[0068] In addition, when the number of times or the time during which the transmission delay time is determined to be greater than the second threshold value TH2 becomes greater than the third threshold value TH3 (transmission delay count>3 in step S109), the judgment unit 111 synchronizes the internal time of the client device 3 with the internal time of the Boundary Clock 100 without rewriting the Clock Class.

[0069] In FIG. 2, the clock class is rewritten after determining whether the number of times or the time when the transmission delay time is determined to be greater than the second threshold TH2 is greater than the third threshold TH3. Therefore, it takes time to switch whether or not to synchronize the internal time of the client device 3 with the internal time of the Boundary Clock 100. Therefore, the determination unit 111 may immediately rewrite the clock class when the transmission delay time becomes greater than the second threshold TH2, and rewrite (restore) the clock class again when it is determined that the fault occurs in the transmission path between the Grand Master Clock 2 and the Boundary Clock 100 (the fault does not occur in the Grand Master Clock 2). FIG. 4 is a flowchart showing an example of the operation of the Boundary Clock 100 when such a process is performed. In FIG. 4, the same processes as those in FIG. 2 are denoted by the same reference numerals, and the description thereof will be omitted.

[0070] Comparing Fig. 4 with Fig. 2, the processes of steps S110 and S111 are deleted, and the processes of steps S201, S202, and S203 are added. The following mainly describes the processes of steps S201, S202, and S203.

[0071] If the failure location determination unit 110 determines that the transmission delay time is greater than the second threshold value TH2 (step S102: Yes), it provisionally determines that a failure has occurred in Grand Master Clock 2. Then, the failure location determination unit 110 notifies the Clock Class rewriting unit 109 that a failure has occurred in Grand Master Clock 2 (step S201). Upon receiving the notification from the failure location determination unit 110, the Clock Class rewriting unit 109 rewrites the Clock Class so that the Clock Class indicates that the internal time of Boundary Clock 100 is not synchronized with the internal time of Grand Master Clock 2. As a result, synchronization of the internal time of the client device 3 with the internal time of Boundary Clock 100 is stopped.

[0072] The fault location determination unit 110 checks the transmission delay count (step S109), and if the transmission delay count becomes greater than the third threshold value TH3 (transmission delay count>third threshold value TH3), it determines that the fault has occurred in the transmission path between Grand Master Clock 2 and Boundary Clock 100 (the fault has not occurred in Grand Master Clock 2), and notifies the Clock Class rewriting unit 109 that no fault has occurred in Grand Master Clock 2 (step S202).

[0073] Upon receiving the notification from failure location determination section 110, Clock Class rewrite section 109 rewrites (restores) the Clock Class again (step S203). As a result, synchronization of the internal time of client device 3 with the internal time of Boundary Clock 100 is resumed.

[0074] As described above, if the transmission delay count becomes 0 before it exceeds the third threshold value TH3, the failure location determination unit 110 determines that a failure has occurred in the Grand Master Clock 2. In this case, since synchronization of the internal time of the client device 3 with the internal time of the Boundary Clock 100 has been stopped, the failure location determination unit 110 ends the process.

[0075] In this way, the determination unit 111, which is composed of the time offset determination unit 107 and the failure location determination unit 110, determines whether the offset is greater than the first threshold TH1 and whether the transmission delay time is greater than the second threshold TH2. If the transmission delay time is greater than the second threshold TH2, the determination unit 111 may stop synchronization of the internal time of the client device 3 with the internal time of the Boundary Clock 100. Furthermore, in a state in which synchronization of the internal time of the client device 3 with the internal time of the Boundary Clock 100 is stopped, if the number of times or the time during which it is determined that the offset is greater than the first threshold TH1 and the transmission delay time is greater than the second threshold TH2 becomes greater than a third threshold TH3, the determination unit 111 may synchronize the internal time of the client device 3 with the internal time of the Boundary Clock 100.

[0076] Thus, the Boundary Clock 100 as a time synchronization device according to this embodiment includes an offset calculation unit 102, a transmission delay calculation unit 103, and a determination unit 111. The offset calculation unit 102 calculates an offset, which is the difference between the internal time of the Grand Master Clock 2, which is a higher-level device, and the internal time of the device itself. The transmission delay calculation unit 103 calculates the transmission delay time of packets transmitted and received between the Grand Master Clock 2 and the Boundary Clock 100. The determination unit 111 determines the location of a failure in time synchronization with the Grand Master Clock 2 based on the offset and the transmission delay time, and if it determines that the failure is located in the Grand Master Clock 2, it stops synchronization of the internal time of the client device 3, which is a lower-level device, with the internal time of the device itself.

[0077] If the location of the failure is the Grand Master Clock 2, the time distributed from the Grand Master Clock 2 is incorrect. If the local device time of the local device is synchronized to that time and the local device time of the client device 3 is synchronized to the local device time of the local device, the incorrect time will be distributed to the client device 3. Therefore, in this embodiment, when the Boundary Clock 100 determines that the location of the failure is the Grand Master Clock 2 based on the offset and the transmission delay time, it stops synchronizing the local device time of the client device 3 with the local device time. In this way, when the local device time is synchronized to the time distributed from the higher-level device and the local device time of the lower-level device is synchronized to the local device time, it is possible to reduce the possibility of synchronizing the local device time of the lower-level device with an incorrect time.

[0078] In the present embodiment, the time synchronization device according to the present disclosure has been described by way of example as performing time synchronization between the Grand Master Clock 2 and the client device 3, but the present disclosure is not limited to this. The time synchronization device according to the present disclosure may also perform time synchronization between one Boundary Clock and another Boundary Clock, for example.

[0079] Next, the hardware configuration of the Boundary Clock 100 as the time synchronization device according to this embodiment will be described.

[0080] Fig. 5 is a diagram showing an example of the hardware configuration of the Boundary Clock 100 as a time synchronization device according to this embodiment. Fig. 5 shows an example of the hardware configuration of the Boundary Clock 100 when the Boundary Clock 100 is configured by a computer capable of executing program instructions. Here, the computer may be a general-purpose computer, a dedicated computer, a workstation, a PC (Personal computer), an electronic notepad, etc. The program instructions may be program code, code segments, etc. for performing necessary tasks.

[0081] 5, Boundary Clock 100 has processor 11, read only memory (ROM) 12, random access memory (RAM) 13, storage 14, input unit 15, display unit 16, and communication interface (I / F) 17. Each component is connected to each other via bus 19 so as to be able to communicate with each other. Processor 11 is specifically a central processing unit (CPU), a micro processing unit (MPU), a graphics processing unit (GPU), a digital signal processor (DSP), a system on a chip (SoC), etc., and may be composed of multiple processors of the same type or different types.

[0082] The processor 11 is a control unit that controls each component and executes various arithmetic processing. That is, the processor 11 reads a program from the ROM 12 or the storage 14, and executes the program using the RAM 13 as a working area. The processor 11 controls each component and executes various arithmetic processing according to the program stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores a program for causing a computer to function as the Boundary Clock 100 according to the present disclosure. The program is read and executed by the processor 11, thereby realizing each component of the Boundary Clock 100, that is, the offset calculation unit 102, the transmission delay time calculation unit 103, the time synchronization processing unit 104, the time deviation determination unit 107, the transmission delay count flag unit 108, the Clock Class rewriting unit 109, and the fault location determination unit 110.

[0083] The program may be provided in a form stored in 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 in a form downloaded from an external device via a network.

[0084] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data. The ROM 12 or the storage 14 stores, for example, the first threshold TH1, the second threshold TH2, and the third threshold TH3 described above.

[0085] The input unit 15 includes a pointing device such as a mouse, and a keyboard, and is used to perform various input operations.

[0086] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may function as the input unit 15 by adopting a touch panel system.

[0087] The communication interface 17 is an interface for communicating with other devices (eg, the Grand Master Clock 2 and the client device 3), and is, for example, an interface for a LAN.

[0088] A computer can be suitably used to function as each part of the above-mentioned Boundary Clock 100. Such a computer can be realized by storing a program describing the processing contents for realizing the functions of each part of Boundary Clock 100 in a memory unit 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 above-mentioned Boundary Clock 100. The program can also be recorded on a non-transitory storage medium. The program can also be provided via a network.

[0089] The following supplementary notes are further disclosed regarding the above embodiment.

[0090] [Additional note 1] A time synchronization device that synchronizes its own internal time with the internal time of a higher-level device and synchronizes the internal time of a lower-level device with the internal time of its own device by transmitting and receiving packets to and from the higher-level device, Memory, A control unit connected to the memory; Equipped with The control unit is Calculating an offset, which is a difference between the device time of the higher-level device and the device time of the own device; Calculating a transmission delay time of a packet transmitted and received between the higher-level device and the device itself; A time synchronization device that determines the location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and if it determines that the failure is occurring in the higher-level device, stops synchronization of the internal device time of the lower-level device with the internal device time of the device itself.

[0091] [Additional note 2] In the time synchronization device according to claim 1, The control unit determines whether the offset is greater than a first threshold and whether the transmission delay time is greater than a second threshold, and if the transmission delay time becomes equal to or less than the second threshold before the number of times or time that the offset is determined to be greater than the first threshold and the transmission delay time is determined to be greater than the second threshold becomes greater than a third threshold, stops synchronizing the internal time of the lower-level device with the internal time of the device itself.

[0092] [Additional note 3] In the time synchronization device according to claim 2, The control unit is a time synchronization device that synchronizes the internal time of the lower-level device with the internal time of the device itself when the number of times or the time during which the transmission delay time is determined to be greater than the second threshold value becomes greater than the third threshold value.

[0093] [Additional note 4] In the time synchronization device according to claim 1, the control unit determines whether the offset is greater than a first threshold value and whether the transmission delay time is greater than a second threshold value, and if the transmission delay time is greater than the second threshold value, stops synchronization of the device time of the lower-level device with the device time of the own device; a time synchronization device that synchronizes the internal time of the lower-level device with the internal time of the own device when synchronization of the internal time of the lower-level device with the internal time of the own device is stopped and the number of times or the time during which the offset is determined to be greater than the first threshold and the transmission delay time is determined to be greater than the second threshold becomes greater than the third threshold.

[0094] [Additional note 5] 1. A time synchronization method for synchronizing a device's internal time with a device's internal time of a higher-level device by transmitting and receiving packets to and from the higher-level device, and for synchronizing a device's internal time with the device's internal time, comprising: Calculating an offset, which is a difference between the device time of the higher-level device and the device time of the own device; Calculating a transmission delay time of a packet transmitted and received between the higher-level device and the device itself; A time synchronization method which determines the location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and if it is determined that the failure is occurring in the higher-level device, stops synchronization of the device time of the lower-level device with the device time of the own device.

[0095] [Additional note 6] A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to operate as the time synchronization device described in any one of appendix 1 to 4.

[0096] Although the above-mentioned embodiment has been described as a representative example, it is obvious to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiment, and various modifications or changes can be made without departing from the scope of the claims. For example, it is possible to combine multiple building blocks shown in the configuration diagram of the embodiment into one, or to divide one building block. [Explanation of symbols]

[0097] 1. Time Synchronization System 2 Grand Master Clock (higher-level device) 3 Client device (lower device) 11 Processors 12 ROM 13 RAM 14. Storage 15 Input section 16 Display section 17 Communication I / F 19 Bus 100 Boundary Clock (time synchronization device) 101,105 Packet transmission / reception unit 102 Offset Calculation Unit 103 Transmission Delay Time Calculation Unit 104 Time Synchronization Processing Unit 106 Threshold memory unit 107 Time difference judgement unit 108 Transmission Delay Count Flag 109 Clock Class Rewrite Unit 110 Fault location determination unit 111 Judgment section

Claims

1. A time synchronization device that synchronizes an internal time of its own device with an internal time of a higher-level device by transmitting and receiving packets to the higher-level device, and synchronizes an internal time of a lower-level device with the internal time of its own device, an offset calculation unit that calculates an offset, which is a difference between a device time of the higher-level device and a device time of the own device; a transmission delay time calculation unit that calculates a transmission delay time of a packet transmitted and received between the higher-level device and the device itself; a determination unit that determines a location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and when it determines that the location of the failure is the higher-level device, stops synchronization of the device time of the lower-level device with the device time of the own device; The determination unit determines whether the offset is greater than a first threshold and whether the transmission delay time is greater than a second threshold, and if the transmission delay time becomes equal to or less than the second threshold before the number of times or time that the offset is determined to be greater than the first threshold and the transmission delay time is determined to be greater than the second threshold becomes greater than a third threshold, the time synchronization device stops synchronizing the device time of the lower-level device with the device time of the own device.

2. 2. The time synchronization device according to claim 1, A time synchronization device in which the determination unit synchronizes the internal time of the lower-level device with the internal time of the device itself when the number of times or the time that the transmission delay time is determined to be greater than the second threshold becomes greater than the third threshold.

3. A time synchronization device that synchronizes an internal time of its own device with an internal time of a higher-level device by transmitting and receiving packets to the higher-level device, and synchronizes an internal time of a lower-level device with the internal time of its own device, an offset calculation unit that calculates an offset, which is a difference between a device time of the higher-level device and a device time of the own device; a transmission delay time calculation unit that calculates a transmission delay time of a packet transmitted and received between the higher-level device and the device itself; a determination unit that determines a location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and when it determines that the location of the failure is the higher-level device, stops synchronization of the device time of the lower-level device with the device time of the own device; the determination unit determines whether the offset is greater than a first threshold and whether the transmission delay time is greater than a second threshold, and if the transmission delay time is greater than the second threshold, stops synchronization of the device time of the lower-level device with the device time of the own device; A time synchronization device that synchronizes the internal time of the lower-level device with the internal time of its own device when synchronization of the internal time of the lower-level device with the internal time of its own device is stopped and the number of times or time that the offset is determined to be greater than the first threshold and the transmission delay time is determined to be greater than the second threshold becomes greater than a third threshold.

4. 1. A time synchronization method for synchronizing a device's internal time with a device's internal time of a higher-level device by transmitting and receiving packets to and from the higher-level device, and for synchronizing a device's internal time with the device's internal time, comprising: calculating an offset which is a difference between a device time of the higher-level device and a device time of the own device; calculating a transmission delay time of a packet transmitted and received between the higher-level device and the own device; determining a location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and if it is determined that the failure is occurring in the higher-level device, stopping synchronization of the device time of the lower-level device with the device time of the own device; A time synchronization method comprising: determining whether the offset is greater than a first threshold and whether the transmission delay time is greater than a second threshold; and stopping synchronization of the internal time of the lower-level device with the internal time of the device itself if the transmission delay time becomes equal to or less than the second threshold before the number of times or time that it is determined that the offset is greater than the first threshold and the transmission delay time is greater than the second threshold becomes greater than a third threshold.

5. A time synchronization method for synchronizing a device's internal time with a device's internal time of a higher-level device by transmitting and receiving packets to and from the higher-level device, and for synchronizing a device's internal time with the device's internal time of the higher-level device, comprising: calculating an offset which is a difference between a device time of the higher-level device and a device time of the own device; calculating a transmission delay time of a packet transmitted and received between the higher-level device and the own device; determining a location of a failure in time synchronization with the higher-level device based on the offset and the transmission delay time, and if it is determined that the failure is occurring in the higher-level device, stopping synchronization of the device time of the lower-level device with the device time of the own device; determining whether the offset is greater than a first threshold and whether the transmission delay time is greater than a second threshold, and if the transmission delay time is greater than the second threshold, stopping synchronization of the device time of the lower-level device with the device time of the own device; A time synchronization method, in which, when synchronization of the internal time of the lower-level device with the internal time of the own device is stopped, the number of times or the time during which the offset is determined to be greater than the first threshold and the transmission delay time is determined to be greater than the second threshold becomes greater than a third threshold, the method synchronizes the internal time of the lower-level device with the internal time of the own device.

6. A program for causing a computer to operate as the time synchronization device according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Communication control device and communication system

    JP2014183386A

  • Time synchronization system, master unit and slave unit, and time synchronization method

    JP2015216438A