The network layer is divided into two sublayers, a routing layer that handles the transfer of data packets from source to destination, and an encapsulation layer that handles forming of packets.
Like the physical and MAC layers, it is part of the infrastructure layer of the IoT reference architecture. This layer is responsible for addressing and routing data packets.