Computer Networks Lab Assignment
Computer Networks Lab Assignment
AIM: To create a network in CISCO PACKET TRACKER to study the working of a HUB and a SWITCH
THEORY: Hubs are simple devices with an input Ethernet port that connects to a router and multiple
output ports for devices to connect to. When it receives data, it transmits it to all connected devices,
leaving the intended device to recognize the data.
A network switch is a hardware connection device that is smarter than a hub. Once a switch knows the
routes and ports, it reads data packet headers to determine which device it is supposed to transmit
information to via its unique MAC address.
NETWORK DESIGN:
DEVICES USED: Hub, PCs, Switch, Copper Straight-through cable, Copper crossover cable
HUB NETWORK:
SETTINGS:
C:\>ping 192.168.10.1
C:\>
SIMULATION: A document is initiated by PC1 addressed to PC4. This document is sent to the hub which
in turn transmits this data to every other PC in the network. PC4 accepts the document while others
reject it. This acknowledgement is sent to the hub addressed to PC1 which again transmits it to every
other PC in the network. PC1 accepts this acknowledgement while the others reject it.
2
Harsh Singh Negi, MCA 1 (Section b)
3
Harsh Singh Negi, MCA 1 (Section b)
4
Harsh Singh Negi, MCA 1 (Section b)
SWITCH NETWORK:
SETTINGS:
C:\>ping 192.168.10.1
C:\>
5
Harsh Singh Negi, MCA 1 (Section b)
SIMULATION: A document is initiated by PC1 addressed to PC4. This document is sent to the switch
which in turn transmits this data to PC4 in the network. PC4 accepts the document and sends an
acknowledgement to the switch addressed to PC1 which again transmits it PC1 in the network. PC1
accepts this acknowledgement.
6
Harsh Singh Negi, MCA 1 (Section b)
7
Harsh Singh Negi, MCA 1 (Section b)
Switch Hub
Switches function on layer 2 of the OSI framework. Hubs function on layer 1 of the OSI framework.
Switches record MAC addresses in a table to learn Hubs are less intelligent devices and always send
which devices to transmit information to. all information to all connected devices
Switches can operate at full duplex or half duplex, Hubs operate at half duplex, making them slower
using all available bandwidth, creating faster and and forcing devices to share bandwidth equally.
more efficient networks.
Switches send information using data packets. Hubs send information using bits.