An example based course curriculum for Performance Evaluation in Distributed Real Time Systems

Similar documents
Lecture 5: Performance Analysis I

Analysis of IP-based Real-Time In-Car Networks with Network Calculus Revsbech, Kasper; Nielsen, Jimmy Jessen; Harritsø, Kevin; Steffen, Rainer

Giancarlo Vasta, Magneti Marelli, Lucia Lo Bello, University of Catania,

Introduction to Queuing Systems

Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Perspectives on Network Calculus No Free Lunch but Still Good Value

Teletraffic theory (for beginners)

Kernel Korner. Analysis of the HTB Queuing Discipline. Yaron Benita. Abstract

MATLAB Expo Simulation Based Automotive Communication Design using MATLAB- SimEvent. Sudhakaran M Anand H General Motors

SIMULATION OF NETWORK USING TRUETIME TOOLBOX

TrueTime: Real-time Control System Simulation with MATLAB/Simulink

Calculating Call Blocking, Preemption Probabilities, and Bandwidth Utilization for Satellite Communication Systems.

Week 7: Traffic Models and QoS

Calculating Call Blocking and Utilization for Communication Satellites that Use Dynamic Resource Allocation

Formal Modeling and Analysis of Stream Processing Systems

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

Stochastic Processing Networks: What, Why and How? Ruth J. Williams University of California, San Diego

Impact of Traffic Aggregation on Network Capacity and Quality of Service

Network Model for Delay-Sensitive Traffic

MODELING OF SMART GRID TRAFFICS USING NON- PREEMPTIVE PRIORITY QUEUES

DetServ: Network Models for Real-Time QoS Provisioning in SDN-based Industrial Environments

Multimedia Communication Services Traffic Modeling and Streaming

The Design and Implementation of a Simulator for Switched Ethernet Networks*

Real-Time Protocol (RTP)

SEtSim: A Modular Simulation Tool for Switched Ethernet Networks

T-Spec Examples for Audio-Video Bridging. Osama Aboul-Magd

Lecture 14: M/G/1 Queueing System with Priority

CPU Scheduling. The scheduling problem: When do we make decision? - Have K jobs ready to run - Have N 1 CPUs - Which jobs to assign to which CPU(s)

Quality of Service (QoS)

2. Modelling of telecommunication systems (part 1)

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

EP2200 Queueing theory and teletraffic systems

PROBABILISTIC SCHEDULING MICHAEL ROITZSCH

On Generalized Processor Sharing with Regulated Traffic for MPLS Traffic Engineering

Dimensioning Links for IP Telephony

... 即時控制系統設計 Design of Real-Time Control Systems. Real-Time Control Systems. Lecture 32 Introduction to Networked Control Systems.

EP2200 Queueing theory and teletraffic systems

Analysis of AADL Models Using Real-Time Calculus With Applications to Wireless Architectures

DDSS: Dynamic Dedicated Servers Scheduling for Multi Priority Level Classes in Cloud Computing

Lecture 24: Scheduling and QoS

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

048866: Packet Switch Architectures

Architecture Modeling and Analysis for Embedded Systems

Numerical approach estimate

LECTURE 3:CPU SCHEDULING

Introduction: Two motivating examples for the analytical approach

Stochastic Delay Analysis for Protocols with Self-similar Traffic

Prioritized Access in a Channel-Hopping Network with Spectrum Sensing

Chapter 9 Selected Examples. Queues with Reneging

Application of Network Calculus to the TSN Problem Space

Advanced Internet Technologies

Resource Sharing for QoS in Agile All Photonic Networks

Tomorrow s In-Car Interconnect? A Competitive Evaluation of IEEE AVB and Time-Triggered Ethernet (AS6802) NET

EP2210 Scheduling. Lecture material:

ECE 544 Computer Networks II Mid-Term Exam March 29, 2002 Profs. D. Raychaudhuri & M. Ott

Window Flow Controller and Subadditivity

Properties of Processes

Real-Time Task Scheduling for Distributed Embedded System using MATLAB Toolboxes

