Cross-layering between physical layer, medium access control, and routing in wireless ad-hoc networks