Skip to main content
. 2021 Sep 6;21(17):5965. doi: 10.3390/s21175965
Algorithm 1 Framework of relay nodes and routing selection based on fuzzy logic
Input: Distance, speed and energy of nodes;
Output: Route with high average reliability;
  • 1:

    Calculate the normalized delay (ND), stability (NS), and remaining energy (NRE) based on the distance, speed, and energy of the node;

  • 2:

    Input ND, NS, and NRE to the fuzzy system;

  • 3:

    Output value REL value according to the fuzzy rules established by the fuzzy system;

  • 4:

    Select the RREQ forwarding node with the largest REL value as the relay node;

  • 5:

    Superimpose REL value and forward;

  • 6:

    Repeat 4 and 5 until the receiving node is the destination node;

  • 7:

    return optimal route;