M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

E&CE 418: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen
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)
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Simple queuing models (Sec )
1 Overview of Queueing Systems Michalis Faloutsos Archana Yordanos The web.
The Theory of Queues Models of Waiting in line. Queuing Theory Basic model: Arrivals  Queue  Being Served  Done – Queuing theory lets you calculate:
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
CS533 Modeling and Performance Evaluation of Network and Computer Systems Queuing Theory (Chapter 30-31)
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?
Lecture 14 – Queuing Systems

Queuing Models and Capacity Planning
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  …
Queuing Theory Summary of results. 2 Notations Typical performance characteristics of queuing models are: L : Ave. number of customers in the system L.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Chapter 2 Machine Interference Model Long Run Analysis Deterministic Model Markov Model.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
 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
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
Introduction to Queueing Theory
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.
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
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.
Machine interference problem: introduction
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.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
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.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
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.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Managerial Decision Making Chapter 13 Queuing Models.
Models of Traffic Flow 1.
Al-Imam Mohammad Ibn Saud University
CTMCs & N/M/* Queues.
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Demo on Queuing Concepts
Lecture on Markov Chain
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Internet Queuing Delay Introduction
Birth-Death Process Birth – arrival of a customer to the system
TexPoint fonts used in EMF.
Queueing Theory 2008.
Queueing Theory Frank Y. S. Lin Information Management Dept.
Course Description Queuing Analysis This queuing course
Presentation transcript:

M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate μ: service rate λn = λ, (n >=0); μn = μ (n>=1)

Traffic intensity rho = λ/μ It is a measure of the total arrival traffic to the system Also known as offered load Example: λ = 3/hour; 1/μ=15 min = 0.25 h Represents the fraction of time a server is busy In which case it is called the utilization factor Example: rho = 0.75 = % busy To understand better the physical meaning of this unit, take a look at the traffic presented to a single resource. One Erlang is equivalent to a single user who uses that resources 100% of the time, or alternatively, 10 users who each occupy the resource 10% of the time. A traffic intensity greater than one indicates that customers arrive faster than they are served and is a good indication of the minimum number of servers required to achieve a stable system. For an example, a traffic intensity of 2.5 Erlangs indicates that at least three servers are required.

Queuing systems: stability N(t) λ<μ => stable system λ>μ Steady build up of customers => unstable busy idle 1 2 3 1 2 3 4 5 6 7 8 9 10 11 Time N(t) 1 2 3 1 2 3 4 5 6 7 8 9 10 11 Time

Example#1 A communication channel operating at 9600 bps Receives two type of packet streams from a gateway Type A packets have a fixed length format of 48 bits Type B packets have an exponentially distribution length With a mean of 480 bits If on the average there are 20% type A packets and 80% type B packets Calculate the utilization of this channel Assuming the combined arrival rate is 15 packets/s

Performance measures L Lq W Wq Mean # customers in the whole system Mean queue length in the queue space W Mean waiting time in the system Wq Mean waiting time in the queue

Mean queue length (M/M/1)

Mean queue length (M/M/1) (cont’d)

Little’s theorem This result The theorem Existed as an empirical rule for many years And was first proved in a formal way by Little in 1961 The theorem Relates the average number of customers L In a steady state queuing system To the product of the average arrival rate (λ) And average waiting time (W) a customer spend in a system The beauty of it lies in the fact that it does not assume any specific distribution for the arrival as well as the service process, nor does it assume any queuing discipline or depend upon the number of parallel servers in the system.

LITTLE’s Formula 𝑁 =𝜆× 𝐷 Little’s relation holds for any 𝑁 : average number of messages in system 𝐷 : average delay λ: arrival rate Little’s relation holds for any Service discipline Arrival process Holding area

Graphical Proof A(t) L(t) => N(t) = A(t) – L(t) Cumulative arrival process L(t) Nb. of customers that left system up to t => N(t) = A(t) – L(t) Nb. of customers in system at time t di : interval between ith arrival and its departure ∆ 𝑡 = 𝑑 1 + 𝑑 2 + …+ 𝑑 𝑛

Graphical Proof (continued)

Graphical Proof (continued) 𝜆 𝑇 = 𝐴(𝑇) 𝑇 , 𝐷(𝑇) = ∆(𝑇) 𝐴(𝑇) ⇒𝜆 𝑇 × 𝐷 𝑇 = ∆(𝑇) 𝑇 = 𝑁(𝑇) Now, let 𝑇→∞ lim 𝑇→∞ 𝜆 𝑇 =𝜆, lim 𝑇→∞ 𝐷 𝑇 = 𝐷 ⇒ lim 𝑇→∞ 𝑁 𝑇 = 𝑁 =𝜆 𝐷

Mean waiting time (M/M/1) Applying Little’s theorem

Z-transform: application in queuing systems X is a discrete r.v. P(X=i) = Pi, i=0, 1, … P0 , P1 , P2 ,… Properties of the z-transform g(1) = 1, P0 = g(0); P1 = g’(0); P2 = ½ . g’’(0) 𝐸 𝑋 = 𝑑 𝑑𝑧 𝑔 𝑧 𝑧=1 , 𝐸 𝑋 2 = 𝑑 2 𝑑 𝑧 2 𝑔 𝑧 𝑧=1 + 𝑑 𝑑𝑧 𝑔 𝑧 𝑧=1

M/M/1 Queue – Infinite Waiting Room Probability generating function 𝑃 𝑧 = 𝑛=0 ∞ 𝜌 𝑛 1−𝜌 𝑧 𝑛 = 1−𝜌 1−𝑧𝜌 Mean 𝑁 = 𝜌 (1−𝜌) Variance 𝑉𝑎𝑟 𝑁 = 𝜌 1−𝜌 2

M/M/S

M/M/S (cont’d)

M/M/S S servers μ λ

M/M/S: normalizing equations

M/M/S: stable queue is λ/Sμ < 1 ? Otherwise you will not get a stable queue, as such

M/M/S: performance measures Mean queue length Mean waiting time in the queue (Little’s theorem) Mean waiting time in the system Mean # of customers in the whole system

Erlang C formula A quantity of interest Probability to find all s servers busy 𝑃 𝑐 𝑠, 𝜌 = 𝑛=𝑠 ∞ 𝑃 𝑛 = 𝑠 𝜌 𝑠 𝑠!(𝑠−𝜌 ) 𝑛=0 𝑠−1 𝜌 𝑛 𝑛! + 𝑠 𝜌 𝑠 (𝑠!(𝑠−𝜌)) Ratio between Lq and Pc 𝐿 𝑞 𝑃 𝑐 = 𝜌 (𝑠−𝜌) ⇒ 𝑊 𝑞 = 𝑃 𝑐 𝜌 𝜆 𝑠−𝜌

M/M/S: stability revisited Stable If λ/Sμ < 1 Arrival rate to an individual server Utilization of a server Utilization of all servers

M/M/1/N λ μ % loss N Birth and death equations

M/M/1/N: normalizing constant Let ρ=λ/μ As such Probability of arriving to a full waiting room

M/M/1/N: what percent of λ gets into the queue? Percentage of time the queue is full is equal to PN Rate of lost customers = λ.PN Rate of customers getting in : λ.(1-PN) Often referred to as effective customer arrival rate Utilization of server .75 .25 Not full full

M/M/1/N: performance measures Mean # of customers in the system Mean queue length Waiting time in system: W = L/λ Waiting time in queue: Wq = Lq/λ LM/M./1

M/M/1/N: equivalent systems When an M/M/1/N queue is full Continuous arrival A system with loss is equivalent to shutting up the service For the duration during which the queue is full And starting it up again when system no longer ful This system is called a shut down system This equivalence holds only when the inter-arrival is exponential

Proof: rate diagrams M/M/1/N system with loss Consider the special case where N = 5 λ λ λ λ λ λ 1 2 3 4 5 μ μ μ μ μ

Proof: rate diagrams (cont’d) M/M/1/N shut down system Consider the special case where N = 5 λ λ λ λ λ 1 2 3 4 5 μ μ μ μ μ

M/M/infinity: birth and death equations Infinite number of servers λ μ .

M/M/infinity: normalizing constant

Erlang system: M/M/S/S Finite number of Servers = S λ μ .

Erlang loss formula What percent gets in and What percent gets lost PS = prob S customers in system Effective arrival rate Rate of lost customers = λ.PS Erlang loss formula

Erlang B formula Probability of finding all s servers busy 𝑃 𝐵 𝑠, 𝜌 = 𝜌 𝑠 𝑠! 𝑛=0 𝑠 𝜌 𝑛 𝑛! In an iterative form: 𝑃 𝐵 𝑠, 𝜌 = 𝜌 𝑃 𝐵 (𝑠−1,𝜌) 𝑠+𝜌 𝑃 𝐵 (𝑠−1, 𝜌) 𝑃 𝐵 0, 𝜌 =1