A router is a mechanism that connects packet-switched networks of subnetworks. It manages traffic moving between networks, forwarding data to designated IP addresses, and allows several devices to use the same Internet connection.