Handbook of Intelligent Computing and Optimization for Sustainable Development. Группа авторов

Чтение книги онлайн.

Читать онлайн книгу Handbook of Intelligent Computing and Optimization for Sustainable Development - Группа авторов страница 68

Handbook of Intelligent Computing and Optimization for Sustainable Development - Группа авторов

Скачать книгу

is always multiple by 2 in loop and in odd node is represented as n. We get the coordinates of the vertical and horizontal lines separately for each case. At the end, we put or apply the fitting function to get the minimum coordinates in the deployment area as shown in Figure 6.16.

      6.4.6 Energy Calculation

A snapshot of the graph of mesh formation. A snapshot of the graph of the minimum spanning tree. A snapshot of the graph of throughput vs. delivery ratio.

      6.4.7 Average Delay

      Average delay is the delay in time (ms) from source to destination node by every node in the deployment area. We Enter the delay in time (ms) = 100. The average delay is 320.000 ms.

      For simulation of VANETs, we will first put the numbers of nodes in the area. First of all, we will set the coordinates of x and y. Coordinates of x and y is low = 0 (%lower bound to both the axis).

      6.5.1 Placement of Nodes

      6.5.2 Sender Node and Receiver Node

      6.5.3 Euclidean Distance Between Two Coordinates

A snapshot of the ideal placement of nodes. A snapshot of the sensor nodes with faulty points.

      6.5.4 Separation of Faulty Nodes

      Now, we will separate out the faulty nodes from the whole nodes. To separate out faulty nodes formula is p = 40 where p is percentage of faulty nodes out of the total number of nodes.

       Types of Faulty Nodes

      We have four types of faulty nodes

      1 1. Permanent

      2 2. Transient

      3 3. Intermittent

      4 4. Dynamic

      Now, assign the x and y coordinates of faulty nodes and initiate the master node and calculate the distance of each faulty nodes from master nodes by mean square root formula, also the time from the master node to the faulty nodes. Plot the all four types (permanent, transient, intermittent, and dynamic) faulty nodes in the figure.

      6.5.5 Best Match of the Node

      6.5.6 Cases of Simulation

      Now, there are three conditions or cases. First two cases in which sender and receiver are outbound and third case is wen sender and receiver is inbound. But for third case, there are four scenarios.

      1 1. Scenario with no error.

      2 2. Scenario with error.

      3 3. Scenario with path hoping.

      4 4. Scenario with errors and correction.

      But, here we will discuss three cases of scenario without and with errors and with errors and correction.

       a. Case without errorsIn scenario without errors, we will first transfer the information of sender and reliever nodes. Now, check the range and distance between the nodes. Next step is to generate the blinking line and check the set of nodes (faulty nodes) and then send the information to the destination with the help of coordinates of x and y. In this figure, sender 21 is sending packet to the receiver through the minimum path and time delay. It passes through 3 nodes (72, 54, 65).

       b. Case with errorIn scenario with error, loop will run until

Скачать книгу