Relay device, relay method, relay program, and time synchronization system
The relay device facilitates the integration of time synchronization networks with different profiles by selecting a shared grandmaster, enhancing efficiency and reducing costs.
Patent Information
- Application Number
- JP2024522506
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Existing time synchronization networks using different profiles are not compatible, requiring separate installations and increased costs when different communication methods or applications are introduced, leading to inefficient network construction and maintenance.
A relay device that can receive and process time synchronization messages from multiple networks with different profiles, selecting a grandmaster for shared use across these networks, allowing for efficient integration and reducing the need for multiple grandmasters.
Enables efficient construction of time synchronization networks by allowing different profiles to share a grandmaster, reducing the number of required devices and lowering maintenance costs.
Smart Images

Figure 0007538381000001 
Figure 0007538381000006 
Figure 0007538381000012
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for performing time synchronization. [Background technology]
[0002] In recent years, there has been a demand for highly accurate time synchronization in various fields. One of the technologies that provides the basis for highly accurate time synchronization is IEEE1588 (see Non-Patent Document 1). In IEEE1588, devices that transfer time information have a master and slave structure. Time information is supplied from a grandmaster, which acts as the clock source. Time information is transferred in sequence from the master device to the slave device. A time synchronization profile is set for each device. Each device performs time synchronization with the grandmaster based on the time information, following the set time synchronization profile.
[0003] In IEEE1588, an Announce message is sent for each domain number. Then, the best grandmaster is selected as the clock source by comparing the parameters of the Announce messages. At this time, the best grandmaster is selected as the clock source by the BMCA algorithm. BMCA is an abbreviation for Best Master Clock Algorithm.
[0004] In some fields, the IEEE 1588 standard itself is not used. Instead, a time synchronization profile standard that is an extension of the IEEE 1588 standard for that field is used. For example, there is a Telecom profile (ITUG8275.1 (see Non-Patent Document 2)) for 5G, and IEEE802.1AS (see Non-Patent Document 3) for industry. 5G is an abbreviation for 5 Generation.
[0005] Patent Document 1 describes a time synchronization process based on a single time synchronization profile. In Patent Document 1, a relay device filters only time synchronization packets based on the time synchronization profile, transfers them to a time synchronization unit, performs time synchronization calculations, and generates and transmits time synchronization packets. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent Publication No. 2021-93681 [Non-patent literature]
[0007] [Non-Patent Document 1] IEEE1588-2019 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems P161,P217,P223 [Non-Patent Document 2] ITU-T G.8275.1 / Y.1369.1 Amendment 2(06 / 2021) Precision time protocol telecom profile for phase / time synchronization with full timing support from the network Amendment 2 P14,P16,P23 [Non-Patent Document 3] IEEE Std 802.1ASTM-2020 Timing and Synchronization for Time Sensitive Applications P54-57 Summary of the Invention [Problem to be solved by the invention]
[0008] Non-Patent Document 1 describes the outline of time synchronization processing. However, as described in Non-Patent Documents 2 and 3, time synchronization processing may be specified by a unique time synchronization profile depending on the field. Furthermore, there is no compatibility between different time synchronization profiles. Therefore, it is necessary to build a time synchronization network for each time synchronization profile.
[0009] For example, assume that a time synchronization network of time synchronization profile A is installed in a certain area X. Assume that a communication method or application that requires a different time synchronization profile B is introduced into area X. The communication method or application that requires a different time synchronization profile B cannot use time synchronization profile A. Therefore, it is necessary to either extend the existing time synchronization network of time synchronization profile B to area X, or to install a separate expensive grand master that supports time synchronization profile B for area X. Generally, the grandmaster receives time from a GPS or other device. Therefore, there are restrictions on where the grandmaster can be installed. Installing a separate grandmaster for Area X would increase costs, and Area X would also require separate monitoring and operation, which would increase maintenance costs.
[0010] An object of the present disclosure is to enable efficient construction of a time synchronization network when there are multiple time synchronization networks that use different time synchronization profiles. [Means for solving the problem]
[0011] A relay device according to the present disclosure includes: A receiver that receives a time synchronization message in each of a plurality of time synchronization networks using different time synchronization profiles; a different profile selection unit that selects a grandmaster to be used for time synchronization from among grandmasters in each of the plurality of time synchronization networks based on the time synchronization message in the plurality of time synchronization networks received by the receiving unit; Equipped with. Effect of the Invention
[0012] In the present disclosure, a grandmaster to be used for time synchronization is selected from the grandmasters in each of a plurality of time synchronization networks. This makes it possible to share and use the grandmaster in time synchronization networks using different time synchronization profiles. As a result, when there are a plurality of time synchronization networks using different time synchronization profiles, it becomes possible to efficiently construct a time synchronization network. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a configuration diagram of a time synchronization system 100 according to a first embodiment. [Diagram 2] 1 is a configuration diagram of a relay device 10 according to a first embodiment. [Diagram 3] 6 is a flowchart of a process performed when a PTP frame is received according to the first embodiment. [Figure 4] 4 is a flowchart of a PTP protocol identification process according to the first embodiment. [Diagram 5] An explanatory diagram of a PTP frame header. [Figure 6] FIG. 13 is an explanatory diagram of the body portion of an Announce message. [Figure 7] 4 is a flowchart of a different profile selection process according to the first embodiment. [Figure 8] 1 is an explanatory diagram of items used when selecting the grandmaster 102. [Figure 9] 4 is a flowchart of a transmission process according to the first embodiment. [Figure 10] FIG. 4 is a configuration diagram of a relay device 10 according to a first modified example. [Figure 11] FIG. 11 is a configuration diagram of a time synchronization system 100 according to a second embodiment. [Figure 12] 11 is a flowchart of a process performed when a PTP frame is received according to the second embodiment. [Figure 13] FIG. 11 is a configuration diagram of a time synchronization system 100 according to a third embodiment. [Figure 14] 11 is a flowchart of a process when a PTP frame is received according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Embodiment 1 ***Configuration Description*** The configuration of a time synchronization system 100 according to the first embodiment will be described with reference to FIG. The time synchronization system 100 includes a plurality of time synchronization networks 101. Each time synchronization network 101 uses a different time synchronization profile. In FIG. 1, a time synchronization network 101A and a time synchronization network 101B are shown as the time synchronization networks 101. The time synchronization network 101A uses a time synchronization profile A. The time synchronization network 101B uses a time synchronization profile B.
[0015] Each time synchronization network 101 includes a grandmaster 102, one or more relay devices 10, and one or more communication devices 103. In Fig. 1, the time synchronization network 101A includes a grandmaster 102A, relay devices 10A, 10B, and 10C, and a communication device 103A. The time synchronization network 101B includes a grandmaster 102B, relay devices 10D, 10E, and 10F, and a communication device 103B. In the time synchronization system 100, some of the relay devices 10 in each time synchronization network 101 are connected to each other. In Fig. 1, a relay device 10A in a time synchronization network 101A and a relay device 10D in a time synchronization network 101B are connected to each other.
[0016] In the time synchronization network 101A, the grandmaster 102A, the relay devices 10A, 10B, and 10C, and the communication device 103A transmit and receive PTP frames according to the time synchronization profile A. In addition, the relay device 10A transfers a PTP frame including information of the time synchronization profile A to the relay device 10D. In the time synchronization network 101B, the grandmaster 102B, the relay devices 10D, 10E, and 10F, and the communication device 103A transmit and receive PTP frames according to the time synchronization profile B. In addition, the relay device 10D transfers a PTP frame including information of the time synchronization profile B to the relay device 10A. Here, a PTP frame is a time-synchronized message.
[0017] The relay device 10A and the relay device 10D determine which time synchronization profile the PTP frame conforms to. The relay device 10A and the relay device 10D extract determination information of the grandmaster 102 from the PTP frame. The relay device 10A and the relay device 10D compare the determination information between different time synchronization profiles and select a grandmaster 102 to be used from the grandmasters 102 in each of the multiple time synchronization networks 101. The relay device 10A and the relay device 10D transfer the determination information of the selected grandmaster 102.
[0018] The configuration of the relay device 10 according to the first embodiment will be described with reference to FIG. The relay device 10 is a computer. The relay device 10 includes the following hardware components: a processor 11, a memory 12, and a plurality of physical ports 13. The processor 11 is connected to other hardware components via signal lines and controls the other hardware components.
[0019] The processor 11 is an IC that performs processing. IC is an abbreviation for Integrated Circuit. A specific example of the processor 11 is a CPU. CPU is an abbreviation for Central Processing Unit.
[0020] The memory 12 is a storage device that stores data. Specific examples of the memory 12 include SRAM and DRAM. SRAM is an abbreviation for Static Random Access Memory. DRAM is an abbreviation for Dynamic Random Access Memory. The memory 12 realizes the functions of a setting management unit 121 and a time management unit 122. The setting management unit 121 manages a time synchronization profile and the like. The time management unit 122 manages the time in the relay device 10.
[0021] The physical port 13 is a port for a wired LAN. LAN is an abbreviation for Local Area Network. The physical port 13 realizes the functions of a receiving unit 131 and a transmitting unit 132. The receiving unit 131 receives a PTP frame from the outside. The transmitting unit 132 transmits a PTP frame to the outside.
[0022] The relay device 10 includes, as functional components, an L2 / L3 protocol processing unit 21, a PTP protocol identification unit 22, a plurality of time synchronization processing units 23, and a different profile selection unit 24. The functions of the functional components of the relay device 10 are realized by software. A time synchronization profile stored in a setting management unit 121 and the like are set in each functional component. The memory 12 stores a program for implementing the functions of each functional component of the relay device 10. The program is read and executed by the processor 11. As a result, the function of each functional component of the relay device 10 is implemented.
[0023] The L2 / L3 protocol processing unit 21 is a function that terminates the protocol. The PTP protocol identification unit 22 is a function that identifies the PTP profile. The time synchronization processing unit 23 is a function that performs time synchronization processing. The time synchronization processing unit 23 is provided corresponding to each time synchronization profile managed by the setting management unit 121, and performs time synchronization processing according to the corresponding time synchronization profile based on the PTP frame. The time synchronization processing includes processing such as delay calculation, time distribution, and BMCA judgment defined in each time synchronization profile as described in Non-Patent Documents 1, 2, and 3. The different profile selection unit 24 is a function that selects a grandmaster to be used for time synchronization from the grandmasters in each of multiple time synchronization networks using different time synchronization profiles.
[0024] 2 shows only one processor 11. However, there may be a plurality of processors 11, and the plurality of processors 11 may cooperate to execute programs that realize the respective functions.
[0025] ***Explanation of Operation*** The operation of the relay device 10 according to the first embodiment will be described with reference to FIGS. The operation procedure of the relay device 10 according to the embodiment 1 corresponds to the relay method according to the embodiment 1. Moreover, the program for realizing the operation of the relay device 10 according to the embodiment 1 corresponds to the relay program according to the embodiment 1. Here, the operation of the relay device 10 connected to another time synchronization network 101, such as the relay devices 10A and 10D in Fig. 1, will be described. The other relay devices 10 (relay devices 10B, 10C, 10E, and 10F) perform the same operation as in the conventional technology.
[0026] With reference to FIG. 3, a process when a PTP frame is received according to the first embodiment will be described. In particular, the process when an Announce message, which is a type of PTP frame, is received will be described here. In Non-Patent Documents 1, 2, and 3, when an Announce message is received, a BMCA determination is performed to determine the grandmaster 102 to be used. The relay device 10 according to the first embodiment performs the BMCA determination in two stages.
[0027] (Step S11: PTP protocol identification process) The PTP frame received by the receiving unit 131 is input to the PTP protocol identifying unit 22 via the L2 / L3 protocol processing unit 21 . The PTP protocol identification unit 22 identifies which of a plurality of time synchronization profiles the input Announce message conforms to. The PTP protocol identification unit 22 inputs the Announce message to the time synchronization processing unit 23 that corresponds to the identified time synchronization profile.
[0028] (Step S12: Time synchronization process) The time synchronization processing unit 23 to which the Announce message is input in step S11 performs a BMCA determination according to the corresponding time synchronization profile. For example, if the time synchronization processing unit 23 corresponds to the time synchronization profile defined in Non-Patent Document 1, the time synchronization processing unit 23 performs the BMCA determination defined in Non-Patent Document 1. If the time synchronization processing unit 23 corresponds to the time synchronization profile defined in Non-Patent Document 2, the time synchronization processing unit 23 performs the BMCA determination defined in Non-Patent Document 2. If the time synchronization processing unit 23 corresponds to the time synchronization profile defined in Non-Patent Document 3, the time synchronization processing unit 23 performs the BMCA determination defined in Non-Patent Document 3.
[0029] The process of step S12 selects the grandmaster 102 to be used in the time synchronization profile. In other words, the best grandmaster 102 is selected in the time synchronization profile. As described with reference to Fig. 1, not only the PTP frame of the time synchronization network 101 to which the relay devices 10A and 10D belong, but also the PTP of a different time synchronization network 101 is transmitted to the relay devices 10A and 10D. Therefore, when the process of Fig. 6 is repeatedly executed, in step S11, the receiving unit 131 receives an Announce message in each of a plurality of time synchronization networks using different time synchronization profiles. As a result, the grandmaster 102 to be used for each time synchronization profile is selected by the process of step S12. In other words, the grandmaster 102 to be used is selected for each time synchronization network 101 using a different time synchronization profile. In Fig. 1, the grandmaster 102 to be used is selected in each of the time synchronization networks 101A and 101B.
[0030] (Step S13: Different profile selection process) The different profile selection unit 24 selects the grandmaster 102 to be used from the grandmasters 102 selected for each time synchronization profile in step S12 based on Announce messages in multiple time synchronization networks that use different time synchronization profiles. In other words, the different profile selection unit 24 selects the best grandmaster 102 from the grandmasters 102 selected in each of the multiple time synchronization profiles.
[0031] (Step S14: Transmission process) The different profile selection unit 24 performs transmission settings for an Announce message in accordance with each time synchronization profile based on the grandmaster 102 selected in step S13. Then, the different profile selection unit 24 notifies the time synchronization processing unit 23 of the Announce message for which transmission settings have been performed. The time synchronization processing unit 23 to which the notification is sent is the time synchronization processing unit 23 corresponding to the time synchronization profile identified in step S11. Upon receiving the notification, the time synchronization processing unit 23 transmits an Announce message via the transmission unit 132 in accordance with the corresponding time synchronization profile.
[0032] The PTP protocol identification process (step S11 in FIG. 3) according to the first embodiment will be described with reference to FIG. Here, the header of the PTP frame is defined as shown in Fig. 5 in Non-Patent Document 1. Also, the body of the Announce message is defined as shown in Fig. 6 in Non-Patent Document 1.
[0033] In steps S111 and S112, the PTP protocol identification unit 22 judges whether the address is an IPv4 address, an IPv6 address, or a multicast MAC address. IP is an abbreviation for Internet Protocol. MAC is an abbreviation for Media Access Control. Specifically, in step S111, the PTP protocol identification unit 22 determines whether the address is an IPv4 address or an IPv6 address based on the value of the Ethertype field of the received frame. If the address is an IPv4 address or an IPv6 address, the PTP protocol identification unit 22 advances the process to step S112. On the other hand, if the address is neither an IPv4 address nor an IPv6 address, the PTP protocol identification unit 22 advances the process to step S113. In step S112, the PTP protocol identification unit 22 determines whether the address is an IPv4 address or an IPv6 address based on the value of the Ethertype field of the received frame. If the address is an IPv4 address, the PTP protocol identification unit 22 advances the process to step S120. On the other hand, if the address is an IPv6 address, the PTP protocol identification unit 22 advances the process to step S130. Here, the Ethertype field has a 2-byte area. For example, in Non-Patent Documents 1 and 3, the Ethertype is specified as 88F7, with the value being 0800 for IPv4 and 86DD for IPv6.
[0034] The case of a multicast MAC address will be explained. In step S113, the PTP protocol identification unit 22 determines whether the MAC address is a specific address. Specifically, the PTP protocol identification unit 22 judges whether or not the MAC address corresponds to an address (01-1B-19-00-00-00 or 01-80-C2-00-00-0E) defined in Non-Patent Document 1. If it corresponds, the PTP protocol identification unit 22 advances the process to step S114. On the other hand, if it does not correspond, the PTP protocol identification unit 22 ends the process of FIG.
[0035] In step S114, the PTP protocol identification unit 22 determines whether the received frame is an Announce message. Specifically, the PTP protocol identification unit 22 determines whether or not the message is an Announce message based on the message type (messageType) of the PTP common header. If the message is an Announce message, the message type is 0xB. If the message is an Announce message, the PTP protocol identification unit 22 advances the process to step S115. On the other hand, if the message is not an Announce message, the PTP protocol identification unit 22 ends the process of FIG. 3.
[0036] In step S115, the PTP protocol identification unit 22 checks the difference in the header portion of the Announce message. Specifically, the PTP protocol identification unit 22 uses the header part of the Announce message shown in Fig. 5 as a reference. The PTP protocol identification unit 22 judges whether or not there is a difference between the header part of the received Announce message and the reference header part. If there is a difference, the PTP protocol identification unit 22 advances the process to step S116. On the other hand, if there is no difference, the PTP protocol identification unit 22 advances the process to step S117.
[0037] In step S116, the PTP protocol identification unit 22 extracts a value of a part of the header of the received Announce message that is different from a reference header. The PTP protocol identification unit 22 compares the extracted value with a unique value defined in each time synchronization profile. The PTP protocol identification unit 22 identifies an L2 time synchronization profile in which a unique value matching the extracted value is defined. L2 is an abbreviation for Layer 2. The PTP protocol identification unit 22 identifies the received Announce message as an Announce message that conforms to the identified L2 time synchronization profile. The unique value in the header of the Announce message is a value that matches a unique condition defined in the profile. Specific examples of the unique value include the version of each profile or the range of values of the domain number.
[0038] In step S117, the PTP protocol identification unit 22 checks the difference in the body part of the Announce message. Specifically, the PTP protocol identification unit 22 uses the body part of the Announce message shown in Fig. 6 as a reference. The PTP protocol identification unit 22 judges whether or not there is a difference between the body part of the received Announce message and the reference body part. If there is a difference, the PTP protocol identification unit 22 advances the process to step S118. On the other hand, if there is no difference, the PTP protocol identification unit 22 advances the process to step S119.
[0039] In step S118, the PTP protocol identification unit 22 extracts a value of a part of the body part of the received Announce message that is different from a reference body part. The PTP protocol identification unit 22 compares the extracted value with a unique value defined in each time synchronization profile. The PTP protocol identification unit 22 identifies an L2 time synchronization profile in which a unique value matching the extracted value is defined. The PTP protocol identification unit 22 identifies the received Announce message as an Announce message that conforms to the identified L2 time synchronization profile. The unique value in the body of the Announce message is the value of the part extended by the time synchronization profile. For example, in ITU-T G8275.1 in Non-Patent Document 2, grandmasterPriority1 is not used, and is fixed at 128. If this value matches, it is determined to be ITU-T G8275.1. In addition, in IEEE802.1AS-2020 in Non-Patent Document 3, the value of path trace TLV, which is an option, is specified. If this value matches, it is determined to be IEEE802.1AS-2020.
[0040] In step S119, the L2 time synchronization profile associated with the domain number is identified. Here, it is assumed that a domain number is set in advance for each L2 time synchronization profile.
[0041] The process for IPv4 will be explained. In step S120, the PTP protocol identification unit 22 determines whether the IP address is a specific address. Specifically, the PTP protocol identification unit 22 judges whether or not the IP address corresponds to an address (224.0.1.129 or 224.0.0.107) defined in Non-Patent Document 1. If it corresponds, the PTP protocol identification unit 22 advances the process to step S121. On the other hand, if it does not correspond, the PTP protocol identification unit 22 ends the process of FIG.
[0042] The process from step S121 to step S126 is the same as the process from step S113 to step S119, except that the IPv4 time synchronization profile is specified instead of the L2 time synchronization profile.
[0043] The process for IPv6 will be explained. In step S130, the PTP protocol identification unit 22 determines whether the IP address is a specific address. Specifically, the PTP protocol identification unit 22 judges whether or not the IP address corresponds to an address (FF0X:0:0:0:0:0:0:181 or FF02:0:0:0:0:0:0:6B) defined in Non-Patent Document 1. If it corresponds, the PTP protocol identification unit 22 advances the process to step S131. On the other hand, if it does not correspond, the PTP protocol identification unit 22 ends the process of FIG.
[0044] The process from step S131 to step S136 is the same as the process from step S113 to step S119, except that an IPv6 time synchronization profile is specified instead of an L2 time synchronization profile.
[0045] The different profile selection process (step S13 in FIG. 3) according to the first embodiment will be described with reference to FIG. In the different profile selection process, the different profile selection unit 24 selects whether the currently selected grandmaster 102 or the grandmaster 102 newly selected in step S12 is to be used as the grandmaster 102. Here, the time synchronization profile corresponding to the currently selected grandmaster 102 is set as time synchronization profile A. The time synchronization profile corresponding to the grandmaster 102 newly selected in step S12 is set as time synchronization profile B.
[0046] In Non-Patent Document 1, the grandmaster 102 to be used is selected based on the items shown in Fig. 8. In the different profile selection process, the different profile selection unit 24 compares the items shown in Fig. 8 in descending order of priority and selects the grandmaster 102 to be used. However, the value referenced in the BMCA judgment or the selection method may differ depending on the time synchronization profile. For example, in ITU-TG8275.1 of Non-Patent Document 2, the BMCA judgment is redefined in 6.3.7 Data set comparison algorithm. Here, grandmasterPriority1 is not used. Similarly, in IEEE802.1AS-2020 of Non-Patent Document 3, the BMCA judgment is redefined in 10.3.2 systemIdentity. Therefore, the different profile selection unit 24 does not perform a comparison for items that are not used in the selection of the grandmaster 102 in at least one of the time synchronization profiles to be compared.
[0047] In step S211, the different profile selection unit 24 determines whether or not the different profile selection process is necessary. For example, when only a single time synchronization profile is managed in the setting management unit 121, the different profile selection process is not necessary. If the different profile selection process is necessary, the different profile selection unit 24 advances the process to step S212. On the other hand, if the different profile selection process is not necessary, the different profile selection unit 24 ends the process. If the different profile selection process is not necessary, the grandmaster 102 selected in step S12 is determined to be the grandmaster 102 to be used.
[0048] In step S212, the different profile selection unit 24 determines whether or not Priority 1 is used in both of the time synchronization profiles A and B. If Priority 1 is used in both, the different profile selection unit 24 advances the process to step S213. On the other hand, if Priority 1 is not used in at least either of the profiles, the different profile selection unit 24 advances the process to step S214. In step S213, the different profile selection unit 24 compares Priority 1 between the time synchronization profiles A and B. If the time synchronization profile A is superior, the different profile selection unit 24 selects the currently selected grandmaster 102 and ends the process. On the other hand, if the time synchronization profile B is superior, the different profile selection unit 24 selects the newly selected grandmaster 102 and ends the process. If the profiles are the same, the different profile selection unit 24 advances the process to step S214.
[0049] Thereafter, the different profile selection unit 24 similarly determines whether or not other items are used and compares them in descending order of priority until the grandmaster 102 to be used is selected. In steps S214 and S215, it determines whether or not Clockclass is used and compares them. In steps S216 and S217, it determines whether or not ClockAccuracy is used and compares them. In steps S218 and S219, it determines whether or not OffsetScaledLogVariance is used and compares them. In steps S220 and S221, it determines whether or not Priority2 is used and compares them. In steps S222 and S223, it determines whether or not ClockIdentity is used and compares them. If the grandmaster 102 to be used is not selected even by the last ClockIdentity, the different profile selection unit 24 performs error processing and ends the process.
[0050] The transmission process (step S14 in FIG. 3) according to the first embodiment will be described with reference to FIG. In the transmission process, the different profile selection unit 24 performs transmission settings for the Announce message. At this time, the different profile selection unit 24 sets a value in the Announce message of the grandmaster 102 selected in step S13 and a unique value in the Announce message received in step S11. Here, the different profile selection unit 24 sets a unique value for an item that has a unique value in the time synchronization profile of the Announce message received in step S11. On the other hand, the different profile selection unit 24 sets a value in the Announce message of the grandmaster 102 selected in step S13 for an item that does not have a unique value. As a result, an Announce message is generated which indicates the time synchronization information of the grandmaster 102 selected by the different profile selection unit 24 and conforms to the time synchronization profile of the Announce message received in step S11.
[0051] In step S311, the different profile selecting unit 24 reads out the time synchronization profile of the Announce message received in step S11.
[0052] In step S312, the different profile selection unit 24 determines whether or not the time synchronization profile of the Announce message received in step S11 has a unique value for Priority 1. If there is no unique value, the different profile selection unit 24 advances the process to step S313. On the other hand, if there is a unique value, the different profile selection unit 24 advances the process to step S314. In step S313, the different profile selection unit 24 sets the value of Priority1 in the Announce message of the grandmaster 102 selected in step S13 as Priority1. On the other hand, in step S314, the different profile selection unit 24 sets the unique value of Priority1 in the time synchronization profile of the Announce message received in step S11 as Priority1.
[0053] Thereafter, the different profile selection unit 24 similarly determines whether or not there is a unique value and sets the item value for other items. In steps S315 to S317, it determines whether or not there is a unique value for Clockclass and sets the item value. In steps S318 to S320, it determines whether or not there is a unique value for ClockAccuracy and sets the item value. In steps S321 to S323, it determines whether or not there is a unique value for OffsetScaledLogVariance and sets the item value. In steps S324 to S326, it determines whether or not there is a unique value for Priority2 and sets the item value. In steps S327 to S329, it determines whether or not there is a unique value for ClockIdentity and sets the item value. In steps S330 to S332, it determines whether or not there is a unique value for the Option area and sets the item value.
[0054] 3, the process has been described for the case where the PTP frame is an Announce message. There are cases where the PTP frame is a message other than an Announce message. In this case, the relay device 10 performs the process as follows. The relay device 10 judges whether the message contains the time information of the grandmaster 102 selected as the grandmaster 102 to be used. If the message contains the time information of the selected grandmaster 102, the relay device 10 performs time synchronization processing by the time synchronization processing unit 23 corresponding to the time synchronization profile of the message based on the time information contained in the message. In addition, the time synchronization processing unit 23 transmits the time information contained in the message to the slave side device and the relay devices 10 of the other time synchronization networks 101. Here, the time synchronization processing unit 23 transmits only to the time synchronization network 101 side using a time synchronization profile with a lower priority among the relay devices 10 of the other time synchronization networks 101. The time synchronization network 101 using a time synchronization profile with a lower priority is a time synchronization network other than the time synchronization network to which the selected grandmaster belongs. That is, in FIG. 1, when the selected grandmaster 102 is the grandmaster 102A, the relay device 10A transmits the time information of the grandmaster 102A to the communication device 103A and the relay device 10D. When the selected grandmaster 102 is the grandmaster 102B, the relay device 10A transmits the time information of the grandmaster 102B only to the communication device 103A.
[0055] ***Advantages of the First Embodiment*** As described above, the relay device 10 according to the first embodiment selects a grandmaster 102 to be used for time synchronization from among the grandmasters 102 in each of the multiple time synchronization networks 101. In addition, the relay device 10 according to the first embodiment converts the time synchronization information about the selected grandmaster 102 into an Announce message in a format conforming to another time synchronization profile. This allows the grandmaster 102 to be shared among time synchronization networks 101 using different time synchronization profiles. As a result, when there are multiple time synchronization networks using different time synchronization profiles, it becomes possible to efficiently build a time synchronization network. For example, it becomes possible to reduce the number of expensive grandmasters 102.
[0056] ***Other configurations*** <Variation 1> In the first embodiment, each functional component is realized by software. However, as a first modification, each functional component may be realized by hardware. The following describes the first modification in terms of differences from the first embodiment.
[0057] The configuration of a relay device 10 according to the first modification will be described with reference to FIG. When each functional component is realized by hardware, the relay device 10 includes an electronic circuit 14 instead of the processor 11 and the memory 12. The electronic circuit 14 is a dedicated circuit for realizing the functions of each functional component and the memory 12.
[0058] The electronic circuit 14 may be a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA, an ASIC, or an FPGA. GA is an abbreviation for Gate Array. ASIC is an abbreviation for Application Specific Integrated Circuit. FPGA is an abbreviation for Field-Programmable Gate Array. Each functional component may be realized by one electronic circuit 14, or each functional component may be distributed across multiple electronic circuits 14.
[0059] <Variation 2> As a second modification, some of the functional components may be realized by hardware, and other functional components may be realized by software.
[0060] The processor 11, the memory 12, and the electronic circuit 14 are collectively referred to as a processing circuit. In other words, the functions of the respective functional components are realized by the processing circuit.
[0061] Embodiment 2 The second embodiment differs from the first embodiment in that it is possible to set a priority profile, which is a time synchronization profile to be prioritized. In the second embodiment, this difference will be described, and a description of the same points will be omitted.
[0062] When an already-installed time synchronization network 101 exists, a new time synchronization network 101 with a different time synchronization profile may be added. In this case, it is possible to set the time synchronization profile used in the already-installed time synchronization network 101 as the preferred profile. This ensures that the grandmaster 102 of the already-installed time synchronization network 101 is selected as the grandmaster 102 to be used. As a result, it becomes unnecessary to install a grandmaster 102 in the newly added time synchronization network 101. In addition, it becomes unnecessary to lay a network to the grandmaster 102 in the newly added time synchronization network 101.
[0063] ***Configuration Description*** The configuration of a time synchronization system 100 according to the second embodiment will be described with reference to FIG. In Fig. 11, the time synchronization system 100 includes a time synchronization network 101C and a time synchronization network 101D. The time synchronization network 101C uses a time synchronization profile C. The time synchronization network 101D uses a time synchronization profile D. In Fig. 11, it is assumed that the time synchronization network 101C has already been installed and the time synchronization network 101D has been newly added.
[0064] The time synchronization network 101C includes grandmasters 102C and 102D, relay devices 10G, 10H, and 10I, and a communication device 103C. The time synchronization network 101D includes relay devices 10J, 10K, and 10M, and a communication device 103D. In other words, the time synchronization network 101D does not include a grandmaster 102. A relay device 10G in the time synchronization network 101C and a relay device 10J in the time synchronization network 101D are connected to each other.
[0065] ***Explanation of Operation*** The operation of the relay device 10 according to the second embodiment will be described with reference to FIG. Here, it is assumed that the time synchronization profile C is set as the priority profile in the different profile selection unit 24 of the relay device 10J.
[0066] Step S11A, step S12A, and step S14A are the same as step S11, step S12, and step S14 in FIG.
[0067] (Step S13A: Different profile selection process) 3, the different profile selection unit 24 selects the grandmaster 102 to be used from the grandmasters 102 selected for each time synchronization profile in step S12 based on the Announce messages in the multiple time synchronization networks. In other words, the different profile selection unit 24 selects the best grandmaster 102 from the grandmasters 102 selected in each of the multiple time synchronization profiles. However, when a preferred profile is set, the different profile selection unit 24 selects the grandmaster 102 in the time synchronization network 101 in which the preferred profile is used as the grandmaster 102 to be used, without comparing the different profiles.
[0068] The relay device 10J is set to have the time synchronization profile C as the priority profile, so the different profile selection unit 24 of the relay device 10J selects the grandmaster 102 in the time synchronization network 101C as the grandmaster 102 to be used without comparing different profiles.
[0069] ***Effects of the second embodiment*** As described above, the relay device 10 according to the second embodiment can set a priority profile that is a time synchronization profile that has priority. This makes it possible to intentionally select the grandmaster 102 of the time synchronization network 101 using a specific time synchronization profile. For example, the time synchronization profile used in the already installed time synchronization network 101 is set as the preferred profile. This makes it unnecessary for the grandmaster 102 and the network leading to the grandmaster 102 to be newly added to the time synchronization network 101.
[0070] Embodiment 3 The third embodiment differs from the first embodiment in that a comparison target profile, which is a time synchronization profile to be compared, can be set. In the third embodiment, this difference will be described, and a description of the same points will be omitted.
[0071] The required time accuracy may differ depending on the time synchronization profile. There is a risk that the grandmaster 102 of the time synchronization network 101 using a time synchronization profile that requires low time accuracy may be selected. If such a grandmaster 102 is selected, there is a risk that the required time accuracy may not be met. For example, a situation may occur in which no grandmaster 102 is connected to a time synchronization network 101 using a time synchronization profile with high required time accuracy due to a failure of the grandmaster 102, etc. In this case, a grandmaster 102 of a time synchronization network 101 using a time synchronization profile with low required time accuracy is selected. Generally, the grandmaster 102 is made redundant in each time synchronization network 101. However, there is a possibility that failures will occur in all of the grandmasters 102 in the time synchronization network 101.
[0072] ***Configuration Description*** The configuration of a time synchronization system 100 according to the third embodiment will be described with reference to FIG. In Fig. 13, the time synchronization system 100 includes a time synchronization network 101E and a time synchronization network 101F. The time synchronization network 101E uses a time synchronization profile E. The time synchronization network 101F uses a time synchronization profile F. In Fig. 13, it is assumed that the time synchronization network 101E requires higher time accuracy than the time synchronization network 101F.
[0073] The time synchronization network 101E includes grandmasters 102E and 102F, relay devices 10N, 10O, and 10P, and a communication device 103E. The time synchronization network 101F includes grandmasters 102G and 102H, relay devices 10Q, 10R, and 10S, and a communication device 103F. A relay device 10N in a time synchronization network 101E and a relay device 10Q in a time synchronization network 101F are connected to each other.
[0074] ***Explanation of Operation*** The operation of the relay device 10 according to the third embodiment will be described with reference to FIG. Here, it is assumed that only the time synchronization profile E is set as a profile to be compared in the different profile selection unit 24 of the relay device 10N. It is assumed that the time synchronization profiles E and F are set as profiles to be compared in the different profile selection unit 24 of the relay device 10Q.
[0075] Step S11B, step S12B, and step S14B are the same as step S11, step S12, and step S14 in FIG.
[0076] (Step S13B: Different profile selection process) 3, the different profile selection unit 24 selects the grandmaster 102 to be used from the grandmasters 102 selected for each time synchronization profile in step S12 based on the Announce messages in the multiple time synchronization networks. In other words, the different profile selection unit 24 selects the best grandmaster 102 from the grandmasters 102 selected in each of the multiple time synchronization profiles. However, the different profile selection unit 24 selects the grandmaster 102 to be used from the grandmasters 102 of the time synchronization network 101 that use the time synchronization profile set as the profile to be compared. Therefore, in the case of the relay device 10N, the grandmaster 102 of the time synchronization network 101E is selected without performing a comparison between different profiles. In the case of the relay device 10Q, a comparison is made between the time synchronization networks 101E and 101F, and the grandmaster 102 is selected.
[0077] 13, it is assumed that both of the grandmasters 102E and 102F in the time synchronization network 101E are disconnected. Even in this case, the relay device 10N will not select the grandmaster 102 of the time synchronization network 101F using the time synchronization profile F that requires low time accuracy. If the grandmaster 102 is not selected, the relay device 10N will operate independently until the selectable grandmaster 102 is restored.
[0078] ***Effects of the Third Embodiment*** As described above, the relay device 10 according to the third embodiment can set a comparison profile that is a time synchronization profile to be compared. This makes it possible to select the grandmaster 102 to be used from the grandmasters 102 of the time synchronization network 101 using a specific time synchronization profile. For example, a time synchronization profile used in a time synchronization network 101 that satisfies the required time accuracy standard is set as a comparison profile. This makes it possible to satisfy the time accuracy required by the time synchronization profile.
[0079] In addition, the word "part" in the above description may be read as a "circuit," "step," "procedure," "processing," or "processing circuit."
[0080] The above describes the embodiments and modifications of the present disclosure. Some of these embodiments and modifications may be combined and implemented. Also, one or some of them may be partially implemented. Note that the present disclosure is not limited to the above embodiments and modifications, and various modifications are possible as necessary. [Explanation of symbols]
[0081] 100 time synchronization system, 101 time synchronization network, 102 grand master, 103 communication device, 10 relay device, 11 processor, 12 memory, 121 setting management unit, 122 time management unit, 13 physical port, 131 receiving unit, 132 transmitting unit, 21 L2 / L3 protocol processing unit, 22 PTP protocol identification unit, 23 time synchronization processing unit, 24 different profile selection unit.
Claims
1. A receiver that receives a time synchronization message in each of a plurality of time synchronization networks using different time synchronization profiles; a different profile selection unit that selects a grandmaster to be used for time synchronization from among grandmasters in each of the plurality of time synchronization networks based on the time synchronization message in the plurality of time synchronization networks received by the receiving unit; A relay device comprising:
2. The relay device further comprises: A plurality of time synchronization processing units are provided corresponding to the respective time synchronization profiles, and transmit a time synchronization message indicating time synchronization information of the grandmaster selected by the different profile selection unit, the time synchronization message being in accordance with the corresponding time synchronization profile. The relay device according to claim 1 .
3. Among the plurality of time synchronization processing units, a time synchronization processing unit corresponding to a time synchronization profile used in a time synchronization network to which a grandmaster selected by the different profile selection unit belongs performs time synchronization processing based on the time of the grandmaster selected by the different profile selection unit. The relay device according to claim 2 .
4. Each of the plurality of time synchronization processing units selects a grandmaster to be used from one or more grandmasters in the corresponding time synchronization network; The different profile selection unit selects a grandmaster to be used for time synchronization from among the grandmasters selected by each of the plurality of time synchronization processing units. The relay device according to claim 2 .
5. The different profile selection unit is capable of setting a priority profile, which is a time synchronization profile to be prioritized, and when the priority profile is set, selects a grandmaster in a time synchronization network using the priority profile among the plurality of time synchronization networks as a grandmaster to be used. The relay device according to claim 1 .
6. When a time synchronization network using a new time synchronization profile is added to an established network, the time synchronization profile used in the established network is set as the preferred profile. The relay device according to claim 5 .
7. The different profile selection unit is capable of setting a comparison target profile, which is a time synchronization profile to be compared, and when the comparison target profile is set, selects a grandmaster to be used for time synchronization from among the grandmasters in each of the time synchronization networks using the comparison target profile among the plurality of time synchronization networks. The relay device according to claim 1 .
8. A time synchronization profile used in a time synchronization network whose time accuracy satisfies the standard is set as the comparison target profile. The relay device according to claim 7.
9. A computer receives a time synchronization message in each of a plurality of time synchronization networks using different time synchronization profiles; A relay method in which a computer selects a grandmaster to be used for time synchronization from among the grandmasters in each of the plurality of time synchronization networks, based on the time synchronization messages in the plurality of time synchronization networks.
10. A receiving process for receiving a time synchronization message in each of a plurality of time synchronization networks using different time synchronization profiles; a different profile selection process for selecting a grandmaster to be used for time synchronization from among the grandmasters in each of the plurality of time synchronization networks based on the time synchronization messages in the plurality of time synchronization networks received by the reception process; A relay program that causes a computer to function as a relay device that performs the above.
11. A time synchronization system including a plurality of time synchronization networks using different time synchronization profiles, A relay device in which at least one of the plurality of time synchronization networks receives a time synchronization message in each of the plurality of time synchronization networks, and selects a grandmaster to be used for time synchronization from among the grandmasters in each of the plurality of time synchronization networks based on the time synchronization message received in the plurality of time synchronization networks. A time synchronization system comprising:
Citation Information
Patent Citations
Relay device and communication system
JP2021093681A
Frequency distribution using precision time protocol
US20130227172A1
METHOD OF CREATING QoS FLOW FOR TIME SYNCHRONIZATION PROTOCOL IN WIRELESS COMMUNICATION NETWORK
US20220095153A1
Relay device and communication system
WO2021117270A1
