Cross -layer interactions and optimizations in wireless networks