The network layer is responsible for routing data across interconnected networks through logical addressing and packet encapsulation. It uses protocols like IP, ICMP, and routing protocols to determine the best path and encapsulate higher layer data into packets with a network header for transmission. Functions include routing, fragmentation and reassembly, and providing a logical addressing scheme independent of physical hardware addresses.