Research Article

Simulation of IoT-based Vehicular Ad Hoc Networks (VANETs) for Smart Traffic Management Systems

Algorithm 1

A methodology for selecting the next forwarder vehicle.
1. There are five distinct inputs from which to choose: Each car in the affected region has been damaged.
2. If this is your first time receiving the message, output: NFVs, Direction. There are two parameters to the angle atan2 method (arctangent function).
3. To calculate the distance, divide the distance between Ri and Tj by two. The default delay for new connections is 0.01 (distance to/communication radius).
4. R’s appointment has been postponed. A delay is the sum of the present delay and the waiting time.
5. In this instance, terminate the programme and set the priority to (0.02). (0.04).
6. If the amount of time spent waiting is longer than the amount of time that was chosen at random (0.05, 0.07).
7. Establish the RiMessage schedule (delayed).