7/29/2019 Hubs and Switches
1/15
CSE 307
Homework -2
Hubs and Switching
Taught by Mr. Supratik Banerjee. Submitted by
Date-27-jan-2012 Himanshu Khurana
11100919
7/29/2019 Hubs and Switches
2/15
Hub:-
A hub is used in a wired network to connect Ethernet cables from a number
of devices together. The hub allows each device to talk to the others. Hubs aren't
used in networks with only wireless connections, since network devices such as
routers and adapters communicate directly with one another.
Advantages:-
Really cheap
Disadvantages:-
It broadcasts the message to every PC in the network so it is not an intelligent
connection. It allows all machines to send packets to every machine connected
and wait for the required machine to reply. This causes delays as all the ports are
used for every transmission.
Switch :-
A multiport Bridge, functioning at the Data Link Layer
Each port of the bridge decides whether to forward data packets to the
attached network
Keeps track of the Mac addresses of all attached devices (just like a bridge)
7/29/2019 Hubs and Switches
3/15
Similarly priced to Hubs making them popular
Acts like a Hub, but filters like a Bridge
ADVANTAGES
- Limits the collision domain, can provide bridging, can be configured to
limit broadcast domain.
DISADVANTAGE
- More expensive than a hub or bridge, configuration of additional
functions can be very complex
CISCO 2950-24 Switch.
7/29/2019 Hubs and Switches
4/15
CISCO Packet tracer Simulation
(This Section is assigned for all the simulation work regarding the homework)
Basic interface of a CISCO simulator screen.
The white space is allotted for simulation of network(s)
7/29/2019 Hubs and Switches
5/15
TASK
Assign IP address to two different END DEVICES (PC) and simulate the
transfer of packets between the both via
1.A HUB and2. A Switch
Solution:-
Choose two Generic PCs from End devices.
After setting up two PCs on the simulator.
We have to assign two IP addresses
It can be anonymous keeping in mind the rules of IP addressing which is both the
PC(s) should fall under same class i.e. the first three classes of IP address should
be same for both PC in our case its 116. 18.65
Let PC0 get116.18.65.2(Random)
Let PC1 get116.18.65.1(Random)
7/29/2019 Hubs and Switches
6/15
Assigning IP address to PC0
7/29/2019 Hubs and Switches
7/15
Assigning IP address to PC1
Green dots represent successful port allocation.
Connect the PCs via a HUB from this array.
7/29/2019 Hubs and Switches
8/15
Change the tab from real time to simulation.
7/29/2019 Hubs and Switches
9/15
Edit the filters by clicking on Edit Filters tab and select only ICMP
because this filter is needed most prominently for now.
7/29/2019 Hubs and Switches
10/15
Now send a packet of message in order to confirm that the connection
is properly done.
7/29/2019 Hubs and Switches
11/15
Successful message sent .
7/29/2019 Hubs and Switches
12/15
But when we try to send message both ways at the same time then
there is a congestion/burn.
Simulation:-
Message failed.
To overcome this problem we use switch.
7/29/2019 Hubs and Switches
13/15
Green dots represent successful port allocation.
Here two PCs are connected via a Switch from this array.
The simulation of two PCs connected via switch.
7/29/2019 Hubs and Switches
14/15
Progress of message can be simulated by Auto Capture Tab.
Successful completion of task
7/29/2019 Hubs and Switches
15/15
we can also exchange messages from both sides rather than
consecutively like this:-
Working of Hub explained
Working of switch explained.
Difference between switch and hub explained.
Successful receipt of messages on both sides.
____________________________________________________________
____________________________________________________________
END
Submitted by - Himanshu Khurana
Top Related