Cheng-Fu Chou, CMLab, CSIE, NTU Basic Queueing Theory (I) Cheng-Fu Chou.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
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)
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Queueing Model 박희경.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
HW # Due Day: Nov 23.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Queuing Systems Chapter 17.
Multiple server queues In particular, we look at M/M/k Need to find steady state probabilities.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
1 Queuing Theory 2 Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
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)
HW # Due Day: Nov 23.
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?

Queuing Theory (Waiting Line Models)
Introduction to Queuing Theory
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
Intro. to Stochastic Processes
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
Introduction to Operations Research
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
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
TexPoint fonts used in EMF.
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.
The production inventory problem What is the expected inventory level? What is expected backorder level? What is the expected total cost? What is the optimal.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
Cheng-Fu Chou, CMLab, CSIE, NTU Open Queueing Network and MVA Cheng-Fu Chou.
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,
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
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.
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.
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.
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,
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Internet Queuing Delay Introduction
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
TexPoint fonts used in EMF.
Queuing Theory By: Brian Murphy.
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
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.
CS723 - Probability and Stochastic Processes
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Cheng-Fu Chou, CMLab, CSIE, NTU Basic Queueing Theory (I) Cheng-Fu Chou

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 2 Outline  Little result  M/M/1  Its variant  Method of stages

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 3 Queueing System  Kendall’s notations –A/B/C/K –C: number of servers –K: the size of the system capacity; the buffer space including the servers  A(t): the inter-arrival time dist.  B(t): the service time dist. –M: exponential dist. –G: general dist. –D: deterministic dist.

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 4 Time Diagram for queues  C n : the n-th customer to enter the systsem  N(t): number of customers in the system at time t  U(t): unfinished work in the system at time t   n : arrival time for C n  t n : inter-arrival time between C n-1 and C n, i.e., A(t) = P[t n  t]  x n : service time for C n, B(t) = P[x n  t]  w n : waiting time for C n  s n : system time for C n= w n +x n –Draw the diagram

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 5 Little Result   (t) : no. of arrivals in (0,t)   (t): no. of departures in (0,t)  t : the average arrival rate during the interval (0,t)  r(t): the total time all customers have spent in the system during (0,t)  Tt : the average system time during (0,t) –proof

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 6 M/M/1  The average inter-arrival time is t = 1/ and t is exponentially distributed.  The average service time is x = 1/  and x is exponentially distributed.  Find out –p k : the prob. of finding k customers in the system –N : the avg. number of customers in the system –T : the avg. time spent in the system

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 7 M/M/1  Poisson arrival

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 8 Discouraged Arrival  A system where arrivals tend to get discouraged when more and more people are present in the system –arrival rate: k =  /(k+1), where k = 0,1,2,… –service rate:  k = , where k = 1,2,3,…

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 9 Discouraged Arrival

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 10 M/M/   Infinite number of servers –there is always a new server available for each arriving customer. –arrival rate : –service rate of each server: 

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 11 M/M/   We know –Arrival rate k =, k = 0, 1, 2, … –Departure rate  k = k , k = 1, 2, 3, …

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 12 M/M/m  The m-server case –The system provides a maximum of m servers

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 13 M/M/m  Arrival rate k = and service rate  k = min(k , m  )

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 14 M/M/1/K  Finite storage: a system in which there is a maximum number of customers that may be stored ( K customers)

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 15 M/M/1/K

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 16 M/M/m/m  m-server loss system

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 17 M/M/m/m (m-server loss system)  m-server loss systems

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 18 M/M/1//m  Finite customer population and single server –A single server –There are total m customers

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 19 M/M/1//m (finite customer population)

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 20 PASTA  Poisson Arrival See Time Average

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 21 Method of stages  Erlangian distribution

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 22 Er: r-stage Erlangian Dist.  r-stage Erlangian dist.

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 23 M/Er/1

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 24 E 2 /M/1

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 25 Bulk arrival systems  Bulk arrival system –g i = P[bulk size is i] –e.g. random-size families arriving at the doctor’s office for individual specific service

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 26 Bulk Service System  Bulk service system –The server will accept r customers for bulk service if they are available –If not, the server accept less than r customers if any are available –HW : M/B 2 /1

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 27 M/B 2 /1

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 28 Response time in M/M/1  The distribution of number of customers in systems :  How about the distribution of the system time ? –Idea: if an arrival who finds n other customers in system, then how much time does he need to spend to finish service?

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 29 Response time (cont.)  r n : the proportion of arrivals who find n other customers in system on arrival  p n : the proportion of time there are n customers in system  Due to PASTA, {r n } = {p n }, given that there are n customers in the systems

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 30 Response Time  Unconditioning on n

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 31 Waiting time Dist. For M/M/c  For M/M/c queueing system, given a customer is queued, please find out his/her waiting time dist. is –(D| D>0) ~ exp(c  – ) –hint

Cheng-Fu Chou, CMLAB, CSIE, NTU P. 32  W = P(D>0)/(c  - )  And