Stochastic Hybrid Systems: Modeling, analysis, and applications to networks and biology

Similar documents
Stochastic Hybrid Systems: Applications to Communication Networks

Stochastic Hybrid Systems: Applications to Communication Networks

Networked Control System Protocols Modeling & Analysis using Stochastic Impulsive Systems

Why Should I Care About. Stochastic Hybrid Systems?

Controlo Switched Systems: Mixing Logic with Differential Equations. João P. Hespanha. University of California at Santa Barbara.

Switched Systems: Mixing Logic with Differential Equations

Polynomial Stochastic Hybrid Systems

Lognormal Moment Closures for Biochemical Reactions

Moment Closure Techniques for Stochastic Models in Population Biology

STOCHASTIC MODELING OF BIOCHEMICAL REACTIONS

Communication constraints and latency in Networked Control Systems

Hybrid Control and Switched Systems. Lecture #1 Hybrid systems are everywhere: Examples

Hybrid Control and Switched Systems. Lecture #9 Analysis tools for hybrid systems: Impact maps

Stochastic Hybrid Systems: Application to Communication Networks

Stochastic Hybrid Systems: Recent Developments and Research Trends

Efficient Leaping Methods for Stochastic Chemical Systems

STOCHASTIC CHEMICAL KINETICS

A Priori Detection of Zeno Behavior in Communication Networks Modeled as Hybrid Systems

MODELING AND ANALYSIS OF STOCHASTIC HYBRID SYSTEMS

NONLINEAR CONTROL with LIMITED INFORMATION. Daniel Liberzon

UNIVERSITY of CALIFORNIA Santa Barbara. Communication scheduling methods for estimation over networks

HYBRID AND SWITCHED SYSTEMS ECE229 WINTER 2004

A Stochastic Model for TCP with Stationary Random Losses

Hybrid Control and Switched Systems. Lecture #11 Stability of switched system: Arbitrary switching

PIQI-RCP: Design and Analysis of Rate-Based Explicit Congestion Control

Extending the Tools of Chemical Reaction Engineering to the Molecular Scale

TCP over Cognitive Radio Channels

Nonlinear Systems and Control Lecture # 12 Converse Lyapunov Functions & Time Varying Systems. p. 1/1

Fast Probability Generating Function Method for Stochastic Chemical Reaction Networks

Simulation methods for stochastic models in chemistry

c 2005 Society for Industrial and Applied Mathematics

Delay-independent stability via a reset loop

Modeling and Analysis of Networked Control Systems using Stochastic Hybrid Systems

Gillespie s Algorithm and its Approximations. Des Higham Department of Mathematics and Statistics University of Strathclyde

Networked Control Systems: Estimation and Control over Lossy Networks

Analysis of Scalable TCP in the presence of Markovian Losses

STABILITY PROPERTIES OF RESET SYSTEMS

Analysis of Rate-distortion Functions and Congestion Control in Scalable Internet Video Streaming

Modelling an Isolated Compound TCP Connection

Electrical Engineering Written PhD Qualifier Exam Spring 2014

Hybrid Control and Switched Systems. Lecture #8 Stability and convergence of hybrid systems (topological view)

L 2 -induced Gains of Switched Systems and Classes of Switching Signals

Resource Allocation and Pricing. R. Srikant University of Illinois

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas

Introduction to multiscale modeling and simulation. Explicit methods for ODEs : forward Euler. y n+1 = y n + tf(y n ) dy dt = f(y), y(0) = y 0

Stability of the two queue system

Optimal Communication Logics in Networked Control Systems

Dynamic Risk Measures and Nonlinear Expectations with Markov Chain noise

Capacity-achieving Feedback Scheme for Flat Fading Channels with Channel State Information

Capturing Network Traffic Dynamics Small Scales. Rolf Riedi

cs/ee/ids 143 Communication Networks

Modeling Impact of Delay Spikes on TCP Performance on a Low Bandwidth Link

Quasi Stochastic Approximation American Control Conference San Francisco, June 2011

Hybrid Systems Course Lyapunov stability

Modeling Chemical Reactions with Single Reactant Specie

Networked Control Systems:

CDS 270-2: Lecture 6-1 Towards a Packet-based Control Theory

Stochastic Simulation.

Analysis of different Lyapunov function constructions for interconnected hybrid systems

The Age of Information in Networks: Moments, Distributions, and Sampling

1 Lyapunov theory of stability

Reliable Data Transport: Sliding Windows

AQUANTIZER is a device that converts a real-valued

Hybrid Systems - Lecture n. 3 Lyapunov stability

