Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
18 views5 pages

Sravan CCN Lab Task 1

The document analyzes the performance of LANs interconnected by switches and hubs, highlighting the differences in throughput and delay. It demonstrates that switches significantly outperform hubs in terms of data handling efficiency, achieving higher throughput and lower delays across various inter-arrival times. The findings indicate that switches are more effective in LAN environments, enhancing speed and reducing network congestion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Sravan CCN Lab Task 1

The document analyzes the performance of LANs interconnected by switches and hubs, highlighting the differences in throughput and delay. It demonstrates that switches significantly outperform hubs in terms of data handling efficiency, achieving higher throughput and lower delays across various inter-arrival times. The findings indicate that switches are more effective in LAN environments, enhancing speed and reducing network congestion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Task 1
Performance Analyze of a set of LANs Interconnected by Switches and Hubs

Assessment Rubrics

Category Marks
Aim & Theory 5
Environment Creation &
20
Block Diagram
Results and Analysis
15
(Bar Chart etc.)
Inference 10
Total 50
Aim:

To create the given scenario and analyze the performance of a set of LANs
interconnected by switches and hubs with different inter-arrival time

Tools Required:

NetSim v9.1

Theory:

Hub:

A hub is a multiport network device that connects devices in a LAN. It broadcasts


data received at any port to all other ports except the incoming one. Hub create a
single collision domain, causing potential data collisions. They support star
topology at the physical level and bus topology at the logical level

Switch:

A switch is a network device that connects multiple devices like computers and
printers to form a LAN. It has multiple ports, each connecting to a device or
another switch. Switches forward frames by using source and destination MAC
addresses, ensuring efficient delivery. They identify the port linked to the source
address to direct the frame to the correct destination.

Prakasam P/BECE401P/Winter 2024-25 Page 1


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Block Diagram:

Formulae

Payload Received = Packet Received * Packet Size


𝑃𝑎𝑦𝑙𝑜𝑎𝑑 𝑅𝑒𝑐𝑒𝑖𝑣𝑒𝑑∗8
Throughput (Mbps) =
𝑆𝑖𝑚𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝑇𝑖𝑚𝑒

Case 1

(When Packet Size= 1460 bytes; Inter-arrival time= 20000 µs)

Hub (Complete Table)


Source Destination Packet Packet Payload Payload Throughput Delay
Id Id Transmitted Received Transmitted Received (Mbps) (microsec)
2 3 499 40 728540 5840 0.04672 111004
4 5 499 145 728540 211700 0.16936 401000.8
6 7 499 489 728540 713490 0.571152 1553194
8 9 499 1 728540 1460 0.001168 1208.8
10 11 499 3 728540 4380 0.003504 10186.4
12 13 499 11 728540 16060 0.012848 43670.4
Average 0.134125 353377.4

Prakasam P/BECE401P/Winter 2024-25 Page 2


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Switch (Complete Table)


Source Destination Packet Packet Payload Payload Throughput(Mbps) Delay(microsec)
Id Id Transmitted Received Transmitted Received
2 3 499 499 728540 728540 0.582832 277.951262
4 5 499 499 728540 728540 0.582832 457147.9097
6 7 499 499 728540 728540 0.582832 298.043407
8 9 499 499 728540 728540 0.582832 278.01479
10 11 499 499 728540 728540 0.582832 318.112425
12 13 499 499 728540 728540 0.582832 278.041723
Average 0.582832 76433.01

Case 2

(When Packet Size= 1460 bytes; Inter-arrival time= 10000 µs)

Hub (Complete Table)

Source Destination Packet Packet Payload Payload Throughput Delay


Id Id Transmitted Received Transmitted Received (Mbps) (microsec)
2 3 999 0 1458540 0 0 0
4 5 999 0 1458540 0 0 0
6 7 999 690 1458540 1007400 0.805920 1546775.2

8 9 999 0 1458540 0 0 0
10 11 999 0 1458540 0 0 0
12 13 999 0 1458540 0 0 0
Average 0.13432 257795.9
Switch (Complete Table)
Source Destination Packet Packet Payload Payload Throughput(Mbps) Delay(microsec)
Id Id Transmitted Received Transmitted Received
2 3 999 999 1458540 1458540 1.166832 298.378218
4 5 999 999 1458540 1458540 1.166832 459049.0259
6 7 999 999 1458540 1458540 1.166832 298.403223
8 9 999 999 1458540 1458540 1.166832 329.178959
10 11 999 999 1458540 1458540 1.166832 277.904004
12 13 999 999 1458540 1458540 1.166832 298.423403
Average 1.166832 76758.55

Prakasam P/BECE401P/Winter 2024-25 Page 3


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Comparison between Hub and Switch

Inter arrival Time Total Throughput


Device(s) Delay (microsec)
(µs) (Mbps)
20000 0.134125 353377.4
Hub 0.13432 257795.9
10000
20000 0.582832 76433.01
Switch 1.166832 76758.55
10000

Bar Chart

Throughput

Throughput

Switch at 10000

Switch at 20000

Hub at 10000

Hub at 20000

0 0.2 0.4 0.6 0.8 1 1.2

Delay

Delay

Switch at 10000

Switch at 20000

Hub at 10000

Hub at 20000

0 50000 100000 150000 200000 250000 300000 350000 400000

Prakasam P/BECE401P/Winter 2024-25 Page 4


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Inference:

The investigation draws attention to the variations in LAN setup performance


between hubs and switches. Hubs broadcast data to every device, which causes a
lot of delays, low throughput, and high collision rates. On the other hand, switches
effectively forward data according to MAC addresses, resulting in reduced latency
and increased throughput. Switches continuously outperformed hubs in tests
conducted at inter-arrival durations of 20000 µs and 10000 µs, attaining an average
throughput of 0.582832 Mbps and 1.166832 Mbps, as opposed to 0.134125 Mbps
and 0.13432 Mbps for hubs. In a same vein, switches have a far shorter delay than
hubs. As a result, switches work better in LAN settings to improve speed and
lessen network traffic.

Prakasam P/BECE401P/Winter 2024-25 Page 5

You might also like