WO2023233588A1 - 時刻同期装置、時刻同期方法及び時刻同期プログラム - Google Patents

時刻同期装置、時刻同期方法及び時刻同期プログラム Download PDF

Info

Publication number
WO2023233588A1
WO2023233588A1 PCT/JP2022/022331 JP2022022331W WO2023233588A1 WO 2023233588 A1 WO2023233588 A1 WO 2023233588A1 JP 2022022331 W JP2022022331 W JP 2022022331W WO 2023233588 A1 WO2023233588 A1 WO 2023233588A1
Authority
WO
WIPO (PCT)
Prior art keywords
time synchronization
time
port
frequency deviation
synchronization
Prior art date
Application number
PCT/JP2022/022331
Other languages
English (en)
French (fr)
Inventor
佑介 坂上
幸子 谷口
俊明 冨澤
尚駿 坂口
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2022/022331 priority Critical patent/WO2023233588A1/ja
Publication of WO2023233588A1 publication Critical patent/WO2023233588A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Definitions

  • the present disclosure relates to a technique for synchronizing the time of devices.
  • TSN Time Sensitive Networking
  • TSN technology is a technology that synchronizes time between devices with high precision via a network switch (hereinafter referred to as a transfer device) and schedules traffic.
  • Non-Patent Document 1 One of the TSN technologies is the time synchronization method described in Non-Patent Document 1 and Non-Patent Document 2, which is a highly accurate network time synchronization technique.
  • each device connected to a network including a transfer device periodically measures propagation delay and frequency deviation between adjacent devices. Then, highly accurate time synchronization is performed based on the measured propagation delay and frequency deviation with respect to time information periodically distributed via a network from a grand master clock device (hereinafter referred to as GM) serving as a time source.
  • GM grand master clock device
  • a plurality of GMs which are time sources, are arranged on a network for the purpose of increasing the reliability of the time synchronization system.
  • Each GM periodically distributes time source information such as clock accuracy and reliability.
  • the forwarding device selects the best time source information from the time source information received from the single or multiple ports using the BMCA.
  • BMCA is an abbreviation for Best Master Clock Algorithm.
  • a distribution path called a clock tree is configured to distribute time starting from the GM corresponding to the selected time source information.
  • the GM periodically delivers Announce messages. Based on the Announce message, the transfer device selects the port with the best time synchronization quality as the slave port using BMCA. As a result, the time information distribution route using the Sync/FollowUp message periodically distributed by the GM is determined.
  • a slave port is selected according to a Priority Vector configured with static parameters.
  • the static parameters include the priority set for the GM according to the network design, attributes, the number of stages of Announce messages, MAC addresses, port numbers, and the like.
  • the state of the network which may change from time to time depending on the state of the transmission path and transfer device on the time distribution route, is not reflected in the selection of the slave port. Therefore, the time distribution route determined by selecting the slave port is not necessarily the best route.
  • Patent Document 1 describes a technique for switching to a time distribution route in consideration of the states of transmission paths and transfer devices on the time distribution route. Specifically, in the technique described in Patent Document 1, delays are measured for each of a plurality of time distribution paths between the transfer device and the GM. Then, based on the delay measurement results, a time distribution route with the highest synchronization accuracy is identified among the plurality of time distribution routes.
  • a time distribution route is determined in consideration of delay for each of a plurality of time distribution routes.
  • the time distribution route determined using the technology described in Patent Document 1 is not optimal when using the technology for highly accurate time synchronization based on propagation delay and frequency deviation as described in Non-Patent Document 1.
  • the route may not necessarily be the same.
  • An object of the present disclosure is to enable identification of an appropriate time distribution route even when using technology for highly accurate time synchronization based on propagation delay and frequency deviation.
  • the time synchronization device includes: A time synchronization port is transmitted from the plurality of ports based on the cumulative frequency deviation, which is the cumulative value of frequency deviation from the master device for each of the plurality of ports that receive time information transmitted from the master device via different transfer devices. a synchronization port determination unit that determines the and a time synchronization unit that updates local time based on the time information received at the time synchronization port determined by the synchronization port determination unit.
  • a time synchronization port is determined from a plurality of ports based on the cumulative frequency deviation from the master device. This makes it possible to specify an appropriate time distribution route even when a technique for highly accurate time synchronization based on propagation delay and frequency deviation is used.
  • FIG. 1 is a configuration diagram of a time synchronization system 100 according to Embodiment 1.
  • FIG. 1 is a hardware configuration diagram of a transfer device 10 according to Embodiment 1.
  • FIG. 1 is a functional configuration diagram of a transfer device 10 according to Embodiment 1.
  • FIG. 2 is a configuration diagram of a synchronization function section 24 according to the first embodiment.
  • 7 is a flowchart of overall processing of the transfer device 10 according to the first embodiment.
  • FIG. 3 is an explanatory diagram of the delay calculation unit 35 according to the first embodiment.
  • FIG. 3 is an explanatory diagram of message relay processing according to the first embodiment.
  • 5 is a flowchart of time synchronization port determination processing according to the first embodiment. 5 is a flowchart of abnormality detection processing according to the first embodiment.
  • FIG. 3 is an explanatory diagram of effects according to the first embodiment.
  • FIG. 2 is a configuration diagram of a time synchronization system 100 according to a second embodiment.
  • FIG. 7 is an explanatory diagram of a Priority Vector according to Embodiment 2. Flowchart of BMCA described in Non-Patent Document 2. 7 is a flowchart of time synchronization port determination processing according to the second embodiment.
  • the time synchronization system 100 includes a plurality of transfer devices 10 and a master device 40.
  • the time synchronization system 100 includes six transfer devices 10, from transfer device 10A to transfer device 10F.
  • the transfer device 10 is a time synchronization device that performs time synchronization based on time information distributed by the master device 40.
  • the transfer device 10 is, for example, a layer 2 switch compatible with gPTP.
  • PTP is an abbreviation for Precision Time Protocol.
  • gPTP is defined in IEEE 802.1AS-2011.
  • Master device 40 is a grandmaster clock device.
  • Master device 40 is a device connected to GPS 41. GPS is an abbreviation for Global Positioning System.
  • the master device 40 distributes time to each transfer device 10 serving as a slave device by circulating a message 42 (a Sync message and a FollowUp message). Messages 42 are issued at master device 40 and terminated at master device 40 .
  • a master device 40 connected to a GPS 41 is provided separately from the transfer device 10.
  • any one of the transfer devices 10 may be connected to the GPS 41 and operated as the master device 40.
  • the transfer device 10A in FIG. 1 may be connected to the GPS 41 and operated as the master device 40.
  • the transfer device 10 includes an electronic circuit 11, a CPU 12, a RAM 13, and an input/output interface 14.
  • CPU is an abbreviation for Central Processing Unit.
  • RAM is an abbreviation for Random Access Memory.
  • the electronic circuit 11 is a network processor for implementing a unique time synchronization function.
  • the electronic circuit 11 is, for example, an FPGA or an ASIC.
  • FPGA is an abbreviation for Field-Programmable Gate Array.
  • ASIC is an abbreviation for Application Specific Integrated Circuit.
  • the CPU 12 is a processor that performs configuration of the transfer device 10, various controls, various monitoring, various management, and the like.
  • RAM is a storage device that temporarily stores data.
  • the input/output interface 14 is an interface for inputting and outputting data with the outside.
  • the input/output interface 14 is, for example, a port for an optical transceiver, an RJ45 (LAN cable), and a coaxial connector.
  • LAN is an abbreviation for Local Area Network.
  • the transfer device 10 includes a plurality of frame transmitting/receiving sections 21, a plurality of frame distribution sections 22, a switch function section 23, and a synchronization function section 24 as functional components.
  • the transfer device 10 includes frame transmitting/receiving units 21# to 21#N as the frame transmitting/receiving units 21.
  • the transfer device 10 includes frame allocators 22#1 to 22#N as the frame allocators 22.
  • Each frame transmitter/receiver 21 is associated with a frame allocator 22 .
  • the frame transmitting/receiving unit 21 has a function of transmitting and receiving frames.
  • the frame transmitting/receiving unit 21 performs data conversion from layer 2 to layer 1 when transmitting a frame.
  • the frame transmitting/receiving unit 21 performs data conversion from layer 1 to layer 2 when receiving frames.
  • Layer 1 is the physical layer.
  • Layer 2 is MAC.
  • MAC is an abbreviation for Medium Access Control.
  • the frame transmitting/receiving unit 21 discards unconvertible data or abnormal data.
  • the frame transmission/reception unit 21 transmits normal data to the frame distribution unit 22.
  • the frame distribution unit 22 extracts and analyzes information within a frame. Specifically, the frame distribution unit 22 discards error frames and extracts various control frames. The frame distribution unit 22 transmits frames that need to be transferred by the transfer device 10 to the switch function unit 23. Transfer means switching. Frames that require transfer are general frames other than control frames, which will be described later.
  • the switch function section 23 determines the destination output port for the frame transmitted from the frame distribution section 22.
  • the switch function unit 23 determines the destination output port according to the MAC address and VLAN values stored in the frame.
  • VLAN is an abbreviation for Virtual Local Area Network.
  • the switch function unit 23 performs a frame transfer process to the determined destination output port.
  • the switch function unit 23 may have a function of temporarily storing frames in the RAM 13 when the frame transfer process is congested.
  • the switch function unit 23 determines whether or not to save the frame depending on the transfer capacity or scale.
  • the synchronization function unit 24 processes time synchronization related frames (hereinafter referred to as PTP frames) among the control frames extracted by the frame distribution unit 22.
  • the synchronization function unit 24 updates the local time by following the GM time information stored and distributed in the SYNC message and FOLLOWUP message, which are one of the PTP frames.
  • the configuration of the synchronization function section 24 according to the first embodiment will be explained with reference to FIG. 4.
  • the synchronization function section 24 includes a PDelay reception section 31, a Sync/FollowUp reception section 32, an Announce reception section 33, and a BMCA control section 34 as functional components.
  • the PDelay receiving unit 31 performs reception processing on the PDelay message among the PTP frames, and extracts parameters for measuring communication delay.
  • the PDelay messages are a PDelay request message, a PDelay response message, and a PDelay response Followup message.
  • the Sync/FollowUp receiving unit 32 performs reception processing on the Sync message and FollowUp message among the PTP frames, and extracts time information for performing time synchronization and parameters for performing correction calculation.
  • the Announce receiving unit 33 performs reception processing on the Announce message among the PTP frames, and extracts parameters necessary for BMCA execution.
  • the BMCA control unit 34 executes BMCA that automatically configures a time distribution tree by totaling Announce messages from devices having a time synchronization function on the network.
  • the synchronization function section 24 includes a delay calculation section 35, a synchronization port determination section 36, an abnormality detection section 37, a time synchronization section 38, and a gPTP frame transmission section 39 as functional components. These functional components have characteristics.
  • the delay calculation unit 35 calculates the device delay during time distribution.
  • the synchronization port determining unit 36 determines which of the SYNC messages and FOLLOWUP messages received at a plurality of ports is used as a reference for time synchronization.
  • the abnormality detection unit 37 detects quality deterioration or abnormality occurrence between adjacent devices and the entire network.
  • the time synchronization unit 38 updates the local time based on the time information distributed from the master device 40.
  • the gPTP frame transmitter 39 generates and outputs a PTP frame based on the results processed by other functions.
  • the operation of the transfer device 10 according to the first embodiment will be described with reference to FIGS. 5 to 9.
  • the operation procedure of the transfer device 10 according to the first embodiment corresponds to the time synchronization method according to the first embodiment.
  • a program that realizes the operation of the transfer device 10 according to the first embodiment corresponds to a time synchronization program according to the first embodiment.
  • Step S11 Frame reception processing
  • the frame input to the transfer device 10 is processed by the frame transmitting/receiving unit 21 according to the input port.
  • the frame transmitter/receiver 21 transmits normally received frames to the corresponding frame allocator 22.
  • Step S12 Frame distribution processing
  • the frame sorting unit 22 determines the type of frame by analyzing the contents of the transmitted frame. Frames are broadly divided into control frames and general frames.
  • the frame distribution unit 22 extracts parameters related to control for frames determined to be control frames, and transmits them together with the control frames to functional blocks that perform various controls.
  • the frame sorting unit 22 extracts parameters related to transfer processing for the frame determined to be a general frame, and transmits it to the switch function unit 23 together with the general frame.
  • time synchronization is performed using control frames.
  • a PTP frame which is one of the control frames
  • the frame distribution unit 22 transmits the PTP frame to the synchronization function unit 24 .
  • the frame distribution unit 22 determines that the frame is a PTP frame from the Ethernet type value of the frame.
  • the Ethertype value of the PTP frame is defined as 0x88F7 in Non-Patent Document 2.
  • Step S13 Synchronous function processing
  • the synchronization function unit 24 performs delay measurement, time synchronization, determination of a time synchronization target port, determination of a distribution tree by BMCA, and generation and transmission of a PTP frame based on the message stored in the PTP frame.
  • the synchronization function unit 24 transmits the PTP frame to be transmitted to the switch function unit 23 together with information regarding the output port.
  • Step S14 Switch function processing
  • the switch function unit 23 performs transfer processing on the general frame transmitted from the frame distribution unit 22 and the PTP frame transmitted from the synchronization function unit 24.
  • the general frame has a parameter indicating the VLAN if VLAN is enabled.
  • the switch function unit 23 has a forwarding database (hereinafter referred to as FDB) that determines a frame transfer route by setting these parameters in advance or learning them during frame transfer. Therefore, the switch function unit 23 determines the output port by referring to the destination MAC address and VLAN value of the general frame and comparing this with the FDB.
  • the switch function section 23 transmits the general frame to the frame transmitting/receiving section 21 corresponding to the output port.
  • the switch function unit 23 also transfers PTP frames using the MAC address, VLAN, and FDB in the same way as general frames. Further, the switch function section 23 may determine the output port using information regarding the output port transmitted together with the PTP frame from the synchronization function section 24. This is because PTP frame types include either unicast transmission (referring to the MAC address) or link-by-link transmission (the MAC address is a special address and is transmitted only to adjacent devices).
  • Step S15 Frame transmission processing
  • the frame transmitting/receiving section 21 transmits the frame transmitted from the switch function section 23 from the corresponding port.
  • the synchronization function processing (step S13 in FIG. 5) according to the first embodiment will be described with reference to FIGS. 6 to 9.
  • the PTP frame transmitted to the synchronization function section 24 is distributed to the PDelay reception section 31, the Sync/FollowUp reception section 32, and the Announce reception section 33 according to the type of message stored in the PTP frame.
  • the PDelayReq message is distributed to the PDelay receiving section 31.
  • the PDelay receiving unit 31 recognizes that a delay measurement request has been received.
  • the PDelay receiver 31 transmits the PDelayResp message and the PDelayRespFollowUp message to the gPTP frame transmitter 39 so as to respond (I27 in FIG. 4).
  • the gPTP frame transmitter 39 Upon receiving the transmission, the gPTP frame transmitter 39 generates a PDelayResp message and a PDelayRespFollowUp message. The gPTP frame transmitter 39 stamps the local time corrected by the time synchronizer 38 into the generated message. The gPTP frame transmitting unit 39 transmits a message stamped with local time to the switch function unit 23, and transmits the message to the device that has requested the delay measurement.
  • the PDelayResp message and the PDelayRespFollowUp message are distributed to the PDelay reception unit 31.
  • the PDelay receiving unit 31 obtains and holds the local time at which the PDelayResp message and the PDelayRespFollowUp message are received.
  • the PDelayResp message and the PDelayRespFollowUp message include time information stamped at the time of transmission by the sending device.
  • the PDelay receiving section 31 transmits time information included in the PDelayResp message and the PDelayRespFollowUp message to the delay calculation section 35.
  • the delay calculation unit 35 uses time information included in the PDelayResp message and the PDelayRespFollowUp message to calculate the transmission delay and frequency deviation between adjacent devices.
  • the transmission delay (peerMeanPathDelay) between adjacent devices is called adjacent transmission delay.
  • the frequency deviation (neighborRateRatio) between adjacent devices is called an adjacent frequency deviation.
  • the adjacent transmission delay is calculated by Equation 1 in FIG. 6, as described in Non-Patent Document 1.
  • the adjacent transmission delay is used when the time synchronization unit 38 performs time correction.
  • the adjacent frequency deviation is calculated by Equation 2 in FIG. 6, as described in Non-Patent Document 1.
  • the adjacent frequency deviation is used for time synchronization port determination by the synchronization port determination unit 36, abnormality detection by the abnormality detection unit 37, and time correction by the time synchronization unit 38.
  • the delay calculation section 35 transmits the adjacent transmission delay and the adjacent frequency deviation to the time synchronization section 38 (I21 in FIG. 4).
  • the delay calculation unit 35 transmits the adjacent frequency deviation to the synchronization port determination unit 36 and the abnormality detection unit 37 (I22 in FIG. 4).
  • the delay calculation unit 35 transmits the adjacent transmission delay and adjacent frequency deviation to the gPTP frame transmitting unit 39 (I25 in FIG. 4).
  • the Sync message and FollowUp message are distributed to the Sync/FollowUp receiving section 32.
  • the Sync/FollowUp receiving unit 32 acquires and holds the local time at which the Sync message and FollowUp message were received.
  • the Sync/FollowUp receiving section 32 transmits the Sync message and the FollowUp message to the time synchronization section 38.
  • the time synchronization unit 38 relays the Sync message and FollowUp message to an adjacent device on the slave side, as specified in Non-Patent Document 2.
  • the time synchronization unit 38 extracts the cumulative transmission delay, which is the cumulative value of transmission delays from the master device 40 to the adjacent device on the master side, which is stored in the Sync message in gPTP.
  • the cumulative transmission delay is the cumulative value of adjacent transmission delays of devices that have passed from the master device 40 to the adjacent device on the master side.
  • the time synchronization unit 38 calculates the cumulative transmission delay from the master device 40 to the own device by adding the adjacent transmission delay from the adjacent device on the master side to the own device to the cumulative transmission delay.
  • the time synchronization unit 38 extracts the cumulative frequency deviation, which is the cumulative value of the frequency deviation from the master device 40 to the adjacent device on the master side, which is stored in the Sync message in gPTP.
  • the cumulative frequency deviation is a cumulative value of adjacent frequency deviations of devices that have passed from the master device 40 to an adjacent device on the master side.
  • the time synchronization unit 38 calculates the cumulative frequency deviation from the master device 40 to the own device by adding the adjacent frequency deviation from the adjacent device on the master side to the own device to the cumulative frequency deviation.
  • the time synchronization unit 38 determines whether the port that received the FollowUp message matches the time synchronization port (I24 in FIG. 4) determined by the synchronization port determination unit 36 through processing described later.
  • the time synchronization unit 38 refers to the master time indicated by the time information in the received Sync message and FollowUp message.
  • the master time is the time in the master device 40.
  • the time synchronization unit 38 reproduces the local time of its own device from the master time using the adjacent transmission delay, adjacent frequency deviation, cumulative transmission delay amount, and cumulative device processing delay amount. Thereby, the time synchronization unit 38 updates the local time.
  • the time synchronization unit 38 transmits the cumulative frequency deviation (I23 in FIG. 4) to the synchronization port determination unit 36 and the abnormality detection unit 37.
  • the synchronization port determination unit 36 receives the adjacent frequency deviation (I22 in FIG. 4) from the delay calculation unit 35. Further, the synchronization port determination unit 36 is transmitted with the cumulative frequency deviation (I23 in FIG. 4) from the time synchronization unit 38. The synchronization port determination unit 36 determines a time synchronization port using the adjacent frequency deviation and the cumulative frequency deviation.
  • the synchronization port determining unit 36 determines a time synchronization port from a plurality of ports that have received the Sync message and the FollowUp message. In other words, the synchronization port determination unit 36 determines a time synchronization port from a plurality of ports that have received time information. Here, the plurality of ports receive time information transmitted from the master device 40 via different transfer devices 10.
  • the synchronization port determining unit 36 determines which of the port currently selected as the time synchronization port and the port to be newly compared is to be the time synchronization port.
  • the port currently selected as the time synchronization port is the port determined as the time synchronization port in the previous time synchronization port determination process.
  • the port to be newly compared is the port that newly received the Sync message and FollowUp message.
  • Step S21 Cumulative determination process
  • the synchronization port determination unit 36 determines a time synchronization port from among the plurality of ports based on the cumulative frequency deviation, which is the cumulative value of frequency deviations from the master device 40 for each of the plurality of ports. Specifically, the synchronization port determination unit 36 refers to the cumulative frequency deviation from the master device 40 and determines the port that received the Sync message and FollowUp message with the best results as the time synchronization port.
  • the synchronization port determining unit 36 determines a time synchronization port from a plurality of ports based on an adjacent frequency deviation, which is a frequency deviation from an adjacent device that is a transfer device that is a direct transfer source of time information for each of the plurality of ports. Specifically, the synchronization port determining unit 36 refers to the adjacent frequency deviation from the adjacent device and determines the port that received the Sync message and FollowUp message with the best results as the time synchronization port.
  • Step S23 BMCA processing
  • the synchronization port determining unit 36 determines the port determined by the BMCA described in Non-Patent Document 2 as the time synchronization port among the plurality of ports.
  • BMCA is executed by the BMCA control unit 34.
  • the time synchronization port is determined by BMCA from the port currently selected as the time synchronization port and the port to be newly compared.
  • the abnormality detection unit 37 receives the adjacent frequency deviation (I22 in FIG. 4) from the delay calculation unit 35. Further, the abnormality detection unit 37 is transmitted with the cumulative frequency deviation (I23 in FIG. 4) from the time synchronization unit 38. The abnormality detection unit 37 detects an abnormality regarding each of the plurality of ports using the adjacent frequency deviation and the cumulative frequency deviation.
  • the plurality of ports here are ports that have received the Sync message and FollowUp message, similar to the time synchronization port determination process.
  • threshold values X, X' and threshold values Y, Y' for abnormality detection are set in advance by an administrator or the like.
  • the threshold values X, X' and the threshold values Y, Y' may be fixed values that cannot be changed by the administrator.
  • the threshold values X and X' are threshold values for detecting the occurrence of a catastrophic abnormality including disconnection or disconnection.
  • the threshold values Y and Y' are threshold values for detecting signs of catastrophic abnormality due to device instability or wiring deterioration.
  • the abnormality detection unit 37 compares the adjacency judgment index obtained from the adjacent frequency deviation of the most recent reference time and the cumulative judgment index obtained from the cumulative frequency deviation of the most recent reference time with thresholds X, X' and thresholds Y, Y'. to detect abnormalities.
  • the reference times are set by an administrator or the like.
  • a specific example of the adjacency determination index is, as shown in Equation 3, the absolute value of the value obtained by subtracting the latest adjacent frequency deviation from the average value of the adjacent frequency deviations of the most recent reference time.
  • Adjacent judgment index
  • a specific example of the cumulative judgment index is, as shown in Equation 4, the absolute value of the value obtained by subtracting the latest cumulative frequency deviation from the average value of the cumulative frequency deviations of the most recent reference times.
  • Cumulative judgment index
  • abnormality detection processing according to the first embodiment will be described.
  • the abnormality detection process is executed for each of the plurality of ports.
  • Step S31 Adjacent abnormality detection process
  • the abnormality detection unit 37 determines whether the adjacency determination index exceeds the threshold value X or not. If the adjacency determination index exceeds the threshold value X, the abnormality detection unit 37 determines that an abnormality has occurred between the target port and the adjacent device. Then, the abnormality detection unit 37 issues an abnormality occurrence notification (R31) between adjacent devices. On the other hand, if the adjacency determination index does not exceed the threshold value X, the abnormality detection unit 37 advances the process to step S32.
  • Step S32 Adjacent deterioration detection process
  • the abnormality detection unit 37 determines whether the adjacency determination index exceeds the threshold value Y or not. If the adjacency determination index exceeds the threshold value Y, the abnormality detection unit 37 determines that deterioration has occurred between the target port and the adjacent device. Then, the abnormality detection unit 37 issues a deterioration occurrence notification (R32) between adjacent devices. On the other hand, if the adjacency determination index does not exceed the threshold Y, the abnormality detection unit 37 advances the process to step S33.
  • Step S33 Cumulative abnormality detection process
  • the abnormality detection unit 37 determines whether the cumulative judgment index exceeds the threshold value X'. If the cumulative determination index exceeds the threshold value X', the abnormality detection unit 37 determines that an abnormality has occurred in the path between the target port and the master device 40. Then, the abnormality detection unit 37 issues a network abnormality occurrence notification (R33). On the other hand, if the cumulative judgment index does not exceed the threshold value X', the abnormality detection unit 37 advances the process to step S34.
  • Step S34 Cumulative deterioration detection process
  • the abnormality detection unit 37 determines whether the cumulative judgment index exceeds the threshold value Y'. If the cumulative determination index exceeds the threshold value Y', the abnormality detection unit 37 determines that deterioration has occurred in the path between the target port and the master device 40. Then, the abnormality detection unit 37 issues a network deterioration occurrence notification (R34). On the other hand, if the cumulative judgment index does not exceed the threshold value Y', the abnormality detection unit 37 determines that it is normal and ends the process.
  • Abnormality occurrence notification between adjacent devices (R31), deterioration occurrence notification between adjacent devices (R32), network abnormality occurrence notification (R33), and network deterioration occurrence notification (R34) are collected by the CPU 12 and sent as an alert. issue.
  • the CPU 12 issues an alert to the administrator's terminal by SNMP transmission.
  • SNMP is an abbreviation for Simple Network Management Protocol.
  • the CPU 12 may issue a visualized alert using an alarm application or the like.
  • the transfer device 10 determines a time synchronization port from a plurality of ports based on the cumulative frequency deviation from the master device 40 and the adjacent frequency deviation from the adjacent devices. This makes it possible to specify an appropriate time distribution route even when a technique for highly accurate time synchronization based on propagation delay and frequency deviation is used.
  • the transfer device 10 broadcasts the Sync message and FollowUp message to all distribution routes without using the port types of master, slave, and block determined by BMCA.
  • This makes it possible to synchronize the time with respect to the Sync message and FollowUp message received from any time distribution route candidate connected to the transfer device 10.
  • a function is provided to uniquely determine the time synchronization port.
  • the Sync message and FollowUp message with the highest accuracy are always selected.
  • the transfer device 10 detects abnormality or deterioration based on the cumulative frequency deviation from the master device 40 and the adjacent frequency deviation from the adjacent devices. This makes it possible to detect abnormality or deterioration early.
  • the time synchronization function is realized by the electronic circuit 11, which is a network processor.
  • the time synchronization function may also be realized by software.
  • the RAM 13 stores a program that implements the time synchronization function.
  • the CPU 12 reads and executes this program. This realizes a time synchronization function.
  • part of the time synchronization function may be realized by hardware, and the rest may be realized by software.
  • the electronic circuit 11, CPU 12, and RAM 13 are referred to as a processing circuit. That is, the functions of each functional component are realized by the processing circuit.
  • Embodiment 2 differs from the first embodiment in that a plurality of master devices 40 are present on the time synchronization system 100. In the second embodiment, this different point will be explained, and the explanation of the same point will be omitted.
  • the configuration of a time synchronization system 100 according to the second embodiment will be described with reference to FIG. 11.
  • the time synchronization system 100 differs from the time synchronization system 100 shown in FIG. 1 in that it includes a plurality of master devices 40.
  • the time synchronization system 100 includes a master device 40A and a master device 40B.
  • Each master device 40 distributes time to each transfer device 10 serving as a slave device by circulating messages 42 (Sync message and FollowUp message).
  • the operation of the transfer device 10 according to the second embodiment will be described with reference to FIGS. 12 to 14.
  • the operation procedure of the transfer device 10 according to the second embodiment corresponds to the time synchronization method according to the second embodiment.
  • a program that realizes the operation of the transfer device 10 according to the second embodiment corresponds to a time synchronization program according to the second embodiment.
  • each transfer device 10 determines which master device 40 to synchronize with the time according to a Priority Vector set for each master device 40 in advance.
  • the Priority Vector is composed of static parameters such as a priority, an attribute, the number of stages of an Announce message, a MAC address, and a port number.
  • the transfer device 10 determines the time synchronization port in combination with the master, slave, and block port determination logic based on BMCA.
  • FIG. 13 is a flowchart shown for comparison, and is a flowchart of BMCA described in Non-Patent Document 2.
  • FIG. 14 is a flowchart of time synchronization port determination processing according to the second embodiment.
  • A be the value of the port selected as the current time synchronization port and the port selected as the current time synchronization port.
  • B be the port that becomes the new comparison target and the value on the port side that becomes the new comparison target.
  • step S41 to step S46 and the processing from step S49 to step S51 are the same as the processing of BMCA.
  • Step S47 Cumulative determination process
  • Step S48 Adjacency determination process
  • step S47 and step S48 are inserted into BMCA is an example. It is also possible to insert the processes of step S47 and step S48 at different positions in the BMCA.
  • the transfer device 10 according to the second embodiment can select the master device 40 in accordance with the intention of the designer of the time synchronization system 100. . Further, the transfer device 10 according to the second embodiment can realize time synchronization with the master device 40 with the highest precision at that time.
  • unit in the above description may be read as “circuit,” “step,” “procedure,” “process,” or “processing circuit.”
  • 100 time synchronization system 10 transfer device, 11 electronic circuit, 12 CPU, 13 RAM, 14 input/output interface, 21 frame transmission/reception unit, 22 frame distribution unit, 23 switch function unit, 24 synchronization function unit, 31 PDelay reception unit, 32 Sync/FollowUp reception unit, 33 Announce reception unit, 34 BMCA control unit, 35 Delay calculation unit, 36 Synchronization port determination unit, 37 Abnormality detection unit, 38 Time synchronization unit, 39 gPTP frame transmission unit, 40 Master device, 41 GPS , 42 Message.

