This paper proposes an optimal architecture for wireless networks based on layers and layer interfaces. In the presence of fading the architecture is shown to be optimal. The result follows from a subgradient descent algorithm on the dual function of a generic wireless networking optimization problem. The fact that these non-convex optimization problems have nonetheless zero duality gap is exploited.