analysis of system performance - tum
TRANSCRIPT
![Page 1: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/1.jpg)
Chair for Network Architectures and Services—Prof. Carle
Department of Computer Science
TU München
Analysis of System Performance
IN2072
Chapter 5 – Analysis of
Non Markov Systems
Dr. Alexander Klein
Prof. Dr.-Ing. Georg Carle
Chair for Network Architectures and Services
Department of Computer Science
Technische Universität München
http://www.net.in.tum.de
![Page 2: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/2.jpg)
Network Security, WS 2008/09, Chapter 9 2 IN2072 – Analysis of System Performance, SS 2012 2
Non Markov Systems
Content:
(Non Memory-less) systems
• Embedded markov chain
• General distributed service times
Waiting system M/GI/1-s (Infinite number of sources)
• State probabilities
• Transition probabilities
• Waiting time distribution
• Impact of variance of the service process on system performance
Waiting system GI/M/1-s (Infinite number of sources)
• State probabilities
• Transition probabilities
• Waiting time distribution
![Page 3: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/3.jpg)
Network Security, WS 2008/09, Chapter 9 3 IN2072 – Analysis of System Performance, SS 2012 3
Non Markov Systems
Markov Systems:
Arrival process is memory-less.
Service process is memory-less.
Non Markov Systems:
Have one component which is memory-less AND
one component which is NOT memory-less.
Idea:
Analyze the system when it is memory-less.
System is memory less at any given point in time.
M / GI / 1 and GI / M / 1
System becomes memory-less either at the time of an arrival or at
the time a service is completed.
![Page 4: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/4.jpg)
Network Security, WS 2008/09, Chapter 9 4 IN2072 – Analysis of System Performance, SS 2012 4
Embedded Markov Chain
Assumption:
State discrete stochastic process which is memory-less
(markovian) at time
}0),({ ttX
}.,1,0,{ ntn
....,)()(
)(,...,)()(
11011
0011
nnnnnn
nnnn
ttttxtXxtXP
xtXxtXxtXP
1
2
3
4
1 2 3 4 5 6 7
X(i)
time
![Page 5: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/5.jpg)
Network Security, WS 2008/09, Chapter 9 5 IN2072 – Analysis of System Performance, SS 2012 5
Embedded Markov Chain
Characteristics:
The future development of the process only depends on its current
state.
Knowledge about the current state at time is sufficient to
calculate its consecutive states
Due to the state discrete nature of the process, the states
represent a chain.
The chain is a markov chain according to our assumption which states
that the process is memory-less at time
)( ntX nt),(),( 21 nn tXtX
)}({ ntX
}.,1,0,{ ntn
![Page 6: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/6.jpg)
Network Security, WS 2008/09, Chapter 9 6 IN2072 – Analysis of System Performance, SS 2012 6
Embedded Markov Chain
Points of regeneration:
t
1
2
X(t)
n
Arrivals
Syste
m s
tate
P P P P
Embedded points in time when the system is memory-less
(markovian).
![Page 7: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/7.jpg)
Network Security, WS 2008/09, Chapter 9 7 IN2072 – Analysis of System Performance, SS 2012 7
Embedded Markov Chain
The state probabilities at the embedded points can be described by
a state probability vector.
State transition probability matrix P which describes the relation
between any consecutive state probability vectors and at
embedded points and is given by
nt
nt
},1,0),,({ inixn
})({),( itXPnix n
1ntn 1n
}{ ijpP
,2,1,0,},)(|)({ 1 jiitXjtXPp nnij
Pnn 1 Relation of consecutive state transition vectors.
P Probability vector in stationary state.
![Page 8: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/8.jpg)
Network Security, WS 2008/09, Chapter 9 8 IN2072 – Analysis of System Performance, SS 2012 8
Embedded Markov Chain
Characteristics:
The probability vector of the markov chain in steady state is given by the
left eigenvector of the transition probability matrix P of eigenvalue 1.
Embedded markov chain is usually applied if only one component is non-
memory less.
Embedded points are located where this component becomes memory
less.
M / GI / 1
Service process is the only non-memory less component.
State process becomes memory less after service completion.
Embedded points are located directly after a service completion.
GI / M / 1
Arrival process is the only non-memory less component.
State process becomes memory less after an arrival.
Embedded points are located directly before an arrival occurs.
![Page 9: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/9.jpg)
Network Security, WS 2008/09, Chapter 9 9 IN2072 – Analysis of System Performance, SS 2012 9
M / GI / 1 – Waiting system
Model:
GI
Poisson arrival
,M
1
General independent
distributed service time
Model and parameter description:
M / GI / 1 – (No jobs are blocked!)
Arrival process is a Poisson process with an exponential distributed inter-
arrival time A.
Service time B is general independent (GI) distributed.
Jobs that arrive at a point in time when all service units are busy, are
queued and served in FIFO order as soon as a free serving unit is
available.
Waiting queue with
unlimited capacity
![Page 10: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/10.jpg)
Network Security, WS 2008/09, Chapter 9 10 IN2072 – Analysis of System Performance, SS 2012 10
M / GI / 1 – Waiting system
Arrival process:
Arrival rate λ
Average number of arriving jobs per time unit.
Service process:
Service rate μ
Average number of service completions.
(assuming the service unit only has two states – idle or busy)
System:
Waiting system
Waiting queue with unlimited capacity
Queuing strategy – First In First Out (FIFO)
1][,1)()( AEetAPtA t
1][),()( BEtBPtB
![Page 11: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/11.jpg)
Network Security, WS 2008/09, Chapter 9 11 IN2072 – Analysis of System Performance, SS 2012 11
M / GI / 1 – Waiting system
State space:
Random variable describes the number of (waiting and currently
served) jobs in the system.
State process is state discrete and time continuous stochastic process
)(tX
arrivals
service time
3.4 0.6 1.7 1.6 0.7 0.7 1.3
0.7 4.0 3.3 1.0 1.7
events
t
1
X(t)
n
n
Arrivals
Syste
m s
tate
Waiting jobs
Busy serving unit
![Page 12: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/12.jpg)
Network Security, WS 2008/09, Chapter 9 12 IN2072 – Analysis of System Performance, SS 2012 12
M / GI / 1 – Waiting system
State space:
Random variable describes the number of (waiting and currently
served) jobs in the system.
State process is state discrete and time continuous stochastic process
)(tX
arrivals
service time
events
t
1
X(t)
n
Arrivals
Syste
m s
tate
Waiting jobs
P P P P
Wn
B
tn-1 tn
![Page 13: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/13.jpg)
Network Security, WS 2008/09, Chapter 9 13 IN2072 – Analysis of System Performance, SS 2012 13
M / GI / 1 – Waiting system
Embedded points:
State process becomes memory less at the time of a service completion.
Embedded points of the markov chain are located directly after service
completion.
Embedded Markov Chain:
The point in time of the nth embedded point corresponds to the nth service
completion.
The sequence of the process states
at these points represent the embedded markov chain.
}),(),(,),(),({ 110 nn tXtXtXtX
![Page 14: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/14.jpg)
Network Security, WS 2008/09, Chapter 9 14 IN2072 – Analysis of System Performance, SS 2012 14
M / GI / 1 – Waiting system
Analysis:
Introduce a random variable which describes the number of arrivals
during a service duration.
)()( iPi
0
)()(i
i
GF ziz Generation Function with
][)(
][1
BEdz
zdE
z
GF
![Page 15: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/15.jpg)
Network Security, WS 2008/09, Chapter 9 15 IN2072 – Analysis of System Performance, SS 2012 15
M / GI / 1 – Waiting system
Transition behavior:
arrivals
service time
events
t
1
X(t) Arrivals
Syste
m s
tate
P
B
tn tn+1
0)( itX n
jtX n )( 1
i
j
(j-i+1) arrivals
during the service
State transition ij with i0
arrivals
service time
events
t
1
X(t)
j
Arrivals
Syste
m s
tate
P
B
tn tn+1
jtX n )( 12
j arrivals during
the service
State transition i=0 j
0)( itX n
i=0
![Page 16: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/16.jpg)
Network Security, WS 2008/09, Chapter 9 16 IN2072 – Analysis of System Performance, SS 2012 16
M / GI / 1 – Waiting system
State transition:
State transition between consecutive embedded points and
Case 1: System not empty (i 0) at time
At time are i jobs in the system.
The service of the next job starts directly after
j jobs remain in the system at time
})(|)({ 1 itXjtXPp nnij
nt .1nt
nt
.nt
.1nt
(j-i+1) jobs have to arrive during the interval which
corresponds (in this case) to the service duration.
1; nn tt
,,1,,2,1),1( iijiijpij
![Page 17: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/17.jpg)
Network Security, WS 2008/09, Chapter 9 17 IN2072 – Analysis of System Performance, SS 2012 17
M / GI / 1 – Waiting system
Case 2: System is empty (i = 0) at time
At time are i=0 jobs in the system.
The service of the next job starts directly after the arrival of the job.
j jobs remain in the system at time
nt
nt
.1nt
j jobs have to arrive during the service duration.
,1,0),(0 jjp j
)1()0(00
)2()1()0(0
)3()2()1()0(
)3()2()1()0(
}{
ijpP
![Page 18: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/18.jpg)
Network Security, WS 2008/09, Chapter 9 18 IN2072 – Analysis of System Performance, SS 2012 18
M / GI / 1 – Waiting system
The state probabilities at the embedded points can be described by
a state probability vector.
State transition probability matrix P which describes the relation
between any consecutive state probability vectors and at
embedded points and is given by
A start vector is sufficient to calculate the future state probability
vectors
This method allows us to evaluate systems in overload or during
transient phase which are typical issues in communication
networks.
nt
nt
},1,0),,(,),,1(),,0({ jnjxnxnxn
})({),( jtXPnjx n
1ntn 1n
Pnn 1 Relation of consecutive state transition vectors.
0
.,2,1, nn
![Page 19: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/19.jpg)
Network Security, WS 2008/09, Chapter 9 19 IN2072 – Analysis of System Performance, SS 2012 19
M / GI / 1 – Waiting system
Stationary state equation:
A system is called stable if it state probability vector does not further
change. (c.f. Chapter 3)
State probabilities can be calculated by using the distribution of RV
and the probability vector.
In general the process or system is in an instationary state at the
beginning.
The stationary state vector is typically determined by numerical method.
P Probability vector in stationary state.
1nn
}),(,),1(),0({ jxxx
0
1
1
,1,0)1()()()0()(j
i
jijixjxjx
![Page 20: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/20.jpg)
Network Security, WS 2008/09, Chapter 9 20 IN2072 – Analysis of System Performance, SS 2012 20
M / GI / 1 – Waiting system
Power method:
Robust numerical method to determine the steady probability state
vector.
6
1 10)]([)]([
nn tXEtXE
Calculate the general state probability equation until
a certain abortion criteria is reached.
Pnn 1
It is assumed that the statistical equilibrium is reached if the
following abortion criteria holds true:
![Page 21: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/21.jpg)
Network Security, WS 2008/09, Chapter 9 21 IN2072 – Analysis of System Performance, SS 2012 21
M / GI / 1 – Waiting system
Complementary waiting time distribution function in M / GI / 1:
In the following the complementary waiting distribution function of a
M / GI / 1 Waiting system depending on ist utilization and the
coefficient of variation cB of the service time distribution is shown.
Coefficient of variation (Variationskoeffizient)
The coefficient of variation is a normalized measure of dispersion of a
probability distribution
It is a dimensionless number which does not require knowledge of the
mean of the distribution in order to describe the distribution
deterministic (constant service duration)
variance lower than exponential distribution
variance higher than exponential distribution
Picture taken from Tran-Gia, Einführung in die Leistungsbewertung und Verkehrstheorie
0][,][
XEXE
c XX
0c
1c
1c
![Page 22: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/22.jpg)
Network Security, WS 2008/09, Chapter 9 22 IN2072 – Analysis of System Performance, SS 2012 22
M / GI / 1 – Waiting system
Complementary waiting time distribution function in M / GI / 1:
Picture taken from Tran-Gia, Einführung in die Leistungsbewertung und Verkehrstheorie
Waiting duration increases with higher variance of the service process!
Variance of the service process becomes the dominating factor.
Probability that the
system is busy.
1)0(x
)0(1 x
![Page 23: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/23.jpg)
Network Security, WS 2008/09, Chapter 9 23 IN2072 – Analysis of System Performance, SS 2012 23
M / GI / 1 – Waiting system
Average waiting time of waiting jobs:
Picture taken from Tran-Gia, Einführung in die Leistungsbewertung und Verkehrstheorie
High utilization should be avoided if the service duration has a high
coefficient of variation!
Best performance is achieved by systems with constant service times.
![Page 24: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/24.jpg)
Network Security, WS 2008/09, Chapter 9 24 IN2072 – Analysis of System Performance, SS 2012 24
M / GI / 1 – Waiting system
State probabilities at random observation points:
State probabilities of a M / G / 1 – Waiting system are valid at any
randomly chosen observation point t*.
niix ,,1,0),(* State probabilities at a randomly chosen
observation point t*.
niixA ,,1,0),( State probabilities at points of arrival.
,1,0),()()( * iixixix A
![Page 25: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/25.jpg)
Network Security, WS 2008/09, Chapter 9 25 IN2072 – Analysis of System Performance, SS 2012 25
M / GI / 1 – Waiting system
Idea:
Observe the state process over an interval of length T.
Focus on a single state and count the following state transitions: ][ iX
Arrival event:
• State transition
• number of these state transitions during interval T.
]1[][ iXiX
Departure event:
• State transition
• number of these state transitions during interval T.
][]1[ iXiX
),( TinA
),( TinD
![Page 26: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/26.jpg)
Network Security, WS 2008/09, Chapter 9 26 IN2072 – Analysis of System Performance, SS 2012 26
M / GI / 1 – Waiting system
State probabilities at random observation points:
Number of arrivals during interval T while the system was in state i.
t
i
X(t) Arrivals
Syste
m s
tate
T
1
0
arrivals
T 0
T 0
),( TinA
i+1
![Page 27: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/27.jpg)
Network Security, WS 2008/09, Chapter 9 27 IN2072 – Analysis of System Performance, SS 2012 27
M / GI / 1 – Waiting system
State probabilities at random observation points:
Number of departures during interval T which changed the system
state from i+1 to state i.
t
i
X(t) Arrivals
Syste
m s
tate
T
1
0
departures
T 0
T 0
),( TinD
i+1
![Page 28: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/28.jpg)
Network Security, WS 2008/09, Chapter 9 28 IN2072 – Analysis of System Performance, SS 2012 28
M / GI / 1 – Waiting system
Both events are alternating during the process development.
During an observation interval T the following inequality holds true:
The total number of arrival and departure events during time interval T
is given by:
Start state is given by X(0) and the final state is given by X(T).
1),(),( TinTin DA
0
),()(i
AA TinTn Total number of arrivals during interval T
0
),()(i
DD TinTn Total number of departure during interval T
)()()0()( TnTXXTn AD Total number of departure events
during interval T
![Page 29: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/29.jpg)
Network Security, WS 2008/09, Chapter 9 29 IN2072 – Analysis of System Performance, SS 2012 29
M / GI / 1 – Waiting system
State probability at embedded points:
)()0(),(
),(),(),(lim
)(
),(lim)(
TXXTin
TinTinTin
Tn
Tinix
A
ADA
TD
D
T
State transition at arrivals ,1,0),()(
),(lim
iix
Tn
TinA
A
A
T
,1,0
)(
)()0(1
)(
),(),(
)(
),(
lim
i
Tn
TXX
Tn
TinTin
Tn
Tin
A
A
AD
A
A
T
0)(
),(),(lim
Tn
TinTin
A
AD
T
with
and
![Page 30: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/30.jpg)
Network Security, WS 2008/09, Chapter 9 30 IN2072 – Analysis of System Performance, SS 2012 30
M / GI / 1 – Waiting system
State probability at embedded points:
The arrival process is memory less. Thus, an arrival sees the system
from the same perspective state than an independent observer.
0)(
)()0(lim
Tn
TXX
AT
,1,0),()(* iixix A
PASTA
Stationary
system
,1,0),()( iixix A
q.e.d.
![Page 31: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/31.jpg)
Network Security, WS 2008/09, Chapter 9 31 IN2072 – Analysis of System Performance, SS 2012 31
Questions
What is an embedded chain?
What is an embedded markov chain?
When does a system become stable?
What is the power method?
Does the start probability vector have an impact on the power method?
How can you analyze a M/GI/1 waiting system?
What impact does the variation coefficient of the service distribution
have on the system performance?
What is the difference between waiting time of all jobs and waiting time
of waiting jobs?
How can you proof that arrival see a M/GI/1 system from the same
perspective than an independent observer?
![Page 32: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/32.jpg)
Analysis of System Performance
IN2072
Chapter 5 – Analysis of
Non Markov Systems
GI / M / 1 – Waiting system
![Page 33: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/33.jpg)
Network Security, WS 2008/09, Chapter 9 33 IN2072 – Analysis of System Performance, SS 2012 33
GI / M / 1 – Waiting system
Model:
M
Poisson
process
,GI
1 General independent
distributed
Model and parameter description:
GI / M / 1 – (No jobs are blocked!)
Arrival process is general independent (GI) distributed.
Service time B is a Poisson process with an exponential distributed
inter-arrival time A.
Jobs that arrive at a point in time when the service unit is busy, are queued
and served in FIFO order as soon as the serving unit has served the
current job.
Waiting queue with
unlimited capacity
![Page 34: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/34.jpg)
Network Security, WS 2008/09, Chapter 9 34 IN2072 – Analysis of System Performance, SS 2012 34
GI / M / 1 – Waiting system
Arrival process:
Arrival rate λ
Average number of arriving jobs per time unit.
Service process:
Service rate μ
Average number of service completions.
(assuming the service unit only has two states – idle or busy)
System:
Waiting system
Waiting queue with unlimited capacity
Queuing strategy – First In First Out (FIFO)
1][),()( AEtAPtA
1][,1)()( BEetBPtB t
![Page 35: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/35.jpg)
Network Security, WS 2008/09, Chapter 9 35 IN2072 – Analysis of System Performance, SS 2012 35
GI / M / 1 – Waiting system
State space:
Random variable describes the number of (waiting and currently
served) jobs in the system.
State process is state discrete and time continuous stochastic process.
)(tX
arrivals
service time
events
t
1
X(t)
n
Arrivals
Syste
m s
tate
Waiting jobs
P P P
Wn
B
tn-1 tn
P P P P
![Page 36: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/36.jpg)
Network Security, WS 2008/09, Chapter 9 36 IN2072 – Analysis of System Performance, SS 2012 36
GI / M / 1 – Waiting system
Embedded points:
State process becomes memory less at an arrival.
Embedded points of the markov chain are located directly before an
arrival.
Embedded Markov Chain:
The point in time of the nth embedded point corresponds to the nth service
completion.
The sequence of the process states
at these points represent the embedded markov chain.
}),(),(,),(),({ 110 nn tXtXtXtX
![Page 37: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/37.jpg)
Network Security, WS 2008/09, Chapter 9 37 IN2072 – Analysis of System Performance, SS 2012 37
GI / M / 1 – Waiting system
Analysis:
Introduce a random variable which describes the number of served jobs
within an inter-arrival interval.
)()( iPi
0
)()(i
i
GF ziz Generation Function with
1][
)(][
1
AEdz
zdE
z
GF
![Page 38: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/38.jpg)
Network Security, WS 2008/09, Chapter 9 38 IN2072 – Analysis of System Performance, SS 2012 38
GI / M / 1 – Waiting system
State transition:
State transition between consecutive embedded points and
Case 1: System not empty (j 0) at time
i jobs in the system right before the nth arrival.
i+1 jobs are in the system the embedded point
j jobs remain in the system at the next embedded point.
})(|)({ 1 itXjtXPp nnij
nt .1nt
(i+1-j) jobs have to be served during the interval .; 1nn tt
1,,2,1,,1,0),1( ijijipij
.1nt
.1nt
![Page 39: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/39.jpg)
Network Security, WS 2008/09, Chapter 9 39 IN2072 – Analysis of System Performance, SS 2012 39
GI / M / 1 – Waiting system
Case 2: System is empty (j = 0) at time
At time are i+1 jobs in the system.
no jobs remain in the system at time
1nt
nt
.1nt
i+1 jobs have to be served during
,1,0,)(1)(01
0
ikkpi
kik
i
)1()2()3()(1
)0()1()2()(1
0)0()1()(1
00)0()0(1
}{
3
0
2
0
1
0
k
k
k
ij
k
k
k
pP
.; 1nn tt
![Page 40: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/40.jpg)
Network Security, WS 2008/09, Chapter 9 40 IN2072 – Analysis of System Performance, SS 2012 40
GI / M / 1 – Waiting system
The state probabilities at the embedded points can be described by
a state probability vector.
State transition probability matrix P which describes the relation
between any consecutive state probability vectors and at
embedded points and is given by
A start vector is sufficient to calculate the future state probability
vectors
This method allows us to evaluate systems in overload or during
transient phase which are typical issues in communication
networks.
nt
nt
},1,0),,(,),,1(),,0({ jnjxnxnxn
})({),( jtXPnjx n
1ntn 1n
Pnn 1 Relation of consecutive state transition vectors.
0
.,2,1, nn
![Page 41: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/41.jpg)
Network Security, WS 2008/09, Chapter 9 41 IN2072 – Analysis of System Performance, SS 2012 41
GI / M / 1 – Waiting system
Stationary state equation:
A system is called stable if it state probability vector does not further
change. (c.f. Chapter 3)
P Probability vector in stationary state.
1nn
}),(,),1(),0({ jxxx
100 0
)()()(1)()0(ikii
i
k
kixkixx
,2,1),()1()1()()(01
jijixjiixjxiji
![Page 42: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/42.jpg)
Network Security, WS 2008/09, Chapter 9 42 IN2072 – Analysis of System Performance, SS 2012 42
Questions
How can you analyze a GI/M/1 waiting system?
What is the utilization of a GI/M/1 waiting system?
What impact has the variation of the arrival process on the waiting time
of a GI/M/1 waiting system?
When does the system become memory-less?
![Page 43: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/43.jpg)
Analysis of System Performance
IN2072
Chapter 5 – Analysis of
Non Markov Systems
M / GI[,K] / 1 – S
Batch Service with
Start Threshold
![Page 44: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/44.jpg)
Network Security, WS 2008/09, Chapter 9 44 IN2072 – Analysis of System Performance, SS 2012 44
M / GI[,K] / 1 – S Loss system
Batch service system with start threshold:
Model:
Model and parameter description:
M / GI[,K] / 1 – S – System with S waiting slots.
Arrival process is a Poisson process.
Service duration is GI distributed. Up to K jobs can be served in parallel.
Service unit is activated if or more jobs are waiting.
All jobs of a batch experience exactly the same service time.
Arriving jobs have to wait until the current batch is served.
S ,M
Poisson arrival
process
Batch service process with GI
distributed service duration
GI GI GI
1 2 K
Activation
![Page 45: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/45.jpg)
Network Security, WS 2008/09, Chapter 9 45 IN2072 – Analysis of System Performance, SS 2012 45
M / GI[,K] / 1 – S Loss system
Model and parameter description:
System has S waiting slots.
Jobs are blocked if S jobs are waiting in the queue.
At the end of a batch service, new jobs are loaded into the servers if at
least jobs are waiting.
Up to K jobs are loaded into the system after a batch service.
If less than jobs are waiting in the queue at the end of a batch service,
the servers remain idle until jobs are in the queue and a new batch
service starts.
![Page 46: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/46.jpg)
Network Security, WS 2008/09, Chapter 9 46 IN2072 – Analysis of System Performance, SS 2012 46
U
Case 2
M / GI[,K] / 1 – S Loss system
State space:
Random variable describes the number of waiting the system.
State process is state discrete and time continuous stochastic process.
)(tX
t
1
X(t)
Arrivals
Syste
m s
tate
t3 t4
K
2
t1 t2 service process
U
Case 1
U
Case 3
Embedded points
![Page 47: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/47.jpg)
Network Security, WS 2008/09, Chapter 9 47 IN2072 – Analysis of System Performance, SS 2012 47
M / GI[,K] / 1 – S Loss system
Embedded points:
State process becomes memory less at the time of a service completion.
Embedded points of the markov chain are located directly after service
completion.
Embedded Markov Chain:
The point in time of the nth embedded point corresponds to the nth (batch)
service completion.
The sequence of the process states
at these points represent the embedded markov chain.
}),(),(,),(),({ 110 nn tXtXtXtX
![Page 48: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/48.jpg)
Network Security, WS 2008/09, Chapter 9 48 IN2072 – Analysis of System Performance, SS 2012 48
M / GI[,K] / 1 – S Loss system
Analysis:
Introduce a random variable which describes the number of arrivals
during a service duration.
The state probabilities at the embedded points and can be
described by a state probability vector.
)()( iPi
nt 1nt
})(|)({ 1 itXjtXPp nnij
![Page 49: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/49.jpg)
Network Security, WS 2008/09, Chapter 9 49 IN2072 – Analysis of System Performance, SS 2012 49
M / GI[,K] / 1 – S Loss system
State transition:
State transition between consecutive embedded points and
Case 1: Less than jobs in the queue at time
-i jobs have to arrive until the service process is started.
This waiting period is Erlang (-i) distributed
Service unit is activated as soon as jobs are waiting.
j jobs arrive during the service.
Transition time U is given by:
})(|)({ 1 itXjtXPp nnij
nt .1nt
1,,1,0),( Sjjpij
.1t
.iE
i
BEU i
SjkpSk
iS
,)(
![Page 50: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/50.jpg)
Network Security, WS 2008/09, Chapter 9 50 IN2072 – Analysis of System Performance, SS 2012 50
M / GI[,K] / 1 – S Loss system
State transition:
State transition between consecutive embedded points and
Case 2: Number of jobs in the queue higher than the threshold.
Service process is started immediately and the queue is emptied.
Transition time U is identical with the service duration.
State transition probability is identical to that in case 1.
j jobs arrive during the service.
})(|)({ 1 itXjtXPp nnij
nt .1nt
1,,1,0),( Sjjpij
ki
BU
SjkpSk
iS
,)(
![Page 51: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/51.jpg)
Network Security, WS 2008/09, Chapter 9 51 IN2072 – Analysis of System Performance, SS 2012 51
M / GI[,K] / 1 – S Loss system
Case 3:
Number of jobs in the queue is higher than the number of servers.
Service process is started immediately and K jobs are served.
(i-k) jobs remain in the queue after the service is started.
Transition time U is identical with the service duration.
j jobs are in the queue after the batch service is completed.
(j-i+K) jobs arrive during the service duration.
1,,1,0),( Sjkijpij
SiK
BU
SjkpKiSk
iS
,)(
![Page 52: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/52.jpg)
Network Security, WS 2008/09, Chapter 9 52 IN2072 – Analysis of System Performance, SS 2012 52
M / GI[,K] / 1 – S Loss system
State transition matrix:
Kk
Sk
Sk
Sk
Sk
Sk
ij
kK
kS
kS
kS
kS
kS
pP
)()1(000
)()3()0(00
)()2()1()0(0
)()1()2()1()0(
)()1()2()1()0(
)()1()2()1()0(
}{
2
1
0 1 2 S-1 S
0
1
K
K+1
K+2
S
![Page 53: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/53.jpg)
Network Security, WS 2008/09, Chapter 9 53 IN2072 – Analysis of System Performance, SS 2012 53
M / GI[,K] / 1 – S Loss system
Average waiting time:
Start threshold
Traffic load
Variance of the service
process
Characteristics:
High waiting time for
systems with low traffic
load and high start
threshold.
Start threshold becomes
dominating for systems
with low traffic load since
it takes a long time until
the start threshold is
reached.
Picture taken from Tran-Gia, Einführung in die Leistungsbewertung und Verkehrstheorie
M / GI[,K] / 1 – S with K=32 service units and
S=64 waiting slots
kBE /][
Avera
ge w
aitin
g t
ime E
[W]
![Page 54: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/54.jpg)
Network Security, WS 2008/09, Chapter 9 54 IN2072 – Analysis of System Performance, SS 2012 54
M / GI[,K] / 1 – S Loss system
Average waiting time:
Start threshold
Traffic load
Variance of the service
process
Characteristics:
Impact of variance of the
service process
decreases with higher
start thresholds.
Optimum in terms of
average waiting time is
highly parameter
sensitive.
Picture taken from Tran-Gia, Einführung in die Leistungsbewertung und Verkehrstheorie
M / GI[,K] / 1 – S with K=32 service units and
S=64 waiting slots
Start threshold
Avera
ge w
aitin
g t
ime E
[W]
![Page 55: Analysis of System Performance - TUM](https://reader034.vdocuments.site/reader034/viewer/2022050302/626f0c14ee3e0e50ff64d22a/html5/thumbnails/55.jpg)
Network Security, WS 2008/09, Chapter 9 55 IN2072 – Analysis of System Performance, SS 2012 55
Questions
Describe the M/GI[,K]/1-S loss system and its parameter.
What impact has the start threshold on the waiting duration?
How can you analyze the M/GI[,K]/1-S loss system?
Which state changes are possible between to consecutive embedded
points?