The internet is a global computer network providing a variety of information and communication facilities, consisting of interconnected networks using standardized communication protocols.
The information used to get packets to their destinations are contained in routing tables kept by each router connected to the Internet. Routers are packet switches. A router is usually connected between networks to route packets between them. Each router knows about it's sub-networks and which IP addresses they use.