What is the major difference between a switch and hub?
A switch operates at layer 2 and just transmits the packets to the port which the destination address exist so that it separates each port into several collision domains. The port-to-port bandwidth is dedicated. On the other hand, a hub transmits packets to all ports. The port-to-port bandwidth is shared.