teletraffic theory

51
1 Lect01.ppt S-38.145 - Introduction to Teletraffic Theory – Spring 2003 1. Introduction

Upload: fahad-gul-shahzad-soomro

Post on 19-Jan-2016

100 views

Category:

Documents


1 download

DESCRIPTION

Purpose of Teletraffic TheoryTeletraffic modelsClassical model for telephone trafficClassical model for data traffic

TRANSCRIPT

Page 1: Teletraffic Theory

1Lect01.ppt S-38.145 - Introduction to Teletraffic Theory – Spring 2003

1. Introduction

Page 2: Teletraffic Theory

2

1. Introduction

Contents

• Purpose of Teletraffic Theory

• Teletraffic models

• Classical model for telephone traffic • Classical model for data traffic

Page 3: Teletraffic Theory

3

1. Introduction

• Telecommunication system from the traffic point of view:

• Ideas: – the system serves the incoming traffic– the traffic is generated by the users of the system

Traffic point of view

system

incomingtraffic

outgoingtrafficusers

Page 4: Teletraffic Theory

4

1. Introduction

Interesting questions

• Given the system and incoming traffic, what is the quality of service experienced by the user?

• Given the incoming traffic and required quality of service, how should the system be dimensioned?

• Given the system and required quality of service, what is the maximum traffic load?

system

incomingtraffic

outgoingtrafficusers

Page 5: Teletraffic Theory

5

1. Introduction

General purpose (1)

• Determine relationships between the following three factors:– quality of service– system capacity– traffic load

quality of service

traffic loadsystem capacity

Page 6: Teletraffic Theory

6

1. Introduction

General purpose (2)

• System can be– a single device (e.g. a link between two telephone exchanges, a processor

routing packets in a data network, a statistical multiplexer in ATM network) or

– a whole communications network (e.g. telephone or data network) or a part of it

• Typically a system consists of– a device (hardware) and

– principles controlling it (software)

• Traffic, on the other hand, consists of (depending on the case)– calls, packets, bursts, cells, etc.

Page 7: Teletraffic Theory

7

1. Introduction

General purpose (3)

• Quality of service can be described– from the users point of view

• e.g. call blocking probability, distribution of delay experienced by a packet stream

– from the system point of view (= performance of the system)

• e.g. utilization

• It is also possible to think quality of service– from the offered traffic point of view

• e.g. blocking experienced by ATM-connection requests, or other connection level property; grade of service

– from the carried traffic point of view

• e.g. cell loss during an accepted ATM connection, or other criteria during an accepted connection; quality of service

Page 8: Teletraffic Theory

8

1. Introduction

Example

• Telephone traffic– traffic = telephone calls

– system = telephone network

– quality of service = probability that “the line is not busy”

PRRRR!!!1234567

Page 9: Teletraffic Theory

9

1. Introduction

Relationships between the three factors

• Qualitatively, the relationships are as follows:

• To describe the relationships quantitatively, mathematical models are needed

system capacity quality of service quality of service

traffic load traffic load system capacity

with givenquality of service

with givensystem capacity

with giventraffic load

Page 10: Teletraffic Theory

10

1. Introduction

Teletraffic models

• Teletraffic models are usually stochastic (= probabilistic)– systems themselves are usually deterministic

but traffic is typically stochastic

• The underlying reason for it is thus the stochastic nature of traffic:– “you never know, who calls you and when”

• It follows that the variables, which are needed to describe the quality of service, are also stochastic by nature, i.e. they are random variables:

– number of ongoing calls– number of packets in a buffer

• Random variable is described by its distribution, e.g.– probability that there are n ongoing calls

– probability that there are n packets in the buffer

• A stochastic process describes the temporal development of a random variable

Page 11: Teletraffic Theory

11

1. Introduction

Related fields

• Probability Theory

• Stochastic Processes

• Queueing Theory• Statistical Analysis (of traffic measurements)

• Operations Research

• Optimization Theory• Decision Theory (Markov decision processes)

• Simulation Techniques (object oriented programming)

Page 12: Teletraffic Theory

12

1. Introduction

Difference between the real system and the model

• It is good to keep in mind the difference between the real system and the model

– (Ideally), a model is a description of only a certain part or property of the real system

