Internet Layer of the Internet Protocol Suite
has the task of exchanging datagrams
across network boundaries.
Internet Layer provides a uniform networking interface that hides the actual topology (layout) of the underlying network connections. Internet Layer is also referred to as the layer that establishes internetworking.
Internet Layer defines the addressing and routing structures used for the TCP/IP protocol suite. The primary protocol in this scope is the Internet Protocol, which defines IP addresses.
Internet Layer function in routing is to transport datagrams to the next IP router that has the connectivity to a network closer to the final payload destination.
There might be more information for this subject on one of the following: