Continuous Time Markov Chains and Basic Queueing Theory

Slides:



Advertisements
Similar presentations
Discrete time Markov Chain
Advertisements

Lecture 5 This lecture is about: Introduction to Queuing Theory Queuing Theory Notation Bertsekas/Gallager: Section 3.3 Kleinrock (Book I) Basics of Markov.
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Lecture 6  Calculating P n – how do we raise a matrix to the n th power?  Ergodicity in Markov Chains.  When does a chain have equilibrium probabilities?
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
Markov Chains.
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
Discrete Time Markov Chains
TCOM 501: Networking Theory & Fundamentals
IEG5300 Tutorial 5 Continuous-time Markov Chain Peter Chen Peng Adapted from Qiwen Wang’s Tutorial Materials.
Copyright © 2005 Department of Computer Science CPSC 641 Winter Markov Chains Plan: –Introduce basics of Markov models –Define terminology for Markov.
1 Part III Markov Chains & Queueing Systems 10.Discrete-Time Markov Chains 11.Stationary Distributions & Limiting Probabilities 12.State Classification.
Андрей Андреевич Марков. Markov Chains Graduate Seminar in Applied Statistics Presented by Matthias Theubert Never look behind you…
Lecture 13 – Continuous-Time Markov Chains
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Review.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
TCOM 501: Networking Theory & Fundamentals
Queueing Theory: Part I
2003 Fall Queuing Theory Midterm Exam(Time limit:2 hours)
1 TCOM 501: Networking Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yannis A. Korilis.
1 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
1 Markov Chains H Plan: –Introduce basics of Markov models –Define terminology for Markov chains –Discuss properties of Markov chains –Show examples of.
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
Eurecom, Sophia-Antipolis Thrasyvoulos Spyropoulos / Introduction to Continuous-Time Markov Chains and Queueing Theory.
Introduction to Stochastic Models GSLM 54100
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  …
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
Introduction to Queueing Theory
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
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.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Modeling and Analysis of Computer Networks
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
Markov Chains X(t) is a Markov Process if, for arbitrary times t1 < t2 < < tk < tk+1 If X(t) is discrete-valued If X(t) is continuous-valued i.e.
Chapter 61 Continuous Time Markov Chains Birth and Death Processes,Transition Probability Function, Kolmogorov Equations, Limiting Probabilities, Uniformization.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
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...
CS433 Modeling and Simulation Lecture 07 – Part 01 Continuous Markov Chains Dr. Anis Koubâa 14 Dec 2008 Al-Imam.
Winter 2004EE384x1 Poisson Process Review Session 2 EE384X.
CDA6530: Performance Models of Computers and Networks Chapter 3: Review of Practical Stochastic Processes.
Chapter 6 Product-Form Queuing Network Models Prof. Ali Movaghar.
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.
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.
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
Let E denote some event. Define a random variable X by Computing probabilities by conditioning.
Queueing Theory II.
Flows and Networks Plan for today (lecture 4):
CTMCs & N/M/* Queues.
Discrete Time Markov Chains
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Queueing Theory Carey Williamson Department of Computer Science
Lecture 7 Poisson Processes (a reminder)
Queueing Theory II.
Queueing networks.
September 1, 2010 Dr. Itamar Arel College of Engineering
Continuous time Markov Chains
Queuing Theory III.
Lecture 5 This lecture is about: Introduction to Queuing Theory
Presentation transcript:

Continuous Time Markov Chains and Basic Queueing Theory EE384X Review 4 Winter 2004

Review: DTMC pij is the transition probability from i to j over one time slot The time spent in a state is geometrically distributed Result of the Markov (memoryless) property When there is a jump from state i, it goes to state j with probability

Continuous Time Version j k qij qik qij is the transition rate from state i to state j

CTMC Upon entering state i, a random timer Tij»Exp(qij) is started for each potential transition i!j These timers are independent of each other Recall that Exponential distribution is memoryless When the first timer expires, the MC makes the corresponding transition Let Ti be the time spent in state i, and qi=åj¹i qij, then Ti » Exp(qi) When there is a transition, the probability of jumping to state j is qij /qi

Definitions {X(t):t¸0} is a continuous time Markov chain if P{X(s+t)=j | X(u); u·s} = P{X(s+t)=j | X(s)} Similar to Discrete Time MCs, Continuous Time MCs have stationary distribution p Exists when Markov chain is positive recurrent and irreducible

Stationary Distribution Balance equations: Transition rates in and out of state i are equal Define matrix transition rate Q = (qij) with qii= -qi , then p Q = 0, where p is a row vector Together with åi p(i) = 1, can solve for p

Queueing Theory Notation A/S/s/k A is the arrival process, e.g., Geometric, Poisson, Deterministic S is the service distribution, e.g., Geometric, Exponential, Deterministic s is the number of servers, e.g., 1, N, 1 k is the buffer size (if k is absent, then k = 1) E.g., Geom/M/1, M/M/1, M/D/1, M/M/1

M/M/1 Queue Arrivals are Poisson with rate l 1 2 3 l m Arrivals are Poisson with rate l Inter-arrival times are exp(l) Services are exponential with rate m These are also transition rates for the Markov chain This looks very similar to Geom/Geom/1 queue, but different

Solving M/M/1 Queue We have pi l = pi+1 m Let r = l/m, then pi = pi-1 r = p0 ri If r < 1, the stationary distribution exists: pi = (1 - r) ri Average Queue size:

M/M/1 Queue NQ is the queue size, excluding the one in service:

M/M/1 Queue Customer arrival process is Poisson(l) 1 2 3 l m 2m 3m 4m Customer arrival process is Poisson(l) All customers are served in parallel »exp(m) Departure rate proportional to # of customers

Solving M/M/1 Queue We have pi-1 l = pi i m Let r = l/m, then Thus

M/M/1 Queue The queue size distribution of the M/M/1 queue is Poisson(r) Therefore the average queue size is E(Q)=r What’s the condition for the queue to be recurrent?