The hub serves as a connection between different computers in a network. It works slower than a switch, because a collision arises when two data packages from two computers arrive at the same time and the hub is not able to manage both packages simultaneously.