Time synchronization device, time synchronization method, and computer-readable recording medium

By using a jump amplitude counter and a calculation unit in the time synchronization device to adjust the time synchronization, the problems of time synchronization errors and fluctuations in multi-level connection network equipment systems are solved, and higher time synchronization accuracy and stability are achieved.

CN115769540BActive Publication Date: 2024-09-13MITSUBISHI ELECTRIC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080102212.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2024-09-13
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

In a multi-level connection network equipment system, the gPTP time synchronization protocol causes time stamp errors and fluctuations in transmission delay dwell time measurements due to marking granularity, making time synchronization errors and error fluctuations difficult to control.

Method used

The time synchronization device receives multiple time corresponding information, and uses the jump amplitude counter and the jump amplitude calculation unit to calculate and adjust the current time to reduce errors and fluctuations and achieve time synchronization. The device includes a time management unit, a counter storage unit and a jump amplitude calculation unit, and ensures the accuracy of time synchronization through jump amplitude counter recording and translation.

Benefits of technology

It effectively reduces time synchronization errors and error fluctuations caused by marking errors, and improves time synchronization accuracy and stability in multi-level connection network equipment systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115769540B
    Figure CN115769540B
Patent Text Reader

Abstract

The time synchronization device (10) comprises a time management unit (144), a jump width counter (145) and a jump width calculation unit (142). The time management unit (144) manages the device time corresponding to the current time. The jump width counter (145) records the jump width, which is the difference between the time indicated by the received information and the device time. When the degree of the jump width counter (145) corresponding to the jump width corresponding to the latest received time is the largest among the degrees respectively indicated by the jump width counter (145), the jump width calculation unit (142) synchronizes the device time with the latest received time corresponding to the latest received information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a time synchronization device, a time synchronization method and a computer-readable recording medium. Background Art

[0002] Regarding the communication protocol for synchronizing time between devices via a network, there is gPTP (generalized Precision Time Protocol). gPTP is specified by IEEE (Institute of Electrical and Electronics Engineers) P802.1AS-Rev / D8.0 (Non-patent Document 1). In gPTP, by exchanging timestamps marked in each device between devices, the transmission delay between devices and the frame retention time within the device are measured, and the time synchronization with an accuracy of less than microseconds is achieved between devices.

[0003] Prior art literature

[0004] Non-patent literature

[0005] Non-patent document 1: Time-Sensitive Networking Task Group of IEEE 802.1, "IEEEP802.1AS-Rev / D8.0 Draft Standard for Local and Metropolitan Area NetworksTiming and Synchronization for Time-Sensitive Applications", the Institute of Electrical and Electronics Engineers, January 2019 Summary of the invention

[0006] Problems to be solved by the invention

[0007] In gPTP, control frames are exchanged between adjacent devices to synchronize time between devices. Each device marks the reception time and transmission time of the control frame, and stores the timestamps of the marked reception time and transmission time in the control frame, thereby measuring the transmission delay between devices and the frame retention time in the device, and synchronizing time between devices via the network.

[0008] However, due to the tag granularity of each device, an error (hereinafter referred to as a tag error) is generated in the obtained timestamp, so the measured value fluctuates every time the transmission delay and retention time are measured. For example, the timestamp obtained by a device with a tag granularity of 8ns contains a positive error of up to 7.9999…ns from the time when the control frame is actually sent or the time when the control frame is actually received. Therefore, each measured value of the transmission delay and retention time contains an error that fluctuates in the range of about -8ns to about +8ns. In the worst case, every time the control frame is relayed to the device, the error contained in the transmission delay and retention time accumulates in a single direction of the positive direction or the negative direction. Therefore, in a system consisting of multi-stage connected network devices, it is necessary to reduce errors and suppress error fluctuations.

[0009] An object of the present invention is to reduce the error in time synchronization and the fluctuation of the error caused by a marking error in a system consisting of multi-stage connected network devices.

[0010] Means for solving problems

