Performance Evaluation

Slides:



Advertisements
Similar presentations
Algorithmic and Economic Aspects of Networks Nicole Immorlica.
Advertisements

Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
Modeling Malware Spreading Dynamics Michele Garetto (Politecnico di Torino – Italy) Weibo Gong (University of Massachusetts – Amherst – MA) Don Towsley.
It’s a Small World by Jamie Luo. Introduction Small World Networks and their place in Network Theory An application of a 1D small world network to model.
Week 4 – Random Graphs Dr. Anthony Bonato Ryerson University AM8002 Fall 2014.
RD processes on heterogeneous metapopulations: Continuous-time formulation and simulations wANPE08 – December 15-17, Udine Joan Saldaña Universitat de.
Module C- Part 1 WLAN Performance Aspects
MEAN FIELD FOR MARKOV DECISION PROCESSES: FROM DISCRETE TO CONTINUOUS OPTIMIZATION Jean-Yves Le Boudec, Nicolas Gast, Bruno Gaujal July 26,
Planning under Uncertainty
ODE and Discrete Simulation or Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL MLQA, Aachen, September
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL July
Mean Field Methods for Computer and Communication Systems: A Tutorial Jean-Yves Le Boudec EPFL Performance 2010 Namur, November
1 Epidemic Spreading in Real Networks: an Eigenvalue Viewpoint Yang Wang Deepayan Chakrabarti Chenxi Wang Christos Faloutsos.
1/16 J. Cho, J.-Y. Le Boudec, and Y. Jiang, “Decoupling Assumption in ” On the Validity of the Decoupling Assumption in JEONG-WOO CHO Norwegian.
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.
Dynamic Network Security Deployment under Partial Information George Theodorakopoulos (EPFL) John S. Baras (UMD) Jean-Yves Le Boudec (EPFL) September 24,
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 Generic Mean Field Convergence Result for Systems of Interacting Objects From Micro to Macro Jean-Yves Le Boudec, EPFL Joint work with David McDonald,
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.
Experimental Evaluation
1 TCOM 501: Networking Theory & Fundamentals Lecture 8 March 19, 2003 Prof. Yannis A. Korilis.
The effect of New Links on Google Pagerank By Hui Xie Apr, 07.
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL ACCESS Distinguished Lecture Series, Stockholm, May 28,
Performance Evaluation of Networks, part II Giovanni Neglia G. Neglia10 December 2012.
Performance Evaluation Lecture 2: Epidemics Giovanni Neglia INRIA – EPI Maestro 9 January 2014.
Fluid Limits for Gossip Processes Vahideh Manshadi and Ramesh Johari DARPA ITMANET Meeting March 5-6, 2009 TexPoint fonts used in EMF. Read the TexPoint.
Performance Evaluation Lecture 4: Epidemics Giovanni Neglia INRIA – EPI Maestro 12 January 2013.
Message-Passing for Wireless Scheduling: an Experimental Study Paolo Giaccone (Politecnico di Torino) Devavrat Shah (MIT) ICCCN 2010 – Zurich August 2.
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Random-Graph Theory The Erdos-Renyi model. G={P,E}, PNP 1,P 2,...,P N E In mathematical terms a network is represented by a graph. A graph is a pair of.
E PIDEMIC SPREADING Speaker: Ao Weng Chon Advisor: Kwang-Cheng Chen 1.
Class 9: Barabasi-Albert Model-Part I
CS433 Modeling and Simulation Lecture 07 – Part 01 Continuous Markov Chains Dr. Anis Koubâa 14 Dec 2008 Al-Imam.
1 Probability and Statistical Inference (9th Edition) Chapter 5 (Part 2/2) Distributions of Functions of Random Variables November 25, 2015.
Performance Evaluation Lecture 1: Complex Networks Giovanni Neglia INRIA – EPI Maestro 10 December 2012.
Performance Evaluation Lecture 2: Epidemics Giovanni Neglia INRIA – EPI Maestro 16 December 2013.
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL Network Science Workshop Hong Kong July
Scale-free and Hierarchical Structures in Complex Networks L. Barabasi, Z. Dezso, E. Ravasz, S.H. Yook and Z. Oltvai Presented by Arzucan Özgür.
Krishnendu ChatterjeeFormal Methods Class1 MARKOV CHAINS.
Network (graph) Models
Markov Chains.
Random Walk for Similarity Testing in Complex Networks
Performance Evaluation
Lecture 14 – Queuing Networks
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Network Models Hiroki Sayama
Stochastic Streams: Sample Complexity vs. Space Complexity
Availability Availability - A(t)
Lecture 1: Complex Networks
IEEE Protocol: Design and Performance Evaluation of An Adaptive Backoff Mechanism JSAC, vol.18, No.9, Sept Authors: F. Cali, M. Conti and.
Discrete Time Markov Chains (cont’d)
Sequential Algorithms for Generating Random Graphs
Random walks on undirected graphs and a little bit about Markov Chains
What Stops Social Epidemics?
DTMC Applications Ranking Web Pages & Slotted ALOHA
Maximal Independent Set
Routing in Wireless Ad Hoc Networks by Analogy to Electrostatic Theory
Effective Social Network Quarantine with Minimal Isolation Costs
Capacity of Ad Hoc Networks
Jean-Yves Le Boudec EPFL – I&C – LCA Joint work with Michel Benaïm
Lecture 14 – Queuing Networks
Statistics II: An Overview of Statistics
Modelling and Searching Networks Lecture 5 – Random graphs
Modelling and Searching Networks Lecture 6 – PA models
Fixed- Point Iteration
Kalman Filter: Bayes Interpretation
Discrete Mathematics and its Applications Lecture 5 – Random graphs
Discrete Mathematics and its Applications Lecture 6 – PA models
Presentation transcript:

