Megalos: A scalable architecture for the virtualization of large network scenarios