[0011] The time synchronization device of the present invention receives multiple information respectively including time corresponding information as multiple received information, wherein the time corresponding information is information used to calculate the moment equivalent to the current moment, that is, the current equivalent moment, and the current moment represents the current moment and is a moment that changes with the passage of time, wherein the time synchronization device comprises: a time management unit, which manages and maintains the current equivalent moment as the device moment; a counter storage unit, which stores a jump amplitude counter, wherein the jump amplitude counter sets the latest received information of the time synchronization device among the multiple received information as the latest received information, and after aggregating more than one received information other than the latest received information into past received information, one or more individual counters are generated according to the granularity corresponding to the moment, that is, the counter granularity, and the jump amplitude counter converts more than one jump amplitude into degrees and records them respectively. One or more counters are generated, wherein the one or more jump amplitudes respectively represent the difference between the current equivalent moment calculated using the moment corresponding information respectively included in the past reception information and the device moment corresponding to the time point when the past reception information was received by the moment synchronization device; and a jump amplitude calculation unit, which sets the current equivalent moment calculated using the moment corresponding information included in the latest reception information as the latest reception moment, calculates the jump amplitude representing the difference between the latest reception moment and the device moment corresponding to the time point when the latest reception information is received as the calculated jump amplitude, sets the counter of the jump amplitude counter corresponding to the calculated jump amplitude as a selection counter, increases the degree of the selection counter by 1, and synchronizes the current device moment with the moment corresponding to the latest reception moment when the degree represented by the selection counter is considered to be the largest among the degrees represented by the jump amplitude counters.

[0012] Effects of the Invention

[0013] According to the time synchronization device of the present invention, in a system formed by connecting network devices in multiple stages, it is possible to reduce the error in time synchronization caused by a marker error and the fluctuation of the error. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is an example of the functional configuration of the time synchronization device 10 according to the first embodiment.

[0015] Figure 2 This is a sequence diagram showing an example in which the time synchronization device 10 according to Embodiment 1 receives information based on gPTP.

[0016] Figure 3 This is an example of the jump width in the first embodiment.

[0017] Figure 4This is a hardware configuration example of the time synchronization device 10 according to the first embodiment.

[0018] Figure 5 This is a flowchart showing the operation of the time synchronization device 10 according to the first embodiment.

[0019] Figure 6 This is a diagram for explaining the operation of the time synchronization device 10 according to the first embodiment.

[0020] Figure 7 This is a hardware configuration example of the time synchronization device 10 according to a modification of the first embodiment. DETAILED DESCRIPTION

[0021] In the description of the embodiments and the drawings, the same reference numerals are used to denote the same elements and corresponding elements. The description of the elements marked with the same reference numerals is appropriately omitted or simplified. The arrows in the drawings mainly indicate data flows or process flows.

[0022] Implementation Method 1

[0023] Hereinafter, this embodiment will be described in detail with reference to the drawings.

[0024] ***Description of the structure***

[0025] Figure 1 The following is a functional configuration example of a time synchronization device 10 according to Embodiment 1. As shown in this figure, the time synchronization device 10 includes a communication interface unit 11 , an L2 (layer 2) protocol processing unit 13 , and a time synchronization unit 14 .

[0026] The communication interface unit 11 is an interface for sending and receiving communication frames with adjacent devices. The communication interface unit 11 receives multiple information as multiple received information. That is, the time synchronization device 10 receives multiple information as multiple received information. The multiple information respectively includes time corresponding information. The time corresponding information is information used to calculate the current equivalent time. The current equivalent time is a time equivalent to the current time, which indicates the current time and is a time that changes with the passage of time. The current equivalent time is a time that a computer or other device regards as the current time. The current equivalent time may be a strict current time, and may not be a strict current time.

[0027] The time synchronization device 10 may include several communication interface units 11. Figure 1 In FIG. 1 , the time synchronization device 10 includes two communication interfaces 11. In order to distinguish between the two communication interfaces 11, they are referred to as a communication interface 11_1 and a communication interface 11_2.

[0028] The L2 protocol processing unit 13 analyzes the frame received by the communication interface unit 11 and passes the reception time information to the time synchronization unit 14. The reception time information is data required by the time synchronization unit 14 to synchronize the time. As a specific example, the reception time information is a PTP (Precision Time Protocol) parameter, a reception timestamp, and a transmission timestamp. The reception timestamp indicates the time when the time synchronization device 10 receives the data. The transmission timestamp indicates the time when other devices transmit the data.

[0029] The L2 protocol processing unit 13 may pass the PTP parameters to the time synchronization unit 14 as received PTP parameters.