Abstract

転送装置(10)は、マスター装置(40)から送信された時刻情報を異なる転送装置(10)を経由して受信する複数のポートそれぞれを対象のポートに設定する。転送装置(10)は、対象のポートについてのマスター装置(40)からの周波数偏差の累積値である累積周波数偏差を計算する。転送装置(10)は、累積周波数偏差に基づき、複数のポートから時刻同期ポートを決定する。転送装置(10)は、決定された時刻同期ポートで受信された時刻情報に基づき、ローカル時刻を更新する。

Description

時刻同期装置、時刻同期方法及び時刻同期プログラム
 本開示は、装置の時刻を同期する技術に関する。
 産業用イーサネット(登録商標)ネットワークでは、制御ネットワークと情報ネットワークとの統合が進んでいる。そして、制御データをリアルタイムに転送する方式として、TSN技術の規格化が進んでいる。TSNは、Time Sensitive Networkingの略である。TSN技術は、ネットワークスイッチ(以下、転送装置)を介して装置間を高精度に時刻同期させ、トラフィックをスケジューリングする技術である。
 TSN技術の1つに、高精度なネットワーク時刻同期技術である非特許文献1及び非特許文献2に記載された時刻同期方式がある。
 非特許文献1に記載された時刻同期方式では、転送装置を含むネットワークに繋がる各機器が周期的に隣接装置間の伝搬遅延及び周波数偏差を測定する。そして、時刻源となるグランドマスタクロック装置(以下、GM)からネットワークを介して周期的に配信される時刻情報に対し、測定された伝搬遅延及び周波数偏差に基づき高精度に時刻同期する。
 非特許文献2に記載された時刻同期方式では、時刻同期システムの高信頼化を目的として、ネットワーク上に時刻源であるGMが複数配置される。各GMは、クロックの精度及び信頼性といった時刻源情報を周期的に配信する。転送装置は、BMCAにより、単一又は複数のポートから受信した時刻源情報から最良の時刻源情報を選択する。BMCAは、Best Master Clock Algorithmの略である。選択された時刻原情報に対応するGMを起点に時刻を配信するクロックツリーと呼ばれる配信経路が構成される。
 より具体的には、非特許文献2では、GMは周期的にAnnounceメッセージを配信する。転送装置は、Announceメッセージを基に、BMCAによって最も時刻同期品質のよいポートをスレーブポートとして選択する。これにより、GMが周期的に配信するSync/FollowUpメッセージによる時刻情報の配信経路が決定される。
 この際、静的なパラメータで構成するPriority Vectorに従ってスレーブポートが選択される。静的なパラメータは、ネットワーク設計に従ってGMに設定された優先度と、属性と、Announceメッセージの経由段数と、MACアドレスと、ポート番号と等である。時刻配信経路上の伝送路及び転送装置の状態に依存して都度変化する可能性のあるネットワークの状態は、スレーブポートの選択には反映されない。そのため、スレーブポートが選択されることにより決定された時刻配信経路は、最良の経路になるとは限らない。
 特許文献1には、時刻配信経路上の伝送路及び転送装置の状態を考慮して、時刻配信経路に切り替える技術が記載されている。具体的には、特許文献1に記載された技術では、転送装置とGMとの間の複数の時刻配信経路それぞれについて遅延が測定される。そして、遅延測定結果に基づき、複数の時刻配信経路のうち、最も同期精度のよい時刻配信経路が特定される。
