The paper presents an optimization framework for improving the Quality of Service (QoS) in Vehicular Ad-hoc Networks (VANETs), addressing challenges such as varying node mobility and traffic routing. It emphasizes the importance of adaptive QoS in critical situations, prioritizing safety messages while optimizing normal traffic such as video and audio. The proposed framework utilizes simulation analysis to validate improvements in key performance metrics like end-to-end delay, throughput, and packet loss ratio.