Distributed RT Systems Introduction ITV Multiprogramming and Real-Time Systems Anders P. Ravn Aalborg University April 2009.

Slides:



Advertisements
Similar presentations
© Alan Burns and Andy Wellings, 2001 Real-Time Systems and Programming Languages n Buy Real-Time Systems: Ada 95, Real-Time Java and Real-Time POSIX by.
Advertisements

Topic 7 Local Area Networks (LAN)
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Setha Pan-ngum. History of CAN [1] It was created in mid-1980s for automotive applications by Robert Bosch. Design goal was to make automobiles more reliable,
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
MotoHawk Training CAN Controller Area Network.
Real-Time Systems... And the Fine Print Real-Time Systems Anders P. Ravn Aalborg University September 2009.
Real-Time Systems – The Big Picture Real-Time Systems Anders P. Ravn Aalborg University September 2009.
Architecture Modeling and Analysis for Embedded Systems Oleg Sokolsky CIS700 Fall 2005.
© Andy Wellings, 2004 Concurrent and Real-Time Programming in Java  Electronic copies of course foils available via 
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
Software Engineering and Middleware: a Roadmap by Wolfgang Emmerich Ebru Dincel Sahitya Gupta.
1: Operating Systems Overview
1 of 14 1/15 Schedulability Analysis and Optimization for the Synthesis of Multi-Cluster Distributed Embedded Systems Paul Pop, Petru Eles, Zebo Peng Embedded.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Real-Time Systems and Programming Languages
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
Real-Time Systems – The big Picture
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
CprE 458/558: Real-Time Systems
A Tool for Describing and Evaluating Hierarchical Real-Time Bus Scheduling Policies Author: Trevor Meyerowitz, Claudio Pinello, Alberto DAC2003, June 24,2003.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
SERIAL BUS COMMUNICATION PROTOCOLS
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Distributed Real-Time systems 1 By: Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Computer Networks.
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Chapter 4: Managing LAN Traffic
University of Tehran 1 Interface Design Vehicle Busses Omid Fatemi.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
1 Albert Ferrer-Florit, Steve Parkes Space Technology Centre University of Dundee QoS for SpaceWire networks SpW-RT prototyping.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
RTS Meeting 8th July 2009 Introduction Middleware AUTOSAR Conclusion.
1 06/00 Questions 10/6/2015 QoS in DOS ECOOP 2000John Zinky BBN Technologies ECOOP 2000 Workshop on Quality of Service in Distributed Object Systems
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
ARMADA Middleware and Communication Services T. ABDELZAHER, M. BJORKLUND, S. DAWSON, W.-C. FENG, F. JAHANIAN, S. JOHNSON, P. MARRON, A. MEHRA, T. MITTON,
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
EEL Software development for real-time engineering systems.
1 of 14 1/15 Synthesis-driven Derivation of Process Graphs from Functional Blocks for Time-Triggered Embedded Systems Master thesis Student: Ghennadii.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
Collision-free Time Slot Reuse in Multi-hop Wireless Sensor Networks
Conformance Test Experiments for Distributed Real-Time Systems Rachel Cardell-Oliver Complex Systems Group Department of Computer Science & Software Engineering.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
1 BBN Technologies Quality Objects (QuO): Adaptive Management and Control Middleware for End-to-End QoS Craig Rodrigues, Joseph P. Loyall, Richard E. Schantz.
NDDS: The Real-Time Publish Subscribe Middleware Network Data Delivery Service An Efficient Real-Time Application Communications Platform Presented By:
1 May-2014 Automotive Protocols & Standards. 2 CAN (Controller Area Network)  Overview Controller Area Network is a fast serial bus designed to provide.
An Introduction to CAN CAN Basics 2 Renesas Interactive
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
LonWorks Introduction Hwayoung Chae.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
National Institute of Science & Technology TECHNICAL SEMINAR PRESENTATION Presented by TRUPTI RANJAN BEHERA Roll no: EI Under the Guidance of.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Chapter 5:Architectural Design l Establishing the overall structure of a software.
Undergraduate course on Real-time Systems Linköping TDDD07 Real-time Systems Lecture 5: Real-time Communication Simin Nadjm-Tehrani Real-time Systems Laboratory.
Wayne Wolf Dept. of EE Princeton University
Parallel and Distributed Simulation Techniques
Hubs Hubs are essentially physical-layer repeaters:
Client-Server Interaction
Controller Area Networks (CAN)
Presentation transcript:

Distributed RT Systems Introduction ITV Multiprogramming and Real-Time Systems Anders P. Ravn Aalborg University April 2009

Prerequisites Understanding of Real-Time Systems for monoprocessor systems Understanding of Distributed Systems

Aims Understanding the issues in combining RT and Distributed Architectures Ability to model and analyse such systems To stimulate research interest

What is a real-time system? A real-time system is a computerized system that must respond to externally generated input within specified time bounds The computer is a component in a larger engineering system - EMBEDDED COMPUTER SYSTEM

A simple fluid control system Pipe Flow meter Valve Interface Computer Input flow reading Processing Output valve angle

