The M/G/1 Queue and others.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

E&CE 418: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen
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)
© 2006, Monash University, Australia CSE4884 Network Design and Management Lecturer: Dr Carlo Kopp, MIEEE, MAIAA, PEng Lecture 5 Queueing Theory Concepts.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Chapter 13 Queuing Theory
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lesson 11: Solved M/G/1 Exercises
Exponential and Chi-Square Random Variables
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
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.
TexPoint fonts used in EMF.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
EE6610: Week 6 Lectures.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Modeling and Simulation Queuing theory
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
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...
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
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.
2/16/2016 Subject Name: Digital Switching Systems Subject Code:10EC82 Prepared By: Aparna.P, Farha Kowser Department: Electronics and Communication Date:
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
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.
Managerial Decision Making Chapter 13 Queuing Models.
1 Lecture 06 EEE 441: Wireless And Mobile Communications BRAC University.
Lecture 14 – Queuing Networks
Tele traffic A telephone network is composed of a variety of common equipment, such as: Digital receivers Call processors Inter-stage switching links &
Fundamentals of Cellular Networks (Part IV)
Models of Traffic Flow 1.
CTMCs & N/M/* Queues.
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Queuing Theory.
Internet Queuing Delay Introduction
Lecture on Markov Chain
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Trunking Theory In general, there are many more users than channels--everyone can’t have a permanent personal channel! Fortunately, only a small fraction.
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Internet Queuing Delay Introduction
Birth-Death Process Birth – arrival of a customer to the system
Introduction Notation Little’s Law aka Little’s Result
Delays Deterministic Stochastic Assumes “error free” type case
UNIT-V TRAFFIC ANALYSIS
System Performance: Queuing
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
DECISION MODELING WITH Prentice Hall Publishers and
TexPoint fonts used in EMF.
Lecture 7 Poisson Processes (a reminder)
Queueing Theory II.
مهندسی مجدد فرآیندهای تجاری
Queuing Theory By: Brian Murphy.
Delays Deterministic Stochastic Assumes “error free” type case
Lecture 14 – Queuing Networks
Model Antrian M/M/s.
Queueing Theory 2008.
CSE 550 Computer Network Design
Chapter-5 Traffic Engineering.
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:

The M/G/1 Queue and others

Telephone Line Problem Callers queue for outgoing lines This system will allow only eight outgoing connections

Telephone Line Problem The outgoing telephone lines could be physical, as in the original version, or virtual, as in ATM, and the decision of the CAC function would decide the number of connections available This is modeled as a M/M/N/N queue (N servers, no waiting room)

Telephone Line Problem The arrival process is simple Poisson If there are n < N customers in the queue, then they are all being serviced The service rate for a single line is m (average duration of phone call = 1/m) So the service rate for the whole queue is nm for 0 < n ≤ N

Telephone Line Problem As before, the average flow between states must be zero lnpn = mn+1pn+1 for 0 < n ≤ N This gives us lpn = (n+1)mpn+1 or where r = l/m

Telephone Line Problem This gives us Since we also require Spn = 1, we also get

Telephone Line Problem The designer of the system is interested in the blocking probability This is simply the probability that n = N, or pN

Erlang Formula The formula on the last slide is called the Erlang-B distribution after the pioneering Danish engineer, AK Erlang He has given his name to the units we use for traffic intensity, which corresponds to r

Telephone Line Problem The average number of calls in progress is

Telephone Line Problem We would generally expect to be designing systems where PB is low, so E(n) ≈ r The average number of calls put through per unit time, is

Design Problem You have 1,000 incoming telephone lines, and over an eight hour period, each subscriber makes four phone calls, on the average. The phone calls average five minutes in length. How many outgoing lines must you provide to give a blocking probability of (a) 10% (b) 1%? How many calls would be in progress on the average?

Design Problem l = 1000x4/(8x60) = 8.33 calls per minute m = 1/5 = 0.2 calls per minute r = l/m = 8.33/0.2 = 41.67 Blocking probability

Design Problem After a spreadsheet calculation, we find that we need at least 43 servers to give less than a 10% chance of blocking, and at least 55 servers to give less than a 1% chance of blocking The corresponding calls in progress is 37.7 for 43 servers and 41.3 for 55 servers

M/G/1 Queue A memoryless, Poisson process always gives an exponential distribution for inter-arrival or inter-service times However there are cases where the service process times are not exponentially distributed For example …

M/G/1 Queue For example, a packet switching system may handle only two different types of packet, one with 100 bytes, and one with 2,000 bytes The big packets will take longer to serve (transmit) This gives a dumbell distribution

M/G/1 Queue F(t) Service time, t The service times of the small packets would cluster around a low value, and there would be a cluster at a longer time for the larger packets

M/G/1 Queue Another example would be a server (computer) which has to perform different operations on packets, depending on what type of packet it is Possible operations are encrypting, processing for an on-line game, and simple transmission

M/G/1 Queue And another example would be within an ATM switch, where all packets (or “cells”) are the same size, and thus take the same time to transmit In these cases, the service time distribution is said to be “general”, and we describe the queue as M/G/1

M/G/1 Queue Packet j is completed at time, tj Service time, customer j time tj-1 tj tj+1 nj-1 nj nj+1 Packet j is completed at time, tj The number of packets in the queue at time tj+ is nj

M/G/1 Queue During servicing of customer j, a number of packets, nj, arrives Then the number of packets in the queue after servicing of packet j is nj = nj-1 -1 +nj for nj-1 > 0 nj =nj for nj-1 = 0

M/G/1 Queue These equations can be written using a unit step function nj = nj-1 – u(nj-1) + nj where u(x) = 1 for x ≥ 1 = 0 for x ≤ 0 The expected values of nj and nj-1 are the same

M/G/1 Queue So we must have E(n) = E(u(n)) The average value of arrivals, E(n) must be less than unity for a stable queue, and in fact, must be equal to the utilisation, r, by definition,

M/G/1 Queue Then we have by definition Therefore we have p0 = 1 – r as before (M/M/1)

M/G/1 Queue For the next proof, we need some intermediate results or definitions Firstly, the definition of the variance of n is

M/G/1 Queue Secondly, E(u2(n)) = E(u(n)) = E(n) = r Thirdly, we assume that nj and nj-1 are independent, so that E(njnj-1) = E(nj)E(nj-1) = rE(nj-1) We begin the proof with the equation relating nj and nj-1 nj = nj-1 – u(nj-1) + nj

M/G/1 Queue We square both sides of the equation nj2 = nj-12 + u2(nj-1) + nj2 – 2nj-1u(nj-1) – 2u(nj-1)nj + 2njnj-1 We now take the expected value of both sides r + E(n2) – 2E(n) – 2r2 + 2rE(n) = 0 We now substitute for E(n2)

M/G/1 Queue 2E(n) (1 – r) = r - 2r2 + sn2 + r2 = r(1 – r) + sn2 This finally gives us

Expected service time The average service time is E(t), so the average service rate is 1/E(t) The utilisation, r, is the ratio of average arrival rate to average service rate So r = lE(t) That is E(t) = r/l

Queue Size To find E(n), we still need to find sn2 We will need a result from the distribution of service times, s2 s2 = E[(t – r/l)2] = E(t2 – 2tr/l + r2/l2) = E(t2) – 2r/l x r/l + r2/l2 So E(t2) = s2 + r2/l2

Queue Size (find sn2)

Queue Size (find sn2) We reverse the order of summation and integration

Queue Size (find sn2)

Queue Size We can now substitute back into the formula for E(n), defining m = l/r We get This formula gives expected queue size in terms of server statistics

Queue Size This formula collapses to r/(1-r) for the exponential service distribution If we know exactly what the service time will be (eg for ATM cells at a switch), then s2 = 0 and

Queue Size This is called a deterministic service time, and the queue is then M/D/1 This gives the lowest possible average queue The higher the value of s2, the longer the average queue will be The term 1/(1-r) dominates for high r

Time Delay Average time delay can be found using Little’s formula, so that E(T) = E(n)/l

Problem Three queuing systems, with Poisson arrivals, are alike, except that the servicing distributions are (a) Poisson (b) deterministic and (c) composed of 50% with a service time of 0.1, and 50% with a service time of 1.0. Compare the average queue levels for all cases when r = 0.5

Problem For case (c) the average service time is 1.1/2 = 0.55. So m = 1.81818 s2 = 0.5(0.1 – 0.55)2 + 0.5(1.0 – 0.55)2 = 0.2025 From the formula E(n)=(0.5/0.5)(1–0.25(1-1.82x0.2025)) = 1.083

Problem For case (a) E(n) = 0.5/0.5 = 1 For case (b) E(n) = 0.5/0.5x(1-0.5/2) = 0.75 The distribution of case (c) gives a high variance, and this results in a larger average queue

Tutorial Problems