SlideShare a Scribd company logo
QUEING THEORY AND DELAY
ANALYSIS
PRIYANKA NEGI
155105
Queuing System
 A queuing system can be described as customers arriving for
service, waiting for service if it is not immediate, and if having
waited for service, leaving the system after being served.
Queuing System Cont.
 The basic phenomenon of queuing arises whenever a shared facility
needs to be accessed for service by a large number of jobs or
customers.
 We study the phenomena of standing, waiting, and serving, and we
call this study queuing theory. Any system in which arrivals place
demands upon a finite capacity resource may be termed a queuing
system
Why Is Queuing Analysis Important?
 Capacity problems are very common in industry and one of the main
drivers of process redesign
 Need to balance the cost of increased capacity against the gains
of increased productivity and service
 Queuing and waiting time analysis is particularly important in
service systems
 Large costs of waiting and of lost sales due to waiting
Queuing System Concepts
 Queuing system
 Data network where packets arrive, wait in various queues,
receive service at various points, and exit after some time
 Arrival rate
 Long-term number of arrivals per unit time
 Occupancy
 Number of packets in the system (averaged over a long time)
 Time in the system (delay)
 Time from packet entry to exit (averaged over many packets)
Examples of Real World Queuing
Systems?
 Commercial Queuing Systems
 Commercial organizations serving external customers
 Ex. Dentist, bank, ATM, gas stations, plumber, garage …
 Transportation service systems
 Vehicles are customers or servers
 Ex. Vehicles waiting at toll stations and traffic lights, trucks or
ships waiting to be loaded, taxi cabs, fire engines, elevators,
buses .
Examples Cont.
 Business-internal service systems
 Customers receiving service are internal to the organization
providing the service
 Ex. Inspection stations, conveyor belts, computer support .
 Social service systems
 Ex. Judicial process, the ER at a hospital, waiting lists for organ
transplants or student dorm rooms .
Components of a Basic Queuing Process
Calling
Population
Queue
Service
Mechanism
Input Source The Queuing System
Jobs
Arrival
Process
Queue
Configuration
Queue
Discipline
Served
Jobs
Service
Process
leave the
system
Components Cont.
 The Calling Population
 The population from which customers/jobs originate
 The size can be finite or infinite (the latter is most common)
 Can be homogeneous (only one type of customers/ jobs) or
heterogeneous (several different kinds of customers/jobs)
 The Arrival Process
 Determines how, when and where customer/jobs arrive to the system
 Important characteristic is the customers’/jobs’ inter-arrival times
