|Applicable Versions||NetSim Standard||NetSim Pro|
NetSim Supports different mobility models such as Random Walk, Random WayPoint, Group Mobility, File-Based Mobility, and SUMO-based model.
The Random Walk model is that of a random walk on a regular lattice, where at each step the walk jumps to another site according to some probability distribution.
The Random Way Point model is a commonly used synthetic model for mobility in Ad-Hoc networks. It is an elementary model that describes the movement pattern of independent nodes in simple terms.
The group mobility model is a commonly used synthetic model for mobility in Ad Hoc networks. It is an elementary model that describes the behavior of mobile nodes as they move together.
In File-Based Mobility, users can write their own custom mobility models and define the movement of the mobile users.
In SUMO based model available in the VANET nodes, users can link the SUMO tool with NetSim to introduce vehicular movement in the nodes, with the help of a SUMO configuration file.
The Pedestrian Mobility model is a commonly used synthetic model for mobility in Ad Hoc networks. It is an elementary model that describes the movement of nodes according to real geographic data such as buildings, streets, etc, and also destination-oriented movements such as dedicated start and endpoints.
Following is an example of a list of mobility models available in a sensor node:
Note: Not all mobility models are available in all devices. There will be limitations based network in which the device is used.
Printing node position over time:
Open Mobility Project, and in Mobility.c and go to fn_NetSim_Mobility_Run() function. Inside the default, case add following codes
fprintf(stderr,"\n The position of %s at time %.2lfms is X=%.2lf and Y = %.2lf \n",DEVICE_NAME(pstruEventDetails->nDeviceId),
Build Mobility project and replace libMobility.dll inside the binary folder of NetSim installation directory (in v11.1 and higher versions, dll will get updated in the binary folder of current workspace automatically). Upon running any network simulation involving devices that support mobility, users will be able to find the node positions getting printed in the console during run time. The same can be obtained as a log by writing to a file pointer instead of stderr.