Path-aware Time-triggered Runtime Verification Samaneh Navabpour 1, Borzoo Bonakdarpour 2, Sebastian Fischmeister 1 1 Department of Electrical and Computer.

Slides:



Advertisements
Similar presentations
A Framework for describing recursive data structures Kenneth Roe Scott Smith.
Advertisements

System Development Project A project is a series of activities directed towards accomplishment of a desired objective. A project is a temporary endeavour.
NUVALI stands for new beginnings. Nova, Latin for birth of a star Valley a place of growth and abundance A fresh approach to balanced living emerges.
Evaluation and Validation
PROMETHEUS Intelligent Multi-Stage Energy Transfer System for Near Perpetual Sensor Networks Xiaofan JiangJoseph PolastreDavid Culler Electrical Engineering.
Page 1 Public holidays Unit 1 Its the last day before the new school year begins. Module 8.
Page th IETF – San Francisco, CA, March 2009 Framework for GMPLS and PCE Control of Wavelength Switched Optical Networks (WSON) Greg
Efficient Fast Re-route (FRR) using facility backup in ring topology by Sriganesh Kini and H. Autumn Liu draft-kini-mpls-ring-frr-facility-backup-00 IETF.
Energy-Efficient Distributed Algorithms for Ad hoc Wireless Networks Gopal Pandurangan Department of Computer Science Purdue University.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
1/25 Generic and Automatic Address Configuration for Data Center Networks 1 Kai Chen, 2 Chuanxiong Guo, 2 Haitao Wu, 3 Jing Yuan, 4 Zhenqian Feng, 1 Yan.
Dataflow: A Complement to Superscalar Mihai Budiu – Microsoft Research Pedro V. Artigas – Carnegie Mellon University Seth Copen Goldstein – Carnegie Mellon.
On the Critical Path of (Parallel) Computations Mihai Budiu March 30, 2005.
Fast Point-Feature Label Placement Algorithm for Real Time Screen Maps
Metro Region Lidar Project Peter Jenkins Minnesota Department of Transportation 1/13/2011.
Dry Run You can test your program without using a computer by dry running it on paper You act as the computer – following the instructions of the program,
Computational Complexity
Social Classification: The Making of the NS-SEC David Rose Institute for Social and Economic Research University of Essex
ESRC Methods Festival Resources to Analyse Occupations and Social Class: The NS-SEC David Rose Institute for Social and Economic Research University of.
Aberdeen City Council 2008 Staff Budget Briefing Summerhill Centre, Aberdeen 13 November 2008.
CONSTRUCTION DE LA SPIRALE DOR. Construire un rectangle dor L1 = 18,3 cm l 1 = 11,3 cm.
Incremental Clustering for Trajectories
314 th Log Cabin Dismantle Schematics & Inventory November 2012.
Concise representations of games Vincent Conitzer
Revised WE :23 EST Created WE Lesson 17a. Charging Procedure / Bringing Learners and Library Skills Together Copyright ©
EE5900 Advanced Embedded System For Smart Infrastructure
1 A Real-Time Communication Framework for Wireless Sensor-Actuator Networks Edith C.H. Ngai 1, Michael R. Lyu 1, and Jiangchuan Liu 2 1 Department of Computer.
Recovery Time of Degraded Throughput in Best-Effort CWDM Networks with ROADMs Graduate School of Engineering, Osaka Prefecture University, Japan Shogo.
JPEG2000 Parsing/Repackaging Examples
1 Fast Configurable-Cache Tuning with a Unified Second-Level Cache Ann Gordon-Ross and Frank Vahid* Department of Computer Science and Engineering University.
Anvaya Cove Ayala Land Premier.
Welcome to the course Introduction to ICT4D
Revised TH :50 EST Created MO Lesson 19a. Introduction to Course Reserves / Bringing Learners and Library Skills Together Copyright.
Revised TH :25 EST Created TH Lesson 19b. Course Reserve Procedures / Bringing Learners and Library Skills Together Copyright ©
Revised FR :35 EST Created WE Lesson 03. Library Resources / Bringing Learners and Library Skills Together Copyright ©
CRM digital v3.0 CRM digital v3.0 An Extension of CIDOC-CRM to support provenance metadata Martin Doerr, Maria Theodoridou FORTH-ICS, Greece January 2013.
Design and test of a prototype of a flex cable for high speed transmission Jan Buytaert (CERN), Daniel Esperante, Pablo Vázquez, Jevgenij Visniakov (USC)
Revised FR :58 ET Created SA Lesson 20a. Using Wireless Laptops / Bringing Learners and Library Skills Together Copyright ©
1 A latch is a pair of cross-coupled inverters –They can be NAND or NOR gates as shown –Consider their behavior (each step is one gate delay in time) –From.
1 ENGG 1015 Tutorial Revision tutorial 11 Dec Learning Objectives Prepare for the examination News Examination Closed book; Need to bring calculators SETL.
Slide 1Comarra Limited Slide 1 VCL E3, 2/34 PDH Multiplexer Slide 1Comarra Limited Slide 1 COMARRA Telecom Transmission Solutions VCL - 2/34.
Revised WE :02 ET Created WE Lesson 16a. Discharging Items / Bringing Learners and Library Skills Together Copyright ©
ITF11006.NET Øyvind Øhra vår Mål Kurset skal gjøre studentene i stand til å utvikle.NET- applikasjoner med Microsoft Visual Studio Kurset.
For(int i = 1; i
© 2003 Andrew Chang10/23/031 What Happens in a Fall? lFalling climber builds up momentum (force x time) lWhen climber is ‘stopped’ (either by rope/anchor.
There are two statistical tests for mean: 1) z test – Used for large samples (n ≥ 30) 1) t test – Used for small samples (n < 30)
Flexible Product Line Engineering With a Virtual Platform Michał Antkiewicz NIER Track, ICSE’14 June 5,
Lars Arge Gerth Stølting Brodal Algorithms and Data Structures Computer Science Day, Department of Computer Science, Aarhus University, May 31, 2013.
Permutations - Arrangements Working out the number of elements in a sample space without having to list them IntroductionIntro ExerciseFactorials Factorial.
Common Core: Engage New York 6.EE.1, 6.EE.2, 6.EE.3 and 6.EE.4
A comparison of the Geo-Stellar Fingerprints of the three Orion Belt Stars with the three stars that form the wings of the Cygnus Constellation. © Scott.
Introduction to Professional Experience Program Master of Teaching (Primary) School of Education (Victoria) January 2013.
A SYSTEMIC FUNCTIONAL MICRO-GRAMMAR OF SPANISH CLITICS Víctor M. Castel Conicet y UNCuyo, Mendoza, Argentina
Revised FR :07 EST Created WE Lesson 15. Interface and Patron Records / Bringing Learners and Library Skills Together Copyright.
Revised FR :05 EST Created WE Lesson 14. Introduction to the Ex Libris Voyager System / Bringing Learners and Library Skills Together.
L1 Juvenile Rheumatoid Arthritis Clinical Overview Daniel J. Lovell MD, MPH Levinson Professor of Pediatrics Division of Rheumatology Cincinnati Children’s.
Overview of the BLM families at collimators Matti Kalliokoski Joint CWG/BLMTWG Meeting 25/08/2014.
Art of Teaching (Pedagogy)
Revised FR :20 ET Created MO Lesson 22. Using the MountainLynx Electronic Catalog / Bringing Learners and Library Skills Together.
PLATO - TOU Thermal analyses Summary of previous thermal analyses performed in S.Basso – F. Borsa (I.N.A.F. – Osservatorio Astronomico di Brera)
Revised WE :45 EST Created SA Lesson 07. Shelf Straightening / Bringing Learners and Library Skills Together Copyright ©
Idan Zaguri Ran Tayeb 2014 Parallel Random Number Generator.
Target code Generation Made by – Siddharth Rakesh 11CS30036 Date – 12/11/2013.
Information Extraction for Real-time Embedded Systems Sebastian Fischmeister University of Waterloo esg.uwaterloo.ca 1.
1 Software Testing and Quality Assurance Lecture 41 – Software Quality Assurance.
The Structure of the CPU
Uses some of the slides for chapters 3 and 5 accompanying “Introduction to Parallel Computing”, Addison Wesley, 2003.
Assessment Activities
Supporting Fault-Tolerance in Streaming Grid Applications
Shortest-Paths Trees Kun-Mao Chao (趙坤茂)
Presentation transcript:

Path-aware Time-triggered Runtime Verification Samaneh Navabpour 1, Borzoo Bonakdarpour 2, Sebastian Fischmeister 1 1 Department of Electrical and Computer Engineering 2 School of Computer Science University of Waterloo

Runtime Verification 2 Observation Report Steering Runtime Verification Framework

Event-triggered Monitoring Jittery overhead Bursts of invocations of the observer 3 1 B. Bonakdarpour, S. Navabpour, and S. Fischmeister, Sampling-based Runtime Verification, , FM11

Alternative Monitoring Approach Goals for the monitoring approach: Predictable monitoring Bounded overhead at each intervention 4

Problem of Time-triggered Monitoring 5 L1 L2L3L4L5L6 L7 L8L9L10 L11 L12L13L14L15L16 L17 m Program Execution Monitor L18 L19 Sample from monitor Critical instruction Sampling period = 2 m …… Achieving sound state reconstruction 1 1 B. Bonakdarpour, S. Navabpour, and S. Fischmeister, Sampling-based Runtime Verification, , FM11

Longest Sampling Period (LSP) 6 C16C A D5D5 C27C27 1 C38C38 C49C B 1 10 B Longest Sampling Period (LSP) 1 : is the minimum shortest path between two critical nodes 1. fib(int n) { 2. int i, Fnew, Fold, temp,ans; 3. Fnew = 1; Fold = 0; 4. i = 2; 5. while( i <= n ) { 6. temp = Fnew; 7.* Fnew = Fnew + Fold; 8.* Fold = temp; 9. i++; } 10.* ans = Fnew; 11. return ans;} 1 B. Bonakdarpour, S. Navabpour, and S. Fischmeister, Sampling-based Runtime Verification, , FM11