Chapter -5 QUALITY OF SERVICE (QOS) PLATFORM DESIGN FOR REAL TIME MULTIMEDIA APPLICATIONS

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Master Course Computer Networks IN2097

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Concurrent activities in daily life. Real world exposed programs. Scheduling of programs. Tasks in engine system. Engine system

Connection-Level Scheduling in Wireless Networks Using Only MAC-Layer Information

Burst-mode Transceivers and Differentiated Classes of Service for PON. Dr. Monir Hossen ECE, KUET

Master Course Computer Networks IN2097

CSCE Operating Systems Scheduling. Qiang Zeng, Ph.D. Fall 2018

ECE SPRING NOTE; This project has two parts which have different due dates.

Experimental evaluation of end-to-end delay in switched Ethernet application in the automotive domain

Kommunikationssysteme [KS]

EC1009 HIGH SPEED NETWORKS UNIT - I HIGH SPEED NETWORKS

CPU Scheduling. The scheduling problem: When do we make decision? - Have K jobs ready to run - Have N 1 CPUs - Which jobs to assign to which CPU(s)

End-to-End Mechanisms for QoS Support in Wireless Networks

EP2200 Performance analysis of Communication networks. Topic 3 Congestion and rate control

8: Scheduling. Scheduling. Mark Handley

Where Are We? Basics: Network Classification Network Architecture Reliable Data Transfer Delay Models Implementation: Protocol Design

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Scheduling Algorithms to Minimize Session Delays

B. Bellalta Mobile Communication Networks

CPU Scheduling. Daniel Mosse. (Most slides are from Sherif Khattab and Silberschatz, Galvin and Gagne 2013)

Scheduling Mar. 19, 2018

TELCOM 2130 Queueing Theory. David Tipper Associate Professor Graduate Telecommunications and Networking Program. University of Pittsburgh

Impact of Source Counter on Routing Performance in Resource Constrained DTNs

OS 1 st Exam Name Solution St # (Q1) (19 points) True/False. Circle the appropriate choice (there are no trick questions).

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Episode 5. Scheduling and Traffic Management

Quality of Service (QoS)

Real-time Performance Evaluation of Line Topology Switched Ethernet

A Predictable RTOS. Mantis Cheng Department of Computer Science University of Victoria

On the Use of Greedy Shapers in Real-Time Embedded Systems

Chair for Network Architectures and Services Prof. Carle Department of Computer Science Technische Universität München.

DetServ: Network Models for Real-Time QoS Provisioning in SDN-based Industrial Environments

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

The Network Layer and Routers

of-service Support on the Internet

Cloud Control with Distributed Rate Limiting. Raghaven et all Presented by: Brian Card CS Fall Kinicki

An efficient and simple class of functions to model arrival curve of packetised flows

Discrete Event (time) Simulation

Transcription:

An example based course curriculum for Performance Evaluation in Distributed Real Time Systems Henrik Schiøler and Thomas Kølbæk Jespersen Aalborg University Denmark WoNeCA 2018

Purpose Theoretical framework -> Engineering Community user friendly tools co-existence with other methodologies Analysis vs Simulation cooperation with other methodologies Queueing theory vs Network Calculus dissemination to the educational sector Course curriculum for engineering Cooperation projects with industry

Course Curriculum: Distributed Real Time Systems Network Calculus Queueing theory Discrete event (stochastic) simulation (Reliability Modelling and Analysis) Mixed traffic on in-car network: Ethernet vs CANbus. RTC toolbox for MATLAB (ETH) CyNC toolbox for SimuLink OmNet++ TrueTime for SimuLink. (Lund Uni) Mock-up network Arduino Teensy + FlexCAN library. 3 pillars: Analysis Simulation Experiments

DNC Curricula (AAU vs DISCO) AAU Arrival curves: periodic (wj), spacing, affine, T-spec Service: Strict vs abstract, fluid, delay, rate-delay Theory: inf+, sup-,sub (super) additive closure Delay-, backlog-, output-bounds Prioritized ((non)pre-emptive) service. DISCO MinPlusAlgebra Network Calculus Part I Network Calculus Part II Network Calculus Part III Timed Automata