– Often, due to various reasons, the model is not very accurate but rather approximative

� caution is needed when conclusions are drawn

Page 13: Teletraffic Theory

13

1. Introduction

Practical goals

• Network planning– dimensioning

– optimization

– performance analysis

• Network management and control– efficient operation

– fault recovery– traffic management

– routing

– accounting

Page 14: Teletraffic Theory

14

1. Introduction

Literature

• Teletraffic Theory– V. B. Iversen, Chapter 1 of “Teletraffic Engineering Handbook”, available from

http://www.tele.dtu.dk/teletraffic/– Teletronikk (1995) Vol. 91, Nr. 2/3, Special Issue on “Teletraffic”

– COST 242, Final report (1996) “Broadband Network Teletraffic”, Eds. J. Roberts, U. Mocci, J. Virtamo, Springer

– J.M. Pitts and J.A. Schormans (1996) “Introduction to ATM Design and Performance”, Wiley

– J. Roberts, “Traffic Theory and the Internet”, available from http://www.comsoc.org/ci/public/preview/roberts.html

• Queueing Theory– L. Kleinrock (1975) “Queueing Systems, Volume I: Theory”, Wiley

– L. Kleinrock (1976) “Queueing Systems, Volume II: Computer Applications”, Wiley– D. Bertsekas and R. Gallager (1992) “Data Networks”, 2nd ed., Prentice-Hall

– P.G. Harrison and N.M. Patel (1993) “Performance Modelling of Communication Networks and Computer Architectures”, Addison-Wesley

Page 15: Teletraffic Theory

15

1. Introduction

Contents

• Purpose of Teletraffic Theory

• Teletraffic models

• Classical model for telephone traffic • Classical model for data traffic

Page 16: Teletraffic Theory

16

1. Introduction

Teletraffic models

• Two phases of teletraffic modelling:

– modelling of the incoming traffic � traffic model

– modelling of the system itself � system model

• Roughly, teletraffic models can be divided into two categories by the system model

– loss systems (loss models)

– waiting/queueing systems (queuing models)

• During this course, we present simple teletraffic models describing a single resource

• These models can be combined to create models for whole telecommunication networks

– loss networks– queueing networks

Page 17: Teletraffic Theory

17

1. Introduction

Simple teletraffic model

• Customers arrive at rate λ (customers per time unit on average)

– 1/λ = average inter-arrival time

• Customers are served by n parallel servers

• When busy, a server serves at rate µ (customers per time unit)

– 1/µ = average service time of a customer

• There are m waiting places in the system

• It is assumed that blocked customers (arriving in a full system) are lost

1

n

µ

Page 18: Teletraffic Theory

18

1. Introduction

Exercise

• Consider the simple teletraffic model presented on the previous slide– What is the traffic model?– What is the system model?

1

n

µ

Page 19: Teletraffic Theory

19

1. Introduction

Pure loss system

• No waiting places (m = 0)

– If the system is full (with all n servers occupied) when a customer arrives, she is not served at all but lost. System is thus lossy.

• From the customer’s point of view, it is interesting to know e.g. – What is the probability that the system is full when she arrives?

• From the system’s point of view, it is interesting to know e.g. – What is the utilization factor of the servers?

1

n

µ

λ

Page 20: Teletraffic Theory

20

1. Introduction

Pure waiting system

• Infinite number of waiting places (m = ∞)

– If all n servers are occupied when a customer arrives, she occupies one of the waiting places. No customers are lost but some of them have to wait before getting served; system is thus lossless.

• From the customer’s point of view, it is interesting to know e.g. – what is the probability that she has to wait “too long”?

• From the system’s point of view, it is interesting to know e.g. – what is the utilization factor of the servers?

1

n

∞λ

µ

Page 21: Teletraffic Theory

21

1. Introduction

Mixed system

• Finite number of waiting places (0 < m < ∞)

– If all n servers are occupied but there are free waiting places when a customer arrives, she occupies one of the waiting places

– If all n servers and all m waiting places are occupied when a customer arrives, she is not served at all but lost

– Some customers are lost and some customers have to wait before getting served. Also this system is thus lossy.

1

n

µ

Page 22: Teletraffic Theory

22

1. Introduction

Infinite system

