build network layer