Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.

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 박희경.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
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),
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.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2012 (Term 112)
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
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 Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
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.
 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.
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.
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.
Lecture 3: 1 Introduction to Queuing Theory More interested in long term, steady state than in startup => Arrivals = Departures Little’s Law: Mean number.
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.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
CS352 - Introduction to Queuing Theory Rutgers University.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
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.
Chapter 6 Queueing Models
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
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.
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
Queuing Theory and Traffic Analysis
Lecture 2.7. Queuing Theory
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Lecture on Markov Chain
Queueing Theory.
Internet Queuing Delay Introduction
Queueing Theory Carey Williamson Department of Computer Science
Queuing models Basic definitions, assumptions, and identities
System Performance: Queuing
Queuing models Basic definitions, assumptions, and identities
TexPoint fonts used in EMF.
Queuing Theory By: Brian Murphy.
Queueing networks.
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
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.
Course Description Queuing Analysis This queuing course
Presentation transcript:

Queuing Theory and Traffic Analysis Based on Slides by Richard Martin

Queuing theory View network as collections of queues –FIFO data-structures Queuing theory provides probabilistic analysis of these queues Examples: –Average length –Probability queue is at a certain length –Probability a packet will be lost

Little’s Law Little’s Law: Mean number tasks in system = arrival rate x mean response time –Observed before, Little was first to prove Applies to any system in equilibrium, as long as nothing in black box is creating or destroying tasks ArrivalsDepartures System

Proving Little’s Law J = Shaded area = 9 Same in all cases! Packet # Time # in System Time Time in System Packet # Arrivals Departures

Definitions J: “Area” from previous slide N: Number of jobs (packets) T: Total time  : Average arrival rate –N/T W: Average time job is in the system –= J/N L: Average number of jobs in the system –= J/T

# in System (L) Proof: Method 1: Definition Time (T) Time in System (W) Packet # (N) =

Proof: Method 2: Substitution Tautology

Example using Little’s law Observe 120 cars in front of the Lincoln Tunnel Observe 32 cars/minute depart over a period where no cars in the tunnel at the start or end (e.g. security checks) What is average waiting time before and in the tunnel?

Model Queuing System Strategy: Use Little’s law on both the complete system and its parts to reason about average time in the queue Server System Queuing System Queue Server Queuing System 

Kendal Notation Six parameters in shorthand First three typically used, unless specified  Arrival Distribution Probability of a new packet arrives in time t  Service Distribution Probability distribution packet is serviced in time t  Number of servers  Total Capacity (infinite if not specified)  Population Size (infinite)  Service Discipline (FCFS/FIFO)

Distributions M: Exponential D: Deterministic (e.g. fixed constant) E k : Erlang with parameter k H k : Hyperexponential with param. k G: General (anything) M/M/1 is the simplest ‘realistic’ queue

Kendal Notation Examples M/M/1: –Exponential arrivals and service, 1 server, infinite capacity and population, FCFS (FIFO) M/M/m –Same, but M servers G/G/3/20/1500/SPF –General arrival and service distributions, 3 servers, 17 queue slots (20-3), 1500 total jobs, Shortest Packet First

M/M/1 queue model  WqWq W L LqLq

Analysis of M/M/1 queue Goal: A closed form expression of the probability of the number of jobs in the queue (P i ) given only and 

Solving queuing systems Given: : Arrival rate of jobs (packets on input link)  : Service rate of the server (output link) Solve: –L: average number in queuing system –L q average number in the queue –W: average waiting time in whole system –W q average waiting time in the queue 4 unknown’s: need 4 equations

Solving queuing systems 4 unknowns: L, L q W, W q Relationships using Little’s law: –L= W –L q = W q (steady-state argument) –W = W q + (1/  ) If we know any 1, can find the others Finding L is hard or easy depending on the type of system. In general:

Equilibrium conditions 1: 2: n+1nn-1    inflow = outflow 12 3:stability:

Solving for P 0 and P n 1: 2: 3: (geometric series),,,,, 4: 5:

Solving for L

Solving W, W q and L q

Response Time vs. Arrivals

Stable Region linear region

Empirical Example M/M/m system

Example Measurement of a network gateway: –mean arrival rate ( ): 125 Packets/s –mean response time per packet: 2 ms Assuming exponential arrivals & departures: –What is the service rate,  ? –What is the gateway’s utilization? –What is the probability of n packets in the gateway? –mean number of packets in the gateway? –The number of buffers so P(overflow) is <10 -6 ?

The service rate,  utilization = P(n) packets in the gateway = Example (cont)

Mean # in gateway (L) = to limit loss probability to less than 1 in a million: Example (cont)

Poisson process = exponential distribution between arrivals/departures/service Key properties: –memoryless –Past state does not help predict next arrival –Closed under: –Addition –Subtraction Properties of a Poisson processes

Addition and Subtraction Merge: –two poisson streams with arrival rates 1 and 2 : new poisson stream:      Split : –If any given item has a probability P 1 of “leaving” the stream with rate 1:   =(1-P 1 ) 

Queuing Networks