Answer : A router connects multiple networks and directs network traffic between them, often providing internet access to devices on a local network. A switch connects multiple devices within the same network, allowing them to communicate directly by managing data traffic at the data link layer.