The invention discloses a method for routing mobile agents in wireless sensor networks, including: cluster head node Sink to the grid is a mobile agent in the grid; the cluster head node Sink grid is received within the grid mobile agent, mobile agent save grid. At the same time the Sink node belongs the number in the grid grid mobile agent package structure; cluster head node Sink grid is forwarded to the mobile agent grid in horizontal and vertical direction of the 4 neighbor cluster head node; received comparison results of mobile agent in the grid neighbor cluster head nodes according to their own Sink node number and grid in mobile grid the agent belongs to a mesh number, in accordance with the horizontal or vertical direction of diffusion within the grid forwarding mobile agent. The application of each cluster head node according to its respective ID grid and Sink grid nodes belong to ID, select the appropriate geographical diffusion direction of the mobile agent are forwarded within the grid, can greatly reduce the energy consumption of the network.
【技术实现步骤摘要】
用于无线传感器网络的移动代理的路由方法
本专利技术涉及无线传感器网络
,特别涉及一种用于无线传感器网络的移动代理的路由方法。
技术介绍
在WSNs多数应用的场景中,在监测区域附近会部署大量的廉价的、具有一定数据感知能力和感知半径的传感器节点,以规律或无规律的方式散布成一个静态的网络。由于传感器节点没有无线基础设施的支持,且往往散布在自然条件未知、恶劣、无人值守或是地处于敌占区的地理环境中,电池往往不可拆卸或无法进行更换。因此,WSNs的主要设计目标之一就是在尽量降低网络能量消耗的同时尽可能的延长整个网络的工作寿命。为了降低能耗,必须对WSNs网络层的路由技术的加以研究。基于簇结构的路由具有高效的能量利用率、简便的拓扑管理、简单的数据融合效果等优势,成为目前WSNs路由领域重点研究的技术。C/S模型中各网络节点分别向Sink节点发送管理信息,容易形成网络流量的大规模“浪涌”和数据分组的发送与接收冲突,从而造成数据分组的丢失重传和排队时间的增加,导致网络能耗的极大增加。基于簇首的管理模型中各簇内节点也按照类似于C/S模型中的计算模式向簇首发出管理信息,面临着同样 ...
【技术保护点】
一种用于无线传感器网络的移动代理的路由方法,其特征在于,包括以下步骤:Sink节点向所属网格的簇首节点发出网格内移动代理;Sink节点所属网格的簇首节点接收到网格内移动代理之后,保存网格内移动代理,同时将Sink节点所属网格序号存入网格内移动代理的包结构中;Sink节点所属网格的簇首节点向处于水平和垂直方向的4个邻居簇首节点转发网格内移动代理;收到网格内移动代理的邻居簇首节点根据自身所属网格序号和网格内移动代理中的Sink节点所属网格序号的比较结果,按照水平或垂直的扩散方向转发网格内移动代理。
【技术特征摘要】
1.一种用于无线传感器网络的移动代理的路由方法,其特征在于,包括以下步骤:Sink节点向所属网格的簇首节点发出网格内移动代理;Sink节点所属网格的簇首节点接收到网格内移动代理之后,保存网格内移动代理,同时将Sink节点所属网格序号存入网格内移动代理的包结构中;Sink节点所属网格的簇首节点向处于水平和垂直方向的4个邻居簇首节点转发网格内移动代理;收到网格内移动代理的邻居簇首节点根据自身所属网格序号和网格内移动代理中的Sink节点所属网格序号的比较结果,按照水平或垂直的扩散方向转发网格内移动代理。2.根据权利要求1所述的用于无线传感器网络的移动代理的路由方法,其特征在于,在收到网格内移动代理的邻居簇首节点根据自身所属网格序号和网格内移动代理中的Sink节点所属网格序号的比较结果,按照水平或垂直的扩散方向转发网格内移动代理的步骤中,邻居簇首节点的网格横坐标为x,邻居簇首节点的网格纵坐标为y,则若x等于Sink节点的网格横坐标且y小于Sink节点的网格纵坐标,则将网格内移动代理转发至邻居簇首中网格坐标为[x,y-1]、[x+1,y]、[x-1,y]的3个节点;若x等于Sink节点的网格横坐标且y大于Sink节点的网格纵坐标,则将网格内移动代理转发至邻居簇首中网格坐标为[x,y+1]、[x+1,y]、[x-1,y]的3个节点;若x小于Sink节点的网格横坐标,则将网格内移动代理转发至邻居簇首中网...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。