The Adaptive Explicit-Implicit Tau-Leaping Method with Automatic Tau Selection

A Mathematical Model of the Skype VoIP Congestion Control Algorithm

Compound TCP with Random Losses

A Signal Processing Approach to the Analysis of Chemical Networking Protocols

Hybrid Control and Switched Systems. Lecture #7 Stability and convergence of ODEs

An Introduction to Stochastic Simulation

Stability of networked control systems with variable sampling and delay

Window Flow Control Systems with Random Service

Methodology for Computer Science Research Lecture 4: Mathematical Modeling

arxiv: v1 [cs.sy] 30 Sep 2015

Gramians based model reduction for hybrid switched systems

Matthew Zyskowski 1 Quanyan Zhu 2

Towards control over fading channels

Compound TCP with Random Losses

Hybrid Systems Techniques for Convergence of Solutions to Switching Systems

Positive Harris Recurrence and Diffusion Scale Analysis of a Push Pull Queueing Network. Haifa Statistics Seminar May 5, 2008

communication networks

Stochastic Network Calculus

A Toolbox of Hamilton-Jacobi Solvers for Analysis of Nondeterministic Continuous and Hybrid Systems

NEW CONGESTION CONTROL SCHEMES OVER WIRELESS NETWORKS: STABILITY ANALYSIS. Minghua Chen Alessandro Abate Shankar Sastry

Stabilisation of network controlled systems with a predictive approach

Symbolic Control of Incrementally Stable Systems

A Novel Integral-Based Event Triggering Control for Linear Time-Invariant Systems

IN THIS PAPER, we describe a design oriented modelling

Nonlinear Instabilities in TCP-RED

384Y Project June 5, Stability of Congestion Control Algorithms Using Control Theory with an application to XCP

Efficient Nonlinear Optimizations of Queuing Systems

Feedback Control CONTROL THEORY FUNDAMENTALS. Feedback Control: A History. Feedback Control: A History (contd.) Anuradha Annaswamy

Tuning the TCP Timeout Mechanism in Wireless Networks to Maximize Throughput via Stochastic Stopping Time Methods

Event-Triggered Decentralized Dynamic Output Feedback Control for LTI Systems

Mellin Transforms for TCP Throughput with Applications to Cross Layer Optimization

ROBUST QUANTIZED H CONTROL FOR NETWORK CONTROL SYSTEMS WITH MARKOVIAN JUMPS AND TIME DELAYS. Received December 2012; revised April 2013

Towards the Control of Linear Systems with Minimum Bit-Rate

Performance Evaluation of Generalized Polynomial Chaos

Min Congestion Control for High- Speed Heterogeneous Networks. JetMax: Scalable Max-Min

Introduction to Nonlinear Control Lecture # 3 Time-Varying and Perturbed Systems

Transcription:

research supported by NSF Stochastic Hybrid Systems: Modeling, analysis, and applications to networks and biology João P. Hespanha Center for Control Engineering and Computation University of California at Santa Barbara Talk outline 1. A model for stochastic hybrid systems (SHSs) 2. Examples: network traffic under TCP networked control systems 3. Analysis tools for SHSs Lyapunov moment dynamics 4. More examples Collaborators: Stephan Bohacek (U Del), Katia Obraczka (UCSC), Junsoo Lee (Sookmyung Univ.), Mustafa Khammash (UCSB) Students: Abhyudai Singh (UCSB), Yonggang Xu (UCSB) Disclaimer: This is an overview, details in papers referenced 1

Deterministic Hybrid Systems continuous dynamics guard conditions reset-maps q(t) Q={1,2, } discrete state x(t) R n continuous state right-continuous by convention we assume here a deterministic system so the invariant sets would be the exact complements of the guards Stochastic Hybrid Systems continuous dynamics transition intensities (probability of transition in interval (t, t+dt]) reset-maps q(t) Q={1,2, } discrete state x(t) R n continuous state Continuous dynamics: Transition intensities: Reset-maps (one per transition intensity): 2

Stochastic Hybrid Systems continuous dynamics transition intensities (probability of transition in interval (t, t+dt]) reset-maps Special case: When all λ l are constant, transitions are controlled by a continuous-time Markov process q = 1 q = 2 specifies q (independently of x) q = 3 Formal model Summary State space: q(t) Q={1,2, } discrete state x(t) R n continuous state Continuous dynamics: Transition intensities: Reset-maps (one per transition intensity): # of transitions Results: 1. [existence] Under appropriate regularity (Lipschitz) assumptions, there exists a measure consistent with the desired SHS behavior 2. [simulation] The procedure used to construct the measure is constructive and allows for efficient generation of Monte Carlo sample paths 3. [Markov] The pair ( q(t), x(t) ) Q R n is a (Piecewise-deterministic) Markov Process (in the sense of M. Davis, 1993) [HSCC 04] 3

