A network switch is a networking device that connects devices within a computer network and uses packet switching to forward data to its destination. Unlike hubs, switches are more intelligent and can learn the MAC (Media Access Control) addresses of the devices connected to them.