特開2020-202498号公報
IEEE Std 802.1AS-2020(Timing and Synchronization for Time-Sensitive Applications)、Approved 30 January 2020, P163,P186 IEEE1588-2019 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems P161,P217,P223,P378
 特許文献1に記載された技術では、複数の時刻配信経路それぞれについて遅延を考慮して時刻配信経路が決定される。しかし、特許文献1に記載された技術で決定された時刻配信経路は、非特許文献1に記載されたような伝搬遅延及び周波数偏差に基づき高精度に時刻同期する技術を用いた場合に、最良の経路になるとは限らない。
 本開示は、伝搬遅延及び周波数偏差に基づき高精度に時刻同期する技術を用いた場合にも、適切な時刻配信経路を特定可能にすることを目的とする。
 本開示に係る時刻同期装置は、
 マスター装置から送信された時刻情報を異なる転送装置を経由して受信する複数のポートそれぞれについての前記マスター装置からの周波数偏差の累積値である累積周波数偏差に基づき、前記複数のポートから時刻同期ポートを決定する同期ポート決定部と、
 前記同期ポート決定部によって決定された前記時刻同期ポートで受信された前記時刻情報に基づき、ローカル時刻を更新する時刻同期部と
を備える。
 本開示では、マスター装置からの累積周波数偏差に基づき、複数のポートから時刻同期ポートを決定する。これにより、伝搬遅延及び周波数偏差に基づき高精度に時刻同期する技術を用いた場合にも、適切な時刻配信経路を特定可能である。