[0030] The time synchronization unit 14 includes a PTP parameter calculation unit 141 , a jump width calculation unit 142 , a synchronization determination unit 143 , a time management unit 144 , and a counter storage unit 150 .

[0031] The time synchronization unit 14 calculates the time at which the time synchronization device 10 is synchronized based on the information received from the L2 protocol processing unit 13 .

[0032] The PTP parameter calculation unit 141 calculates the time indicated by the reception time information using the reception time information in accordance with gPTP (generalized Precision Time Protocol).

[0033] The PTP parameter calculation unit 141 is also called a precision time protocol parameter calculation unit. The plurality of received information may also include information based on the generalized precision time protocol as the time correspondence information. In this case, the time synchronization device 10 calculates the current equivalent time corresponding to the time correspondence information respectively included in the plurality of received information according to the generalized precision time protocol using the time correspondence information respectively included in the plurality of received information.

[0034] The PTP parameter calculation unit 141 delivers the PTP parameters as transmission PTP parameters to the L2 protocol processing unit 13. The transmission PTP parameters may be parameters obtained by combining the data output by the PTP parameter calculation unit 141 and the data output by the time management unit 144.

[0035] Figure 2 1 is a sequence diagram showing an example in which the time synchronization device 10 receives information including information based on gPTP as time correspondence information. The information received by the time synchronization device 10 will be described with reference to this diagram.

[0036] This example corresponds to the case where multiple network devices are connected in multiple stages. In this figure, the basic host is responsible for the "current moment". The "current moment" may not be the strict current moment. The basic host and the time synchronization device 10 cannot communicate directly. There may also be more than one device between the basic host and the adjacent device. The basic host sends information corresponding to the "current moment" to other devices. The adjacent device directly or indirectly receives the information corresponding to the "current moment" from the basic host, and synchronizes with the "current moment" corresponding to the received information. At this time, usually, the "current moment" corresponding to the information sent by the basic host and the "current moment" synchronized by the adjacent device are different mainly due to the marking granularity of each device. That is, the time synchronization device 10 may not be able to synchronize with the "current moment" responsible for the basic host. The adjacent device communicates directly with the time synchronization device 10. The time synchronization device 10 uses "SYNC", "FOLLOW UP", "DELAY REQUEST" and "DELAY RESPONSE" to calculate the current equivalent moment. The information can also be information summarized into one. In addition, in this figure, the three points arranged in a row indicate that the middle is omitted.

[0037] The jump width calculation unit 142 calculates the jump width. The jump width is the difference between the time calculated by the PTP parameter calculation unit 141 and the time stored by the time management unit 144. The jump width may also be a negative value. Any time may be a time taking into account the time elapsed from the calculated time point or the acquired time point.

[0038] The jump width calculation unit 142 calculates the jump width representing the difference between the latest reception time and the device time corresponding to the time point when the latest reception information is received as the calculated jump width. Here, the reception information that is most recently received by the time synchronization device 10 among the multiple reception information is set as the latest reception information. One or more reception information other than the latest reception information among the multiple reception information is aggregated into the past reception information. The latest reception time is the current equivalent time calculated using the time corresponding information included in the latest reception information. The latest reception time is not limited to the time when the latest reception information is sent or the time when the time synchronization device 10 receives the latest reception information. The jump width calculation unit 142 sets the counter of the jump width counter 145 corresponding to the calculated jump width as the selection counter, and increases the degree of the selection counter by 1. When it is considered that the degree represented by the selection counter is the largest among the degrees represented by the jump width counter 145, the jump width calculation unit 142 synchronizes the current device time with the time corresponding to the latest reception time. The device time corresponding to the time point when the latest reception information is received is the time compared with the time calculated based on the latest reception information. As a specific example, the device time corresponding to the time point when the latest received information is received is the device time when the latest received information is received or the device time when the latest received information is sent. As a specific example, the time corresponding to the latest received time is the time calculated based on the latest received time in consideration of the time elapsed from the time when the latest received information is received to the present.

[0039] The jump width calculation unit 142 performs count control and parallel movement control. The count control is to control the count value of the jump width counter 145. The parallel movement control is to appropriately parallel move the entire jump width counter 145 along the axis.

[0040] When the frequency indicated by the counter of the skip width counter 145 corresponding to the calculated skip width is considered to be the largest among the frequencies indicated by the skip width counters 145 , the skip width calculator 142 moves the entire skip width counter 145 in parallel so as to consider that the skip width is not calculated.

