Queuing analysis and optimization techniques for energy efficiency in packet networks