A hub will broadcast packets destined for any MAC to all ports, whereas a switch will send packets destined for any MAC to only the port it is attached to.