Sie sind auf Seite 1von 31

QUEUING THEORY

SOORYA PRAVEEN NAIR ROLL NO. 11 EC 2009 ME-EXTC RAIT

Contents
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. Introduction Definitions Application Delay analysis Littles theorem Basic queuing models Queuing model classifications Queuing system variable Basic multiplexer model- M/M/1/K Effect of scale on performance Average packet delay in a network General multiplexer model- M/G/1 M/M/C/C model and Erlangs B formula References .

1.Introduction
Queue Customers that have arrived at server but are waiting for their service to start are in the queue. Queuing theory-a collection of mathematical models of various queuing system. - make an analytical model of customers needing service, and use that model to predict queue length and waiting times Why study Queuing Theory? Basic tool for network performance evaluation. Help to manage the network traffic towards performance

2. Definitions
(Bose) the basic phenomenon of queuing arises whenever a shared facility needs to be accessed for service by a large number of jobs or customers. (Wolff) The primary tool for studying these problems [of congestions] is known as queuing theory. (Kleinrock) 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.

3.Applications of Queuing Theory


Telecommunications Traffic control Determining the sequence of computer operations Predicting computer performance Health services (e.g.. control of hospital bed assignments) Airport traffic, airline ticket sales Layout of manufacturing systems.

4. Delay analysis
A basic model for a delay/loss system:

Time spent in system = T


No. customers in system = N(t) Fraction of arriving customers that are lost or blocked = Pb Long term arrival rate = Average no of messages/second that pass through = throughput

Key system variables

Arrival rates and traffic loads

5.Littles theorem

The average number of customers in a stable system (over some time interval) is equal to their average arrival rate multiplied by their average time in the system

E[N] =
E[N] =

E[T]

(without blocking)

(1 Pb) E[T] (with blocking)

Application of Littles theorem


Consider an entire network of queuing systems

By littles formula we are finding the average delay experienced by a packet in traversing a packet switching network.

6. Basic Queuing Models

Arrival process

Service times
Resources are denoted by servers because their function is to serve customer requests The time required to service a customer is called the service time, X Processing capacity, m, is given by m= 1/E[X] customers/s

7.Queuing model classification

8.Queuing system variables


By Littles theorem :
average number in the system and average delay in the system are related by
E[N] =(1-pb) E[T] average number of customers in queue and average waiting time are related by E[Nq ] =(1-pb) E[W] average number of customers in service and average service time are related by

E[Ns] =(1-pb) E[X]


Offered(traffic) load a= l E[X] = L/M Erlangs - rate at hich work arrives at the system Carried load = E[X]L(1-Pb)=l/m(1-Pb) = a(1-Pb) -average rate at which system does work
Utilisation r=E[Ns] /c= l/cm (1-Pb) - Average fraction of servers that are in use

9.M/M/1/KBasic Multiplexer Model

Average packet length is E[L] bits/packet, Transmission line speed is R bits/second, Mean packet processing rate is m= R/E[L] packets/second Maximum K packets are allowed in the system before the buffer overflows (K1in buffer and 1in processor) If > m the system will loose packets If < m the system may loose packets due to occasional surges in arrivals or long consecutive service times (long packets)

. M/M/1/K

M/M/1/K

.M/M/1/K

.M/M/1/K

.M/M/1/K

m/m/1/

10. Effect of scale on performance

11.Average Packet Delay in a Network

12. M/G/1General Model


Pollaczek-khinchin formula

..M/G/1General Model

We can use the above to model various multiplexing schemes in networks.

13.M/M/C/C model and Erlangs B formula

14. References
1.Kleinrock, L., Communication Nets: Stochastic Message Flow and Delay, McGraw-Hill, New York, 1964 2.Cohen, J.W., The Single Server Queue, North-Holland, Amsterdam, 1969 3.Kleinrock, L., Queueing Systems, Vol. I: Theory, WileyInterscience, New York, 1975 4.Kleinrock, L., Queueing Systems, Vol. II: Computer Applications, Wiley-Interscience, New York, 1976 5.Betserkas D. and Gallager R., Data Networks, Prentice-Hall, Englewood Cliffs, NJ, 1987 6.Leon-Garcia A. and Widjaja I., Communication Networks: Fundamental Concepts and Key Architectures, McGraw-Hill, New York, 2004

Das könnte Ihnen auch gefallen