Skip to main content
. 2021 Feb 8;21(4):1179. doi: 10.3390/s21041179
Algorithm 1 Computing of performance metrics.
  •  Start

  •  Set initial conditions;

  •  Initialize Hierarchy level of coordinator node = Hierarchy;

  •  Initialize coordinator node establishes neighbors = i;

  •  Calculate reachable_Nodes;

  • for each Node do

  •   Establish sent_Packets;

  •   Calculate received_Packets;

  •   Calculate SNR per link;

  •   Calculate control_Packets <– overhead;

  •   Calculate traffic_Packets;

  •   Calculate Valid_Routes;

  •   Calculate obsolete_Routes;

  •   Calculate reconfiguration_Time;

  •   Calculate RSSI;

  • end for

  • for each packet do

  •   Calculate hop_Number;

  •   Calculate delay;

  •   Calculate retransmission_Number;

  •   Calculate retries_Number;

  • end for