Version 2 (modified by sinziana.mazilu, 14 years ago) (diff)


<< Home

Overview of VNSim - the VANET simulator

VNSim is a discrete event simulator meaning that the simulation time advances with a fixed time resolution after executing the simulator code for the current moment of time. The VANET application consists of an event queue which can hold 4 types of events: Send, Receive, GPS and Cleanup.

A Send event for a specified node triggers the calling of the node’s procedure responsible for preparing a message. That send event is then inserted into the Event Queue. The Engine of the simulator checks this Event Queue at a regular fixed amount of time, and for any Send Event found it creates one Receive Event (if the Send Event is Unicast) or several Receive Events for everyone of the nodes which are in the wireless range of the sender. When a Receive Event is created first the Engine checks to see if there is another Receive Event corresponding to the same Receiver for the current simulation time, and if it is, it adds this Receive Event to the receiver’s event list. This makes it easier when the Receiver simulates the receive procedure of an Event, it has to check its Receive Event list and chooses one according to a receive power threshold and interference level.

The GPS Event is scheduled at a regular time interval for each node thus accurately simulating the way a real VANET application collects GPS data periodically. The mobility module updates periodically the position of each vehicle-node according to the vehicular mobility model. This model takes into consideration vehicle interactions, traffic rules and various driver behaviors.

The network model takes into consideration the position and the wireless range of the vehicles, medium access and the propagation model of radio waves according to the Two Ray Ground model. The Simulator delivers a message to all the receiving nodes in the wireless range using an optimized local search thru the nodes. This is possible due to indexing the map point locations of the nodes with a PeanoKey? mechanism which scans the geographical area around a node.

For a more accurate network model, the node’s protocol stack is taken into account and thus the simulator can have the packet encapsulation process by adding the corresponding headers to the message. The transport layer is UDP, and the IP network layer is replaced by a geographical routing and addressing scheme. The MAC layer is the one in 802.11b.