Joint content-resource allocation in software defined virtual CDNs