[0041] Figure 3 An example of a jump width is shown. The jump width is explained with reference to this figure.

[0042] In this figure, the device time and the latest reception time are recorded with a granularity of 0.1ns respectively. The difference between the device time and the latest reception time is 1.5ns, which is the jump width. One column of the table of the jump width counter 145 corresponds to one counter. The jump width counter 145 has counter 1, counter 2 and counter 3 as individual counters. Each counter of the jump width counter 145 corresponds to the case where the counter granularity is 1ns. That is, each counter of the jump width counter 145 corresponds to a time range of 1ns. The number of counters of the jump width counter 145 can also be appropriately increased or decreased.

[0043] When the device time and the latest reception time are as shown in this figure, first, the jump width calculation unit 142 calculates 1.5 ns as the calculated jump width. Next, the jump width calculation unit 142 causes the counter 2 to count up.

[0044] The synchronization determination unit 143 receives the count value from the jump width counter 145. The synchronization determination unit 143 determines whether the synchronization is synchronized with the time most recently calculated by the PTP parameter calculation unit 141 based on the jump width counter 145.

[0045] The synchronization determination unit 143 determines whether the number of degrees indicated by the counter of the jump width counter 145 corresponding to the calculated jump width is regarded as the largest among the numbers of degrees respectively indicated by the jump width counter 145. The synchronization determination unit 143 may regard the number of degrees indicated by the counter of the jump width counter 145 corresponding to the calculated jump width as the largest among the numbers of degrees respectively indicated by the jump width counter 145 when the number of degrees indicated by the counter of the jump width counter 145 corresponding to the calculated jump width is the largest among the numbers of degrees respectively indicated by the jump width counter 145.

[0046] The time management unit 144 holds the time of the time synchronization device 10. The time of the time synchronization device 10 is referred to as the device time. The device time is the time held as the current time by the time synchronization device 10. The time management unit 144 manages and holds the current time as the device time.

[0047] As a specific example, the time management unit 144 calculates the clock ratio between the base host and the time synchronization device 10 according to gPTP, corrects the device time based on the clock ratio, and advances the device time.

[0048] In addition, the device time may be handed over to the L2 protocol processing unit 13, stored in the PTP control frame, and sent from the communication interface unit 11 to other devices.

[0049] The counter storage unit 150 stores the jump width counter 145 .

[0050] The jump width counter 145 is a counter for recording the jump width calculated by the jump width calculation unit 142. Typically, the jump width counter 145 is a set of multiple counters. When the jump width is within a specified range, one jump width counter 145 counts up. The granularity of the jump width corresponding to the jump width counter 145 can be arbitrary.

[0051] The jump width counter 145 is one or more individual counters that convert one or more jump widths into degrees and record them. One counter corresponds to a certain time range and records the degrees within the certain time range. The time ranges corresponding to the one or more individual counters are different from each other and do not overlap with each other. The one or more jump widths respectively represent the difference between the current equivalent time calculated using the time corresponding information respectively included in the past reception information and the device time corresponding to the time point when the time synchronization device 10 receives the past reception information respectively. The device time corresponding to the time point when the past reception information is respectively received is the same as the device time corresponding to the time point when the latest reception information is received. The jump width counter 145 is one or more individual counters generated based on the granularity corresponding to the time, that is, the counter granularity. The jump width counter 145 at a certain time point represents the distribution of the difference between the time corresponding to the past reception information and the device time at the certain time point by degrees. The time corresponding to the past reception information is the current equivalent time calculated based on the past reception information, and is the current equivalent time at the certain time point.

[0052] As a specific example, the jump width counter 145 is composed of a plurality of counters based on a specified granularity. The specified granularity is also referred to as the counter granularity. At this time, as a specific example, the jump width counter 145 includes a counter that counts up when the jump width is greater than 8ns and less than 9ns, a counter that counts up when the jump width is greater than 9ns and less than 10ns, ... In this example, the initial values ​​of all counters are 0.

[0053] exist Figure 2 In the example of , the 4 pieces of information recorded in the lower part are the latest received information, and the information received before the latest received information is the past received information. In this figure, the latest received information and the past received information each contain "DELAY REQUEST", but the latest received information and the past received information each may not contain "DELAY REQUEST". In addition, when calculating the latest received time, information other than the information constituting the latest received information may also be used.