Example Networks CANbus

Communication Pattern Network elements 1MBps CANbus W{1,2,3,4}: wheel sensors measuring wheel position for ABS and EPS. EPS: Electronic Power Steering EC: Engine Controller HUD: Head Up Display MM: Multimedia system RC: Rear Camera Transmission pattern W{1,2,3,4} -> ESP ESP -> EC MM -> HUD RC -> HUD

Traffic characteristics Flow Period / Mean period Packet Size Pattern W(1-4) 10 ms 20B Periodic ESP 10 ms 8B Periodic RC 40 ms 1400B Poisson MM 40 ms 1400B Poisson

Ethernet Switch model Switch fabric is assumed infinitely fast Only store and forward delay in input queues When stored packets are moved instantly to output queues Queueing disciplines affect only output queues FIFO or FP scheduling

CANbus Model Bandwidth: 1Mbps CSMA/CA with prefix priority Non-preemptive Fixed Priority Scheduling Non-preemptive -> Head of Line Blocking (HoL)

Cyclic Network Calculus (CyNC) a toolbox for MATLAB SimuLink

Cyclic Network Calculus (CyNC) Cyclic dependence Cyclic flow patterns Service/flow counter propagation

RTC/CyNC implementation of CANBus FP scheduling HoL GPC W1..4 GPC a_in = rtcpjd(3, 0, 0); b_in = rtctdma(2, 7, 4); ed = 3; [a_out b_out del buf] = rtcgpc(a_in, b_in, ed); EC ESP GPC GPC RC, MM GPC

RTC/CyNC implementation of EtherNet FIFO scheduling a1_in = rtcpjd(3, 0, 0); a2_in = rtcpjd(7, 0, 0); b_in = rtctdma(3, 7, 4); ed1 = 3; ed2 = 1; [a1_out del1 buf1 a2_out del2 buf2 b_out] = rtcfifo(a1_in, ed1, a2_in, ed2, b_in);

Aperiodic Streams MM and RC Modeled as Poisson arrivals!? Filtered through token/leaky buckets One token one packet Boudec: Netw. Calc.

Separation of Domains T M λ, P α(t) = t * P/T + M*P L Probabilistic /stochastic domain Non-deterministic domain

Delays and Backlogs

Probabilistic Analysis Mean backlogs Mean waiting times Packet loss probabilities M/M/1/L+M queueing system with warping Erlang B formula: π n = (λt) n / (n! (Σ i (λt) i / i!) P loss = π L+M Discrete Time embedded Markov chain with warping

Discrete Time Embedded Markov Chain for Periodic Transfer

Probabilistic Analysis Warping π 0 = π 0 + π 1 +.. + π M π' n = π n+m P loss = π L+M = π L Q = Σ i i π i W = (1- P loss )Q / λ P loss depends only on L+M Higher L more waiting less M (burst) Lower L less waiting higher M (burst)

Simulation with TrueTime

The TT kernel function generator_init % Initialize TrueTime kernel ttinitkernel('priofp'); % scheduling policy - fixed priority starttime = 0.0; % Poisson generator task ttcreatetask( generator_task', starttime, generator_code'); %First job ttcreatejob('generator_task', ttcurrenttime)

The TT task function [exectime, data] = generator_code(seg) %independent exponentially distributed inter arrival time lambda=10; %intensity parameter u=rand(); T=-log(1-u)/lambda; %inverse fct method %Send message on CANbus interface with highest priority to node ID 4 priority = 0; msg = [ttcurrenttime]; % message with timestamp for E2E delay statistics ttsendmsg([14], msg, 250, priority); %order next transmission ttcreatejob( generator_task',ttcurrenttime+t) exectime = -1; %job done no CPU resources used

TT Backlog and Tokens

TT CANbus Network Schedules

TT E2E delays

CANbus Test Delays

Loss Probabilities

CANbus Delays - MM