Routers connect different computer networks and forward data packets between them by reading the address information in each packet to determine the ultimate destination. A router contains a routing table with information about connected networks and uses this to determine the best path for packets to travel through multiple networks to reach their destination. There are two main types of routers: core routers connect different cities while edge routers connect users and hosts to networks.