Text this: PHY and MAC, cross-layer optimization and design