A distributed fluid control system Pipe Flow meter Valve Interface Computers and Network Processing Output valve angle Input flow reading

The Periodic Control Task LOOP wait_until(t) read_sensor; send reading; t = t+T; END Tightly Coupled : OR Distributed: LOOP get reading; compute; send setting END LOOP get setting write_actuator; END LOOP wait_until(t) read_sensor; compute; write_actuator; t = t+T; END

The R-T Constraints Have not changed !

Terminology Hard real-time Soft real-time Firm real-time Value of response Time D D D may be missed occasionally

RTS Design Essentially: Specification of a collection of periodic and sporadic tasks. Tasks may share resources, but must not block explicitly. Formalisms: UML-RT RT- HOOD NEW: Selection and Analysis of network OR Selection of a Distributed R-T platform

Validation 1.Verification 2.Testing 3.Simulation ON 1.Model 2.Prototype with Test harness 3.Real System

Characteristics of a RTS Timing Constraints Dependability Requirements Concurrent control of separate components Facilities to interact with special purpose hardware Have not changed !

Analysis Tools Response Time Analysis for Networks and processors (BW 14.7) Model checking of Networks of Timed Automata (UppAal) Simulation Tools

Platforms Time Triggered Architecture (BW p. 568) CORBA-RT (BW )

Distributed Algorithms Clock Synchronization (BW ) Fault Tolerance (BW 14.5)

Networks CAN TT-CAN TTP/C Protocol ARINC 629 WorldFIP PROFIBUS …

CAN initial target automotive applications a multi-master architecture a broadcast shared bus, the transmission medium is usually a twisted pair cable network maximum length depends on the data rate (e.g. 1 Mbps; 50 Kbps) The arbitration uses a CSMA non-destructive bit-wise protocol in which the controller transmitting the message with lowest identifier wins access to the medium and continues transmission. The remaining controllers detect a collision back off and retry again The traffic scheduling at the bus access level is thus based on fixed priorities. applications. The addressing is indirect and based on the identifiers, too. The CAN protocol does not specify an application layer.

TTP/C Protocol a fault-tolerance oriented communication protocol clock synchronization membership service fast error detection and consistency checks. A network consists of a set of communicating nodes connected by a replicated network. A node comprises a host computer and a TTP/C communication controller. The medium access control is based on TDMA with bus time divided into slots, each statically assigned to one node. In each slot each node transmits one frame. The frame cycle is called a Messages are piggybacked within the frames transmitted by each node. The protocol defines 4 transmission speed classes ( 500Kbps, 1Mbps, 2Mbps and more recently 25Mbps) an application layer that delivers configuration and messaging services.

Middleware Masks system and network heterogeneity Hides complexity of distributed systems

CORBA Minimum CORBA Asynchronous Method Invocation Real-Time CORBA

Real Time CORBA Policies and mechanisms for specifying end-to- end application QoS requirements. QoS enforcement from real-time operating systems and networks. Optimized real-time communication protocols Optimized real-time request demultiplexing and dispatching. Optimized memory management. Optimized presentation layer

AMI allows exchange of asynchronous requests Static Invocation Interface (SII) Polling model: each two-way operation returns a local object Poller. A client can use the Poller to check the status of a request. Callback model: when a client invokes a two-way asynchronous operation on an object, it passes an reference for a reply handler servant as a parameter.

Message Oriented Middleware Java Message Service (JMS) Data Distribution Service for Real-Time systems (DDS)

The CAN bus

Physical Layer Serial bus Electrical properties and timing see: Dominant and Recessive encoding: dominant is logical 0 recessive is logical 1 simultanous transmission gives logical AND

Frame Format Field nameLength (bits)Purpose Start-of-frame1Dominant 0 Identifier11Sender id RTR1Dominant 0 Identifier extension1Dominant 0 Reserved1 Data length (bytes)40-8 Data field CRC1515 CRC delimiter1Recessive 1 ACK1 ACK delimiter1Recessive 1 End-of-frame7Recessive 1

Medium Access Control Hanz p. 6

Simple Analysis One process per processor No error handling Hanz p. 10, CAN bus paper

Simple Analysis Hanz p. 10, CAN bus paper

Extended Analysis j in hp(i)

Remarks There is no easy way of finding an optimal assignment for the extended case! The formulas are too pessimistic M, Cross- interference Experimental validation.

FTT-CAN Static versus Dynamic Traffic Scheduling Event versus Time Triggered Communication

FFT-CAN E-cycle

Overhead

Synchronous Messaging System SRT entries: DLC – data length C- max transmission time Ph- relative phase P- Period measured in E’s (T) D- Deadline Pr- fixed priority

For Each E-cycle A synchronous schedule is broadcast with the EC-Trigger Message Plan based scheduling On-line scheduling

Schedulability Analysis Blocking free non-preemptive scheduling RM: EDF:

Asynchronous Messaging System ART entries: DLC – data length C- max transmission time MIT- min interarrival time in E’s D- Deadline Pr- fixed priority

Schedulability Analysis

Remarks Transmission errors not treated Master selection not treated