Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec 1.

Slides:



Advertisements
Similar presentations
1 On the Long-Run Behavior of Equation-Based Rate Control Milan Vojnović and Jean-Yves Le Boudec ACM SIGCOMM 2002, Pittsburgh, PA, August 19-23, 2002.
Advertisements

1 Perfect Simulation and Stationarity of a Class of Mobility Models Jean-Yves Le Boudec (EPFL) & Milan Vojnovic (Microsoft Research Cambridge) IEEE Infocom.
Impact of Interference on Multi-hop Wireless Network Performance Kamal Jain, Jitu Padhye, Venkat Padmanabhan and Lili Qiu Microsoft Research Redmond.
Brewer’s Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services Authored by: Seth Gilbert and Nancy Lynch Presented by:
CS433: Modeling and Simulation
Entropy Rates of a Stochastic Process
1 Perfect Simulation and Stationarity of a Class of Mobility Models Jean-Yves Le Boudec (EPFL) Milan Vojnovic (Microsoft Research Cambridge)
1 Statistical Inference H Plan: –Discuss statistical methods in simulations –Define concepts and terminology –Traditional approaches: u Hypothesis testing.
Forecasting JY Le Boudec 1. Contents 1.What is forecasting ? 2.Linear Regression 3.Avoiding Overfitting 4.Differencing 5.ARMA models 6.Sparse ARMA models.
ODE and Discrete Simulation or Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL MLQA, Aachen, September
Queuing Theory For Dummies
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Model Fitting Jean-Yves Le Boudec 0. Contents 1 Virus Infection Data We would like to capture the growth of infected hosts (explanatory model) An exponential.
1 The Random Trip Mobility Model Milan Vojnovic (Microsoft Research) Computer Lab Seminar, University of Cambridge, UK, Nov 2004 with Jean-Yves Le Boudec.
Dynamic Tuning of the IEEE Protocol to Achieve a Theoretical Throughput Limit Frederico Calì, Marco Conti, and Enrico Gregori IEEE/ACM TRANSACTIONS.
Modeling TCP Throughput Jeng Lung WebTP Meeting 11/1/99.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
SUMS OF RANDOM VARIABLES Changfei Chen. Sums of Random Variables Let be a sequence of random variables, and let be their sum:
Network Bandwidth Allocation (and Stability) In Three Acts.
#9 SIMULATION OUTPUT ANALYSIS Systems Fall 2000 Instructor: Peter M. Hahn
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Simulation.
1 Random Trip Stationarity, Perfect Simulation and Long Range Dependence Jean-Yves Le Boudec (EPFL) joint work with Milan Vojnovic (Microsoft Research.
Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec Illustration : Elias Le Boudec.
1 Simulation de modèles de mobilité : paradoxes et étrangetés Jean-Yves Le Boudec EPFL En collaboration avec Milan Vojnović Microsoft Research.
ACN: AVQ1 Analysis and Design of an Adaptive Virtual Queue (AVQ) Algorithm for Active Queue Managment Srisankar Kunniyur and R. Srikant SIGCOMM’01 San.
Some standard univariate probability distributions
1 A Class Of Mean Field Interaction Models for Computer and Communication Systems Jean-Yves Le Boudec EPFL – I&C – LCA Joint work with Michel Benaïm.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
STOCHASTIC GEOMETRY AND RANDOM GRAPHS FOR THE ANALYSIS AND DESIGN OF WIRELESS NETWORKS Haenggi et al EE 360 : 19 th February 2014.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
Simulation Output Analysis
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL ACCESS Distinguished Lecture Series, Stockholm, May 28,
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Decentralised load balancing in closed and open systems A. J. Ganesh University of Bristol Joint work with S. Lilienthal, D. Manjunath, A. Proutiere and.
Verification & Validation
1 CSI5388: Functional Elements of Statistics for Machine Learning Part I.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Generalized Semi-Markov Processes (GSMP)
1 Institute of Engineering Mechanics Leopold-Franzens University Innsbruck, Austria, EU H.J. Pradlwarter and G.I. Schuëller Confidence.
Routing Protocol Evaluation David Holmer
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Modeling and Analysis of Computer Networks
Lecture 19 Nov10, 2010 Discrete event simulation (Ross) discrete and continuous distributions computationally generating random variable following various.
Queuing Networks Jean-Yves Le Boudec 1. Contents 1.The Class of Multi-Class Product Form Networks 2.The Elements of a Product-Form Network 3.The Product-Form.
Simulation Tutorial By Bing Wang Assistant professor, CSE Department, University of Connecticut Web site.
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
Week 21 Stochastic Process - Introduction Stochastic processes are processes that proceed randomly in time. Rather than consider fixed random variables.
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
1 OUTPUT ANALYSIS FOR SIMULATIONS. 2 Introduction Analysis of One System Terminating vs. Steady-State Simulations Analysis of Terminating Simulations.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
Analysis of RED Goal: impact of RED on loss and delay of bursty (TCP) and less bursty or smooth (UDP) traffic RED eliminates loss bias against bursty traffic.
Palm Calculus Part 1 The Importance of the Viewpoint JY Le Boudec 1 May 2015.
1 EE571 PART 3 Random Processes Huseyin Bilgekul Eeng571 Probability and astochastic Processes Department of Electrical and Electronic Engineering Eastern.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Univariate Gaussian Case (Cont.)
1 Review of Probability and Random Processes. 2 Importance of Random Processes Random variables and processes talk about quantities and signals which.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL Network Science Workshop Hong Kong July
Medium Access Control Protocols
Outline Introduction Signal, random variable, random process and spectra Analog modulation Analog to digital conversion Digital transmission through baseband.
Where real stuff starts
Presentation transcript:

Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec 1

Contents 1.Informal Introduction 2.Palm Calculus 3.Other Palm Calculus Formulae 4.Application to RWP 5.Other Examples 6.Perfect Simulation 2

1. Event versus Time Averages Consider a simulation, state S t Assume simulation has a stationary regime Consider an Event Clock: times T n at which some specific changes of state occur Ex: arrival of job; Ex. queue becomes empty Event average statistic Time average statistic 3

Example: Gatekeeper t (ms) job arrival

Sampling Bias W s and W c are different A metric definition should mention the sampling method (viewpoint) Different sampling methods may provide different values: this is the sampling bias Palm Calculus is a set of formulas for relating different viewpoints Can often be obtained by means of the Large Time Heuristic 5

Large Time Heuristic Explained on an Example 6

7

8

The Large Time Heuristic We will show later that this is formally correct if the simulation is stationary It is a robust method, i.e. independent of assumptions on distributions (and on independence) 9

Impact of Cross-Correlation S n = 90, 10, 90, 10, 90 X n = 5000, 1000, 5000, 1000, 5000 Correlation is >0 W c > W s When do the two viewpoints coincide ? t (ms) job arrival

Two Event Clocks Stop and Go protocol Clock 0: new packets; Clock a: all transmissions Obtain throughput as a function of t 0, t 1 and loss rate 11 t (ms) timeout t0t0 t1t1 t0t0 0,a a

12 t (ms) timeout t0t0 t1t1 t0t0 0,a a

13 t (ms) timeout t0t0 t1t1 t0t0 0,a a

Throughput of Stop and Go Again a robust formula 14

Other Samplings 15

16 Load Sensitive Routing of Long-Lived IP Flows Anees Shaikh, Jennifer Rexford and Kang G. Shin Proceedings of Sigcomm'99 ECDF, per flow viewpoint ECDF, per packet viewpoint

17

18

19 2. Palm Calculus : Framework A stationary process (simulation) with state S t. Some quantity X t measured at time t. Assume that (S t ;X t ) is jointly stationary I.e., S t is in a stationary regime and X t depends on the past, present and future state of the simulation in a way that is invariant by shift of time origin. Examples S t = current position of mobile, speed, and next waypoint Jointly stationary with S t : X t = current speed at time t; X t = time to be run until next waypoint Not jointly stationary with S t : X t = time at which last waypoint occurred

Stationary Point Process Consider some selected transitions of the simulation, occurring at times T n. Example: T n = time of n th trip end T n is a called a stationary point process associated to S t Stationary because S t is stationary Jointly stationary with S t Time 0 is the arbitrary point in time 20

21 Palm Expectation Assume: X t, S t are jointly stationary, T n is a stationary point process associated with S t Definition : the Palm Expectation is E t (X t ) = E (X t | a selected transition occurred at time t) By stationarity: E t (X t ) = E 0 (X 0 ) Example: T n = time of n th trip end, X t = instant speed at time t E t (X t ) = E 0 (X 0 ) = average speed observed at a waypoint

22 E ( X t ) = E (X 0 ) expresses the time average viewpoint. E t (X t ) = E 0 (X 0 ) expresses the event average viewpoint. Example for random waypoint: T n = time of n th trip end, X t = instant speed at time t E t (X t ) = E 0 (X 0 ) = average speed observed at trip end E ( X t )= E (X 0 ) = average speed observed at an arbitrary point in time XnXn X n+1

23 Formal Definition In discrete time, we have an elementary conditional probability In continuous time, the definition is a little more sophisticated uses Radon Nikodym derivative– see lecture note for details Also see [BaccelliBremaud87] for a formal treatment Palm probability is defined similarly

24 Ergodic Interpretation Assume simulation is stationary + ergodic, i.e. sample path averages converge to expectations; then we can estimate time and event averages by: In terms of probabilities:

25 Intensity of a Stationary Point Process Intensity of selected transitions: := expected number of transitions per time unit

26 Two Palm Calculus Formulae Intensity Formula: where by convention T 0 ≤ 0 < T 1 Inversion Formula The proofs are simple in discrete time – see lecture notes

27

3. Other Palm Calculus Formulae 28

29 Feller’s Paradox

30

Rate Conservation Law 31

32

33

Campbell’s Formula Shot noise model: customer n adds a load h(t-T n,Z n ) where Z n is some attribute and T n is arrival time Example: TCP flow: L = λV with L = bits per second, V = total bits per flow and λ= flows per sec 34 t Total load T1T1 T2T2 T3T3

Little’s Formula 35 t Total load T1T1 T2T2 T3T3

Two Event Clocks Two event clocks, A and B, intensities λ(A) and λ(B) We can measure the intensity of process B with A’s clock λ A (B) = number of B-points per tick of A clock Same as inversion formula but with A replacing the standard clock 36

Stop and Go 37 AAA BBB B

4. RWP and Freezing Simulations Modulator Model: 38

Is the previous simulation stationary ? Seems like a superfluous question, however there is a difference in viewpoint between the epoch n and time Let S n be the length of the n th epoch If there is a stationary regime, then by the inversion formula so the mean of S n must be finite This is in fact sufficient (and necessary) 39

40 Application to RWP

41 Time Average Speed, Averaged over n independent mobiles Blue line is one sample Red line is estimate of E(V(t))

42 A Random waypoint model that has no stationary regime ! Assume that at trip transitions, node speed is sampled uniformly on [v min,v max ] Take v min = 0 and v max > 0 Mean trip duration = (mean trip distance) Mean trip duration is infinite ! Was often used in practice Speed decay: “considered harmful” [YLN03]

What happens when the model does not have a stationary regime ? The simulation becomes old

Stationary Distribution of Speed (For model with stationary regime)

Closed Form Assume a stationary regime exists and simulation is run long enough Apply inversion formula and obtain distribution of instantaneous speed V(t)

46 Removing Transient Matters A. In the mobile case, the nodes are more often towards the center, distance between nodes is shorter, performance is better The comparison is flawed. Should use for static case the same distribution of node location as random waypoint. Is there such a distribution to compare against ? Random waypoint Static A (true) example: Compare impact of mobility on a protocol: Experimenter places nodes uniformly for static case, according to random waypoint for mobile case Finds that static is better Q. Find the bug !

A Fair Comparison We revisit the comparison by sampling the static case from the stationary regime of the random waypoint Random waypoint Static, from uniform Static, same node location as RWP

48 Is it possible to have the time distribution of speed uniformly distributed in [0; v max ] ?

49 5. PASTA There is an important case where Event average = Time average “Poisson Arrivals See Time Averages” More exactly, should be: Poisson Arrivals independent of simulation state See Time Averages

50

51

Exercise 52

Exercise 53

6. Perfect Simulation An alternative to removing transients Possible when inversion formula is tractable Example : random waypoint Same applies to a large class of mobility models 54

55 Removing Transients May Take Long If model is stable and initial state is drawn from distribution other than time-stationary distribution The distribution of node state converges to the time-stationary distribution Naïve: so, let’s simply truncate an initial simulation duration The problem is that initial transience can last very long Example [space graph]: node speed = 1.25 m/s bounding area = 1km x 1km

56 Perfect simulation is highly desirable (2) Distribution of path: Time = 100s Time = 50s Time = 300s Time = 500s Time = 1000s Time = 2000s

Solution: Perfect Simulation Def: a simulation that starts with stationary distribution Usually difficult except for specific models Possible if we know the stationary distribution Sample Prev and Next waypoints from their joint stationary distribution Sample M uniformly on segment [Prev,Next] Sample speed V from stationary distribution

Stationary Distrib of Prev and Next

59 Stationary Distribution of Location Is also Obtained By Inversion Formula

60

No Speed Decay

62 Perfect Simulation Algorithm Sample a speed V(t) from the time stationary distribution How ? A: inversion of cdf Sample Prev(t), Next(t) How ? Sample M(t)

Questions Q1: A node receives messages from 2 sensors S1 and S2. Each of the sources sends messages independently of each other. The sequence of time intervals between messages sent by source S1 is iid, with a Gaussian distribution with mean m1 and variance v1 and similarly for S2. The node works as follows. It waits for the next message from S1. When it has received one message from S1, it waits for the next message from S2, and sends a message of its own. How much time does, in average, the node spends waiting for the second message after the first is received ? Q2: A sensor detects the occurrence of an event and sends a message when it occurs. However, the sensing system needs some relaxation time and cannot sense during T milliseconds after an event was sensed. There are l events per millisecond. Can you find the probability that an event is not sensed, as a function of T? 63

Questions Q3: Consider the random waypoint model, where the distribution of the speed drawn at a random waypoint has a density f(v) over the interval [0, vmax]. Is it possible to find f() such that (1) the model has a stationary regime and (2) the time stationary distribution of speed is uniform over [0, vmax] ? Q4: A distributed protocol establishes consensus by periodically having one host send a message to n other hosts and wait for an acknowledgement. Assume the times to send and receive an acknowledgement are iid, with distribution F(t). What is the number of consensus per time unit achieved by the protocol ? Give an approximation when the distribution is Pareto, using the fact that the mean of the kth order statistic in a sample of n is approximated by F −1 ( k/ n+1). Q5: We measure the distribution of flows transferred from a web server. We find that the distribution of the size in packets of an arbitrary flow is Pareto. What is the probability that, for an arbitrary packet, it belongs to a flow of length x ? Q6: A node receives messages from 2 sensors S1 and S2. Each of the sources sends messages independently of each other. The sequence of time intervals between messages sent by source S1 is iid, with a Gaussian distribution with mean m 1 and variance s 1 2 and similarly for S2. The node works as follows. It waits for the next message from S1. When it has received one message from S1, it waits for the next message from S2, and sends a message of its own. How do you implement a simulator for this system ? How much time does, in average, the node spends waiting for the second message after the first is received ? 64

Conclusions A metric should specify the sampling method Different sampling methods may give very different values Palm calculus contains a few important formulas Which ones ? Freezing simulations are a pattern to be aware of