実施の形態1に係る時刻同期システム100の構成図。 実施の形態1に係る転送装置10のハードウェア構成図。 実施の形態1に係る転送装置10の機能構成図。 実施の形態1に係る同期機能部24の構成図。 実施の形態1に係る転送装置10の全体的な処理のフローチャート。 実施の形態1に係る遅延計算部35の説明図。 実施の形態1に係るメッセージの中継処理の説明図。 実施の形態1に係る時刻同期ポートの決定処理のフローチャート。 実施の形態1に係る異常検出処理のフローチャート。 実施の形態1に係る効果の説明図。 実施の形態2に係る時刻同期システム100の構成図。 実施の形態2に係るPriority Vectorの説明図。 非特許文献2に記載されたBMCAのフローチャート。 実施の形態2に係る時刻同期ポートの決定処理のフローチャート。
 実施の形態1.
 ***構成の説明***
 図1を参照して、実施の形態1に係る時刻同期システム100の構成を説明する。
 時刻同期システム100は、複数の転送装置10と、マスター装置40とを備える。図1では、時刻同期システム100は、転送装置10Aから転送装置10Fの6台の転送装置10を備えている。
 転送装置10は、マスター装置40によって配信された時刻情報に基づき時刻同期を行う時刻同期装置である。転送装置10は、例えば、gPTP対応のレイヤ2スイッチである。PTPは、Precision Time Protocolの略である。gPTPは、IEEE 802.1AS-2011で定義されている。
 マスター装置40は、グランドマスタクロック装置である。マスター装置40は、GPS41に接続された装置である。GPSは、Global Positioning Systemの略である。マスター装置40は、スレーブ装置となる各転送装置10に対して、メッセージ42(Syncメッセージ及びFollowUpメッセージ)を巡回させて時刻配信を行う。メッセージ42は、マスター装置40で発出され、マスター装置40で終端する。
 図1では、転送装置10とは別に、GPS41に接続されたマスター装置40が設けられている。しかし、いずれかの転送装置10をGPS41に接続してマスター装置40として動作させてもよい。例えば、図1における転送装置10AをGPS41に接続してマスター装置40として動作させてもよい。
 図2を参照して、実施の形態1に係る転送装置10のハードウェア構成を説明する。
 転送装置10は、電子回路11と、CPU12と、RAM13と、入出力インタフェース14とを備える。CPUは、Central Processing Unitの略である。RAMは、Random Access Memoryの略である。
 電子回路11は、独自の時刻同期機能を実装するためのネットワークプロセッサである。電子回路11は、具体例としては、FPGA又はASICである。FPGAは、Field-Programmable Gate Arrayの略である。ASICは、Application Specific Integrated Circuitの略である。
 CPU12は、転送装置10のコンフィギュレーションと、各種制御と各種監視と各種管理と等を行うプロセッサである。RAMは、データを一時的に記憶する記憶装置である。入出力インタフェース14は、外部とのデータの入出力を行うためのインタフェースである。入出力インタフェース14は、具体例としては、光トランシーバと、RJ45(LANケーブル)と、同軸コネクタとのポートである。LANは、Local Area Networkの略である。
 図3を参照して、実施の形態1に係る転送装置10の機能構成を説明する。
 転送装置10は、機能構成要素として、複数のフレーム送受信部21と、複数のフレーム振分部22と、スイッチ機能部23と、同期機能部24とを備える。図3では、転送装置10は、フレーム送受信部21として、フレーム送受信部21#からフレーム送受信部21#Nを備えている。また、転送装置10は、フレーム振分部22として、フレーム振分部22#1からフレーム振分部22#Nを備えている。各フレーム送受信部21には、フレーム振分部22が対応付けられている。
 フレーム送受信部21は、フレームの送信及び受信の機能を有する。フレーム送受信部21は、フレームの送信において、レイヤ2からレイヤ1へのデータ変換を行う。フレーム送受信部21は、フレームの受信において、レイヤ1からレイヤ2へのデータ変換を行う。レイヤ1は物理層である。レイヤ2はMACである。MACは、Medium Access Controlの略である。
 フレーム送受信部21は、変換不能なデータ又は異常なデータについては廃棄する。フレーム送受信部21は、正常なデータをフレーム振分部22に伝達する。
 フレーム振分部22は、フレーム内の情報抽出及び解析を行う。具体的には、フレーム振分部22は、エラーフレームの廃棄と、各種制御フレームの抽出とを行う。
 フレーム振分部22は、転送装置10による転送を要するフレームについてはスイッチ機能部23に伝達する。転送とは、スイッチングを意味する。転送を要するフレームは、後述する制御フレーム以外の一般フレームである。
 スイッチ機能部23は、フレーム振分部22から伝達されたフレームについての宛先出力ポートを決定する。スイッチ機能部23は、フレーム内に格納されているMACアドレス及びVLANの値に従って宛先出力ポートを決定する。VLANは、Virtual Local Area Networkの略である。スイッチ機能部23は、決定された宛先出力ポート側へのフレームの転送処理を行う。
 スイッチ機能部23は、フレームの転送処理の輻輳時等にフレームを一時的にRAM13に保存する機能を有していてもよい。スイッチ機能部23は、転送容量又は規模に応じてフレームを保存するか否かを決定する。
 同期機能部24は、フレーム振分部22で抽出された制御フレームのうち、時刻同期関連フレーム(以下、PTPフレーム)について処理を行う。同期機能部24は、は、PTPフレームの1つであるSYNCメッセージ及びFOLLOWUPメッセージに格納されて配信されたGMの時刻情報に追従してローカル時刻を更新する。
 図4を参照して、実施の形態1に係る同期機能部24の構成を説明する。
 同期機能部24は、機能構成要素として、PDelay受信部31と、Sync/FollowUp受信部32と、Annouce受信部33と、BMCA制御部34とを備える。
 PDelay受信部31は、PTPフレームのうち、PDelayメッセージについて受信処理を行い、通信遅延測定のためのパラメータを抽出する。PDelayメッセージは、PDelay要求メッセージと、PDelay応答メッセージと、PDelay応答Followupメッセージとである。
 Sync/FollowUp受信部32は、PTPフレームのうち、Syncメッセージ及びFollowUpメッセージについて受信処理を行い、時刻同期を行うための時刻情報と、補正計算を行うためのパラメータとを抽出する。
 Annouce受信部33は、PTPフレームのうち、Annouceメッセージについて受信処理を行い、BMCA実行に必要なパラメータを抽出する。
 BMCA制御部34は、ネットワーク上の時刻同期機能を有する機器からのAnnouceメッセージを集計して時刻配信ツリーを自動構成するBMCAを実行する。
 また、同期機能部24は、機能構成要素として、遅延計算部35と、同期ポート決定部36と、異常検出部37と、時刻同期部38と、gPTPフレーム送信部39とを備える。これらの機能構成要素に特徴がある。
 遅延計算部35は、時刻配信時の装置遅延を計算する。
 同期ポート決定部36は、複数ポートで受信されたSYNCメッセージ及びFOLLOWUPメッセージのうち、いずれのポートで受信されたSYNCメッセージ及びFOLLOWUPメッセージを基準として時刻同期するかを決定する。
 異常検出部37は、隣接装置間及びネットワーク全体の品質劣化又は異常発生を検出する。
 時刻同期部38は、マスター装置40から配信された時刻情報に基づき、ローカル時刻を更新する。
 gPTPフレーム送信部39は、他の機能によって処理された結果に基づき、PTPフレームを生成し出力する。
 ***動作の説明***
 図5から図9を参照して、実施の形態1に係る転送装置10の動作を説明する。
 実施の形態1に係る転送装置10の動作手順は、実施の形態1に係る時刻同期方法に相当する。また、実施の形態1に係る転送装置10の動作を実現するプログラムは、実施の形態1に係る時刻同期プログラムに相当する。
 図5を参照して、実施の形態1に係る転送装置10の全体的な処理を説明する。
 (ステップS11:フレーム受信処理)
 転送装置10に入力されたフレームは、入力されたポートに応じたフレーム送受信部21によって処理が行われる。フレーム送受信部21は、正常に受信したフレームを対応するフレーム振分部22に伝達する。
 (ステップS12:フレーム振分処理)
 フレーム振分部22は、伝達されたフレームの中身を分析することでフレームの種別を判別する。フレームは大きく制御フレームと一般フレームとに分けられる。フレーム振分部22は、制御フレームと判別したフレームについては制御に関わるパラメータを抽出し、制御フレームと共に各種制御を行う機能ブロックへ伝達する。フレーム振分部22は、一般フレームと判別したフレームについては転送処理に関わるパラメータを抽出し、一般フレームと共にスイッチ機能部23に伝達する。
 ここでは、時刻同期は、制御フレームを用いて行われる。フレーム振分部22は、制御フレームの1つであるPTPフレームが入力された場合、PTPフレームを同期機能部24に伝達する。フレーム振分部22は、フレームのイーサタイプ値からPTPフレームであることを判別する。PTPフレームのイーサタイプ値は0x88F7と非特許文献2に規定されている。
 (ステップS13:同期機能処理)
 同期機能部24は、PTPフレームに格納されたメッセージに基づき、遅延測定と、時刻同期と、時刻同期対象ポートの決定と、BMCAによる配信ツリーの決定と、PTPフレームの生成及び送信とを行う。同期機能部24は、送信するPTPフレームを、出力ポートに関する情報と合わせてスイッチ機能部23に伝達する。
 (ステップS14:スイッチ機能処理)
 スイッチ機能部23は、フレーム振分部22から伝達された一般フレームと、同期機能部24から伝達されたPTPフレームとについて転送処理を行う。
 一般フレームは、宛先MACアドレスと送信元MACアドレスとのほか、VLANが有効であればVLANを示すパラメータを有している。スイッチ機能部23は、これらパラメータを予め設定するか、あるいはフレーム転送時に学習することにより、フレームの転送ルートを決定するフォワーディングデータベース(以下、FDB)を有している。そのため、スイッチ機能部23は、一般フレームの宛先MACアドレス及びVLANの値を参照し、これをFDBと照らし合わせることで出力ポートを決定する。スイッチ機能部23は、出力ポートに該当するフレーム送受信部21に一般フレームを伝達する。
 スイッチ機能部23は、PTPフレームについても、一般フレームと同様にMACアドレス及びVLANとFDBとを使用した転送を行う。さらに、スイッチ機能部23は、同期機能部24からPTPフレームと共に伝達された出力ポートに関する情報を用いて出力ポートを決定する場合もある。これはPTPフレーム種類が、ユニキャスト送信(MACアドレス参照)かリンクバイリンク送信(MACアドレスは特殊アドレスで隣接デバイスにのみ送信)のいずれのものも含むためである。
 (ステップS15:フレーム送信処理)
 フレーム送受信部21は、スイッチ機能部23から伝達されたフレームを、対応するポートから送信する。
 図6から図9を参照して、実施の形態1に係る同期機能処理(図5のステップS13)を説明する。
 同期機能部24に伝達されたPTPフレームは、PTPフレーム内に格納されているメッセージの種類に応じて、PDelay受信部31とSync/FollowUp受信部32とAnnouce受信部33とに振分される。
 <PDelayReqメッセージ受信時>
 PDelayReqメッセージは、PDelay受信部31に振り分けられる。
 PDelay受信部31は、PDelayReqメッセージが振り分けられると、遅延測定要求を受けたと認識する。PDelay受信部31は、gPTPフレーム送信部39に対して、PDelayRespメッセージ及びPDelayRespFollowUpメッセージを応答するように伝達する(図4のI27)。
 gPTPフレーム送信部39は、伝達を受けると、PDelayRespメッセージ及びPDelayRespFollowUpメッセージを生成する。gPTPフレーム送信部39は、時刻同期部38によって補正されたローカル時刻を、生成したメッセージに打刻する。gPTPフレーム送信部39は、ローカル時刻を打刻したメッセージをスイッチ機能部23に伝達して、遅延測定要求元の装置に対して送信する。
 <PDelayResp/FollowUpメッセージ受信時>
 PDelayRespメッセージ及びPDelayRespFollowUpメッセージは、PDelay受信部31に振り分けられる。
 PDelay受信部31は、PDelayRespメッセージ及びPDelayRespFollowUpメッセージを受信したローカル時刻を取得し保持する。PDelayRespメッセージ及びPDelayRespFollowUpメッセージには、送信元の装置の送信時に打刻された時刻情報が含まれている。PDelay受信部31は、遅延計算部35に対して、PDelayRespメッセージ及びPDelayRespFollowUpメッセージに含まれる時刻情報を伝達する。
 遅延計算部35は、PDelayRespメッセージ及びPDelayRespFollowUpメッセージに含まれる時刻情報を用いて、隣接装置との間の伝送遅延及び周波数偏差を計算する。隣接装置との間の伝送遅延(peerMeanPathDelay)を隣接伝送遅延と呼ぶ。隣接装置との間の周波数偏差(neighborRateRatio)を隣接周波数偏差と呼ぶ。隣接伝送遅延は、非特許文献1に記載された通り、図6の式1によって計算される。隣接伝送遅延は、時刻同期部38による時刻補正の際に用いられる。隣接周波数偏差は、非特許文献1に記載された通り、図6の式2によって計算される。隣接周波数偏差は、同期ポート決定部36による時刻同期ポート決定と、異常検出部37による異常検出と、時刻同期部38による時刻補正とに用いられる。
 遅延計算部35は、時刻同期部38に、隣接伝送遅延及び隣接周波数偏差を伝達する(図4のI21)。遅延計算部35は、同期ポート決定部36と異常検出部37とに隣接周波数偏差を伝達する(図4のI22)。遅延計算部35は、gPTPフレーム送信部39に隣接伝送遅延及び隣接周波数偏差を伝達する(図4のI25)。
 <Sync/FollowUpメッセージ受信時>
 Syncメッセージ及びFollowUpメッセージは、Sync/FollowUp受信部32に振り分けられる。
 Sync/FollowUp受信部32は、Syncメッセージ及びFollowUpメッセージを受信したローカル時刻を取得し保持する。Sync/FollowUp受信部32は、Syncメッセージ及びFollowUpメッセージを時刻同期部38に伝達する。
 時刻同期部38は、図7に示すように、非特許文献2に規定された通り、Syncメッセージ及びFollowUpメッセージをスレーブ側の隣接装置に中継する。
 この際、時刻同期部38は、gPTPにおけるSyncメッセージに格納されている、マスター装置40からマスター側の隣接装置までの伝送遅延の累積値である累積伝送遅延を抽出する。累積伝送遅延は、マスター装置40からマスター側の隣接装置までに経由した装置の隣接伝送遅延の累積値である。そして、時刻同期部38は、累積伝送遅延に、マスター側の隣接装置から自装置までの隣接伝送遅延を加えて、マスター装置40から自装置までの累積伝送遅延を計算する。
 また、時刻同期部38は、gPTPにおけるSyncメッセージに格納されている、マスター装置40からマスター側の隣接装置までの周波数偏差の累積値である累積周波数偏差を抽出する。累積周波数偏差は、マスター装置40からマスター側の隣接装置までに経由した装置の隣接周波数偏差の累積値である。そして、時刻同期部38は、累積周波数偏差に、マスター側の隣接装置から自装置までの隣接周波数偏差を加えて、マスター装置40から自装置までの累積周波数偏差を計算する。
 時刻同期部38は、FollowUpメッセージを受信したポートが、後述する処理によって同期ポート決定部36で決定された時刻同期ポート(図4のI24)と一致するか否か判定する。
 時刻同期部38は、FollowUpメッセージを受信したポートが時刻同期ポートと一致する場合には、受信したSyncメッセージ及びFollowUpメッセージ内の時刻情報が示すマスター時刻を参照する。マスター時刻は、マスター装置40における時刻である。そして、時刻同期部38は、隣接伝送遅延と隣接周波数偏差と累積伝送遅延量と、累積装置処理遅延量とを用いて、マスター時刻から自装置のローカル時刻を再生する。これにより、時刻同期部38は、ローカル時刻を更新する。
 時刻同期部38は、同期ポート決定部36及び異常検出部37に累積周波数偏差(図4のI23)を伝達する。
 <時刻同期ポートの決定>
 同期ポート決定部36は、遅延計算部35から隣接周波数偏差(図4のI22)が伝達される。また、同期ポート決定部36は、時刻同期部38から累積周波数偏差(図4のI23)が伝達される。同期ポート決定部36は、隣接周波数偏差及び累積周波数偏差を用いて、時刻同期ポートを決定する。
 図8を参照して、実施の形態1に係る時刻同期ポートの決定処理を説明する。
 同期ポート決定部36は、Syncメッセージ及びFollowUpメッセージを受信した複数のポートから時刻同期ポートを決定する。言い換えると、同期ポート決定部36は、時刻情報を受信した複数のポートから時刻同期ポートを決定する。ここで、複数のポートは、マスター装置40から送信された時刻情報を異なる転送装置10を経由して受信している。
 ここでは、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとのどちらを時刻同期ポートにするかを決定する。現在時刻同期ポートとして選択されているポートは、前回の時刻同期ポートの決定処理で時刻同期ポートに決定されたポートである。新規比較対象となるポートは、新たにSyncメッセージ及びFollowUpメッセージを受信したポートである。
 (ステップS21:累積判定処理)
 同期ポート決定部36は、複数のポートそれぞれについてのマスター装置40からの周波数偏差の累積値である累積周波数偏差に基づき、複数のポートから時刻同期ポートを決定する。具体的には、同期ポート決定部36は、マスター装置40からの累積周波数偏差を参照し、最も結果が良好なSyncメッセージ及びFollowUpメッセージを受信したポートを、時刻同期ポートに決定する。
 ここでは、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとの間で、累積周波数偏差を比較する。
 この際、同期ポート決定部36は、(1-累積周波数偏差)の絶対値を比較する。現在時刻同期ポートとして選択されているポートの(1-累積周波数偏差)の絶対値をAとする。新規比較対象となるポートの(1-累積周波数偏差)の絶対値をBとする。
 A>Bであれば、同期ポート決定部36は、新規比較対象となるポートを新たに時刻同期ポートに決定する。一方、A<Bであれば、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートを時刻同期ポートに決定する。A=Bであれば、処理をステップS22に進める。
 (ステップS22:隣接判定処理)
 同期ポート決定部36は、複数のポートそれぞれについての時刻情報の直接の転送元の転送装置である隣接装置からの周波数偏差である隣接周波数偏差に基づき、複数のポートから時刻同期ポートを決定する。具体的には、同期ポート決定部36は、隣接装置からの隣接周波数偏差を参照し、最も結果が良好なSyncメッセージ及びFollowUpメッセージを受信したポートを、時刻同期ポートに決定する。
 ここでは、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとの間で、隣接周波数偏差を比較する。この際、同期ポート決定部36は、(1-隣接周波数偏差)の絶対値を比較する。現在時刻同期ポートとして選択されているポートの(1-隣接周波数偏差)の絶対値をAとする。新規比較対象となるポートの(1-隣接周波数偏差)の絶対値をBとする。
 A>Bであれば、同期ポート決定部36は、新規比較対象となるポートを新たに時刻同期ポートに決定する。一方、A<Bであれば、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートを時刻同期ポートに決定する。A=Bであれば、処理をステップS23に進める。
 (ステップS23:BMCA処理)
 同期ポート決定部36は、複数のポートのうち、非特許文献2に記載されたBMCAによって決定されるポートを、時刻同期ポートに決定する。なお、BMCAは、BMCA制御部34によって実行される。ここでは、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとから、BMCAによって時刻同期ポートが決定される。
 <異常検出処理>
 異常検出部37は、遅延計算部35から隣接周波数偏差(図4のI22)が伝達される。また、異常検出部37は、時刻同期部38から累積周波数偏差(図4のI23)が伝達される。異常検出部37は、隣接周波数偏差及び累積周波数偏差を用いて、複数のポートそれぞれに関して異常を検出する。ここでの複数のポートは、時刻同期ポートの決定処理と同様に、Syncメッセージ及びFollowUpメッセージを受信したポートである。
 異常検出のための閾値X,X’及び閾値Y,Y’が管理者等によって予め設定されているものとする。閾値X,X’及び閾値Y,Y’は管理者が変更できない固定的な値であってもよい。閾値X,X’は、断線又は不通等を含む壊滅的な異常発生を検出するための閾値である。閾値Y,Y’は、装置不安定化又は配線劣化等による壊滅的異常の予兆を検出するための閾値である。
 異常検出部37は、直近基準回の隣接周波数偏差から得られる隣接判断指標と、直近基準回の累積周波数偏差から得られる累積判断指標とを閾値X,X’及び閾値Y,Y’と比較して、異常を検出する。基準回は、管理者等によって設定される。
 隣接判断指標は、具体例としては、式3に示すように、直近基準回の隣接周波数偏差の平均値から、最新の隣接周波数偏差を減算した値の絶対値である。
 (式3)
 隣接判断指標=|(直近基準回分の隣接周波数偏差の和/基準回)-最新の隣接周波数偏差|
 累積判断指標は、具体例としては、式4に示すように、直近基準回の累積周波数偏差の平均値から、最新の累積周波数偏差を減算した値の絶対値である。
 (式4)
 累積判断指標=|(直近基準回分の累積周波数偏差の和/基準回)-最新の累積周波数偏差|
 図9を参照して、実施の形態1に係る異常検出処理を説明する。
 異常検出処理は、複数のポートそれぞれを対象として実行される。
 (ステップS31:隣接異常検出処理)
 異常検出部37は、隣接判断指標が閾値Xを超過しているか否かを判定する。
 異常検出部37は、隣接判断指標が閾値Xを超過している場合には、対象のポートについての隣接装置との間に異常が発生していると判定する。そして、異常検出部37は、隣接装置間の異常発生通知(R31)を発出する。一方、異常検出部37は、隣接判断指標が閾値Xを超過していない場合には、処理をステップS32に進める。
 (ステップS32:隣接劣化検出処理)
 異常検出部37は、隣接判断指標が閾値Yを超過しているか否かを判定する。
 異常検出部37は、隣接判断指標が閾値Yを超過している場合には、対象のポートについての隣接装置との間に劣化が発生していると判定する。そして、異常検出部37は、隣接装置間の劣化発生通知(R32)を発出する。一方、異常検出部37は、隣接判断指標が閾値Yを超過していない場合には、処理をステップS33に進める。
 (ステップS33:累積異常検出処理)
 異常検出部37は、累積判断指標が閾値X’を超過しているか否かを判定する。
 異常検出部37は、累積判断指標が閾値X’を超過している場合には、対象のポートについてのマスター装置40との間の経路に異常が発生していると判定する。そして、異常検出部37は、ネットワークの異常発生通知(R33)を発出する。一方、異常検出部37は、累積判断指標が閾値X’を超過していない場合には、処理をステップS34に進める。
 (ステップS34:累積劣化検出処理)
 異常検出部37は、累積判断指標が閾値Y’を超過しているか否かを判定する。
 異常検出部37は、累積判断指標が閾値Y’を超過している場合には、対象のポートについてのマスター装置40との間の経路に劣化が発生していると判定する。そして、異常検出部37は、ネットワークの劣化発生通知(R34)を発出する。一方、異常検出部37は、累積判断指標が閾値Y’を超過していない場合には、正常であるとして処理を終了する。
 隣接装置間の異常発生通知(R31)と、隣接装置間の劣化発生通知(R32)と、ネットワークの異常発生通知(R33)と、ネットワークの劣化発生通知(R34)とは、CPU12が吸い上げてアラートを発出する。例えば、CPU12は、管理者の端末へSNMP送信によりアラートを発出する。SNMPは、Simple Network Management Protocolの略である。あるいは、CPU12は、警報アプリケーション等を用いて、可視化したアラートを発出してもよい。
 ***実施の形態1の効果***
 以上のように、実施の形態1に係る転送装置10は、マスター装置40からの累積周波数偏差及び隣接装置からの隣接周波数偏差に基づき、複数のポートから時刻同期ポートを決定する。これにより、伝搬遅延及び周波数偏差に基づき高精度に時刻同期する技術を用いた場合にも、適切な時刻配信経路を特定可能である。
 実施の形態1に係る転送装置10は、図10に示すように、BMCAによって決定されたマスターとスレーブとブロックとのポート種別を用いずにSyncメッセージ及びFollowUpメッセージが全配信経路にブロードキャストされる。これにより、転送装置10に接続されたいずれの時刻配信経路候補から受信したSyncメッセージ及びFollowUpメッセージに対しても時刻同期することが可能になる。
 そして、前述したように時刻同期ポートを一意に決定する機能を持たせる。これにより、常に最も良い精度のSyncメッセージ及びFollowUpメッセージが選択される。その結果、常に最も良い精度でマスター装置40との時刻同期を実現することが可能になる。
 配信経路上のいずれかの装置あるいは配線に問題が生じ通信が不安定化した際には、BMCAによって構築する時刻配信ツリーではツリー再構築まで時間を要する。あるいは、BMCAによって構築する時刻配信ツリーでは、通信自体は継続しているためツリー再構築はされずに悪化した時刻同期精度のまま動作し続けてしまう。
 実施の形態1に係る転送装置10では、このような状態に陥ることがない。
 実施の形態1に係る転送装置10は、マスター装置40からの累積周波数偏差及び隣接装置からの隣接周波数偏差に基づき、異常又は劣化を検出する。これにより、異常又は劣化を早期に検出することが可能になる。
 ***他の構成***
 <変形例1>
 実施の形態1では、時刻同期機能は、ネットワークプロセッサである電子回路11によって実現されるとした。しかし、時刻同期機能は、ソフトウェアによって実現されてもよい。
 この場合には、RAM13には、時刻同期機能を実現するプログラムが記憶される。CPU12は、このプログラムを読み出して実行する。これにより、時刻同期機能が実現される。
 <変形例2>
 変形例2として、時刻同期機能のうち一部がハードウェアで実現され、残りがソフトウェアで実現されてもよい。
 電子回路11とCPU12とRAM13を処理回路という。つまり、各機能構成要素の機能は、処理回路により実現される。
 実施の形態2.
 実施の形態2は、時刻同期システム100上に複数のマスター装置40が存在する点が実施の形態1と異なる。実施の形態2では、この異なる点を説明して、同一の点については説明を省略する。
 ***構成の説明***
 図11を参照して、実施の形態2に係る時刻同期システム100の構成を説明する。
 時刻同期システム100は、複数のマスター装置40を備える点が図1に示す時刻同期システム100と異なる。図11では、時刻同期システム100は、マスター装置40Aとマスター装置40Bとを備えている。
 各マスター装置40は、スレーブ装置となる各転送装置10に対して、メッセージ42(Syncメッセージ及びFollowUpメッセージ)を巡回させて時刻配信を行う。
 ***動作の説明***
 図12から図14を参照して、実施の形態2に係る転送装置10の動作を説明する。
 実施の形態2に係る転送装置10の動作手順は、実施の形態2に係る時刻同期方法に相当する。また、実施の形態2に係る転送装置10の動作を実現するプログラムは、実施の形態2に係る時刻同期プログラムに相当する。
 BMCAでは、各転送装置10は、各マスター装置40に対して予め設定されたPriority Vectorに従って、どのマスター装置40に時刻と同期させるかを決定する。図12に示すように、Priority Vectorは、優先度と、属性と、Announceメッセージの経由段数と、MACアドレスと、ポート番号と等の静的なパラメータで構成される。
 実施の形態1では、時刻同期ポートの決定の際、その時点での周波数偏差のみを用いた。そして、BMCAによる時刻配信ツリーについては考慮されていなかった。時刻同期システム100が複数のマスター装置40を備えるケースでは、実施の形態1の時刻同期ポートの決定処理では、マスター装置40毎に設定された優先度設定等を無視することになる。
 そこで、実施の形態2では、転送装置10は、BMCAによるマスターとスレーブとブロックポートとの決定論理と組み合わせて、時刻同期ポートを決定する。
 <時刻同期ポートの決定>
 図13及び図14を参照して、実施の形態2に係る時刻同期ポートの決定処理を説明する。
 図13は、比較のために示すフローチャートであり、非特許文献2に記載されたBMCAのフローチャートである。図14は、実施の形態2に係る時刻同期ポートの決定処理のフローチャートである。ここでは、現在時刻同期ポートとして選択されているポート及び現在時刻同期ポートとして選択されているポート側の値をAとする。新規比較対象となるポート及び新規比較対象となるポート側の値をBとする。
 ステップS41からステップS46の処理と、ステップS49からステップS51の処理とは、BMCAの処理と同じである。
 (ステップS47:累積判定処理)
 図8のステップS21と同様に、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとの間で、累積周波数偏差を比較する。この際、同期ポート決定部36は、(1-累積周波数偏差)の絶対値を比較する。
 A>Bであれば、同期ポート決定部36は、新規比較対象となるポートを新たに時刻同期ポートに決定する。一方、A<Bであれば、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートを時刻同期ポートに決定する。A=Bであれば、処理をステップS48に進める。
 (ステップS48:隣接判定処理)
 図8のステップS22と同様に、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートと、新規比較対象となるポートとの間で、隣接周波数偏差を比較する。この際、同期ポート決定部36は、(1-隣接周波数偏差)の絶対値を比較する。
 A>Bであれば、同期ポート決定部36は、新規比較対象となるポートを新たに時刻同期ポートに決定する。一方、A<Bであれば、同期ポート決定部36は、現在時刻同期ポートとして選択されているポートを時刻同期ポートに決定する。A=Bであれば、処理をステップS49に進める。
 なお、ステップS47及びステップS48の処理をBMCAに挿入した位置を一例である。ステップS47及びステップS48の処理をBMCAの異なる位置に挿入することも考えられる。
 ***実施の形態2の効果***
 以上のように、実施の形態2に係る転送装置10は、時刻同期システム100が複数のマスター装置40を備えるケースにおいて、時刻同期システム100の設計者の意図に沿ったマスター装置40を選択でくる。さらに、実施の形態2に係る転送装置10は、その時点で最も良い精度でマスター装置40との時刻同期を実現することが可能である。
 なお、以上の説明における「部」を、「回路」、「工程」、「手順」、「処理」又は「処理回路」に読み替えてもよい。
 以上、本開示の実施の形態及び変形例について説明した。これらの実施の形態及び変形例のうち、いくつかを組み合わせて実施してもよい。また、いずれか1つ又はいくつかを部分的に実施してもよい。なお、本開示は、以上の実施の形態及び変形例に限定されるものではなく、必要に応じて種々の変更が可能である。
 100 時刻同期システム、10 転送装置、11 電子回路、12 CPU、13 RAM、14 入出力インタフェース、21 フレーム送受信部、22 フレーム振分部、23 スイッチ機能部、24 同期機能部、31 PDelay受信部、32 Sync/FollowUp受信部、33 Annouce受信部、34 BMCA制御部、35 遅延計算部、36 同期ポート決定部、37 異常検出部、38 時刻同期部、39 gPTPフレーム送信部、40 マスター装置、41 GPS、42 メッセージ。

