Difference Between Hub, Switch and Router
Difference Between Hub, Switch and Router
Hus is use to connect device in the same network Switch is use to connect devices in the same network Router is use to connect two or more different network. Only one device can send data at a time, In Switch Multiple devices can send data at the same time, In Router Multiple devices can send data at the same time.
Hubs
A hub is the least expensive, least intelligent, and least complicated of the three. Its job is very simple: anything that comes in one port is sent out to the others.
Switch
A switch does what a hub does, but more efficiently. By paying attention to the traffic that comes across it, it learns which computers are connected to which port.
Router
A router is the smartest and most complicated of hub and switch. Routers come in all shapes and sizes, from small, four-port broadband routers to large industrial-strength devices that drive the internet itself.
Difference Between Hub, Switch and Router
Hub | Switch | Router |
---|---|---|
HUB work on Physical Layer of OSI Model | Switch work on Data Link Layer of OSI Model | Router work on Network Layer of OSI Model |
HUB is Broadcast Device | Switch is Multicast Device | Router is a routing device use to create route for transmitting data packets |
Hus is use to connect device in the same network | Switch is use to connect devices in the same network | Router is use to connect two or more different network. |
Hub sends data in the form of binary bits | Switch sends data in the form of frames | Router sends data in the form packets |
Hub only works in half duplex | Switch works in full duplex | Router works in full duplex |
Only one device can send data at a time | Multiple devices can send data at the same time | Multiple devices can send data at the same time |
Hub does not store any mac address or IP address | Switch store MAC Address | Router stores IP address |