Switching: What is the primary function of a network switch in a LAN?It operates at Layer 2 of the OSI model, using MAC addresses to direct traffic to the appropriate destination within the local area network.The primary function of a network switch in a LAN is to receive, process, and forward data frames between devices on the same network.