Claims (8)

  1.  マスター装置から送信された時刻情報を異なる転送装置を経由して受信する複数のポートそれぞれについての前記マスター装置からの周波数偏差の累積値である累積周波数偏差に基づき、前記複数のポートから時刻同期ポートを決定する同期ポート決定部と、
     前記同期ポート決定部によって決定された前記時刻同期ポートで受信された前記時刻情報に基づき、ローカル時刻を更新する時刻同期部と
    を備える時刻同期装置。
  2.  前記同期ポート決定部は、複数のポートそれぞれについての前記時刻情報の直接の転送元の転送装置である隣接装置からの前記周波数偏差である隣接周波数偏差に基づき、前記時刻同期ポートを決定する
    請求項1に記載の時刻同期装置。
  3.  前記同期ポート決定部は、2つ以上のポートについての前記累積周波数偏差が最良である場合に、前記隣接周波数偏差に基づき、前記2つ以上のポートから前記時刻同期ポートを決定する
    請求項2に記載の時刻同期装置。
  4.  前記累積周波数偏差は、周期的に計算され、
     前記時刻同期装置は、さらに、
     基準回の前記累積周波数偏差から得られる累積判断指標に基づき、前記マスター装置との間の異常を検出する異常検出部
    を備える請求項1から3までのいずれか1項に記載の時刻同期装置。
  5.  前記隣接周波数偏差は、周期的に計算され、
     前記時刻同期装置は、さらに、
     基準回の前記隣接周波数偏差から得られる隣接判断指標に基づき、前記隣接装置との間の異常を検出する異常検出部
    を備える請求項2に記載の時刻同期装置。
  6.  前記複数のポートは、複数のマスター装置のうちいずれかのマスター装置から送信された前記時刻情報を受信し、
     前記同期ポート決定部は、前記複数のマスター装置のうち優先するマスター装置を特定することにより、前記複数のポートから前記時刻同期ポートの候補となる候補ポートを決定し、複数の候補ポートが特定された場合に、前記複数の候補ポートそれぞれについての前記累積周波数偏差に基づき、前記複数の候補ポートから前記時刻同期ポートを決定する
    請求項1から5までのいずれか1項に記載の時刻同期装置。
  7.  コンピュータが、マスター装置から送信された時刻情報を異なる転送装置を経由して受信する複数のポートそれぞれについての前記マスター装置からの周波数偏差の累積値である累積周波数偏差に基づき、前記複数のポートから時刻同期ポートを決定し、
     コンピュータが、前記時刻同期ポートで受信された前記時刻情報に基づき、ローカル時刻を更新する時刻同期方法。
  8.  マスター装置から送信された時刻情報を異なる転送装置を経由して受信する複数のポートそれぞれについての前記マスター装置からの周波数偏差の累積値である累積周波数偏差に基づき、前記複数のポートから時刻同期ポートを決定する同期ポート決定処理と、
     前記同期ポート決定処理によって決定された前記時刻同期ポートで受信された前記時刻情報に基づき、ローカル時刻を更新する時刻同期処理と
    を行う時刻同期装置としてコンピュータを機能させる時刻同期プログラム。
     
     
