Prerequisite – Network Devices
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 of two types: Active Hub, Passive Hub.
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.
Difference between Hub and Switch:
|1.||Hub is operated on Physical layer.||While switch is operated on Data link layer.|
|2.||Hub is a broadcast type transmission.||While switch is a Unicast, multicast and broadcast type transmission.|
|3.||Hub have maximum 4 ports.||While switch can have 24 to 28 ports.|
|4.||In hub, there is only one collision domain.||While in switch, different ports have own collision domain.|
|5.||Hub is a half duplex transmission mode.||While switch is a full duplex transmission mode.|
|6.||In hub, Packet filtering is not provided.||While in switch, Packet filtering is provided.|
|7.||Hub cannot be used as a repeater.||While switch can be used as a repeater.|
|8.||Hub is not an intelligent device hence it is comparatively inexpensive.||While switch is an intelligent device so it is expensive.|
|9.||Hub is simply old type of device and is not generally used.||While switch is very sophisticated device and widely used.|
|10.||Hacking of systems attached to hub is complex.||Hacking of systems attached to switch is little easy.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between Thread Context Switch and Process Context Switch
- Difference between Hub and Bridge
- Difference between Router and Hub
- Difference between Router and Switch
- Difference between Router and Layer-3 Switch
- Difference between Switch and Bridge
- Difference between Switch and Gateway
- switch vs if else
- Measure the time spent in context switch?
- Difference and Similarities between PHP and C
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference between ++*p, *p++ and *++p
- Difference Between DOS and Windows
- Difference between User Level thread and Kernel Level thread
- What’s difference between The Internet and The Web ?
- Difference between Priority Inversion and Priority Inheritance
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.