Layering of Network Functions