 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.

Slides:



Advertisements
Similar presentations
UNIT-II Queuing Theory
Advertisements

Introduction to Queuing Theory
Capacity Setting and Queuing Theory
Queueing Model 박희경.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
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.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Simple queuing models (Sec )
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory Chapter 17.
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.
1 Overview of Queueing Systems Michalis Faloutsos Archana Yordanos The web.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
CS533 Modeling and Performance Evaluation of Network and Computer Systems Queuing Theory (Chapter 30-31)
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
Introduction to Queuing Theory
Queueing Theory Queueing theory definitions (Bose) “the basic phenomenon of queueing arises whenever a shared facility needs to be accessed for.
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  …
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
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
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 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
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
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
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
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.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
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.
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.
Internet Applications: Performance Metrics and performance-related concepts E0397 – Lecture 2 10/8/2010.
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.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
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.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
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 Simulation & Modeling.
CPE 619 Introduction to Queuing Theory
Al-Imam Mohammad Ibn Saud University
Internet Queuing Delay Introduction
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Internet Queuing Delay Introduction
Queuing models Basic definitions, assumptions, and identities
Delays Deterministic Stochastic Assumes “error free” type case
Queuing models Basic definitions, assumptions, and identities
TexPoint fonts used in EMF.
Delays Deterministic Stochastic Assumes “error free” type case
Queueing Theory 2008.
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:

 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

 Jobs arrive one at a time (and not as a batch)  State = Number of jobs n in the system  Arrival of a new job changes the state to n+1  birth  Departure of a job changes the system state to n-1  death  State-transition diagram: 3 012j-1jj+1 …    j  j j     jj  j   j 

 When the system is in state n, it has n jobs in it. ◦ The new arrivals take place at a rate n ◦ The service rate is  n  We assume that both the inter-arrival times and service times are exponentially distributed 4

 The steady-state probability p n of a birth- death process being in state n is given by:  Here, p 0 is the probability of being in the zero state 5

6

7

8

9

 The sum of all probabilities must be equal to one: 10

 M/M/1 queue is the most commonly used type of queue  Used to model single processor systems or to model individual devices in a computer system  Assumes that the interarrival times and the service times are exponentially distributed and there is only one server  No buffer or population size limitations and the service discipline is FCFS  Need to know only the mean arrival rate and the mean service rate   State = number of jobs in the system J-1JJ+1 … 

12

13

14

15

 On a network gateway, measurements show that the packets arrive at a mean rate of 125 packets per second (pps) and the gateway takes about two milliseconds to forward them. Using an M/M/1 model, analyze the gateway. What is the probability of buffer overflow if the gateway had only 13 buffers? How many buffers do we need to keep packet loss below one packet per million?  Arrival rate = 125 pps  Service rate  = 1/.002 = 500 pps  Gateway Utilization  = /  = 0.25  Probability of n packets in the gateway = (1-  )  n = 0.75(0.25) n ) 16

 Mean Number of packets in the gateway = (  /(1-  ) = 0.25/0.75 = 0.33)  Mean time spent in the gateway = ((1/  )/(1-  )= (1/500)/(1-0.25) = 2.66 milliseconds  Probability of buffer overflow  To limit the probability of loss to less than : We need about ten buffers. 17

 The last two results about buffer overflow are approximate. Strictly speaking, the gateway should actually be modeled as a finite buffer M/M/1/B queue. However, since the utilization is low and the number of buffers is far above the mean queue length, the results obtained are a close approximation. 18

 Web server. Time between requests exponential with mean time between 8 ms. Time to process exponential with average service time 5 ms. A) What is the average response time? B) How much faster must the server be to halve this average response time? C) How big a buffer so only 1 in 1,000,000,000 requests are lost? 19

Request rate = 1/ 8 = requests per ms Service rate  = 1/ 5 = 0.2 requests per ms Utilization  = /  =.125/.2 =.625 So, 62.5% of capacity A) Avg response time (1/  ) / (1-  ) = (1/.2)/(1-.625) = ms To halve, want (1/  ) / (1-  ) = Assume fixed, so change   = 1/ =.257 B) So, ( )/.2 * 100 = 37.5% faster 1 in 1 billion errors Buffer size k: Pr(k)   k  C) So, k > log(10 -9 ) / log(.625) k  44 20

21

 How does response time for previous M/M/1 Web server change if number of servers increased to 4? ◦ Can model as M/M/4 22

Request rate =0.125 Service rate  =0.2 Traffic intensity  = ( )/c  = Probability of idle P 0 = ____1_________  [(c  ) n /n!] + (c  ) c /(c!(1-  )) P 0 = Erlang’s C formula  = (4x0.1563) 4 (0.5352) 4!( ) = So, average response time: E[r] = 1/  +  /c  (1-  ) = 1/ /(4)(.2)( ) = 5.01 ms Thus, increasing servers by 4 reduces response time by appx 62% 23

24

 Birth-death processes: Compute probability of having n jobs in the system  M/M/1 Queue: Load-independent => Arrivals and service do not depend upon the number in the system 25