Professional Documents
Culture Documents
Switch Performance Analysis and Design Improvements: IEG4020 Telecommunication Switching and Network Systems
Switch Performance Analysis and Design Improvements: IEG4020 Telecommunication Switching and Network Systems
Switch Performance Analysis and Design Improvements: IEG4020 Telecommunication Switching and Network Systems
Chapter 4
Switch Performance Analysis
and Design Improvements
Internally Nonblocking Switch:
Loss System
1 P = Pr[ carry a packet ]
2
3
2
2
Winning packet
Input Queues Losing packet Outputs
31 1
Cannot access 21 Internally 2
output 2 because 4 Nonblocking
3
it is blocked by the Switch
3 4
first packet
3
Output 1
Fictitious Output
(3,2) (1,2) Output 2
Queues formed by
HOL packets (2,3) Output 3
(4,4) Output 4
(input, output)
Outputs
(1,1) (1,2) 1
(2,1) (2,3) Internally 2
(3,2) (3,2) Nonblocking
3
Switch
(4,1) (4,4) 4
4
Throughout of Input-Buffered Switch
5
e.g. Fictitious Queue i
Ami 2 C mi 1 3
1 i
i 1
i i
1 2
2 2
3 i
time time
slot slot
m m-1
6
The empty probability of
… any output link is (1 )
…
C mi Bmi 1 Ami
max(0, C mi 1 1) Ami
N
Fm 1 Bmi 1 N
i 1
N
E[ B i
m 1 ] N(1 ) E[Bmi 1 ] 1
i 1
Fm1 Fm1
E[ ]1 1 E[ ]
N N
7
k
F 1 1 Fm1 k
PN [ A k |Fm 1 ] k (1 )
i
m
m 1
N N
k
Pr[ Ami k ] e
k!
A(z) Pr[ A k] z k e( z 1)
k 0
8
B(z) z k Pr[B k ]
k 0
Pr[B 0] z Pr[B 1] ...
Pr[C 0] Pr[C 1] z Pr[C 2]...
(1 z 1 )Pr[C 0] z 1C (z)
1
max. throughput
9
Meaning of Saturation Throughput
0 = = throughput
Input Queue
1. Let 0.586 be the saturation throughput of the input-
*
10
How about small N?
11
Fictitious Queues
1/N
N 2 Output 2
HOL
1/N
Time spent in HOL Output N
are independent for
successive packets
when N is large
Service times at
different fictitious
queues are
independent
12
U(t)
X0 X1 X2 X3 X0 t
Idle
Y period Busy period
Busy period
Xi-1 Xi
Xi Xi+1
Ri
W
14
W
0
15
Simultaneous arrivals are randomly placed on a
unit line to determine the order of service
0 t 1
16
Queuing Analysis in Output-buffered Switch
o Switch with Speedup factor of N.
o Arriving packets reach the targeted
output ”immediately”.
= load 1
1
1
1
o Ami = # arriving packets at start of time slot m
Pr[ Ami k ] (Nk )( N )k (1 N )N k
N! e as N
k !(N k )!
k Poisson
e Distribution.
k! 17
Delay in Output-Buffered Switch
o C not necessarily 1
(z 1)A(z)(1 0 )
C (z )
z A(z)
02
C C '(1) 0
2(1 0 )
o Little’s’ Law D N
C 0
S 1
0 2(1 0 )
Average Delay
18
o What if FIFO constraint removed ?
Look-ahead scheme : look at first packets
at each queue.
1 2 3 4
* 0.59 0.70 0.76 0.80 1
cost
= overhead of one round of
contention ( )
*
1
Actual throughout =
19
Output queues are
To avoid packet loss needed because packets
at inputs, input may arrive too many at a
queues are needed if time for immediate
S<N transmission at outputs
Switch with
speedup
factor = S
Packet 2 Packet 1
2
21
Output address
(b)
Fig. 4.9. Methods for achieving speedup effect without
speeding up switch operation: (a) using multiple switches;
(b) using packet-slicing concept.
22
Channel Grouping
N R
R 1 2 3 4
* 0.59 0.89 0.98 1
3 1 1
1 2
2 3
2 4
24
0
Banyan
Network 0 Output
0
MUX
0
R-2
0
Batcher N-1
Network Banyan
Network
R-1 N-1
MUX
N-1
N-1
26
Relative output
R 00 …0
Truncated
Banyan
Inputs connected Network Relative output
to outputs b1 ...bR R bR+1 …bn
of all expanders b1b2…bR
Relative output
R 11 …1
(b)
Fig. 4.12. (a) The expansion banyan network; (b) Labeling of the
truncated banyan network and its output groups.
27
Rx1 switch working at R = 4
times the links rate
1
mux
R Output Queue
(a)
Rx1 switch working at same
speed as link rate
R 1
Shifting
mux
Concentrator
R
k 1
29
Knockout Principle
30
Loss Probability in Knockout Switch
N N N R
(1)
R i R i
i
i
(2) 1 e N
N
32
N N N R
Proof of
R i R
i
N N!
R i R i !N R i !
N!
N R !
R! i !
R!N R ! i !N R i ! R i !
N N R
R i N N R
R i R
i
R
33
i
i
Proof of 1 e N
N
1 2 1 3
e 1 x x x ...
x
2! 3!
i 2 3
i 1 i 1 i
e 1
N
......
N 2! N 3! N
2
i i 1
1 ......
N N i
1
i
N
i
1 e N
N
34
N
k N k
1 N
N
Ploss
k R 1
(k R) k 1
N
R i N R i
1
N RN
Ploss i 1 (by letting i = k - R )
i 1 R i N N
R N R i N R i
1 N N R
R N
i
i
1 by applying (1)
i 0 N N
R
1 N Mean value of binomial random
N R variable ρ/ N
R N N
R
N 1
N
R 35
N (N 1) N 2 N R
R R
N R! NR
1 1 2 3 R
R
1 1 1 1
R! N N N N
R R 1
R 1
e 2N By applying (2)
R!
R R 1
1 (independent of input loads)
e 2N
R!
1
Ploss (independent of ports)
R!
36
0 0 0 NxN 0
M
banyan UX
1 1 (1)
1
NxN
R ? Reverse- R banyan
M
UX
1
Batcher =
R+1
banyan (2)
Network ?
= Concentrator
NxN M N-1
banyan UX
N-1 ? (R)
=
Output
Address
Packet 1 a Let packet 2 go
? through if and only if
Packet 2 b =
ab
RAN
1
0
RAN
1
38
Central
Controller
Reverse banyan
Concentrator
Address (a)
assigned=Sum of all 0 0 0
activity bits above + + +
0 0
+ + +
Running Sum 0
Packet A + + +
0
Info a a + + +
+ Info b a+b
Info b b Packet B + + +
Packet B + + +
(b) + + +
+ + +
Fig. 4.16. (a) A central controller for computing the assignments of
packets to concentrator outputs; (b) a running-adder address generator
that computes the assignments in a parallel and distributed manner.
39
1
2
Input
N
1 2 N 1 2 N
Knockout
Concentrator
1 2 R
Shifter
Output
Output 1 Output N
Fig. 4.17. A knockout switch based on broadcast buses and
knockout concentrators.
40
Input
Packet filters
Knockout
element Delay element
Losing
packets
D D D D
D D
D D D
D D
D D D
1 2 3 4
Output
Number of switch elements =
(N-1)+(N-2)+ … (N-R) =
NR-R(R+1)/2 NR
41
Packet Packet Packet Inactive Inactive Packet
a b a b
42
Replication Principle
43
1 1st Banyan 1
Network
2 2
Kth Banyan
Network
N N
44
000 000
001 001
010 010
011 011
100 100
101 101
110 110
111 111
45
2 dxd
concentrator
2 dxd
concentrator
Complexity~ O(dlogd)
Fig. 4.21. An implementation of 2dx2d switch element with order of
complexity dlogd.
46
~END~