[0054] The hardware for realizing the time synchronization device 10 will be described. The time synchronization device 10 is constituted by a computer. The time synchronization device 10 may also be constituted by a plurality of computers.

[0055] Figure 4 FIG. 1 shows an example of a hardware configuration of the time synchronization device 10 . As shown in this figure, the time synchronization device 10 can be realized by a processor 101 , a memory 102 , and data transfer hardware 104 . These hardware are connected via a bus 103 .

[0056] The processor 101 is an IC (Integrated Circuit) that performs arithmetic processing and controls the hardware of the computer. As a specific example, the processor 101 is a CPU (Central Processing Unit; also called a central processing device, a processing device, a computing device, a processor, a microprocessor, a microcomputer, a Digital Signal Processor, a system LSI (Large Scale Integration).

[0057] The time synchronization device 10 may include a plurality of processors instead of the processor 101. The plurality of processors share the role of the processor 101.

[0058] The memory 102 is a storage device. As a specific example, the memory 102 is a nonvolatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), a magnetic disk, a floppy disk, an optical disk, a high-density disk, a mini disk, a DVD (Digital Versatile Disc), or a combination of several of them. The memory 102 can also be divided into a main storage device and an auxiliary storage device.

[0059] The data transfer hardware 104 is a receiver and a transmitter. As a specific example, the data transfer hardware 104 is a communication chip or a NIC (Network Interface Card).

[0060] The communication interface unit 11 is implemented by the data transfer hardware 104 .

[0061] The L2 protocol processing unit 13 and the time synchronization unit 14 are implemented by hardware, software, firmware, or a combination thereof. The software and firmware are described as programs and stored in the memory 102 .

[0062] When the L2 protocol processing unit 13 and the time synchronization unit 14 are implemented by software or firmware, the L2 protocol processing unit 13 and the time synchronization unit 14 are implemented by reading and executing the time synchronization program from the memory 102. That is, the time synchronization device 10 has the memory 102 for storing a program that, when the processor 101 executes its functions, results in executing steps to implement the operations of the L2 protocol processing unit 13 and the time synchronization unit 14. The time synchronization program is a program that causes the processor 101 to operate as the L2 protocol processing unit 13 and the time synchronization unit 14, respectively.

[0063] The data used when executing the time synchronization program and the data obtained by executing the time synchronization program are appropriately stored in the storage device. Each part of the time synchronization device 10 appropriately uses the storage device. As a specific example, the storage device is composed of at least one of the memory 102, the register in the processor 101, and the cache memory in the processor 101. In addition, data and information sometimes have the same meaning. The storage device can also be independent of the computer.

[0064] The function of the memory 102 may also be implemented by other storage devices.

[0065] The time synchronization program may also be recorded in a non-volatile recording medium that can be read by a computer. As a specific example, the non-volatile recording medium is an optical disk or a flash memory. The time synchronization program may also be provided as a program product.

[0066] ***Description of the action***

[0067] The operation sequence of the time synchronization device 10 corresponds to the time synchronization method. In addition, the program for realizing the operation of the time synchronization device 10 corresponds to the time synchronization program.

[0068] Figure 5 1 is a flowchart showing a specific example of the processing flow of the time synchronization device 10. The time synchronization device 10 reduces the error of time synchronization and the fluctuation of the error by executing this processing flow. Reducing the fluctuation of the error means reducing the dispersion of the error.

[0069] (Step S11)

[0070] The L2 protocol processing unit 13 extracts reception time information from the frame received by the communication interface unit 11 .

[0071] The PTP parameter calculation unit 141 calculates the reception time and determines whether the information including the reception time information is received from another device for the first time. The reception time is the time indicated by the reception time information.

[0072] When the time synchronization device 10 receives information including reception time information from another device for the first time, the process proceeds to step S12. In all other cases, the process proceeds to step S13.

[0073] (Step S12)

[0074] The time management unit 144 synchronizes the device time with the reception time. The time management unit 144 updates the device time to the reception time.

[0075] (Step S13)

[0076] The jump width calculation unit 142 calculates the jump width corresponding to the reception time information using the device time and the reception time. In the following description of this flowchart, the jump width calculated in this step is referred to as the calculated jump width.

[0077] (Step S14)

