资 源 简 介
【代码功能】基于Matlab实现Leach协议,Low Energy Adaptive Clustering Hierarchy protocol (LEACH)
【代码逻辑】Nodes that have been cluster heads cannot become cluster heads again for P
rounds, where P is the desired percentage of cluster heads. Thereafter, each
node has a 1/P probability of becoming a cluster head in each round. At the end
of each round, each node that is not a cluster head selects the closest cluster
head and joins that cluster. The cluster head then creates a schedule for each
node in its cluster to transmit its data.
All nodes that are not cluster
heads only communicate with the cluster head in a TDMA fashion, according to the
schedule created by the cluster head. They do so using the minimum energy needed
to reach the cluster head, and only need to keep their radios on during their
time slot.
LEACH also uses CDMA so that each cluster uses a different set of
CDMA codes, to minimize interference between clusters.