Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LAB - ASSESSMENT = 01
# Theory:-
1. Hub :- A hub is the most basic networking device that connects
multiple computers or other network devices together. A network
hub has no routing tables or intelligence on where to send
information and broadcasts all network data across each
connection. Most hubs can detect basic network errors such as
collisions, but having all information broadcast to multiple ports
can be a security risk and cause bottlenecks. Hub is operated on
Physical layer. In this packet filtering is not available.
𝑷𝒂𝒚𝒍𝒐𝒂𝒅 𝑹𝒆𝒄𝒆𝒊𝒗𝒆𝒅 ∗ 𝟖
Throughput (Mbps) =
𝑺𝒊𝒎𝒖𝒍𝒂𝒕𝒊𝒐𝒏 𝑻𝒊𝒎𝒆 ∗ 𝟏𝟎𝟔
# Block Diagram:-
Payload
Application Application Source Destination Packet Packet Payload Throughput Delay
# Network-Statistics :-
Simulation Time (ms) = 10000.00
Packets Errored = 6
Packets Errored = 7
Packets Collided = 0
Packets Errored = 8
Payload
Application Application Source Destination Packet Packet Payload Throughput Delay
# Network-Statistics :-
Simulation Time (ms) = 10000.00
Packets Errored = 50
Packets Collided = 0
Throughput (Mbps)
4.999 4.9984
Throughput (Mbps)
4.998
4.997
4.996
4.995
4.994
4.9928
4.993
4.992
4.991
4.99
Hub Switch
2. Case-2 :- (16-User Hub Vs 16-User Switch)
Throughput (Mbps)
25
Throughput (Mbps)
19.9936
20
15
10 8.008
0
Hub Switch
Throughput (Mbps)
9
Throughput (Mbps)
8.008
8
7
6
4.9928
5
4
3
2
1
0
Hub Hub
4. Case-4 :- (4-User Switch Vs 16-User Switch)
Throughput (Mbps)
25
Throughput (Mbps)
19.9936
20
15
10
4.9984
5
0
Switch Switch
Delay (Microsecs)
6000 5565.443
Delay (Microsecs)
5000
4000
3000
2000
1000
448.3807
0
Hub Switch
2. Case-2 :- (16-User Hub Vs 16-User Switch)
Delay (Microsecs)
25000000 23279936
Delay (Microsecs)
20000000
15000000
10000000
5000000
468971.6
0
Hub Switch
Delay (Microsecs)
25000000 23279936
Delay (Microsecs)
20000000
15000000
10000000
5000000
5565.443
0
Hub Hub
4. Case-4 :- (4-User Switch Vs 16-User Switch)
Delay (Microsecs)
500000 468971.6
450000
Delay (Microsecs)
400000
350000
300000
250000
200000
150000
100000
50000
448.3807
0
Switch Switch
Packets Collided
7000
6062
Packets Collided
6000
5000
4000
3000
2000
1000
0
0
Hub Switch
2. Case-2 :- (16-User Hub Vs 16-User Switch)
Packets Collided
4000
3551
3500
Packets Collided
3000
2500
2000
1500
1000
500
0
0
Hub Switch
Packets Collided
7000
6062
Packets Collided
6000
5000
4000 3551
3000
2000
1000
0
Hub Hub
4. Case-4 :- (4-User Switch Vs 16-User Switch)
Packets Collided
1
0.9
Packets Collided
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0 0
0
Switch Switch
# Inference:- From the above bar graphs, it can be inferred that there is
high Throughput in case of a LAN interconnected via a Switch
whereas very low throughput in case of a Hub. Also, there is high Delay
in the arrival of packets in case of Hub whereas very minimum Delay in
case of Switch. In case of Switch no packet gets collided while in Hub
many packets get collided. So, we conclude that Switch is an
intelligent device with high throughput, less delay and no packet
collisions occur while a Hub is an unintelligent device.
# Conclusion:- Hence, the network model for all the 4 scenarios have
been designed and simulated in the software and the performance
analysis has been done for a set of LANs Interconnected by Switches
and Hubs and the corresponding Throughput and Delay have been
analyzed.
Experiment – 01 (B)
Performance Analysis of Various Voice Codecs in
Interconnected networks.
# Manual-Calculations : -
Base Band frequency (fm) = 4 khz
Bit Rate (R) = n x fs and n = 8 bits
Since, fs = 2 x fm = 8 khz
Bit Rate (R) = 8 x 8KHz = 64 kbps
Inter-arrival Time (X) = Packet Length (L) / Bit Rate (R)
= 160 bytes / 64 kbps
= (160 x 8) / 64 kbps
= 20 ms
Packet Size (L) = (Data Rate (R) x Inter-arrival Time (X)) / 8
= (64 kbps x 20 ms) / 8
= 160 bytes
𝑷𝒂𝒚𝒍𝒐𝒂𝒅 𝑹𝒆𝒄𝒆𝒊𝒗𝒆𝒅 ∗ 𝟖
Throughput (Mbps) =
𝑺𝒊𝒎𝒖𝒍𝒂𝒕𝒊𝒐𝒏 𝑻𝒊𝒎𝒆 ∗ 𝟏𝟎𝟔
= 0.063872 Mbps
Hence, Throughput = 63.872 kbps
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
# Network-Statistics :-
Simulation Time (ms) = 10000.00
Packets Errored = 1
Packets Collided = 0
# Manual-Calculations : -
Base Band frequency (fm) = 400 Hz = 0.4 khz
Bit Rate (R) = n x fs and n = 8 bits
Since, fs = 2 x 400 = 800 Hz
Bit Rate (R) = 8 x 800 Hz = 6400 b/s = 6.4 kbps
Inter-arrival Time (X) = Packet Length (L) / Bit Rate (R)
= 24 bytes / 6.4 kbps
= (24 x 8) / 6.4 kbps
= 30 ms
Packet Size (L) = (Data Rate (R) x Inter-arrival Time (X)) / 8
= (6.4 kbps x 30 ms) / 8
= 24 bytes
Payload Received = (Packet Received x Packet Size)
= 333 x 24
= 7992
𝑷𝒂𝒚𝒍𝒐𝒂𝒅 𝑹𝒆𝒄𝒆𝒊𝒗𝒆𝒅 ∗ 𝟖
Throughput (Mbps) =
𝑺𝒊𝒎𝒖𝒍𝒂𝒕𝒊𝒐𝒏 𝑻𝒊𝒎𝒆 ∗ 𝟏𝟎𝟔
= 0.0063936 Mbps
Hence, Throughput = 6.3936 kbps ≈ 6.4 kbps
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
Packets Errored = 1
Packets Collided = 0
# Manual-Calculations : -
Base Band frequency (fm) = 500 Hz = 0.5 khz
Bit Rate (R) = n x fs and n = 8 bits
Since, fs = 2 x 500 = 1000 Hz
Bit Rate (R) = 8 x 1000 Hz = 8000 b/s = 8 kbps
Inter-arrival Time (X) = Packet Length (L) / Bit Rate (R)
= 20 bytes / 8 kbps
= (20 x 8) / 8 kbps
= 20 ms
Packet Size (L) = (Data Rate (R) x Inter-arrival Time (X)) / 8
= (8 kbps x 20 ms) / 8
= 20 bytes
𝑷𝒂𝒚𝒍𝒐𝒂𝒅 𝑹𝒆𝒄𝒆𝒊𝒗𝒆𝒅 ∗ 𝟖
Throughput (Mbps) =
𝑺𝒊𝒎𝒖𝒍𝒂𝒕𝒊𝒐𝒏 𝑻𝒊𝒎𝒆 ∗ 𝟏𝟎𝟔
= 0.007984 Mbps
Hence, Throughput = 7.984 kbps ≈ 8 kbps
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
Packets Errored = 1
Packets Collided = 0
# Manual-Calculations : -
Case 1: Data-Rate = 200 kbps
Assume, Inter-arrival Time (X) = 20 ms
Packet Size = (Data Rate x Inter-arrival Time) / 8
= (200 kbps x 20 ms) / 8 = 500 bytes
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
249500
Case 2: Data-Rate = 60 kbps
Assume, Inter-arrival Time (X) = 20 ms
Packet Size = (Data Rate x Inter-arrival Time) / 8
= (60 kbps x 20 ms) / 8 = 150 bytes
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
249500
# Application-Metrics :-
Application Application Source Destination Packet Packet Payload Payload Throughput Delay
249500
# Comparison Table of Various Voice Codecs:
CUSTOM
Parameters G.711 G.723 G.729 CUSTOM-1 CUSTOM-2 CUSTOM-3
Data Rate 64 kbps 6.4 kbps 8 kbps 200 kbps 60 kbps 100 kbps
Transmission
Time 20 ms 30 ms 20 ms 20 ms 20 ms 10 ms
Packet Size 160 bytes 24 bytes 20 bytes 500 bytes 150 bytes 125 bytes
Payload 79840 7992 9980 249500 74850 124875
Throughput 63.872 kbps 6.3936 kbps 7.984 kbps 199.6 kbps 59.8 kbps 99.9 kbps
Throughput (kbps)
250
Throughput (kbps)
199.6
200
150
99.9
100
63.872 59.8
50
6.3936 7.984
0
G.711 G.723 G.729 CUSTOM-1 CUSTOM-2 CUSTOM-3
# Bar – Chart (Delay):-
Delay (Microsecs)
160
Delay (Microsecs) 134.4022
140
120
100
76.9 74.9
80 71.9
60 49.7 48.9
40
20
0
G.711 G.723 G.729 CUSTOM-1 CUSTOM-2 CUSTOM-3
# Conclusion:- Hence, the network model for all the 6 scenarios have
been simulated in the software and the performance analysis has been
done for the various voice codecs in Interconnected networks and the
corresponding Throughput and Delay have been analyzed.