[0078] The jump width calculation unit 142 counts up the counter of the jump width counter 145 corresponding to the calculated jump width.

[0079] The jump width calculation unit 142 counts up the counter of the jump width counter 145 as shown in [Formula 1]. In [Formula 1], the counter [Calculated Jump Width] is the counter of the jump width counter 145 corresponding to the calculated jump width. The calculated jump width may be a negative value, or may represent a range including the jump width value calculated by the jump width calculation unit 142. In [Formula 1] and Figure 5 In the expression, “=” indicates substitution.

[0080] [Mathematical formula 1]

[0081] Counter [calculated jump amplitude] = counter [calculated jump amplitude] + 1

[0082] (Step S15)

[0083] The synchronization determination unit 143 determines whether to synchronize the device time with the reception time.

[0084] If the value of the counter [calculated jump width] is not the largest among all counter values, that is, if the error included in the received time is estimated not to be the smallest, the time synchronization device 10 ends the processing of this flowchart. All counters refer to all counters constituting the jump width counter 145 .

[0085] In other cases, that is, when the value of the counter [calculated jump width] is the maximum degree, the time synchronization device 10 proceeds to step S16.

[0086] (Step S16)

[0087] This step is the same as step S12.

[0088] (Step S17)

[0089] The jump width calculation unit 142 moves the jump widths corresponding to all the counters in parallel along the axis so as to regard that there is no jump width corresponding to the counter [calculated jump width]. The direction of the parallel movement can be a positive direction or a negative direction. Considering that there is no jump width includes actually having no jump width and substantially having no jump width.

[0090] Figure 6 This is a diagram for explaining an example of the processing of the time synchronization unit 14. The diagram shown on the left corresponds to before the jump width counter 145 is parallelized, and the diagram shown on the right corresponds to after the jump width counter 145 is parallelized. In this figure, the vertical axis represents the value of the counter, New represents the latest upward count, and the horizontal axis [m to (m+1)] (m is an integer) means more than mns and less than (m+1)ns. m to (m+1) corresponds to the jump width. The graph shown in this figure represents the count value of each counter [m to (m+1)].

[0091] In this example, the jump width is calculated to be greater than 3ns and less than 4ns, so counter [3-4] counts up. As a result, the value of counter [3-4] is the largest among all the counter values. Therefore, the jump width calculation unit 142 makes all counters move in parallel in the negative direction so that counter [3-4] becomes counter [0-1]. Through this parallel movement, it is considered that counter [3-4] before the parallel movement has no jump width. In addition, in this example, when the jump width is greater than 0ns and less than 1ns, it is considered that there is no jump width.

[0092] ***Description of the Effects of Implementation Method 1***

[0093] As described above, when the jump width corresponding to the receiving time corresponds to the maximum degree, the time synchronization device 10 synchronizes the device time with the receiving time. In this case, it is estimated that the error contained in the receiving time is the smallest. Here, when all the receiving times are considered, it can be considered that the proportion of the receiving time with less error becomes relatively high in the long run. Therefore, according to the time synchronization device 10 of this embodiment, the following effect can be obtained: in a system composed of multi-stage connected network devices, as the time of the operating system passes, the accuracy of the time synchronization is improved, and the time is stable within the range of small synchronization error.

[0094] Therefore, according to the time synchronization device 10 of the present embodiment, in a system in which network devices are connected in multiple stages, it is possible to reduce the time synchronization error and the fluctuation of the error due to the marker error.

[0095] ***Other structures***

[0096] <Modification 1>

[0097] It is also possible that when the counter of the jump amplitude counter 145 corresponding to the calculated jump amplitude and the counter of the jump amplitude counter 145 corresponding to the largest degree among the degrees respectively represented by the jump amplitude counter 145 are adjacent to each other, the synchronization determination unit 143 regards that the degree represented by the counter of the jump amplitude counter 145 corresponding to the calculated jump amplitude is the largest among the degrees respectively represented by the jump amplitude counter 145.

[0098] In step S15, when the counter [calculated jump width] is near the maximum degree, the time synchronization device 10 may also proceed to step S16. As a specific example, when the counter of the jump width counter 145 corresponding to the calculated jump width and the counter of the jump width counter 145 corresponding to the maximum degree among the degrees respectively represented by the jump width counter 145 are adjacent, the counter [calculated jump width] is near the maximum degree. As a specific example, when considering two counters, when the lower limit of the time range corresponding to one counter and the upper limit of the time range corresponding to the other counter are continuous, the two counters are adjacent. That is, when considering Figure 6 In the bar graph corresponding to this example shown, the two bars corresponding to these two counters are adjacent.