Performance Evaluation Lecture 2: Epidemics Giovanni Neglia INRIA – EPI Maestro 6 January 2014

There is more: Independence Theorem 2 Under the assumptions of Theorem 1, and that the collection of objects at time 0 is exchangeable (X1N(0),X2N(0),...XNN(0)), then for any fixed n and t: limN→∞Prob(X1N(t)=i1,X2N(t)=i2,...XnN(t)=in)= =μi1(t)μi2(t)...μin(t) MF Independence Property, a.k.a. Decoupling Property, Propagation of Chaos

Remarks (X1N(0),X2N(0),...XNN(0)) exchangeable Means that all the states that have the same occupancy measure m0 have the same probability X(N)(k ε(N))=X(N)(k) for k integer X(N)(t) is constant on [k ε(N),(k+1)ε(N)) limN→∞Prob(X1N(t)=i1,X2N(t)=i2,...XnN(t)=in)= =μi1(t)μi2(t)...μin(t) Application Prob(X1N(k)=i1,X2N(k)=i2,...XnN(k)=in)≈ ≈μi1(kε(N))μi2(kε(N))...μin(kε(N))

Probabilistic interpretation of the occupancy measure (SI model with p=10-4, N=100) Prob(nodes 1,17,21 and 44 infected at k=200)= =μ2(k p N)4=μ2(2)4≈(1/3)4 What if 1,17,21 and 44 are surely infected at k=0

On approximation quality p=10-4, I(0)=N/10, 10 runs %infected nodes (I(k)/N) N=10 N=100 N=10000 x103 iterations x102 iterations iterations

On approximation quality p=10-4, I(0)=N/10, 10 runs Model vs Simulations Why this Difference? %infected nodes (I(k)/N) N=10 N=100 N=10000 x103 iterations x102 iterations iterations

Why the difference? N should be large (the larger the better) p should be small p(N)=p0/N2 For N=104 p=10-4 is not small enough! What if we do the correct scaling?

