Designing the 5G network infrastructure: a flexible and reconfigurable architecture based on context and content information