• Infinite number of servers (n = ∞)– No customers are lost or even have to wait before getting served; it is a

lossless system.

– This (hypothetical) system is often much more simple to analyze than the corresponding real system with finite capacity.

– Sometimes, this can be the only way to get even some approximate results for the real system

1

µ

λ•••

Page 23: Teletraffic Theory

23

1. Introduction

Little’s formula

• Consider a system where

– new customers arrive at rate λ• Stability assumption:

– Customers do not accumulate in the system, occasionally system is empty

• Consequence:

– Customers depart from the system at rate λ• Denote

• Little’s formula:

λ λ

system in the spendscustomer a timeaverage

system in the customers ofnumber average

==

T

N

TN λ=

Page 24: Teletraffic Theory

24

1. Introduction

Contents

• Purpose of the Teletraffic Theory

• Teletraffic models

• Classical model for telephone traffic • Classical model for data traffic

Page 25: Teletraffic Theory

25

1. Introduction

Classical model for telephone traffic (1)

• Loss models have traditionally been used to describe (circuit-switched) telephone networks

– Pioneering work made by Danish mathematician A.K. Erlang (1878-1929)

• Consider a link between two telephone exchanges (classical teletraffic problem)

– traffic consists of the ongoing telephone calls on the link

Page 26: Teletraffic Theory

26

1. Introduction

Classical model for telephone traffic (2)

• Erlang modelled this as a pure loss system (m = 0)– customer = call

• λ = call arrival rate

– service time = (call) holding time

• h = 1/µ = average holding time

– server = channel on the link

• n = number of channels on the link

1

n

µ

λ

Page 27: Teletraffic Theory

27

1. Introduction

Traffic process

654321

6543210

time

time

call arrival timesblocked call

channel-by-channeloccupation

nr of channelsoccupied

traffic volume

call holdingtime

chan

nels

nr o

f cha

nnel

s

Page 28: Teletraffic Theory

28

1. Introduction

Traffic intensity

• In telephone networks:

• The amount of traffic is described by the traffic intensity a• Definition: the traffic intensity a is

the product of the arrival rate λ and the mean holding time h:

• Note that the traffic intensity is a dimensionless quantity. However, to emphasize the context, the “unit” of the traffic intensity a is called erlang (erl)

• By Little’s formula: the traffic intensity tells the number of ongoing calls in the corresponding (hypothetical) infinite system.

ha λ=

Traffic ↔ Calls

Page 29: Teletraffic Theory

29

1. Introduction

Example

• Consider a local exchange. Assume that, – on the average, there are 1800 new calls in an hour, and

– the mean holding time is 3 minutes

• It follows that the traffic intensity is

• If the mean holding time increases from 3 minutes to 10 minutes, then

erlang 9060/31800 =∗=a

erlang 30060/101800 =∗=a

Page 30: Teletraffic Theory

30

1. Introduction

Characteristic traffic

• Here are typical characteristic traffics for some subscriber categories (of ordinary telephone users):

– private subscriber: 0.01 - 0.04 erlang

– business subscriber: 0.03 - 0.06 erlang

– private branch exchange (PBX): 0.10 - 0.60 erlang– pay phone: 0.07 erlang

• This means that, for example, – a typical private subscriber uses from 1% to 4% of her time in the telephone

(during a “busy hour”)

• Referring to the previous example, note that – it takes between 2250 - 9000 private subscribers to generate 90 erlang

traffic

Page 31: Teletraffic Theory

31

1. Introduction

Blocking

• In a loss system some calls are lost– a call is lost if all n channels are occupied when the call arrives

– the term blocking refers to this event

• There are (at least) two different types of blocking quantities:– Call blocking Bc = probability that an arriving call finds all n channels

occupied = the fraction of calls that are lost

– Time blocking Bt = probability that all n channels are occupied at an arbitrary time = the fraction of time that all n channels are occupied

• The two blocking quantities are not necessarily equal– If calls arrive according to a Poisson process, then Bc = Bt

• Call blocking is a better measure for the quality of service experienced by the subscribers

• Typically, time blocking is easier to calculate

Page 32: Teletraffic Theory

32

1. Introduction

Call rates

• In a loss system, there are three types of call rates:

– λoffered = arrival rate of all call attempts

– λcarried = arrival rate of carried calls

