CN107318142B - A Distributed Routing Method Between Clusters of Wireless Sensor Networks - Google Patents
A Distributed Routing Method Between Clusters of Wireless Sensor Networks Download PDFInfo
- Publication number
- CN107318142B CN107318142B CN201710527349.4A CN201710527349A CN107318142B CN 107318142 B CN107318142 B CN 107318142B CN 201710527349 A CN201710527349 A CN 201710527349A CN 107318142 B CN107318142 B CN 107318142B
- Authority
- CN
- China
- Prior art keywords
- cluster
- cluster head
- head
- network
- father
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/04—Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/12—Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
- H04W40/16—Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on interference
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
- H04W40/32—Connectivity information management, e.g. connectivity discovery or connectivity update for defining a routing cluster membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种无线传感网簇间分布式路由方法,属于无线传感器网络领域,其有效降低了大规模无线传感器网络簇头间数据传输的干扰。本发明包括簇头间通过Hello消息交换彼此的逻辑连接关系及负载信息,并将其记录入邻居表中;簇头先根据邻居簇头的父簇头数量与流量负载,计算簇头的数据传输对其邻居簇头数据传输的干扰因子;子簇头以父簇头的干扰因子为依据计算各父簇头承担下一跳数据传输的概率。本发明能够有效降低数据传输过程中簇头间的相互干扰,提高网络的数据传输效率。
The invention discloses a distributed routing method between clusters of a wireless sensor network, which belongs to the field of wireless sensor networks and effectively reduces the interference of data transmission between cluster heads of a large-scale wireless sensor network. The present invention includes exchanging the logical connection relationship and load information between the cluster heads through the Hello message, and recording it in the neighbor table; the cluster head first calculates the data transmission of the cluster head according to the number of the parent cluster heads and the traffic load of the neighboring cluster heads The interference factor of the data transmission of its neighbor cluster head; the sub-cluster head calculates the probability of each parent cluster head undertaking the next hop data transmission based on the interference factor of the parent cluster head. The invention can effectively reduce the mutual interference between the cluster heads in the data transmission process, and improve the data transmission efficiency of the network.
Description
技术领域technical field
本发明属于无线传感器网络领域,具体地说,涉及一种无线传感网簇间分布式路由方法。The invention belongs to the field of wireless sensor networks, and in particular relates to a distributed routing method among wireless sensor network clusters.
背景技术Background technique
分簇拓扑结构便于管理,有利于分布式路由算法的应用,具有较好的可扩展性,适合大规模无线传感器网络应用。分簇路由协议通常将网络划分为簇,每个簇由簇头和多个簇成员组成,簇头管理或控制整个簇内成员节点,数据通过簇头间多跳传输至汇聚节点。由于传感器节点易失效、分簇结构存在瓶颈、簇头的高负载使网络分割的可能性增加,这要求路由算法具有一定的容错能力。同时,无线信号干扰及信道争用也是分簇路由设计过程中不可忽视的重要因素。The clustering topology is easy to manage, beneficial to the application of distributed routing algorithms, has good scalability, and is suitable for large-scale wireless sensor network applications. Clustering routing protocols usually divide the network into clusters, each cluster consists of a cluster head and multiple cluster members, the cluster head manages or controls the member nodes in the entire cluster, and data is transmitted to the sink node through multiple hops between cluster heads. Because the sensor nodes are prone to failure, the cluster structure has bottlenecks, and the high load of cluster heads increases the possibility of network segmentation, this requires the routing algorithm to have a certain fault tolerance. At the same time, wireless signal interference and channel contention are also important factors that cannot be ignored in the process of clustering routing design.
针对无线传感器网络分簇路由,围绕簇头的产生、簇的形成和簇的数据传输而设计了许多WSN分簇路由算法。《能量感知的无线传感器网络数据收集协议》,软件学报,2007,18(5):1092-1109,作者刘明,曹建农,陈贵海等,公开了基于节点自身及其邻居节点剩余能量设计簇头选举及簇构建方案,通过调节簇头覆盖半径确保由簇头形成的子图连通性,再构建汇聚树传输数据。但当网络负载较大时,不同簇成员之间的数据传输容易产生冲突,使得簇头收集数据效率下降,从而容易导致网络拥塞。《efficient routing algorithmbased on unequal clustering and connected graph in wireless sensor networks》,International Journal of Wireless Information Networks,2016,23(2):141-150,作者Xia H,Zhang R,Yu J,公开了通过调节传感器节点的通信半径将传感器网络进行非均匀分簇,再采用连通图理论设计路由选择算法。但分簇时仅考虑能量空洞避免,使得簇网络拓扑为节省能耗而频繁变动,导致维护网络稳定性的代价过大,造成网络性能下降。簇头间路由算法仅使用图论设计簇头间数据传输路由,忽视了无线传感网协议栈的信息共享以及传感器节点数据传输特点,优化效果受限。For wireless sensor network cluster routing, many WSN cluster routing algorithms are designed around the generation of cluster heads, cluster formation and cluster data transmission. "Energy-aware wireless sensor network data collection protocol", Journal of Software, 2007, 18(5): 1092-1109, authors Liu Ming, Cao Jiannong, Chen Guihai, etc., disclosed the design of cluster head election based on the residual energy of the node itself and its neighbor nodes And the cluster construction scheme, by adjusting the coverage radius of the cluster head to ensure the connectivity of the subgraph formed by the cluster head, and then construct the aggregation tree to transmit data. However, when the network load is large, data transmission between different cluster members is prone to conflict, which reduces the efficiency of data collection by the cluster head, which easily leads to network congestion. "efficient routing algorithm based on unequal clustering and connected graph in wireless sensor networks", International Journal of Wireless Information Networks, 2016,23(2):141-150, authors Xia H, Zhang R, Yu J, disclosed that by adjusting sensor nodes The communication radius of the sensor network is clustered non-uniformly, and then the routing selection algorithm is designed by using the connected graph theory. However, when clustering only considers energy hole avoidance, the topology of the cluster network changes frequently in order to save energy, resulting in excessive cost of maintaining network stability and degrading network performance. The routing algorithm between cluster heads only uses graph theory to design data transmission routes between cluster heads, ignoring the information sharing of wireless sensor network protocol stack and the characteristics of sensor node data transmission, and the optimization effect is limited.
从上述现有技术可知,现有WSN簇结构及路由方法能耗不均衡、性能不稳定;如何利用无线传感器网络分布式的特点建立更高效的启发机制、通过局部区域有限范围内节点之间的互动和信息反馈来分簇与路由,在降低节点间数据传输干扰、保证网络运行周期的同时,提高簇稳定性和网络数据传输性能仍然有待进一步创新。From the above prior art, it can be seen that the existing WSN cluster structure and routing methods have unbalanced energy consumption and unstable performance; how to use the distributed characteristics of wireless sensor networks to establish a more efficient heuristic Clustering and routing through interaction and information feedback, while reducing the interference of data transmission between nodes and ensuring the network operation cycle, improving cluster stability and network data transmission performance still needs further innovation.
发明内容Contents of the invention
1、要解决的问题1. Problems to be solved
针对现有大规模无线传感器网络簇头间相互干扰的问题,本发明提供一种无线传感网簇间分布式路由方法,能够有效降低数据传输过程中簇头间的相互干扰、缓解重负载情况下网络拥塞程度、平衡网络负载、延长网络生存时间,适用于大规模无线传感器网络应用。Aiming at the problem of mutual interference between cluster heads of existing large-scale wireless sensor networks, the present invention provides a distributed routing method between cluster heads of wireless sensor networks, which can effectively reduce mutual interference between cluster heads during data transmission and alleviate heavy loads Reduce network congestion, balance network load, prolong network life time, suitable for large-scale wireless sensor network applications.
2、技术方案2. Technical solution
为解决上述问题,本发明采用如下的技术方案。In order to solve the above problems, the present invention adopts the following technical solutions.
一种无线传感网簇间分布式路由方法,包括使用簇头数据传输对其邻居簇头的影响定义干扰因子作为下一跳选择的依据。A distributed routing method between clusters in a wireless sensor network, including using the influence of data transmission of a cluster head on its neighboring cluster heads to define an interference factor as a basis for next hop selection.
优选地,包括如下步骤:Preferably, the following steps are included:
步骤A,簇头间通过Hello消息交换彼此的逻辑连接关系、簇头负载预测值以及自身的干扰因子,并将其记录入各自的邻居表中;邻居表中,标记出簇网络构建过程中直接形成的,或依托簇网络与汇聚节点间距离差异构建的簇头间父、子、同层关系;Step A, the cluster heads exchange each other's logical connection relationship, cluster head load prediction value and their own interference factors through Hello messages, and record them in their respective neighbor tables; Formed, or based on the distance difference between the cluster network and the sink node, the parent, child, and peer relationship between cluster heads;
步骤B,更新与维护簇头i数据传输对邻居簇头数据传输的干扰因子;Step B, update and maintain the interference factor of data transmission of cluster head i on the data transmission of neighboring cluster heads;
步骤C,下层网络簇头j以上述步骤B中所计算的各父簇头干扰因子为依据,确定各父簇头为下一跳的概率。In step C, the lower network cluster head j determines the probability that each parent cluster head is the next hop based on the interference factor of each parent cluster head calculated in the above step B.
步骤D,下层网络簇头j使用轮盘赌方法选择从父簇头中选择下一跳。Step D, the lower network cluster head j uses the roulette method to select the next hop from the parent cluster head.
优选地,步骤A中簇头i负载预测值的计算公式如下,Preferably, the calculation formula of the cluster head i load prediction value in step A is as follows,
Li、Oj分别表示簇头i及其子簇头j的负载预测值,Pj表示簇头j的父簇头集合,Ci表示簇头i的子簇头集合,Ui为簇头i所在簇的成员节点集合,表示以i为簇头的簇内成员节点j上报数据量的数学期望;||表示集合中元素的个数。L i , O j represent the load prediction value of cluster head i and its sub-cluster head j respectively, P j represents the parent cluster head set of cluster head j, C i represents the sub-cluster head set of cluster head i, U i is the cluster head The set of member nodes of the cluster where i belongs to, Indicates the mathematical expectation of the amount of data reported by member node j in the cluster with i as the cluster head; || indicates the number of elements in the set.
优选地,步骤B中,簇头i数据传输对邻居簇头的数据传输干扰因子的更新与维护,计算公式如下,Preferably, in step B, the update and maintenance of the data transmission interference factor of cluster head i to the data transmission of neighboring cluster heads, the calculation formula is as follows,
右边第一项计算簇头i的数据传输对其所有父簇头的干扰程度;第二项计算簇头i对其所有子簇头数据传输的干扰程度;第三项计算簇头i对所有同层邻居簇头数据传输的干扰程度;The first item on the right calculates the degree of interference of cluster head i’s data transmission to all its parent cluster heads; the second item calculates the interference degree of cluster head i to its data transmission of all sub-cluster heads; the third item calculates the degree of interference of cluster head i to all parent cluster heads. Interference degree of layer neighbor cluster head data transmission;
Pi、Pk分别为簇头i和k的父簇头集合,Cj为簇头j的子簇头集合,Ci表示簇头i的子簇头集合,Mi为簇头i通信半径范围内同层簇头集合,Lk表示簇头k的负载预测值;||表示集合中元素的个数。P i , P k are the parent cluster head sets of cluster head i and k respectively, C j is the sub-cluster head set of cluster head j, C i is the sub-cluster head set of cluster head i, M i is the communication radius of cluster head i The set of cluster heads at the same level within the range, L k represents the load prediction value of cluster head k; || represents the number of elements in the set.
优选地,步骤C中,下层网络簇头j以其父簇头干扰因子为依据,确定各父簇头为下一跳的概率,计算方法如下,Preferably, in step C, the cluster head j of the lower layer network determines the probability that each parent cluster head is the next hop based on the interference factor of its parent cluster head, and the calculation method is as follows,
Pj表示簇头j的父簇头集合,IFj,i为簇头j的父簇头i的干扰因子,IFj,k为簇头j的父簇头k的干扰因子;Xj为簇头j通过Hello消息已获取干扰因子值的邻居簇头数量,未获取干扰因子的簇头i干扰因子值IFi为0,且被选作下一跳的概率为||表示集合中元素的个数。P j represents the parent cluster head set of cluster head j, IF j,i is the interference factor of cluster head i's parent cluster head i, IF j,k is the interference factor of cluster head j's parent cluster head k; X j is the cluster The number of neighbor cluster heads that head j has obtained the interference factor value through the Hello message, and the interference factor value IF i of the cluster head i that has not obtained the interference factor is 0, and the probability of being selected as the next hop is || indicates the number of elements in the set.
3、有益效果3. Beneficial effects
相比于现有技术,本发明的有益效果为:Compared with the prior art, the beneficial effects of the present invention are:
(1)本发明定义传感器节点的干扰因子,使用基于干扰因子的无线传感网簇间路由方法,有效降低数据传输过程中簇头间的相互干扰、缓解重负载情况下网络拥塞程度、延长网络生存时间,适用于大规模无线传感器网络应用;(1) The present invention defines the interference factor of the sensor node, uses the intercluster routing method of the wireless sensor network based on the interference factor, effectively reduces the mutual interference between the cluster heads in the data transmission process, alleviates the network congestion degree under the heavy load situation, prolongs the network Time to live, suitable for large-scale wireless sensor network applications;
(2)本发明使用的概率路由选择方法以干扰因子为基础,通过为簇头不同的下一跳路由节点分配选择概率,在提高数据传输效率的同时平衡网络负载,避免由于单一簇头由于承担过大的传输任务造成能量损耗过快,导致网络能量分布不均衡以及稳定性的下降。(2) The probabilistic routing selection method used in the present invention is based on the interference factor, by distributing selection probabilities for different next-hop routing nodes of the cluster head, while improving data transmission efficiency, it can balance the network load, and avoid the single cluster head from being burdened. Excessively large transmission tasks cause energy loss too fast, resulting in unbalanced network energy distribution and a decline in stability.
附图说明Description of drawings
图1为本发明具体实施方式中簇头i的数据传输对其所有父簇头的干扰场景;Fig. 1 is the interference scene of the data transmission of cluster head i to all its parent cluster heads in the specific embodiment of the present invention;
图2为本发明具体实施方式中簇头i对其所有子簇头数据传输的干扰场景;Fig. 2 is the interference scene of cluster head i to its all sub-cluster head data transmission in the specific embodiment of the present invention;
图3为本发明具体实施方式中簇头i数据传输对同层簇头数据传输的干扰场景;Fig. 3 is the interference scene of cluster head i data transmission to the cluster head data transmission of the same layer in the specific embodiment of the present invention;
图4为本发明具体实施方式中构建及其簇头更新方法无线传感网簇网络结构图;Fig. 4 is a wireless sensor network cluster network structure diagram of building and its cluster head update method in the specific embodiment of the present invention;
图中A-K表示各簇;实线为第1层簇网络;实线内侧靠近A、B位置的第一虚线为第0层簇网络;实线外侧靠近D、E、F位置的第二虚线为第2层簇网络;第二虚线外为第3层簇网络;A-K in the figure represents each cluster; the solid line is the first-layer cluster network; the first dotted line inside the solid line close to A and B is the zero-level cluster network; the second dotted line outside the solid line close to D, E, and F is Layer 2 cluster network; outside the second dotted line is the layer 3 cluster network;
图5为本发明中各簇间的通信关系图,图中箭头粗细程度代表了节点流量分布概率。FIG. 5 is a diagram of the communication relationship between clusters in the present invention, and the thickness of the arrows in the figure represents the probability of node traffic distribution.
图中,箭头粗细程度代表了节点流量分布概率。按照本发明中提出的最小干扰因子路径选择策略,簇K中簇头在选择下一跳时,由于选择簇F的簇头会干扰到簇网络A的簇间数据传输,因此有很大机率选择G而非F。同理,簇网络J中簇头在选择下一跳时,为避免对簇网络I中的数据传输造成影响,会偏向选择E而不是D。In the figure, the thickness of the arrow represents the distribution probability of node traffic. According to the minimum interference factor path selection strategy proposed in the present invention, when the cluster head in cluster K selects the next hop, since the selection of the cluster head of cluster F will interfere with the inter-cluster data transmission of cluster network A, there is a high probability to select G instead of F. Similarly, when the cluster head in cluster network J selects the next hop, in order to avoid affecting the data transmission in cluster network I, it will prefer to choose E instead of D.
具体实施方式Detailed ways
下面结合附图对本发明进行详细描述。The present invention will be described in detail below in conjunction with the accompanying drawings.
在无线传感器网路中,节点状态随着时间不断变化,从而导致网络拓扑结构也不断发生改变。尤其是在传感器节点分布密集的网络中,普通节点的存储和计算能力有限,使用传统传感器网络路由协议集中控制的路由寻找方法,即收集整个网络拓扑、链路状态等信息并计算和维护整条路由显然是不合理的,采用图论方法构建路由具有较大的开销。因此,在无线传感器网络中使用具有良好的可扩展性和通信能力的层次路由来扮演节能路由的角色是很好的选择。In wireless sensor networks, the state of nodes changes with time, which leads to changes in network topology. Especially in a densely distributed network of sensor nodes, ordinary nodes have limited storage and computing capabilities. Traditional sensor network routing protocols are used to centrally control route finding methods, that is, to collect information such as the entire network topology and link status, and calculate and maintain the entire route. Routing is obviously unreasonable, and the use of graph theory to construct routing has a large overhead. Therefore, it is a good choice to use hierarchical routing with good scalability and communication capabilities to play the role of energy-saving routing in wireless sensor networks.
下面结合具体实施例对本发明进一步进行描述。The present invention will be further described below in conjunction with specific embodiments.
如图4所示,一种无线传感网多层次簇结构,存在A-K共11个簇头结构,将网络划分为4层,分别为第0层簇网络、第1层簇网络、第2层簇网络和第3层簇网络;数据通过簇头节点在簇之间传递直至汇聚节点。该簇网络中,逻辑连接关系仅存在于相邻层的簇头间,同层网络的簇头间不存在逻辑连接关系。存在逻辑连接关系的簇头中,将上层网络中的簇头称为父簇头,下层网络中的簇头称为子簇头。As shown in Figure 4, a multi-level cluster structure of a wireless sensor network, there are 11 cluster head structures from A to K, and the network is divided into 4 layers, which are the 0th layer cluster network, the 1st layer cluster network, and the 2nd layer cluster network. Cluster network and layer 3 cluster network; data is passed between clusters through the cluster head node until the sink node. In this cluster network, the logical connection relationship only exists between the cluster heads of adjacent layers, and there is no logical connection relationship between the cluster heads of the same layer network. Among the cluster heads with logical connection relationship, the cluster head in the upper network is called the parent cluster head, and the cluster head in the lower network is called the child cluster head.
其构建方法,主要是通过以汇聚节点为起点,由近及远地完成全网的多层次簇构建;Its construction method is mainly to complete the construction of multi-level clusters of the entire network from near to far, starting from the aggregation node;
具体包括如下步骤,Specifically include the following steps,
在传感器节点部署后,节点间定时发送Hello消息收集相邻的邻居节点信息,使用基于RSSI测距的信标节点定位算法,以汇聚节点为信标节点,建立相对坐标系统,各节点保存其坐标信息;After the sensor nodes are deployed, the nodes regularly send Hello messages to collect the information of adjacent neighbor nodes, use the beacon node positioning algorithm based on RSSI ranging, and use the sink node as the beacon node to establish a relative coordinate system, and each node saves its coordinates information;
步骤A,在网络初始化阶段,以汇聚节点为中心、将传感器节点无线通信半径内的传感器节点划分为第0层簇网络;根据节点是否已经加入到簇结构,将网络中所有节点划分为簇节点和空白节点,簇节点为已经加入到簇结构的节点,反之则为空白节点;Step A, in the network initialization phase, divide the sensor nodes within the wireless communication radius of the sensor nodes into the 0th layer cluster network with the sink node as the center; divide all nodes in the network into cluster nodes according to whether the nodes have joined the cluster structure and a blank node, a cluster node is a node that has been added to the cluster structure, otherwise it is a blank node;
步骤B,使用传感器节点能耗平衡策略方法构建第1层簇网络;Step B, using the sensor node energy balance strategy method to construct the first layer cluster network;
步骤B1,计算步骤A中所述的第0层簇网络中各传感器节点能耗平衡值,并广播簇构建请求消息,节点i的能耗平衡值计算方法如下:Step B1, calculate the energy balance value of each sensor node in the 0th layer cluster network described in step A, and broadcast the cluster construction request message, the calculation method of the energy balance value of node i is as follows:
表示节点i的初始能量,J为节点i所有邻居节点j的集合;||表示集合中元素的个数;d(,)表示两个节点间的欧几里得距离。 Indicates the initial energy of node i, J is the set of all neighbor nodes j of node i; || indicates the number of elements in the set; d(,) indicates the Euclidean distance between two nodes.
步骤B2,在收到所有第0层邻居节点的簇构建消息后,空白节点选择具有最大能耗平衡值的邻居节点作为簇头,通过回复入簇消息请求加入簇结构;Step B2, after receiving the cluster construction messages of all neighbor nodes on the 0th layer, the blank node selects the neighbor node with the largest energy balance value as the cluster head, and requests to join the cluster structure by replying the cluster entry message;
步骤B3,第0层节点在接收到空白节点的入簇消息后,检测其自身是否为目标节点,如果自身为目标节点,则广播成簇消息,通知簇成员节点进入睡眠状态;若节点在簇网络构建时长T超时后仍未收到自身为目标节点的入簇请求消息,则该节点为普通节点并进入睡眠状态;至此,完成第1层簇网络的构建;Step B3, after receiving the cluster entry message from the blank node, the layer 0 node detects whether it is the target node, and if it is the target node, it broadcasts the clustering message to notify the cluster member nodes to enter the sleep state; if the node is in the cluster If the network construction time T expires and still does not receive the clustering request message of itself as the target node, then the node is a normal node and enters the sleep state; so far, the construction of the first layer cluster network is completed;
该步骤中T取2秒,但T可根据网络规模、传感器分布特征、传感器通信半径等进行调整;In this step, T takes 2 seconds, but T can be adjusted according to network scale, sensor distribution characteristics, sensor communication radius, etc.;
步骤C,以簇头能力值为依据,依次建立第1层簇网络的下层簇网络,即建立第2、第3、……第N层簇网络,N≥2;具体步骤为,Step C, based on the cluster head capability value, sequentially establish the lower layer cluster network of the first layer cluster network, that is, establish the second, third,...N layer cluster network, N≥2; the specific steps are,
步骤C1,第N-1层簇网络中各簇成员计算自身簇头能力值,随后广播簇构建请求消息;Step C1, each cluster member in the N-1 layer cluster network calculates its own cluster head capability value, and then broadcasts a cluster construction request message;
首先,判断节点i担任簇头角色时该簇的稳定值Si,计算公式如下:First, judge the stable value S i of the cluster when node i assumes the role of cluster head, the calculation formula is as follows:
Mi为节点i在第同层簇网络中邻居节点集合,r为通信半径,d(,)表示两个节点间的欧几里得距离,和分别表示节点j的剩余能量和初始能量;M i is the set of neighbor nodes of node i in the cluster network of the same layer, r is the communication radius, d(,) represents the Euclidean distance between two nodes, and represent the remaining energy and initial energy of node j respectively;
然后,计算节点簇头能力值,Then, calculate the node cluster head capability value,
Zi为节点i通信半径范围内的空白节点集合;为Zi中的各节点上报数据量的数学期望;Pi为位于节点i通信半径内,且归属于第N-2层簇网络中簇头的集合;||表示集合中元素的个数;Z i is the set of blank nodes within the communication radius of node i; is the mathematical expectation of the amount of data reported by each node in Z i ; P i is located within the communication radius of node i and belongs to the set of cluster heads in the N-2 layer cluster network; || indicates the number of elements in the set;
步骤C2,在收到来自第N-1层邻居节点的簇构建消息后,将其簇头能力值保存至邻居表中。在接收到所有上层邻居簇头的簇构建消息后,选择其中具有最大簇头能力值的作为自身簇头,回复入簇消息;Step C2, after receiving the cluster construction message from the neighbor nodes on layer N-1, save the cluster head capability value in the neighbor table. After receiving the cluster construction messages of all upper neighbor cluster heads, select the cluster head with the largest cluster head capability value as its own cluster head, and reply the cluster entry message;
步骤C3,第N-1层节点在接收到第N层节点的入簇消息后,检测其自身是否为目标节点,如果自身为目标节点,则广播成簇消息,通知簇成员节点进入睡眠状态;若节点在簇网络构建时长T=2秒超时后仍未收到自身为目标节点的入簇请求消息,则该节点为普通节点并进入睡眠状态;至此,完成第N层簇网络的构建;Step C3, after receiving the cluster entry message of the Nth layer node, the N-1 layer node detects whether it is a target node, if it is a target node, broadcasts a clustering message, and notifies the cluster member nodes to enter the sleep state; If the node has not received the clustering request message that itself is the target node after the time-out of the cluster network construction time T=2 seconds, then the node is a normal node and enters the sleep state; so far, the construction of the Nth layer cluster network is completed;
该步骤中T取2秒,但T可根据网络规模、传感器分布特征、传感器通信半径等进行调整;In this step, T takes 2 seconds, but T can be adjusted according to network scale, sensor distribution characteristics, sensor communication radius, etc.;
步骤C4,重复步骤C1-C3,直至完成整个无线传感网的簇网络构建;Step C4, repeat steps C1-C3 until the cluster network construction of the entire wireless sensor network is completed;
本步骤中承担第N层簇头以及这些簇头覆盖的成员节点构成了第N层簇网络。In this step, the cluster heads of layer N and the member nodes covered by these cluster heads constitute the cluster network of layer N.
上述无线传感网多层次簇结构中簇头更新方法,具体包括如下步骤,The method for updating the cluster head in the multi-level cluster structure of the above-mentioned wireless sensor network specifically includes the following steps,
步骤A,簇头i依据剩余能量、流量负载等因素,采用下式评估是否能够满足继续担任簇头,若下式不满足,转步骤B进行簇更新;In step A, cluster head i uses the following formula to evaluate whether it can continue to serve as the cluster head according to the remaining energy, traffic load and other factors. If the following formula is not satisfied, go to step B for cluster update;
表示簇头i的剩余能量,表示簇头i的在一轮数据传输中消耗能量的平均值,Ci为簇头i的子簇头集合,Ui为簇头i所在簇的成员节点集合;以簇头i的簇成员节点j上报数据量的数学期望,Li、Lj分别表示簇头i及其子簇头j的流量负载的数学期望; Indicates the remaining energy of the cluster head i, Indicates the average energy consumption of cluster head i in a round of data transmission, C i is the set of sub-cluster heads of cluster head i, and U i is the set of member nodes of the cluster where cluster head i is located; Taking the mathematical expectation of the amount of data reported by cluster member node j of cluster head i, L i and L j represent the mathematical expectation of the traffic load of cluster head i and its sub-cluster head j respectively;
步骤B,簇头i通过广播簇更新消息,通知其邻居节点该进入簇头更新状态;随后邻居节点j根据双方位置、j的剩余能量及所在层次的相邻两层中的邻居簇头信息,按下式计算自身的簇头能力值,Step B, the cluster head i notifies its neighbor nodes to enter the cluster head update state by broadcasting the cluster update message; then the neighbor node j according to the positions of both parties, the remaining energy of j and the neighbor cluster head information in the two adjacent layers of the level, Calculate its own cluster head capability value according to the following formula,
d(,)表示簇头i与节点j的欧几里得距离,表示节点j的剩余能量,Cj表示节点j的通信半径内下层网络中簇头集合,Pj表示节点j通信半径内上层网络中簇头集合,Pk表示节点j的通信半径内下层网络中簇头的父簇头集合,J为簇头i所有邻居节点j的集合;||表示集合中元素的个数;d(,) represents the Euclidean distance between cluster head i and node j, Represents the remaining energy of node j, C j represents the set of cluster heads in the lower network within the communication radius of node j, P j represents the set of cluster heads in the upper network within the communication radius of node j, P k represents the set of cluster heads in the lower network within the communication radius of node j The parent cluster head set of the cluster head, J is the set of all neighbor nodes j of the cluster head i; || indicates the number of elements in the set;
步骤C,簇头i推选具有最大簇头能力值的节点作为新簇头,再分别由簇头i、新簇头在各自通信半径内广播簇头更换消息,并完成角色转换;Step C, the cluster head i selects the node with the largest cluster head capability value as the new cluster head, and then the cluster head i and the new cluster head broadcast the cluster head replacement message within their respective communication radius, and complete the role switching;
步骤D,收到簇头i的簇头更换消息、但未收到来自新簇头的簇头更换消息的节点根据邻居表判断其通信范围内是否有簇头邻居,如有则向簇头能力值最大的邻居簇头发送请求加入消息,否则进入孤立节点状态。孤立节点选择剩余能量最大的邻居节点中继数据,后期网络运行过程中,如收到新簇头广播消息时加入具有最大簇头能力值的簇;Step D, the node that has received the cluster head replacement message from cluster head i but has not received the cluster head replacement message from the new cluster head judges whether there are cluster head neighbors within its communication range according to the neighbor list, and if so, sends a report to the cluster head capability The neighbor cluster head with the largest value sends a request to join message, otherwise it enters the isolated node state. The isolated node selects the neighbor node with the largest remaining energy to relay data, and in the later stage of network operation, if it receives a new cluster head broadcast message, it joins the cluster with the largest cluster head capability value;
步骤E,簇更新造成的孤立簇执行步骤B和C进行簇更新。Step E, the isolated cluster caused by the cluster update performs steps B and C to update the cluster.
一种无线传感网簇间分布式路由方法,从前述的无线传感网多层次簇构建方法得到逻辑上存在多连接关系虚拟簇头网络进行树状分布式路由。本发明使用干扰因子作为选择下一跳节点的依据。具体方案如下:A distributed routing method among wireless sensor network clusters, obtained from the foregoing wireless sensor network multi-level cluster construction method to obtain a logically multi-connection virtual cluster head network for tree-like distributed routing. The present invention uses the interference factor as the basis for selecting the next hop node. The specific plan is as follows:
步骤A,簇头间通过Hello消息交换彼此的逻辑连接关系、簇头负载预测值以及自身的干扰因子,并将其记录入各自的邻居表中;Step A, the cluster heads exchange each other's logical connection relationship, cluster head load prediction value and their own interference factors through Hello messages, and record them in their respective neighbor tables;
邻居表中,标记出簇网络构建过程中直接形成的簇头间父、子、同层关系;In the neighbor table, the parent, child, and peer relationships between cluster heads formed directly during the cluster network construction process are marked;
本步骤中簇头i负载预测值的计算公式如下,In this step, the calculation formula of the cluster head i load prediction value is as follows,
Li、Oj分别表示簇头i及其子簇头j的负载预测值,Pj表示簇头j的父簇头集合,Ci表示簇头i的子簇头集合,Ui为簇头i所在簇的成员节点集合,表示以i为簇头的簇内成员节点j上报数据量的数学期望;||表示集合中元素的个数。L i , O j represent the load prediction value of cluster head i and its sub-cluster head j respectively, P j represents the parent cluster head set of cluster head j, C i represents the sub-cluster head set of cluster head i, U i is the cluster head The set of member nodes of the cluster where i belongs to, Indicates the mathematical expectation of the amount of data reported by member node j in the cluster with i as the cluster head; || indicates the number of elements in the set.
步骤B,更新与维护簇头i数据传输对邻居簇头数据传输的干扰因子;Step B, update and maintain the interference factor of data transmission of cluster head i on the data transmission of neighboring cluster heads;
本步骤中确定簇头i数据传输对邻居簇头的数据传输干扰因子的更新与维护,计算公式如下,In this step, the update and maintenance of the data transmission of cluster head i to the data transmission interference factor of neighboring cluster heads is determined, and the calculation formula is as follows,
右边第一项计算簇头i对其父簇头集合中所有成员的子簇头数据传输的干扰程度(图1);第二项计算簇头i对其子簇头中所有成员数据传输的干扰程度(图2);第三项计算簇头i对所有同层邻居簇头数据传输的干扰程度(图3);The first item on the right calculates the interference degree of cluster head i to the data transmission of sub-cluster heads of all members in its parent cluster head set (Figure 1); the second item calculates the interference degree of cluster head i to the data transmission of all members of its sub-cluster heads degree (Figure 2); the third item calculates the interference degree of cluster head i to the data transmission of all neighbor cluster heads on the same layer (Figure 3);
Pi、Pk分别为簇头i和k的父簇头集合,Cj为簇头j的子簇头集合,Ci表示簇头i的子簇头集合,Mi为簇头i通信半径范围内同层簇头集合,Lk表示簇头k的负载预测值;||表示集合中元素的个数。P i , P k are the parent cluster head sets of cluster head i and k respectively, C j is the sub-cluster head set of cluster head j, C i is the sub-cluster head set of cluster head i, M i is the communication radius of cluster head i The set of cluster heads at the same level within the range, L k represents the load prediction value of cluster head k; || represents the number of elements in the set.
步骤C,下层网络簇头j以所计算的各父簇头干扰因子为依据,确定各父簇头为下一跳的概率;Step C, the cluster head j of the lower layer network determines the probability that each parent cluster head is the next hop based on the calculated interference factors of each parent cluster head;
计算方法如下,The calculation method is as follows,
Pj表示簇头j的父簇头集合,IFj,i为簇头j的父簇头i的干扰因子,IFj,k为簇头j的父簇头k的干扰因子;Xj为簇头j通过Hello消息已获取干扰因子值的邻居簇头数量,未获取干扰因子的簇头i干扰因子值IFi为0,且被选作下一跳的概率为||表示集合中元素的个数。P j represents the parent cluster head set of cluster head j, IF j,i is the interference factor of cluster head i's parent cluster head i, IF j,k is the interference factor of cluster head j's parent cluster head k; X j is the cluster The number of neighbor cluster heads that head j has obtained the interference factor value through the Hello message, and the interference factor value IF i of the cluster head i that has not obtained the interference factor is 0, and the probability of being selected as the next hop is || indicates the number of elements in the set.
以上所述仅为本发明的实施例而已,并不用于限制本发明。本发明可以有各种合适的更改和变化。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only examples of the present invention, and are not intended to limit the present invention. Various suitable modifications and variations are possible in the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710527349.4A CN107318142B (en) | 2017-06-30 | 2017-06-30 | A Distributed Routing Method Between Clusters of Wireless Sensor Networks |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710527349.4A CN107318142B (en) | 2017-06-30 | 2017-06-30 | A Distributed Routing Method Between Clusters of Wireless Sensor Networks |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107318142A CN107318142A (en) | 2017-11-03 |
| CN107318142B true CN107318142B (en) | 2019-09-27 |
Family
ID=60181286
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710527349.4A Active CN107318142B (en) | 2017-06-30 | 2017-06-30 | A Distributed Routing Method Between Clusters of Wireless Sensor Networks |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107318142B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109644838B (en) * | 2019-01-28 | 2020-09-29 | 温州华隆建设有限公司 | Gardens water-saving irrigation device |
| CN111405634B (en) * | 2020-02-26 | 2022-03-04 | 中国空间技术研究院 | A wireless sensor network adaptive clustering method and device |
| CN113613307B (en) * | 2021-07-15 | 2023-08-04 | 天津(滨海)人工智能军民融合创新中心 | On-demand routing method based on local active routing assistance |
| CN113825219B (en) * | 2021-11-10 | 2022-06-24 | 慕思健康睡眠股份有限公司 | Human body data collecting method and device |
| CN114900871A (en) * | 2022-05-31 | 2022-08-12 | 长春工业大学 | Wireless sensor network clustering method based on affinity propagation and chaos lion group |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101360051A (en) * | 2008-07-11 | 2009-02-04 | 西安电子科技大学 | An Energy Efficient Routing Method for Wireless Sensor Networks |
| CN101848523A (en) * | 2010-03-05 | 2010-09-29 | 北京北大众志微系统科技有限责任公司 | Path selecting method in multi-channel wireless mesh network and device thereof |
| CN104982070A (en) * | 2013-02-07 | 2015-10-14 | 交互数字专利控股公司 | Method and apparatus for selecting routing paths in a mesh network |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8630222B2 (en) * | 2011-02-24 | 2014-01-14 | The Hong Kong University Of Science And Technology | Delay-constrained and energy-efficient online routing for asynchronous sensor networks |
-
2017
- 2017-06-30 CN CN201710527349.4A patent/CN107318142B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101360051A (en) * | 2008-07-11 | 2009-02-04 | 西安电子科技大学 | An Energy Efficient Routing Method for Wireless Sensor Networks |
| CN101848523A (en) * | 2010-03-05 | 2010-09-29 | 北京北大众志微系统科技有限责任公司 | Path selecting method in multi-channel wireless mesh network and device thereof |
| CN104982070A (en) * | 2013-02-07 | 2015-10-14 | 交互数字专利控股公司 | Method and apparatus for selecting routing paths in a mesh network |
Non-Patent Citations (1)
| Title |
|---|
| 基于分簇的无线传感器网络路由协议研究;彭铎;《中国优秀硕士学位论文全文数据库》;20091115;第4.3.4节 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107318142A (en) | 2017-11-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107333314B (en) | A kind of building of wireless sense network cluster and its cluster head update method | |
| CN107318142B (en) | A Distributed Routing Method Between Clusters of Wireless Sensor Networks | |
| Elhabyan et al. | Two-tier particle swarm optimization protocol for clustering and routing in wireless sensor network | |
| CN102036308B (en) | Energy balancing wireless sensor network clustering method | |
| Prasanth et al. | Implementation of efficient intra-and inter-zone routing for extending network consistency in wireless sensor networks | |
| Li et al. | Power-aware routing protocols in ad hoc wireless networks | |
| Anupama et al. | Survey of cluster based routing protocols in mobile adhoc networks | |
| CN102448138A (en) | Clustering method of wireless sensor network hierarchical routing protocol | |
| CN101360033A (en) | Clustering Method for Mobile Ad Hoc Networks Based on State Mechanism | |
| CN104469879B (en) | A kind of dynamic k value cluster routing methods | |
| Mitra et al. | A survey on clustering techniques for wireless sensor network | |
| CN111556550A (en) | Routing method for unmanned aerial vehicle network communication | |
| CN107690167B (en) | Extensible wireless sensor network clustering method | |
| CN110121200B (en) | An Energy Efficient Networking Method in Heterogeneous Sensor Networks | |
| CN105246117B (en) | An implementation method of an energy-saving routing protocol suitable for mobile wireless sensor networks | |
| CN110493797A (en) | Wireless sensor network topology control algolithm based on sub-clustering optimization | |
| CN109511152B (en) | Balanced clustering method for perception monitoring of terminal communication access network | |
| CN107690168B (en) | Extensible networking method for wireless sensor network | |
| CN102883399B (en) | Cluster-based CTP (coordinated test program) routing protocol | |
| CN112351467B (en) | Energy-saving building and transmission routing method for wireless heterogeneous communication network | |
| CN106879041A (en) | Design of Clustering Algorithm and Routing Protocol in Ad Hoc Network | |
| CN108650137A (en) | Wireless sensor network node is made decisions on one's own formula Routing Protocol | |
| El-Bazzal et al. | A flexible weight based clustering algorithm in mobile ad hoc networks | |
| Dhamodharavadhani | A survey on clustering based routing protocols in Mobile ad hoc networks | |
| CN102630086A (en) | Gabriel graph-based data communication method of wireless sensor network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |