Real-Time Audit and Defense Course

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the primary characteristic of a real-time system?

  • Complex user interface capabilities
  • Large data storage capacity
  • Data encryption
  • Quantitatively expressing time to describe its behavior (correct)

In a real-time system, a delayed response is always acceptable as long as the correct action is eventually performed.

False (B)

What term describes an embedded system's ability to respond to several independent events?

Concurrency

An unreliable system can be made safe upon failure by reverting to a ______ state.

<p>fail-safe</p> Signup and view all the answers

Match the real-time system characteristic with its description:

<p>Real-time = Tasks associated with time constraints, such as deadlines. Correctness Criterion = Results must be logically correct and within stipulated time. Safety-Critical = Failure can cause severe damage. Concurrency = System responds to several independent events.</p> Signup and view all the answers

Which component is commonly included in an embedded system architecture?

<p>Electromechanical backup and safety mechanisms (A)</p> Signup and view all the answers

A 'safe' system is defined as one that operates flawlessly for extended periods without any failure.

<p>False (B)</p> Signup and view all the answers

What is the purpose of a 'fail-safe' state in an unreliable system?

<p>To prevent damage upon failure</p> Signup and view all the answers

The term ______ describes the ongoing interaction between the computer system and its environment in real-time systems.

<p>reactive</p> Signup and view all the answers

Match the following terms with their corresponding definitions related to real-time systems:

<p>Actuators = Components that execute actions or control mechanisms. Sensors = Devices that detect and measure environmental conditions. RTOS = Operating system designed for real-time applications. CPU = Central processing unit that performs computations.</p> Signup and view all the answers

In the context of safety and reliability, what distinguishes a 'safety-critical' real-time system?

<p>Any failure can cause severe damage. (B)</p> Signup and view all the answers

Increased reliability in a system can compensate for a lack of safety measures.

<p>False (B)</p> Signup and view all the answers

What is the primary goal of fault tolerance in real-time systems?

<p>To mask the effects of faults</p> Signup and view all the answers

The software fault tolerance technique inspired by TMR (Triple Modular Redundancy) of hardware is called ______ programming.

<p>n-version</p> Signup and view all the answers

Match the fault tolerance technique with its corresponding approach:

<p>Hardware Fault-Tolerance = Masks the effects of hardware faults. Software Fault-Tolerance = Masks the effects of program faults. Triple Modular Redundancy = Uses majority voting to determine correct output. Recovery Blocks = Uses try blocks to handle and recover from exceptions.</p> Signup and view all the answers

What is a key disadvantage of N-version programming?

<p>Faults can be correlated across different versions (C)</p> Signup and view all the answers

In a safety-critical system, a fail-safe state is always achievable and should be the primary strategy for handling failures.

<p>False (B)</p> Signup and view all the answers

According to the 2006 Embedded Systems Design Magazine survey, what percentage of new embedded designs utilized 32-bit processors?

<p>Approximately 60% (C)</p> Signup and view all the answers

According to the provided material, Renesas SuperH processors are not utilized in modern embedded designs.

<p>False (B)</p> Signup and view all the answers

Name one of the processor architectures widely used in new embedded designs.

<p>ARM</p> Signup and view all the answers

According to the presentation, approximately ______% of embedded systems utilized commercial operating systems in new embedded designs.

<p>50</p> Signup and view all the answers

According to the 2006 data, which programming language was most used in new embedded design?

<p>C (B)</p> Signup and view all the answers

Future embedded systems will not utilize multi-core processors.

<p>False (B)</p> Signup and view all the answers

What is one element of the future of embedded systems as discussed in the presentation?

<p>Power minimization</p> Signup and view all the answers

The presentation suggests that, for satisfactory performance, the ______ code often needs to be fine-tuned on embedded systems.

<p>Source</p> Signup and view all the answers

According to the presentation, what is one reason "free Operating Systems" can increase product development cost?

<p>They require more time to develop device drivers. (B)</p> Signup and view all the answers

According to the presentation, safety and reliability are practically independent concerns.

<p>False (B)</p> Signup and view all the answers

What must results be to meet the 'correctness criterion'?

<p>Logically correct and within the stipulated time</p> Signup and view all the answers

In a triple modular redundancy system, the ______ result is chosen as the correct one.

<p>Majority</p> Signup and view all the answers

What is the primary function of actuators in a real-time embedded system?

<p>To execute actions or control mechanisms (A)</p> Signup and view all the answers

When an airbag's motion sensors detect a collision, the system needs to respond by deploying the airbag within 10ms or less. If it does not, the ______ fails.

<p>System</p> Signup and view all the answers

What is the purpose of exception handling in embedded systems?

<p>To improve system stability</p> Signup and view all the answers

In a reliable system, system damage is acceptable even when that system fails.

<p>False (B)</p> Signup and view all the answers

What is the drawback of having a small $1 license fee per device in embedded systems?

<p>It can make products uncompetitive (A)</p> Signup and view all the answers

How does software fault tolerance mask errors?

<p>It masks the effects of a program fault. (D)</p> Signup and view all the answers

Which of the options is NOT a method of designing a highly reliable system?

