Optimizing vehicular communication resources: From vehicular connectivity to infrastructure deployment