1. Overview
| HUB |
SWITCH |
ROUTER |
| HUB works in Physical Layer of OSI Model |
SWITCH works in Datalink Layer of OSI Model |
ROUTER works in Network Layer of OSI Model |
| HUB is a broadcast device |
SWITCH is a multicast device |
ROUTER is a routing device used to create a route for transmitting data packets |
| HUB sends data in the form of packets |
SWITCH sends data in the form of frames |
ROUTER sends data in the form packet |
| 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/IP address to transfer data |
SWITCH stores and uses MAC address of devices to transfer data |
ROUTER uses IP address to transfer data |
2. Reference
https://www.youtube.com/watch?v=1z0ULvg_pW8
https://www.youtube.com/watch?v=ck3gx9HB9-k