<p>Ad-hoc testing (B)</p> Signup and view all the answers

What is one requirement to implementing open source OS?

<p>You publish your device's source code. (B)</p> Signup and view all the answers

The purpose of Scientific Innovation research Group (SIRG) is to use IOT for medical improvements.

<p>False (B)</p> Signup and view all the answers

How are fault errors masked using hardware-fault tolerance?

<p>Using circuitry, one step removed from the cause</p> Signup and view all the answers

The essential idea behind fault tolerance is to provide ______.

<p>redundancy</p> Signup and view all the answers

Flashcards

What is a Real-Time System?

A system that needs to quantitatively express time to describe its behavior.

Embedded system event response

Embedded system's immediate reaction to events is a crucial characteristic.

What does an embedded system include?

The combination of hardware, real time operating system (RTOS), and application program.

Describe the RTOS.

An OS optimized for real-time applications, helping tasks meet deadlines.

Signup and view all the flashcards

Correctness criterion in embedded systems?

Results must be logically correct and within the stipulated time.

Signup and view all the flashcards

What is a 'Critical Task'?

A critical task is one whose failure causes system failure.

Signup and view all the flashcards

Define Concurrency.

A RT system must respond to several independent events.

Signup and view all the flashcards

What is a 'safe system'?

A system that does not cause damage, even if it fails.

Signup and view all the flashcards

Describe a 'reliable system'.

A system that operates for a long time without any failure.

Signup and view all the flashcards

What is a fail-safe state?

A state where no damage can result if a system fails.

Signup and view all the flashcards

Safety-critical systems safety method

Safety can only be ensured through increased reliability.

Signup and view all the flashcards

What is Fault Tolerance?

Techniques to provide continued correct operation despite faults.

Signup and view all the flashcards

Hardware Fault-Tolerance

Masks the effects of hardware faults using redundancy.

Signup and view all the flashcards

Software Fault Tolerance

Masking the effects of program faults using different methods.

Signup and view all the flashcards

Triple Modular Redundancy

A hardware method using three copies of a component with majority voting.

Signup and view all the flashcards

N-Version programming

A software method using multiple independent versions of code.

Signup and view all the flashcards

Recovery Blocks in software

Blocks of code to recover should a prior execution fail.

Signup and view all the flashcards

OS role in an embedded system

Multi-tasking, scheduling, synchronization, and memory management.

Signup and view all the flashcards

Pros/Cons of Open Source OS

Embedded devices are extremely cost sensitive and cannot implement commercial.

Signup and view all the flashcards

Study Notes

  • Real-Time Audit and Defense course presented by Dr. Ahmed Elngar, Associate Professor and Head of Computer Science Department at Beni-Suef University and Faculty of Computers and Information Technology, American University in Emirates.

Course Syllabus (UCCE 3223)

  • Course covers Real-Time Auditing and Defense
  • Has a total of 3 hours
  • Includes 2 hours of practical, hands-on training
  • 2 hours are dedicated to theoretical aspects.
  • The prerequisite for this course is UCCS 3107.
  • The course defines applications, and compares hard vs soft real-time systems.
  • Covers reference models of real-time systems and commonly used approaches to hard real-time scheduling.
  • Touches on clock-driven scheduling and priority-driven scheduling, as well as scheduling periodic and sporadic tasks
  • Discusses multiprocessor scheduling, resource access control, flexible computations, and tasks with temporal distance constraints.
  • Includes real-time communication, real-time operating systems, and real-time programming.

Text Book

  • The course utilizes "R. Mall, Real-Time Systems" as a textbook, published by Pearson in 2008
  • It is supplemented with handouts.

Course Plan

  • Introduction
  • Task Scheduling : Uniprocessors, Multiprocessors
  • Commercial Real-Time Operating Systems
  • Real-time communications
  • Real-time databases

Reference Books

  • Jane Liu, Real-Time Systems, Pearson, 2000
  • C. Krishna and K. Shin, Real-Time Systems, McGraw-Hill, 2000

Real-Time Systems

  • Real-time System: Requires time to be quantitatively expressed to describe behavior.
  • Performance is described by listing inputs and corresponding system responses.

Important Characteristics of Embedded Systems

  • Embedded systems respond to events with external input, data processing, and external output.
  • Automobile airbag systems are examples.
  • Airbags deploying within 10ms of collision detection illustrates system timing requirements

Embedded Systems

  • Embedded Systems = Hardware + RTOS + Application Program

Real-Time OS

  • Real-Time OSs differ from Traditional OSs and are time bound.
  • Embedded systems respond to external inputs
  • If the response is late, the system fails.
  • General purpose OSs are not designed for real-time use, but Real-time OSs help tasks meet deadlines

Characteristics of Embedded Systems

  • Real-time systems have tasks associated with time constraints, e.g., deadlines.
  • It follows the correctness criterion, the results should be logically correct within the stipulated time.

Considerations

  • Safety and Task Criticality: Critical tasks are those where failure causes system failure, necessitating obstacle avoidance
  • A safe system does not cause damage.
  • A safety-critical real-time system is one where failure causes severe damage

