network design and analysis-----wang wenjie queueing system iv: 1 © graduate university, chinese...

37
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University , Chinese academy of Sciences. Network Design and Analysis Wang Wenjie [email protected]

Upload: norah-lewis

Post on 02-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 1

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Network Design and Analysis

Wang Wenjie

[email protected]

Page 2: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 2

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Queueing System IV

Discrete-Time Queuing Systems

Page 3: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 3

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

1. Discrete-Time Queuing Systems

1. 1. Motivation

1. 2. The Bernoulli Process

1. 3. Geo/Geo/1 Systems

1. 4. Geo/Geo/1/N Systems

1. 5. Simple ATM Queuing Systems

Page 4: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 4

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

1.1 Motivation

Some queuing systems operate on a slotted

time basis: DT Systems

Page 5: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 5

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Model

• All events (arrivals, departures) must occur at integer multiples of the slot time TS

• Implication: all service times must be multiples of TS

• For convenience, often use normalized time

• Example: ATM

– Fixed-size cells imply all service times equal 1 time

slot (on a given link)

Page 6: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 6

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Discrete-Time Markov Chain

• Let j(n) = P[ X(n) = j ], j= 0, 1, …

• This denotes the probability of being in state j at time n , so

1j

j

On Off1-

1-

Page 7: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 7

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Transition Probability Matrix

Page 8: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 8

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Properties of P

• A square matrix whose dimension is the size of the state space

• Every row adds up to 1

(n+m) = (n) Pm

• Therefore, if we know the initial state pmf (0), we can get the state pmf at any time m.

• If DTMC is stationary, in steady-state:

P

Page 9: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 9

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Exercise 1.1

An urn initially contains 5 black balls and 5 white balls. The following experiment is repeated indefinitely:

• A ball is drawn from the urn

• If the ball is white it is put back in the urn

• If the ball is black it is left out

X(n) is the number of

black balls after n

draws from the urn

Page 10: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 10

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Exercise 1.1(Cont’d)

1. Draw the Markov chain and find the transition probabilities.

2. Find the matrix P.

3. Find the probability that there are 4 black balls in the urn after 2 draws.

Page 11: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 11

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

1.2. The Bernoulli Process

• Discrete-time analogous to Poisson process

– P[1 arrival during a time slot] = a

– P[0 arrivals during a time slot] = 1-a

• Mean # of arrivals during a time slot = ____

• Motivation: synchronous high-speed packet switches where at most one packet can be transmitted over a link during a slot

Similarities to the Poisson process•Memoryless•Multiplexing and demultiplexing of a Bernoulli process still result in Bernoulli processes.

Page 12: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 12

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Geometric Distribution (1/2)

• P[next arrival occurs within k time slots]

= P[k-1 empty slots] P[arrival] = (1-p)k-1 p

Geometric distribution

• Poisson process Exponential Interarrival Time

• Bernoulli process Geometric Interarrival Time

Page 13: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 13

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Geometric Distribution (2/2)

• Geometric distribution has the memoryless property

• Mean : 1/p

• Variance : (1-p)/p2

Page 14: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 14

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Binomial Distribution

• N slots with i arrivals in some sequence :

P(sequence)=pi(1-p)N-i

• There are i arrivals in N slots for some value of p, the binomial distribution is :

b(i ,N, p)= CiNpi(1-p)N-i

• Mean : Np

Page 15: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 15

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

1.3. Geo/Geo/1 Systems

• Bernoulli arrivals, geometric service times

(DT analog to M/M/1)

Page 16: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 16

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Model

• Let a = P[arrival]

• Let s = P[service completion] (departure)

Note that this is a discrete time Markov chain, so these are transition probabilities .NOT transition rates.

Page 17: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 17

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Local Balance Equations

Analogous to in M/M/1 system

0110 )1(

)1()1()1( p

as

sapaspsap

0

2

221 )1(

)1()1()1( p

as

sapaspsap

r

Page 18: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 18

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

State Probabilities

0prp nn

rpr

prpp

n

n

nn

111 0

0

000

nn rrp )1(

Page 19: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 19

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Average # of Customers

If 0< r <1 then:

00

)1(][n

n

n

n nrrnpnE

r

rnE

1][

Page 20: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 20

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Traffic Intensity

s

aar

apserveridlep

1)1)(1(

)1(][ 0

s

a

Page 21: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 21

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Mean Delay

)1(

][][

ra

r

a

nEE

• System throughput (customers/slot time) = a =

• Apply Little’s law

Page 22: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 22

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

1.4. Geo/Geo/1/N Systems

• Similar to Geo/Geo/1, except for state N

Page 23: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 23

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Local Balance Equations

• As before, local balance yields

• However Now:

Nnprp nn for 0

01

1

)1()1(

)1(

parps

sap

spsap

NNN

NN

Page 24: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 24

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

State Probabilities

1

0

0)1(

1N

n

Nn arrp

)1(1

110 rarr

rp

NN

Page 25: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 25

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Delay

• P[block] = P[N in system] = N

• So, throughput is a(1- N )

Page 26: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 26

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Simple ATM Queuing System(1)

Page 27: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 27

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Simple ATM Queuing System(2)

• Deterministic service time of one time slot

– Normalized to cell transmission time

• Always a service completion if non-empty

– Server is never idle if a job (cell) is waiting

• Simple Bernoulli is not interesting since there is no queuing

• Of interest are systems where there can be up to M > 1 arrivals per time slot, e.g., from M different input sources

Page 28: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 28

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

M-Geo/D=1/1/N Systems (1)

Page 29: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 29

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

M-Geo/D=1/1/N Systems (2)

Page 30: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 30

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

M-Geo/D=1/1/N Systems (3)

Transition Matrix

Page 31: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 31

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Global Balance Equations

Page 32: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 32

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Fast Computer Algorithm

Page 33: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 33

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Blocking Probability

Page 34: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 34

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

M-Geo/D=1/1/

Page 35: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 35

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Summary Queuing Theory(1)

Page 36: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 36

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Summary Queuing Theory(2)

Page 37: Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang

Network Design and Analysis-----Wang Wenjie Queueing System IV: 37

© G

rad

uat

e U

niv

ersi

ty ,

Ch

ines

e ac

adem

y o

f S

cien

ces.

Summary Queuing Theory(3)