Basis of Comparison |
Hub |
Switch |
Description |
Hub is a networking device that connects the multiple devices to a single network. |
A switch is a control unit that turns the flow of electricity on or off in a circuit. |
Layer |
Hubs are used at the physical layer. |
Switches are used at the data link layer. |
Transmission type |
Transmission type can be unicast, broadcast or multicast. |
Initially, the transmission type is broadcast and then is unicast. |
Ports |
Hub has 4/12 ports. |
The switch has 24/48 ports. |
Transmission mode |
Half duplex |
Half/Full duplex. |
Collisions |
Collisions occur commonly in a Hub. |
No collisions occur in a full duplex switch. |
Address used for data transmission |
Hub uses MAC address for data transmission. |
The switch uses a MAC address for data transmission. |
Data transmission form |
Electrical signal is a data transmission form of a hub. |
A Frame is a data transmission form of a switch. |