Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Difference between Hub, Switch and Router

  • Difficulty Level : Easy
  • Last Updated : 17 Mar, 2022

1. Hub :

A Hub is just a connector and connects the wires coming form different sides. There is no signal processing or regeneration. It is an electronic device that operates on only physical layers of the OSI model.

2. Switch :

Switch is a point to point communication device. It operators at the data link layer of OSI model. It uses switching table to find out the correct destination.

3. Router :

Routers are the multiport devices and more sophisticated as compared to repeaters and bridges. It contains a routing table that enables it to make decision about the route i.e. to determine which of several possible paths between the source and destination is the best for a particular transmission.

Difference between Hub, Switch and Router :

Sr. No

Hub

Switch

Router

1.Hub is a physical layer device i.e. layer 1. Switch is a data link layer device i.e. layer 2. Router is a network layer device i.e. layer 3.  
2.A Hub works on the basis of broadcasting.Switch works on the basis of MAC address.A router works on the basis of IP address.
3.A Hub is a multiport repeater in which a signal introduced at the input of any port appears at the output of the all available ports.A Switch is  a tele-communication  device which receives a message from any device connected to it and then transmits the message only to the device for which the message is intended.A router reads the header of incoming packet and forward it to the port for which it is intended there by determines the route. It can also perform filtering and encapsulation.
4.Hub is not an intelligent device that may include amplifier on repeater.A Switch is an intelligent device as it passes on the message to the selective device by inspecting the address.A route is more sophisticated and intelligent device as it can read IP address and direct the packets to another network with specified IP address. Moreover routers can built address tables that helps in routing decisions.
5.At least single network is required to connect.At least single network is required to connect.Router needs at least two networks to connect. 
6.Hub is cheaper as compared to switch and router. Switch is an expensive device than hub.Router is a relatively much more expensive device than hub and switch.
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!