On approximation quality p=104/N2, I(0)=N/10, 10 runs Model vs Simulations %infected nodes (I(k)/N) N=104 N=105 N=106 iterations

Lesson You need to check (usually by simulation) in which parameter region the fluid model is a good approximation. e.g. N>N* p<p*/N2 p p* 10-4 p*N*2/N2 N 10 N* 102 104

SIS model 2 1 3 4 5 Susceptible At each slot there is a probability p that two given nodes meet, a probability r that a node recovers. Infected

SIS model 2 1 3 4 5 Susceptible At each slot there is a probability p that two given nodes meet, a probability r that a node recovers. Infected

Let’s practise Can we propose a Markov Model for SIS? No need to calculate the transition matrix If it is possible, derive a Mean Field model for SIS Do we need some scaling?

Epidemic Threshold: p0/r0 Study of the SIS model We need p(N)=p0/N2 and r(N)=r0/N If we choose ε(N)=1/N, we get di(t)/dt= p0 i(t)(1-i(t)) – r0 i(t) p0 > r0 p0 < r0 di/dτ di/dτ i i Epidemic Threshold: p0/r0

N=80, p0=0.1 r0 = 0.05 r0 = 0.125 Able to predict this value?

Study of the SIS model μ2(t)=i(t) di(t)/dt=p0 i(t)(1-i(t)) – r0 i(t) Equilibria, di(t)/dt=0 i(∞)=1-r0/p0 or i(∞)=0 If i(0)>0 and p0>r0 => μ2(∞)=1-r0/p0

Study of the SIS model If i(0)>0 p0>r0, μ2(∞)=1-r0/p0 Prob(X1(N)(k)=1) ≈ i(kε(N)) Prob(X1(N)(∞)=1) ≈ μ2(∞) = i(∞) =1-r0/p0 What is the steady state distribution of the MC? (0,0,0,…0) is the unique absorbing state and it is reachable from any other state Who is lying here?

Back to the Convergence Result Define M(N)(t) with t real, such that M(N)(kε(N))=M(N)(k) for k integer M(N)(t) is affine on [kε(N),(k+1)ε(N)] Consider the Differential Equation dμ(t)/dt=f(μ), with μ(0)=m0 Theorem For all T>0, if M(N)(0) → m0 in probability (/mean square) as N → ∞, then sup0≤t≤T||M(N)(t)-μ(t)|| →0 in probability (/mean square)

Some examples

Nothing to do with t=∞? Theorem 3: The limits when N diverges of the stationary distributions of M(N) are included in the Birkhoff center of the ODE Birkhoff center: the closure of all the recurrent points of the ODE (independently from the initial conditions) What is the Birkhoff center of di(t)/dt=p0 i(t)(1-i(t)) – r0 i(t)?

Nothing to do with t=∞? Theorem 3: The limits when N diverges of the stationary distributions of M(N) are included in the Birkhoff center of the ODE Corollary: If the ODE has a unique stationary point m*, the sequence of stationary distributions M(N) converges to m*

Outline Limit of Markovian models Mean Field (or Fluid) models exact results Extensions Epidemics on graphs Reference: ch. 9 of Barrat, Barthélemy, Vespignani “Dynamical Processes on Complex Networks”, Cambridge press Applications to networks

SI on a graph Susceptible Infected At each time slot, each link outgoing from an infected node spreads the disease with probability pg Infected

Can we apply Mean Field theory? Formally not, because in a graph the different nodes are not equivalent… …but we are stubborn

Derive a Mean Field model Consider all the nodes equivalent e.g. assume that at each slot the graph changes, while keeping the average degree <d> Starting from an empty network we add a link with probability <d>/(N-1) k=1

Derive a Mean Field model Consider all the nodes equivalent e.g. assume that at each slot the graph changes, while keeping the average degree <d> Starting from an empty network we add a link with probability <d>/(N-1) k=2