Cause of Redundant Sampling Using complete CFG to calculate LSP 7 C16C A D5D5 C27C27 1 C38C38 C49C B 1 10 B LSP path1 = 1LSP path2 = 5 LSP = 1 optimal LSP 6 samples Path 2 LSP path2 1 samples 84% reduction in samples path1 Not optimal path2

Path-aware Time-triggered Monitoring 1.Predict execution path 2.Calculate LSP using only predicted path 8 C16C A D5D5 C27C27 1 C38C38 C49C B 1 10 B path2 LSP = 5

Path Prediction Function 1.Predict execution path 9 Path prediction function Implement path prediction function using symbolic execution Execution path 1Path constraint 1 Execution path 2Path constraint 2 ……. Execution path nPath constraint n 1.Symbolize inputs. 2. Create table. 3. Check path constraints Environment

Adaptive Path-aware Time-triggered Monitoring Hypothetical execution path: 10 C16C A D5D5 C27C27 1 C38C38 C49C B 1 10 B LSP = 1LSP path3 = 1 region1 LSP= 5 region2 LSP= 1 18 samples 7 samples path 3 = region1 region2

LSP Regions An LSP region is a set of subpaths of an execution path: the same paLSP each subpath is maximal Regionalization objectives: 1.Reducing the number of LSP regions 2.Reducing the number of samples 3.Maintaining the absolute jitter of paLSP 11

Regionalization Algorithm 12 A W1W1 W2W2 W3W3 B C D E F A B C D E F A B C D E F A B C D E F A B C D E F

