26
Lei Bu Nanjing University [email protected] Joint Work with Qixin Wang and Xuandong Li September 20 th Clarke Symposium 2014 Online Hybrid Automata Verification of Dynamical Cyber-Physical System

Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

  • Upload
    dohanh

  • View
    222

  • Download
    3

Embed Size (px)

Citation preview

Page 1: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Lei Bu Nanjing University [email protected]

Joint Work with Qixin Wang and Xuandong Li

September 20th, Clarke Symposium 2014

Online Hybrid Automata Verification of Dynamical Cyber-Physical System

Page 2: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Congratulation to Ed!

n  I was a visiting student in Ed’s group Sep 07-Sep 08

n  Great Mentor, I learned a lot from here

n  E.g. Cyber-Physical System

Page 3: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Outline

n  Motivation n  Offline Modeling and Verification? n  Online Modeling and Verification n  Conclusion

Page 4: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Outline

n  Motivation n  Offline Modeling and Verification? n  Online Modeling and Verification n  Conclusion

Page 5: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Motivation

n  Cyber-Physical System

n  Safety-Critical Area

n  Verification

Page 6: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

w 123

Motivating Example 1

Ø  Communication-Based Train Control System

Continuous communication Train with continuous communication

Movement authority

Rear safety distance

Safe braking distance

Page 7: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Train Control System

¡  Train communicates with RBC for new MA by 500ms. ¡  If a train touches a SBD point, brake normally. ¡  If a train has not get any info for 5s, brake emergently!

n  Specification ¡  No Collision!

Page 8: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Motivating Example 2

n  Medical Cyber Physical System

Page 9: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Safety Rule ¡  Safety Rule1: when the laser scalpel emits laser, the patient’s trachea

oxygen level must not exceed a threshold Fire! ¡  Safety Rule2: the patient’s blood oxygen level never reaches below a

threshold Suffocation!

ΘO2

ΘSpO2

Page 10: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Outline

n  Motivation n  Offline Modeling and Verification? n  Online Modeling and Verification n  Conclusion

Page 11: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Train

Discrete Logic Control

Continuous Realtime Behavior

Hybrid Behavior

Page 12: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Hybrid Automata ¡  Discrete Logic Transition ¡  Continuous Real-Timed Behavior ¡  Most Natural Model for CPS System

n  Our Target ¡  Model the Target CPS Systems by HA ¡  Verify it by Model Checking

Page 13: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Modeling

Specification: Location: Sbraking; Constraint: Traini.x>ma Problem: Lots of Free Parameters Included in the control functions: Windspeed , train mass, raining, etc..

Page 14: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System
Page 15: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System
Page 16: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System
Page 17: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Blood oxygen level is strongly affected by complex human body biochemical reactions, even emotions. No way to model in a long run SpO2

Page 18: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Outline

n  Motivation n  Offline Modeling and Verification n  Online Modeling and Verification n  Conclusion

Page 19: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Online periodical real-time hybrid systems model checking of time-bounded (i.e., short-run) future!

Challenge 1 : No good offline long run models for nondeterministic parameters .

Challenge 2: Verification state space easily explode.

Traditional model checking vs. Ours:

Offline çè Online Periodical Real-Time

Long-Run Future çè Short-Run Future

After the key parameters’ values are fixed, the system’s online short-run behavior is easy to predict.

Online à Fixes Many Parameters

Short-Run à Shrink State Space

Solution

Page 20: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

System Control

Page 21: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Performance Issue

n  Periodically online verification -> Have to Be Fast!

n  The model updates every T time unit, if we can not finish the online modeling and verification in D time unit, the result will be useless

Page 22: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Multicore Assignment Distribution

n  Incremental Online Verification

n  Our Own Tool BACHOL…

Page 23: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Evaluation

Train Control System Laser Scalpel 10 train 109ms< 500ms 932ms <4 s (The first number is the mean value, the second number is the updating period ) ICCPS 11 WIP, ICCPS 12, DSN 13, TPDS �

Page 24: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

n  Motivation n  Offline Modeling and Verification n  Online Modeling and Verification n  Conclusion

Page 25: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

Conclusion

n  Offline M&V à Online M&V

n  Non-deterministic -> Periodically deterministic

n  Fast Verification

n  Ongoing Work ¡  Pipeline Design Based State Space Coverage

Page 26: Online Hybrid Automata Verification of Dynamical …emc/2014/speakers/LeiBuEMC14.pdfOnline Hybrid Automata Verification of Dynamical ... # Communication-Based Train Control System

w 14-9-20 w 26