TexPoint fonts used in EMF.

Slides:



Advertisements
Similar presentations
Chapter Queueing Notation
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)
Cheng-Fu Chou, CMLab, CSIE, NTU Basic Queueing Theory (I) Cheng-Fu Chou.
Multiaccess Problem How to let distributed users (efficiently) share a single broadcast channel? ⇒ How to form a queue for distributed users? The protocols.
Probability, Statistics, and Traffic Theories
Lecture 13 – Continuous-Time Markov Chains
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Simple queuing models (Sec )
Single queue modeling. Basic definitions for performance predictions The performance of a system that gives services could be seen from two different.
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.
Queueing Theory: Part I
Queueing Theory Chapter 17.
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
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.
Queueing Theory.
Queuing Theory. Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or queue)
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
CDA6530: Performance Models of Computers and Networks Examples of Stochastic Process, Markov Chain, M/M/* Queue TexPoint fonts used in EMF. Read the TexPoint.
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  …
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
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
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
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.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
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.
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.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
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.
Chapter 6 Queueing Models
1 Queuing Delay and Queuing Analysis. RECALL: Delays in Packet Switched (e.g. IP) Networks End-to-end delay (simplified) = End-to-end delay (simplified)
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.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
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.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
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.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Internet Queuing Delay Introduction
Queueing Theory Carey Williamson Department of Computer Science
System Performance: Queuing
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
TexPoint fonts used in EMF.
TexPoint fonts used in EMF.
Introduction to Queueing Theory
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
TexPoint fonts used in EMF.
Presentation transcript:

TexPoint fonts used in EMF. CDA6530: Performance Models of Computers and Networks Chapter 6: Elementary Queuing Theory TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAA

Definition Queuing system: a buffer (waiting room), service facility (one or more servers) a scheduling policy (first come first serve, etc.) We are interested in what happens when a stream of customers (jobs) arrive to such a system throughput, sojourn (response) time, Service time + waiting time number in system, server utilization, etc.

Terminology A/B/c/K queue A - arrival process, interarrival time distr. B - service time distribution c - no. of servers K - capacity of buffer Does not specify scheduling policy

Standard Values for A and B M - exponential distribution (M is for Markovian) D - deterministic (constant) GI; G - general distribution M/M/1: most simple queue M/D/1: expo. arrival, constant service time M/G/1: expo. arrival, general distr. service time

Some Notations Cn: custmer n, n=1,2, an: arrival time of Cn dn: departure time of Cn ®(t): no. of arrivals by time t (t): no. of departure by time t N(t): no. in system by time t N(t)=®(t)- (t)

Average arrival rate (from t=0 to now): ¸t = ®(t)/t

Little’s Law (t): total time spent by all customers in system during interval (0, t) Tt: average time spent in system during (0, t) by customers arriving in (0, t) Tt = (t)/®(t) Nt: average no. of customers in system during (0, t) Nt = (t)/t For a stable system, Nt= ¸t Tt Remmeber ¸t = ®(t)/t For a long time and stable system N = ¸ T Regardless of distributions or scheduling policy

Utilization Law for Single Server Queue X: service time, mean T=E[X] Y: server state, Y=1 busy, Y=0 idle ½: server utilization, ½ = P(Y=1) Little’s Law: N = ¸ E[X] While: N = P(Y=1)¢ 1 + P(Y=0)¢ 0 = ½ Thus Utilization Law: ½ = ¸ E[X] Q: What if the system includes the queue?

Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

The M/M/1 Queue An M/M/1 queue has Poisson arrivals (with rate λ) Exponential time between arrivals Exponential service times (with mean 1/μ, so μ is the “service rate”). One (1) server An infinite length buffer The M/M/1 queue is the most basic and important queuing model for network analysis

State Analysis of M/M/1 Queue N : number of customers in the system (including queue + server) Steady state ¼n defined as ¼n=P(N=n) =/: Traffic rate (traffic intensity) State transition diagram

we can use ¼Q = 0 and ¼i = 1 We can also use balance equation

State Analysis of M/M/1 Queue # of transitions  = # of transitions  ¼n are probabilities: : prob. the server is working (why  is called “server utilization”)

State Analysis of M/M/1 Queue N: avg. # of customers in the system

M/M/1 Waiting Time Xn: service time of n-th customer, Xn =st X where X is exponential rv Wn: waiting time of n-th customer Not including the customer’s service time Tn: sojourned time Tn =Wn +Xn When ½ < 1, steady state solution exists and Xn, Wn, Tn  X, W, T Q: E[W]?

State Analysis of M/M/1 Queue W: waiting time for a new arrival : service time of i-th customer : remaining service time of the customer in service Exponential r.v. with mean 1/ due to memoryless property of expo. Distr. T: sojourn (response) time

Alternative Way for Sojourn Time Calculation We know that E[N] = ½/(1-½) We know arrival rate ¸ Then based on Little’s Law N = ¸ T  E[T]=E[N]/¸ = 1/(¹-¸)

M/M/1 Queue Example A router’s outgoing bandwidth is 100 kbps Arrival packet’s number of bits has expo. distr. with mean number of 1 kbits Poisson arrival process: 80 packets/sec How many packets in router expected by a new arrival? What is the expected waiting time for a new arrival? What is the expected access delay (response time)? What is the prob. that the server is idle? What is P( N > 5 )? Suppose you can increase router bandwidth, what is the minimum bandwidth to support avg. access delay of 20ms?

Sojourn Time Distribution T’s pdf is denoted as fT(t), t¸ 0 T = X1 + X2 + +Xn + X Given there are N=n customers in the system Then, T is sum of n+1 exponential distr. T is (n+1)-order Erlang distr. When conditioned on n, the pdf of T (n+1 order Erlang) is denoted as fT|N(t|n)

Sojourn Time Distribution Remove condition N=n: Remember P(N=n) = ¼n = (1-½)½n Thus, T is exponential distr. with rate (¹-¸)

M/M/1/K Queue Arrival: Poisson process with rate ¸ Service: exponential distr. with rate ¹ Finite capacity of K customers Customer arrives when queue is full is rejected Model as B-D process N(t): no. of customers at time t State transition diagram

Calculation of ¼0 Balance equation: If ¸¹: If ¸=¹: ¼i=½¼i-1 = ½i¼0, i=1,, K If ¸¹: If ¸=¹:

E[N] If ¸¹: If ¸=¹:

Throughput Throughput? When not idle = ¹ When idle = 0 When not full = ¸ (arrive pass) When full = 0 (arrive drop) Prob. Buffer overflow = ¼K Throughput = (1-¼K)¸ +¼K¢ 0

Sojourn Time One way: T = X1+X2+ +Xn if there are n customers in (n·K) Doable, but complicated Another way: Little’s Law N = ¸ T The ¸ means actual throughput

M/M/c Queue c identical servers to provide service Model as B-D process, N(t): no.of customers State transition diagram: Balance equation:

Solution to balance equation: Prob. a customer has to wait (prob. of queuing)

M/M/1 Queue Infinite server (delay server) Each user gets its own server for service No waiting time Balance equation: why?

PASTA property PASTA: Poisson Arrivals See Time Average Meaning: When a customer arrives, it finds the same situation in the queueing system as an outside observer looking at the system at an arbitrary point in time. N(t): system state at time t Poisson arrival process with rate ¸ M(t): system at time t given that an arrival occurs in the next moment in (t, t+t)

If not Poisson arrival, then not correct