Research Article
Rank-Based Report Filtering Scheme (RRFS) for Verifying Phoney Reports in Wireless Sensor Networks
Algorithm 2
Connection establishment algorithm.
//SINK: the base station or the data collection unit | SN: the set of all nodes in the sensor network-SINK is node | ID (): identifier of | : distance between Ni and the sink | : no. of nodes to which the sink broadcasts the relation signal | is the node among neighbours to which the relation signal is sent by the sink | //set of nodes in the network except the nodes to which the relation signal is sent by the sink | Condition to be met: (any node in RS) | : the threshold for the number of nodes to validate the report | //index refers to a neighbour of the sink | FOR to do | relation-propagate () | //Function used to establish the families in the network. | //index refers to a neighbour of neighbour | relation_propagate () | () | //if statement refers to the condition that must be met to terminate the family establishment process | if () or () | terminate relation_propagate | else | for every node in neighb_set | if | establish relation between and | end if | relation_propagate () | end for | end if |
|