New course! Every coder should learn Generative AI!
Try a free lesson+ 2
A Hub is a networking device that allows one to connect multiple PCs to a single network. Hubs may be based on Ethernet.
On the other hand, the switch can provide the communication between any pair of ports.