Modems are devices that convert digital data from computers into analog signals that can be transmitted over telephone lines, and vice versa. They allow computers to connect to networks over long distances using existing telephone infrastructure. Switches improve network performance over hubs by only forwarding data to the specific port of the intended recipient, reducing collisions. Routers connect multiple networks like a local area network to a wide area network such as the Internet.