Time synchronization system, time server, switch, time synchronization method, time server time synchronization method, and switch time synchronization method
The time synchronization system with backup time servers and periodic frame transmission addresses complex configurations by minimizing time jumps in train networks, enhancing reliability without needing BMCA support.
Patent Information
- Application Number
- JP2025535996
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-11-10
- Estimated Expiration
- 2043-07-28
AI Technical Summary
Conventional time synchronization systems in train networks require complex configurations due to the need for all master nodes to be time-synchronized with an external clock source, leading to potential time jumps during failures.
A time synchronization system with multiple time servers, switches, and end devices that utilize a backup time server synchronized with an active time server, periodically transmitting frames to maintain synchronization and switch to the backup server upon failure detection, without requiring BMCA support from all nodes.
This approach reduces time jumps during failures while maintaining a simple system configuration, ensuring seamless time synchronization across the network.
Smart Images

Figure 0007766856000001 
Figure 0007766856000002 
Figure 0007766856000003
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to a time synchronization system that performs time synchronization, a time server, a switch, an end device, a time synchronization method, a time server time synchronization method, a switch time synchronization method, and an end device time synchronization method. [Background technology]
[0002] Conventionally, a network is formed within a train to control and monitor the equipment installed in each vehicle. The European Shift2Rail project has proposed several different time synchronization architectures for the next-generation Train Control Management System (TCMS). One of these is an architecture in which the ETB (Ethernet (registered trademark) Train Backbone) and each ECN (Ethernet Consist Network) independently synchronize their time, i.e., the ETB and each ECN are asynchronous. In the architecture in which the ETB and each ECN are asynchronous, a method for making the ETB's Master Clock (MC) redundant is clearly specified, but a method for making the ECN's MC redundant is not.
[0003] The Best Master Clock Algorithm (BMCA) is an algorithm for selecting the best MC from multiple MCs. By applying BMCA, if the Grand Master clock (GM) that distributes time fails, the next most accurate MC is automatically selected as the GM. Because the new GM is synchronized with the old GM, no time jumps occur even when the boundary clock (BC) or slave clock (SC) changes its GM. However, applying BMCA requires that not only the MC but also the BC and SC support BMCA, which increases the system construction costs. To address this issue, Patent Document 1 discloses a technology in which a secondary master node receives a reference clock from a primary master node and corrects its own local clock. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 2018-37885 Summary of the Invention [Problem to be solved by the invention]
[0005] However, according to the above-described conventional technology, all master nodes must be configured to be time-synchronized with an external clock source, which causes a problem of a complex system configuration.
[0006] The present disclosure has been made in view of the above, and aims to provide a time synchronization system that can reduce the occurrence of time jumps when a failure occurs while having a simple configuration. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems and achieve the object, the time synchronization system of the present disclosure includes a plurality of time servers capable of transmitting time synchronization frames, a switch that synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to other devices, and an end device that synchronizes with the time indicated in the received time synchronization frame. The switch transmits the time synchronization frame to at least one of the other devices, which are the time server, another switch, and the end device. After the plurality of time servers are started, a backup time server other than the active time server among the plurality of time servers that are running synchronizes with the time indicated in the time synchronization frame transmitted from the active time server among the plurality of time servers that are running, and the active time server periodically transmits a time synchronization frame, thereby periodically synchronizing the active time server and the backup time server. Of the multiple time servers, the active time server transmits a time synchronization frame, while the backup time server does not. If the backup time server does not receive a time synchronization frame from the active time server within the time it has started and expired its backup timer, which has a longer expiration time than the active timer used when it is the active time server, it determines that a failure has occurred in the current active time server and sets the backup time server with the highest priority among the backup time servers as the next active time server. , characterized by: [Effects of the Invention]
[0008] The time synchronization system of the present disclosure has an effect of being able to reduce the occurrence of time jumps when a failure occurs while having a simple configuration. [Brief explanation of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating a configuration example of a time synchronization system according to a first embodiment. [Figure 2] FIG. 1 shows an example of the configuration of a time server according to the first embodiment. [Figure 3] FIG. 1 is a diagram showing a configuration example of a switch according to a first embodiment; [Figure 4] FIG. 1 is a diagram illustrating a configuration example of an end device according to a first embodiment. [Figure 5] Flowchart showing the operation of the time server according to the first embodiment [Figure 6] 1 is a state transition diagram illustrating the operation of a switch according to the first embodiment; [Figure 7] FIG. 1 is a diagram showing an example in which a processing circuit included in a time server according to a first embodiment is configured with a processor and a memory. [Figure 8] FIG. 1 is a diagram showing an example in which a processing circuit included in a time server according to a first embodiment is configured with dedicated hardware. [Figure 9] FIG. 10 is a diagram showing an example of a path of a time synchronization frame when a time server that is a source of the time synchronization frame is identified by a clock domain in a time synchronization system according to a second embodiment; [Figure 10] FIG. 10 is a diagram showing an example of a route of a time synchronization frame when a time server that is a source of the time synchronization frame is identified by VLAN identification information in a time synchronization system according to a second embodiment; [Figure 11] A state transition diagram showing the operation of the time server according to the second embodiment when the primary time server does not return to the active system time server upon recovery. [Figure 12] A state transition diagram showing the operation of the time server according to the second embodiment when the primary time server returns to the active system time server upon recovery. [Figure 13]A state transition diagram showing the operation of a switch and an end device according to a second embodiment when the primary time server does not return to the active time server upon recovery. DETAILED DESCRIPTION OF THE INVENTION
[0010] Below, a time synchronization system, a time server, a switch, an end device, a time synchronization method, a time server time synchronization method, a switch time synchronization method, and an end device time synchronization method according to embodiments of the present disclosure will be described in detail with reference to the drawings.
[0011] Embodiment 1 FIG. 1 is a diagram illustrating an example of the configuration of a time synchronization system 10 according to a first embodiment. The time synchronization system 10 includes time servers 20a and 20b, switches 30a, 30b, 30c, and 30d, and end devices 40a, 40b, 40c, and 40d. The time synchronization system 10 is a system in which the switches 30a to 30d and the end devices 40a to 40d are time-synchronized with the time indicated in a time synchronization frame transmitted from the time server 20a or the time server 20b. The time synchronization system 10 is a system used, for example, in the ECN of the in-train network described in the background art, but is not limited to this and can be applied to other uses as well.
[0012] In the following description, the time servers 20a and 20b will be referred to as time servers 20 when they are not distinguished from one another, the switches 30a to 30d will be referred to as switches 30 when they are not distinguished from one another, and the end devices 40a to 40d will be referred to as end devices 40 when they are not distinguished from one another. In the example of FIG. 1 , the time synchronization system 10 includes two time servers 20 and four switches 30 and end devices 40, but the number of each device is not limited to this. The time synchronization system 10 can include three or more time servers 20, and can include three or fewer or five or more switches 30 and end devices 40. The time synchronization system 10 has a redundant configuration including multiple time servers 20 that transmit time synchronization frames. In the first embodiment, a case will be described in which one of the time servers 20a and 20b transmits a time synchronization frame.
[0013] In the time synchronization system 10, a priority is set for each time server 20. The priority set for each time server 20 may be set in advance by an administrator of the time synchronization system 10 or may be uniquely set based on identification information such as a Media Access Control (MAC) address assigned to each time server 20 when the time synchronization system 10 is started up. Even when the priority set for each time server 20 is uniquely set based on identification information such as a MAC address, the administrator of the time synchronization system 10 or the like can assign a desired priority to a time server 20 at a certain location in the configuration of the time synchronization system 10 shown in FIG. 1 by understanding the priority setting pattern. In the example of FIG. 1, time server 20a is set as a primary time server 20 with a higher priority than time server 20b, and time server 20b is set as a secondary time server 20 with a lower priority than time server 20a.
[0014] In the time synchronization system 10, after startup, the time server 20 with the highest priority among the multiple time servers 20 that are running is determined based on the set priorities, and in the example of FIG. 1, the primary time server 20a is determined as the active time server. In the first embodiment, the active time server is the time server 20 that transmits the time synchronization frame. Of the multiple time servers 20, a time server 20 other than the active time server, and in the example of FIG. 1, the secondary time server 20b is determined as the backup time server. In the first embodiment, the backup time server is the time server 20 that does not transmit the time synchronization frame. In this way, the multiple time servers 20 are composed of one active time server and backup time servers other than the active time server. In the first embodiment, the active time server is the specified time server 20 that transmits the time synchronization frame.
[0015] The time synchronization system 10 performs time synchronization between time servers 20 by having the active time server transmit a time synchronization frame and having the backup time server synchronize with the time indicated in the time synchronization frame transmitted from the active time server. After time synchronization between time servers 20 is performed, the time synchronization system 10 performs time synchronization between the active time server and the switch 30 and end device 40 by having the active time server transmit a time synchronization frame and having the switch 30 and end device 40 synchronize with the time indicated in the time synchronization frame transmitted from the active time server. After time synchronization with the active time server, the end device 40 starts user traffic communication.
[0016] In the time synchronization system 10, the multiple time servers 20, i.e., the active time servers and the backup time servers, periodically synchronize time among themselves even after time synchronization between them has been performed after startup. This allows the time synchronization system 10 to avoid time jumps even when a failure occurs in the active time server and one of the backup time servers switches to become the next active time server. Although the time server 20 that transmits the time synchronization frame changes, the switch 30 and the end device 40 can avoid time jumps because the next active time server is time-synchronized with the time server 20 that was the active time server before the switch.
[0017] Furthermore, when the time server 20 that was the active time server returns to the time synchronization system 10, the time server 20 that was the active time server synchronizes its time with the current active time server and then returns to being the active time server. This allows the time synchronization system 10 to avoid time jumps even when the time server 20 that was the active time server returns. Although the switch 30 and end device 40 change the time server 20 that is the source of the time synchronization frame again, the restored active time server is time-synchronized with the time server 20 that was the active time server before the return, so time jumps can be avoided.
[0018] When the time synchronization system 10 is operating normally, the switch 30 and the end device 40 synchronize their time with the active time server 20, which is the time server 20 with the highest priority when the multiple time servers 20 are started up. If a failure occurs in the active time server, they synchronize their time with the next active time server 20, which is the time server 20 with the next highest priority. If a failure also occurs in the next active time server, the time synchronization system 10 will make the time server 20 with the highest priority among the time servers 20 currently operating as backup time servers the next active time server. Therefore, the switch 30 and the end device 40 synchronize their time with the time server 20 with the highest priority among the time servers 20 currently operating.
[0019] Thus, the time synchronization system 10 includes a plurality of time servers 20 capable of transmitting time synchronization frames, a switch 30 that synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to other devices, and an end device 40 that synchronizes with the time indicated in the received time synchronization frame. The switch 30 transmits the time synchronization frame to at least one of the other devices, namely, the time server 20, the other switches 30, and the end device 40. After activation, the plurality of time servers 20 synchronize with the time indicated in the time synchronization frame transmitted from the active time server among the plurality of activated time servers 20, with the standby time servers other than the active time servers. Furthermore, the active time servers periodically transmit time synchronization frames, thereby periodically synchronizing the active and standby time servers of the plurality of time servers 20.
[0020] Next, the configuration of each device will be described. Fig. 2 is a diagram showing an example of the configuration of the time server 20 according to embodiment 1. The time server 20 includes a communication unit 21, a time synchronization frame reception processing unit 22, a storage unit 23, a time synchronization unit 24, and a time synchronization frame transmission processing unit 25.
[0021] The communication unit 21 has a plurality of ports, receives time synchronization frames from other time servers 20, and transmits time synchronization frames from its own time server 20.
[0022] The time synchronization frame reception processing unit 22 performs reception processing of a time synchronization frame transmitted from another time server 20. The time synchronization frame reception processing unit 22 extracts, for example, time information contained in the received time synchronization frame and identification information of the transmitting time server 20. The time synchronization frame reception processing unit 22 may store this extracted information in the storage unit 23, or may output it to the time synchronization unit 24.
[0023] The storage unit 23 stores timer information for a plurality of timers with different expiration times. As described above, the time server 20 can be either an active time server or a standby time server depending on the priority set thereto. Therefore, the storage unit 23 stores timer information for timers used when the local time server 20 is an active time server, and timer information for timers used when the local time server 20 is a standby time server. The storage unit 23 may store information on the time included in the time synchronization frame extracted by the time synchronization frame reception processing unit 22, identification information of the sending time server 20, etc.
[0024] The time synchronization unit 24 controls the transmission of time synchronization frames from its own time server 20, i.e., the time synchronization frame transmission processing unit 25. The time synchronization unit 24 also performs time synchronization using a timer corresponding to its own time server 20, i.e., a timer used when the own time server 20 is an active time server or a timer used when the own time server 20 is a standby time server. After the multiple time servers 20 are started, the time synchronization unit 24 performs time synchronization so that, at the time indicated in a time synchronization frame transmitted from an active time server among the multiple time servers 20, a standby time server other than the active time server among the multiple time servers 20 that are started is time synchronized, and the active time server periodically transmits a time synchronization frame, thereby periodically synchronizing the active time server and the standby time server.
[0025] The time synchronization frame transmission processing unit 25 performs a transmission process of the time synchronization frame to be transmitted from its own time server 20 based on the control from the time synchronization unit 24 .
[0026] 3 is a diagram illustrating an example of the configuration of the switch 30 according to the first embodiment. The switch 30 includes a frame reception processing unit 31, a time synchronization frame reception processing unit 32, a storage unit 33, a time synchronization unit 34, a time synchronization frame transmission processing unit 35, a main signal frame reception processing unit 36, a demultiplexing unit 37, and a frame transmission processing unit 38.
[0027] The frame reception processing unit 31 receives a time synchronization frame transmitted from the time server 20. The frame reception processing unit 31 also receives a data frame of user traffic communication transmitted from the end device 40. The frame reception processing unit 31 outputs the time synchronization frame to the time synchronization frame reception processing unit 32, and outputs the data frame to the main signal frame reception processing unit 36.
[0028] The time synchronization frame reception processing unit 32 performs reception processing of the time synchronization frame transmitted from the time server 20. The time synchronization frame reception processing unit 32 extracts, for example, time information contained in the received time synchronization frame and identification information of the transmitting time server 20. The time synchronization frame reception processing unit 32 may store this extracted information in the storage unit 33, or may output it to the time synchronization unit 34.
[0029] The storage unit 33 stores timer information for a plurality of timers with different expiration times. The storage unit 33 also stores timer information for timers with specified periods for switching one of the ports set as a passive port to the slave port setting when a time synchronization frame is not received at the slave port for the specified period. The storage unit 33 may store information such as the time included in the time synchronization frame extracted by the time synchronization frame reception processing unit 32, and identification information of the transmission source time server 20.
[0030] The time synchronization unit 34 synchronizes the time with the time indicated in the received time synchronization frame using a timer corresponding to the time server 20 that is the sender of the time synchronization frame.
[0031] The time synchronization frame transmission processing unit 35 performs a transmission process of the time synchronization frame used for time synchronization by the time synchronization unit 34 .
[0032] The main signal frame reception processing unit 36 performs reception processing of data frames transmitted from the end device 40 .
[0033] The demultiplexing unit 37 performs demultiplexing, ie, processing like an L2 switch, on the data frames transmitted from the end device 40 .
[0034] The frame transmission processing unit 38 transmits, that is, transfers, from a specified port, the time synchronization frame acquired from the time synchronization frame transmission processing unit 35 and the data frame acquired from the demultiplexing unit 37 .
[0035] 4 is a diagram illustrating an example of the configuration of the end device 40 according to the first embodiment. The end device 40 includes a communication unit 41, a time synchronization frame reception processing unit 42, a storage unit 43, a time synchronization unit 44, and a main signal frame transmission processing unit 45.
[0036] The communication unit 41 has a plurality of ports, receives a time synchronization frame from the time server 20, and transmits a data frame from the main signal frame transmission processing unit 45.
[0037] The time synchronization frame reception processing unit 42 performs reception processing of the time synchronization frame transmitted from the time server 20. The time synchronization frame reception processing unit 42 extracts, for example, time information contained in the received time synchronization frame and identification information of the transmitting time server 20. The time synchronization frame reception processing unit 42 may store this extracted information in the storage unit 43, or may output it to the time synchronization unit 44.
[0038] The storage unit 43 holds timer information for a plurality of timers with different expiration times. The storage unit 43 may store information on the time included in the time synchronization frame extracted by the time synchronization frame reception processing unit 42, identification information of the transmission source time server 20, and the like.
[0039] The time synchronization unit 44 synchronizes the time with the time indicated in the received time synchronization frame using a timer corresponding to the time server 20 that is the sender of the time synchronization frame.
[0040] The main signal frame transmission processing unit 45 performs a transmission process of a data frame. The data frame includes, for example, information indicating the state of the end device 40, the results of arithmetic processing performed by the end device 40, and the like.
[0041] Next, the operation of the time server 20 will be described. In the first embodiment, the time synchronization profile of IEEE (Institute of Electrical and Electronics Engineers) 802.1AS (gPTP (generalized Precision Time Protocol)) is assumed, and therefore the time synchronization frames transmitted by the time server 20 are Sync messages and Follow_up messages. However, the time synchronization profile is not limited to gPTP, and any time synchronization profile using IEEE 1588 PTP (Precision Time Protocol) frames, or a time synchronization profile using an extended IEEE 1588 PTP frame, can be applied to the time synchronization system 10. Furthermore, the time synchronization method can be either a two-step method using transmission and reception of Sync messages and Follow_up messages, or a one-step method. Note that there is no particular limitation on the delay measurement method. In the time synchronization system 10, the time server 20 does not need to support BMCA. Similarly, the switch 30 and the end device 40 do not need to support BMCA. In the first embodiment, it is assumed that the time servers 20a and 20b belong to the same clock domain.
[0042] In the first embodiment, the following cases are assumed regarding the states of the primary time server 20a and the secondary time server 20b. Case 1 (when the time synchronization system 10 is started) The primary time server 20a serves as the active time server, and the secondary time server 20b serves as the standby time server. Case 2 (When a failure occurs due to a malfunction of the primary time server 20a) The secondary time server 20b becomes the active time server. Case 3 (Failure recovery due to recovery of primary time server 20a) The primary time server 20a becomes the active time server, and the secondary time server 20b becomes the standby time server. Note that in Case 3, it is assumed that the primary time server 20a returns to the active time server and the secondary time server 20b transitions to the standby time server, but it is also possible for the primary time server 20a to become the standby time server even after recovery, and for the secondary time server 20b to continue operating as the active time server. In other words, when the time server 20a, which has a higher priority than the current active time server, returns to the time synchronization system 10, it can also synchronize its time with the time of the time server 20b, which is the current active time server, and then return as the standby time server.
[0043] 5 is a flowchart showing the operation of the time server 20 according to embodiment 1. In the following, the following five patterns will be specifically explained using the flowchart shown in FIG. Pattern 1: Case 1a: Operation of the primary time server 20a when the time synchronization system 10 is started Pattern 2: Operation of the secondary time server 20b when the time synchronization system 10 is started as case 1b Pattern 3: Operation of the secondary time server 20b when a failure occurs in the time synchronization system 10 in Case 2 Pattern 4: Operation of the primary time server 20a when recovering from a failure in the time synchronization system 10 as in Case 3a Pattern 5: Operation of secondary time server 20b when recovering from a failure in time synchronization system 10 as case 3b
[0044] Here, in the time synchronization system 10, it is assumed that only single failures occur, such as a failure of the switch 30 or a link break. In other words, the time synchronization system 10 does not consider multiple failures, in which failures occur simultaneously at multiple locations. Furthermore, in the ring-connected configuration of the switch 30 as shown in FIG. 1, even if a single failure occurs, such as a failure of the switch 30 or a link break, time synchronization frames can be sent and received between the time servers 20a and 20b via a detour path, and the behavior of the primary time server 20a and the secondary time server 20b does not change. Therefore, cases in which a single failure occurs, such as a failure of the switch 30 or a link break, are not described. Note that, as a prerequisite, the expiration times of the timers used for the active time server and the standby time server are set to satisfy the following formulas (1) and (2). In formulas (1) and (2), E2E stands for End to End.
[0045] Time synchronization frame transmission period + E2E delay between time servers 20 of the time synchronization frame < expiration time of the active system timer for the active system time server ... (1)
[0046] Expiration time of the active system timer for the active system time server + time synchronization frame transmission period + E2E delay between time servers of the time synchronization frame < expiration time of the standby system timer for the standby system time server ... (2)
[0047] First, we will explain the operation of the primary time server 20a when the time synchronization system 10 is started up as Pattern 1: Case 1a. After start-up, the time synchronization unit 24 of the primary time server 20a has its priority set to primary (step S100: Yes), so it starts the active timer based on the timer information stored in the storage unit 23 (step S101a). The time synchronization unit 24 waits until the active timer expires (step S101b: No). When the active timer expires (step S101b: Yes), it checks whether a time synchronization frame has been received from another time server 20b (step S103). If formula (1) is satisfied and no time synchronization frame has been received in step S103, it is determined that the time synchronization system 10 is starting up, i.e., the secondary time server 20b is not operating as an active time server.
[0048] In this case, the time synchronization unit 24 has not received a time synchronization frame from the other time server 20b (step S103: No), so it sets the active / standby parameters to the active system (step S104). However, since the primary time server 20a is already set as the active system at this point, no particular action is taken in this step S104. The time synchronization unit 24 operates on its own clock or synchronizes with an external clock source (step S105). The external clock source may be, for example, a Global Navigation Satellite System (GNSS), but is not limited to this. The time synchronization unit 24 controls the time synchronization frame transmission processing unit 25 to transmit a time synchronization frame including time information based on the clock of step S105 as the time source from the time synchronization frame transmission processing unit 25 via the communication unit 21 (step S106). At this time, the time synchronization unit 24 starts a time synchronization frame transmission period timer based on the timer information stored in the storage unit 23.
[0049] Since the active / standby parameter is active (step S110: Yes), the time synchronizer 24 waits until the time synchronization frame transmission period timer expires (step S111: No). When the time synchronization frame transmission period timer expires (step S111: Yes), the time synchronizer 24 checks whether a time synchronization frame is being received from another time server 20b (step S103). As long as the primary time server 20a is operating as the active time server, the time synchronizer 24 branches to step S103: No. Thereafter, the above-described operations are repeated.
[0050] Next, we will explain the operation of the secondary time server 20b when the time synchronization system 10 is started up as Pattern 2: Case 1b. After startup, the time synchronization unit 24 of the secondary time server 20b has its priority set to secondary (step S100: No), so it starts the standby timer based on the timer information stored in the storage unit 23 (step S102a). The time synchronization unit 24 waits until the standby timer expires (step S102b: No), and when the standby timer expires (step S102b: Yes), it checks whether a time synchronization frame has been received from another time server 20a (step S103). If formula (2) is satisfied, the secondary time server 20b will receive the time synchronization frame transmitted from the primary time server 20a.
[0051] In this case, the time synchronizer 24 has received a time synchronization frame from another time server 20a (step S103: Yes), so it synchronizes with the time of the other time server 20a indicated in the received time synchronization frame, i.e., the primary time server 20a (step S107). Since the priority setting of its own time server 20b, i.e., time server 20b, is secondary (step S108: No), the time synchronizer 24 sets the active / standby parameters to the standby system (step S109). However, since the secondary time server 20b is already set to the standby system at this point, no special action is taken in this step S109. Since the active / standby parameters of the time synchronizer 24 are the standby system (step S110: No), the time synchronizer 24 returns to step S102a. The above-mentioned operations are then repeated.
[0052] Next, as Pattern 3: Case 2, the operation of the secondary time server 20b when a failure occurs in the time synchronization system 10 will be described. After startup, the time synchronization unit 24 of the secondary time server 20b has its priority set to secondary (step S100: No), so it starts the standby timer based on the timer information stored in the storage unit 23 (step S102a). The time synchronization unit 24 waits until the standby timer expires (step S102b: No), and when the standby timer expires (step S102b: Yes), it checks whether or not it has received a time synchronization frame from another time server 20a (step S103). When the active time server, which is the primary time server 20a, fails, the standby time server, which is the secondary time server 20b, will no longer receive time synchronization frames from the other time servers 20a.
[0053] In this case, the time synchronizer 24 has not received a time synchronization frame from another time server 20a (step S103: No), so it sets the active / standby parameters to the active system (step S104). The time synchronizer 24 operates on its own clock or synchronizes with an external clock source (step S105). The time synchronizer 24 controls the time synchronization frame transmission processing unit 25 to transmit a time synchronization frame including time information whose time source is the clock of step S105 from the time synchronization frame transmission processing unit 25 via the communication unit 21 (step S106). At this time, the time synchronizer 24 starts a time synchronization frame transmission period timer based on the timer information held in the storage unit 23. Since the active / standby parameter is active (step S110: Yes), the time synchronizer 24 waits until the time synchronization frame transmission period timer expires (step S111: No), and when the time synchronization frame transmission period timer expires (step S111: Yes), it checks whether a time synchronization frame is being received from another time server 20a (step S103). As long as the primary time server 20a has failed, the time synchronizer 24 branches to step S103: No. Thereafter, the above-mentioned operations are repeated.
[0054] Next, we will explain the operation of the primary time server 20a when the time synchronization system 10 recovers from a failure as Pattern 4: Case 3a. After startup, the time synchronization unit 24 of the primary time server 20a has its priority set to primary (step S100: Yes), so it starts the active timer based on the timer information stored in the storage unit 23 (step S101a). The time synchronization unit 24 waits until the active timer expires (step S101b: No), and when the active timer expires (step S101b: Yes), it checks whether a time synchronization frame has been received from another time server 20b (step S103). If formula (1) is satisfied, and the secondary time server 20b is operating as the active time server, the primary time server 20a will receive the time synchronization frame transmitted from the secondary time server 20b.
[0055] In this case, the time synchronization unit 24 has received a time synchronization frame from the other time server 20b (step S103: Yes), so it synchronizes with the time of the other time server 20b, i.e., the secondary time server 20b, indicated in the received time synchronization frame (step S107). Since the priority setting of the time synchronization unit 24 itself, i.e., the time server 20a, is primary (step S108: Yes), the time synchronization unit 24 sets the active / standby system parameter to active (step S104). The time synchronization unit 24 operates on its own clock or synchronizes with an external clock source (step S105). The time synchronization unit 24 controls the time synchronization frame transmission processing unit 25 to transmit a time synchronization frame including time information based on the clock of step S105 as the time source from the time synchronization frame transmission processing unit 25 via the communication unit 21 (step S106). At this time, the time synchronization unit 24 starts a time synchronization frame transmission period timer based on the timer information stored in the storage unit 23.
[0056] Since the active / standby parameter is active (step S110: Yes), the time synchronizer 24 waits until the time synchronization frame transmission period timer expires (step S111: No). When the time synchronization frame transmission period timer expires (step S111: Yes), the time synchronizer 24 checks whether a time synchronization frame is being received from another time server 20b (step S103). As long as the primary time server 20a is operating as the active time server, the time synchronizer 24 branches to step S103: No. Thereafter, the above-described operations are repeated.
[0057] Next, we will explain the operation of the secondary time server 20b when the time synchronization system 10 recovers from a failure as Pattern 5: Case 3b. After startup, the time synchronization unit 24 of the secondary time server 20b has its priority set to secondary (step S100: No), so it starts the standby timer based on the timer information stored in the storage unit 23 (step S102a). The time synchronization unit 24 waits until the standby timer expires (step S102b: No), and when the standby timer expires (step S102b: Yes), it checks whether a time synchronization frame has been received from another time server 20a (step S103). When the primary time server 20a recovers, the secondary time server 20b receives the time synchronization frame transmitted from the primary time server 20a.
[0058] In this case, the time synchronizer 24 has received a time synchronization frame from another time server 20a (step S103: Yes), so it synchronizes with the time of the other time server 20a indicated in the received time synchronization frame, i.e., the primary time server 20a (step S107). Since the priority setting of its own time server 20b, i.e., time server 20b, is secondary (step S108: No), the time synchronizer 24 sets the active / standby parameters to the standby system (step S109). Since the active / standby system parameters are the standby system (step S110: No), the time synchronizer 24 returns to step S102a. Thereafter, the above-mentioned operations are repeated.
[0059] In this way, if a standby time server does not receive a time synchronization frame from the active time server within the time it has started and expired its standby timer, which has a longer expiration time than the active timer used when it was the active time server, it determines that a failure has occurred in the current active time server and sets the standby time server with the highest priority among the standby time servers as the next active time server. When a time server 20a with a higher priority than the current active time server returns to the time synchronization system 10, it synchronizes its time with the time of the current active time server before returning to the active time server. When the time server 20b, which was the current active time server, receives a time synchronization frame from the restored active time server, it returns to the standby time server setting.
[0060] Specifically, in the time server 20, the time synchronizer 24 controls the time synchronization frame transmission processor 25 to transmit a time synchronization frame when the time server 20 is the active time server and not transmit a time synchronization frame when the time server 20 is the backup time server. Furthermore, when the time synchronizer 24 does not receive a time synchronization frame from the active time server between the start and expiration of a backup timer that has a longer expiration time than the active timer used when the time server 20 is the active time server, it determines that a failure has occurred in the current active time server and sets the backup time server with the highest priority among the backup time servers as the next active time server. Furthermore, when the time synchronizer 24 returns to the time synchronization system 10 as a time server 20 with a higher priority than the current active time server, it synchronizes with the time of the current active time server before returning to the active time server. However, when the time server 20 was the current active time server, it receives a time synchronization frame from the restored active time server and returns to the standby time server setting.
[0061] Next, the operation of the switch 30 will be described. In the switch 30, the storage unit 33 stores identifiers of the primary time server 20a and the secondary time server 20b. The identifiers may be, for example, MAC addresses assigned to each time server 20, but are not limited to these. The time synchronization system 10 may use identifiers other than MAC addresses as long as they can uniquely identify each time server 20. The storage unit 33 also stores sync tree information. The time synchronization unit 34 measures delays between the switch 30 and adjacent devices. As shown in FIG. 1, the adjacent devices are at least one of the time server 20, other switches 30, and end devices 40. The time synchronization unit 34 synchronizes with the time indicated in the time synchronization frame received from the time server 20 and stores the time. The frame reception processing unit 31 sets one of the ports that receive the time synchronization frame transmitted from the active time server as a slave port and the other ports as passive ports. As described above, the active time server is time server 20a when the time synchronization system 10 is operating normally, but may become time server 20b if a fault occurs in the time synchronization system 10. If a network fault such as a failure of another switch 30 or a link disconnection occurs in the time synchronization system 10, the frame reception processing unit 31 switches one of the ports set as a passive port to the slave port setting if it is unable to receive a time synchronization frame at the slave port for a specified period of time.
[0062] 6 is a state transition diagram showing the operation of the switch 30 according to the first embodiment. After startup, the switch 30 performs initial processing in an initial state (step S201). After the initial processing in the initial state (step S202), the switch 30 transitions to a pre-synchronization attempt state (step S203). Upon transitioning to the pre-synchronization attempt state, the time synchronizer 34 of the switch 30 starts a timer T1 for controlling time synchronization frame reception timeout in the pre-synchronization attempt state (step S203). If the time synchronizer 34 receives a time synchronization frame P from the primary time server 20a before the timer T1 expires (step S204), it synchronizes with the time of the sender of the received time synchronization frame P, i.e., the primary time server 20a, and transitions to a primary-side synchronization state as the next state (step S205). Alternatively, if the time synchronizer 34 receives a time synchronization frame S from the secondary time server 20b before timer T1 expires (step S206), it synchronizes with the time of the sender of the received time synchronization frame S, i.e., the secondary time server 20b, and transitions to the secondary-side synchronization state as the next state (step S207). Note that if timer T1 expires (step S208), the time synchronizer 34 transitions to the synchronization-disabled state as the next state (step S209).
[0063] When the time synchronizer 34 transitions to the primary-side synchronization state, it starts timer T2, which controls the timeout for receiving the time synchronization frame P in the primary-side synchronization state (step S205). As a normal operation in the primary-side synchronization state, the switch 30 transmits and receives data frames including user data, and performs calculations based on the data frame transmission and reception. If the time synchronizer 34 receives a time synchronization frame P from the primary time server 20a before timer T2 expires, it synchronizes with the time of the sender of the received time synchronization frame P, i.e., the primary time server 20a (step S210) and transitions to the current state (step S205). When timer T2 expires (step S211), the time synchronizer 34 transitions to the secondary-side synchronization state as the next state (step S207). This corresponds to a situation where the primary time server 20a is not operating due to a malfunction or other reason. As described above, the secondary time server 20b is always time-synchronized with the primary time server 20a. Therefore, even if the switch 30 changes the target for time synchronization from the primary time server 20a to the secondary time server 20b, the occurrence of time jumps is suppressed.
[0064] When the time synchronizer 34 transitions to the secondary-side synchronization state, it starts a timer T3 for controlling a timeout for receiving a time synchronization frame S in the secondary-side synchronization state (step S207). As a normal operation in the secondary-side synchronization state, the switch 30 performs transmission and reception of data frames, calculation processing based on the transmission and reception of data frames, and the like. If the time synchronizer 34 receives a time synchronization frame S from the secondary time server 20b before the timer T3 expires, it synchronizes with the time of the source of the received time synchronization frame S, i.e., the secondary time server 20b (step S212), and transitions to the current state (step S207). If the time synchronizer 34 receives a time synchronization frame P from the primary time server 20a before the timer T3 expires, it synchronizes with the time of the source of the received time synchronization frame P, i.e., the primary time server 20a (step S213), and transitions to the primary-side synchronization state as the next state (step S205). This is a situation in which the primary time server 20a, which had been out of operation due to a failure or other reason, has recovered and returned to being the active time server. As described above, the primary time server 20a is time-synchronized with the secondary time server 20b, which was operating as the active time server in the pre-synchronization attempt state. Therefore, even if the switch 30 changes the target for time synchronization from the secondary time server 20b to the primary time server 20a, the occurrence of time jumps is suppressed. Note that when timer T3 expires (step S214), the time synchronizer 34 transitions to the synchronization-disabled state as the next state (step S209). This is a situation in which neither the primary time server 20a nor the secondary time server 20b is operating due to a failure or other reason.
[0065] In this way, in the switch 30, the time synchronizer 34 synchronizes with the time indicated in the time synchronization frame transmitted from the active time server. The frame reception processor 31 sets one of the ports that receive the time synchronization frame transmitted from the same time server 20 as a slave port, and sets the other ports as passive ports. If the frame reception processor 31 does not receive a time synchronization frame at the slave port for a specified period, it switches one of the ports set as a passive port to the slave port setting.
[0066] Next, the operation of the end device 40 will be described. In the end device 40, the storage unit 43, like the storage unit 33 of the switch 30, stores the identifiers of the primary time server 20a and the secondary time server 20b. The time synchronization unit 44 measures the delay between the end device 40 itself and an adjacent device. As shown in FIG. 1, the adjacent device is the switch 30. The time synchronization unit 44 also synchronizes with the time indicated in the time synchronization frame received from the time server 20 and stores the time. Note that the state transition of the operating state in the end device 40 is similar to the state transition of the operating state in the switch 30 described above and shown in FIG. 6. Therefore, a description of the state transition of the operating state in the end device 40 will be omitted. In the end device 40, the time synchronization unit 44 synchronizes with the time indicated in the time synchronization frame transmitted from the active time server.
[0067] Next, the hardware configuration of the time server 20 will be described. In the time server 20, the communication unit 21 is a communication interface. The storage unit 23 is a memory. The time synchronization frame reception processing unit 22, the time synchronization unit 24, and the time synchronization frame transmission processing unit 25 are realized by processing circuits. The processing circuit may be a processor and memory that executes a program stored in memory, or may be dedicated hardware.
[0068] FIG. 7 is a diagram showing an example in which the processing circuit 90 included in the time server 20 according to the first embodiment is configured with a processor 91 and a memory 92. When the processing circuit 90 is configured with the processor 91 and the memory 92, each function of the processing circuit 90 of the time server 20 is realized by software, firmware, or a combination of software and firmware. The software or firmware is written as a program and stored in the memory 92. In the processing circuit 90, each function is realized by the processor 91 reading and executing the program stored in the memory 92. That is, the processing circuit 90 includes the memory 92 for storing the program that results in the processing of the time server 20 being executed. It can also be said that these programs cause a computer to execute the procedures and methods of the time server 20.
[0069] The above program includes a time synchronization frame reception processing step in which the time synchronization frame reception processing unit 22 performs reception processing of a time synchronization frame transmitted from another time server 20, a time synchronization frame transmission processing step in which the time synchronization frame transmission processing unit 25 performs transmission processing of a time synchronization frame to be transmitted from its own time server 20, and a time synchronization step in which the time synchronization unit 24 controls the transmission of the time synchronization frame from its own time server 20 and performs time synchronization using a timer corresponding to its own time server 20.In the time synchronization step, the time synchronization unit 24 can also be said to be a program that causes the time server 20 to execute the following: after the multiple time servers 20 are started, at the time indicated in the time synchronization frame transmitted from the active time server among the multiple time servers 20 that are started, the backup time servers other than the active time servers among the multiple time servers 20 that are started are time synchronized, and the active time servers periodically transmit time synchronization frames so that the active time servers and the backup time servers are periodically time synchronized.
[0070] Here, the processor 91 may be a CPU (Central Processing Unit), a processing device, an arithmetic device, a microprocessor, a microcomputer, or a DSP (Digital Signal Processor), etc. Furthermore, the memory 92 may be, for example, a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), or an EEPROM (registered trademark) (Electrically EPROM), a magnetic disk, a flexible disk, an optical disk, a compact disk, a minidisk, or a DVD (Digital Versatile Disc).
[0071] Fig. 8 is a diagram showing an example in which the processing circuit 93 included in the time server 20 according to the first embodiment is configured with dedicated hardware. When the processing circuit 93 is configured with dedicated hardware, the processing circuit 93 shown in Fig. 8 corresponds to, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof. Each function of the time server 20 may be realized by the processing circuit 93 separately for each function, or all functions may be realized collectively by the processing circuit 93.
[0072] It is also possible to implement some of the functions of the time server 20 using dedicated hardware and some using software or firmware. In this way, the processing circuit can implement each of the above-mentioned functions using dedicated hardware, software, firmware, or a combination of these.
[0073] The hardware configuration of the time server 20 has been described above, but the switch 30 and the end device 40 also have similar hardware configurations. In the switch 30, the frame reception processing unit 31 and the frame transmission processing unit 38 are communication interfaces. The storage unit 33 is a memory. The time synchronization frame reception processing unit 32, the time synchronization unit 34, the time synchronization frame transmission processing unit 35, the main signal frame reception processing unit 36, and the demultiplexing unit 37 are realized by processing circuits. The processing circuits may be a processor and memory that executes a program stored in a memory, or may be dedicated hardware. In the end device 40, the communication unit 41 is a communication interface. The storage unit 43 is a memory. The time synchronization frame reception processing unit 42, the time synchronization unit 44, and the main signal frame transmission processing unit 45 are realized by processing circuits. The processing circuits may be a processor and memory that executes a program stored in a memory, or may be dedicated hardware.
[0074] As described above, according to this embodiment, in the time synchronization system 10, after startup, the multiple time servers 20 determine an active time server based on preset priorities, and the other time servers 20, i.e., backup time servers, synchronize with the time of the active time server. Thereafter, the active time server transmits a time synchronization frame to the switch 30 and the end device 40, thereby achieving time synchronization between the active time server and the switch 30 and the end device 40. After time synchronization of each device within the time synchronization system 10 has been achieved, the end device 40 begins user traffic communication. Furthermore, the multiple time servers 20 periodically perform time synchronization among themselves even after startup.
[0075] As a result, even if a single network failure occurs, such as a failure of the time server 20, a failure of the switch 30, a cable break, or a device port failure, the time synchronization system 10 allows the switch 30 and the end device 40 to continue time synchronization with the time server 20 without time skips. The time synchronization system 10 has a simple configuration and can reduce the occurrence of time skips when a failure occurs. Because the time synchronization system 10 is configured to set priorities in advance for multiple time servers 20, there is no limit to the number of time servers 20, and system modifications such as replacing or adding a time server 20 can be easily made.
[0076] Embodiment 2 In the first embodiment, a case where one of the time servers 20a, 20b transmits a time synchronization frame has been described. In the second embodiment, a case where both the time servers 20a, 20b transmit time synchronization frames regardless of whether they are active time servers or standby time servers will be described. That is, in the second embodiment, the active time server and the standby time server transmit time synchronization frames as the specified time servers 20.
[0077] In the second embodiment, the configurations of the time synchronization system 10, the time server 20, the switch 30, and the end device 40 are the same as those of the time synchronization system 10, the time server 20, the switch 30, and the end device 40 in the first embodiment shown in Figures 1 to 4. In the first embodiment, only one of the time servers 20a and 20b, which is the active system, transmits the time synchronization frame, so there is no problem in the time synchronization system 10 even if the time servers 20a and 20b use the same clock domain. In contrast, in the second embodiment, the time servers 20a and 20b transmit the time synchronization frame, so the switch 30 and the end device 40 that receive the time synchronization frame need to distinguish from which time server 20 the time synchronization frame was transmitted.
[0078] There are two methods for the switch 30 and the end device 40 to determine the time server 20 that is the sender of the time synchronization frame: The first method is for the primary time server 20a and the secondary time server 20b to have different clock domains. Here, the primary time server 20a and the secondary time server 20b have different clock domains primarily for the purpose of distinguishing the sender of the time synchronization frame, and is not intended to allow multiple clock domains with different precision or offsets to coexist in the time synchronization system 10. The second method is for the primary time server 20a and the secondary time server 20b to have the same clock domain but be set up in different virtual local area networks (VLANs).
[0079] FIG. 9 is a diagram showing an example of the path of a time synchronization frame when the time server 20 that is the sender of the time synchronization frame is identified by the clock domain in the time synchronization system 10 according to the second embodiment. In FIG. 9, the master port is a port used by the device that sends the time synchronization frame, and the slave port and passive port are the same as the slave port and passive port described in the first embodiment. The same applies to FIG. 10 described below. The primary time server 20a uses the clock domain CD_P, and the secondary time server 20b uses the clock domain CD_S. The ports of each switch 30 are statically configured to form a clock hierarchy in which the time server 20a is the master clock in the clock domain CD_P, and the time server 20b is the master clock in the clock domain CD_S. In the dual-homing end device 40, the destination address DST_P for the time synchronization frame of the clock domain CD_P is set at port p1 and the time synchronization frame of the clock domain CD_P is received, and the destination address DST_S for the time synchronization frame of the clock domain CD_S is set at port p2 and the time synchronization frame of the clock domain CD_S is received, according to the clock hierarchy setting of each switch 30. The end device 40 determines the time server 20 that is the sender of the received time synchronization frame based on the clock domain of the time synchronization frame or the port that received the time synchronization frame.
[0080] FIG. 10 is a diagram showing an example of the path of a time synchronization frame when the time server 20 that is the transmission source of the time synchronization frame is identified by VLAN identification information in the time synchronization system 10 according to the second embodiment. The primary time server 20a and the secondary time server 20b use the same clock domain. The end device 40 in the dual-homing configuration receives the time synchronization frame by assigning port p1 to VLAN VID_P and port p2 to VLAN VID_S. In addition, in each switch 30, the access ports connected to the end device 40 in the dual-homing configuration are assigned to the corresponding VLANs. The ports of each time server 20 are assigned to both VLAN VID_P and VLAN VID_S. When transmitting a time synchronization frame, the primary time server 20a uses a port that belongs to VLAN VID_P, and the secondary time server 20b uses a port that belongs to VLAN VID_S. The end device 40 determines the time server 20 that is the sender of the received time synchronization frame based on the VLAN ID of the time synchronization frame or the port that received the time synchronization frame.
[0081] In either method, the operation of the time server 20 of the second embodiment differs only in the method of setting identification information when transmitting a time synchronization frame, and other operations are the same as those of the time server 20 of the first embodiment. Also, in either method, the operation of the switch 30 and the end device 40 of the second embodiment differs only in the method of determining the sender of a received time synchronization frame, and other operations are the same as those of the switch 30 and the end device 40 of the first embodiment.
[0082] In the second embodiment, the time synchronization profile of IEEE802.1AS (gPTP) is also assumed, and therefore the time synchronization frames transmitted by the time server 20 are Sync messages and Follow_up messages. However, the time synchronization profile is not limited to gPTP, and any time synchronization profile that uses IEEE1588 PTP frames, or a time synchronization profile that uses an extended PTP frame of IEEE1588, can be applied to the time synchronization system 10. Furthermore, the time synchronization method can be either a two-step method using transmission and reception of Sync messages and Follow_up messages, or a one-step method, and can be applied to the time synchronization system 10. There is no particular limitation on the method of delay measurement.
[0083] The following describes the operations of the time server 20, the switch 30, and the end device 40 using a state transition diagram. The operations of each device will be further described for the case where the primary time server 20a does not return as an active time server when it is restored after a failure, and for the case where the primary time server 20a returns as an active time server when it is restored after a failure.
[0084] First, the operation of the time server 20 will be described. FIG. 11 is a state transition diagram showing the operation of the time server 20 according to the second embodiment when the primary time server 20a does not return to being the active time server upon recovery. In the time server 20, the time synchronizer 24 performs initial processing in an initial state after startup (step S301). Specifically, as part of the initial processing, the time synchronizer 24 sets its own priority to primary or secondary. If the priority is primary (step S302), the time synchronizer 24 transitions to a primary pre-synchronization attempt state (step S303). The primary pre-synchronization attempt state is a state in which the primary time server 20a first performs time synchronization with the secondary time server 20b when the primary time server 20a is started up while the secondary time server 20b is already operating. If the priority is other than primary (step S304), the time synchronizer 24 transitions to a secondary pre-synchronization attempt state (step S305). The secondary pre-synchronization attempt state is a state in which, when the secondary time server 20b is started, the secondary time server 20b checks whether the primary time server 20a is already operating.
[0085] When the time synchronizer 24 transitions to the primary pre-synchronization attempt state, it starts timer M for controlling the timeout of reception of the active system time synchronization frame (step S303). Timer M for controlling the timeout of reception of the active system time synchronization frame satisfies the same constraints as the active system timer in embodiment 1. If the time synchronizer 24 receives a time synchronization frame from another time server 20 before timer M expires, it synchronizes with the time of the sender of the received time synchronization frame (step S306) and transitions to the standby system steady state (step S307). The synchronization process in step S306 can prevent time jumps when the primary time server 20a goes out of operation due to a failure or the like, recovers, and then returns to the active system time server. When timer M expires (step S308), the time synchronizer 24 transitions to the active system steady state (step S309).
[0086] When the time synchronization unit 24 transitions to the active system steady state, it starts a timer M for controlling the timeout of the reception of the active system time synchronization frame in the active system steady state (step S309). The time synchronization unit 24 also operates on its own clock, or synchronizes with the external clock source if configured with an external clock source. The time synchronization unit 24 also transmits a time synchronization frame according to its own priority. When the time synchronization unit 24 identifies the time server 20 by clock domain, if its own priority is primary, it controls the time synchronization frame transmission processing unit 25 to transmit the time synchronization frame in the clock domain CD_P, and if its own priority is not primary, it controls the time synchronization frame transmission processing unit 25 to transmit the time synchronization frame in the clock domain CD_S. When the timer M expires (step S310), the time synchronization unit 24 transitions to the current state (step S309).
[0087] When the time synchronizer 24 transitions to the secondary pre-synchronization attempt state, it starts timer B for controlling the timeout of receiving the backup system time synchronization frame (step S305). Timer B for controlling the timeout of receiving the backup system time synchronization frame satisfies the same constraints as the backup system timer in embodiment 1. When the time synchronizer 24 receives a time synchronization frame from another time server 20 before timer B expires, it synchronizes with the time of the sender of the received time synchronization frame (step S311) and transitions to the backup system steady state (step S307). When timer B expires (step S312), the time synchronizer 24 transitions to the active system steady state (step S309).
[0088] When the time synchronizer 24 transitions to the standby system steady state, it starts timer B for backup system time synchronization frame reception timeout control (step S307). The time synchronizer 24 also controls the time synchronization frame transmission processor 25 to transmit a time synchronization frame according to its own priority. If the time synchronizer 24 receives a time synchronization frame from another time server 20 before timer B expires, it synchronizes with the time of the sender of the received time synchronization frame (step S313) and transitions to the current state (step S307). The synchronization process in step S313 prevents time jumps from occurring when the primary time server 20a goes out of operation due to a failure or other reason and the secondary time server 20b takes over as the active system time server. When timer B expires (step S314), the time synchronizer 24 transitions to the active system steady state as the next state (step S309). This is a situation in which the primary time server 20a goes out of operation due to a failure or other reason and the secondary time server 20b takes over as the active system time server.
[0089] 12 is a state transition diagram showing the operation of the time server 20 according to the second embodiment when the primary time server 20a returns to being the active time server upon recovery. The state transition diagram of FIG. 12 differs from step S306 in the state transition diagram of FIG. 11 in that the transition destination of step S306a is different. In the state transition diagram of FIG. 11, when the time synchronizer 24 receives a time synchronization frame from another time server 20 before timer M expires, it synchronizes with the time of the source of the received time synchronization frame (step S306) and transitions to the standby system steady state (step S307). In contrast, in the state transition diagram of FIG. 12, when the time synchronizer 24 receives a time synchronization frame from another time server 20 before timer M expires, it synchronizes with the time of the source of the received time synchronization frame (step S306a) and transitions to the active system steady state (step S309). Furthermore, when the time synchronizer 24 receives a time synchronization frame from another time server 20 before the timer M expires in the active system steady state (step S309), if its own priority is not primary, it synchronizes with the time of the sender of the received time synchronization frame (step S315) and transitions to the standby system steady state as the next state (step S307). Other operations are the same in the state transition diagram of FIG. 11 and the state transition diagram of FIG. 12.
[0090] Next, the operations of the switch 30 and the end device 40 will be described. The operations of the switch 30 and the end device 40 when the primary time server 20a returns to the active time server upon recovery are the same as those in the state transition diagram shown in FIG. 6 described in the first embodiment. Therefore, the description of the operations of the switch 30 and the end device 40 when the primary time server 20a returns to the active time server upon recovery will be omitted. FIG. 13 is a state transition diagram showing the operations of the switch 30 and the end device 40 according to the second embodiment when the primary time server 20a does not return to the active time server upon recovery. The state transition diagram in FIG. 13 differs from steps S211, S213, and S214 in the state transition diagram in FIG. 6 in that the transition destinations of steps S211a, S211b, S213a, and S213b are different. Since the operations of the switch 30 and the end device 40 are the same, the following description will be given using the switch 30 as an example.
[0091] In the switch 30, when timer T2 expires in the primary side synchronization state (step S205), the time synchronizer 34 transitions to the secondary side synchronization state as the next state (step S207) unless timer T3 has expired (step S211a). When timer T2 expires in the primary side synchronization state (step S205), the time synchronizer 34 transitions to the synchronization disabled state as the next state (step S209) unless timer T3 has also expired (step S211b). Timer T3 expires when the secondary time server 20b is not operating due to a malfunction or other reason.
[0092] Furthermore, when timer T3 expires in the secondary-side synchronization state (step S207), the time synchronizer 34 transitions to the primary-side synchronization state as the next state (step S205) unless timer T2 has expired (step S213a). When timer T3 expires in the secondary-side synchronization state (step S207), the time synchronizer 34 transitions to the synchronization-disabled state as the next state (step S209) unless timer T2 has also expired (step S213b). Timer T2 expires when the primary time server 20 is not operating due to a malfunction or other reason.
[0093] In this way, the active time server and the standby time server transmit time synchronization frames. When the standby time server receives a time synchronization frame from the active time server, it synchronizes with the time indicated in the time synchronization frame received from the active time server. Furthermore, different clock domains or different VLAN identification information are set for the multiple time servers 20 in the time synchronization frames transmitted from the multiple time servers 20. Furthermore, if the standby time server does not receive a time synchronization frame from the active time server between the start and expiration of a standby timer that has a longer expiration time than the active timer used for the active time server, it determines that a failure has occurred in the current active time server and sets the standby time server with the highest priority among the standby time servers as the active time server.
[0094] Furthermore, when a time server 20 with a higher priority than the current active time server returns to the time synchronization system 10, it synchronizes with the time of the current active time server before returning as a backup time server. At this time, the switch 30 and end device 40 synchronize with the time indicated in the time synchronization frame transmitted from the time server 20 with the highest priority. Alternatively, when a time server 20 with a higher priority than the current active time server returns to the time synchronization system 10, it synchronizes with the time of the current active time server before returning as an active time server. The time server 20 that was the current active time server returns to the setting of a backup time server by receiving a time synchronization frame from the restored active time server. At this time, the switch 30 and end device 40 synchronize with the time indicated in the time synchronization frame transmitted from the active time server.
[0095] Furthermore, for each time synchronization frame transmitted from the active time server and the backup time server, the switch 30 sets one of the receiving ports as a slave port and sets the other ports as passive ports. If the switch 30 does not receive a time synchronization frame at the slave port for a specified period, it switches one of the ports set as a passive port to the slave port setting.
[0096] Specifically, in the time server 20, the time synchronization unit 24 controls the time synchronization frame transmission processing unit 25 to transmit a time synchronization frame when the time server 20 is an active time server and a standby time server. When the time synchronization unit 24 receives a time synchronization frame from the active time server when the time synchronization unit 24 is a standby time server, it synchronizes the time to the time indicated in the time synchronization frame received from the active time server. The time synchronization unit 24 also sets different clock domains or different VLAN identification information for the multiple time servers 20 in the time synchronization frame transmitted from the time synchronization frame transmission processing unit 25. When the time synchronization unit 24 is a standby time server, if it does not receive a time synchronization frame from the active time server between the start and expiration of a standby timer that has a longer expiration time than the active timer used when the time server is an active time server, it determines that a failure has occurred in the current active time server and sets the standby time server with the highest priority among the standby time servers as the active time server.
[0097] Furthermore, when the time synchronization unit 24 returns to the time synchronization system 10 as a time server 20 with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns as a backup time server. At this time, the time synchronization unit 34 of the switch 30 and the time synchronization unit 44 of the end device 40 synchronize their time with the time indicated in the time synchronization frame transmitted from the time server 20 with the highest priority. Alternatively, when the time synchronization unit 24 returns to the time synchronization system 10 as a time server 20 with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns to the active time server. If the time synchronization unit 24 was the current active time server, it receives a time synchronization frame from the restored active time server and returns to the standby time server setting. At this time, the time synchronization unit 34 of the switch 30 and the time synchronization unit 44 of the end device 40 synchronize their time with the time indicated in the time synchronization frame transmitted from the active time server.
[0098] As described above, according to this embodiment, both the active time server and the standby time server transmit time synchronization frames in the time synchronization system 10. In this case as well, the same effects as in the first embodiment can be obtained.
[0099] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or different embodiments may be combined with each other. It is also possible to omit or modify parts of the configurations as long as they do not deviate from the gist of the invention. Various aspects of the present disclosure are summarized below as appendices. (Appendix 1) a plurality of time servers capable of transmitting time synchronization frames; a switch that synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to another device; an end device that synchronizes with the time indicated in the received time synchronization frame; Equipped with the switch transmits the time synchronization frame to at least one of the time server, another switch, and the end device as the other device; After the plurality of time servers are started, a backup time server other than the active time server among the plurality of time servers that are running is time synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are running, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the time between the active time server and the backup time server. A time synchronization system characterized by: (Appendix 2) Among the plurality of time servers, the active time server transmits the time synchronization frame, and the standby time server does not transmit the time synchronization frame. 2. The time synchronization system according to claim 1, (Appendix 3) If the standby time server does not receive the time synchronization frame from the active time server until a standby timer with a longer expiration time than the active timer used for the active time server has expired after starting the standby time server, the standby time server determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. 3. The time synchronization system according to claim 2, (Appendix 4) When a time server with a higher priority than the current active time server returns to the time synchronization system, it synchronizes its time with the time of the current active time server and then returns to the active time server; The time server that was currently the active time server returns to the setting of the standby time server by receiving the time synchronization frame from the restored active time server. 4. The time synchronization system according to claim 3, (Appendix 5) When a time server having a higher priority than the current active time server returns to the time synchronization system, the time server synchronizes with the time of the current active time server and then returns as the backup time server. 4. The time synchronization system according to claim 3, (Appendix 6) the switch and the end device are time-synchronized with the time indicated in the time synchronization frame transmitted from the active time server; 6. A time synchronization system according to any one of appendices 2 to 5. (Appendix 7) the switch sets one of the ports that receive the time synchronization frame transmitted from the active time server as a slave port, and sets the other ports as passive ports; 7. The time synchronization system according to claim 2, wherein: (Appendix 8) when the switch does not receive the time synchronization frame at the slave port for a specified period, it switches one of the ports set as the passive port to the setting of the slave port; 8. The time synchronization system according to claim 7, (Appendix 9) the active time server and the standby time server transmit the time synchronization frame; when the standby time server receives the time synchronization frame from the active time server, the standby time server synchronizes its time with the time indicated in the time synchronization frame received from the active time server; 2. The time synchronization system according to claim 1, (Appendix 10) In the time synchronization frame, different clock domains are set for the plurality of time servers, or different Virtual Local Area Network identification information is set for the plurality of time servers. 10. The time synchronization system according to claim 9, (Appendix 11) If the standby time server does not receive the time synchronization frame from the active time server until a standby timer whose expiration time is longer than that of the active timer used when the standby time server is the active time server expires, the standby time server determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the active time server. 11. The time synchronization system according to claim 9 or 10. (Appendix 12) When a time server with a higher priority than the current active time server returns to the time synchronization system, it synchronizes its time with the time of the current active time server and then returns to the active time server; The time server that was currently the active time server returns to the setting of the standby time server by receiving the time synchronization frame from the restored active time server. 12. The time synchronization system according to any one of appendices 9 to 11. (Appendix 13) the switch and the end device are time-synchronized with the time indicated in the time synchronization frame transmitted from the active time server; 13. The time synchronization system according to claim 12, (Appendix 14) When a time server having a higher priority than the current active time server returns to the time synchronization system, the time server synchronizes with the time of the current active time server and then returns as the backup time server. 12. The time synchronization system according to any one of appendices 9 to 11. (Appendix 15) The switch and the end device synchronize their time with a current time server. 15. The time synchronization system according to claim 14, (Appendix 16) the switch sets one of the receiving ports as a slave port and the other ports as passive ports for each of the time synchronization frames transmitted from the active time server and the backup time server; 16. The time synchronization system according to any one of appendices 9 to 15. (Appendix 17) when the switch does not receive the time synchronization frame at the slave port for a specified period of time, it switches one of the ports set as the passive port to the setting of the slave port; 17. The time synchronization system according to claim 16, (Appendix 18) A time server in a time synchronization system including a plurality of time servers, a switch, and an end device, a time synchronization frame reception processing unit that performs reception processing of a time synchronization frame transmitted from another time server; a time synchronization frame transmission processing unit that performs a transmission process of a time synchronization frame to be transmitted from the own time server; a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization unit that controls transmission of a time synchronization frame from its own time server and performs time synchronization using the timer corresponding to its own time server; Equipped with the time synchronization unit performs time synchronization such that, after the activation of the plurality of time servers, a backup time server other than the active time server among the plurality of activated time servers is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of activated time servers, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the active time server and the backup time server. A time server characterized by: (Appendix 19) the time synchronization unit controls the time synchronization frame transmission processing unit to transmit the time synchronization frame when the time server is the active system time server, and not transmit the time synchronization frame when the time server is the standby system time server; 19. The time server of claim 18. (Appendix 20) When the time synchronization unit does not receive the time synchronization frame from the active time server during the time from the start of a standby timer whose expiration time is longer than that of the active timer used for the active time server until the standby timer expires, the time synchronization unit determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. 20. The time server of claim 19, (Appendix 21) When the time synchronization unit is returning to the time synchronization system when it is a time server with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns to the active time server, and when it is a time server that was the current active time server, it receives the time synchronization frame from the restored active time server and returns to the setting of the standby time server. 21. The time server according to claim 20. (Appendix 22) the time synchronization unit controls the time synchronization frame transmission processing unit to transmit the time synchronization frame when the time server is the active time server and the standby time server, and when the time synchronization frame is received from the active time server when the time synchronization unit is the standby time server, synchronizes with the time indicated in the time synchronization frame received from the active time server. 19. The time server of claim 18. (Appendix 23) the time synchronization unit sets different clock domains for the plurality of time servers or different Virtual Local Area Network identification information for the plurality of time servers in the time synchronization frame transmitted from the time synchronization frame transmission processing unit; 23. The time server according to claim 22. (Appendix 24) When the time synchronization unit does not receive the time synchronization frame from the active time server during the time from the start of a standby timer whose expiration time is longer than that of the active timer used when the time server is the standby time server until the standby timer expires, the time synchronization unit determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the active time server. 24. The time server according to claim 22 or 23. (Appendix 25) When the time synchronization unit is returning to the time synchronization system when it is a time server with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns to the active time server, and when it is the current active time server, it receives the time synchronization frame from the restored active time server and returns to the setting of the standby time server. 25. The time server according to any one of appendices 22 to 24. (Appendix 26) When the time synchronization unit is to return to the time synchronization system as a time server having a higher priority than the current active time server, the time synchronization unit synchronizes the time with the time of the current active time server and then returns as the backup time server. 25. The time server according to any one of appendices 22 to 24. (Appendix 27) A switch in a time synchronization system including a plurality of time servers, a switch, and an end device, a frame reception processing unit that receives a time synchronization frame transmitted from the time server; a frame transmission processing unit that transmits the time synchronization frame; a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization unit that synchronizes with the time indicated in the received time synchronization frame by using the timer corresponding to the time server that is the transmission source of the time synchronization frame; A switch comprising: (Appendix 28) the plurality of time servers are configured by one active time server and a standby time server other than the active time server, the time synchronization unit synchronizes with the time indicated in the time synchronization frame transmitted from the active time server; 28. The switch of claim 27. (Appendix 29) the frame reception processing unit sets one port of the ports that receive the time synchronization frame transmitted from the same time server as a slave port, and sets the other ports as passive ports; 29. The switch according to claim 27 or 28. (Appendix 30) when the time synchronization frame is not received at the slave port for a specified period, the frame reception processing unit switches one of the ports set as the passive port to the setting of the slave port; 30. The switch of claim 29. (Appendix 31) An end device in a time synchronization system including a plurality of time servers, a switch, and an end device, a time synchronization frame reception processing unit that performs reception processing of the time synchronization frame transmitted from the time server; a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization unit that synchronizes with the time indicated in the received time synchronization frame by using the timer corresponding to the time server that is the transmission source of the time synchronization frame; An end device comprising: (Appendix 32) the plurality of time servers are configured by one active time server and a standby time server other than the active time server, the time synchronization unit synchronizes with the time indicated in the time synchronization frame transmitted from the active time server; 32. The end device of claim 31 . (Appendix 33) A time synchronization method for a time synchronization system, comprising: a first step in which a specified time server among a plurality of time servers capable of transmitting a time synchronization frame transmits the time synchronization frame; a second step in which the switch synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to another device; a third step in which the end device synchronizes its time with the time indicated in the received time synchronization frame; Including, In the first step, after the plurality of time servers are started, a backup time server other than the active time server among the plurality of time servers that are running is time synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are running, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the time between the active time server and the backup time server; In the second step, the switch transmits the time synchronization frame to at least one of the other devices selected from the time server, another switch, and the end device. A time synchronization method comprising: (Appendix 34) A time server time synchronization method for a time server in a time synchronization system including a plurality of time servers, a switch, and an end device, comprising: the time server includes a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization frame reception processing step in which a time synchronization frame reception processing unit performs a reception process of a time synchronization frame transmitted from another time server; a time synchronization frame transmission processing step in which a time synchronization frame transmission processing unit performs a transmission process of a time synchronization frame to be transmitted from its own time server; a time synchronization step in which the time synchronization unit controls transmission of a time synchronization frame from its own time server and performs time synchronization using the timer corresponding to its own time server; Including, In the time synchronization step, after the time servers are started, the time synchronization unit performs time synchronization such that a backup time server other than the active time server among the plurality of time servers that are started is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are started, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the active time server and the backup time server. A time server time synchronization method. (Appendix 35) A switch time synchronization method for a switch in a time synchronization system including a plurality of time servers, a switch, and an end device, comprising: the switch includes a storage unit that stores timer information about a plurality of timers with different expiration times; a frame reception processing step in which a frame reception processing unit receives a time synchronization frame transmitted from the time server; a frame transmission processing step in which a frame transmission processing unit transmits the time synchronization frame; a time synchronization step in which a time synchronization unit synchronizes with the time indicated in the received time synchronization frame using the timer corresponding to the time server that is the transmission source of the time synchronization frame; A switch time synchronization method comprising: (Appendix 36) 1. An end device time synchronization method for an end device in a time synchronization system including a plurality of time servers, a switch, and an end device, comprising: the end device includes a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization frame reception processing step in which a time synchronization frame reception processing unit performs a reception process of the time synchronization frame transmitted from the time server; a time synchronization step in which a time synchronization unit synchronizes with the time indicated in the received time synchronization frame using the timer corresponding to the time server that is the transmission source of the time synchronization frame; 1. An end device time synchronization method comprising: [Explanation of symbols]
[0100] 10 time synchronization system, 20, 20a, 20b time server, 21, 41 communication unit, 22, 32, 42 time synchronization frame reception processing unit, 23, 33, 43 memory unit, 24, 34, 44 time synchronization unit, 25, 35 time synchronization frame transmission processing unit, 30, 30a to 30d switch, 31 frame reception processing unit, 36 main signal frame reception processing unit, 37 multiplexing / demultiplexing unit, 38 frame transmission processing unit, 40, 40a to 40d end device, 45 main signal frame transmission processing unit, 90, 93 processing circuit, 91 processor, 92 memory.
Claims
1. a plurality of time servers capable of transmitting time synchronization frames; a switch that synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to another device; an end device that synchronizes with the time indicated in the received time synchronization frame; Equipped with the switch transmits the time synchronization frame to at least one of the time server, another switch, and the end device as the other device; After the plurality of time servers are started, a backup time server other than the active time server among the plurality of time servers that are running is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are running, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the time of the active time server and the backup time server; Among the plurality of time servers, the active time server transmits the time synchronization frame, and the standby time server does not transmit the time synchronization frame; If the standby time server does not receive the time synchronization frame from the active time server until a standby timer with a longer expiration time than the active timer used for the active time server has expired after starting the standby time server, the standby time server determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. A time synchronization system characterized by:
2. When a time server with a higher priority than the current active time server returns to the time synchronization system, it synchronizes its time with the time of the current active time server and then returns to the active time server; The time server that was currently the active time server returns to the setting of the standby time server by receiving the time synchronization frame from the restored active time server. The time synchronization system according to claim 1 .
3. When a time server having a higher priority than the current active time server returns to the time synchronization system, the time server synchronizes with the time of the current active time server and then returns as the backup time server. The time synchronization system according to claim 1 .
4. the switch and the end device are time-synchronized with the time indicated in the time synchronization frame transmitted from the active time server; The time synchronization system according to claim 1 .
5. the switch sets one of the ports that receive the time synchronization frame transmitted from the active time server as a slave port, and sets the other ports as passive ports; The time synchronization system according to claim 1 .
6. when the switch does not receive the time synchronization frame at the slave port for a specified period of time, it switches one of the ports set as the passive port to the setting of the slave port; 6. The time synchronization system according to claim 5.
7. the active time server and the standby time server transmit the time synchronization frame; when the standby time server receives the time synchronization frame from the active time server, the standby time server synchronizes its time with the time indicated in the time synchronization frame received from the active time server; The time synchronization system according to claim 1 .
8. In the time synchronization frame, different clock domains or different virtual local area network identification information is set depending on the plurality of time servers.
8. The time synchronization system according to claim 7.
9. If the standby time server does not receive the time synchronization frame from the active time server until a standby timer whose expiration time is longer than that of the active timer used when the standby time server is the active time server expires, the standby time server determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the active time server.
8. The time synchronization system according to claim 7.
10. When a time server with a higher priority than the current active time server returns to the time synchronization system, it synchronizes its time with the time of the current active time server and then returns to the active time server; The time server that was currently the active time server returns to the setting of the standby time server by receiving the time synchronization frame from the restored active time server.
8. The time synchronization system according to claim 7.
11. the switch and the end device are time-synchronized with the time indicated in the time synchronization frame transmitted from the active time server; The time synchronization system according to claim 10 .
12. When a time server having a higher priority than the current active time server returns to the time synchronization system, the time server synchronizes with the time of the current active time server and then returns as the backup time server.
8. The time synchronization system according to claim 7.
13. The switch and the end device synchronize their time with a current time server. The time synchronization system according to claim 12 .
14. the switch sets one of the receiving ports as a slave port and the other ports as passive ports for each of the time synchronization frames transmitted from the active time server and the standby time server; 14. The time synchronization system according to claim 7, wherein the time synchronization system comprises:
15. when the switch does not receive the time synchronization frame at the slave port for a specified period of time, it switches one of the ports set as the passive port to the setting of the slave port; 15. The time synchronization system according to claim 14.
16. A time server in a time synchronization system including a plurality of time servers, a switch, and an end device, a time synchronization frame reception processing unit that performs reception processing of a time synchronization frame transmitted from another time server; a time synchronization frame transmission processing unit that performs a transmission process of a time synchronization frame to be transmitted from the own time server; a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization unit that controls transmission of a time synchronization frame from its own time server and performs time synchronization using the timer corresponding to its own time server; Equipped with the time synchronization unit performs time synchronization such that, after the activation of the plurality of time servers, a backup time server other than the active time server among the plurality of activated time servers is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of activated time servers, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the active time server and the backup time server; the time synchronization unit controls the time synchronization frame transmission processing unit to transmit the time synchronization frame when the time server is the active system time server, and not transmit the time synchronization frame when the time server is the standby system time server; When the time synchronization unit does not receive the time synchronization frame from the active time server during the time from the start of a standby timer whose expiration time is longer than that of the active timer used for the active time server until the standby timer expires, the time synchronization unit determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. A time server characterized by:
17. When the time synchronization unit is returning to the time synchronization system when it is a time server with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns to the active time server, and when it is a time server that was the current active time server, it receives the time synchronization frame from the restored active time server and returns to the setting of the standby time server.
17. A time server according to claim 16.
18. the time synchronization unit controls the time synchronization frame transmission processing unit to transmit the time synchronization frame when the time server is the active time server and the standby time server, and when the time synchronization frame is received from the active time server when the time synchronization unit is the standby time server, synchronizes with the time indicated in the time synchronization frame received from the active time server.
17. A time server according to claim 16.
19. the time synchronization unit sets, in the time synchronization frame transmitted from the time synchronization frame transmission processing unit, clock domains that differ among the plurality of time servers or virtual local area network identification information that differ among the plurality of time servers; 19. A time server according to claim 18.
20. When the time synchronization unit does not receive the time synchronization frame from the active time server during the time from the start of a standby timer whose expiration time is longer than that of the active timer used when the time server is the standby time server until the standby timer expires, the time synchronization unit determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the active time server.
19. A time server according to claim 18.
21. When the time synchronization unit is returning to the time synchronization system when it is a time server with a higher priority than the current active time server, it synchronizes its time with the time of the current active time server and then returns to the active time server, and when it is the current active time server, it receives the time synchronization frame from the restored active time server and returns to the setting of the standby time server.
19. A time server according to claim 18.
22. When the time synchronization unit is to return to the time synchronization system as a time server having a higher priority than the current active time server, the time synchronization unit synchronizes the time with the time of the current active time server and then returns as the backup time server.
21. A time server according to any one of claims 18 to 20.
23. A switch in a time synchronization system including a plurality of time servers, a switch, and an end device, a frame reception processing unit that receives a time synchronization frame transmitted from the time server; a frame transmission processing unit that transmits the time synchronization frame; a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization unit that synchronizes with the time indicated in the received time synchronization frame by using the timer corresponding to the time server that is the transmission source of the time synchronization frame; Equipped with the frame reception processing unit sets one port of the ports that receive the time synchronization frames transmitted from the same time server as a slave port and sets the other ports as passive ports; when the time synchronization frame is not received at the slave port for a specified period, the frame reception processing unit switches one of the ports set as the passive port to the setting of the slave port; A switch characterized by:
24. the plurality of time servers are configured by one active time server and a standby time server other than the active time server, the time synchronization unit synchronizes with the time indicated in the time synchronization frame transmitted from the active time server; 24. The switch of claim 23.
25. A time synchronization method for a time synchronization system, comprising: a first step in which a specified time server among a plurality of time servers capable of transmitting a time synchronization frame transmits the time synchronization frame; a second step in which the switch synchronizes with the time indicated in the received time synchronization frame and transmits the time synchronization frame to another device; a third step in which the end device synchronizes its time with the time indicated in the received time synchronization frame; Including, In the first step, after the time servers are started, a backup time server other than the active time server among the plurality of time servers that are running is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are running, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the time between the active time server and the backup time server; In the second step, the switch transmits the time synchronization frame to at least one of the time server, another switch, and the end device as the other device; In the first step, among the plurality of time servers, the active time server transmits the time synchronization frame, and the standby time server does not transmit the time synchronization frame; In the first step, if the standby time server does not receive the time synchronization frame from the active time server until a standby timer whose expiration time is longer than that of the active timer used when the standby time server is the active time server expires, the standby time server determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. A time synchronization method comprising:
26. A time server time synchronization method for a time server in a time synchronization system including a plurality of time servers, a switch, and an end device, comprising: the time server includes a storage unit that stores timer information about a plurality of timers with different expiration times; a time synchronization frame reception processing step in which a time synchronization frame reception processing unit performs a reception process of a time synchronization frame transmitted from another time server; a time synchronization frame transmission processing step in which a time synchronization frame transmission processing unit performs a transmission process of a time synchronization frame to be transmitted from its own time server; a time synchronization step in which the time synchronization unit controls transmission of a time synchronization frame from its own time server and performs time synchronization using the timer corresponding to its own time server; Including, In the time synchronization step, after the time servers are started, the time synchronization unit performs time synchronization such that a backup time server other than the active time server among the plurality of time servers that are started is time-synchronized at the time indicated in the time synchronization frame transmitted from an active time server among the plurality of time servers that are started, and the active time server periodically transmits the time synchronization frame, thereby periodically synchronizing the active time server and the backup time server; In the time synchronization step, the time synchronization unit controls the time synchronization frame transmission processing unit to transmit the time synchronization frame when the time server is the active system time server, and not transmit the time synchronization frame when the time server is the standby system time server; In the time synchronization step, when the time synchronization unit is the standby time server, if the time synchronization frame is not received from the active time server within the time from the start of a standby timer whose expiration time is longer than that of the active timer used when the time server is the active time server until the standby timer expires, the time synchronization unit determines that a failure has occurred in the current active time server, and sets the standby time server with the highest priority among the standby time servers as the next active time server. A time server time synchronization method.
27. A switch time synchronization method for a switch in a time synchronization system including a plurality of time servers, a switch, and an end device, comprising: the switch includes a storage unit that stores timer information about a plurality of timers with different expiration times; a frame reception processing step in which a frame reception processing unit receives a time synchronization frame transmitted from the time server; a frame transmission processing step in which a frame transmission processing unit transmits the time synchronization frame; a time synchronization step in which a time synchronization unit synchronizes with the time indicated in the received time synchronization frame using the timer corresponding to the time server that is the transmission source of the time synchronization frame; Including, In the frame reception processing step, the frame reception processing unit sets one port of the ports that receive the time synchronization frame transmitted from the same time server as a slave port and sets the other ports as passive ports; In the frame reception processing step, when the time synchronization frame is not received at the slave port for a specified period, the frame reception processing unit switches one of the ports set as the passive port to the setting of the slave port. A switch time synchronization method characterized by:
Citation Information
Patent Citations
Time synchronization system
JP2018037885A
In-vehicle device, in-vehicle network system, and information processing method
WO2022230503A1
Forwarding device and time synchronization system
WO2023105777A1