A network switch is a device that connects multiple computers or devices within a local area network (LAN) and uses MAC addresses to forward data to the appropriate destination.