Control system, control device, and method
The control system addresses time discrepancies by generating and modifying operation control information based on time error, ensuring synchronized and efficient operations across devices.
Patent Information
- Application Number
- JP2023020804
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2043-02-14
AI Technical Summary
Existing control systems face issues with proper operation due to discrepancies between global and local time, leading to increased overhead and complexity in switching processes.
A control system with first and second control devices that manage global and local time, generate time error information, and modify operation control information based on this error to ensure synchronized operations.
Ensures appropriate operations by aligning global and local time references, reducing overhead and complexity in control systems.
Smart Images

Figure 2024115220000001
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to control systems, devices and methods. [Background technology]
[0002] Generally, in a control system having multiple control devices (such as communication transfer devices and information processing devices) that are communicatively connected via a network, it is known that each control device operates based on a time synchronized across the entire network (hereinafter referred to as global time).
[0003] According to such a control system, it becomes possible to uniformly manage the time within the control system and to efficiently switch processes throughout the entire control system.
[0004] However, since switching processes based on global time incurs a large overhead, in order to mitigate the effects of this overhead, it is conceivable to configure each control device to basically operate by referring to the time generated in each control device (hereinafter referred to as local time), but also to operate by referring to global time when necessary.
[0005] However, for example, if there is a discrepancy (error) between the progress of global time and local time, the control device may not be able to operate properly. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2015-211247 A Summary of the Invention [Problem to be solved by the invention]
[0007] Therefore, an object of the present invention is to provide a control system, a control device, and a method for realizing appropriate operation by referring to global time and local time. [Means for solving the problem]
[0008] According to an embodiment, a control system is provided that includes a first and a second control device communicatively connected via a network. The first control device includes a management means for managing a global time, a first generation means for generating a local time, a control means for controlling the operation of the first control device based on the global time, the local time, and operation control information that defines the operation of the first control device, and a second generation means for generating time error information indicating a time error based on the global time and the local time. The second control device includes an acquisition means for acquiring the generated time error information from the first control device, and a correction means for correcting the operation control information based on the acquired time error information. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of a network configuration of a control system according to an embodiment. [Diagram 2] FIG. 13 is a diagram showing an example of a functional configuration of a grandmaster device in a comparative example of the present embodiment. [Diagram 3] FIG. 2 is a diagram showing an example of a functional configuration of a communication transfer device in a comparative example of the present embodiment. [Figure 4] FIG. 2 is a diagram showing an example of a functional configuration of an information processing device in a comparative example of the present embodiment. [Diagram 5] FIG. 13 is a diagram showing an example of a functional configuration of an orchestration device in a comparative example of the present embodiment. [Figure 6] FIG. 4 is a diagram showing an example of gate control information. [Figure 7] FIG. 4 is a diagram showing an example of scheduling information. [Figure 8] FIG. 2 is a diagram showing an example of the functional configuration of a communication forwarding device according to the embodiment. [Figure 9]FIG. 2 is a diagram showing an example of a functional configuration of the information processing device according to the present embodiment. [Figure 10] FIG. 2 is a diagram showing an example of a functional configuration of an orchestration device according to the present embodiment. [Figure 11] 11 is a flowchart showing an example of a processing procedure for a time difference information notification process. [Figure 12] FIG. 4 is a diagram for explaining the operation of a difference calculation unit. [Figure 13] FIG. 13 is a diagram conceptually showing a global time increment value and a local time increment value measured in response to a periodic operation. [Figure 14] 10 is a flowchart showing an example of a processing procedure for an action control information correction process. [Figure 15] FIG. 11 is a diagram showing an example of gate control information corrected by executing a first process. [Figure 16] FIG. 11 is a diagram showing an example of scheduling information corrected by executing a first process. [Figure 17] FIG. 11 is a diagram showing an example of gate control information corrected by executing a second process. [Figure 18] FIG. 11 is a diagram showing an example of scheduling information corrected by executing a second process. [Figure 19] FIG. 11 is a diagram showing another example of the gate control information corrected by executing the second process. [Figure 20] FIG. 13 is a diagram showing an example of a screen on which identification information output from the orchestration device is displayed. [Figure 21] FIG. 13 is a diagram showing an example of a screen generated based on identification information output from the orchestration device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment will be described with reference to the drawings. Fig. 1 shows an example of a network configuration of a control system according to the present embodiment. In the example shown in Fig. 1, the control system 1 includes a grandmaster device 2, a first communication forwarding device 3a, a second communication forwarding device 3b, a first information processing device 4a, and a second information processing device 4b.
[0011] The grandmaster device 2 is connected to the first communication forwarding device 3a via a network. The first communication forwarding device 3a is connected to the second communication forwarding device 3b via a network. The second communication forwarding device 3b is connected to the first information processing device 4a and the second information processing device 4b via a network.
[0012] In this embodiment, the above-mentioned grandmaster device 2, first communication forwarding device 3a, second communication forwarding device 3b, first information processing device 4a, and second information processing device 4b are time-synchronized by, for example, PTP (Precision Time Protocol) defined in IEEE 1588 or gPTP (generalized Precision Time Protocol) defined in IEEE 802.1AS. Time synchronization using PTP or gPTP is realized by a master device (master equipment) that provides a reference time, and a slave device (slave equipment) that communicates with the master device and thereby synchronizes with the reference time.
[0013] The grandmaster device 2 is the highest-level device among the master devices that provide the reference time in time synchronization. In this case, the grandmaster device 2 operates as a master device, the first communication transfer device 3a (the communication port of the first communication transfer device 3a to which the grandmaster device 2 is connected) operates as a slave device, and the time managed by the first communication transfer device 3a is synchronized with the reference time provided by the grandmaster device 2.
[0014] In addition, the first communication forwarding device 3a (the communication port of the first communication forwarding device 3a connected to the second communication forwarding device 3b) operates as a master device, and the second communication forwarding device 3b (the communication port of the second communication forwarding device 3b connected to the first communication forwarding device 3a) operates as a slave device, and the time managed in the second communication forwarding device 3b is synchronized with the time managed in the first communication forwarding device 3a (time synchronized with the reference time).
[0015] Furthermore, the second communication transfer device 3b (the communication port of the second communication transfer device 3b connected to the first information processing device 4a) operates as a master device, the first information processing device 4a operates as a slave device, and the time managed in the first information processing device 4a is synchronized with the time managed in the second communication transfer device 3b (time synchronized with the reference time).
[0016] In addition, the second communication transfer device 3b (the communication port of the second communication transfer device 3b connected to the second information processing device 4b) operates as a master device, the second information processing device 4b operates as a slave device, and the time managed in the second information processing device 4b is synchronized with the time managed in the second communication transfer device 3b (time synchronized with the reference time).
[0017] In this embodiment, as described above, the times managed by the first communication forwarding device 3a, the second communication forwarding device 3b, the first information processing device 4a, and the second information processing device 4b are synchronized with the reference time provided by the grandmaster device 2, thereby making it possible to realize efficient operation in the control system 1 by referring to the reference time. Note that in this embodiment, the communication forwarding device is described as operating as a slave device to a higher-level master device to synchronize its own clock and operating as a master device to slave devices connected below, using a boundary clock, but it may also be operated using a transparent clock that measures the time taken to forward a frame passing through the communication forwarding device, records the time in the frame, and forwards it.
[0018] In the following description, the reference time synchronized throughout the system by a time synchronization protocol such as the above-mentioned PTP or gPTP is referred to as global time.
[0019] Here, the control system 1 according to the present embodiment further includes an orchestration device 5. The orchestration device 5 generates operation control information that defines, for example, the operations of the first communication forwarding device 3a and the second communication forwarding device 3b. The orchestration device 5 also generates operation control information that defines, for example, the operations of the first information processing device 4a and the second information processing device 4b.
[0020] In this case, the first communication forwarding device 3a, the second communication forwarding device 3b, the first information processing device 4a, and the second information processing device 4b each operate according to the operation control information generated by the orchestration device 5.
[0021] In this embodiment, the first communication forwarding device 3a and the second communication forwarding device 3b execute processes such as transmitting and receiving (transferring) various data (frames) within the control system 1. In addition, the first information processing device 4a and the second information processing device 4b execute information processing including various calculations and control of input / output to and from peripheral devices (peripherals) by, for example, executing a program arranged in a memory in a central processing unit such as a CPU.
[0022] The above-mentioned communication forwarding devices (first communication forwarding device 3a and second communication forwarding device 3b), information processing devices (first information processing device 4a and second information processing device 4b), and orchestration device 5 correspond to control devices provided in the control system 1 of this embodiment.
[0023] Before describing the control system 1 according to the present embodiment in detail, a comparative example of the present embodiment will be described below. The control system according to the comparative example of the present embodiment has the configuration described in Fig. 1. Therefore, Fig. 1 will also be used in the following description of the control system according to the comparative example of the present embodiment.
[0024] Here, in the control system 1 according to the comparative example of this embodiment, each device included in the control system 1 operates with reference to global time, which allows efficient switching of processes in the entire control system 1. However, switching of processes based on global time incurs a large overhead.
[0025] Specifically, the communication transfer device including the first communication transfer device 3a and the second communication transfer device 3b is assumed to be realized as, for example, a network switch, and is basically configured to operate based on a local clock signal generated by an oscillator (oscillating circuit) mounted on the communication transfer device. Therefore, if the circuit operates based on local time, it is possible to handle the passage of time as a fixed number of times the local signal is input, but if the communication transfer device refers to global time, switching of operation based on the global time invites clock transfer (processing that allows data from different clock domains to be referenced) and complicated judgment conditions, resulting in large circuit scale and processing overhead.
[0026] It is assumed that the information processing devices including the first information processing device 4a and the second information processing device 4b are realized as electronic devices (for example, personal computers) into which a network card compatible with the TSN (Time-Sensitive Networking) standard defined in IEEE 802.1 is inserted. In this case, the global time is managed on the network card side, so the overhead for reading the global time becomes large.
[0027] For this reason, the communication forwarding device and the information processing device included in the control system 1 according to the modified example of this embodiment are configured to operate with reference to local time in addition to global time.
[0028] 2 shows an example of the functional configuration of the grandmaster device 2 in a comparative example of this embodiment. As shown in FIG. 2, the grandmaster device 2 includes a global time generation unit 201, a global time management unit 202, a global time synchronization unit 203, and a communication unit 204.
[0029] The global time generating unit 201 generates a global time provided by the grandmaster device 2. The global time generating unit 201 generates the global time based on the local time of the grandmaster device 2, which is based on a signal received from a Global Navigation Satellite System (GNSS), for example.
[0030] The global time generated by the global time generation unit 201 uses, for example, standard atomic time TAI, is represented by a 48-bit second counter and a 32-bit nanosecond counter, and is managed (stored) by the global time management unit 202 .
[0031] The global time synchronization unit 203 performs high-precision time synchronization using PTP or gPTP. The global time synchronization unit 203 acquires the global time managed by the global time management unit 202, and transmits the acquired global time to the first communication transfer device 3a via the communication unit 204.
[0032] 3 shows an example of the functional configuration of a communication forwarding device (first communication forwarding device 3a and second communication forwarding device 3b) in a comparative example of this embodiment. As shown in FIG. 3, the communication forwarding device 3 includes a communication unit 301, a communication control unit 302, a communication forwarding unit 303, a global time synchronization unit 304, a global time management unit 305, a local time generation unit 306, and an operation control information storage unit 307.
[0033] The communication unit 301 transmits and receives frames via a network. The communication unit 301 executes processing for performing communication using a protocol such as Ethernet (registered trademark). Specifically, the communication unit 301 executes processing of the data link layer and physical layer in the OSI reference model, and realizes functions called MAC (Media Access Controller) and PHY.
[0034] In addition, the frames transmitted and received by the communication unit 301 include data such as the global time provided by the above-mentioned grandmaster device 2, the results of processing performed in the first information processing device 4a and the second information processing device 4b, and operation control information generated by the orchestration device 5.
[0035] Also, the communication unit 301 is provided for each communication port of the communication forwarding device 3. Specifically, for example, when the communication forwarding device 3 is the first communication forwarding device 3a, the first communication forwarding device 3a includes a communication unit 301 corresponding to a communication port connected to the grandmaster device 2, a communication unit 301 corresponding to a communication port connected to the second communication forwarding device 3b, and a communication unit 301 corresponding to a communication port connected to the orchestration device 5. Also, for example, when the communication forwarding device 3 is the second communication forwarding device 3b, the second communication forwarding device 3b includes a communication unit 301 corresponding to a communication port connected to the second communication forwarding device 3b, a communication unit 301 corresponding to a communication port connected to the first information processing device 4a, and a communication unit 301 corresponding to a communication port connected to the second information processing device 4b.
[0036] The communication control unit 302 controls the operation of the communication forwarding device 3 based on the global time, the local time, and the operation control information. Specifically, the communication control unit 302 performs transmission processing and reception processing in accordance with the above-mentioned TSN standard.
[0037] The communication transfer unit 303 transfers information (time synchronization frame data) required for global time synchronization between the communication control unit 302 and the global time synchronization unit 304, for example.
[0038] The global time synchronization unit 304 performs high-precision time synchronization using the above-mentioned PTP or gPTP.
[0039] Here, with regard to time synchronization, the communication transfer device 3 (the first communication transfer device 3a and the second communication transfer device 3b) operates as a master device and a slave device depending on the device with which it communicates, and the global time synchronization unit 304 performs different processing for each communication port depending on whether the communication transfer device 3 operates as a master device or a slave device.
[0040] In the process of the communication transfer device 3 as a master device, the global time synchronization unit 304 transmits (information on) the global time acquired (read) from the global time management unit 305 to the slave device via the communication transfer unit 303, the communication control unit 302, and the communication unit 301. The information on the global time is, for example, timestamp information indicating the relevant time.
[0041] When the communication transfer device 3 operates as a slave device, the global time synchronization unit 304 obtains the time it takes for a frame to be transmitted from the master device (i.e., one-way delay time equivalent to half the round-trip delay time) from the round-trip delay time of the network between the master device and the master device (the time it takes for a frame to travel round trip between the master device and the slave device). The global time synchronization unit 304 adds the one-way delay time to the global time (timestamp) transmitted from the master device, and executes a correction process for the global time managed by the global time management unit 305. The above-mentioned network round-trip delay time is assumed to be measured in advance, for example, and held inside the communication transfer device 3 (global time synchronization unit 304).
[0042] The correction process is performed so that the operation of the communication transfer device 3, which is performed with reference to the global time, is appropriately maintained. Specifically, for example, if the global time transmitted from the master device is ahead of the global time managed in the global time management unit 305, the correction process is performed so that the global time managed in the global time management unit 305 is not rapidly advanced (i.e., synchronized by gradually advancing it). On the other hand, for example, if the global time transmitted from the master device is behind the global time managed in the global time management unit 305, the correction process is performed so that the global time managed in the global time management unit 305 is not rewound (i.e., synchronized by slowing down the advancement of the global time).
[0043] The global time management unit 305 manages the above-mentioned global time. The local time generation unit 306 generates local time based on a clock provided inside the communication transfer device 3. Specifically, the local time is a time generated from a clock signal generated using, for example, an oscillator (oscillating circuit). The local time may be realized by a counter that counts up with the clock signal. The local time generation unit 306 may generate local time for each clock having a different frequency, for example.
[0044] The global time managed by the global time management unit 305 and the local time generated by the local time generation unit 306 are referred to when the communication control unit 302 controls the operation of the communication transfer device 3.
[0045] The operation control information storage unit 307 is configured to store the operation control information generated by the orchestration device 5. The operation control information stored in the operation control information storage unit 307 is used by the communication control unit 302 described above to control the operation of the communication forwarding device 3.
[0046] In addition, some or all of the units 301 to 307 shown in Figure 3 may be realized by the computer of the communication forwarding device 3 executing a specified program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0047] 4 shows an example of a functional configuration of an information processing device (first information processing device 4a and second information processing device 4b) in a comparative example of this embodiment. As shown in FIG. 4, the information processing device 4 includes a communication unit 401, a communication control unit 402, a scheduling unit 403, a process execution unit 404, a global time synchronization unit 405, a global time management unit 406, a local time generation unit 407, and an operation control information storage unit 408.
[0048] The communication unit 401 receives, for example, a frame (data) transmitted from the communication forwarding device 3. The frame received by the communication unit 401 includes data such as a global time managed in the communication forwarding device 3, a result of a process executed in another information processing device 4, and operation control information generated by the orchestration device 5. The communication control unit 402 controls communication with the communication forwarding device 3 via the communication unit 401 described above.
[0049] The scheduling unit 403 controls the operation of the information processing device 4 based on the global time, the local time, and the operation control information. Specifically, the scheduling unit 403 schedules the processing to be executed by the processing execution unit 404.
[0050] The process execution unit 404 is provided so as to correspond to each of the cores included in, for example, a CPU (processor, host processor) provided in the information processing device 4. The process execution unit 404 executes processing in units of, for example, virtual machines.
[0051] The result of the process executed by the process execution unit 404 is transmitted to the communication transfer device 3 (another information processing device 4) via the communication control unit 402 and the communication unit 401.
[0052] The global time synchronization unit 405, global time management unit 406, local time generation unit 407, and operation control information storage unit 408 are similar to the global time synchronization unit 304, global time management unit 305, local time generation unit 306, and operation control information storage unit 307 included in the above-mentioned communication transfer device 3, and therefore detailed description thereof will be omitted here. However, the information processing device 4 only operates as a slave device with the communication transfer device 3 as the master device.
[0053] In addition, some or all of the units 401 to 408 shown in FIG. 4 may be realized by the computer of the information processing device 4 executing a predetermined program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0054] 5 shows an example of a functional configuration of the orchestration device 5 in a comparative example of this embodiment. As shown in FIG. 5, the orchestration device 5 includes an operation control information generating unit 501, an operation control information setting unit 502, and a communication unit 503.
[0055] The operation control information generating unit 501 generates operation control information that specifies the operations of the communication forwarding device 3 and the information processing device 4. The operation control information is generated when the operation control information is not set for the communication forwarding device 3 and the information processing device 4 (i.e., the devices whose operations are controlled based on the operation control information). The operation control information may also be generated when it becomes necessary to reset the operation control information due to, for example, the addition of a new application to the information processing device 4.
[0056] The operation control information setting unit 502 sets, for example, operation control information that defines the operation of the communication forwarding device 3, generated by the operation control information generating unit 501, to the communication forwarding device 3 (the communication control unit 302 included therein). Also, the operation control information setting unit 502 sets, for example, operation control information that defines the operation of the information processing device 4, generated by the operation control information generating unit 501, to the information processing device 4 (the scheduling unit 403 included therein).
[0057] The communication unit 503 transmits the operation control information set for the communication transfer device 3 by the operation control information setting unit 502 to the communication transfer device 3. In addition, the communication unit 503 transmits the operation control information set for the information processing device 4 by the operation control information setting unit 502 to the information processing device 4.
[0058] In addition, some or all of the units 501 to 503 shown in Figure 5 may be realized by the computer of the orchestration device 5 executing a predetermined program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0059] Next, the above-mentioned operation control information will be described. First, the operation control information in which the operation of the communication forwarding device 3 is defined will be described with reference to FIG.
[0060] Here, for example, in Enhancements for Scheduled Traffic (EST) and Per-Stream Filtering and Policing (PSFP) defined in IEEE 802.1Q, it is possible to control the transmission and reception of frames by opening and closing a gate for each communication unit 301. This gate opening and closing operation (gate control) is performed based on gate control information (gate control list).
[0061] An example of the gate control information is shown in Fig. 6. Note that the gate control information sets whether to open or close the gates corresponding to each of a plurality of queues in which frames to be transmitted or received are stored.
[0062] The gate control information shown in FIG. 6 includes four entries, "T00" to "T03." Each entry includes the open / closed state of the gate corresponding to each of the eight queues, "Q0" to "Q7," (hereinafter referred to as the queue gate state), and a time interval. The queues "Q0" to "Q7" correspond to each of the eight traffic classes. In FIG. 6, for example, the queue "Q7" corresponds to the traffic class with the highest priority, and the queue "Q0" corresponds to the traffic class with the lowest priority.
[0063] The gate state of each queue is represented by "o" and "C." "o" means that the gate is open. "C" means that the gate is closed. When the gate is open, transmission in the queue (transmission of frames stored in that queue) is permitted. On the other hand, when the gate is closed, transmission in the queue is not permitted. In other words, such gate control information makes it possible to control so that frames are allowed to pass when the queue gate is open, and frames are not allowed to pass when the queue gate is closed.
[0064] The time interval indicates the time that the gate control corresponding to the entry continues. For example, in the example of Figure 6, the time interval included in the entry "T00" is set to 1000 ns. In this case, the gate control corresponding to the entry "T00" (the gate state corresponding to the queues "Q0" to "Q7") continues for 1000 ns.
[0065] According to the gate control information shown in Fig. 6, the entry is switched to the next entry according to the time interval included in each entry. For example, when the time interval included in entry "T00" has elapsed, entry "T00" is switched to entry "T01". When the entries are switched in this way, the gate states of queues "Q0" to "Q7" are also switched in the same way.
[0066] Specifically, during the time interval included in entry "T00", queues "Q0" to "Q6" are closed, and queue "Q7" is open. When entry "T00" is switched to entry "T01", queues "Q3" to "Q7" are closed, and queues "Q0" to "Q2" are open, during the time interval included in entry "T01". The same applies to entries "T02" and onwards.
[0067] When the cycle time of 10,000 ns has elapsed, one period of gate control is completed and the process returns to the first entry (entry "T00" in the example of FIG. 6) and the gate control is repeated.
[0068] The above-mentioned gate control information is an example of operation control information in which the operation of the communication forwarding device 3 is defined.
[0069] Here, in order to make the processing of the entire control system 1 more efficient, it is desirable for the communication transfer device 3 to operate with reference to a global time that is synchronized throughout the entire control system 1. For this reason, for example, the start timing of gate control corresponding to entry "T00" is specified by the global time. The start time of gate control corresponding to entry "T00" is controlled by a start reference time called base time and a periodic operation time for repeating one period of gate control called cycle time. Specifically, gate control corresponding to entry "T00" starts when the global time coincides with "base time + (n x cycle time)". n is an integer equal to or greater than 1.
[0070] On the other hand, since switching processes with reference to global time as described above involves a large overhead, processes other than the start of gate control corresponding to entry "T00" (i.e., gate control corresponding to entry "T01") are performed based on local time (e.g., Ethernet transmission clock). The Ethernet transmission clock differs depending on the link speed; for example, when the link speed is 1 Gbps, the transmission clock is 125 MHz, and when the link speed is 10 Gbps, the transmission clock is 156.25 MHz. The global time may be based on a different clock (frequency), for example, 200 MHz.
[0071] As described above, the communication control unit 302 included in the communication transfer device 3 in the comparative example of this embodiment can control the operation (frame transmission or reception processing) of the communication transfer device 3 based on the global time, local time, and gate control information (operation control information).
[0072] Next, the operation control information that defines the operation of the information processing device 4 will be described with reference to FIG.
[0073] Here, a case will be described in which a plurality of virtual machines that perform information processing are executed by a virtual machine monitor, also called virtualization software or hypervisor, in the information processing device 4, and the execution of each of the plurality of virtual machines is scheduled based on scheduling information. Note that the scheduling information is information indicating a schedule for a processor (e.g., the processing execution unit 404 realized by a CPU core) included in the information processing device 4 to execute processing on a virtual machine basis.
[0074] An example of the scheduling information is shown in Fig. 7. There are various methods for scheduling, but here, it is assumed that the ARINC 653 scheduling method is used.
[0075] The ARINC 653 scheduling scheme uses major and minor time frames, with the major time frame having a structure that contains at least one minor time frame.
[0076] In the example shown in Fig. 7, a major time frame with a length of 9 ms is defined, and the execution of three virtual machines 1 to 3 is defined as a minor time frame. In Fig. 7, the hatched parts indicate the time when each virtual machine (processing) is executed.
[0077] 7 shows an example in which 1 ms is allocated to each minor time frame for convenience, but in a major time frame, the time allocated to a minor time frame (the execution time of the minor time frame) can be freely specified as an offset from the start timing of the major time frame. In the following explanation, the division of the execution time of a minor time frame (i.e., the length of a minor time frame) is called a time slot.
[0078] According to such scheduling information, a major time frame consisting of time slots "0" to "8" is regarded as one cycle, and scheduling can be repeated to execute virtual machines 1 to 3 in each time slot (minor time frame).
[0079] The above-mentioned scheduling information is an example of operation control information that prescribes the operation of the information processing device 4.
[0080] Here, in order to make processing efficient throughout the control system 1, it is desirable for the information processing device 4 to operate with reference to a global time that is synchronized throughout the control system 1. For this reason, the start timing of the major timeframe is specified by the global time.
[0081] On the other hand, because switching processes by referring to global time as described above incurs a large overhead, processes other than the start of a major timeframe are switched using local time (for example, a timestamp counter, which is the local time of the CPU).
[0082] In other words, the virtual machine monitor aligns the start timing of the major timeframe with global time, and executes the virtual machine defined in the minor timeframe after the start of the major timeframe based on local time.
[0083] As described above, the scheduling unit 403 included in the information processing device 4 in the comparative example of this embodiment can control the operation of the information processing device 4 (execution of each virtual machine) based on the global time, the local time, and scheduling information (operation control information).
[0084] It is assumed that the scheduling information is provided to each of the process execution units (process execution units realized by each core of the CPU) 404 included in the information processing device 4.
[0085] 7, the scheduling information is explained conceptually, but the scheduling information includes the start time of the major timeframe specified by the global time, the length of the major timeframe, the start offset of each minor timeframe (offset from the start position of the major timeframe), the length of the minor frame (length of the time slot), and the correspondence of the virtual machines whose execution is defined in each minor timeframe. Note that, as shown in FIG. 7, the minor timeframe may define, for example, an idle state in which the virtual machine waits for execution.
[0086] Here, gate control information has been described as operation control information that defines the operation of the communication transfer device 3, and scheduling information has been described as operation control information that defines the operation of the information processing device 4, but it can be said that the operation control information in this embodiment defines periodic operations and control operations.
[0087] A periodic operation is an operation (processing) for one cycle that is performed based on operation control information. The periodic operation in the communication forwarding device 3 is, for example, an operation that performs gate control corresponding to all entries included in the gate control information shown in Fig. 6, and corresponds to an operation performed in a cycle time. Moreover, the periodic operation in the information processing device 4 is, for example, an operation that executes virtual machines defined in all minor time frames in the scheduling information shown in Fig. 7, and corresponds to an operation performed during a period of time with the length of a major time frame.
[0088] A control operation is an operation (processing) performed with reference to local time during periodic operation. A control operation in the communication forwarding device 3 is, for example, an operation of performing gate control corresponding to one entry included in the gate control information shown in Fig. 6, and corresponds to an operation performed during the time interval included in the entry. A control operation in the information processing device 4 is, for example, an operation of executing a virtual machine defined in one minor time frame in the scheduling information shown in Fig. 7, and corresponds to an operation performed during the time assigned to the minor time frame (during the time interval of the time slot).
[0089] The operation control information includes a periodic operation time and a control operation time. The periodic operation time is the time during which the above-mentioned periodic operation is performed, and corresponds to the cycle time included in the gate control information and the length of the major time frame included in the scheduling information. The control operation time is the time allocated to the above-mentioned control operation, and corresponds to the time interval included in each entry in the gate control information and the time interval of each time slot included in the scheduling information (the time allocated to the minor frame).
[0090] Incidentally, the communication transfer device 3 and information processing device 4 in the comparative example of this embodiment have been described as operating with reference to both global time and local time, but such a communication transfer device 3 and information processing device 4 may not be able to operate properly (i.e., their operation may fail) if there is a difference in the rate at which global time and local time progress.
[0091] For this reason, in this embodiment, a control system 1 is provided that operates without discrepancies even when there is a difference in the progression of global time and local time referenced in control devices such as a communication transfer device 3 and an information processing device 4.
[0092] The following describes the communication forwarding devices (first communication forwarding device 3a and second communication forwarding device 3b), information processing devices (first information processing device 4a and second information processing device 4b) and orchestration device 5 provided in the control system 1 according to this embodiment. Note that the grandmaster device 2 provided in the control system 1 according to this embodiment is as described in the comparative example of this embodiment above, and therefore a detailed description thereof will be omitted here.
[0093] Fig. 8 shows an example of the functional configuration of a communication transfer device (communication control device) in this embodiment. In Fig. 8, the same parts as those in Fig. 3 above are given the same reference numerals, and detailed explanations thereof will be omitted. Here, the parts different from Fig. 3 will be mainly explained.
[0094] As shown in FIG. 8, the communication forwarding device 3 includes a difference calculation section 308, a time difference information generation section 309, a notification determination section 310, and a time difference information transmission section 311, in addition to the sections 301 to 307 described in FIG.
[0095] The difference calculation unit 308 calculates the difference of the global time based on the global time managed by the global time management unit 305. The difference calculation unit 308 also calculates the difference of the local time based on the local time generated by the local time generation unit 306.
[0096] The time difference information generating unit 309 generates time difference information indicating the time difference based on the global time difference and the local time difference calculated by the difference calculating unit 308 .
[0097] The notification determination unit 310 determines whether or not to notify the time difference information based on the time difference information generated by the time difference information generation unit 309. The notification determination unit 310 executes a process of determining whether or not the time difference indicated by the time difference information satisfies a predetermined condition.
[0098] The time difference information sending unit 311 sends out the time difference information when the notification determining unit 310 determines that the time difference information should be notified. The time difference information sent out by the time difference information sending unit 311 is transmitted (notified) to the orchestration device 5 via the communication forwarding unit 303, the communication control unit 302 and the communication unit 301.
[0099] In addition, some or all of the units 308 to 311 shown in Figure 8 may be realized by the computer of the communication forwarding device 3 executing a predetermined program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0100] Fig. 9 shows an example of the functional configuration of an information processing device (arithmetic and control device) in this embodiment. In Fig. 9, the same parts as those in Fig. 4 above are given the same reference numerals, and detailed explanations thereof will be omitted. Here, the parts different from Fig. 4 will be mainly explained.
[0101] 9, the information processing device 4 includes a difference calculation section 409, a time difference information generation section 410, a notification determination section 411 and a time difference information transmission section 412 in addition to the sections 401 to 408 described in FIG.
[0102] In addition, the difference calculation unit 409, the time error information generation unit 410, the notification determination unit 411 and the time error information sending unit 412 included in the information processing device 4 are functional units similar to the difference calculation unit 308, the time error information generation unit 309, the notification determination unit 310 and the time error information sending unit 311 included in the above-mentioned communication transfer device 3.
[0103] That is, the difference calculation unit 409 calculates the difference of the global time based on the global time managed by the global time management unit 406. The difference calculation unit 409 also calculates the difference of the local time based on the local time generated by the local time generation unit 407.
[0104] The time difference information generating unit 410 generates time difference information indicating the time difference based on the global time difference and the local time difference calculated by the difference calculating unit 409 .
[0105] The notification determination unit 411 determines whether or not to notify the time difference information based on the time difference information generated by the time difference information generation unit 410. The notification determination unit 411 executes a process of determining whether or not the time difference indicated by the time difference information satisfies a predetermined condition.
[0106] The time difference information sending unit 412 sends out the time difference information when the notification determining unit 411 determines that the time difference information should be notified. The time difference information sent out by the time difference information sending unit 412 is transmitted (notified) to the orchestration device 5 via the communication control unit 402 and the communication unit 401.
[0107] In addition, some or all of the units 409 to 412 shown in FIG. 9 may be realized by the computer of the information processing device 4 executing a predetermined program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0108] Fig. 10 shows an example of the functional configuration of the orchestration device 5 (operation control device) in this embodiment. In Fig. 10, the same parts as those in Fig. 5 are given the same reference numerals, and detailed explanations thereof will be omitted. Here, the parts different from Fig. 5 will be mainly explained.
[0109] As shown in FIG. 10, the orchestration device 5 includes a time difference information acquisition unit 504 and an operation control information correction unit 505 in addition to the units 501 to 503 described in FIG.
[0110] The time difference information acquiring unit 504 acquires the time difference information transmitted (notified) from the communication forwarding device 3 as described above via the communication unit 503. The time difference information acquiring unit 504 also acquires the time difference information transmitted (notified) from the information processing device 4 as described above via the communication unit 503.
[0111] The operation control information correction unit 505 corrects the operation control information set for the communication transfer device 3 and the information processing device 4 based on the time difference information acquired by the time difference information acquisition unit 504 .
[0112] In addition, some or all of the units 504 and 505 shown in Figure 10 may be realized by the computer of the orchestration device 5 executing a specified program (i.e., software), or may be realized by hardware, or may be realized by a combination of software and hardware.
[0113] The operation of the control system 1 according to this embodiment will be described below. Here, the process of notifying the time difference information (hereinafter referred to as the time difference information notifying process) and the process of correcting the operation control information (hereinafter referred to as the operation control information correcting process) will be described.
[0114] First, an example of the procedure of the time difference information notification process will be described with reference to the flowchart of Fig. 11. The time difference information notification process is executed by the communication transfer device 3 and the information processing device 4.
[0115] In this embodiment, the time error information notification process is executed periodically, for example. Specifically, the time error information notification process may be executed as a timer process, for example. The timer process is executed every time a certain period of time is measured in local time, for example, once per second. When the time error information notification process is executed in the communication transfer device 3, the time error information notification process may be executed when a counter value reaches a certain threshold value in a circuit that operates on a local clock. When the time error information notification process is executed in the information processing device 4, the time error information notification process may be executed based on a timer function installed in a CPU, for example.
[0116] The time difference information notification process may also be executed in accordance with the periodic operation described above. In this case, the time difference information notification process in the communication transfer device 3 may be executed, for example, at the start timing of gate control corresponding to the first entry included in the gate control information (or the end timing of gate control of the last entry). Specifically, if the cycle time in the gate control information is 30 ms, the time difference information notification process can be executed every time the start timing of gate control corresponding to the first entry included in the gate control information is detected in a cycle of 30 ms based on the global time.
[0117] Furthermore, the time error information notification process in the information processing device 4 can be executed at the start timing of a major timeframe in the scheduling information (or the end timing of the major timeframe). Specifically, if the length of the major timeframe in the scheduling information is 30 ms, the time error information notification process can be executed every time the start timing of the major timeframe is detected in a cycle of 30 ms based on the global time.
[0118] The timing (processing start time) at which the time difference information notification process is executed may be instructed by, for example, the orchestration device 5 (or may be set in the operation control information generated by the orchestration device 5). The time difference information notification process may also be executed in response to, for example, an initialization process in the control system 1.
[0119] For the sake of convenience, the following description will be given assuming that the time difference information notification process is executed in the communication transfer device 3, but the time difference information notification process executed in the information processing device 4 is similar.
[0120] First, the difference calculation unit 308 included in the communication transfer device 3 acquires the global time managed in the global time management unit 305 from the global time management unit 305, and calculates the global time difference (step S1).
[0121] Next, the difference calculation unit 308 acquires the local time generated by the local time generation unit 306 from the local time generation unit 306, and calculates the local time difference (step S2).
[0122] The above-mentioned steps S1 and S2 (i.e., the operation of the difference calculation unit 308) will now be described with reference to Fig. 12. In this embodiment, the global time is obtained from the global time management unit 305 every time the time difference information notification process is executed, and the difference calculation unit 308 is configured to store past global times (for example, the global time obtained when the immediately previous time difference information notification process was executed) in the global time storage unit 308a.
[0123] According to this, in step S1 described above, the difference calculation unit 308 can calculate (measure) the difference (hereinafter referred to as global time increment) between the current global time (present global time) acquired from the global time management unit 305 and the past global time (previous global time) stored in the global time storage unit 308a. Note that this global time increment corresponds to the elapsed time from the previous global time to the present global time.
[0124] When the processing of step S1 is executed, the difference calculation unit 308 outputs the calculated global time increment value and also stores (overwrites) the current global time in the global time memory unit 308a so that the current global time can be used as the previous global time in the next time error information notification processing.
[0125] Similarly, in this embodiment, the local time is obtained from the local time generation unit 306 each time the time error information notification process is executed, but the difference calculation unit 308 is configured to store past local times (for example, the local time obtained when the previous time error information notification process was executed) in the local time memory unit 308b.
[0126] According to this, in step S2 described above, the difference calculation unit 308 can calculate (measure) the difference (hereinafter referred to as the local time increment) between the current local time (this local time) acquired from the local time generation unit 306 and the past local time (the previous local time) stored in the local time storage unit 308b. Note that this local time increment corresponds to the elapsed time from the previous local time to the current local time.
[0127] When the processing of step S2 is executed, the difference calculation unit 308 outputs the calculated local time increment value and stores (overwrites) the current local time in the local time memory unit 308b so that the current local time can be used as the previous local time in the next time error information notification processing.
[0128] 13 conceptually illustrates the global time increment value and the local time increment value measured according to, for example, a periodic operation. In this embodiment, for example, the communication transfer device 3 operates with reference to the global time and the local time (i.e., operates based on a time based on the global time and a time based on the local time), but the periodic operation (for example, the gate control corresponding to the first entry included in the gate control information) is started based on the global time.
[0129] In this embodiment, for example, each time a periodic operation is started (that is, for each periodic operation), the global time increment value and the local time increment value corresponding to the periodic operation time are measured.
[0130] In FIG. 13, it is assumed that the time error information notification process is executed in accordance with periodic operation, but it is also possible to measure the global time increment value and the local time increment value in the same way when the time error information notification process is executed as a timer process that is executed each time a certain period of time is measured.
[0131] It is preferable that the global time and the local time are acquired (read) simultaneously in the above steps S1 and S2. For this reason, it is assumed that a hardware configuration capable of acquiring the global time and the local time simultaneously is realized in the communication transfer device 3. On the other hand, if it is difficult to realize such a hardware configuration (i.e., to acquire the global time and the local time simultaneously), the global time and the local time are acquired continuously and without discrepancy to the extent possible by CPU processing, etc.
[0132] 11, the time error information generation unit 309 generates time error information based on the global time increment value and the local time increment value output from the difference calculation unit 308 (step S3). The time error information generated in step S3 has a data structure that includes, for example, a global time increment value and a local time increment value in association with each other as a pair.
[0133] The global time increment value and the local time increment value contained in the time error information are expressed in the same unit, for example, nanoseconds.
[0134] In addition, the time error information may include not only one set of global time increment values and local time increment values, but multiple sets of global time increment values and local time increment values (i.e., a history of global time increment values and local time increment values).
[0135] Furthermore, the time error information may include statistical information on the global time increment and the local time increment for a predetermined period (hereinafter referred to as the measurement period) obtained by tallying multiple samples of the global time increment and the local time increment measured each time the time error information notification process is executed. In this case, the statistical information on the global time increment includes, for example, at least one of the maximum value, minimum value, average value, and standard deviation of the global time increment during the measurement period. Similarly, the statistical information on the local time increment includes, for example, at least one of the maximum value, minimum value, average value, and standard deviation of the local time increment during the measurement period.
[0136] The time error information may also include the measurement period described above. This measurement period may be represented, for example, by the frequency (or cycle) of the clock that generates the local time and the counter value. For example, in the case of 125 MHz and 100 counters, the measurement period can be represented by the frequency of 125 MHz and the counter value of 100. The measurement period may also be calculated from the clock frequency and the counter value, such as 8 ns x 100 = 800 ns.
[0137] Furthermore, for example, when the communication control unit 302 included in the communication forwarding device 3 uses a different clock for each communication unit 301 (i.e., there are multiple local times in the communication forwarding device 3), time error information may be generated for each local time. Also, when communication control is performed using multiple clocks (clock sources) in this way, the time error information may include information on the clock sources.
[0138] Here, we have explained the communication transfer device 3, but if the processing execution unit 404 realized by each core of the CPU in the information processing device 4 operates at a different local time for each core, time error information may be generated for each core (i.e., local time).
[0139] When the process of step S3 is executed, the notification determination unit 310 determines, based on the time difference information generated in step S3, whether or not to notify the time difference information to the orchestration device 5 (step S4).
[0140] Here, the process of step S4 is executed based on a prepared notification condition (for example, a notification condition stored in advance in the notification determination unit 310). The notification condition includes, for example, that the difference between the global time increment value and the local time increment value included in the time error information is equal to or greater than a predetermined value (a certain threshold value). Note that the difference between the global time increment value and the local time increment value being equal to or greater than a predetermined value means that a predetermined error (deviation) has occurred in the way the global time and the local time progress.
[0141] The above notification conditions are merely examples, and other notification conditions may be applied in step S4. For example, by setting a range (upper and lower limits) within which notification is not performed for the value obtained by dividing the global time increment value by the local time increment value, the notification condition may be that the value obtained by dividing the global time increment value included in the time error information by the local time increment value does not fall within the set range. The upper and lower limits in this notification condition may be determined based on the statistical information of the global time increment value and the statistical information of the local time increment value described above.
[0142] The notification condition may also be a condition related to the frequency of notification. Specifically, the notification condition may be, for example, that the time error information notification process has been executed a predetermined number of times. In this case, the time error information may be generated only when the notification condition is satisfied (i.e., the time error information notification process has been executed a predetermined number of times).
[0143] Although multiple notification conditions have been described here, the notification condition used in step S4 may be one of the multiple notification conditions, or a combination of two or more of the multiple notification conditions.
[0144] If it is determined that the time difference information should be notified (i.e., the time difference information satisfies the notification condition) (YES in step S4), the time difference information generated in step S3 is notified to the orchestration device 5 (step S5). In this case, the time difference information is sent from the time difference information sending unit 311 to the communication control unit 302. The communication control unit 302 determines the communication unit 301 corresponding to the communication port connected to the orchestration device 5 or another communication transfer device 3 connected to the orchestration device 5, and transmits the time difference information via the determined communication unit 301.
[0145] On the other hand, if it is determined that the time difference information should not be notified (that is, the time difference information does not satisfy the notification condition) (NO in step S4), the process in step S5 is not executed.
[0146] It should be noted that, for example, in the case where local times are generated for each of a plurality of clocks in the communication transfer device 3, the time error information notification process is executed for each of the local times.
[0147] Next, an example of a processing procedure for the operation control information correction processing will be described with reference to the flowchart of FIG.
[0148] In addition, in Figure 14, it is assumed that operation control information (e.g., gate control information) that specifies the operation of the communication forwarding device 3 and operation control information (e.g., scheduling information) that specifies the operation of the information processing device 4 have already been set in the orchestration device 5.
[0149] Here, it is assumed that the time difference information is transmitted (notified) from the communication transfer device 3 or the information processing device 4 by executing the time difference information notification process shown in Fig. 11. In this case, the communication unit 503 included in the orchestration device 5 receives the time difference information. The time difference information acquisition unit 504 acquires the time difference information thus received by the communication unit 503 (step S11).
[0150] When the process of step S11 is executed, the operation control information correction unit 505 determines whether or not to correct (change) the already set operation control information based on the time difference information acquired in step S11 (step S12).
[0151] Here, the process of step S12 is executed based on a prepared correction condition (for example, a correction condition stored in advance in the operation control information correction unit 505). The correction condition may be the same as the notification condition described above, or may be a condition that is at least partially different from the notification condition. Furthermore, since the time error information is notified (received by the orchestration device 5) when the notification condition is satisfied, if the correction condition is the same as the notification condition, the time error information is regarded as satisfying the correction condition, and the process of step S12 may be omitted.
[0152] If it is determined that the operation control information should be corrected (i.e., the time difference information satisfies the correction condition) (YES in step S12), the operation control information correction unit 505 corrects the operation control information (step S13). Note that if the time difference information is notified from the communication transfer device 3, the gate control information set for the communication transfer device 3 (communication control unit 302) is corrected in step S13. On the other hand, if the time difference information is notified from the information processing device 4, the scheduling information set for the information processing device 4 (scheduling unit 403) is corrected in step S13.
[0153] Next, the operation control information setting unit 502 sets the operation control information corrected in step S13 (step S14).
[0154] Specifically, when the gate control information is corrected based on the time error information notified from the communication transfer device 3, the corrected gate control information is set for the communication transfer device 3 as operation control information that specifies the operation of the communication transfer device 3, and is transmitted to the communication transfer device 3 via the communication unit 503. According to this, the gate control information transmitted from the orchestration device 5 (the corrected gate control information) is stored (set) in the operation control information storage unit 307 of the communication transfer device 3, and the operation of the communication transfer device 3 is controlled based on the gate control information.
[0155] On the other hand, when the scheduling information is corrected based on the time error information notified from the information processing device 4, the corrected scheduling information is set for the information processing device 4 as operation control information that specifies the operation of the information processing device 4, and is transmitted to the information processing device 4 via the communication unit 503. According to this, the scheduling information transmitted from the orchestration device 5 (the corrected scheduling information) is stored (set) in the operation control information storage unit 408 of the information processing device 4, and the operation of the information processing device 4 is controlled based on the scheduling information.
[0156] Furthermore, as described above, when time error information for each local time is notified from the communication transfer device 3 or the information processing device 4, for example, the operation control information that specifies the operation to be performed with reference to the local time is modified based on the time error information notified for each local time.
[0157] If it is determined in step S12 that the action control information is not to be corrected, the processes in steps S13 and S14 are not executed, and the action control information correction process is terminated.
[0158] The process of step S13 (modification process of the operation control information) shown in Fig. 14 will be described below. As described above, the operation control information to be modified in this embodiment includes gate control information and scheduling information, but the gate control information and the scheduling information have in common that a periodic operation is started according to global time (i.e., the start time of the periodic operation is determined by global time) and that an operation after the periodic operation is started (i.e., a control operation performed during the periodic operation) is performed according to local time.
[0159] Here, when operation is controlled based on such operation control information (gate control information and scheduling information), if there is a discrepancy between the progress of global time and local time (for example, if there is a difference between the global time increment value and the local time increment value that is greater than or equal to a threshold value), it is necessary to correct (change) the operation control information.
[0160] Specifically, when the local time progresses later (slower) than the global time, the control operation is not completed to the end, and the control operation transitions to the next periodic operation in the middle of the control operation.
[0161] For example, in the gate control information shown in Fig. 6, gate control corresponding to entry "T00" is started based on the global time, and gate control corresponding to entries "T01" to "T03" is performed with reference to the local time. However, if the local time progresses slower than the global time, gate control of the next entry "T00" will be started based on the global time before gate control corresponding to entry "T03" is completed.
[0162] Here, the gate control information shown in FIG. 6 has been used for the explanation, but similarly, with the scheduling information shown in FIG. 7, if the local time progresses slower than the global time, the next major timeframe will start based on the global time before the execution of the virtual machine in time slot “8” is completed.
[0163] On the other hand, when the local time advances faster than the global time, each control operation (operation performed with reference to the local time) is completed early.
[0164] In this case, for example, in the gate control information shown in Fig. 6, it becomes impossible to secure the time interval for opening each queue that was originally expected in each entry. Also, for example, in the scheduling information shown in Fig. 7, it becomes impossible to secure the execution time of each virtual machine that was originally expected.
[0165] As described above, when a discrepancy occurs between the progress of the global time and the local time, the communication transfer device 3 and the information processing device 4 do not operate appropriately, so the operation control information is corrected based on the time error information. Below, three patterns of processing (hereinafter referred to as first to third processing) will be described as examples of processing for correcting the operation control information.
[0166] First, the first process will be described. The first process corresponds to a process in which the periodic operation time remains constant and the control operation time is multiplied by a constant. Note that the first process assumes that no significant error occurs in the global time.
[0167] Specifically, in the first process, each control operation time is multiplied by a constant determined based on the global time increment value and the local time increment value measured according to the periodic operation (i.e., each control operation time is multiplied by a constant). This makes it possible to align the timing of operations performed with reference to the local time with the progression of the global time.
[0168] In addition, if the constant by which each control action time is multiplied in the first process is n, the constant n is, for example, the ratio between the global time increment value and the local time increment value, and is calculated by the following formula (1). n = local time increment / global time increment Equation (1)
[0169] For example, if the global time increment is 10 microseconds and the local time increment is 10.08 microseconds, then the constant n is 10.08 / 10=1.008.
[0170] By multiplying the constant n calculated in this manner by each control operation time during a periodic operation, the operation control information can be modified so that the start and end of operations performed with reference to local time are aligned with global time.
[0171] Here, Fig. 15 shows an example of gate control information corrected by executing the first process. Fig. 15 shows gate control information corrected by multiplying the time interval included in each entry in the gate control information shown in Fig. 6 by 1.008 as the constant n, so that the start and end timings of the gate control corresponding to each entry are adjusted to match the progression of global time.
[0172] 15 shows that the time interval included in entry "T00" is corrected from 1000 ns to 1008 ns, the time interval included in entry "T01" is corrected from 1000 ns to 1008 ns, the time interval included in entry "T02" is corrected from 4000 ns to 4032 ns, and the time interval included in entry "T03" is corrected from 4000 ns to 4032 ns. Note that in the first process, the cycle time counted in global time is not corrected.
[0173] Here we have explained the case where gate control information is modified, but when scheduling information is modified, the time interval of each time slot (the time allocated to each minor frame) is modified from 1 ms to 1.008 ms, as shown in Figure 16.
[0174] The above-mentioned Figures 15 and 16 assume that the local time is faster than the global time, but the operation control information (control operation time) can also be modified in the same way when the local time is slower than the global time.
[0175] When the first process is executed, the control operation time (start and end timing of the operation performed with reference to the local time) is corrected, but the control operation time may be further corrected according to the timing of the operation of the circuit, etc. Specifically, for example, since a circuit operating at 125 MHz operates in units of 8 ns, if the control operation time corrected as described above (for example, the time interval included in each entry in the gate control information and the time interval of the time slot in the scheduling information) is not a multiple of 8 ns, the control operation time may be rounded to a value that is a multiple of 8 ns.
[0176] The constant n may be the minimum or maximum value of a ratio calculated based on multiple samples (global time increment and local time increment). When the local time advances faster than the global time, the minimum value of the ratio may be used as the constant n, and when the local time advances slower than the global time, the maximum value of the ratio may be used as the constant n.
[0177] Next, the second process will be described. The second process corresponds to a process for changing the periodic operation time. Note that the second process assumes a case where an error occurs in the global time and the local time. That is, according to the second process, it is possible to deal with the case where either the global time or the local time is out of sync by, for example, lengthening the periodic operation time.
[0178] Specifically, in the second process, the length of time for which the cyclic operation time is extended is set to time t2, and this time t2 is calculated by the following formula (2). t2 ≧ abs(global time increment value - local time increment value) Equation (2)
[0179] In addition, abs in formula (2) is a function that returns an absolute value. In other words, time t2 corresponds to the absolute value of the difference between the global time increment and the local time increment measured according to the periodic operation. Time t2 may be the maximum value of the absolute value of the difference between the global time increment and the local time increment calculated from multiple samples (global time increment and local time increment).
[0180] In the second process, when the time t2 is calculated by the above formula (2), a control action having a control action time of t2×2 is added to the end of the periodic action, and the time t2 is added to the periodic action time.
[0181] Here, Fig. 17 shows an example of gate control information corrected by executing the second process. According to the gate control information shown in Fig. 17, an entry "T04" in which only the queue "Q0" is open and the time interval is t2 x 2 is added to the end of the multiple entries (i.e., periodic operations) included in the gate control information shown in Fig. 6. Also, in the gate control information shown in Fig. 17, the cycle time is corrected from 10000 ns to 10000 ns + t2.
[0182] According to the gate control information corrected by executing such a second process, by adding the time t2 to the cycle time, it is possible to prevent the next periodic operation from being started before the time interval included in, for example, the last entry (entry "T03" in the case of the gate control information shown in Figure 6) has elapsed (before the gate control corresponding to that entry has been completed), even if the local time advances more slowly than the global time.
[0183] Furthermore, when the local time advances faster than the global time, for example, even if the gate control corresponding to the last entry ends, the next periodic operation (the gate control corresponding to the entry "T00") is not started, so the gate control corresponding to the last entry (the gate control corresponding to the entry "T03" in the case of the gate control information shown in FIG. 6) continues to be executed. However, according to the gate control information corrected by executing the second process, the entry "T04" including 2×2t as a time interval is added to the end of the periodic operation, so that it is possible to prevent only a specific gate control (for example, the gate control corresponding to the entry "T03") from being executed for an inappropriately long time compared to other gate controls. Note that the gate control corresponding to the entry added to the end of the periodic operation (i.e., the opening or closing of each queue) may be set as appropriate, but in the example shown in FIG. 17, the gate control for opening the best-effort queue "Q0" is set.
[0184] Moreover, Fig. 18 shows an example of the scheduling information corrected by executing the second process. According to the scheduling information shown in Fig. 18, an idle (state) is defined at the end of the multiple time slots (i.e., periodic operations) in the scheduling information shown in Fig. 7, and a time slot with a time interval of t2 x 2 is added. In addition, in the scheduling information shown in Fig. 18, the length of the major time frame is corrected from 9 ms to 9 ms + t2.
[0185] According to the scheduling information corrected by executing such a second process, t2 is added to the length of the major timeframe, making it possible to prevent the next periodic operation from starting before the execution of the last virtual machine (execution of virtual machine 3 in the case of the scheduling information shown in Figure 7) is completed, even if the local time advances slower than the global time.
[0186] Furthermore, if the local time is faster than the global time, for example, the next periodic operation (major timeframe) will not start even when the execution of a virtual machine in the last timeslot ends, so the execution of the virtual machine in that last timeslot (the execution of virtual machine 3 in timeslot "8" of the scheduling information shown in Figure 7) will continue. However, according to the scheduling information corrected by executing the second process, a timeslot with a time interval of t2 x 2 is added to the end of the periodic operation, which makes it possible to prevent only a specific virtual machine (for example, virtual machine 3) from running for an inappropriately long time compared to other virtual machines.
[0187] In the second process, a control action with a control action time of t2×2 is added taking into account the difference in the progression of global time and local time, but the control action time need only be at least the time t2 or more.
[0188] Incidentally, in the case of gate control information, an entry (gate control) including a time interval t1 may be further added to the beginning of the periodic operation as shown in Fig. 19. The time interval t1 is calculated by the following formula (3). t1≧8×(F+M) / L Equation (3)
[0189] In the above formula (3), F indicates the maximum frame length (number of bytes), M indicates the number of bytes of media-dependent overhead, and L indicates the link speed (bit / s). Note that media-dependent overhead is overhead that depends on the communication media, and in the case of Ethernet, it includes IFG (Inter Frame Gap), preamble, and SFD (Start of Frame Delimiter), etc. Note that the number of bytes of FCS (Frame Check Sequence) may be added to M for convenience.
[0190] In other words, the time interval t1 in equation (1) means a value equal to or greater than the time it takes for one frame (maximum size) to pass through the gate.
[0191] Here, for example, assume that the local time is slower than the global time when the operation (periodic operation and control operation) of the communication transfer device 3 is controlled based on the gate control information shown in Fig. 17. In this case, since the cycle time is 10000 ns+t2 in the gate control information shown in Fig. 17 and the entry "T04" is added to the end of the periodic operation, the gate control information can complete the gate control corresponding to the entry "T03" that is originally at the end.
[0192] In this case, however, gate control corresponding to the entry "T04" next to entry "T03" is started, but there is a high possibility that the gate control will be interrupted by the start of the next periodic operation. If there is a frame being transmitted in the gate control corresponding to the interrupted entry "T04" in this way, the transmission of the frame needs to be completed even when the next periodic operation is started, which affects the frame transmission operation of the high-priority queue Q7 in the entry located at the beginning of the periodic operation (entry "T00" in the case of the gate control information shown in FIG. 17).
[0193] In contrast, according to the gate control information in which an entry including time interval t1 is added to the beginning as shown in FIG. 19, even if there is a frame being transmitted in the gate control corresponding to the last entry of the interrupted periodic operation when the local time is slower than the global time as described above, the transmission of the frame can be completed within the time interval included in the added entry (entry "T00" in the gate control information shown in FIG. 19), so there is no impact on the gate control corresponding to the higher priority queue Q7 (entry "T01" in the gate control information shown in FIG. 19).
[0194] In addition, since the periodic operation time (processing execution period) is changed in the second process described above, when multiple devices, such as the communication transfer device 3 and the information processing device 4, are operating in sync with each other, it is not possible to change only the operation control information for that device alone, but it is necessary to change the operation control information for the entire control system 1.
[0195] In this case, for example, the maximum value of the time t2 calculated based on the time error information notified from each of the communication transfer device 3 and the information processing device 4 may be adopted, and the operation control information (gate control information and scheduling information) set for the communication transfer device 3 and the information processing device 4 may be modified (changed) using the maximum value.
[0196] Next, the third process will be described. In the above-mentioned second process, the operation control information is modified by changing the periodic operation time (adding time t2 to the periodic operation time), but if the modified operation control information cannot satisfy the constraints (such as the maximum delay specified by an application or a user) in each control operation (operation performed with reference to local time), the operation control information must be regenerated (reconstructed) rather than modified. In other words, the third process corresponds to a process of generating new operation control information.
[0197] First, in the third process, in order to estimate the time required for each control operation, the constant n explained in the first process is calculated, and the constant m is further calculated by the following equation (4). m=max(n,1 / n) Equation (4)
[0198] In the above formula (4), max is a function that returns the maximum value of the given arguments. That is, according to formula (4), the constant m is the larger of n and 1 / n. That is, for example, when the local time is faster than the global time, the constant m is n. On the other hand, when the local time is slower than the global time, the constant m is 1 / n.
[0199] The constant m may be calculated as the minimum or maximum value of a ratio calculated based on multiple samples (global time increment value and local time increment value).
[0200] Next, in the third process, new operation control information is generated using the value (the execution time required for each process) obtained by multiplying the constant m by each control operation time in the periodic operation (the control operation time included in the operation control information before correction).
[0201] In this case, as a simple example, operation control information may be generated that includes a periodic operation time (the length of the cycle time or major time frame) calculated by multiplying a constant m by a control operation time (for example, the time interval included in each entry in the gate control information or the time interval of a time slot in the scheduling information), and in the third process, operation control information that satisfies the above-mentioned predetermined constraint conditions is generated.
[0202] In the third process, since there is a possibility that the periodic operation time (processing execution period) may be changed, the operation control information is regenerated (changed) in the entire control system 1, similarly to the second process described above.
[0203] In this case, for example, the maximum value of the constants m calculated based on the time error information notified from each of the communication transfer device 3 and the information processing device 4 may be adopted, and the maximum value may be used to generate operation control information (gate control information and scheduling information) that is set for the communication transfer device 3 and the information processing device 4.
[0204] Furthermore, when the operation control information is regenerated as described in the third process, the operation control information correction unit 505 may be configured to instruct the operation control information generation unit 501 to regenerate the operation control information.
[0205] As described above, the first control device (communication forwarding device 3 or information processing device 4) in this embodiment manages the global time provided by, for example, the grandmaster device 2, generates a local time, controls the operation of the first control device based on the global time, the local time, and operation control information that specifies the operation of the first control device, and generates time error information indicating a time error based on the global time and the local time. Also, the second control device (orchestration device 5) in this embodiment acquires the time error information generated in the first control device, and corrects the operation control information based on the acquired time error information.
[0206] In this embodiment, with this configuration, by modifying the operation control information to allow for time errors in the first control device, whose operation is controlled by reference to both global time and local time, it is possible to achieve appropriate operation without discrepancies in the first control device even if there is an error in the way the global time and the local time progress.
[0207] Furthermore, in this embodiment, even in a situation where a time error occurs dynamically, it is possible to detect the error and correct the operation control information.
[0208] For example, when the first control device generates local times for each of a plurality of clocks (i.e., the operation of the first control device is controlled by referring to a plurality of local times), time error information is generated for each of the local times. With this configuration, it becomes possible to correct the operation control information that specifies the operation to be performed by referring to the local time in accordance with the deviation of each of the plurality of local times.
[0209] In this embodiment, the operation control information includes an operation time indicating the length of time for which the first control device performs an operation, and the operation time is changed based on the time error information described above. The operation time changed in this manner includes, for example, at least one of the time of one cycle of an operation performed with reference to the global time (periodic operation time) and the time of an operation performed with reference to the local time during the periodic operation time (control operation time). In other words, the operation time in this embodiment is intended to be a higher-level concept of periodic operation times such as the cycle time and the length of the major time frame described above, and control operation times such as the time interval of each entry of the gate control information and the time assigned to the minor time frame. The first process described in this embodiment corresponds to a process of changing (correcting) the control operation time, and the second process corresponds to a process of changing (correcting) the periodic operation time. The third process corresponds to a process of changing (correcting) at least one or both of the periodic operation time and the control operation time.
[0210] In addition, in this embodiment, the operation control information that specifies the operation of the communication forwarding device 3 is gate control information that sets the opening and closing of gates corresponding to each of the multiple queues, and the operation control information that specifies the operation of the information processing device 4 is scheduling information that indicates a schedule for each core (processor) of the CPU of the information processing device 4 to execute processing on a virtual machine basis. However, the gate control information and scheduling information are examples of operation control information, and the operation control information may be information used to control the operation of the first control device (communication forwarding device 3, information processing device 4, etc.).
[0211] Specifically, in this embodiment, schedule information indicating a schedule for executing processing on a virtual machine (OS running on the virtual machine) basis has been described as an example of operation control information, but the operation control information may also be information indicating a schedule for a processor provided in information processing device 4 to execute processing on a task, process or thread basis.
[0212] Furthermore, in this embodiment, when it is determined that the time error (global time increment value and local time increment value) indicated by the time error information satisfies the notification condition, the time error information is transmitted (notified) from the first control device to the second control device. In this embodiment, with such a configuration, the time error information is transmitted only when necessary, so that the amount of communication between the first control device and the second control device can be reduced.
[0213] In this embodiment, the operation control information generated in the second control device is transmitted from the second control device to the first control device, but a notification condition for determining whether or not to notify the above-mentioned time error information may be specified (set) in the second control device, and operation control information including the notification condition may be transmitted from the second control device to the first control device. With such a configuration, the notification of the time error information can be controlled on the second control device (orchestration device 5) side. Furthermore, the operation control information transmitted from the second control device may further include conditions related to a process for calculating the error of the time indicated by the time error information (i.e., a method of measuring the global time increment value and the local time increment value, etc.).
[0214] In addition, in the present embodiment, it has been described that the operation control information is corrected (changed) based on the time difference information notified from the first control device, but the second control device according to this embodiment may be configured to output identification information for identifying the first control device that has generated the time difference information that satisfies the same conditions as the notification conditions described above. The identification information thus output may be transmitted to an external device, or may be displayed on, for example, a display connected to the second control device.
[0215] Here, Fig. 20 shows an example of a screen on which the above-mentioned identification information is displayed. In the screen shown in Fig. 20, the identification information is displayed at a predetermined position on the screen. By referring to the screen shown in Fig. 20, the administrator of the control system 1 can understand that an error has occurred in the way the global time and the local time progress in the first control device identified by the identification information. As in the example shown in Fig. 20, the reason why the identification information is displayed (such as "Time error information exceeds a certain value" shown in Fig. 20) may also be displayed.
[0216] Also, for example, a configuration may be applied in which a screen as shown in Fig. 21 is generated based on the identification information output from the second control device, and the screen is displayed. The screen shown in Fig. 21 displays (the network configuration of) the control system 1 including, for example, the grandmaster device 2, the first communication forwarding device 3a, the second communication forwarding device 3b, the first information processing device 4a, and the second information processing device 4b, and also displays that the time error information satisfying the above-mentioned notification condition (for example, the difference between the global time increment value and the local time increment value is equal to or greater than a predetermined value) has been generated in the second information processing device 4b.
[0217] Note that the screen shown in FIG. 21 displays the global time increment value and the local time increment value contained in the time error information generated by the second information processing device 4b, but other information may also be displayed, such as the ratio between the global time increment value and the local time increment value, or statistical information on the global time increment value and the local time increment value.
[0218] By referring to the screen shown in Figure 21 described above, the administrator of the control system 1 can easily understand that an error has occurred in the way the global time and the local time progress in the second information processing device 4b, and can consider how to deal with the error.
[0219] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]
[0220] 1...control system, 2...grandmaster device, 3...communication transfer device (first control device), 3a...first communication transfer device, 3b...second communication transfer device, 4...information processing device (first control device), 4a...first information processing device, 4b...second information processing device, 5...orchestration device (second control device), 201...global time generation unit, 202...global time management unit, 203...global time synchronization unit, 204...communication unit, 301...communication unit, 302...communication control unit, 303...communication transfer unit, 304...global time synchronization unit, 305...global time management unit, 306...local time generation unit, 307...operation control information storage memory unit, 308...difference calculation unit, 309...time error information generation unit, 310...notification determination unit, 311...time error information transmission unit, 401...communication unit, 402...communication control unit, 403...scheduling unit, 404...processing execution unit, 405...global time synchronization unit, 406...global time management unit, 407...local time generation unit, 408...operation control information memory unit, 409...difference calculation unit, 410...time error information generation unit, 411...notification determination unit, 412...time error information transmission unit, 501...operation control information generation unit, 502...operation control information setting unit, 503...communication unit, 504...time error information acquisition unit, 505...operation control information correction unit.
Claims
1. A control system including first and second control devices communicatively connected via a network, The first control device is A management means for managing a global time; A first generating means for generating a local time; a control means for controlling an operation of the first control device based on the global time, the local time, and operation control information that defines the operation of the first control device; a second generating means for generating time error information indicating a time error based on the global time and the local time; Including, The second control device is an acquisition means for acquiring the generated time difference information from the first control device; a correction means for correcting the operation control information based on the acquired time error information; Includes Control system.
2. The first generation means generates a local time for each clock included in the first control device, The second generating means generates time difference information for each local time. The control system of claim 1 .
3. the operation control information includes an operation time indicating a length of time for the first control device to perform an operation, The correction means changes the operation time included in the operation control information based on the generated time difference information. The control system of claim 1 .
4. The control system of claim 3 , wherein the changed operation time includes at least one of a time for one cycle of operation performed with reference to the global time and a time for an operation performed with reference to the local time during the one cycle of operation.
5. 5. The control system according to claim 4, wherein the operation control information includes gate control information that sets opening and closing of gates corresponding to each of a plurality of queues.
6. The control system according to claim 4 , wherein the operation control information includes scheduling information indicating a schedule for a processor included in the first control device to execute processing on a virtual machine basis.
7. The control system according to claim 4 , wherein the operational control information includes scheduling information indicating a schedule for a processor included in the first control device to execute processing in units of a task, a process, or a thread.
8. the first control device further includes a determination means for determining whether the time error indicated by the time error information satisfies a predetermined condition; The time difference information is transmitted from the first control device to the second control device when it is determined that the time difference satisfies the condition. A control system according to any one of claims 1 to 7.
9. A control system including first and second control devices communicatively connected via a network, The first control device is A management means for managing a global time; A first generating means for generating a local time; a control means for controlling an operation of the first control device based on the global time, the local time, and operation control information that defines the operation of the first control device; a second generating means for generating time error information indicating a time error based on the global time and the local time; Including, The second control device is an acquisition means for acquiring the generated time difference information from the first control device; an output means for outputting identification information for identifying the first control device when the time error indicated by the acquired time error information satisfies a predetermined condition; Includes Control system.
10. A control device that is communicably connected to another control device via a network, A management means for managing a global time; A first generating means for generating a local time; a control means for controlling an operation of the control device based on the global time, the local time, and operation control information that defines the operation of the control device; a second generating means for generating time error information indicating a time error based on the global time and the local time; Equipped with The operation control information is corrected in the other control device based on the time difference information. Control device.
11. an acquisition means for acquiring time error information indicating an error between a time generated based on a global time and a local time from another control device whose operation is controlled based on the global time and the local time; a correcting means for correcting operation control information that specifies the operation of the other control device based on the acquired time error information; A control device comprising:
12. A method executed by a control system including first and second control devices communicatively connected via a network, the method comprising: Managing a global time; generating a local time; controlling an operation of the first control device based on the global time, the local time, and operation control information that defines the operation of the first control device; generating time error information indicating a time error based on the global time and the local time; correcting the operation control information based on the generated time error information; A method comprising the steps of:
13. A method executed by a control device communicatively connected to another control device via a network, comprising: Managing a global time; generating a local time; controlling an operation of the control device based on the global time, the local time, and operation control information that defines the operation of the control device; generating time error information indicating a time error based on the global time and the local time; Equipped with The operation control information is corrected in the other control device based on the time difference information. method.
14. acquiring time error information indicating an error between a time generated based on the global time and a local time from another control device whose operation is controlled based on the global time and the local time; modifying operation control information that specifies the operation of the other control device based on the acquired time error information; A control device comprising:
Citation Information
Patent Citations
Industrial automation using 5G and beyond
JP2022522630A
Method and apparatus for synchronizing devices in a wireless network - Patents.com
JP2023550001A
GNSS sample processor for determining the location of an event
US20080218401A1
Network device and network system
JP2015211247A
Cited By
Control device, control system, and method
JP2026079322A
