Cross Layer Design-An Equivalence Class Approach