More Characterisitics

  • Concurrency requires the system to respond to independent events via separate tasks
  • The same inputs can lead to different outcomes (Non-determinism)
  • Systems are distributed with feedback structures and often implemented on custom hardware

Characteristics Continued

  • Embedded Systems are reactive, with ongoing computer-environment interaction
  • They demonstrate stability, important tasks will perform acceptably under overload.
  • They perform exception Handling.

Safety and Reliability

  • Safe System: Does not cause damage even when it fails.
  • Reliable System: Operates for a long time without any failure.
  • These are independent concepts in traditional systems.
  • In traditional systems, safety and reliability are separate concerns.
  • A system can be safe but unreliable and vice versa.

Safety Critical System

  • Interrelated in safety-critical system
  • Failure would result in severe damage
  • Safety can be ensured only through increased reliability.

Fail-safe state

  • An unreliable system can be made safe upon a failure by reverting to a fail-safe state.
  • A fail-safe state means no damages can result if a system fails in this state
  • Traffic lights blinking orange in all directions.

Fail-Safe Word Processing Program

  • The document being processed has been saved onto the disk
  • Fail-safe states help separate the issues of safety and reliability.
  • Systems can always be made to fail in a fail-safe state.

Safety-Critical Sytems & Navigation

  • For a safety-critical system no fail-safe state exists
  • For a safety-critical system on an aircraft, shutting down the engine when the navigation system fails, wont help

Highly Reliable System Design

  • Error Avoidance
  • Error Detection and Removing
  • Fault Tolerance

Fault Tolerance in Real Time Systems

  • Essential Idea: Provide Redundancy
  • Hardware fault-tolerance masks the effects of a hardware fault
  • Software fault-tolerance masks the effects of a program fault

Fault Tolerance Methods

  • Hardware FT: Built in self test (BIST) and Triple modular redundancy
  • Software FT: N-Version programming and Recovery Blocks

Triple Modular Redundancy

  • C1, C2, and C3 are redundant copies of a component that are voted on to select the majority result.

N-version programming

  • Software fault tolerance technique, inspired by TMR of hardware.
  • Different teams develop the same software.
  • It has unsatisfactory performance because faults are correlated in the different versions and all version fail for similar reasons.

Recovery Blocks

  • Software Fault Tolerance using recovery blocks
  • It tests blocks after completing
  • Runs alternatives if the initial test fails.

Modern Embedded Systems

  • They incorporate Application-Specific hardware and programmable processors and mechanical transducers and actuators for performance and low power.

Embedded Systems: Block Diagram

  • Contains control panel, controller processes, ASIC, processor, real-time OS, UI processes, and dual-ported RAM with CODEC.

OS in Embedded Device

  • It supports multitasking, scheduling, synchronization, timing aspects, and memory management
  • Supports file systems, networking, graphics displays, interfacing, scheduling, buffering, security, and power management.

Why an OS

  • A recent cell phone system contained over five million lines of code
  • Typical Embedded OS license fees are low
  • Some simple low-end devices might not need an OS, but new devices are getting more complex.

Current Usage

  • What Types of Processors are used?
  • What Operating Systems are used?
  • What Programming Languages are used?
  • 2006 Market Survey of design engineers: Embedded Systems Design Magazine.

Processors

  • 32-bit processors are dominantly used in new embedded designs in 2006 embedded market survey.
  • Processor Architectures Widely Used: ARM, X86, PowerPC, MIPS, Xscale (ARM), and Renesas SuperH.

Processor Sales

  • The 32-64 bit annual processor sales volume chart indicates ARM had most sales.

Processor Usage

  • Most New Embedded Designs used 1 processor in the 2006 market survey.

Selection Issues

  • Software support (OS, Compilers, Debug Tools, Applications)
  • Price, Performance, Power (Battery Life (MIPS/Watt), Cooling)
  • Availability and Long term availability/multiple vendors

OS Kernels in Embedded Design

  • The bulk of new embedded designs use the commercial OS Kernels for real time usage.

Open Source OS

  • Embedded devices are extremely cost sensitive.
  • Satisfactory performance source code often needs fine tuning.

Open Source Cons

  • The "Free" OS increases product development cost via device drivers & labor
  • It may require more licenses and require you to publish your device's source code

Commercial Operating Systems

  • Commercial Operating Systems use are dominated by Microsoft Emb. and Wind River.

Languages

  • C and C++ are the main languages used in embedded Design.

What the Future Holds

  • Use of multi-core processors will increase but present operating systems don't use this effectively
  • Support of Wireless and mobile Internet.
  • Power minimization.

Research Group Aim

  • Scientific Innovation Research Group (SIRG) aims to evaluate the IOT performance and propose a secure architecture for the IoT security issues for Education.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Scheduling in Operating Systems Overview
10 questions
Operating System Concepts
10 questions

Operating System Concepts

SpiritedSwaneeWhistle avatar
SpiritedSwaneeWhistle
Real-Time Audit and Defense: UCCE 3223
37 questions
Real-Time Auditing and Defense - UCCE 3223
39 questions
Use Quizgecko on...
Browser
Browser