Using network policies effectively