An energy-aware distributed approach for content and network management