Resource Allocation And Energy Management In Green Network Systems