Stochastic Hybrid Systems with diffusion stochastic diff. equation transition intensities reset-maps Continuous dynamics: w Brownian motion process Transition intensities: Reset-maps (one per transition intensity): Example I: Transmission Control Protocol transmits data packets receives data packets server r network client packets dropped with probability p drop congestion control selection of the rate r at which the server transmits packets feedback mechanism packets are dropped by the network to indicate congestion 4

Example I: TCP congestion control transmits data packets receives data packets server r network client packets dropped with probability p drop congestion control selection of the rate r at which the server transmits packets feedback mechanism packets are dropped by the network to indicate congestion TCP (Reno) congestion control: packet sending rate given by congestion window (internal state of controller) round-trip-time (from server to client and back) initially w is set to 1 until first packet is dropped, w increases exponentially fast (slow-start) after first packet is dropped, w increases linearly (congestion-avoidance) each time a drop occurs, w is divided by 2 (multiplicative decrease) Example I: TCP congestion control # of packets already sent per-packet pckts sent drop prob. = pckts dropped per sec per sec TCP (Reno) congestion control: packet sending rate given by congestion window (internal state of controller) round-trip-time (from server to client and back) initially w is set to 1 until first packet is dropped, w increases exponentially fast (slow-start) after first packet is dropped, w increases linearly (congestion-avoidance) each time a drop occurs, w is divided by 2 (multiplicative decrease) 5

many SHS models for TCP long-lived TCP flows (no delays) on-off TCP flows (no delays) on-off TCP flows with delay long-lived TCP flows with delay [SIGMETRICS 03] Example II: Estimation through network process state-estimator x encoder white noise disturbance x(t 1 ) x(t 2 ) network decoder for simplicity: full-state available no measurement noise no quantization no transmission delays encoder logic determines when to send measurements to the network decoder logic determines how to incorporate received measurements 6

Stochastic communication logic process state-estimator x white noise disturbance x(t 1 ) x(t 2 ) encoder decoder network for simplicity: full-state available no measurement noise no quantization no transmission delays encoder logic determines when to send measurements to the network decoder logic determines how to incorporate received measurements Stochastic communication logic process state-estimator x encoder Error dynamics: white noise disturbance x(t 1 ) x(t 2 ) network decoder for simplicity: full-state available no measurement noise no quantization no transmission delays prob. of sending data in [t,t+dt) depends on current error e reset error to zero 7

Stochastic communication logic process state-estimator x encoder white noise disturbance x(t 1 ) x(t 2 ) network decoder with: measurement noise quantization transmission delay error at encoder side based on data sent prob. of sending data in [t,t+dt) depends on current encoder error e nec error at decoder side based on data received reset error to nonzero random variables [ACTRA 04] Example III: And now for something completely different Decaying-dimerizing chemical reactions (DDR): c 1 c 2 c 3 S 1 0 S 2 0 2 S 1 S 2 c 4 SHS model population of species S 1 reaction rates population of species S 2 Inspired by Gillespie s Stochastic Simulation Algorithm for molecular reactions [Gillespie, 76] 8

Example III: And now for something completely different Decaying-dimerizing chemical reactions (DDR): c 1 c 2 c 3 S 1 0 S 2 0 2 S 1 S 2 c 4 SHS model population of species S 1 Disclaimer: Several other important applications missing. E.g., air traffic control [Lygeros,Prandini,Tomlin] queuing systems [Cassandras] economics [Davis] reaction rates population of species S 2 Inspired by Gillespie s Stochastic Simulation Algorithm for molecular reactions [Gillespie, 76] Analysis Lie Derivative Given scalar-valued function ψ : R n [0, ) R derivative along solution to ODE L f ψ Lie derivative of ψ One can view L f as an operator space of scalar functions on R n [0, ) space of scalar functions on R n [0, ) ψ (x, t) a L f ψ(x, t) L f completely defines the system dynamics 9

Generator of a SHS continuous dynamics transition intensities reset-maps Given scalar-valued function ψ : Q R n [0, ) R generator for the SHS where instantaneous variation Dynkin s formula (in differential form) Lie derivative intensity reset term diffusion term L completely defines the SHS dynamics Disclaimer: see following paper for technical assumptions [HSCC 04] Generator of the SHS with diffusion Given scalar-valued function ψ : Q R n [0, ) R x dt E.g. where Attention: These systems may have problems of existence of solution due to jumps! ẋ = 0 (stochastic Zeno) 1 dt Dynkin s formula (in differential ẋ = 0 form) x 7 2x no global solution jumping makes jumping more likely no local solution for x(0) > 1 x 7 x 2 probability of multiple jumps in short interval not sufficiently small L completely defines the SHS dynamics Disclaimer: see following paper for technical assumptions [HSCC 04] 10

