Sie sind auf Seite 1von 15

CSE 307

Homework -2 Hubs and Switching


Taught by Mr. Supratik Banerjee.
Date-27-jan-2012

Submitted by
Himanshu Khurana 11100919

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)

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.

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)

TASK
Assign IP address to two different END DEVICES (PC) and simulate the transfer of packets between the both via 1. A HUB and 2. 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 get 116.18.65.2(Random) Let PC1 get 116.18.65.1(Random)

Assigning IP address to PC0

Assigning IP address to PC1

Green dots represent successful port allocation. Connect the PCs via a HUB from this array.

Change the tab from real time to simulation.

Edit the filters by clicking on Edit Filters tab and select only ICMP because this filter is needed most prominently for now.

Now send a packet of message in order to confirm that the connection is properly done.

Successful message sent .

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.

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.

Progress of message can be simulated by Auto Capture Tab.

Successful completion of task

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

Das könnte Ihnen auch gefallen