Optimal resource management in communication networks: theory and algorithm designs