(First of all, HUB, that is, the hub. Its role can be simply understood as connecting some machines to form a local area network. Switches (aka switching hubs) function in much the same way as hubs. However, there are differences in function between the two: the hub uses a shared bandwidth office mode, while the switch uses exclusive bandwidth.)