Queueing Theory II.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Continuous Time Markov Chains and Basic Queueing Theory
Queueing Theory: Recap
 2003 G.L. Li and V. O.K. Li, The University of Hong Kong 1 Networks of Queues: Myth and Reality Guang-Liang Li and Victor O.K. Li The University of Hong.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
TCOM 501: Networking Theory & Fundamentals
Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.
1 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
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  …
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
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.
TexPoint fonts used in EMF.
Modeling and Analysis of Computer Networks
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
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...
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
Network Design and Analysis-----Wang Wenjie Queueing Theory II: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
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.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Flows and Networks Plan for today (lecture 3): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
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. CONTINUOUS TIME MARKOV CHAINS {X(t), t >= 0} is a continuous time process with > sojourn times S 0, S 1, S 2,... > embedded process X n = X(S.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Queueing Theory II.
More on Exponential Distribution, Hypo exponential distribution
Renewal Theory Definitions, Limit Theorems, Renewal Reward Processes, Alternating Renewal Processes, Age and Excess Life Distributions, Inspection Paradox.
M/G/1 Queue & Renewal Reward Theory
Lecture 14 – Queuing Networks
The Poisson Process.
Flows and Networks Plan for today (lecture 3):
Basic Modeling Components
Flows and Networks Plan for today (lecture 4):
CTMCs & N/M/* Queues.
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Non-Markov Systems
Internet Queuing Delay Introduction
Lecture on Markov Chain
Multinomial Distribution
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Internet Queuing Delay Introduction
Generalized Jackson Networks (Approximate Decomposition Methods)
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
TexPoint fonts used in EMF.
Lecture 7 Poisson Processes (a reminder)
Flows and Networks Plan for today (lecture 6):
Queuing Theory By: Brian Murphy.
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Introduction to Queueing Theory
Queueing networks.
Lecture 14 – Queuing Networks
M/G/1 Cheng-Fu Chou.
LECTURE 09 QUEUEING THEORY PART3
CS723 - Probability and Stochastic Processes
Lecture 5 This lecture is about: Introduction to Queuing Theory
Presentation transcript:

Queueing Theory II

Summary M/M/1 Output process Networks of Queue Method of Stages Erlang Distribution Hyperexponential Distribution General Distributions Embedded Markov Chains

M/M/1 Output Process Burke’s Theorem: The Departure process of a stable M/M/1 queueing system with arrival rate λ is also a Poisson process with rate λ. Ak Dk-1 Ik Zk Dk Dk-1 Zk Dk Yk Yk Interdeparture Time

Burke’s Theorem PASTA PASTA

Two Queues in Series μ1 μ2 00 10 20 30 01 11 21 02 12 λ Let the state of this system be (X1,X2) where Xi is the number of customers in queue i. λ 00 10 20 30 01 11 21 02 12 μ1 μ2

Two Queues in Series 00 10 20 30 01 11 21 02 12 Balance Equations μ2 λ 00 10 20 30 01 11 21 02 12 μ1 μ2

Product Form Solution Let ρ1=λ/μ1, ρ2=λ/μ2 Recall the M/M/1 Results Therefore the two queues can be “decoupled” and studied in isolation.

Jackson Networks The product form decomposition holds for all open queueing networks with Poisson input processes that do not include feedback Even though customer feedback causes the total input process (external Poisson and feedback) become non-Poisson, the product form solution still holds! These types on networks are referred to as Jackson Networks The total input rate to each note is given by External Arrival Rate Aggregate Rate Routing Prob

Closed Networks The product form decomposition holds for also for closed networks Aggregate Rate Routing Prob

Non-Poisson Processes Assume that the service time distribution can be approximated by the sum of m iid exponential random variables with rate mμ. That is You can show that the density of Z is given by Z is an Erlang random variable with parameters (m, μ).

Erlang Distribution You can show that the distribution function of Z The expected value of Z is given by The variance of Z is given by Note that the variance of an Erlang is always less than or equal to the variance of the exponential random variable

M/Erm/1 Queueing System Meaning: Poisson Arrivals, Erlang distributed service times (order m), single server and infinite capacity buffer. Stage 1 mμ Stage 2 Stage m Erlang Server Only a single customer is allowed in the server at any given time. The customer has to go through all m stages before it is released.

M/Erm/1 Queueing System The state of the system needs to take into account the stage that the customer is in, so one could use (x,s) where x=0,1,2… is the number of customers and s=1,…,m is the stage that the customer in service is currently in. Alternatively, one can use a single variable y to be the total number of stages that need to be completed before the system empties. Let m=2 λ λ λ λ λ λ λ 1 2 3 n-1 n 4 2μ 2μ 2μ 2μ 2μ 2μ 2μ 2μ

Erm/Μ/1 Queueing System Similar to the M/Erm/1 System we can let the state be the number of arrival stages in the system, so for example, for m=2 2λ 1 2 3 n-1 n 4 μ

Hyperexponential Distribution Recall that the variance of the Erlang distribution is always less than or equal than the variance of the exponential distribution. What if we need service times with higher variance? μ1 μm μ2 Hyperexponential Server p1 p2 pm

Hyperexponential Distribution Expected values if the Hyperexponential distribution The variance of Z is given by

M/Hm/1 Queueing System 11 12 21 22 31 32 n1 n2 In this case, the state of the system should include both, the number of customers in the system and the stage that the customer in service is in. For example, for m=2 λ λ λ λ λp λ(1-p) μ1 μ2 λ 11 12 21 22 31 32 n1 n2 pμ1 (1-p)μ2 pμ2 (1-p)μ1 (1-p)μ2

M/G/1 Queueing System When the arrival and service processes do not possess the memoryless property, we are back to the GSMP framework. In general, we will need to keep track of the age or residual lifetime of each event. Embedded Markov Chains Some times it may be possible to identify specific points such that the Markov property holds For example, for the M/G/1 system, suppose that we choose to observe the state of the system exactly after each customer departure. For this problem, it doesn’t matter how long ago the previous arrival occurred since arrivals are generated from Poisson processes. Furthermore, at the point of a departure, we know that the age of the event is always 0.

Embedded Markov Chains So, right after each departure we observe the following chain (only the transitions from state n are drawn) Let aj be the probability that j arrivals will occur during the interval Y defined by two consecutive departures n-2 n-1 n+2 n+1 a2 n a1 a0 k a3 ak-n+1 Let N be a random variable that indicates the number of arrivals during Y, then aj = Pr{N = j}.

Embedded Markov Chains Suppose we are given the density of Y, fY(y) then Since we have a Poisson process Therefore

State Iteration Let Xk be the state of the system just after the departure of the kth customer Ak Xk-1 Xk Dk-1 Ik Zk Dk Dk-1 Zk Dk Yk Yk Arrivals During Yk

M/G/1 Queueing System Pollaczek-Khinchin (PK) Formula where X is the number of customers in the system 1/μ is the average service time σ2 is the variance of the service time distribution λ is the Poisson arrival rate ρ=λ/μ is the traffic intensity

M/G/1 Example Consider the queueing systems M/M/1 and M/D/1 Compare their average number in the system and average system delay when the arrival is Poisson with rate λ and the mean service time is 1/μ. For the M/M/1 system, σ2=1/μ2, therefore For the M/D/1 system, σ2=0, therefore