Resource Allocation and Performance Optimization in Communication Networks and the Internet