PCT/JP2022/022331 2022-06-01 2022-06-01 時刻同期装置、時刻同期方法及び時刻同期プログラム WO2023233588A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2022/022331 WO2023233588A1 (ja) 2022-06-01 2022-06-01 時刻同期装置、時刻同期方法及び時刻同期プログラム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2022/022331 WO2023233588A1 (ja) 2022-06-01 2022-06-01 時刻同期装置、時刻同期方法及び時刻同期プログラム

Publications (1)

Publication Number Publication Date
WO2023233588A1 true WO2023233588A1 (ja) 2023-12-07

Family

ID=89026071

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/022331 WO2023233588A1 (ja) 2022-06-01 2022-06-01 時刻同期装置、時刻同期方法及び時刻同期プログラム

Country Status (1)

Country Link
WO (1) WO2023233588A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012023654A (ja) * 2010-07-16 2012-02-02 Kddi Corp ネットワークを介した時刻同期装置
JP2017022526A (ja) * 2015-07-09 2017-01-26 株式会社東芝 時刻同期クライアント及び保護システム
JP2020202498A (ja) * 2019-06-11 2020-12-17 日本電気株式会社 時刻同期装置、時刻同期システム、時刻同期方法及びプログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012023654A (ja) * 2010-07-16 2012-02-02 Kddi Corp ネットワークを介した時刻同期装置
JP2017022526A (ja) * 2015-07-09 2017-01-26 株式会社東芝 時刻同期クライアント及び保護システム
JP2020202498A (ja) * 2019-06-11 2020-12-17 日本電気株式会社 時刻同期装置、時刻同期システム、時刻同期方法及びプログラム

