Do you guys really looking forward to get the appropriate knowledge about the cluster head selection using LEACH protocol? That’s great!!! You have just rightly directed to the exact article.
As the first process, the cluster head selection using LEACH protocol is based on fuzzy logic with the utilization of node centrality as input parameters and the results as fuzzy cost and all nodes in network selects the cluster head with least cost using the below mentioned simulation tools.
- OMNeT++
- Cooja
- Ns2
- NS3
In addition, we have highlighted the sample Ns3 source code for cluster head selection.
- Threshold
threshold = CLUSTER_PERCENT/1-CLUSTER_PERCENT*(round % 1/CLUSTER_PERCENT);
cluster_head_count = 0;
- Cluster head selection
for(i = 0; i <= NUM_NODES; i++){
if(network_LEACH[i].round < (j – recent_round) || (j – recent_round == 0)){
if(network_LEACH[i].head != DEAD_NODE){
random_number = .00001*(rand() % 100000);
if(random_number <= threshold){
network_LEACH[i].head_count++;
network_LEACH[i].round = j;
network_LEACH[i].head = -1;
cluster_head_count++;
}}}}
The research scholars can reach us at any time to acquire a lot about the cluster head selection using LEACH protocol.