what is the functions of network layer ?

Answer :

Functions. The network layer provides the means of transferring variable-length network packets from a source to a destination host via one or more networks.