Specification, Design and Verification of Distributed Embedded Systems
Mani Chandy John Doyle Richard Murray (PI) California Institute of Technology Eric Klavins Pablo Parrilo
- U. Washington MIT .
Project Overview: S5 June 2 2009
1
Specification, Design and Verification of Distributed Embedded - - PowerPoint PPT Presentation
Specification, Design and Verification of Distributed Embedded Systems Mani Chandy John Doyle Richard Murray (PI) California Institute of Technology Eric Klavins Pablo Parrilo U. Washington
Mani Chandy John Doyle Richard Murray (PI) California Institute of Technology Eric Klavins Pablo Parrilo
Project Overview: S5 June 2 2009
1
Caltech/MIT/UW V&V MURI: S5 June 2 2009 2
Principal Investigators
Partners
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009 6
State space and transitions have discrete and continuous components
PCHA setup
Proof technique: verify invariant (safe) set via barrier functions
trajectories to live within appropriate sets
invariant sets I1 → I2, etc
Wongpiromsarn, Mitra and M HSCC09
Caltech/MIT/UW V&V MURI: S5 June 2 2009
System consists of Agents System executes in Rounds
time State of the Multi-Agent System
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Broadcast Channel
Assumptions
received
receives messages from j infinitely often
Caltech/MIT/UW V&V MURI: S5 June 2 2009 9
Find planner (logic + path) to solve general control problem
Basic idea
⇒ if state starts in , must transition through on way to goal
through; is intermediate (fixed horizon) goal
Properties
Wongpiromsarn, Topcu and M CDC 09 (s)
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Sam’s best response function State: (x, y): Ben’s state is x; Sam’s state is y Ben’s best response function Ben’s state Sam’s state System state
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009 13
Task 1: Formal specification of Network Control Algorithms
domain specific language for their specs.
allow specification of networked systems by describing changing network topology via local rewrite rules.
Task 2: Reasoning about complex stochastic processes
characterized by stochastic processes with enormous state spaces.
search is impossible.
be given a metric, so that the Wasserstein distance between processes, can be determined.
Results: Embedded Graph Grammars
grammar specification language
proved correct.
Results: Verification of Stochastic Processes
approximation of the Wasserstein distance from data and/or large models.
finding simple models that explain complex data.
model structure investigated.
Illustrative Example: Find k to minimize the Wasserstein distance between the following processes.
Caltech/MIT/UW V&V MURI: S5 June 2 2009 14
problems,” submitted to CDC2007.
Goal: efficient tests
using only moves from a given finite set? (word problem for finite semi-Thue systems, generally undecidable)
infinite graph reachability, Petri nets, etc.
reachability? Approach: symbolic-numeric
symmetric versions
membership and nonnegativity
considerations Results to date
identities and nonnegativity constraints
(LP) conditions
finitely many point-to-point problems
relaxations, that do not rely on commutativity assumptions
Caltech/MIT/UW V&V MURI: S5 June 2 2009 15
Ahmadi, Parrilo (MIT)
Goal: stability and performance
relies on monotone invariants (e.g., energy)
requiring high algebraic complexity
assumption? Approach: convexity-based
combinations of time derivatives
polynomial nonnegativity
by convex optimization
Results to date
by SOS/semidefinite programming
standard conditions
vector Lyapunov functions)
discrete/continuous/hybrid/switched, etc.
Functions for Stability of Discrete Time Nonlinear and Switched Systems,” CDC2008, journal version in preparation. Complicated V Simpler V
x1 x2
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Thread Thread Thread
…
Multi-threaded processing component Shared input/
Thread Thread Thread
…
Shared input/output queue Thread Thread Thread
…
Multi-threaded sensor Multi-threaded responder Communication layer Communication layer Shared input/
System A System X
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Registration Security Updates Pattern Detection Anomaly Detection Aberrant Behavior Load Balancing Snapshot Web Service Processing Email Transmission Aberrant Behavior Regex/Xpath Filter Time Window Calculations Aberrant Behavior Logging Clocking Load Balancing Snapshot Logging Clocking Load Balancing Snapshot Logging Clocking Load Balancing Snapshot Logging Clocking Control Functions Pattern Detection Common Network Usage Transformations
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Hand transformation from PVS to Java Example:
Program transformation
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009 23
Goal: safe vehicle operation in multithreaded environment
interface; responsible for fail safe operation
passing, external events, internal failures
passing, failures, environment) complicate verification Approach: temporal logic + SOS
specification w/ continuous+ discrete vars Results to date
machines and messaging with TLA+, TLC
using PCHA formulation
planner using RHTL Program synergy
supported through DARPA 6.2 funds (18 FTE effort)
Caltech/MIT/UW V&V MURI: S5 June 2 2009 24
Toolbox development
Annual workshops/short courses
MURI and apply the design tools to simple problems
the required background to be effective practitioners and researchers in distributed embedded systems Personnel exchange
Additional workshops and tutorials
FUNDING ($K)—Show all funding contributing to this project
FY06 FY07 FY08 FY09 FY10 AFOSR Funds 417 1000 1000 1000 1000 Boeing 310 390 390 370 [390] DARPA GC 1200
TRANSITIONS
STUDENTS, POST-DOCS
2006-08: 12 graduate students, 4 postdocs, 4 undergraduates
LABORATORY POINT OF CONTACT
APPROACH/TECHNICAL CHALLENGES
ACCOMPLISHMENTS/RESULTS Embedded graph grammars for cooperative control Lyapunov-based verification of temporal properties Stochastic games using semidefinite programming Tools for converting goal networks to hybrid FSM Applications examples with DARPA GC + JPL Long-Term PAYOFF: Rigorous methods for design and verification of distributed systems-of-systems in dynamic, uncertain, adversarial environments OBJECTIVES
control policies, communications protocols and environment models (including faults)
proof certificates for correct operation
Net-Centric Battlespace Management
Specification, Design and Verification of Distributed Embedded Systems Caltech/MIT/UW, Murray (PI)/Chandy/Doyle/Klavins/Parrilo
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Caltech/MIT/UW V&V MURI: S5 June 2 2009 32
Goal: understand information flow
information flow in terms of partially
decentralized control design? Approach: incidence algebras
generalize notions of causality
control problems. Relations with quadratic invariance.
Results to date
nested structures (e.g., leader-follower)
preserving controllers, via Youla
rich algebraic and combinatorial tools
situations, via Galois connections
control,” CDC2008, CDC 2009 (submitted).
Caltech/MIT/UW V&V MURI: S5 June 2 2009
: states of the automaton : binary relation between states; : there exists a sequence of actions that takes the automaton from s to s’ : the ball with diameter and center s*
Caltech/MIT/UW V&V MURI: S5 June 2 2009
: states of the automaton : binary relation between states; : there exists a sequence of actions that takes the automaton from s to s’ : the ball with diameter and center s*
Caltech/MIT/UW V&V MURI: S5 June 2 2009
: totally ordered set < : action
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Condition
Caltech/MIT/UW V&V MURI: S5 June 2 2009 37
Specification and Reasoning Using Graph Grammars
& SPIN (Holzmann)
about them Sum of Squares Techniques (SOS)
certificates for nonlinear and hybrid systems Extensions
Testbeds
statements and verification of semi- algebraic conditions to coexist
specification and design language plus reasoning tools
Caltech/MIT/UW V&V MURI: S5 June 2 2009
Show a (Lyapunov) function that is non-increasing along all executions of the system Show a collection of Sets { Ri }i ∈N satisfying
Rk Rk+1 R0
s* s0 s0 s0 s0 s0 s′ s s′ s′ s