Similar Documents

Publication Publication Date Title
US10887037B2 (en) Symmetric path/link over LAG interface using LLDP for time synchronization between two nodes using PTP
US20130227008A1 (en) Clock synchronization based on predefined grandmaster
US11522627B2 (en) TSN enabled controller
US8837532B2 (en) Frame transmission device and synchronization method
US8103016B2 (en) Network system and audio signal processor
US20090046586A1 (en) Delay management for distributed communications networks
US8345674B2 (en) Network system and audio signal processor
KR101807745B1 (ko) 통신 네트워크 내 노드들 사이의 경로 지연 비대칭의 변화에 의하여 영향을 받는 타이밍 레퍼런스들의 감지를 위한 방법
US9485045B2 (en) Communication control equipment
US7826580B2 (en) Network system and audio signal processor
US9288112B2 (en) Automatic network discovery in precision time protocol networks
JP2009065579A (ja) 時刻同期システム、時刻同期方法、ノード及びプログラム
US8103369B2 (en) Network system and audio signal processor
JP2017529806A (ja) Ieee 1588クロックのネットワークにおける動的精度情報の配信
WO2013174025A1 (zh) 基于ptp协议的透明时钟被动端口选举方法及装置
CN104092528A (zh) 一种时钟同步方法和装置
CN114070448B (zh) 一种基于多属性决策的主时钟选取方法
CN114389735A (zh) 一种基于ieee802.1as冗余主时钟的时钟同步方法
US20230103012A1 (en) Method for optimising the time synchronisation between network devices connected via a communications network
WO2023233588A1 (ja) 時刻同期装置、時刻同期方法及び時刻同期プログラム
WO2016027532A1 (ja) 通信制御装置およびネットワーク中継装置
JP2019176289A (ja) 無線通信装置、無線通信システムおよび無線通信方法
US20230231641A1 (en) Link profiling for asymmetric delay compensation
US20090162075A1 (en) Transmission system and transmission method
KR20180052065A (ko) 이더넷 통신망에서의 알림 메시지 관리 장치 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22944872

Country of ref document: EP

Kind code of ref document: A1