CPSC 531: System Modeling and Simulation

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Exponential and Poisson Chapter 5 Material. 2 Poisson Distribution [Discrete] Poisson distribution describes many random processes quite well and is mathematically.
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Probability, Statistics, and Traffic Theories
Stochastic Processes Dr. Nur Aini Masruroh. Stochastic process X(t) is the state of the process (measurable characteristic of interest) at time t the.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Queueing Theory: Part I
1 TCOM 501: Networking Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yannis A. Korilis.
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.

Exponential Distribution & Poisson Process
1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
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.
Queueing Analysis of Production Systems (Factory Physics)
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Birth and death process N(t) Depends on how fast arrivals or departures occur Objective N(t) = # of customers at time t. λ arrivals (births) departures.
Modeling and simulation of systems Introduction to queuing theory Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Winter 2004EE384x1 Poisson Process Review Session 2 EE384X.
CDA6530: Performance Models of Computers and Networks Chapter 3: Review of Practical Stochastic Processes.
Chapter 2 Probability, Statistics and Traffic Theories
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
Stochastic Processes1 CPSC : Stochastic Processes Instructor: Anirban Mahanti Reference Book “Computer Systems Performance.
CS 4594 Broadband Intro to Queuing Theory. Kendall Notation Kendall notation: [Kendal 1951] A/B/c/k/m/Z A = arrival probability distribution (most often.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
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.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
Renewal Theory Definitions, Limit Theorems, Renewal Reward Processes, Alternating Renewal Processes, Age and Excess Life Distributions, Inspection Paradox.
Exponential Distribution & Poisson Process
Basic Modeling Components
Load Balancing and Data centers
Al-Imam Mohammad Ibn Saud University
Pertemuan ke-7 s/d ke-10 (minggu ke-4 dan ke-5)
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Queuing Theory.
Queuing Theory Non-Markov Systems
Chapter 9: Queuing Models
Internet Queuing Delay Introduction
Lecture on Markov Chain
Birth-Death Process Birth – arrival of a customer to the system
Queueing Theory Carey Williamson Department of Computer Science
Introduction Notation Little’s Law aka Little’s Result
Markov Chains Carey Williamson Department of Computer Science
System Performance: Queuing
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
COMP60611 Fundamentals of Parallel and Distributed Systems
COMP60621 Designing for Parallelism
Carey Williamson Department of Computer Science University of Calgary
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Course Description Queuing Analysis This queuing course
Kendall’s Notation ❚ Simple way of summarizing the characteristics of a queue. Arrival characteristics / Departure characteristics / Number of servers.
CS723 - Probability and Stochastic Processes
VIRTUE MARYLEE MUGURACHANI QUEING THEORY BIRTH and DEATH.
Presentation transcript:

CPSC 531: System Modeling and Simulation Carey Williamson Department of Computer Science University of Calgary Fall 2017

Stochastic Process: Collection of random variables indexed over time Stochastic Processes Stochastic Process: Collection of random variables indexed over time Example: N(t): number of jobs in the system at time t The number N(t) at any time 𝑡 is a random variable Can find the probability distribution functions for N(t) at each possible value of t Notation: {𝑁 𝑡 :𝑡≥0}

Poisson Process Counting Process: A stochastic process that represents the total number of events occurring in the time interval [0, 𝑡] Poisson Process: The counting process {𝑁 𝑡 , 𝑡≥0} is a Poisson process with rate 𝜆, if: 𝑁 0 =0 The process has independent increments The number of events in any interval of length 𝑡 follows a Poisson distribution with mean 𝜆𝑡. That is, for all 𝑠, 𝑡≥0 ℙ 𝑁 𝑡+𝑠 −𝑁 𝑠 =𝑛 = 𝜆𝑡 𝑛 𝑛! 𝑒 −𝜆𝑡 Property: equal mean and variance: 𝐸 𝑁 𝑡 =𝑉 𝑁 𝑡 =𝜆𝑡

Poisson Arrival Process A common modeling assumption in simulation and/or analysis is that of Poisson arrivals (aka Poisson arrival process) Poisson Arrivals Model: Arrivals occur randomly (i.e., at “random” times) No two arrivals occur at exactly the same time Inter-arrival times are exponentially distributed and independent The counting process (number of events in any interval of length 𝑡) follows a Poisson distribution with mean 𝜆𝑡. That is, for all 𝑠, 𝑡≥0 ℙ 𝑁 𝑠+𝑡 −𝑁 𝑠 =𝑛 = 𝜆𝑡 𝑛 𝑛! 𝑒 −𝜆𝑡 Property: equal mean and variance: 𝐸 𝑁 𝑡 =𝑉 𝑁 𝑡 =𝜆𝑡

Interarrival Times Consider the interarrival times of a Poisson arrival process with rate 𝜆, denoted by 𝐴 1 , 𝐴 2 ,…, where 𝐴 𝑖 is the elapsed time between arrival 𝑖 and arrival 𝑖+1 Interarrival times, 𝐴 1 , 𝐴 2 ,… are independent identically distributed exponential random variables with mean 1/𝜆 Arrival counts ~ Poisson(𝜆) Interarrival times ~ Exponential(𝜆)

Pooling Property If you combine multiple Poisson processes together (pooling), then the resulting process is also Poisson Aggregate rate is the sum of the individual rates being pooled Pooling: 𝑁 1 (𝑡): Poisson process with rate 𝜆 1 𝑁 2 (𝑡): Poisson process with rate 𝜆 2 𝑁 𝑡 = 𝑁 1 𝑡 + 𝑁 2 (𝑡): Poisson process with rate 𝜆 1 + 𝜆 2 N(t) ~ Poisson(l1 + l2) N1(t) ~ Poisson(l1) N2(t) ~ Poisson(l2) l1 + l2 l1 l2

Splitting Property If you split a Poisson process “randomly”, then the resulting individual processes are also Poisson Individual rates sum to that of the original process Splitting: 𝑁(𝑡): Poisson process with rate 𝜆 Each event is classified as Type 1 (probability 𝑝) or Type 2 (probability 1−𝑝) 𝑁 1 (𝑡): The number of Type 1 events is a Poisson process with rate 𝑝𝜆 𝑁 2 (𝑡): The number of Type 2 events is a Poisson process with rate (1−𝑝)𝜆 𝑁 𝑡 = 𝑁 1 (t)+ 𝑁 2 (𝑡) N(t) ~ Poisson(l) N1(t) ~ Poisson(lp) N2(t) ~ Poisson(l(1-p)) l lp l(1-p)

More on Poisson Distribution {𝑁 𝑡 , 𝑡≥0}: a Poisson process with arrival rate l Probability of no arrivals in a small time interval ℎ: ℙ 𝑁 ℎ =0 = 𝑒 −𝜆ℎ ≈1−𝜆ℎ Probability of one arrivals in a small time interval ℎ: ℙ 𝑁 ℎ =1 = 𝜆ℎ⋅𝑒 −𝜆ℎ ≈𝜆ℎ Probability of two or more arrivals in a small time interval ℎ: ℙ 𝑁 ℎ ≥2 =1 − ℙ 𝑁 ℎ =0 +ℙ 𝑁 𝑡 =1 ≈0

Aside: Poisson Point Process The discussion so far has focused on the temporal aspects of a Poisson process (i.e., in time domain) Similar properties apply to the spatial domain (i.e., location) in one or more dimensions Poisson Point Process: Items are dispersed randomly (i.e., at “random” locations) No two items occur at exactly the same place Inter-item distances are exponentially distributed and independent The counting process (number of events in any region of area A) follows a Poisson distribution with mean 𝜆𝐴. That is, for all 𝑠, 𝐴≥0 ℙ 𝑁(𝐴) =𝑛 = 𝜆𝐴 𝑛 𝑛! 𝑒 −𝜆𝐴 Property: equal mean and variance: 𝐸 𝑁 𝐴 =𝑉 𝑁 𝐴

Bonus Material: Queueing Theory Basics Queueing theory is a well-established area of performance modeling that studies the behaviour of queues Classic textbook: Queueing Systems: Vol 1, by L. Kleinrock The foundation of queueing theory is built using the types of probability models that we have just been studying The goal in this short presentation is to show you the basics of the M/M/1 queuing model, for which N = ρ/(1-ρ) This is only a preview; we will revisit this material in much more depth in late November and/or early December

Notation λ: The average arrival rate (in customers per time unit) The mean inter-arrival time is 1/λ μ: The average service rate (in customers per time unit) The mean service time requirement is 1/μ ρ: The average load offered to the system ρ = λ/μ < 1.0 Kendall notation for queueing systems: Arrival process: either M (for Markovian) or G (for General) Service time process: either D (for Deterministic), M, or G N: The number of servers Example: M/M/1 is a single-server queue with a Poisson arrival process and exponential service times for customers

… M/M/1 System Model Markov chain model of classic M/M/1 queue Birth-death process representing system occupancy Fixed arrival rate λ Fixed service rate μ 2 1 4 3 λ … μ μ μ μ μ Mean system occupancy: N = ρ / (1 – ρ) Ergodicity requirement: ρ = λ/μ < 1 pn = p0 (λ/μ)n U = 1 – p0 = ρ 1212