Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec 2009 1 Illustration : Elias Le Boudec.

Slides:



Advertisements
Similar presentations
1 Perfect Simulation and Stationarity of a Class of Mobility Models Jean-Yves Le Boudec (EPFL) & Milan Vojnovic (Microsoft Research Cambridge) IEEE Infocom.
Advertisements

CS433: Modeling and Simulation
Channel Allocation Protocols. Dynamic Channel Allocation Parameters Station Model. –N independent stations, each acting as a Poisson Process for the purpose.
Queuing Network Models for Delay Analysis of Multihop Wireless Ad Hoc Networks Nabhendra Bisnik and Alhussein Abouzeid Rensselaer Polytechnic Institute.
CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
Delay and Throughput in Random Access Wireless Mesh Networks Nabhendra Bisnik, Alhussein Abouzeid ECSE Department Rensselaer Polytechnic Institute (RPI)
Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross- Layer Information Awareness Xin Yu Department Of Computer Science New York University,
Lecture 3  A round up of the most important basics I haven’t covered yet.  A round up of some of the (many) things I am missing out of this course (ATM,
Lecture 13 – Continuous-Time Markov Chains
1 Perfect Simulation and Stationarity of a Class of Mobility Models Jean-Yves Le Boudec (EPFL) Milan Vojnovic (Microsoft Research Cambridge)
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.
Stable mobility models for MANETS Kim Blackmore Roy Timo (DE/NICTA) Leif Hanlen (NICTA)
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Network Bandwidth Allocation (and Stability) In Three Acts.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Performance Modeling Computer Science Division Department of Electrical Engineering and Computer.
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.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
1 Random Trip Stationarity, Perfect Simulation and Long Range Dependence Jean-Yves Le Boudec (EPFL) joint work with Milan Vojnovic (Microsoft Research.
1 Simulation de modèles de mobilité : paradoxes et étrangetés Jean-Yves Le Boudec EPFL En collaboration avec Milan Vojnović Microsoft Research.
1 Mean Field Interaction Models for Computer and Communication Systems and the Decoupling Assumption Jean-Yves Le Boudec EPFL – I&C – LCA Joint work with.
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.
Impact of Different Mobility Models on Connectivity Probability of a Wireless Ad Hoc Network Tatiana K. Madsen, Frank H.P. Fitzek, Ramjee Prasad [tatiana.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
1 Modeling and Simulating Networking Systems with Markov Processes Tools and Methods of Wide Applicability ? Jean-Yves Le Boudec
Cs/ee 143 Communication Networks Chapter 3 Ethernet Text: Walrand & Parakh, 2010 Steven Low CMS, EE, Caltech.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
1 Performance Evaluation of Computer Systems By Behzad Akbari Tarbiat Modares University Spring 2009 Introduction to Probabilities: Discrete Random Variables.
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.
Verification & Validation
Generalized Semi-Markov Processes (GSMP)
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
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.
TexPoint fonts used in EMF.
Modeling and Analysis of Computer Networks
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.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Simulation Tutorial By Bing Wang Assistant professor, CSE Department, University of Connecticut Web site.
1 Dr. Ali Amiri TCOM 5143 Lecture 8 Capacity Assignment in Centralized Networks.
Medium Access Control Sub Layer
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec 1.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
1 Time-scale Decomposition and Equivalent Rate Based Marking Yung Yi, Sanjay Shakkottai ECE Dept., UT Austin Supratim Deb.
An Energy Efficient MAC Protocol for Wireless LANs, E.-S. Jung and N.H. Vaidya, INFOCOM 2002, June 2002 吳豐州.
Content caching and scheduling in wireless networks with elastic and inelastic traffic Group-VI 09CS CS CS30020 Performance Modelling in Computer.
Internet Applications: Performance Metrics and performance-related concepts E0397 – Lecture 2 10/8/2010.
Palm Calculus Part 1 The Importance of the Viewpoint JY Le Boudec 1 May 2015.
Paging Area Optimization Based on Interval Estimation in Wireless Personal Communication Networks By Z. Lei, C. U. Saraydar and N. B. Mandayam.
Petri-Nets and Other Models
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL Network Science Workshop Hong Kong July
1 ICCCN 2003 Modelling TCP Reno with Spurious Timeouts in Wireless Mobile Environments Shaojian Fu School of Computer Science University of Oklahoma.
Availability Availability - A(t)
Medium Access Control Protocols
The Impact of Replacement Granularity on Video Caching
Queuing Theory Queuing Theory.
High Throughput Route Selection in Multi-Rate Ad Hoc Wireless Networks
TexPoint fonts used in EMF.
Queuing Networks Mean Value Analysis
Where real stuff starts
Presentation transcript:

Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec Illustration : Elias Le Boudec

Part of this work is joint work with Milan Vojnovic Full text of this lecture: [1] J.-Y. Le Boudec, "Palm Calculus or the Importance of the View Point"; Chapter 11 of "Performance Evaluation Lecture Notes (Methods, Practice and Theory for the Performance Evaluation of Computer and Communication Systems)“ See also [2] J.-Y. Le Boudec, "Understanding the simulation of mobility models with Palm calculus", Performance Evaluation, Vol. 64, Nr. 2, pp , 2007, online at [3] Elements of queueing theory: Palm Martingale calculus and stochastic recurrences F Baccelli, P Bremaud , Springer [4] J.-Y. Le Boudec and Milan Vojnovic, The Random Trip Model: Stability, Stationary Regime, and Perfect Simulation IEEE/ACM Transactions on Networking, 14(6):1153–1166, Answers to Quizes are at the end of the slide show

3 Contents Informal Introduction Palm Calculus Application to Simulation Freezing Simulations

Quiz 1 Le calcul de Palm c’est: A.Un procédé de titrage de l’alcool de dattes B.Une application des probabilités conditionnelles C.Une application de la théorie ergodique D.Une méthode utilisée par certains champions de natation

What Is Palm Calculus About ? Performance metric comes with a viewpoint Sampling method, sampling clock Often implicit May not correspond to the need

Example: Gatekeper Jobs served by two processors Red processor slower Scheduling as shown t (ms) job arrival System designer says Average execution time is Customer says Average execution time is

Sampling Bias W s and W c are different: sampling bias System designer / Customer Representative should worry about the definition of a correct viewpoint W c makes more sense than W s Palm Calculus is a set of formulas for relating different viewpoints Most formulas are very elementary to derive this is well hidden 7

Large Time Heuristic Pretend you do a simulation Take a long period of time Estimate the quantities of interest Do some maths 8 0T1T1 T2T2 T3T3 T4T4 T5T5 T6T6 X1X1 X2X2 t (ms) job arrival X3X3 X4X4 X5X5 X6X6 S5S5

Features of a Palm Calculus Formula Relates different sampling methods Time average Event average We did not make any assumption on Independence Distribution

Example: Stop and Go Source always sends packets  = proportion of non acked packets Compute throughput as a function of t 0, t 1 and  t 0 = mean transmission time (no failure) t 1 = timer duration 10 t (ms) timeout t0t0 t1t1 t0t0

Quiz 2: Stop and Go 11 t (ms) timeout t0t0 t1t1 t0t0

Quiz 2: Stop and Go 12 t (ms) timeout t0t0 t1t1 t0t0 T0T0 T1T1 T2T2 T3T3

Features of a Palm Calculus Formula Relates different sampling methods Event clock a: all transmission attempts Event clock s: successful transmission attempts We did not make any assumption on Independence Distribution timeout t0t0 t1t1 t0t0 a,sa

Other Contexts Empirical distribution of flow sizes Packets arriving at a router are classified into flows «flow clock »: what is the size of an arbitrary flow ? « packet clock »: what is an arbitrary packet’s flow size ? Let f F (s) and f P (s) be the corresponding PDFs Palm formula (  is some constant) 14

15 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

The Cyclist’s Paradox Cyclist does round trip in Switzerland Trip is 50% downhills, 50% uphills Speed is 10 km/h uphills, 50 km/h downhills Average speed at trip end is 16.7 km/h Cyclist is frustrated by low speed, was expecting more Different Sampling methods km clock: « average speed » is 30 km/h time clock: average speed is 16.7 km/h

Take Home Message Metric definition should include sampling method Quantitative relations often exist between different sampling methods Can often be obtained by elementary heuristic Are robust to distributional / independence hypotheses

18 Contents Informal Introduction Palm Calculus Application to Simulation Freezing Simulations

19 Palm Calculus : Framework A stationary process (simulation) with state S(t). Some quantity X(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 Jointly stationary with S(t): X(t) = time to wait until next job service opportunity Not jointly stationary with S(t): X(t) = time at which next job service opportunity will occur

Stationary Point Process Consider some selected transitions of the simulation, occurring at times T n. Example: T n = time of n th service opportunity 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 occurs at t ) By stationarity: E t (X(t)) = E 0 (X(0)) Example: T n = time of n th service opportunity E t (X(t)) = E 0 (X(0)) = average service time at an arbitrary service opportunity

22 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 support document See also [BaccelliBremaud87] for a formal treatment Palm probability is defined similarly

Assume simulation is stationary + ergodic: E ( X(t)) = E (X(0)) expresses the time average viewpoint. E t (X(t)) = E 0 (X(0)) expresses the event average viewpoint. Ergodic Interpretation 23

Quiz 3: Gatekeeper Which is the estimate of a Palm expectation ? A.W s B.W c C.None D.Both 0T1T1 T2T2 T3T3 T4T4 T5T5 T6T6 X1X1 X2X2 t (ms) job arrival X3X3 X4X4 X5X5 X6X6 S5S5

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

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

Gatekeeper, re-visited X(t) = next execution time Inversion formula Intensity formula Define C as covariance:

Feller’s Paradox At bus stop buses in average per hour. Inspector measures time interval between buses. Joe arrives once and measures X(t) = time elapsed since last but + time until next bus Can Joe and the inspector agree ? Inspector estimates E 0 (T 1 -T 0 ) = E 0 (X(0)) = 1 / Joe estimates E(X(t)) = E(X(0)) Inversion formula: Joe’s estimate is always larger

Little’s Formula Little’s formula: R = N R = mean response time N = mean number in system  = intensity of arrival process System is stationary = stable R is a Palm expectation System R

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 30

Stop and Go 31 AAA BBB B

32 Contents Informal Introduction Palm Calculus Application to Simulation Freezing Simulations

Example: Mobility Model In its simplest form (random waypoint): Mobile picks next waypoint M n uniformly in area, independent of past and present Mobile picks next speed V n uniformly in [v min ; v max ] independent of past and present Mobile moves towards M n at constant speed V n M n-1 MnMn

Instant Speed Ask a mobile : what is you current speed ? At an arbitrary waypoint: uniform [v min, v max ] At an arbitrary point in time ?

Stationary Distribution of Speed

Relation between the Two Viewpoints Inversion formula:

Quiz 4: Location A.X is at time 0 sec, Y at time 2000 sec B.Y is at time sec, Y at time 0 sec C.Both are at time 0 sec D.Both are at time 2000 sec Time = x sec Time = y sec

Stationary Distribution of Location PDF f M(t) (m) can be computed in closed form

Closed Form

40 Stationary Distribution of Location Is also Obtained By Inversion Formula

41

Throughput of UWB MAC layer is higher in mobile scenario 42 Quiz 5: Find the Cause A.It is a coding bug in the simulation program B.Mobility increases capacity C.Doppler effect increases capacity D.It is a design bug in the simulation program Random waypoint Static

Comparison is Flawed UWB MAC adapts rate to channel state Wireless link is shorter in average with RWP stationary distrib Sample Static Case from RWP’s Stationary Distribution of location Random waypoint Static, from uniform Static, same node location as RWP

Perfect Simulation Definition: simulation that starts in steady state An alternative to removing transients Possible when inversion formula is tractable [L, Vojnovic, Infocom 2005] Example : random waypoint Same applies to a large class of mobility models Applies more generally to stochastic recurrences

Perfect Simulation Algorithm Sample Prev and Next waypoints from their joint stationary distribution Sample M uniformly on segment [Prev,Next] Sample speed V from stationary distribution

No speed decay

47 Contents Informal Introduction Palm Calculus Application to Simulation Freezing Simulations

48 Even Stranger Distributions do not seem to stabilize with time When v min = 0 Some published simulations stopped at 900 sec 100 users average 1 user Time (s) Speed (m/s) 900 s

49 Back to Roots The steady-state issue: Does the distribution of state reach some steady-state after some time? A well known problem in queuing theory Steady state No steady state (explosion)

50 A Necessary Condition Intensity formula Is valid in stationary regime (like all Palm calculus) Thus: it is necessary (for a stationary regime to exist) that the trip mean duration is finite thus: necessary condition: E 0 (V 0 ) < 1

Conversely The condition is also sufficient i.e. v min > 0 implies a stationary regime True more generally for any stochastic recurrence

52 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]

53 What happens when the model does not have a stationary regime ? Blue line is one sample Red line is estimate of E(V(t))

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

Load Simulator Surge Barford and Crovella, Sigmetrics 98 User modelled as sequence of downloads, followed by “think time” A stochastic recurrence Requested file size is Pareto, p=1 (i.e. infinite mean) A freezing load generator !

Conclusions A metric should specify the sampling method Different sampling methods may give very different values Palm calculus contains a few important formulas Mostly can be derived heuristically Freezing simulation is a (nasty) pattern to be aware of Happens when mean time to next recurrence is 1

ANSWERS 1. B 2. Stop and Go: C 3. Gatekeeper: A 4. Location: A 5. Find the Cause: D