– λlost = arrival rate of lost calls

• Note:

clost

ccarried

lostcarriedoffered

)1(

B

B

λλλλ

λλλλ

=−=

=+=

λoffered λcarried

λlost

Page 33: Teletraffic Theory

33

1. Introduction

Traffic streams

• The three call rates lead to the following three traffic concepts:

– Traffic offered aoffered = λofferedh

– Traffic carried acarried = λcarriedh

– Traffic lost alost = λlosth

• Note:

• Traffic offered and traffic lost are hypothetical quantities, but traffic carried is measurable; by Little’s formula, it is the average number of occupied channels on the link

clost

ccarried

lostcarriedoffered

)1(

aBa

Baa

aaaa

=−=

=+=

Page 34: Teletraffic Theory

34

1. Introduction

Teletraffic analysis

• System capacity– n = number of channels on the link

• Traffic load– a = (offered) traffic intensity

• Quality of service (from the subscribers’ point of view)– Bc = probability that an arriving call finds all n channels occupied

• If we assume an M/G/n/n pure loss system, that is

– calls arrive according to a Poisson process (with rate λ)

– call holding times are independently and identically distributed according to any distribution with mean h

Page 35: Teletraffic Theory

35

1. Introduction

Erlang’s formula

�=

==n

iia

na

i

n

anB

0!

!c ),Erl(

• Then the quantitive relation between the three factors (system capacity, traffic load and quality of service) is given by the Erlang’s formula

• Note:

• Other names:– Erlang’s blocking formula

– Erlang’s B-formula

– Erlang’s loss formula– Erlang’s first formula

1!0,12)1(! =⋅⋅⋅−⋅= �nnn

Page 36: Teletraffic Theory

36

1. Introduction

Example

• Assume that there are n = 4 channels on a link and the offered traffic is a = 2.0 erlang. Then the call blocking probability Bc is

• If the link capacity is raised to n = 6 channels, then Bc reduces to

%5.9212

2121)2,4Erl(

2416

68

242416

!42

!32

!22

!42

c 432

4

≈=++++

=++++

==B

%2.121

)2,6Erl(

!62

!52

!42

!32

!22

!62

c 65432

6

≈++++++

==B

Page 37: Teletraffic Theory

37

1. Introduction

Required capacity vs. traffic

• Given the quality of service requirement that Bc < 20%, the required capacity n depends on the traffic intensity a as follows:

}2.0),Erl(|,2,1min{)( <== aNNan �

capacity n

traffic a

10 20 30 40 50

10

20

30

40

50

Page 38: Teletraffic Theory

38

1. Introduction

Required quality of service vs. traffic

• Given the capacity n = 10 channels, the required quality of service 1 − Bc depends on the traffic intensity a as follows:

),10Erl(1)(1 c aaB −=−

10 20 30 40 500

0.2

0.4

0.6

0.8

1

traffic a

quality of service 1 − Bc

Page 39: Teletraffic Theory

39

1. Introduction

Required quality of service vs. capacity

• Given the traffic intensity a = 10.0 erlang, the required quality of service 1 − Bc depends on the capacity n as follows:

)0.10,Erl(1)(1 c nnB −=−

quality of service 1 − Bc

capacity n

10 20 30 40 500

0.2

0.4

0.6

0.8

1

Page 40: Teletraffic Theory

40

1. Introduction

Contents

• Purpose of the Teletraffic Theory

• Teletraffic models

• Classical model for telephone traffic • Classical model for data traffic

Page 41: Teletraffic Theory

41

1. Introduction

Classical model for data traffic (1)

• Queueing models are suitable for describing (packet-switched) data networks

– Pioneering work made by many people in 60’s and 70’s (ARPANET), especially L. Kleinrock (http://www.lk.cs.ucla.edu/)

• Consider a link between two packet routers– traffic consists of data packets transmitted on the link

R

R

R

R

Page 42: Teletraffic Theory

42

1. Introduction

Classical model for data traffic (2)

• This can be modelled as a pure waiting system with a single server (n = 1) and an infinite buffer (m = ∞)

– customer = packet

• λ = packet arrival rate (packets per time unit)

• L = average packet length (data units)

– server = link, waiting places = buffer

• C = link’s speed (data units per time unit)

– service time = packet transmission time

• 1/µ = L/C = average packet transmission time

1

n

∞λ

µ

Page 43: Teletraffic Theory

43

1. Introduction

Traffic process

packet arrival times

link utilizationtime

state of packets in the system (waiting/being transmitted)

number of packets in the system

waitingtime

transmissiontime

time

time

4

3

2

1

0

1

0

Page 44: Teletraffic Theory

44

1. Introduction

Traffic load

• In packet-switched data networks:

• The amount of traffic is described by the traffic load ρ• Definition: the traffic load ρ is

the quotient between the arrival rate λ and the service rate µ = C/L:

– Note that the traffic load is a dimensionless quantity (as traffic intensity in loss systems)

– By Little’s formula:traffic load tells the number of customers in service = probability of “server busy” = the utilization factor of the server

C

Lλµλρ ==

Traffic ↔ Packets

Page 45: Teletraffic Theory

45

1. Introduction

Example

• Consider a link between two packet routers. Assume that, – on the average, 10 new packets arrive in a second,

– the mean packet length is 400 bytes, and

– the link speed is 64 kbps.

• It follows that the traffic load is

• If the link speed is increased to 150 Mbps, then the load is just

• Note:– 1 byte = 8 bits

– 1 kbps = 1 kbit/s = 1 kbit per second = 1,000 bits per second– 1 Mbps = 1 Mbit/s = 1 Mbit per second = 1,000,000 bits per second

%505.0000,64/840010 ==∗∗=ρ

%02.00002.0000,000,150/840010 ==∗∗=ρ

Page 46: Teletraffic Theory

46

1. Introduction

Teletraffic analysis

• System capacity– C = link speed in kbps

• Traffic load

– λ = packet arrival rate in packet/s (considered here as a variable)

– L = average packet length in kbits (assumed here to be constant 1 kbit)

• Quality of service (from the users’ point of view)– Pz = probability that a packet has to wait “too long”, that is longer than a

given reference value z (assumed here to be constant 0.1 s)

• If we assume an M/M/1 queueing system, that is

– packets arrive according to a Poisson process (with rate λ)

– packet lengths are independent and identically distributed according to exponential distribution with mean L

Page 47: Teletraffic Theory

47

1. Introduction

• Then the quantitive relation between the three factors is given by the following waiting time formula

• Note:

– The system is stable only in the former case (ρ < 1), otherwise the number of packets in the queue will grow to infinity eventually

Waiting time formula for an M/M/1 queue

���

≥≥<<−−

==)1( if ,1

)1( if ),)(exp(),;,Wait(

ρλρλλ

λλ

CL

CLzzLCP L

CCL

z

Page 48: Teletraffic Theory

48

1. Introduction

Example

• Assume that packets arrive at rate λ = 50 packet/s and the link speed is C = 64 kbps. Then the probability Pz that an arriving packet has to wait too long (i.e. longer than z = 0.1 s) is

• Note that the system is stable, since

%19))4.1exp()1.0,1;50,64Wait(6450 ≈−==zP

16450 <== C

Lλρ

Page 49: Teletraffic Theory

49

1. Introduction

Required link speed vs. arrival rate

• Given the quality of service requirement that Pz < 20%, the required link speed C depends on the arrival rate λ as follows:

}2.0)1.0,1;,Wait(|min{)( <>= λλλ cLcC

arrival rate λ10 20 30 40 50

0

10

20

30

40

50

60

70

link speed C

Page 50: Teletraffic Theory

50

1. Introduction

Required quality of service vs. arrival rate

• Given the link speed C = 50 kbps, the required quality of service 1 − Pz depends on the arrival rate λ as follows:

)1.0,1;,50Wait(1)(1 λλ −=− zP

10 20 30 40 500

0.2

0.4

0.6

0.8

1

arrival rate λ

quality of service 1 − Pz

Page 51: Teletraffic Theory

51

1. Introduction

Required quality of service vs. link speed

• Given the arrival rate λ = 50 packet/s, the required quality of service 1 − Pz depends on the link speed C as follows:

)1.0,1;50,Wait(1)(1 CCPz −=−

link speed C

60 70 80 90 1000

0.2

0.4

0.6

0.8

1

quality of service 1 − Pz