CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.

Slides:



Advertisements
Similar presentations
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Advertisements

1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
Cheng-Fu Chou, CMLab, CSIE, NTU Basic Queueing Theory (I) Cheng-Fu Chou.
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2012 (Term 112)
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
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.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Chapter 9: Queuing Models
Introduction to Queuing Theory
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
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  …
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
 Birth Death Processes  M/M/1 Queue  M/M/m Queue  M/M/m/B Queue with Finite Buffers  Results for other Queueing systems 2.
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.
Introduction to Operations Research
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.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
TexPoint fonts used in EMF.
Modeling and Analysis of Computer Networks
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
CS352 - Introduction to Queuing Theory Rutgers University.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Network Design and Analysis-----Wang Wenjie Queueing Theory II: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Computer Networking Queueing (A Summary from Appendix A) Dr Sandra I. Woolley.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
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.
CS433 Modeling and Simulation Lecture 11 Continuous Markov Chains Dr. Anis Koubâa 01 May 2009 Al-Imam Mohammad Ibn Saud University.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
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.
Queuing Models.
Queueing Theory. The study of queues – why they form, how they can be evaluated, and how they can be optimized. Building blocks – arrival process and.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
Queueing Theory II.
WAITING LINES AND SIMULATION
Al-Imam Mohammad Ibn Saud University
CTMCs & N/M/* Queues.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Internet Queuing Delay Introduction
Introduction Notation Little’s Law aka Little’s Result
TexPoint fonts used in EMF.
Queuing Theory By: Brian Murphy.
Queuing Theory III.
Queueing Theory 2008.
Queuing Theory III.
Queueing Theory Frank Y. S. Lin Information Management Dept.
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.
Presentation transcript:

CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University

Goals for Today  Lean the most important queuing models  Single Queue: M/M/1  Multiple Queues: M/M/m  Multiple Servers: M/M/m/m

M/M/1 Queue 3 Poisson Arrivals, exponentially distributed service times, 1 server and infinite capacity buffer

M/M/1 Example M/M/1 Queue Poisson Arrivals (rate ), exponentially distributed service times (rate  ), one server, infinite capacity buffer. λ 01 μ λ 2 μ λ j-1 μ λ j μ μ λ λ μ Queue Server λ μ Click for Queue Simulator Queue Load

M/M/1 queue model 5  E[W] E[S] Xs E[X]

M/M/1 Queue: Steady State λ 01 μ λ 2 μ λ j-1 μ λ j μ μ λ λ μ Using the birth-death result λ j = λ and μ j = μ, we obtain Therefore for λ / μ = ρ <1 Probability that the Queue in Empty

M/M/1 Performance Metrics Server Utilization Throughput Expected Queue Length

M/M/1 Performance Metrics Average System Time Average waiting time in queue

Response Time vs. Arrivals 9

Stable Region CS352 Fall, linear region

M/M/1 Performance Metrics Examples μ=0.5 Ε[Χ]Ε[Χ] Ε[W]Ε[W] Ε[S]Ε[S]

PASTA Property  PASTA: Poisson Arrivals See Time Averages Let π j (t)= Pr{ System state X(t)= j } Let a j (t)= Pr{ Arriving customer at t finds X(t)= j } In general π j (t) ≠ a j (t)!  Suppose a D/D/1 system with interarrival times equal to 1 and service times equal to aaaa Thus π 0 (t)= 0.5 and π 1 (t)= 0.5 while a 0 (t)= 1 and a 1 (t)= 0!

Theorem For a queueing system, when the arrival process is Poisson and independent of the service process then, the probability that an arriving customer finds j customers in the system is equal to the probability that the system is at state j. In other words, Proof: Arrival occurs in interval (t, Δ t)

M/M/m Queue 14 Poisson Arrivals, exponentially distributed service times, m identical servers and infinite capacity buffer

M/M/m Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, m identical servers and infinite capacity buffer. λ 01 μ λ 2 2μ2μ λ m mμmμ λ m+1 mμmμ 3μ3μ λ λ mμmμ 1 m …

M/M/m Queueing System Using the general birth-death result Letting ρ=λ/(mμ) we get To find π 0

M/M/m Performance Metrics Server Utilization

M/M/m Performance Metrics Throughput Expected Number of Customers in the System Using Little’s Law, the average response time Average Waiting time in queue

M/M/m Performance Metrics Queueing Probability Erlang C Formula

Example Suppose that customers arrive according to a Poisson process with rate λ=1. You are given the following two options,  Install a single server with processing capacity μ 1 = 1.5  Install two identical servers with processing capacity μ 2 = 0.75 and μ 3 = 0.75  Split the incoming traffic to two queues each with probability 0.5 and have μ 2 = 0.75 and μ 3 = 0.75 serve each queue. μ1μ1 λ Α μ2μ2 μ3μ3 λ Β μ2μ2 μ3μ3 λ C

Example Throughput It is easy to see that all three systems have the same throughput E[R A ]= E[R B ]= E[R C ]=λ Server Utilization Therefore, each server is 2/3 utilized Therefore, all servers are similarly loaded.

Example Probability of being idle For each server

Example Queue length and delay For each queue!

End of Chapter 24

M/M/∞ Queue 25

M/M/ ∞ Queueing System Special case of the M/M/m system with m going to ∞ λλ λ λ 01 μ 2 2μ2μ λ m mμmμ m+1 (m+1)μ 3μ3μ λ Let ρ=λ/μ then, the state probabilities are given by System Utilization and Throughput

M/M/ ∞ Performance Metrics Expected Number in the System Using Little’s Law No queueing! Number of busy servers

M/M/1/K – Finite Buffer Capacity Meaning: Poisson Arrivals, exponentially distributed service times, one server and finite capacity buffer K. Using the birth-death result λ j =λ and μ j =μ, we obtain Therefore for λ/μ = ρ λ 01 μ λ 2 μ λ K-1 μ λ K μ μ λ

M/M/1/K Performance Metrics Server Utilization Throughput Blocking Probability Probability that an arriving customer finds the queue full (at state K )

M/M/1/K Performance Metrics Expected Queue Length System time Net arrival rate (no losses)

M/M/m/m – Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, m servers and no storage capacity. Using the birth-death result λ j =λ and μ j =μ, we obtain Therefore for λ/μ = ρ λ 01 μ λ 2 2μ2μ λ m-1 (m-1)μ λ m mμmμ 3μ3μ λ

M/M/m/m Performance Metrics Throughput Blocking Probability Probability that an arriving customer finds all servers busy (at state m ) Erlang B Formula

M/M/1//N – Closed Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, one server and the number of customers are fixed to N. NλNλ 01 μ (N-1)λ 2 μ 2λ2λ N-1 μ λ N μ μ (N-2)λ λ μ 1 N … Using the birth-death result, we obtain

M/M/1//N – Closed Queueing System Response Time  Time from the moment the customer entered the queue until it received service. NλNλ 01 μ (N-1)λ 2 μ 2λ2λ N-1 μ λ N μ μ (N-2)λ For the queue, using Little’s law we get, In the “thinking” part, Therefore