A Practical Degradation Model for Mixed Criticality Systems
Vijaya Kumar Sundar, Arvind Easwaran Nanyang Technological University (NTU), Singapore May 8, 2019
A Practical Degradation Model for Mixed Criticality Systems Vijaya - - PowerPoint PPT Presentation
A Practical Degradation Model for Mixed Criticality Systems Vijaya Kumar Sundar, Arvind Easwaran Nanyang Technological University (NTU), Singapore May 8, 2019 Research Outline Research Objective: A new degradation model for Mixed Criticality
Vijaya Kumar Sundar, Arvind Easwaran Nanyang Technological University (NTU), Singapore May 8, 2019
2
3
3
3
3
a single hardware platform
4
ADAS
Autosar
8
RTOS ECU 1
8
RTOS ECU 1
8
RTOS ECU 1
Physical Hardware Hypervisor or RTOS
Core 1 Core 2 Core 3 Core 4
8
ADAS Autosar
a single hardware platform
4
ADAS
Autosar
8
RTOS ECU 1
8
RTOS ECU 1
8
RTOS ECU 1
Physical Hardware Hypervisor or RTOS
Core 1 Core 2 Core 3 Core 4
8
ADAS Autosar
5
5
Parking Assist, a relatively less critical application
performance
5
6
6
6
7
ECU with mixed ASILs
7
ECU with mixed ASILs
ASIL D + ASIL C ASIL D
7
ECU with mixed ASILs
ASIL D + ASIL C ASIL D ASIL D + ASIL C
7
*Paraphrased (replaced elements and sub-elements with SW-Cs) 8
9
9
Budget Low High
Task A Task B
Criticality Task A – high criticality Task B – low criticality
9
WCET WCET
Budget Low High
Task A Task B
Criticality Task A – high criticality Task B – low criticality
9
WCET Safety margin WCET Safety margin
9
9
10
10
High Critical Task Normal execution Low Critical Task Budget overrun Suspend or degrade . . . . time
10
→Allows interference →Improves efficiency
→Recovers prior to a safety violation →No impact on critical tasks
→What is an acceptable impact, given safety specifications?
10
Efficiency improvement due to reduced budgets
Early Studies
Further improvements due to run- time policies
Significant Body
“Some” guarantee for less critical tasks
Current Trend
11
improvements to resource utilization
less critical tasks
upon budget overrun for more critical tasks
Efficiency improvement due to reduced budgets
Early Studies
Further improvements due to run- time policies
Significant Body
“Some” guarantee for less critical tasks
Current Trend
11
improvements to resource utilization
less critical tasks
upon budget overrun for more critical tasks
critical tasks upon budget
resource utilization, but at the cost of all guarantees for less critical tasks
the perspective of impact on safety
Efficiency improvement due to reduced budgets
Early Studies
Further improvements due to run- time policies
Significant Body
“Some” guarantee for less critical tasks
Current Trend
11
improvements to resource utilization
less critical tasks
upon budget overrun for more critical tasks
critical tasks upon budget
resource utilization, but at the cost of all guarantees for less critical tasks
the perspective of impact on safety
resource allocation to even less critical tasks at all times
to ensure no impact on safety?
12
13
14
15
Severity (S) Controllability (C) Probability Of Exposure (E)
15
C1 C2 C3 E1 QM QM QM E2 QM QM QM E3 QM QM A E4 QM A B E1 QM QM QM E2 QM QM A E3 QM A B E4 A B C E1 QM QM A E2 QM A B E3 A B C E4 B C D S1 S2 S3
Severity (S) Controllability (C) Probability Of Exposure (E)
ASIL decision chart
ASIL A ASIL D
ASIL
15
16
16
S0 S1 S2 S3 No Injuries Light and moderate injuries Severe and life threatening injuries(survival probable) Life-threatening injuries (survival uncertain), fatal injuries
16
S0 S1 S2 S3 No Injuries Light and moderate injuries Severe and life threatening injuries(survival probable) Life-threatening injuries (survival uncertain), fatal injuries
E0 E1 E2 E3 E4 Incredible Very low probability Low probability Medium probability High probability
16
S0 S1 S2 S3 No Injuries Light and moderate injuries Severe and life threatening injuries(survival probable) Life-threatening injuries (survival uncertain), fatal injuries
E0 E1 E2 E3 E4 Incredible Very low probability Low probability Medium probability High probability
C0 C1 C2 C3 Controllable in general Simply controllable Normally controllable Difficult to control or uncontrollable
17
18
18
18
18
19
19
19
19
20
Lead Vehicle Detection = + Radar V2V Redundant and Independent Sensors = + ASIL C Safety Requirements ASIL A Safety Requirements ASIL D Safety Requirements
21
21
21
21
22
Safety Aspect Performance Aspect Main inter-vehicle distance, Apply Acceleration and Brake
Smoothness in control
23
Source: Graceful Degradation for Driver Assistance Systems, H. U. Michel, S. Holzknecht, E. Biebl, Springer 2009
LIDAR Processing Task
24
Properties of a Mixed Criticality System Property 1 A lower critical task does not mean that it always performs a functionality of lower importance. Property 2 Degradation of higher criticality tasks is possible. Property 3 Multiple ways of degrading a task’s budget is possible. Property 4 A specific degradation of a task depending on the overloading task can be useful.
25
Budget Overrun
25
Which tasks to degrade ? Relatively lower criticality tasks are degraded Use criticality to choose Tasks to be degraded Budget Overrun Majority of the existing Studies
25
Which tasks to degrade ? Relatively lower criticality tasks are degraded Use criticality to choose Tasks to be degraded Budget Overrun How to degrade ? Fixed type of degradation Reduced budget/Inc. period Decide offline Majority of the existing Studies
25
Which tasks to degrade ? Allow the designer to choose the task to be degraded Relatively lower criticality tasks are degraded Use criticality to choose Tasks to be degraded Budget Overrun How to degrade ? Fixed type of degradation Reduced budget/Inc. period Decide offline Majority of the existing Studies This Paper
25
Which tasks to degrade ? Allow the designer to choose the task to be degraded Relatively lower criticality tasks are degraded Use criticality to choose Tasks to be degraded Single task
Budget Overrun How to degrade ? Fixed type of degradation Reduced budget/Inc. period Decide offline Specific degraded Budget based on overrun task Majority of the existing Studies This Paper
25
Which tasks to degrade ? Allow the designer to choose the task to be degraded Relatively lower criticality tasks are degraded Use criticality to choose Tasks to be degraded Single task
Multiple tasks
Specific degraded budget based on the Criticality of
Budget Overrun How to degrade ? Fixed type of degradation Reduced budget/Inc. period Decide offline Specific degraded Budget based on overrun task Majority of the existing Studies This Paper
Assumptions regarding budgets:
27
Idle Instance
28
Idle Instance Idle Instance
29
Idle Instance Idle Instance
30
High Critical Task Normal execution Low Critical Task Budget overrun Suspend or degrade . . . . time Low Critical Task Normal execution High Critical Task Budget overrun degrade . . . . time
31
32
33
34
35
Steer Task Overrun Degrade ACC type 2 ( with No ISA) Impacts only the heading error CA Task Overrun Degrade ACC type 1 ( PIDONOFF) Impacts only the acceleration
Position, Acceleration, Velocity (X,Y,Z) of self ,
Temperature, Pressure, Fuel remaining Track length, curvature, remaining distance, car width, length, weight Details for overtaking like overtake radius,
velocity Refer car.h and car.cpp in TORCS source code Roll, Pitch and yaw
Sensor data Data Type Description position[3] Double - Array Global position [m] velocity[3] Double - Array Global velocity [m/s] acceleration[3] Double - Array Global acceleration [m/s/s] angle[3] Double - Array Roll/Pitch/Yaw [rad] Angular Velocity[3] Double - Array Roll/Pitch/Yaw rates [rad/s] Heading Error Double Error between vehicle heading and track heading (at current location) [rad] lateral Error Double Lateral error between car (CoG) and track centreline (at current location) [m] roadDistance Double Distance travelled along track from start/finish line [m] roadCurvature Double Curvature of track (at current location), left turns = +ve curvature, right turns = -ve curvature engineRPM Double Engine RPM
monitoring
to an algorithm
external hardware
Simulink functionalities Electronic Control Unit
Gateway 1 Gateway 2
Leader Follower
Technology Highlights - FreeRTOS Pre-emptive scheduling option Easy to use message passing Co-operative scheduling option Round robin with time slicing Fast task notifications Mutexes with priority inheritance 6K to 12K ROM footprint Recursive mutexes Configurable / scalable Binary and counting semaphores Chip and compiler agnostic Very efficient software timers Some ports never completely disable interrupts Easy to use API Src : FreeRTOS
Curve Road
Lead vehicle Follower vehicle
Curve 1 Curve 2 Curve 3
Follower Vehicle
43
44
45