Material from Computer Networking: A Top Down Approach, J.F. Kurose and K.W. Ross
Queueing Theory
14-740: Fundamentals of Computer Networks Bill Nace
Queueing Theory 14-740: Fundamentals of Computer Networks Bill Nace - - PowerPoint PPT Presentation
Queueing Theory 14-740: Fundamentals of Computer Networks Bill Nace Material from Computer Networking: A Top Down Approach, J.F. Kurose and K.W. Ross Administrivia Quiz #1 is next lesson, on Canvas Study Guide is on the website
Material from Computer Networking: A Top Down Approach, J.F. Kurose and K.W. Ross
14-740: Fundamentals of Computer Networks Bill Nace
2
3
4
statements about queueing processes
5
Service Facility ♫
Arriving Customers Waiting Customers Discouraged Customers (leaving) Served Customers (leaving) Customers being Served
6
7
8
9
10
11
12
Service Facility ♫ Service Facility Service Facility Service Facility ♫ Service Facility Service Facility ♫
13
14
Characteristic Symbol Explanation Interarrival-time distribution (A) M Exponential D Deterministic Ek Erlang type k Service-time distribution (B) Hk k exponentials PH Phase Type G General # parallel servers (X) 1, 2, 3... , ∞ Max capacity (Y) 1, 2, 3... , ∞ Queue Discipline (Z) FCFS First come, first served LCFS Last come, first served RSS Random Selection for Service PR Priority GD General Discipline
always assumed as the defaults
15
16
17
service capability ➙ bad
from emptying (unless perfectly scheduled deterministic arrivals) ➙ bad
18
number n customers in the system
19
L = E[N] =
∞
X
n=0
npn Lq = E[Nq] =
∞
X
n=c+1
(n − c)pn
20
Arrival of Customer n Arrival of Customer n+1 Departure of Customer n-1 Departure of Customer n Tq (n) TI(n) Tq (n+1) S(n)
time
E[ T ] = E[ Tq ] + E[ S ] to get W = Wq + 1/μ
21
22
L − Lq =
∞
X
n=1
npn −
∞
X
n=1
(n − 1)pn =
∞
X
n=1
pn = 1 − p0
23
24
ρ = λ/cμ Traffic intensity L = λW Little’s Law Little’s Law Busy probability for an arbitrary server r = λ/μ Expected number of customers in service G/G/1 empty-system probability G/G/1 combined result Lq = λWq W = Wq+1/μ Pb= λ/cμ = ρ L = Lq + r p0 = 1 - ρ L = Lq + (1-p0)
25
26
system
random variable with rate λn
27
1 2 3 4
λ0 λ1 λ2 λ3 λ4 μ1 μ2 μ3 μ4 μ5
28
1 2 3 4
λ0 λ1 λ2 λ3 λ4 μ1 μ2 μ3 μ4 μ5
29
pn+1 = λn + µn µn+1 pn − λn−1 µn+1 pn−1 p1 = λ0 µ1 p0 p2 = λ1 + µ1 µ2 p1 − λ0 µ2 p0 = λ1 + µ1 µ2 λ0 µ1 p0 − λ0 µ2 p0 = λ1λ0 µ2µ1 p0
p3 = λ2λ1λ0 µ3µ2µ1 p0
pn = λn−1λn−2 · · · λ0 µnµn−1 · · · µ1 p0 = p0
n
Y
i=1
λi−1 µi
30
31
Interarrival time TI(t) = λe−λt Service time S(t) = µe−µt
1 2 3 4
λ λ λ λ λ μ μ μ μ μ
32
pn = p0
n
Y
i=1
✓λ µ ◆ = p0 ✓λ µ ◆n
33
1 =
∞
X
n=0
pn =
∞
X
n=0
p0 ✓λ µ ◆n = p0
∞
X
n=0
ρn
∞
X
n=0
ρn converges if ρ < 1
∞
X
n=0
ρn = 1 1 − ρ 1 = p0 1 − ρ p0 = 1 − ρ
34
p0 = 1 − ρ gets plugged into pn = p0 ✓λ µ ◆n to produce pn = (1 − ρ)ρn
35
L = E[N] =
∞
X
n=0
npn = (1 − ρ)
∞
X
n=0
nρn
∞
X
n=1
nρn−1 = 1 (1 − ρ)2 leads to L = ρ 1 − ρ = λ µ − λ
36
q
Avg size of nonempty queue
37
38
39
1 2 c c+1
λ λ λ λ λ μ 2μ 3μ cμ cμ λ cμ
40
pn = (
λn n!µn p0
(0 ≤ n < c),
λn cn−cc!µn p0
(n ≥ c) p0 = rc c!(1 − ρ) +
c−1
X
n=0
rn n! !−1 (r/c = ρ < 1)
41
Lq = ✓ rcρ c!(1 − ρ)2 ◆ p0 Wq = Lq λ = ✓ rc c!(cµ)(1 − ρ)2 ◆ p0 W = 1 µ + ✓ rc c!(cµ)(1 − ρ)2 ◆ p0 L = r + ✓ rcρ c!(1 − ρ)2 ◆ p0
42
43
i 1 2 3 4 5 6 7 TIi 2 1 3 1 1 4 Si 1 3 6 2 1 1 4
44
i 1 2 3 4 5 6 7 TIi 2 1 3 1 1 4 Si 1 3 6 2 1 1 4
45
46
47
48
49
common networking problems
including use of Little's law, M/M/1 and M/M/c measures of effectiveness. In such cases, all equations will be given
characteristics and know Kendall53 notation for those systems
50