Network Layer Optimization for 5G networks