Stochastic communication logics error dynamics in remote estimation long-lived TCP flows (with slow start) Long-lived TCP flows slow-start congestion avoidance 11

error dynamics in NCS Lyapunov-based stability analysis Dynkin s formula Expected value of error: 2 nd moment of the error: error dynamics in NCS Lyapunov-based stability analysis Dynkin s formula Expected value of error: 2 nd moment of the error: For constant rate: λ(e) = γ assuming (A γ/2 I ) Hurwitz 12

Lyapunov-based stability analysis error dynamics in NCS Dynkin s formula One can show For constant rate: λ(e) = γ both always true γ 0 if A Hurwitz (no jumps needed for boundedness) 1. E[ e ] 0 as long as γ > <[λ(a)] 2. E[ e m ] bounded as long as γ > 2 m <[λ(a)] For polynomial rates: λ(e) = (e 0 Pe) k P > 0, k 0 getting more moments bounded requires higher jump intensities 1. E[ e ] 0 (always) 2. E[ e m ] bounded m Moreover, one can achieve the same E[ e 2 ] with a smaller number of transmissions [ACTRA 04, CDC 04] Analysis Moments for SHS state continuous dynamics transition intensities reset-maps z (scalar) random variable with mean μ and variance σ 2 Markov inequality ( e> 0) Bienaymé inequality ( e> 0, a R, n N) Tchebychev inequality often a few low-order moments suffice to study a SHS 13

Polynomial SHSs continuous dynamics transition intensities reset-maps Given scalar-valued function ψ : Q R n [0, ) R generator for the SHS where Dynkin s formula (in differential form) A SHS is called a polynomial SHS (pshs) if its generator maps finite-order polynomial on x into finite-order polynomials on x Typically, when are all polynomials q, t Moment dynamics for pshs x(t) R n continuous state q(t) Q={1,2, } discrete state Monomial test function: Given for short x (m) Uncentered moment: E.g, 14

Moment dynamics for pshs x(t) R n continuous state q(t) Q={1,2, } discrete state Monomial test function: Given for short x (m) Uncentered moment: For polynomial SHS monomial on x polynomial on x linear comb. of monomial test functions linear moment dynamics long-lived TCP flows Moment dynamics for TCP 15

long-lived TCP flows Moment dynamics for TCP on-off TCP flows (exp. distr. files) Truncated moment dynamics Experimental evidence indicates that the (steady-state) sending rate is well approximated by a Log-Normal distribution 0.07 0.06 0.05 PDF of the congestion window size w 0.04 0.03 0.02 0.01 0 0 10 20 30 40 50 w z Log-Normal r Log-Normal (on each mode) Data from: Bohacek, A stochastic model for TCP and fair video transmission, INFOCOM 03 16

Moment dynamics for TCP long-lived TCP flows on-off TCP flows (exp. distr. files) finite-dimensional nonlinear ODEs long-lived TCP flows with delay (one RTT average) Long-lived TCP flows 0.1 0.02 moment dynamics in response to abrupt change in drop probability 0 1 2 3 4 5 6 7 8 9 10 200 100 sending rate mean 0 0 1 2 3 4 5 6 7 8 9 10 100 50 sending rate std. deviation 0 0 1 2 3 4 5 6 7 8 9 10 Monte Carlo (with 99% conf. int.) reduced model 17

