---
title: "What is the difference between a hub and a switch?"  
description: "What is the difference between a hub and a switch?"  
author: "Sophia Morrow"  
published: 2017-11-14  
canonical: https://answers.mindstick.com/qa/30576/what-is-the-difference-between-a-hub-and-a-switch  
category: "technology"  
tags: ["computer networking"]  
reading_time: 2 minutes  

---

# What is the difference between a hub and a switch?

What is the [difference](https://www.mindstick.com/blog/481/difference-between-grant-and-with-grant-in-sql-server-2008-r2) between a [hub](https://www.mindstick.com/blog/12621/education-hub-top-best-universities-to-study-in-singapore) and a switch?

## Answers

### Answer by Sangsaptak Pal

Hub : The hub is also known as a multiport repeater. It transmits the amplified signal to each port except the sending port i.e. the one from which the signal was received. A hub is basically used to link the networking devices physically for communication and successfully generate multiple hierarchies of stations. But hubs are unable to perform intelligent forwarding It is also unable to process layer 2 and layer 3 information. It just makes the decision on the basis of physical addressing instead of hardware and logical addressing. The hub cannot distinguish the type of the frame, that is the reason it forwards unicast, multicasts, and broadcasts to every other port except the sending port.

Basically there are two types of hubs :

- Active hub : It provides amplification and regeneration of the signals along with the connection
- Passive hub : It only provides the connection but not amplification and regeneration

[Switch](https://en.wikipedia.org/wiki/Network_switch) : Switch is nothing but an intelligent hub. It is a device which enables the connections and provides the choice to terminate them. It provides multiple functionalities like filtering, flooding and transmission of frames. It needs the destination address of the frames which it learns from the source MAC address.

The difference can be summed up in the following table :

| HUB | SWITCH |
| --- | --- |
| Operates on Physical Layer | Operates on Data Link Layer |
| It can only perform broadcast | It can perform unicast, multicast and broadcast |
| It can have more than or less than 4 ports | It has 24-28 ports |
| It has only one collision domain | Different ports have different collision domains |
| It only transmits in half duplex mode | It transmits in full duplex mode |
| It does not have any provision for packet filtering | It has provision for packet filtering |
| It is susceptible to switching loops | It can avoid loops by using STP |
| ![What is the difference between a hub and a switch?](https://qph.fs.quoracdn.net/main-qimg-a0536ffe50955f382c8d69194a5daad2.webp) Image of HUB ![What is the difference between a hub and a switch?](https://www.lifewire.com/thmb/AerrC-xLaDghM3wJi12zbJUzoVU=/1416x400/filters:no_upscale():max_bytes(150000):strip_icc()/ubiquity-48-port-switch-d1544208be7c4845b49b75974241a2fa.jpg) Image of SWITCH |  |


---

Original Source: https://answers.mindstick.com/qa/30576/what-is-the-difference-between-a-hub-and-a-switch

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
