Difference between Hub and Switch (original) (raw)

Last Updated : 11 Jul, 2025

In computer network there are many connectivity devices.Hub and Switch are important connectivity devices for data tranmission. A hub is a simple network that transmits data to all the connected devices while on the other hand a switch is more advanced as it forwards data to particular devices based on the MAC addresses. Comparison between a hub and switch should be comprehended whenever designing networks to enable secure and effective flow of traffic.

**What is Hub?

Hub is a networking devices which is used to transmit the signal to each port (except one port) to respond from which the signal was received. Hub is operated on Physical layer. In this packet filtering is not available.

It is also known as a repeater as it transmits signal to every port except the port from where signal is received. Also, hubs are not that intelligent in communication and processing information for 2nd and 3rd layer.

Hub

Types of Hubs

Uses for a Hub

Advantages of Hub

Disadvantages of Hub

Applications of Hub

**What is Switch?

Switch is a network device which is used to enable the connection establishment and connection termination on the basis of need. Switch is operated on Data link layer. In this packet filtering is available. It is type of full duplex transmission mode and it is also called efficient bridge.

Basically, it is a kind of bridge that provides better connections. It is a kind of device that set up and stop the connections according to the requirements needed at that time. It comes up with many features such as flooding, filtering and frame transmission.

Network-Switch

Switches Core Functions

Uses for a Switch

Advantages of Switch

Disadvantages of Switch

Applications of Switch

**Difference between Hub and Switch

Hub Switch
Hub is operated on **Physical layer of OSI model. While switch is operated on **Data link **layer of OSI Model.
Hub is a broadcast type transmission. While switch is a Unicast, multicast and broadcast type transmission.
Hub have 4/12 ports. While switch can have 24 to 48 ports.
In hub, there is only one collision domain. While in switch, different ports have own collision domain.
Hub is a half duplex transmission mode. While switch is a full duplex transmission mode.
In hub, Packet filtering is not provided. While in switch, Packet filtering is provided.
Hub cannot be used as a repeater. While switch can be used as a repeater.
Hub is not an intelligent device that sends message to all ports hence it is comparatively inexpensive. While switch is an intelligent device that sends message to selected destination so it is expensive.
Hub is simply old type of device and is not generally used. While switch is very sophisticated device and widely used.
Hacking of systems attached to hub is complex. Hacking of systems attached to switch is little easy.
Speed of original hub 10Mbps and modern internet hub is 100Mbps. Maximum speed is 10Mbps to 100Mbps.
Hubs are used in LANs. Switch is used in LANs.
Cheaper as compared to switch. Expensive as compared to HUB.

Conclusion

Depending on the size and the efficiency of the network, hubs and switches are two important devices which assist in communication but the functionality is different. While hubs are easy to implement and inexpensive for small scale Networks, they are ineffective because of broadcasting. On the other hand, switches are more efficient and scalable than hubs and better for imparting large networks that bear a higher traffic rate. The basic factor that differentiates between a hub and a switch is size of the network, the management of traffic and the cost.