Cross-layer Design for Wireless Networks