InterviewSolution

Java programming basic and advance interview question answer. Java coding example. Banking, Financial, Computer related and Software related abbreviation. Computer storage devices. PC to PC files transfer using WiFi. Introduction to Network Topology. Difference Between Hub Switch and Router. Difference Between Wired and Wireless Network. Advantages and Disadvantages of Computer Network. Networking Interview Questions for Experienced. Basic Networking Interview Questions.

Thursday, November 22, 2018

Difference Between Hub Switch And Router In Tabular Form

What Is The Difference Between Hub, Switch And Router:-

HUB,SWITCH,ROUTER






Hello everyone, today we are going to discuss about the difference between a Hub, Switch and Router

This Three devices are very similar that's why some time it is very difficult to understand which device should we use?  So let's discuss,What is Hub, Switch and Router and there difference.

1. HUB

Hub is a simple and cheap networking broadcast device that works under physical layer of OSI model. Hub is a device which helps to connect all of your network devices together. Hub has multiple ports that also accept Ethernet connection. Hub is not an intelligent device because it does not filter any data. That's why this is not possible to send data from one computer to particular another computer. This network is similar to WhatsApp group because we saw that we cannot send any personal information to the WhatsApp group, if we want to send a personal message to the WhatsApp group, so there everyone can see this message.

Networking
So just for example, if Pc-1 computer only wants to communicate with Pc-4 computer, these (Pc-2 and Pc-4) other computers would still receive the data, which data is not needed for them. This happens not only creates a security concerns but it also creates unnecessary traffic on the network which waist bandwidth.



2.Switch

Switch is a multicast networking device, which works under data-link layer of OSI model that connects bunch of computers or devices in a network. Switch has multiple ports and it also accepts Ethernet connections from network devices. switch is very intelligent, it’s not like a hub because a switch can actually learn the physical addresses of the devices. That’s why you can send data privately from one computer another computer.
             So just for example, if Pc-1 computer wants to communicate with Pc-4 computer. Here at first the data packet arrives at the switch and then the switch will look at its table of mac addresses and matching ports and deliver the data to the correct port and then the data packet would only go to that computer. That means another computer can't read that data, so here data security is better.
             So, the major difference between hub and switch is. Switch can reduce any unnecessary traffic on the network but which is not possible for hub.

3.Router

Router is a networking device which works under network layer of OSI model and it’s used to connect two or more different networks. A router that routes or forwards data from one network to another based on their IP address. When a data packet is received from the router, the router inspects the data’s IP address and determines if the packet was meant for its own network for if it's meant for another network. If the route it determines that the data packet is meant for its own network it receives it. but if it's not meant for its own network it sends to another network.
                 Now the question is how the Router is differ from Switch and Hub?
Hub and Switch are networking device which is used to connect PC or any devices on the same network. But router is a device, which is used to connect two or more different network.

At the end, we will discuss what is the difference between Hub, Switch and Router in tabular form?


No.
Parameter
HUB
SWITCH
ROUTER
1.
Layer
It’s works in physical layer of OSI model.
It’s works in data link layer of OSI model.
It’s works in network layer of OSI model.
2.
Device
It is a broadcast device
It is a multicast device
It is a routing device which is used to create route for transmitting data packets.
3.
Use
It is used to connect devices in the same network
It is also used to connect devices in the same network.
But Router is little bit different because It is used to connect two or more different network.
4.
Data Send
It sends data in the form of packets
It also sends data in the form of frames.
Router sends data like Hub (as a packet form)
5.
Works
Hub only works in half-duplex
Switch works in full-duplex
Router works in full-duplex
6.
Data Send Priority
Here only one device can send data at a time
Here multiple device can send data at a time
Here multiple device can send data at a time
7.
Mac or IP address
Hub does not store any Mac or IP address to transfer data.
But switch stores Mac address of a device and switch also uses this Mac address to transfer data.
Router uses IP address means Internet Protocol addresses to transfer data.





No comments:

Post a Comment