COMMUNICATION CONTROL APPARATUS AND COMMUNICATION CONTROL METHOD
20220131681 · 2022-04-28
Inventors
- Tatsuya MARUYAMA (Tokyo, JP)
- Mitsuyasu Kido (Tokyo, JP)
- Shoji Yoshida (Tokyo, JP)
- Kazuhisa Takami (Tokyo, JP)
- Takamichi ENDO (Tokyo, JP)
Cpc classification
H04J3/0667
ELECTRICITY
International classification
Abstract
In the related art, since there is a difference in communication delay time in a round-trip communication path due to packet clogging in a network configuration using a network relay device, there is a problem that time cannot be synchronized. In order to solve the above problem, in the present invention, a time synchronization unit 131 is controlled by the time synchronization control unit 130 to perform time synchronization once, delays of an egress path and an ingress path of the time packet on the basis of the synchronization time are calculated, and time synchronization processing is executed using a time of the time packet in a case where the calculated values are equal to each other.
Claims
1. A communication control apparatus that executes time synchronization processing with a communication apparatus connected via a network using a time synchronization packet transmitted and received via the network, the communication control apparatus comprising: a unit which transmits the time synchronization packet to the communication apparatus; a unit which receives the time synchronization packet from the communication apparatus; a unit which calculates a transmission/reception time of the time synchronization packet in the communication control apparatus and the communication apparatus using a timestamp recorded in the time synchronization packet; a unit which calculates a delay time, which is an elapsed communication time between the communication control apparatus and the communication apparatus, for each of an egress path and an ingress path using the specified transmission/reception time; and a unit which calculates a difference between the calculated delay time of the egress path and delay time of the ingress path, and when the calculated difference is less than or equal to a predetermined threshold value, executes time synchronization processing with a difference of averages of the transmission/reception times of the communication control apparatus and the communication apparatus as the delay time of the communication control apparatus using the timestamp.
2. The communication control apparatus according to claim 1, wherein the unit which executes the time synchronization processing periodically executes the time synchronization processing.
3. The communication control apparatus according to claim 2, wherein the unit which executes the time synchronization processing suppresses the time synchronization processing until a next cycle in a case where the calculated difference is larger than the predetermined threshold value.
4. The communication control apparatus according to claim 1, wherein the unit which receives the time synchronization packet receives a plurality of communication packets including the time synchronization packet, and the unit which executes the time synchronization processing suppresses the time synchronization processing when a reception interval of each of the plurality of communication packets is substantially equal to a threshold value based on an inter-frame gap.
5. The communication control apparatus according to claim 1, further comprising a unit which increases a communication traffic volume according to the difference with respect to a path having a smaller delay time to be greater than a communication traffic volume of the other in a case where the difference is larger than the predetermined threshold value.
6. The communication control apparatus according to claim 1, wherein the unit which executes the time synchronization processing determines the predetermined threshold value on the basis of target synchronization accuracy in the time synchronization processing.
7. A communication control method for executing time synchronization processing between a communication control apparatus and a communication apparatus connected via a network using a time synchronization packet transmitted and received via the network, wherein the communication control apparatus, transmits the time synchronization packet to the communication apparatus, receives the time synchronization packet from the communication apparatus, specifies a transmission/reception time of the time synchronization packet in the communication control apparatus and the communication apparatus using a timestamp recorded in the time synchronization packet, calculates a delay time, which is an elapsed time of communication between the communication control apparatus and the communication apparatus, for each of an egress path and an ingress path by using the specified transmission/reception time, and calculates a difference between the calculated delay time of the egress path and delay time of the ingress path, and when the calculated difference is less than or equal to a predetermined threshold value, executes time synchronization processing with a difference of averages of the transmission/reception times of the communication control apparatus and the communication apparatus as the delay time of the communication control apparatus using the timestamp.
8. The communication control method according to claim 7, wherein the communication control apparatus periodically executes the time synchronization processing.
9. The communication control method according to claim 8, wherein the communication control apparatus suppresses the time synchronization processing until a next cycle in a case where the calculated difference is larger than the predetermined threshold value.
10. The communication control method according to claim 7, wherein the communication control apparatus includes: in the reception of the time synchronization packet, a plurality of communication packets including the time synchronization packet is received, and when a reception interval of each of the plurality of communication packets is substantially equal to a threshold value based on an inter-frame gap, the time synchronization processing is suppressed.
11. The communication control method according to claim 7, wherein the communication control apparatus increases a communication traffic volume according to the difference with respect to a path having a smaller delay time to be greater than a communication traffic volume of the other in a case where the difference is larger than the predetermined threshold value.
12. The communication control method according to claim 7, wherein the communication control apparatus determines the predetermined threshold value on the basis of target synchronization accuracy in the time synchronization processing.
13. A communication control apparatus that executes time synchronization processing with a communication apparatus connected via a network using a time synchronization packet transmitted and received via the network, the communication control apparatus comprising: a unit which transmits the time synchronization packet to the communication apparatus; a unit which receives the time synchronization packet from the communication apparatus; a unit which calculates a transmission/reception time of the time synchronization packet in the communication control apparatus and the communication apparatus using a timestamp recorded in the time synchronization packet; a unit which calculates a delay time, which is an elapsed communication time between the communication control apparatus and the communication apparatus, for each of an egress path and an ingress path using the calculated transmission/reception time; and a unit which calculates a difference between the calculated delay time of the egress path and delay time of the ingress path, and executes processing related to communication in the network in the communication control apparatus according to a value of the calculated difference.
14. The communication control apparatus according to claim 13, wherein the unit which executes the processing related to the communication suppresses a communication traffic volume of a path having a longer delay time in a case where the calculated difference is larger than a predetermined threshold value.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
DESCRIPTION OF EMBODIMENTS
[0051] Hereinafter, as one embodiment of the present invention, Embodiment 1 to 3 related to a communication control apparatus connected to a communication apparatus via a network relay device will be described.
Embodiment 1
(System Example)
[0052]
[0053] The communication control apparatus 120 is connected to and communicates with another network relay device 121 or a communication apparatus 123 via a network 122.
[0054] Examples of the network relay device 121 of the present embodiment include various network relay devices such as a network switch including an L3 switch, a bridge, a router, transparent clock (TC) and boundary clock (BC) of IEEE 1588, a switch L2 switch capable of rewriting packet route control in a software defined network, an OpenFlow switch, RedBox defined by IEC 62439-3, QuadBox, an optical switch, an optical multiplexer, and an optical splitter.
[0055] In addition, the network 122 of the present embodiment includes various industrial networks including a control network defined by IEEE 802.3 (Ethernet), IEC61784, Communication Profile Family 12 (Hereinafter, EtherCAT (registered trademark)) of IEC61784-2, and IEC 61158, an IEEE communication standard group related to Time Sensitive Networking (TSN), Distributed Network Protocol (DNP) 3, IEC 61970, High availability Seamless Ring (HSR) and Parallel Redundancy Protocol (PRP) in IEC 62439-3, a ring network, an IEEE 802.17 RPR method, Controller Area Network (CAN), DeviceNet, RS-232C, RS-422, RS-485, ZigBee (registered trademark), Bluetooth (registered trademark), IEEE 802.15, IEEE 802.1, mobile communication, OpenADR, ECHONET Lite (registered trademark), OpenFlow (registered trademark), and the like.
[0056] Hereinafter, the communication control apparatus 120 will be described as a slave executing time synchronization to the time of a master in IEEE 1588, and the communication apparatus 123 will be described as the master. Note that the communication control apparatus 120 and the communication apparatus 123 only need to communicate with each other. In addition, processing of the communication control apparatus 120 described below may be executed by the communication apparatus 123, and aspects in which the communication control apparatus 120 and the communication apparatus 123 are referred to as a communication apparatus or a communication control apparatus are also included in the present embodiment.
(Hardware Configuration)
[0057]
[0058] A CPU 101 transfers a program from a non-volatile storage medium 109 to the memory 108 and executes the program. Examples of the execution processing program of the present embodiment include an operating system (hereinafter, referred to as OS) and an application program running on the OS.
[0059] An LAN 102 is a transceiver IC having a communication function with the network 122.
[0060] The LAN 102 receives a communication request from a program running on the CPU 101 and communicates with the network 122. Examples of implementation of the LAN 102 include ICs such as a media access control (MAC) chip, a physical layer (PHY) chip, a composite chip of MAC and PHY, FPGA, CPLD, ASIC, and gate array compliant with the IEEE802.3 standard. Note that the LAN 102 may be included in the CPU 101 or a chip set that controls an information path inside the computer.
[0061] Note that the LAN 102 may have a time measurement function defined in IEEE 1588 or the like. This is a function of measuring a timestamp when a predetermined time synchronization packet is transmitted or received.
[0062] A function of storing the measured timestamp in the packet may be included.
[0063] The memory 108 is a temporary storage area for the CPU 101 to operate, and stores the OS, the application program, and the like transferred from the non-volatile storage medium 109.
[0064] The non-volatile storage medium 109 is an information storage medium, and is used for storing an OS, an application, a device driver, or the like, a program for operating the CPU 101, and a result of execution of the program. Examples of the non-volatile storage medium 109 of the present embodiment include a hard disk drive (HDD), a solid state drive (SSD), and a flash memory.
[0065] In addition, the non-volatile storage medium 109 of the present embodiment includes an external storage medium that is easier to remove. Examples thereof include use of a floppy disk (FD), a CD, a DVD, Blu-ray (registered trademark), a USB memory, and a compact flash (registered trademark).
[0066] The CPU 101, LAN 102, memory 108, and non-volatile storage medium 109 are connected to a bus 110 of the present embodiment. Examples of the bus 110 include a PCI bus, an ISA bus, a PCI Express bus, a system bus, and a memory bus.
(Description of Each Functional Unit)
[0067]
[0068] The time synchronization control unit 130 may be realized by the CPU 101 or an application that operates on the CPU 101, or may be realized as hardware logic in a case where the LAN 102 is configured by an FPGA or a CPLD. Alternatively, both the software on the CPU 101 and the LAN 102 may be used. In this case, the LAN 102 processes a packet transmission timing, a packet reception timing measurement function, or packet format generation.
[0069] The time synchronization unit 131 sets a parameter on the basis of information obtained by a network time synchronization protocol executed by the time synchronization control unit 130 and manages a time synchronized with the master.
[0070] The time synchronization unit 131 may be implemented by the CPU 101 or an application that operates on the CPU 101, or may be implemented as hardware logic included in the LAN 102.
[0071] The reference delay storage unit 132 holds a reference delay used by the time synchronization control unit 130 to determine whether to execute a time synchronization control. The reference delay may be dynamically calculated by acquiring timestamps measured by the timestamp unit 133 or a timestamp on a time synchronization packet, or may be calculated in advance from network configuration information and input.
[0072] The reference delay storage unit 132 is exemplified by using the memory 108 and the non-volatile storage medium 109.
[0073] The timestamp unit 133 measures the timing at which the packet for time synchronization passes through the timestamp unit 133 or is transmitted and received by a communication unit 134 and the time synchronization unit 131. In addition, a measured timestamp is stored in the time synchronization packet.
[0074] The timestamp unit 133 may be implemented by the CPU 101 or an application that operates on the CPU 101, or may be implemented as hardware logic included in the LAN 102.
[0075] The communication unit 134 is a function of transmitting and receiving a predetermined packet in a communication protocol. The communication unit 134 also has a function of controlling a communication traffic volume in accordance with a difference in delay time between an egress path and an ingress path.
(Operation Procedure)
[0076] Next, an operation procedure of the time synchronization control unit 130 is illustrated in
[0077] First, the time synchronization unit 131 is controlled to determine whether it is time to execute the time synchronization processing (S020). This may be performed even when a timer detects a predetermined time, after reception of the Sync message in S062 of
[0078] Next, it is determined whether to control the time synchronization unit 131 (S021). Details of the determination method will be described below. When determining to execute the time synchronization processing in S021 (Y in S021), the time synchronization control unit 130 controls the time synchronization unit 131 to execute the time synchronization processing (S022). The time synchronization processing includes a delay calculation of the egress path (
[0079] When it is determined in S021 that the time synchronization is not controlled, that is, the time synchronization processing is not executed (N in S021), the process ends as it is.
(Control Determination of Time Synchronization: Minimum Delay)
[0080] As a method of determining whether to control the time synchronization unit 131 in S021, a method of calculating a delay between the master and the slave and determining to control the time synchronization unit 131 in a case where the delay is a minimum value is exemplified. This is based on the idea of determining that no time synchronization packet is delayed due to queuing in the network relay device 121 on the communication path when the delay is the minimum delay.
(Reference Delay Update: Minimum Delay)
[0081]
[0082] First, it is determined whether it is a timing to calculate a delay (S030). This is exemplified by the timing of reception of the Delay_Resp message illustrated in S068 of
[0083] Next, the delay is calculated by the procedure of Equation 1 (S031). Next, the reference delay storage unit 132 determines whether the reference delay is held (S032). When the reference delay is held (Y in S032), it is determined whether the delay calculated in S031 is smaller than the delay held in the reference delay storage unit 132 (S033). If the delay is smaller than the delay held in the reference delay storage unit 132 (Y in S033), the delay calculated in S031 is set as the reference delay (S034).
[0084] In S033, when the delay calculated in S031 is not smaller than the delay held in the reference delay storage unit 132 (N in S033), the process ends as it is.
[0085] When the reference delay is not held in S032 (N in S032), the delay calculated in S031 is set as the reference delay (S034).
[0086] By way of example, the time synchronization is controlled in S021 (step of controlling the time synchronization unit 131) in
(Control Determination of Time Synchronization Unit 131: Delay of Egress Path and Ingress Path)
[0087] Alternatively, in the determination as to whether the time synchronization control unit 130 controls the time synchronization unit 131, the time synchronization may be controlled in a case where estimated delays of the egress path and the ingress path are substantially equal to each other. In other words, this means that the time synchronization is controlled when the queuing delay by the network relay device 121 on the network 122 is equal between the egress path and the ingress path. A determination procedure of the time synchronization control unit 130 by this method, that is, a calculation procedure of the delay in the egress path and the ingress path is illustrated in
[0088]
[0089] First, reception of the Sync message is waited (S001). Next, a reception time of the Sync message is recorded (S002). Next, a transmission time of the Sync message in the master is estimated (S003). Then, a difference between the timestamp stored in the Sync message and the transmission time of the Sync message estimated in S003 is obtained, and a delay generated on the network of the egress path is calculated.
[0090] The estimation of the transmission time of the Sync message in S003 is exemplarily calculated based on the calculation of the synchronization time in the time synchronization unit 131 and the reference delay held in the reference delay storage unit 132.
[0091] For example, it is assumed that a synchronization time Tsys in the time synchronization unit 131 is calculated by the following Equation.
Tsys=a×TL+b (Equation 3)
[0092] Here, TL is a local time which is a time of the slave itself, and a and b are coefficients. It is assumed that a and b are calculated in the procedures of
[0093] In this case, the transmission time TM_Sync of the Sync message in the master is estimated by the following Equation using Equation 3 and the minimum delay dmin.
TM_Sync=Tsys_s_Sync−d min=a×TL_s_Sync+b−d min (Equation 4)
[0094] Here, Tsys_s_Sync is a time indicating the reception time of the Sync message in the slave by the synchronization time, and TL_s_Sync is a time indicating the reception time of the Sync message in the slave by the local time.
[0095]
[0096] In
[0097] Next, the Delay_Req message is transmitted (S011). At that time, the transmission time of the Delay_Req message is recorded (S012). Thereafter, the reception of the Delay_Resp message is waited (S013). When the Delay_Resp message is received (Y in S013), the reception time of Delay_Req in the master is estimated and recorded (S014). Thereafter, the reception time of the master Delay_Req estimated in S014 is subtracted from the timestamp notified by the Delay_Resp message, and the difference therebetween is calculated (S015).
[0098] The estimation of the reception time of the Delay_Req message in S014 is calculated on the basis of the synchronization time in the time synchronization unit 131 and the reference delay stored in the reference delay storage unit 132.
[0099] The reception time TM_Dreg of the Delay_Req message in the master is estimated by the following equation using Equation 3 and the minimum delay dmin.
[0100] Here, Tsys_s_Dreg is a time indicating the transmission time of the Delay_Req message in the slave by the synchronization time, and TL_s_Dreg is a time indicating the transmission time of the Delay_Req message in the slave by the local time.
(Summary when Egress Path and Ingress Path are Equal)
[0101] According to the procedures of
[0102] In the procedures of
[0103]
[0104] A difference from
[0105]
[0106] A difference from
[0107] This procedure will be described more specifically with reference to the communication sequence diagram of the time synchronization packet in
[0108] In this example, it is assumed that the slave has once been subjected to the time synchronization processing and the time offset −20 has been acquired. In the case of the procedures of
[0109] In (1) of
[0110] The reception time at the local time in the slave at this time is set to 45 (corresponding to S002 in
[0111] At the same time, the timestamp of 10 on the Sync message is acquired.
[0112] In the procedure of
[0113] In the procedure of
[0114] Next, in (3) of
[0115] In the procedure of
[0116] In the procedure of
[0117] Note that, in the procedures of
[0118] In the procedures of
[0119] As a result, the time offset is obtained as −20. Here, a case where evaluation values of the egress path and the ingress path are equal to each other has been described, but the time synchronization of the time synchronization unit 131 may be controlled when the evaluation values are substantially equal to each other or a difference between the evaluation values is within a predetermined threshold value. As a method of determining the threshold value, the threshold value may be determined based on a target synchronization accuracy error. As an example, since the difference between the delays in the egress path and the ingress path is equal to twice the achievable synchronization accuracy error, twice the target synchronization accuracy may be used as the threshold value. Alternatively, there is a possibility that an error due to variation in physical accuracy inherent in a crystal oscillator that controls the time of the communication control apparatus 120 or the communication apparatus 123 is accumulated for the time from the Sync transmission of tm1 to the Delay_Req reception of tm4. Therefore, a value obtained by subtracting the worst value of the error caused by an accuracy variation of the crystal oscillator from the target accuracy error at a time obtained by subtracting tm1 from tm4 may be used as the threshold value.
[0120] For example, in a case where tm4-tm1 is 1 millisecond and the accuracy variation of the crystal oscillator is ±50 ppm, the variation is 100 ppm at the maximum, and thus the error is calculated as 1 millisecond×100 ppm=100 nanoseconds.
[0121] For example, when the target accuracy is 5 microseconds, the threshold value is set to 4.9 microseconds (5 microseconds-100 nanoseconds).
[0122] The target accuracy is determined by the requirements of the target control system. For example, in a protection control device of a power system, the synchronization accuracy between the protection control devices is defined in consideration of a control operation until the protection control device detects a system fault and controls circuit breakers.
[0123] Note that the threshold value may be changed with a lapse of time. A synchronization error accumulates as time elapses after the communication control apparatus 120 and the communication apparatus 123 are synchronized. Therefore, it is exemplified that the threshold value is reduced according to the lapse of time after the synchronization, and the time synchronization protocol is executed in a case where the measured delays of the egress path and ingress path are closer. In this way, the synchronization accuracy between the communication control apparatus 120 and the communication apparatus 123 can be maintained according to the synchronization deviation with the lapse of time.
[0124] Note that a degree of change in the threshold value is determined on the basis of accuracy of a clocking device such as the crystal oscillator used in the communication control apparatus 120 and the communication apparatus 123, for example.
[0125] Note that a method of multiplexing domains in one communication apparatus 123 and communicating with the communication control apparatus 120 may be configured with a route control information of the network relay device 121 (for example, switching the route for each domain). In addition, a domain number on an IEEE 1588 packet may be identified in the communication apparatus 123.
(Estimation of Minimum Delay, Statistic)
[0126] When the reference delay is updated to the minimum delay and the minimum delay is updated in the procedure of
[0127] Note that a method of performing estimation based on a predetermined distribution model will be exemplified as a method of improving the accuracy of determination as to whether the delay is the minimum delay. This is illustrated in
[0128] First, it is determined whether it is a delay calculation timing (S070). This is exemplified by whether a sufficient number of measurements that can approximate a predetermined distribution model has been acquired in addition to the determination criteria similar to S030 in
[0129] Note that this calculation may be applied to S031 in
(Estimation of Minimum Delay, Reception Interval)
[0130] Next, a method for improving accuracy of determination as to whether the delay is the minimum delay on the basis of a reception interval of the packet in the communication control apparatus 120 will be exemplified. This is illustrated in
[0131] First, the processing waits until the reference delay is updated by the procedure of
[0132] These reception intervals are compared with a predetermined threshold value based on an inter-frame gap. In the IEEE 802.3 standard, the inter-frame gap is defined as 96 bit time. This corresponds to 960 nanoseconds at 100 Mbps and 96 nanoseconds at 1 Gbps. When the reception interval is equal to the threshold value based on the inter-frame gap (Y in S091), the process ends, and when the reception interval is not equal to the threshold value based on the inter-frame gap (N in S091), the preparation for the reference delay is completed (S092). This is because, in the network relay device 121 on the communication system, when the time synchronization packet is delayed due to queuing, the transmission interval (that is, the reception interval in the communication control apparatus 120) to the preceding packet should be the inter-frame gap. In a case where the delay due to queuing occurs, it is considered that the calculated delay is not the minimum delay, and thus, the reference delay is not set to be ready, and the processing is terminated. In this case, the process may return to start processing.
[0133] Note that the threshold value may change depending on a measurement point of the reception interval or a transmission function of the communication IC. For example, in a case where a time after reception of a preamble of the time synchronization packet is measured from an end of the preceding frame, a processing time of the preamble is added in addition to the inter-frame gap. Furthermore, in a case where the communication IC used in the communication control apparatus 120 can continuously transmit packets in a time shorter than 96 bit time, the time is the threshold value.
[0134] The result of whether the preparation for the reference delay is completed in S092 in
[0135] Even in a case where the preparation for the reference delay is completed in S092 of
[0136] These environmental changes are detected by use of SNTP or a routing protocol for acquiring the state of the network or by explicit notification, instruction, or setting by an operator.
(Synchronization: Minimum Delay)
[0137] In order to perform the time synchronization processing using the procedures illustrated in
[0138] In order to perform the time synchronization in advance, the time synchronization unit 131 may be controlled when the minimum delay illustrated in
(Synchronization: GNSS)
[0139] As performing the time synchronization in advance, performing time synchronization processing on each of the communication control apparatuses 120 and the communication apparatuses 123 using a global navigation satellite system (GNSS) will be exemplified below.
[0140] Examples of the GNSS include a global positioning system (GPS), a quasi-zenith satellite system, Galileo, and the like.
[0141] When these GNSSs are always effective, the communication control apparatus 120 and the communication apparatus 123 can be appropriately synchronized. However, the present embodiment is effective in a case where an abnormality or a failure of a satellite system, or a surrounding environment of the communication control apparatus 120 and the communication apparatus 123 changes, and an upper portion is temporarily blocked.
(Static Routing)
[0142] Note that, in the present embodiment, in order to focus on the communication delay of the egress path and the ingress path, it is desirable that the communication paths of the egress path and the ingress path be the same. Therefore, the present embodiment also includes setting routing of the network relay devices 121 so that communication paths of the egress path and the ingress path are substantially the same.
(Intentional Communication Flow)
[0143] In the present embodiment, in consideration of the queuing delay in the network relay device 121, the time synchronization protocol is executed in a case where the delays of the egress path and the ingress path are equal within a predetermined threshold range. Therefore, the communication flow may be controlled to increase the delay in the other path when the delay in one path is temporarily large after the measurement of the delays in the egress path and the ingress path.
[0144] In
[0145] In this case, the contents of the request from the communication control apparatus 120a to the communication control apparatus 120c and the communication control apparatus 120d include a request for an increase in communication, a destination (in this case, the communication control apparatus 120a), and a degree of communication to be generated (based on a delay difference between the egress path and the ingress path).
[0146] For example, a communication traffic volume corresponding to the increase amount according to a detected delay difference is increased using data indicating a relationship between a delay difference and an increase amount set in advance. In this case, dummy data that is not originally necessary may be transmitted.
[0147] Regarding the increase amount, not only the data indicating the relationship is used as it is, but also a limitation may be provided when the reference delay and the minimum delay are used. In a case where the reference delay or the minimum delay is used, when the communication traffic volume increases, the delay increases, and it may not satisfy the reference delay or the minimum delay, that is, the time synchronization processing cannot be started. Therefore, when the communication traffic volume is increased, the reference delay or the minimum delay may be increased or the increase in the communication traffic volume may be suppressed by increasing the communication traffic volume within a certain range.
[0148] In addition, conversely, reducing the communication traffic volume to relatively reduce the delay difference is also included in the present embodiment.
[0149] In this way, the time synchronization processing can be performed on the communication control apparatus 120a and the communication apparatus 123 based on the present embodiment.
(Effect: Increase in Synchronization Opportunity)
[0150] Effects of the present embodiment will be described with reference to
[0151] A line (broken line) in S080 indicates a time-series change in the synchronization error when the time synchronization processing is performed in a case where the minimum value illustrated in
[0152] In the case of S080, the synchronization is performed in a case where the time synchronization packet is communicated without queuing with other packets in the target network 122, and the opportunity of synchronization is limited. On the other hand, in the method of S081 in the present embodiment, the time synchronization processing can be performed even in a case where the delays of the egress path and the ingress path are substantially equal to each other as compared with a case where the delay is the minimum delay. That is, the number of synchronization opportunities can be increased as compared with the case of S080. Therefore, it is expected that the worst value of the synchronization error can be made lower than the case of S080.
[0153] Further, the application of the present embodiment to a portion of a ring network will be exemplified below. Examples of the ring network include IEC 62439 including High Availability Seamless Redundancy (HSR) and IEEE 802.17 Resilient Packet Ring (RPR).
[Effect]
[0154] The communication control apparatus 120 to which the present embodiment is applied executes the time synchronization processing in a case where the delays of the egress path and the ingress path are equal to each other within a predetermined range. As a result, the time synchronization processing can be realized on a multi-hop network without using the dedicated network relay device 121 of IEEE 1588. Therefore, a time synchronization system can be realized at low cost without making a new investment in the existing communication infrastructure. In addition, since the time synchronization can be realized on a multi-hop network, the range of the target control system can be physically expanded. That is, the existing wide-area communication system using the network relay device can be used as it is to perform processing for the time synchronization.
Embodiment 2
[0155] Embodiment 2 is an example in which a network is configured by mix of the network relay device 121 defined by the IEEE 1588 standard and the network relay device 121 that does not support the function of the IEEE 1588 standard (mixture with Transparent Clock). Note that reference numerals used in Embodiment 2 mean the same as the functions, elements, and the like described in Embodiment 1 unless otherwise specified.
[0156] The network relay device 121 defined by the IEEE 1588 standard indicates Boundary Clock (Hereinafter, referred to as BC) and Transparent Clock (Hereinafter, referred to as TC). TC includes End-to-end TC (E2E TC) and Peer-to-peer TC (P2P TC).
[0157] The BC is the network relay device 121 in which each communication port functions as the master or the slave in IEEE 1588. Whether each communication port functions as the master or the slave depends on the operations defined by IEEE 1588 standard.
[0158] When each communication port becomes the slave function, the function of the present embodiment is executed. That is, in the communication of the time synchronization packet with the master, the time synchronization processing is executed when the communication delays of the egress path and the ingress path including the queuing delay in the network relay device 121 that does not support the IEEE 1588 standard are equal to each other within a predetermined range.
[0159] The E2E TC adds the transfer delay within the TC to a field called Correction Field (Hereinafter, referred to as CF) of each time synchronization packet. The communication apparatus that has received the time synchronization packet can obtain the difference in the delay of egress path and ingress path using the communication information. In addition to the function of the E2E TC, the P2P TC measures a path delay with an adjacent P2P TC, and adds the path delay to the CF of the time synchronization packet in addition to the transfer delay.
[0160] A problem of the present embodiment is derived from the transfer delay generated on the network relay device 121 and that the transfer delay may be different between the egress path and the ingress path. Since the TC has the above-described function, the transfer delay in the TC (network relay device 121) is known in the egress path and the ingress path. Therefore, it is possible to compare the delays of the egress path and the ingress path by excluding the transfer delay.
[0161] This delay comparison will be described using the configuration illustrated in
[0162] Upon receiving these time synchronization packets, the communication control apparatus 120a subtracts the master transmission time from the slave reception time (synchronization time) and then further subtracts CFsync, for example, in the transfer delay calculation on the egress path in S041 in
[Effect]
[0163] According to the present embodiment, by using TC, it is possible to perform time synchronization processing on the communication control apparatus 120 and the communication apparatus 123 by using the non-IEEE 1588 compliant network relay device 121 while enabling partial introduction of TC.
Embodiment 3
[0164] Embodiment 3 is an embodiment for controlling the communication traffic volume. That is, it is a process for correcting the deviation of the communication traffic volume of the network in a certain direction (egress path, ingress path) due to the delay difference. Note that reference numerals used in the present embodiment mean the same as the functions, elements, and the like described in Embodiment 1 and Embodiment 2 unless otherwise specified.
[0165] Since the main processing of Embodiment 3 corresponds to the processing of
[0166] First, the timing at which the time synchronization control unit 130 controls the communication traffic volume is determined (S120). In S120, processing similar to that in S020 of Embodiment 1 is performed. Next, the time synchronization control unit 130 determines whether to control the communication traffic volume (S121). The determination criterion as to whether to perform the control in S121 is similar to the processing in S021 of Embodiment 1.
[0167] Next, the communication unit 134 controls the communication traffic volume (S122). S122 corresponds to Embodiment 1, and the contents thereof are as follows. A correspondence relationship between the difference between the delays of the egress path and the ingress path and the communication traffic volume to be increased is stored in advance, and communication packets (dummy) corresponding to the communication traffic volume corresponding to the calculated difference between the delays are communicated. Here, in a case where the delay of the egress path is smaller than the delay of the ingress path, the communication control apparatus 120 transmits a communication packet (dummy), and conversely, in a case where the delay of the egress path is larger than the delay of the ingress path, an instruction to transmit the communication packet (dummy) is sent from the communication control apparatus 120 to the communication apparatus 123. Furthermore, in this processing, communication packets (dummy) in a direction in which the communication traffic volume is smaller are communicated, that is, the communication traffic volume is increased, but the communication traffic volume in a direction in which the communication traffic volume is larger may be decreased. For example, by adjusting how the time advances using a timer to be described below, it is possible to reduce the communication interval by widening a communication interval.
[0168] This processing includes updating the parameter of the estimation equation of the communication traffic volume control, changing the synchronization time itself realized by a software timer or a hardware timer inside, and adjusting the advance of the time for a predetermined period in order to avoid a discontinuous time change. Note that, in the present embodiment, unlike the intentional communication flow of Embodiment 1, the communication traffic volume is reduced regardless of the delay difference.
[0169] According to the present embodiment, the deviation of the communication traffic volume can be corrected in the entire network.
[0170] Note that each of Embodiments also includes a technique of calculating not the delay itself but the communication times of the egress path and the ingress path and determining whether the differences are equal. Furthermore, application to monitoring including abnormality detection in a power network is also possible.
REFERENCE SIGNS LIST
[0171] 101 CPU [0172] 102 LAN [0173] 108 memory [0174] 109 non-volatile storage medium [0175] 110 bus [0176] 120 communication control apparatus [0177] 121 network relay device [0178] 122 network [0179] 123 communication apparatus [0180] 130 time synchronization control unit [0181] 131 time synchronization unit [0182] 132 reference delay storage unit [0183] 133 timestamp unit [0184] 134 communication unit