Joint Routing and Control Optimization in VANET