Truncated moment dynamics (revisited) For polynomial SHS Stacking all moments into an (infinite) vector μ linear moment dynamics In TCP analysis infinite-dimensional linear ODE lower order moments of interest moments of interest that affect μ dynamics approximated by nonlinear function of μ Truncation by derivative matching infinite-dimensional linear ODE truncated linear ODE (nonautonomous, not nec. stable) nonlinear approximate moment dynamics Assumption:1)μ and ν remain bounded along solutions to and 2) is (incrementally) asymptotically stable Theorem: δ > 0 N s.t. if then class KL function Disclaimer: Just a lose statement. The real theorem is stated in [HSCC'05] 18

Truncation by derivative matching infinite-dimensional linear ODE truncated linear ODE (nonautonomous, not nec. stable) nonlinear approximate moment dynamics Assumption:1)μ and ν remain bounded along solutions to and 2) is (incrementally) asymptotically stable Theorem: δ > 0 N s.t. if then class KL function Proof idea: 1) N derivative matches μ & ν match on compact interval of length T 2) stability of A matching can be extended to [0, ) Truncation by derivative matching infinite-dimensional linear ODE Given δ, finding N is very difficult In practice, small values of N (e.g., N = 2) already yield good results truncated linear ODE nonlinear approximate Can use (nonautonomous, dnot k μ nec. stable) moment dynamics dt k = dk ν dt k, k {1,...,N} Assumption:1)μ to determine and ν ϕ( ): remain k = bounded 1 boundary along solutions condition to on ϕ and k = 2 linear PDE on ϕ 2) is (incrementally) asymptotically stable Theorem: δ > 0 N s.t. if then class KL function Proof idea: 1) N derivative matches μ & ν match on compact interval of length T 2) stability of A matching can be extended to [0, ) 19

Moment dynamics for DDR Decaying-dimerizing molecular reactions (DDR): c 1 c 2 c 3 S 1 0 S 2 0 2 S 1 S 2 c 4 Truncated DDR model Decaying-dimerizing molecular reactions (DDR): c 1 c 2 c 3 S 1 0 S 2 0 2 S 1 S 2 c 4 by matching d k μ dt k = dk ν, k {1,2} dt k for deterministic distributions [IJRC, 2005] 20

Monte Carlo vs. truncated model 40 populations means 30 20 10 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 x 10-3 4 3 E[x 1 ] E[x 2 ] populations standard deviations Std[x 1 ] Fast time-scale (transient) 2 1 Std[x 2 ] 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 x 10-3 -0.9-0.95-1 -1.05 populations correlation coefficient ρ[x 2,x 2 ] -1.1 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 x 10-3 (lines essentially undistinguishable at this scale) Parameters from: Rathinam, Petzold, Cao, Gillespie, Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method. J. of Chemical Physics, 2003 Monte Carlo vs. truncated model 40 populations means 30 20 E[x 1 ] 10 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 4 E[x 2 ] populations standard deviations Slow time-scale evolution 3 2 1 Std[x 2 ] Std[x 1 ] 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0.5 0-0.5 populations correlation coefficient ρ[x 2,x 2 ] -1 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 error only noticeable when populations become very small (a couple of molecules, still adequate to study cellular reactions) Parameters from: Rathinam, Petzold, Cao, Gillespie, Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method. J. of Chemical Physics, 2003 21

Conclusions 1. A simple SHS model (inspired by piecewise deterministic Markov Processes) can go a long way in modeling network traffic 2. The analysis of SHSs is generally difficult but there are tools available (generator, Lyapunov methods, moment dynamics, truncations) 3. This type of SHSs (and tools) finds use in several areas (traffic modeling, networked control systems, molecular biology, population dynamics in ecosystems) Bibliography M. Davis. Markov Models & Optimization. Chapman & Hall/CRC, 1993 S. Bohacek, J. Hespanha, J. Lee, K. Obraczka. Analysis of a TCP hybrid model. In Proc. of the 39th Annual Allerton Conf. on Comm., Contr., and Computing, Oct. 2001. S. Bohacek, J. Hespanha, J. Lee, K. Obraczka. A Hybrid Systems Modeling Framework for Fast and Accurate Simulation of Data Communication Networks. In Proc. of the ACM Int. Conf. on Measurements and Modeling of Computer Systems (SIGMETRICS), June 2003. J. Hespanha. Stochastic Hybrid Systems: Applications to Communication Networks. In R. Alur, G. Pappas, Hybrid Systems: Computation and Control, LNCS 1993, pp. 387-401, 2004. João Hespanha. Polynomial Stochastic Hybrid Systems. In Manfred Morari, Lothar Thiele, Hybrid Systems: Computation and Control, LNCS 3414, pp. 322-338, Mar. 2005. J. Hespanha, A. Singh. Stochastic Models for Chemically Reacting Systems Using Polynomial Stochastic Hybrid Systems. To appear in the Int. J. on Robust Control Special Issue on Control at Small Scales, 2005. A. Singh, J. Hespanha. Moment Closure Techniques for Stochastic Models in Population Biology. Oct. 2005. Submitted to publication. Y. Xu, J. Hespanha. Communication Logic Design and Analysis for NCSs. ACTRA 04. Y. Xu, J. Hespanha. Optimal Communication Logics for NCSs. In Proc. CDC, 2004. All papers (and some ppt presentations) available at http://www.ece.ucsb.edu/~hespanha 22