Derive a Mean Field model i.e. at every slot we consider a sample of an ER graph with N nodes and probability <d>/(N-1) Starting from an empty network we add a link with probability <d>/(N-1) k=2

Derive a Mean Field model If I(k)=I, the prob. that a given susceptible node is infected is qI=1-(1-<d>/(N-1) pg)I and (I(k+1)-I(k)|I(k)=I) =d Bin(N-I, qI) k=2

Derive a Mean Field model If I(k)=I, the prob. that a given susceptible node is infected is qI=1-(1-<d>/(N-1) pg)I and (I(k+1)-I(k)|I(k)=I) =d Bin(N-I, qI) Equivalent to first SI model where p=<d>/(N-1) pg We know that we need p(N)=p0/N2 i(N)(k) ≈ μ2 (kε(N))=1/((1/i0-1) exp(-k p0/N)+1)= = 1/((1/i0-1) exp(-k <d> pg)+1) The percentage of infected nodes becomes significant after the outbreak time 1/(<d>pg) How good is the approximation practically? It depends on the graph!

Let’s try on Erdös-Rényi graph Remark: in the calculations above we had a different sample of an ER graph at each slot, in what follows we consider a single sample

i(N)(k) ≈ 1/((1/i0-1) exp(-k <d> pg)+1) ER <d>=20, pg=0.1, 10 runs i(N)(k) ≈ 1/((1/i0-1) exp(-k <d> pg)+1) N=20 N=200 N=2000

Lesson 1 System dynamics is more deterministic the larger the network is For given <d> and pg, the MF solution shows the same relative error

ER <d>=20, 10 runs N=2000, pg=0.1 N=2000, pg=1/2000

Lesson 2 For given <d>, the smaller the infection probability pg the better the MF approximation Why?

Changing the degree ER N=1000, <d>pg=0.1, 10 runs Model <d>=10 <d>=100 i(N)(k) ≈ 1/((1/i0-1) exp(-k <d> pg)+1)

Lesson 3 Given <d>pg, the more the graph is connected, the better the MF approximation Why?

A different graph Ring(N,k)

Ring vs ER, N=2000, <k>=10 Model Erdos-Renyi Ring

Lesson 4 The smaller the clustering coefficient, the better the MF approximation Why?

Heterogeneous Networks Denote P(d) the probability that a node has degree d If the degree does not change much, we can replace d with <d> what we have done for ER graphs (N,p) Binomial with parameters (N-1,p) How should we proceed (more) correctly? Split the nodes in degree classes Write an equation for each class Remark: following derivation will not be as rigorous as previous ones

