Router sending the packets via the appropriate link to the correct device is called routing.
Some of the popular routing protocols are listed below
OSPF (Open Shortest Path First) - Each router has a complete map of the network and can determine the best routes to reach any destination.
EIGRP (Enhanced Interior Gateway Routing Protocol) - EIGRP is a Cisco proprietary routing protocol that combines aspects of different routing algorithms.
BGP (Border Gateway Protocol) - BGP is the primary routing protocol used on the Internet. It allows different networks (like those of Internet Service Providers) to exchange routing information and establish paths for data to travel between these networks.
RIP (Routing Information Protocol) - RIP is a simple routing protocol often used in small networks. Routers running RIP share information about the networks they can reach and the number of hops (routers) required to get there.
IPv4 can support a maximum of four billion devices which gets depleted quickly.
One solution to address depletion is Network Address Translation (NAT).
NAT uses one public IP address to provide Internet access to many private IP addresses.
In other words, if you are connecting a company with twenty computers, you can provide Internet access to all twenty computers by using a single public IP address instead of twenty public IP addresses.
For example: the devices in the network with ip addresses 192.168.0.120, 192.168.0.110, 192.168.0.130 communicates through the router with ip 192.168.0.1 with a public ip of 220.1.2.0 which communicates with the internet.