*4.1. Simulation Setup*

The simulation is designed to evaluate the proposed model for MD recovery based on game theory. In this respect, we implemented the prototype NS2 program using two software packages: Matlab and NS2. By modeling discrete occurrences, the NS2 simulation software enables developers to improve their businesses in real time. Additionally, it supports a variety of protocols such as TCP, routing, and multicast across wired and wireless networks and runs on a variety of platforms including Linux and Windows [38,39]. As a result, we use this software to implement the stage of collecting data on the work environment at various levels in order to mimic changes in the work environment. Then, Matlab software is used to construct a game theory in order to assess various recovery procedures by inputting the output values from the simulation stage in order to find the optimal decision. For our solution, we used mobile log files of various sizes that included the process data that each method would obtain.

The settings for the NS2 simulation are summarized in Table 4. The MAC layer protocol of IEEE 802.11 for wireless large area networks is utilized here. A movement file provides the mobile client node's motions. The mobile client node transmission range is 250 m. Each cell has one base station. A random waypoint (RWP) model determines the starting node position and movement. The RWP model is based on random locations, speeds, and halt durations. The prototype was built in modules and tested on a Dell Inspiron N5110 laptop from Dell Computer Corporation in Texas. Processor: Intel(R) Core(TM) i5–2410M, 4.00 GB RAM, Windows 7 64–bit. The proposed model's efficiency is assessed using execution time and recovery probability. See [24,27] for more details. The results are the average of several repeated experiments for different initial location and movements of the nodes due to the using of RWP model. The most suitable values for the collection of protocol's factors (strategies) were picked from the literature, based on the assessment of selected recovery protocols, to represent the protocol's performance in a variety of settings.