General Regionalization Can have different regions for different subpaths: 13 A BC D Path 1 A B F Path E LSP = 5 LSP = 10 LSP = 1

Tool Chain 14

Assumptions Limited to programs handled by KLEE Program is sequential Program runs on a single processor 15

Handling KLEE Limitations Concretization: Extract the instruction where concretization happens Find the node containing the instruction in CFG Append following sub-CFG to executed path 16 … … … …

Handling KLEE Limitations (cont) Incomplete paths: Extract the last executed instruction Find the node containing the last executed instruction in CFG Append following sub-CFG to executed path 17 … … … …

Reducing Table Size 18

Reducing Table Size KLEE patch: extracting unique paths: Table Compressor Remove entries that do not improve LSP. 19 Path with loop sequence Consecutive occurrences of Reduce consecutive occurrences to

Tool Chain (cont) Table Compressor: Implication Reduction: 20 A C1C1 B1B1 E1E1 E2E2 B2B2 B3B3 Z C2C2 C3C3 D1D1 D2D2 D3D3 D4D4 D5D5 D6D6 D7D7 D8D paLSP = 1 paLSPPCLSP Regions 1

Experimental Settings We use programs from SNU benchmark We run the program and monitor on MCB1700 board with RTX OS Time-triggered monitoring modes: Fixed-LSP Path-aware LSP Adaptive path-aware LSP ( ) History B. Bonakdarpour, S. Navabpour, and S. Fischmeister, Sampling-based Runtime Verification, , FM11

Experimental Settings (cont) Metrics for evaluation: 1.The values of the fixed LSP, paLSP, and adaptive paLSP 2.The number of redundant samples taken at run time by the monitor 3.The execution time of the monitored program. This value projects the amount of monitoring overhead 22

Values of paLSP and Adaptive paLSP 23 paLSP increases sampling period 2.4 times Adaptive paLSP increases sampling period 3.3 times

Redundant Samples of paLSP and Adaptive paLSP 24 paLSP decreases redundant samples by 44.8% Adaptive paLSP decreases redundant samples by 64%

Monitoring Overhead of paLSP and Adaptive paLSP 25 paLSP reduces monitoring overhead by 34% Adaptive paLSP reduces monitoring overhead by 51% 78% reduction in redundant samples Overhead of adaptive paLSP more than paLSP

Monitoring Overhead of paLSP and Adaptive paLSP with History 26 66% of paLSP+history has less overhead than event-triggered 75% adaptive paLSP+history has less overhead than event- triggered

Summary Sampling period must be devised based on execution path of the program (paLSP). Redundant samples can be further reduced when sampling period changes dynamically at runtime (adaptive paLSP). By merging history and paLSP or adaptive paLSP, we achieve a monitor suitable for time sensitive systems. Predictable monitoring Bounded overhead Imposes less overhead than event-triggered 27

Thank you Questions? 28

Future Work Creating a time-triggered monitor for component-based models Combining SMCO with time-triggered monitoring Using symbolic execution to combine event-triggered with time-triggered monitoring 29

Reduce over provisioning 30 Reduced over provisioning 1 1 B. Bonakdarpour, S. Navabpour, and S. Fischmeister, Sampling-based Runtime Verification, , FM11

Reducing Redundant Samples Using History Use auxiliary memory to avoid redundant samples LSP = 6 31 L1 L2L3L4L5L6 L7 L8L9L10 L11 L12L13L14L15L16 L17 Program Execution Monitor L18 L19 Longest Sampling Period (LSP) = 2 ….. x = 2 x = 10 x = 5 … … 51015

Regionalization Algorithm 32 A W1W1 W2W2 W3W3 B C D E F A B C D E F A B C D E F A B C D E F

33 W1W1 W2W2 W3W3 Regionalization Algorithm (cont) A B C D E F A B C D E F A BC D E F A BC D E F

34 W1W1 W2W2 W3W3 Regionalization Algorithm (cont) A B C D E F A B C D E F A B C D E F A B C D E F