Cross-Layer Software-Defined 5G Network