Explain the difference between a switch and a router. When would you use one over the other?
Sigiloso
Switch: Operates at Layer 2 (Data Link Layer) of the OSI model, used to connect devices within the same network (LAN). It forwards frames based on MAC addresses. Router: Operates at Layer 3 (Network Layer), used to connect different networks. It forwards packets based on IP addresses.