Heterogeneous Networks Nd number of nodes with degree d (=N*P(d)) Id: number of infected nodes with degree d Given node i with degree d and a link eij, what is the prob. that j has degree d’? P(d’)? NO and if degrees are uncorrelated? i.e. Prob(neighbour has degree d'|node has a degree d) independent from d, Is equal to d'/<d> P(d')

Heterogeneous Networks Given n (susc.) with degree d and a link enj Prob. that j has degree d’ is d'/<d> P(d’) Prob. that j has degree d’ and is infected d'/<d> P(d’) Id’/Nd’ more correct (d’-1)/<d> P(d’) Id’/Nd’ Prob. that n is infected through link enj is p = pg Σd’ (d’-1)/<d> P(d’) Id’/Nd’ Prob. that n is infected through one link 1-(1-p)d

Heterogeneous Networks E[(Id (k+1)-Id (k)|I (k)=I)] = (Nd-Id)(1-(1-p)d) p = pg Σd’ (d’-1)/<d> P(d’) Id’/Nd’ fd(N)(i)=(1-id)(1-(1-p)d) id = Id/Nd if we choose pg = pg0 /N fd(i)= pg0 (1-id) d Σd’(d’-1)/<d> P(d’) id’ did(t)/dt=fd(i(t))=pg0 (1-id(t)) d Θ(t) Θ

Heterogeneous Networks did(t)/dt=fd(i(t))=pg0 (1-id(t)) d Θ(t), for d=1,2… Θ(t)=Σd’(d’-1)/<d> P(d’) id’(t) id(0)=id0, for d=1,2… If id(0)<<1, for small t did(t)/dt ≈ pg0 d Θ(t) dΘ(t)/dt = Σd’(d’-1)/<d> P(d’) did’(t)/dt ≈ pg0 Σd’(d’-1)/<d> P(d’) d’ Θ(t) = = pg0 (<d2> - <d>)/<d> Θ(t)

Heterogeneous Networks dΘ(t)/dt ≈ pg0(<d2>-<d>)/<d> Θ(t) Outbreak time: <d>/((<d2>-<d>) pg0) For ER <d2>=<d>(<d>+1), we find the previous result, 1/(<d>pg0) What about for Power-law graphs, P(d)~d-γ? For the SIS model: dΘ(t)/d ≈ pg0(<d2>-<d>)/<d> Θ(t) – r0 Θ(t) Epidemic threshold: pg0 (<d2>-<d>)/(<d>r0)

Outline Limit of Markovian models Mean Field (or Fluid) models exact results extensions Applications Bianchi’s model Epidemic routing

Decoupling assumption in Bianchi’s model Assuming that retransmission processes at different nodes are independent Not true: if node i has a large backoff window, it is likely that also other nodes have large backoff windows We will provide hints about why it is possible to derive a Mean Field model… then the decoupling assumption is guaranteed asymptotically

References Benaïm, Le Boudec, “A Class of Mean Field Interaction Models for Computer and Communication Systems”, LCA-Report-2008-010 Sharma, Ganesh, Key, “Performance Analysis of Contention Based Medium Access Control Protocols”, IEEE Trans. Info. Theory, 2009 Bordenave, McDonarl, Proutière, “Performance of random medium access control, an asymptotic approach”, Proc. ACM Sigmetrics 2008, 1-12, 2008

Bianchi’s model N nodes, K possible stages for each node, in stage i (i=1,…V) the node transmits with probability q(N)i (e.g. q(N)i =1/W(N)i) If a node in stage i experiences a collision, it moves to stage i+1 If a node transmits successfully, it moves to stage 1

Mean Field model We need to scale the transmission probability: q(N)i =qi/N f(N)(m)=E[M(N)(k+1)-M(N)(k)|M(N)(k)=m] f1(N) (m)=E[M1(N)(k+1)-M1(N)(k)|M1(N)(k)=m] Pidle=Πi=1,…V(1-qi(N))miN The number of nodes in stage 1 increases by one if there is one successful transmission by a node in stage i<>1 Decreases if a node in stage 1 experiences a collision

Mean field model Pidle=Πi=1,…V(1-qi(N))miN -> exp(-Σiqi mi) Define τ(m)= Σiqi mi The number of nodes in stage 1 increases by one if there is one successful transmission by a node in stage i<>1 with prob. Σi>1 mi N qi(N) Pidle/(1-qi(N)) Decreases if a node in stage 1 experiences a collision with prob. m1 N q1(N) (1-Pidle/(1-q1(N)) f1(N) (m)=E[M1(N)(k+1)-M1(N)(k)|M1(N)(k)=m]= = Σi>1miqi(N)Pidle/(1-qi(N)) – m1q1(N)(1-Pidle/(1-q1(N)))

Mean field model Pidle=Πi=1,…V(1-qi(N))miN -> exp(-Σiqi mi) Define τ(m)= Σiqi mi f1(N) (m)=Σi>1miqi(N)Pidle/(1-qi(N)) – m1q1(N)(1-Pidle/(1-q1(N))) f1(N) (m) ~ 1/N (Σi>1miqi e-τ(m)–m1q1(1-e-τ(m))) f1(N) (m) vanishes and ε(N)=1/N, continuously differentiable in m and in 1/N This holds also for the other components Number of transitions bounded => We can apply the Theorem