💥💥💞💞欢迎来到本博客❤️❤️💥💥
🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。
⛳️座右铭:行百里者,半于九十。
📋📋📋本文目录如下:🎁🎁🎁
目录
💥1 概述
低能耗自适应集群层次(LEACH)协议是一种基于时分多址(TDMA)的介质访问控制(MAC)协议。该协议的主要目标是通过降低创建和维护集群头节点所需的能量消耗来提高无线传感器网络的寿命。
LEACH协议的运行包括多个轮次,每个轮次都有两个阶段:设置阶段和稳定阶段。
网络寿命受每个节点的能量消耗和CH的选择影响。LEACH是根据随机选择CH,这导致了网络寿命的减少,因此我们需要改变集群选择方法以增加网络寿命。
结论:
本文提出了一种节能的LEACH协议,旨在提高传感器网络的寿命。
- 修改后的LEACH协议导致能源消耗较少,寿命较LEACH协议增加。
- 实验结果显示,所提出的LEACH协议比现有的LEACH协议产生更好的结果。
📚2 运行结果
部分代码:
% Grouping the Nodes into Clusters & caclulating the distance between node and cluster head %
for i=1:n
if (SN(i).role==0) && (SN(i).E>0) && (CLheads>0) % if node is normal
for m=1:CLheads
d(m)=sqrt((CL(m).x-SN(i).x)^2 + (CL(m).y-SN(i).y)^2);
% we calculate the distance 'd' between the sensor node that is
% transmitting and the cluster head that is receiving with the following equation+
% d=sqrt((x2-x1)^2 + (y2-y1)^2) where x2 and y2 the coordinates of
% the cluster head and x1 and y1 the coordinates of the transmitting node
end
d=d(1:CLheads); % fixing the size of "d" array
[M,I]=min(d(:)); % finds the minimum distance of node to CH
[Row, Col] = ind2sub(size(d),I); % displays the Cluster Number in which this node belongs too
SN(i).cluster=Col; % assigns node to the cluster
SN(i).dtch= d(Col); % assigns the distance of node to CH
SN(i).chid=CL(Col).id;
🎉3 参考文献
文章中一些内容引自网络,会注明出处或引用为参考文献,难免有未尽之处,如有不妥,请随时联系删除。
[1]刘亮.无线传感器网络路由协议中基于定位的节能算法研究[D].广西大学[2024-04-02].
[2]孙天一,陈涤.无线传感器网络LEACH协议的探讨及改进[J].传感器世界, 2005, 11(1):2.DOI:10.3969/j.issn.1006-883X.2005.01.008.
[3]刘玉华,赵永锋,许凯华,等.无线传感器网络LEACH协议的改进[J].计算机工程与应用, 2010, 46(17):4.DOI:10.3778/j.issn.1002-8331.2010.17.033.
[4]孙天一.无线传感器网络LEACH协议的探讨及改进[D].山东大学[2024-04-02].DOI:10.7666/d.y971031.