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
|