The correct answer is:
C. Network layer
The network layer is responsible for routing and forwarding IP datagrams from the source network to the destination network. It provides logical addressing and routing services, and it determines the best path for data to travel between networks. Examples of protocols that operate at the network layer include IP (Internet Protocol) and ICMP (Internet Control Message Protocol).