Components Cont.
 The queue configuration
 Specifies the number of queues
 Single or multiple lines to a number of service stations
 Their location
 Their effect on customer behavior
 Balking and reneging
 Their maximum size (# of jobs the queue can hold)
 Distinction between infinite and finite capacity
Example – Two Queue Configurations
Components Cont.
 The Service Mechanism
 Can involve one or several service facilities with one or several parallel
service channels (servers) - Specification is required
 The service provided by a server is characterized by its service time
 Specification is required and typically involves data gathering and
statistical analysis.
 Most analytical queuing models are based on the assumption of
exponentially distributed service times, with some generalizations.
Components Cont.
 The queue discipline
 Specifies the order by which customers in the queue are being served.
 Most commonly used principle is FIFO.
 Other rules are, for example, LIFO, SPT, EDD.
 Can entail prioritization based on customer type.
Mitigating Effects of Long Queues
 Concealing the queue from arriving customers
 Ex. Restaurants divert people to the bar or use pagers,
amusement parks require people to buy tickets outside the park,
banks broadcast news on TV at various stations along the queue,
casinos snake night club queues through slot machine areas.
 Use the customer as a resource
 Ex. Patient filling out medical history form while waiting for
physician
Mitigating Effects of Long Queues
 Making the customer’s wait comfortable and distracting their
attention
 Ex. Complementary drinks at restaurants, computer games,
internet stations, food courts, shops, etc. at airports
 Explain reason for the wait
 Provide pessimistic estimates of the remaining wait time
 Wait seems shorter if a time estimate is given.
 Be fair and open about the queuing disciplines used
A Commonly Seen Queuing Model (I)
C C C … C
Customers (C)
C S = Server
C S
•
•
•
C SCustomer =C
The Queuing System
The Queue
The Service Facility
Queuing Model(cont.)
 Commonly used distributions
 M = Markovian (exponential) - Memory less
 D = Deterministic distribution
 G = General distribution
 There are two major parameter in waiting line(queue)
 Arrival rate
 Service rate
The Exponential Distribution and
Queuing
 The most commonly used queuing models are based on the assumption of
exponentially distributed service times and interarrival times.
 Definition: A stochastic (or random) variable Texp( ), i.e., is exponentially
distributed with parameter , if its frequency function is:







0twhen0
0twhene
)t(f
t
T
The Exponential Distribution and
Queuing
 The Cumulative Distribution Function is:
The mean = E[T] = 1/
The Variance = Var[T] = 1/ 2
t
T e1)t(F 

The Exponential Distribution
Time between arrivals
Mean=
E[T]=1/
Probabilitydensity
t
fT(t)

The Poisson Arrival Model
 A Poisson process is a sequence of events “randomly spaced in
time”
The Poisson Process(Cont.)
 The standard assumption in many queuing models is that the
arrival process is Poisson
 Two equivalent definitions of the Poisson Process
 The times between arrivals are independent, identically distributed
and exponential
 X(t) is a Poisson process with arrival rate .
The Poisson Arrival Model
 Examples
 Customers arriving to a bank
 Packets arriving to a buffer
 The rate λ of a Poisson process is the average number of events per unit
time (over a long time).
Properties of a Poisson Process
For a length of time t the probability of n arrivals in t units of time is
( )
( )
!
n
t
n
t
P t e
n
 

Properties of the Poisson Process
 Poisson processes can be aggregated and the resulting processes are also Poisson
processes
 Aggregation of N Poisson processes with intensities
{1, 2, …, n} renders a new Poisson process with intensity = 1+ 2+…+ n.
Terminology and Notation
 The state of the system = the number of customers in the system
 Queue length = (The state of the system) – (number of customers being
served)
 N(t) =Number of customers/jobs in the system at time t
 Pn(t)=The probability that at time t, there are n customers/jobs in the
system.
Terminology and Notation
n = Average arrival intensity (= # arrivals per time unit) at n
customers/jobs in the system
n = Average service intensity for the system when there are n
customers/jobs in it. (Note, the total service intensity for all occupied
servers)
 = The utilization factor for the service facility. (= The expected
fraction of the time that the service facility is being used)
M/M/1 Model
 Single server, single queue, infinite population:
 Interarrival time distribution:
k 
k 
( ) t
p t e 
  

M/M/1 Model(Cont.)
 Service time distribution
 Stability condition
λ < μ
 System utilization
0
0
0 0
( ) 1
t
tt
p t t e dt e 
  
   
= P[system is busy], 1- P[system is idel]

 

 
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
 Lq average number in the queue
 W: average waiting time in whole system
 Wq average waiting time in the queue
 4 unknown’s: need 4 equations
M/M/1 Queue Model




1
Wq
W
L
Lq
Multiserver Model
 Similarly if there are c servers in parallel, i.e., an M/M/c system but
the expected capacity per time unit is then c*




*cCapacityAvailable
DemandCapacity
Queuing in the Network Layer at a
Router
Queuing Delay
 The queuing delay is the time a job waits in a queue until it can be executed
 This term is most often used in reference to routers . When
packets arrive at a router, they have to be processed and
transmitted.
 A router can only process one packet at a time.
 Delay can also vary from packet to packet so averages and statistics are
usually generated when measuring and evaluating queuing delay
Queuing Delay(Cont.)
 The average delay any given packet is likely to experience is given
by the formula
1/(μ-λ)
 where μ is the number of packets per second the facility can sustain
and
 λ is the average rate at which packets are arriving to be serviced.
 This formula can be used when no packets are dropped from the
queue.
Little’s Theorem
 Little’s theorem provides a relation between the average number of packets in
the system, the arrival rate, and the average delay, given by
N= λT
 This theorem expresses the idea that crowded system(large N) are associated
with long customer delays(large T) and vice versa.
Conclusion
 In this presentation I have presented a detail analysis of queuing theory .
 Queuing system components, their functions are also discussed in details.
 Littil’s theorem and queuing delay are also discussed.
References
 J.N. Daigle, Queuing theory with applications to packet telecommunication, Boston, MA: Springer
Science and Business Media, Inc., 2005.
 www.cs.Toronto.edu
 www.its.bldrdoc.gov
 Slides from S. Kalyanaraman & B.Sikdar
QUERY?
THANK YOU

More Related Content

PPTX
Queuing theory network
PPTX
PPTX
queuing theory/ waiting line theory
PPT
Queuing theory
PPTX
Queuing theory
PDF
Waiting line system
PPTX
Queuing theory
Queuing theory network
queuing theory/ waiting line theory
Queuing theory
Queuing theory
Waiting line system
Queuing theory

What's hot (20)

PPT
Introduction to queueing theory
PPTX
Queuing theory .
PPTX
Unit 4 queuing models
PPT
Forecasting exponential smoothing
PPTX
QUEUEING THEORY
PDF
Lecture set 6
PPT
Queuing theory
PDF
Queuing Theory.pdf
PPTX
Queuing theory and simulation (MSOR)
PDF
queueing problems in banking
PPTX
Queuing theory
PDF
Queuing theory
PPT
QUEUING THEORY
PPTX
Queuing unit v ppt
PDF
Queuing Theory - Operation Research
PPT
Queuing model
PDF
Queuing theory
PDF
Queuing theory and its applications
Introduction to queueing theory
Queuing theory .
Unit 4 queuing models
Forecasting exponential smoothing
QUEUEING THEORY
Lecture set 6
Queuing theory
Queuing Theory.pdf
Queuing theory and simulation (MSOR)
queueing problems in banking
Queuing theory
Queuing theory
QUEUING THEORY
Queuing unit v ppt
Queuing Theory - Operation Research
Queuing model
Queuing theory
Queuing theory and its applications
Ad

Viewers also liked (20)

PPTX
Queueing Theory and its BusinessS Applications
PDF
Catering for individual needs
PDF
Hw3sp09solns
PPTX
Queuing Theory
PPTX
Monte carlo simulation
PPT
Opersea report waiting lines and queuing theory
PDF
Zero Waste in India : Some Policy Questions (by Shubhagato Dasgupta, Senior F...
PPTX
Patient satisfaction (lean six sigma)
PDF
Monte Carlo Simulation for project estimates v1.0
PPTX
Queueing Models in Healthcare
PPTX
Operation's research models
PPTX
Final presentation patient satisfaction
PPT
Monte Carlo Simulation
PPTX
Operations Research and Mathematical Modeling
PPTX
Improving Forecasts with Monte Carlo Simulations
PDF
Markov Models
PPT
Monte Carlo Simulations
PDF
Monte carlo simulation
PDF
How to perform a Monte Carlo simulation
Queueing Theory and its BusinessS Applications
Catering for individual needs
Hw3sp09solns
Queuing Theory
Monte carlo simulation
Opersea report waiting lines and queuing theory
Zero Waste in India : Some Policy Questions (by Shubhagato Dasgupta, Senior F...
Patient satisfaction (lean six sigma)
Monte Carlo Simulation for project estimates v1.0
Queueing Models in Healthcare
Operation's research models
Final presentation patient satisfaction
Monte Carlo Simulation
Operations Research and Mathematical Modeling
Improving Forecasts with Monte Carlo Simulations
Markov Models
Monte Carlo Simulations
Monte carlo simulation
How to perform a Monte Carlo simulation
Ad

Similar to Queing theory and delay analysis (20)

PPTX
Queuing Theory
PPTX
Queuing theory
PDF
HIGH SPEED NETWORKS
PPT
ch06-Queuing & Simulation.ppt
PDF
Statistical Queuing Theory with Some Applications.pdf
PDF
Simple queuingmodelspdf
DOCX
Queuing theory
PDF
Management Queuing theory Lec 2
PPTX
Tps04
PPTX
PDF
4-Queuing-System-ioenotes.pdf
PPT
Georgia Tech: Performance Engineering - Queuing Theory and Predictive Modeling
PDF
Simulation chapter 4
DOCX
Operation Research
PDF
Handbook of healthcare operations management
PPTX
Queuing Theory
PPT
Queuing Theory by Dr. B. J. Mohite
PDF
Analysis of single server fixed batch service queueing system under multiple ...
PDF
Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...
PDF
Operations Research_18ME735_module 4 - queuing systems.pdf
Queuing Theory
Queuing theory
HIGH SPEED NETWORKS
ch06-Queuing & Simulation.ppt
Statistical Queuing Theory with Some Applications.pdf
Simple queuingmodelspdf
Queuing theory
Management Queuing theory Lec 2
Tps04
4-Queuing-System-ioenotes.pdf
Georgia Tech: Performance Engineering - Queuing Theory and Predictive Modeling
Simulation chapter 4
Operation Research
Handbook of healthcare operations management
Queuing Theory
Queuing Theory by Dr. B. J. Mohite
Analysis of single server fixed batch service queueing system under multiple ...
Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...
Operations Research_18ME735_module 4 - queuing systems.pdf

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Electronic commerce courselecture one. Pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The AUB Centre for AI in Media Proposal.docx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Electronic commerce courselecture one. Pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Review of recent advances in non-invasive hemoglobin estimation
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectral efficient network and resource selection model in 5G networks
Programs and apps: productivity, graphics, security and other tools
Empathic Computing: Creating Shared Understanding

Queing theory and delay analysis

  • 1. QUEING THEORY AND DELAY ANALYSIS PRIYANKA NEGI 155105
  • 2. Queuing System  A queuing system can be described as customers arriving for service, waiting for service if it is not immediate, and if having waited for service, leaving the system after being served.
  • 3. Queuing System Cont.  The basic phenomenon of queuing arises whenever a shared facility needs to be accessed for service by a large number of jobs or customers.  We study the phenomena of standing, waiting, and serving, and we call this study queuing theory. Any system in which arrivals place demands upon a finite capacity resource may be termed a queuing system
  • 4. Why Is Queuing Analysis Important?  Capacity problems are very common in industry and one of the main drivers of process redesign  Need to balance the cost of increased capacity against the gains of increased productivity and service  Queuing and waiting time analysis is particularly important in service systems  Large costs of waiting and of lost sales due to waiting
  • 5. Queuing System Concepts  Queuing system  Data network where packets arrive, wait in various queues, receive service at various points, and exit after some time  Arrival rate  Long-term number of arrivals per unit time  Occupancy  Number of packets in the system (averaged over a long time)  Time in the system (delay)  Time from packet entry to exit (averaged over many packets)
  • 6. Examples of Real World Queuing Systems?  Commercial Queuing Systems  Commercial organizations serving external customers  Ex. Dentist, bank, ATM, gas stations, plumber, garage …  Transportation service systems  Vehicles are customers or servers  Ex. Vehicles waiting at toll stations and traffic lights, trucks or ships waiting to be loaded, taxi cabs, fire engines, elevators, buses .
  • 7. Examples Cont.  Business-internal service systems  Customers receiving service are internal to the organization providing the service  Ex. Inspection stations, conveyor belts, computer support .  Social service systems  Ex. Judicial process, the ER at a hospital, waiting lists for organ transplants or student dorm rooms .
  • 8. Components of a Basic Queuing Process Calling Population Queue Service Mechanism Input Source The Queuing System Jobs Arrival Process Queue Configuration Queue Discipline Served Jobs Service Process leave the system
  • 9. Components Cont.  The Calling Population  The population from which customers/jobs originate  The size can be finite or infinite (the latter is most common)  Can be homogeneous (only one type of customers/ jobs) or heterogeneous (several different kinds of customers/jobs)  The Arrival Process  Determines how, when and where customer/jobs arrive to the system  Important characteristic is the customers’/jobs’ inter-arrival times
  • 10. Components Cont.  The queue configuration  Specifies the number of queues  Single or multiple lines to a number of service stations  Their location  Their effect on customer behavior  Balking and reneging  Their maximum size (# of jobs the queue can hold)  Distinction between infinite and finite capacity
  • 11. Example – Two Queue Configurations
  • 12. Components Cont.  The Service Mechanism  Can involve one or several service facilities with one or several parallel service channels (servers) - Specification is required  The service provided by a server is characterized by its service time  Specification is required and typically involves data gathering and statistical analysis.  Most analytical queuing models are based on the assumption of exponentially distributed service times, with some generalizations.
  • 13. Components Cont.  The queue discipline  Specifies the order by which customers in the queue are being served.  Most commonly used principle is FIFO.  Other rules are, for example, LIFO, SPT, EDD.  Can entail prioritization based on customer type.
  • 14. Mitigating Effects of Long Queues  Concealing the queue from arriving customers  Ex. Restaurants divert people to the bar or use pagers, amusement parks require people to buy tickets outside the park, banks broadcast news on TV at various stations along the queue, casinos snake night club queues through slot machine areas.  Use the customer as a resource  Ex. Patient filling out medical history form while waiting for physician
  • 15. Mitigating Effects of Long Queues  Making the customer’s wait comfortable and distracting their attention  Ex. Complementary drinks at restaurants, computer games, internet stations, food courts, shops, etc. at airports  Explain reason for the wait  Provide pessimistic estimates of the remaining wait time  Wait seems shorter if a time estimate is given.  Be fair and open about the queuing disciplines used
  • 16. A Commonly Seen Queuing Model (I) C C C … C Customers (C) C S = Server C S • • • C SCustomer =C The Queuing System The Queue The Service Facility
  • 17. Queuing Model(cont.)  Commonly used distributions  M = Markovian (exponential) - Memory less  D = Deterministic distribution  G = General distribution  There are two major parameter in waiting line(queue)  Arrival rate  Service rate
  • 18. The Exponential Distribution and Queuing  The most commonly used queuing models are based on the assumption of exponentially distributed service times and interarrival times.  Definition: A stochastic (or random) variable Texp( ), i.e., is exponentially distributed with parameter , if its frequency function is:        0twhen0 0twhene )t(f t T
  • 19. The Exponential Distribution and Queuing  The Cumulative Distribution Function is: The mean = E[T] = 1/ The Variance = Var[T] = 1/ 2 t T e1)t(F  
  • 20. The Exponential Distribution Time between arrivals Mean= E[T]=1/ Probabilitydensity t fT(t) 
  • 21. The Poisson Arrival Model  A Poisson process is a sequence of events “randomly spaced in time”
  • 22. The Poisson Process(Cont.)  The standard assumption in many queuing models is that the arrival process is Poisson  Two equivalent definitions of the Poisson Process  The times between arrivals are independent, identically distributed and exponential  X(t) is a Poisson process with arrival rate .
  • 23. The Poisson Arrival Model  Examples  Customers arriving to a bank  Packets arriving to a buffer  The rate λ of a Poisson process is the average number of events per unit time (over a long time).
  • 24. Properties of a Poisson Process For a length of time t the probability of n arrivals in t units of time is ( ) ( ) ! n t n t P t e n   
  • 25. Properties of the Poisson Process  Poisson processes can be aggregated and the resulting processes are also Poisson processes  Aggregation of N Poisson processes with intensities {1, 2, …, n} renders a new Poisson process with intensity = 1+ 2+…+ n.
  • 26. Terminology and Notation  The state of the system = the number of customers in the system  Queue length = (The state of the system) – (number of customers being served)  N(t) =Number of customers/jobs in the system at time t  Pn(t)=The probability that at time t, there are n customers/jobs in the system.
  • 27. Terminology and Notation n = Average arrival intensity (= # arrivals per time unit) at n customers/jobs in the system n = Average service intensity for the system when there are n customers/jobs in it. (Note, the total service intensity for all occupied servers)  = The utilization factor for the service facility. (= The expected fraction of the time that the service facility is being used)
  • 28. M/M/1 Model  Single server, single queue, infinite population:  Interarrival time distribution: k  k  ( ) t p t e     
  • 29. M/M/1 Model(Cont.)  Service time distribution  Stability condition λ < μ  System utilization 0 0 0 0 ( ) 1 t tt p t t e dt e         = P[system is busy], 1- P[system is idel]      
  • 30. 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  Lq average number in the queue  W: average waiting time in whole system  Wq average waiting time in the queue  4 unknown’s: need 4 equations
  • 32. Multiserver Model  Similarly if there are c servers in parallel, i.e., an M/M/c system but the expected capacity per time unit is then c*     *cCapacityAvailable DemandCapacity
  • 33. Queuing in the Network Layer at a Router
  • 34. Queuing Delay  The queuing delay is the time a job waits in a queue until it can be executed  This term is most often used in reference to routers . When packets arrive at a router, they have to be processed and transmitted.  A router can only process one packet at a time.  Delay can also vary from packet to packet so averages and statistics are usually generated when measuring and evaluating queuing delay
  • 35. Queuing Delay(Cont.)  The average delay any given packet is likely to experience is given by the formula 1/(μ-λ)  where μ is the number of packets per second the facility can sustain and  λ is the average rate at which packets are arriving to be serviced.  This formula can be used when no packets are dropped from the queue.
  • 36. Little’s Theorem  Little’s theorem provides a relation between the average number of packets in the system, the arrival rate, and the average delay, given by N= λT  This theorem expresses the idea that crowded system(large N) are associated with long customer delays(large T) and vice versa.
  • 37. Conclusion  In this presentation I have presented a detail analysis of queuing theory .  Queuing system components, their functions are also discussed in details.  Littil’s theorem and queuing delay are also discussed.
  • 38. References  J.N. Daigle, Queuing theory with applications to packet telecommunication, Boston, MA: Springer Science and Business Media, Inc., 2005.  www.cs.Toronto.edu  www.its.bldrdoc.gov  Slides from S. Kalyanaraman & B.Sikdar