Sheet 2 Switching
Sheet 2 Switching
I. Switching
Switching Techniques:
1) Circuit Switching
2) Message Switching
3) Packet Switching
• Datagram
• Virtual Circuit
1) Processing Delay
2) Queueing Delay
3) Transmission Delay
𝑳
𝑻𝒕𝒓 =
𝑹
4) Propagation Delay
𝑫
𝑻𝒑𝒓𝒐𝒑 =
𝑺
5) Acknowledgement Delay
1|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
3) Datagram (Pipelining)
𝑝+ℎ
𝑇𝑡𝑟|1𝑠𝑡 = . (𝑁 + 1)
𝐶
𝐿 + 𝐻 − (𝑝 + ℎ) 𝐿
𝑇𝑡𝑟|𝑟𝑒𝑠𝑡 = , 𝑤ℎ𝑒𝑟𝑒 𝐻 = .ℎ
𝐶 𝑝
𝐷
𝑇𝑝𝑟𝑜𝑝 = . (𝑁 + 1)
𝑆
𝑇𝑝𝑟𝑜𝑐 + 𝑇𝑞𝑢𝑒 = (𝑇𝑝𝑟𝑜𝑐|𝑛𝑜𝑑𝑒 + 𝑇𝑞𝑢𝑒|𝑛𝑜𝑑𝑒 ). (𝑁 + 1)
2|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
Sheet 2
1) A message with length 4500 bits is transferred over a communication network with 100
km link length, and three intermediate nodes. The data rate on all links is 20 kbps, with
speed 250 m / µ sec, and packet size 128 bits, with 52 bits overhead. The set-up time is
0.25 sec., while the processing time and the average queuing delay at each node are
0.25, 0.35 sec. respectively. Compare between the end-to-end delay time for; circuit, and
datagram switching techniques.
Solution 1
𝐿 = 4500 𝑏𝑖𝑡𝑠 𝑝 = 128 𝑏𝑖𝑡𝑠
𝐷 = 100 𝑘𝑚 ℎ = 52 𝑏𝑖𝑡𝑠
𝑁 = 3 𝑇𝑠𝑒𝑡𝑢𝑝 = 0.25 𝑠𝑒𝑐
𝐶 = 20 𝑘𝑏𝑝𝑠 𝑇𝑝𝑟𝑜𝑐|𝑛𝑜𝑑𝑒 = 0.25 𝑠𝑒𝑐
𝑆 = 250 𝑚/𝜇 𝑠𝑒𝑐 = 250 x 103 𝑘𝑚/𝑠𝑒𝑐 𝑇𝑞𝑢𝑒|𝑛𝑜𝑑𝑒 = 0.35 𝑠𝑒𝑐
a) Circuit Switching
b) Datagram (Pipelining)
𝑝+ℎ 128 + 52
𝑇𝑡𝑟|1𝑠𝑡 = . (𝑁 + 1) = . 4 = 0.036 𝑠𝑒𝑐
𝐶 20 x 103
𝐿 4500
𝐻= .ℎ = . 52 ≈ 1872 𝑏𝑖𝑡
𝑝 128
3|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
2) It is required to transfer a message with size 8000 bytes from a source to destination
with two nodes between them. The data rate for all links is 56 kbps. The packet size is
200 bits, and the overhead address is 60 bits. The call set-up time is 0.1 sec. The
processing time at each node is 0.15 sec., while the average queueing delay at each
node is 0.2 sec, and the data speed over a link is 200 m/µ sec. and the hop distance is
50 km. Calculate the end-to-end delay time and throughput for the following cases:
a) Circuit Switching network.
b) Message Switching network.
c) Virtual circuit packet switching network with delivery guaranteed using a mini
packet of 70 bits.
d) datagram packet switching network without delivery guaranteed.
Solution 2
𝐿 = 8000 𝑏𝑦𝑡𝑒 = 64000 𝑏𝑖𝑡𝑠 𝑇𝑠𝑒𝑡𝑢𝑝 = 0.1 𝑠𝑒𝑐
𝑁 = 2 𝑇𝑝𝑟𝑜𝑐|𝑛𝑜𝑑𝑒 = 0.15 𝑠𝑒𝑐
𝐶 = 56 𝑥 103 𝑏𝑝𝑠 𝑇𝑞𝑢𝑒|𝑛𝑜𝑑𝑒 = 0.2 𝑠𝑒𝑐
𝑝 = 200 𝑏𝑖𝑡𝑠 𝑆 = 200 𝑚/𝜇 𝑠𝑒𝑐 = 200 𝑥 103 𝑘𝑚/𝑠𝑒𝑐
ℎ = 60 𝑏𝑖𝑡𝑠 𝐷 = 50 𝑘𝑚
a) Circuit Switching
b) Message Switching
4|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
𝐷 𝐿
𝑇𝑝𝑟𝑜𝑝 = . (𝑁 + 1). = 7.5 x 10−4 𝑥 320 = 0.24 𝑠𝑒𝑐
𝑆 𝑝
𝐿 70 50
𝑇𝐴𝑐𝑘 = (𝑇𝑡𝑟 + 𝑇𝑝𝑟𝑜𝑝 )|𝑚𝑖𝑛 . (𝑁 + 1). =( 3
+ ) 𝑥 3 𝑥 320 = 1.44 𝑠𝑒𝑐
𝑃 56𝑥10 200𝑥103
156
𝑇𝐷|𝑉𝐶 = 0.1 + + 0.24 + (0.15 + 0.2) . 3 + 1.44 = 7.287 𝑠𝑒𝑐
35
𝐿 64000
Throughput = = ≈ 8.78 𝑘𝑏𝑝𝑠
𝑇𝐷|𝑉𝐶 7.287
d) Datagram (Pipelining)
𝑝+ℎ 200 + 60 39
𝑇𝑡𝑟|1𝑠𝑡 = . (𝑁 + 1) = . 3 = 𝑠𝑒𝑐
𝐶 56 x 103 2800
𝐿 64000
𝐻= .ℎ = . 60 = 19200 𝑏𝑖𝑡
𝑝 200
39
𝑇𝐷|𝐷𝐺 = + 1.481 + 7.5 x 10−4 + (0.15 + 0.2) . 3 = 2.54575 𝑠𝑒𝑐
2800
𝐿 64000
Throughput = = = 25.14 𝑘𝑏𝑝𝑠
𝑇𝐷|𝐷𝐺 2.545
5|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
3) Consider transferring a file of 2 M bits from a source to a destination with three nodes
between them. The data rate of all inks is 9600 bps. The packet size is 48 bytes, and the
overhead address is 5 bytes. The call set up time is 0.02 sec. The processing time at
each node is 0.006 sec while the average queuing delay is 0.03 sec. The propagation
speed on the link is 200m /µsec, while the hop distance is 30 km. Calculate the end-to-
end delay and throughput for the following cases:
a) Circuit Switching
b) Message Switching
6|Pa ge
Menoufia University – Faculty of Electronic Engineering
Network Planning Module - 2024
𝐷 𝐿
𝑇𝑝𝑟𝑜𝑝 = . (𝑁 + 1). = 6 x 10−4 . 5209 = 3.125 𝑠𝑒𝑐
𝑆 𝑃
𝐿 60 30
𝑇𝐴𝑐𝑘 = (𝑇𝑡𝑟 + 𝑇𝑝𝑟𝑜𝑝 )|𝑚𝑖𝑛 . (𝑁 + 1). =( + ) . 4 . 5209 = 133.35 𝑠𝑒𝑐
𝑃 9600 200𝑥103
𝐿 2 x 106
Throughput = = ≈ 1.892 𝑘𝑏𝑝𝑠
𝑇𝐷|𝑉𝐶 1056.9
7|Pa ge