[0099] <Modification 2>

[0100] Even when the value of the counter [calculation jump width] is the maximum number, the time synchronization device 10 does not need to execute the processing of step S16 and step S17 if it is considered that there is no jump width of the counter [calculation jump width].

[0101] <Variation 3>

[0102] Figure 7 A hardware configuration example of the time synchronization device 10 according to this modification is shown.

[0103] As shown in this figure, the time synchronization device 10 includes a processing circuit 108 instead of at least one of the processor 101 and the memory 102 .

[0104] The processing circuit 108 is hardware that realizes at least a part of each unit included in the time synchronization device 10 .

[0105] The processing circuit 108 may be dedicated hardware, or may be a processor that executes a program stored in the memory 102 .

[0106] When the processing circuit 108 is dedicated hardware, as a specific example, the processing circuit 108 is a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (ASIC is Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or a combination thereof.

[0107] The time synchronization device 10 may include a plurality of processing circuits instead of the processing circuit 108. The plurality of processing circuits share the role of the processing circuit 108.

[0108] In the time synchronization device 10 , part of the functions may be implemented by dedicated hardware, and the remaining functions may be implemented by software or firmware.

[0109] As a specific example, the processing circuit 108 is implemented by hardware, software, firmware, or a combination thereof.

[0110] The processor 101, the memory 102, and the processing circuit 108 are collectively referred to as a “processing circuit.” That is, the functions of the L2 protocol processing unit 13 and the time synchronization unit 14 can also be implemented by the processing circuit.

[0111] ***Other Implementations***

[0112] Embodiment 1 has been described, but multiple parts of this embodiment may be implemented in combination. Alternatively, a part of this embodiment may be implemented. In addition, this embodiment may be modified in various ways as needed, and may be implemented in any combination as a whole or in part.

[0113] The above-described embodiments are merely preferred examples in nature and are not intended to limit the scope of the present invention, its applications, and uses. The order of the description using flowcharts and the like may be changed as appropriate.

[0114] Description of symbols

[0115] 10: time synchronization device; 11: communication interface unit; 13: L2 protocol processing unit; 14: time synchronization unit; 141: PTP parameter calculation unit; 142: jump width calculation unit; 143: synchronization determination unit; 144: time management unit; 145: jump width counter; 150: counter storage unit; 101: processor; 102: memory; 103: bus; 104: data transfer hardware; 108: processing circuit.

Claims

1. A time synchronization device, the time synchronization device receiving a plurality of information including time corresponding information as a plurality of received information, wherein the time corresponding information is information for calculating a time equivalent to a current time, that is, a current equivalent time, wherein the current time indicates the current time and is a time that changes with the passage of time, wherein: The time synchronization device comprises: a time management unit that manages and maintains the current equivalent time as a device time; A counter storage unit storing a jump width counter, wherein the jump width counter is one or more counters generated according to a granularity corresponding to a time, i.e., a counter granularity, after setting the latest received information of the time synchronization device among the multiple received information as the latest received information and aggregating one or more received information other than the latest received information into past received information, and the jump width counter is one or more counters generated by converting one or more jump widths into degrees and recording them, and the one or more jump widths respectively represent the difference between the current equivalent time calculated using the time corresponding information respectively included in the past received information and the device time corresponding to the time point when the past received information was respectively received by the time synchronization device; as well as A jump width calculation unit, which sets the current equivalent moment calculated using the moment corresponding information included in the latest received information as the latest received moment, calculates the jump width representing the difference between the latest received moment and the device moment corresponding to the time point when the latest received information is received as the calculated jump width, sets the counter of the jump width counter corresponding to the calculated jump width as a selection counter, increases the degree of the selection counter by 1, and synchronizes the current device moment with the moment corresponding to the latest received moment when the degree represented by the selection counter is deemed to be the largest among the degrees represented by the jump width counters.

2. The time synchronization device according to claim 1, wherein: The time synchronization device includes a synchronization determination unit configured to determine whether the frequency indicated by the counter of the jump width counter corresponding to the calculated jump width is the largest among the frequencies indicated by the jump width counters.

3. The time synchronization device according to claim 2, wherein: When the degree indicated by the counter of the jump width counter corresponding to the calculated jump width is the largest among the degrees indicated by the jump width counters respectively, the synchronization determination unit regards the degree indicated by the counter of the jump width counter corresponding to the calculated jump width as the largest among the degrees indicated by the jump width counters respectively.

4. The time synchronization device according to claim 2, wherein: When the counter of the jump width counter corresponding to the calculated jump width and the counter of the jump width counter corresponding to the largest degree among the degrees respectively represented by the jump width counter are adjacent to each other, the synchronization judgment unit regards that the degree represented by the counter of the jump width counter corresponding to the calculated jump width is the largest among the degrees respectively represented by the jump width counter.

5. The time synchronization device according to any one of claims 1 to 4, wherein: When the frequency indicated by the counter of the jump width counter corresponding to the calculated jump width is considered to be the largest among the frequencies indicated by the jump width counters, the jump width calculation unit moves the entire jump width counter in parallel so as to consider that there is no calculated jump width.

6. The time synchronization device according to any one of claims 1 to 5, wherein: The plurality of received information respectively include information based on the generalized precision time protocol as the time corresponding information, The time synchronization device includes a precision time protocol parameter calculation unit that calculates a current equivalent time corresponding to the time correspondence information respectively included in the plurality of received information according to the generalized precision time protocol using the time correspondence information respectively included in the plurality of received information.

7. A time synchronization method in a time synchronization device, the time synchronization device receiving a plurality of information including time corresponding information as a plurality of received information, wherein the time corresponding information is information for calculating a time equivalent to a current time, that is, a current equivalent time, wherein the current time indicates the current time and is a time that changes with the passage of time, wherein: The time management unit manages and maintains the current equivalent time as the device time. The counter storage unit stores a jump width counter, wherein the jump width counter is one or more counters generated according to a granularity corresponding to a time, i.e., a counter granularity, after setting the latest received information of the time synchronization device among the multiple received information as the latest received information and aggregating one or more received information other than the latest received information into past received information, and the jump width counter is one or more counters generated by converting one or more jump widths into degrees and recording them, and the one or more jump widths respectively represent the difference between the current equivalent time calculated using the time corresponding information respectively included in the past received information and the device time corresponding to the time point when the past received information was respectively received by the time synchronization device, The jump width calculation unit sets the current equivalent moment calculated using the moment corresponding information included in the latest received information as the latest received moment, calculates the jump width representing the difference between the latest received moment and the device moment corresponding to the time point when the latest received information is received as the calculated jump width, sets the counter of the jump width counter corresponding to the calculated jump width as the selection counter, increases the degree of the selection counter by 1, and synchronizes the current device moment with the moment corresponding to the latest received moment when the degree represented by the selection counter is considered to be the largest among the degrees represented by the jump width counters.

8. A computer-readable recording medium storing a time synchronization program, wherein: The computer receives as a plurality of received information a plurality of information each including time corresponding information, wherein the time corresponding information is information for calculating a time equivalent to a current time, that is, a current equivalent time, wherein the current time indicates the current time and is a time that changes with the passage of time, and, The computer stores a jump width counter, wherein the jump width counter is one or more counters generated according to a granularity corresponding to a time, i.e., a counter granularity, after setting the latest received information of the computer among the multiple received information as the latest received information and aggregating one or more received information other than the latest received information into past received information, and the jump width counter is one or more counters generated by converting one or more jump widths into degrees and recording them, and the one or more jump widths respectively represent the difference between the current equivalent time calculated using the time corresponding information respectively included in the past received information and the device time corresponding to the time point when the computer received the past received information, The time synchronization program causes the computer to manage and maintain the current equivalent time as the device time. The time synchronization program causes the computer to set the current equivalent time calculated using the time corresponding information included in the latest received information as the latest received time, calculate the jump amplitude representing the difference between the latest received time and the device time corresponding to the time point when the latest received information is received as the calculated jump amplitude, set the counter of the jump amplitude counter corresponding to the calculated jump amplitude as the selection counter, increase the degree of the selection counter by 1, and synchronize the current device time with the time corresponding to the latest received time when the degree represented by the selection counter is considered to be the largest among the degrees represented by the jump amplitude counter.