Consider the M/M/1 queue Arrival process: Poi( t) Service distribution: Poi(  t) One server, infinite queue length possible Prob(arrival in small interval.

Slides:



Advertisements
Similar presentations
Traffic and routing. Network Queueing Model Packets are buffered in egress queues waiting for serialization on line Link capacity is C bps Average packet.
Advertisements

E&CE 418: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
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)
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Multiple server queues In particular, we look at M/M/k Need to find steady state probabilities.
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.
Lec13, Ch.6, pp : Gap acceptance and Queuing Theory (Objectives)
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
Networks: Performance Measures1 Network Performance Measures.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
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.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lecture 14 – Queuing Systems
Lesson 11: Solved M/G/1 Exercises
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Model and tools. Traffic Model Poisson law – Napoléon worries about the statistics of horse accidents of his generals – Poisson confirms these are unfrequent.
8/28/2015  A. Orda, R. Rom, A. Segall, Design of Computer Networks Prof. Ariel Orda Room 914, ext 4646.
Introduction to Queuing Theory
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
Exponential and Chi-Square Random Variables
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Performance Analysis of Computer Systems and Networks Varsha Apte Department of Computer Science and Engineering, IIT Bombay July 10, 2003 Wipro Technologies,
 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.
Introduction to Queueing Theory
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
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.
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
Ali Movaghar Winter 2009 Modeling and Analysis of Computer Networks (Delay Models in Data Networks)
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Chapter 1 Introduction. “Wait-in-line” is a common phenomenon in everywhere. Reason: Demand is more than service. “How long must a customer wait?” or.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
1 Chapter 4 Fundamental Queueing System. 2 3 Ref: Mischa Schwartz “Telecommunication Networks” Addison-Wesley publishing company 1988.
Internet Applications: Performance Metrics and performance-related concepts E0397 – Lecture 2 10/8/2010.
Queuing Delay 1. Access Delay Some protocols require a sender to “gain access” to the channel –The channel is shared and some time is used trying to determine.
Waiting Line Theory Akhid Yulianto, SE, MSc (log).
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
Delay in packet switched network. Circuit switching In Circuit switched networks the resources needed along a path (buffers and link transmission rate)
1 Chapter 4 Fundamental Queueing System
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.
Queuing Theory Important definition in Queuing Theory: We define various terms, which are used in our queue model. 1.Queue length: The number of customers.
Review of Useful Definitions Statistical multiplexing is a method of sharing a link among transmissions. When computers use store-and-forward packet switching,
Models of Traffic Flow 1.
Internet Queuing Delay Introduction
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Internet Queuing Delay Introduction
Queuing Systems Don Sutton.
TexPoint fonts used in EMF.
Computer Network Performance Measures
Presentation transcript:

Consider the M/M/1 queue Arrival process: Poi( t) Service distribution: Poi(  t) One server, infinite queue length possible Prob(arrival in small interval h) = Prob(service completed in small interval h) =   We know P 0, but what else can we say, e.g. P 1, P 2 etc

State021n-1nn+1...    Possible states (sizes) of a queue P n is how often system is in state n ( n jobs in queue) M/M/1 queue: Consider small interval of time h P(Jump from state n-1 to n) = P(arrival) = h (flow from n-1 to n) P(Jump from state n to n-1) = P(departure) =  h (flow from n to n-1) Flow between states must be balanced. If not …. Let’s look at states 1 and 0. What is the flow between them ?

Flow equations for M/M/1 queue In steady state inflows = outflows Flow into state 0 =  P 1 Flow out of 0 = P 0 For balance: P 0 =  P 1  P 1 = ( /  ) P 0 =  P 0 =  (1-  ) Flow into state 1 = P 0 +  P 2 Flow out of 1 = P 1 +  P 1 For balance: P 0 +  P 2 = P 1 +  P 1

Steadystate probabilities We have P 0 = 1- , P 1 =  (1-  )  P 2 = ( +  ) P 1 - P 0  P 2 = (1 +  )  (1-  ) -  (1-  ) =  2 (1-  ) Balance equation for state n P n-1 +  P n+1 = P n +  P n By induction, the solution is: P n =  n (1-  ) Check that this is a valid probability distr. P 0 + P 1 +… =

Results for M/M/1 P( n jobs in system) = P n =  n (1-  ) P(at least m jobs in system)

Performance of M/M/1 N = E(no. in system) = R =

Performance depends on   (utilisation) As  1, N  e.g.  =0.8, N =4  =0.9, N =9  =0.95, N =17  =0.90, N =99 R

Bound of utilisation  = ( /  ) is called the utilisation or traffic intensity of the queueing system  determines the performance of an M/M/1 queue as   1, N   So, for steady state queue, we need  < 1 i.e. < , or arrival rate is slower than service rate

Other queueing disciplines Q: Are results affected by queue disciplines ? A: Not as long as queue discipline does not make explicit use of job lengths, i.e. N =  / (1-  ) for M/M/1 FCFS, LCFS, round robin, least attained service first but N   / (1-  ) for SJF

Example of M/M/1 Randomly arriving messages of variable length are transmitted over a channel (waiting mess. stored in buffer) Avg message length = 128 octets Line bit rate = 4800 bits per second. Message arrival rate = 7500 per hour. ( a) What is the probability of the buffer being empty? (b) What is the average no. of messages in the system? (c) What is the average number of bits in the buffer? (d) What is the average delay of a message?

FDMA for mobile phone network N streams  single communication line stream arrival rate = packets per second average transmission time for stream= 1/ 

Performance of FDMA What is avg. no. in system ? What is avg. delay ? How does it compare to single channel M/M/1 (statistical multiplexing) ?