Matlab实现的Leach协议我要分享

LEACH protocol based on MATLAB

matlab 协议 leach 实现

关注次数: 352

下载次数: 0

文件大小: 3.36 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明: 【代码功能】基于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.


English Description:

[code function] LEACH protocol based on MATLAB, low energy adaptive clustering hierarchy protocol (LEACH)


代码预览