Routing allows data to be transferred between different networks and subnets. Routers use routing tables to determine the best path for packets to travel. Routing tables can be populated through static or dynamic routing protocols. Dynamic routing protocols use metrics like hop count or bandwidth to calculate the optimal route and update routing tables automatically based on network changes. Common routing protocols include RIP, OSPF, and BGP.