11
Stochastic Hybrid Systems: Applications to Communication Networks João P. Hespanha Center for Control Engineering and Computation University of California at Santa Barbara research supported by NSF Deterministic Hybrid Systems guard conditions reset-maps continuous dynamics 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: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

1

Stochastic Hybrid Systems:Applications to Communication Networks

João P. Hespanha

Center for Control Engineeringand Computation

University of Californiaat Santa Barbara

research supported by NSF

Deterministic Hybrid Systems

guardconditions

reset-maps

continuousdynamics

q(t) ∈ Q={1,2,…} ≡ discrete statex(t) ∈ Rn ≡ continuous state

right-continuousby convention

we assume here a deterministic system so the invariant sets would be the exact complements of the guards

Page 2: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

2

Stochastic Hybrid Systems

reset-maps

continuousdynamics

N (t) ∈ N ≡ transition counter, which is incremented by one each time the th reset-map ϕ (x) is “activated”

number of transitionson (t1, t2]

equal to integral of transition intensityλ (x) on (t1, t2]

right-continuousby convention

transition intensities(instantaneous rates at which transitions occur)

Stochastic Hybrid Systems

reset-maps

continuousdynamics

Special case: When all λ are constant, transitions are controlled by a continuous-time Markov process

q = 1 q = 2

q = 3

specifies q(independently of x)

transition intensities(instantaneous rates at which transitions occur)

Page 3: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

3

Formal model—Summary

State space: q(t) ∈ Q={1,2,…} ≡ discrete statex(t) ∈ Rn ≡ continuous state

Continuous dynamics:

Reset-maps (one per transition intensity):

Transition intensities:

# of transitions

Results:1. [existence] Under appropriate regularity (Lipschitz) assumptions, there exists a

measure “consistent” with the desired SHS behavior2. [simulation] The procedure used to construct the measure is constructive and

allows for efficient generation of Monte Carlo sample paths3. [Markov] The pair ( q(t), x(t) ) ∈ Q× Rn is a (Piecewise-deterministic) Markov

Process (in the sense of M. Davis, 1983)

Example I: TCP congestion control

server clientnetwork

packets droppedwith probability pdrop

transmitsdata packets

receivesdata packets

congestion control ≡ selection of the rate r at which the server transmits packetsfeedback mechanism ≡ packets are dropped by the network to indicate congestion

r

Page 4: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

4

Example I: TCP congestion control

server clientnetwork

transmitsdata packets

receivesdata packets

TCP (Reno) congestion control: packet sending rate given bycongestion 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)

packets droppedwith probability pdrop

congestion control ≡ selection of the rate r at which the server transmits packetsfeedback mechanism ≡ packets are dropped by the network to indicate congestion

r

Example I: TCP congestion control

per-packetdrop prob.

pckts sentper sec

× pckts droppedper sec=

# of packetsalready sent

TCP (Reno) congestion control: packet sending rate given bycongestion 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)

Page 5: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

5

Analysis—Lie Derivative

Given function ψ : Rn × [0,∞) → R

derivativealong solution

to ODE Lf ψLie derivative of ψ

One can view Lf as an operator

space of scalar functions onRn × [0,∞)

space of scalar functions onRn × [0,∞)→

ψ(x, t) Lfψ(x, t)

Lf completely defines the system dynamics

Analysis—Generator of the SHS

continuous dynamicsreset-mapstransition intensities

Given function ψ : Q × Rn × [0,∞) → Rgenerator for the SHS

where

Lf ψLie derivative of ψ

reset instantaneousvariation

intensity

L completely defines the SHS dynamics

disclaimer: see paper for technical assumptions

Dynkin’s formula(in differential form)

Page 6: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

6

Example I: TCP congestion control

slow-start congestionavoidance

This TCP model is always-on

Example II: On-off TCP model

• Between transfers, server remains off for an exponentially distributed time with mean τoff

• Transfer-size is a random variable with cumulative distribution F(s)

determines duration of on-periods

Page 7: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

7

Using the SHS generator…

Mixture of exponential distribution for transfer-sizes:

M exp. distr. with mean{ k1, k2, …, kM }

M probabilities{ p1, p2, …, pM }

transfer-sizes are extracted from an exponential distribution with mean ki w.p. pican approximate well distributions found in the literature …

µq,n ≡ expected value of rn when SHS is in mode q

probability of being in off mode

slow-start with file-size from ith exponential distribution

