The network layer provides end-to-end communication to the transport layer, contrasting with the data link layer which offers node-to-node service. The internet, or internetwork, is a collection of interconnected networks facilitating data transmission through packet switching. Routers operate at the network layer, directing packets along optimal routes and processing only those messages specifically addressed to them.