0% found this document useful (0 votes)
787 views9 pages

Computer Networks Lab: Lab No. 2 Introduction To Hub, Switch and Router

This document describes a computer networks lab assignment on introducing hubs, switches, and routers. The objective is to understand the differences between these devices. It discusses how hubs broadcast all traffic to all ports, while switches can learn port addresses and only send traffic to the relevant port, making the network faster. It also provides steps to set up network connections between PCs using a hub and switch in Packet Tracer software. The lab tasks involve connecting PCs to a hub and switch, assigning IP addresses, and testing message transmission between them.

Uploaded by

Akira Mannahel
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)
787 views9 pages

Computer Networks Lab: Lab No. 2 Introduction To Hub, Switch and Router

This document describes a computer networks lab assignment on introducing hubs, switches, and routers. The objective is to understand the differences between these devices. It discusses how hubs broadcast all traffic to all ports, while switches can learn port addresses and only send traffic to the relevant port, making the network faster. It also provides steps to set up network connections between PCs using a hub and switch in Packet Tracer software. The lab tasks involve connecting PCs to a hub and switch, assigning IP addresses, and testing message transmission between them.

Uploaded by

Akira Mannahel
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/ 9

Computer Networks Lab

Lab No. 2

INTRODUCTION TO HUB, SWITCH AND ROUTER

Mannahel Iftikhar (170860)

BACHELOR OF ELECTRICAL ENGINEERING


(Spring 2021)

Submitted To:
Engr. Sharoze Sohail
Lab Engineer

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING


FACULTY OF ENGINEERING
AIR UNIVERSITY,ISLAMABAD
Lab#02
INTRODUCTION TO HUB, SWITCH AND ROUTER
OBJECTIVE:
To understand the difference between Hub, Switch and

DISCUSSION:
Following are the resources required for this experiment

• Computer

• Packet Tracer

Introduction to Hubs and Switches:


1. Hubs, switches, and routers are all devices which let you connect one or more
computers to other computers, networked devices, or to other networks.
2. Each has two or more connectors called ports into which you plug in the cables to make
the connection.
3. Varying degrees of magic happen inside the device, and therein lies the
difference.

Hub:
1. A hub is typically the least expensive, least intelligent, and least
complicated.
2. Anything that comes in one port is sent out to the others.
3. Every computer connected to the hub "sees" everything that
every other computer on the hub sees.
4. The hub itself is ignorant of the data being transmitted.

Switch:
1. A switch does essentially what a hub does but more efficiently. By
paying attention to the traffic that comes across it, it can learn
where particular addresses are. For example, if it sees traffic from
machine A coming in on port 2, it now knows that machine A is
connected to that port and that traffic to machine A needs to only
be sent to that port and not any of the others.
2. The net result of using a switch over a hub is that most of the network traffic only goes
where it needs to rather than to every port. On busy networks this can make the network
significantly faster.

Types of Switches :
1. Switch-2950-24: It is a standalone, fixed-configuration, managed 10/100
switch providing user connectivity for small- to mid-sized networks. It
does not support add-in module.
2. Switch-2950T-24: It is a fixed-configuration, standalone switch that
provides wire-speed Fast Ethernet and Gigabit Ethernet connectivity for
mid-sized networks. It does not support add-in modules.
3. Switch-2960-24TT: It is a fixed-configuration, standalone switch that
provides Wire speed Fast Ethernet and Gigabit Ethernet connectivity for
mid-sized networks. It does not support add-in modules.

4. Switch-Switch –PT: The Switch-PT generic switch provides ten slots,


one console port, and one auxiliary port.
5. Switch-3560-24PS: It is a fixed-configuration, standalone switch that
provides wire speed Fast Ethernet and Gigabit Ethernet connectivity
for mid-sized networks. It does not support add-in modules.

Steps to use the Packet Tracer software:


1. Go to bottom left corner of the screen there is an icon named end devices, click on that.

2. Numerous devices will appear and select PC from the devices and place it on the screen.

3. Again select another PC and place it on the screen.

4. As we have more than two PCs we can not connect them directly we need a hub or a
switch for that.

5. So, to place hub go to bottom left and select hub and place it on the screen.

6. And to place switch go to bottom left and select switch and place it on the screen.

7. Now to make a connection we need wire so go to bottom left and there is a icon named
connection type, click on that and select automatic.

8. Note that the connection hub and switch is made by copper cross-over while the wire that
connects hub and PCs and switch and PCs is copper straight-through.
9. Now using the automatic wire connect those PCs and click on the PC to enter IP address.

10. Enter 192.168.10.1 for PC1 and vice versa.

11. Send a message from one PC to another to see if the network that we established was
successful or not.
LAB TASKS
Task#01(a) Connect Computers to the Hub
1. Connection to PC7 to PC9 through a cable

2. IP addresses of the three PC’s

3. Sucessful transmission and recption of message


(b) Connect Computers to the Switch
1. Connection to PC7 to PC9 through a cable

2. IP addresses of the three PC’s

3. Sucessful transmission and recption of message


Task#02 Connect the switch and Hub and write discussion about Hub and
Switch Function.

Simulation of the connection


Screenshot of the connection is shown in the picture below.

1. Connection to PC1 to PC6 through a cable

2. Assigned IP addresses of the six PC’s


3. Sucessful transmission and recption of message
Learning Outcomes

The lab achieved the following learning outcomes:

1. we can connect two computers directly but if we want to connect three or more PCs we
need hubs or switches.
2. We also learnt that hub broadcasts a message while switch sends message only to the
PC we want.

You might also like