cong.-avoidance with file-size from ith exponential distribution

µq,n ≡ expected value of rn when SHS is in mode q

Using the SHS generator…

Mixture of exponential distribution for transfer-sizes:

M probabilities{ p1, p2, …, pM }

transfer-sizes are extracted from an exponential distribution with mean ki w.p. pican approximate well distributions found in the literature …

off mode

slow-start with file-size from ith exponential distribution

cong.-avoidance with file-size from ith exponential distribution

infinite system of ODEsBut:distributions are well approximated by log-Normal

so one can truncate the infinite system of ODEs(keeping only first 2 moments)

M exp. distr. with mean{ k1, k2, …, kM }

Page 8: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

8

Case I

10-3

10-2

10-1

0

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09

pdrop

Probability

any active modeslow-startcongestion-avoidance

10-3

10-2

10-1

0

1

2

3

4

5

6

p

Rate Mean

totalslow-startcongestion-avoidancesmall "mice" transfersmid-size "elephant" transfers

10-3

10-2

10-1

0

10

20

30

40

50

60

70

80

90

pdrop

Rate Standard Deviation

totalslow-startcongestion-avoidancesmall "mice" transfersmid-size "elephant" transfers

Monte-Carlo& theoretical

steady-state values(vs. drop probability)

Transfer-size approximating the distribution of file sizes in the UNIX file systemp1 = 88.87% k1 = 3.5KB (“mice” files)p2 = 11.13% k2 = 246KB (“elephant” files, but not heavy tail)

Case IITransfer-size distribution at an ISP’s www proxy [Arlitt et al.]

p1 = 98% k1 = 6KB (“mice” files)p2 = 1.7% k2 = 400KB (“elephant” files)p3 = .02% k3 = 10MB (“mammoth” files)

10-3 10-2 10-10

0.5

1

1.5

2

2.5

pdrop

Rate Mean

totalslow-startcongestion-avoidancesmall "mice" transfersmid-size "elephant" transfersmid-size "mammoth" transfers

10-3 10-2 10-10

10

20

30

40

50

60

70

80

90

pdrop

Rate Standard Deviation

totalslow-startcongestion-avoidancesmall "mice" transfersmid-size "elephant" transfersmid-size "mammoth" transfers

Steady-state valuesvs.

drop probability

Page 9: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

9

Conclusions

1. Presented a new model for SHSs with transitions triggered by stochastic events(inspired by piecewise deterministic Markov Processes)

2. Provided analysis tool—SHS’s generator

3. Illustrated use by modeling and analyzing on-off TCP flows

Current/future work1. Investigate the use of SHS to extend solutions of deterministic hybrid systems2. Develop other tools of analyze SHS3. Investigate the implications of the TCP-Reno results on active queuing

mechanism4. Construct SHS models for other congestion control algorithms5. Use SHS models to study problems of distributed control with limited

communication bandwidth

Generalizations

1. Stochastic resets can be obtained by considering multiple intensities/reset-maps

One can further generalize this to resets governed by to a continuous distribution [see paper]

Page 10: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

10

Generalizations

2. Stochastic differential equations (SDE) for the continuous state can be emulated by taking limits of SHSs

Gaussian white noise

The solution to the SDE is obtained as e → 0+

more details on paper…

Generalizations

3. Deterministic guards can also be emulated by taking limits of SHSs

The solution to the hybrid system with a deterministic guard is obtained as e ↓ 0+

e ↓ 0+

-1 1

This provides a mechanism to regularize systems with chattering and/or Zeno phenomena…

barrierfunction

g(x)

Page 11: Stochastic Hybrid Systems: Applications to Communication ...hespanha/published/HSCC04-shs-26Mar0… · measure “consistent” with the desired SHS behavior 2. [simulation] The procedure

11

Example III: Bouncing-ball

t

yc ∈ (0,1) ≡ energy absorbed at impact

Zeno-time

The solution of this deterministic hybrid system is only defined up to the Zeno-time

g

y

g

0 5 10 15-0.2

0

0.2

0.4

0.6

0.8

1

1.2

0 5 10 15-0.2

0

0.2

0.4

0.6

0.8

1

1.2

0 5 10 15-0.2

0

0.2

0.4

0.6

0.8

1

1.2

e = 10–2 e = 10–3 e = 10–4

mean (blue) 95% confidence intervals (red and green)

Example III: Bouncing-ball

g

y

g

c ∈ (0,1) ≡ energy absorbed at impact