Presentation is loading. Please wait.

Presentation is loading. Please wait.

..................................... Model for Supporting High Integrity and Fault Tolerance Brian Dobbing, Aonix Europe Ltd Chief Technical Consultant.

Similar presentations


Presentation on theme: "..................................... Model for Supporting High Integrity and Fault Tolerance Brian Dobbing, Aonix Europe Ltd Chief Technical Consultant."— Presentation transcript:

1 ..................................... Model for Supporting High Integrity and Fault Tolerance Brian Dobbing, Aonix Europe Ltd Chief Technical Consultant November 1999

2 ............................................... November 1999 High Integrity and Fault Tolerance Background n Real-Time Core Specification is Released n High Integrity Profile –A subset of APIs in the RT-Core –Address requirements of Fault Tolerance High Integrity and Safety Critical systems –Work in progress, led by Aonix Draft circulated for internal J-Consortium review CALL FOR PARTICIPATION e.g. from Telecoms

3 ............................................... November 1999 High Integrity and Fault Tolerance Characteristics Partitioning Minimal Size Determinism Certifiability Fault Tol High Integ Safety Crit

4 ............................................... November 1999 High Integrity and Fault Tolerance Partitioning - single processor Non-Critical e.g. JVM Critical Component I/O devices Physical memory access Other peripherals Network Controlled Communication

5 ............................................... November 1999 High Integrity and Fault Tolerance Partitioning - hot standby Network Critical Component Controlled Communication Critical Component I/O devices / Physical memory Controlled Communication Messages

6 ............................................... November 1999 High Integrity and Fault Tolerance Partitioning - distribution Network Critical Component Controlled Communication Critical Component I/O devices / Physical memory Controlled Communication Non-Critical Component Messages Support for Distributed Systems is being addressed by “Real-Time and Embedded Distributed Middleware Profile”

7 ............................................... November 1999 High Integrity and Fault Tolerance Partitioning - interfaces Critical Component Remote Method Invocation Interface Parameters / Results (No Addresses) Physical Memory

8 ............................................... November 1999 High Integrity and Fault Tolerance Partition Construction n Static Linking only –Need to verify statically every byte loaded n Native code execution only –Temporal constraints prohibit interpreters n “Control” of the processor –HI partition will (normally) contain main() –Low-level interaction with underlying board Intended to be user-configurable

9 ............................................... November 1999 High Integrity and Fault Tolerance Memory Management (1) Execution Stack Default Allocation Context Per Thread Stackable Objects plus dynamic call frames Non-Stackable Objects No garbage collector!

10 ............................................... November 1999 High Integrity and Fault Tolerance Memory Management (2) n Allocation context re-used for each run() –Useful for Periodic, Sporadic, Interrupt tasks n Special allocation context supported –Programmatic reclamation for Ongoing tasks n Allocation context must be non-fragmenting

11 ............................................... November 1999 High Integrity and Fault Tolerance Concurrency n Periodic tasks (threads) –Scheduled by the runtime system n Sporadic tasks (threads) –Additional to RT Core, run by signalling Events n Interrupt “tasks” (handlers) –Triggered by hardware / software interrupt n Ongoing tasks (not run automatically) –Often background tasks in an infinite loop

12 ............................................... November 1999 High Integrity and Fault Tolerance Task Interaction n Remove asynchronous task-to-task actions –Stop, Interrupt, Wakeup, Suspend / Resume –Important for replica determinism n PCP used for Synchronized methods –Mutual exclusive access to Shared Resources –Tight bound on the blocking time (no queues) –Used in preference to mutexes, semaphores n Atomic regions used for interrupt handlers –Can signal Event object to run Sporadic task

13 ............................................... November 1999 High Integrity and Fault Tolerance Task Interaction Example Periodic Task Sporadic Task Interrupt Task PCP Object putget Event object signalrun H/w interrupt run

14 ............................................... November 1999 High Integrity and Fault Tolerance Scheduling n Priorities as in the RT-Core –Interrupt range + non-interrupt range n Normal FIFO_Within_Priorities scheduling n Task inherits ceiling priority when in PCP n Each task has : –Base priority (at creation time) –Active priority (for scheduling) Higher of base and any inherited priority

15 ............................................... November 1999 High Integrity and Fault Tolerance Sequential Execution n Need to be able to support : –Access to physical memory addresses for example RT Core IO class and Device I/O Registry –Exception handling Needed for failure recovery (roll back state) –Finally clauses Tidy up when failure occurs n Must exclude any non-determinism –Needed for replica consistency in fault tolerance

16 ............................................... November 1999 High Integrity and Fault Tolerance Fault Tolerance (1) n Hardware-related considerations –Keep standby replicas as identical as possible Eliminate constructs with race conditions Predictable execution even if clocks vary slightly –Allow access to physical addresses e.g fast DMA to compare / update state in replica –No addresses exported from HI partition Simplifies switching to replica on failure

17 ............................................... November 1999 High Integrity and Fault Tolerance Fault Tolerance (2) n Software-related considerations –Checkpoint objects at specific points Save state in durable (persistent) storage Allow access to physical addresses for this storage –Detect and recover from data errors Exception catching Roll back to saved state –Tidy up in normal and exception case Finally clauses

18 ............................................... November 1999 High Integrity and Fault Tolerance Summary (1) n The HI Profile supports : –Partitioning Controlled access to code and data –Determinism in sequential and concurrency –Small footprint runtime system n Proposed features : –Simplified memory management scheme Including access to physical memory addresses –Simplified threads kernel –Full exception handling and “finally” clauses

19 ............................................... November 1999 High Integrity and Fault Tolerance Summary (2) n The HI Profile will be : –Compatible with the Real-Time Core definition –Compatible with the Distributed Middleware profile n A full solution for the entire range of software requirements Needs YOUR review comments & participation


Download ppt "..................................... Model for Supporting High Integrity and Fault Tolerance Brian Dobbing, Aonix Europe Ltd Chief Technical Consultant."

Similar presentations


Ads by Google