The invention relates to a method for distributing event-triggered (ET) and time-triggered (TT) messages in a distributed real-time system by means of a distributor unit that comprises a low-level relay unit (LLVME) and a high-level relay unit (HLVME), wherein communication ports of the distributor unit to other relay units and/or end systems of the real-time systems are attached to the LLVME.
The invention further relates to a method for distributing event-triggered (ET) and time-triggered (TT) messages in a distributed real-time system, wherein the distributor unit comprises a low-level relay unit (LLVME) and a high-level relay unit (HLVME), wherein communication ports of the distributor unit to other relay units and/or end systems of the real-time system are attached to the LLVME.
The invention further relates to a distributed real-time system comprising at least one, e.g., exactly one such distributor unit.
The present invention belongs in the field of computer engineering. It describes an innovative method, by means of which event-triggered and time-triggered messages can be relayed in a distributed real-time system.
In distributed real-time systems, the required time conditions between the sensor inputs of a technical process and the outputs to the actuators of the technical process can be adhered to exactly if the communication between the computer nodes of the distributed real-time system takes place in a time-triggered manner [1]. In the prevailing, non-time-critical communication systems, e.g., in Ethernet, communication is carried out using the event-triggered approach.
The object of the present invention is to provide a solution to the problem of how to cost-effectively expand an existing event-triggered message distributor unit in order to also relay time-triggered messages.
This problem is solved with an initially mentioned method and with an initially mentioned distributor unit by virtue of the fact that the LLVME has access to a global time base and is configured to differentiate between ET messages and TT messages, wherein the LLVME forwards an ET message that is incoming at one of its ports to the HLVME such that the HLVME can carry out the analysis and temporal scheduling of said ET message before it delivers this ET message back to the LLVME for issue at the designated output ports of the LLVME, and, prior to the known issuing of a TT message, in particular in a timely manner, the LLVME transmits a pause frame to the HLVME such that no ET message is scheduled to be transmitted by the HLVME during the anticipated and scheduled TT message transmission slot, and wherein the LLVME delivers an incoming TT message directly for issue at the designated output ports in accordance with the known time plan.
According to the invention, it is therefore assumed that a message distributor unit comprises two subsystems, namely a low-level relay unit (LLVME), which has a global time, and a high-level relay unit (HLVME), which does not need to have access to a global time and can relay event-triggered messages. The LLVME contains the communication ports, via which the end systems (computer nodes) or further message distributor units are attached. A message that is incoming via a communication port of the LLVME is analyzed in the LLVME in order to determine whether the message belongs to the class of event-triggered messages or to the class of time-triggered messages. An event-triggered message is forwarded to the HLVME to be relayed. The HLVME analyzes the message and decides, with consideration for the current message traffic, at which point in time the message will be transferred from the HLVME to the LLVME for issue at the designated output port of the LLVME.
A time-triggered message is forwarded by the LLVME directly at the designated output port in accordance with the time plan for time-triggered messages stored in the LLVME. In order to ensure that the designated output port is not occupied by an event-triggered message at the a priori known transmission time of the time-triggered message, the LLVME transmits a pause frame to the HLVME in a timely manner such that the HLVME does not schedule the output port at the time of the transmission of the time-triggered message.
A few additional concepts that are used in the present document will be explained in the following. A message is time-triggered (TT) if the transmission time of the periodic message is set in an a priori known time plan. A message is event-triggered (ET) if the transmission time of the message is set according to the best effort principle [4, page 175]. A pause frame is a message that is transmitted by the LLVME to the HLVME in order to instruct the HLVME not to transmit any further messages to the LLVME for relay during the time interval stated in the pause frame. The time interval between the transmission of the pause frame by the LLVME and the latest onset of the pause is referred to as activation jitter. In order to ensure that the designated output port of the LLVME is free at the transmission time of an a priori known time-triggered message, the interval between the transmission of the pause frame by the LLVME to the HLVME and the planned transmission time of the message must correspond to the activation jitter.
Since the structure and function of the pause frame is specified in the IEEE Standard 802.3 for Ethernet messages, the present invention makes it possible to expand existing Ethernet message distributor units for event-triggered messages that correspond to the IEEE standard in a cost-effective manner by adding a LLVME for the transmission of time-triggered messages without the need to make changes to the existing Ethernet message distributor unit. Since some of the existing message distributor units are implemented in an ASIC and making changes to an ASIC is very costly, the invention has great economic significance.
The subdivision of a message distributor unit into two hierarchically arranged subsystems, wherein the lower subsystem carries out the direct switching and the higher-level subsystem decides the sequence in which the messages should be relayed, is already prior art and is described, inter alia, in [3]. However, the prior art does not provide any information that suggests the approach provided according to the invention for integrating time-triggered and event-triggered message switching.
The above-described invention therefore discloses a method for expanding an existing message distributor unit for event-triggered messages (e.g., for Ethernet messages) in order to also relay time-triggered messages. According to the invention, a low-level relay unit is installed upstream of the existing message distributor, said low-level relay unit relaying the time-triggered messages and ensuring that the designated output port of the time-triggered message is not occupied by an event-triggered message at the a priori planned transmission time of the time-triggered message.
Further advantageous embodiments of the method according to the invention and of the distributor unit according to the invention are the following:
*) the LLVME transmits the pause frame to the HLVME at the pause frame transmission time, wherein the pause frame transmission time is determined from the planned transmission time of the time-triggered message minus the implementation-dependent activation jitter, which is known a priori, in particular; and/or
*) the duration of the pause called for by means of the pause frame is determined by the sum of the activation jitter plus the maximum transmission time of the time-triggered message, which is known a priori, in particular; and/or
*) a copy of a time-triggered message is forwarded by the LLVME to the HLVME for monitoring purposes; and/or
*) the structure and function of the pause frame correspond to the IEEE Standard 802.3; and/or
*) the LLVME transmits the pause frame to the HLVME at the pause frame transmission time only if a corresponding TT frame has arrived in the LLVME at the pause frame transmission time; and/or
*) the time plan applicable to the time-triggered messages is loaded into the LLVME by means of a cryptographically secured protocol; and/or
*) the time plan stored in the LLVME is secured by error-detecting codes; and/or
*) the time plan stored in the LLVME is secured by error-correcting codes.
The invention is explained in greater detail in the following by reference to the drawings. In the figures:
The following specific example is one of the many possible embodiments of the new method.
If the LLVME 102 classifies a message as time-triggered, the message is then issued directly by the LLVME at the designated communication port of the LLVME at the planned issuance time according to the time plan stored in the LLVME. The time plan must be loaded into the LLVME before time-triggered messages are relayed. In order to ensure that the time plan was acquired from an authorized entity in an uncorrupted state, the loading of a new time plan can be secured by means of cryptographic protocols. The storage of the time plan can be secured within the LLVME by means of error-detecting or error-correcting codes.
In order to ensure that the designated communication port is not occupied by an event-triggered message at the time of issuance of a time-triggered message via this designated communication port of the LLVME 102, the LLVME must request a pause from the HLVME in a timely manner by means of a pause frame before the transmission of a time-triggered message. Such a pause frame has been standardized in the IEEE Standard 802.3.
In a time-triggered schedule having low laxity, the case depicted in
As an alternative, the laxity in the time-triggered schedule can be expanded such that the pause frame does not need to be transmitted until after the message arrives at the LLVME. This has the advantage that a pause does not need to be requested if a time-triggered message does not arrive.
The duration of the pause contained in the pause frame must be selected such that the longest time-triggered message to be transmitted has been transmitted before the end of the pause. According to the invention, the structure and the function of the pause frame can correspond to the IEEE Standard 802.3.
The LLVME will transmit the time-triggered messages to the HLVME even if the intent is to incorporate time-triggered messages into the monitoring functions. After the HLVME has analyzed a time-triggered message (in order to obtain the desired monitoring information), the HLVME discards the time-triggered message.
The above-described method for integrating time-triggered and event-triggered messages can be implemented, preferably, in the software of a CPU, as logic in a FPGA component, or as a standalone ASIC component.
The present invention therefore discloses a method for expanding an existing message distributor unit for event-triggered messages (e.g., for Ethernet messages) in order to also relay time-triggered messages. According to the invention, a low-level relay unit is installed upstream of the existing message distributor, said low-level relay unit relaying the time-triggered messages and ensuring that the designated output port of the time-triggered message is not occupied by an event-triggered message at the a priori planned transmission time of the time-triggered message.
[1] U.S. Pat. No. 5,694,542 Kopetz, H. Time-triggered communication control unit and communication method. Granted Dec. 2, 1997.
[2] U.S. Pat. No. 7,839,868. Kopetz, H. Communication method and system for the transmission of time-driven and event-driven Ethernet messages. Granted Nov. 23, 2010.
[3] US 2007/0083622 Wang et al. Ethernet Switch and Service Processing Method thereof. Pub. Date Apr. 12, 2007.
[4] Kopetz, H. Real-Time Systems, Design Principles for Distributed Embedded Applications. Springer Verlag. 2011.
[5] SAE Standard AS6802 von TT Ethernet. URL: http://standards.sae.org/as6802
[6] IEEE 802.3 Ethernet Standard. URL: http://www.ieee802.org/3/
[7] IEEE 1588 Standard for a Precision Clock Synchronization Protocol for Network Measurement and Control Systems. URL: http://www.ieee1588.com/
Number | Date | Country | Kind |
---|---|---|---|
A 577/2012 | May 2012 | AT | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/AT2013/050107 | 5/14/2013 | WO | 00 |