Background technology
Wireless sensor network is a kind of network of foundation-free facility, and it is by one group of sensor node with wireless Ad Hoc sideFormula is constituted, the information of perceptive object the purpose is to collaborative sensing, collection and in treatment network coverage geographic area, and to these numbersAccording to being processed, most at last these information transmissions to the user for needing, and this requires that WSN possesses data fusion reliably and with long-termFunction.The computing capability of WSN nodes, wireless bandwidth and limited battery capacity, cluster head route belong to hierarchical clustering associationView, the data volume for being transferred to node is reduced by performing data aggregation and fusion, reduces each node energy consumption in class, is a kind of effectiveImprove the solution of energy efficiency.Data fusion technique is to be processed many numbers evidence or information, is combined into more effectively, moreMeet the process of the data of user's request, it is possible to reduce the network traffics of redundancy.It is not all in most applicationSensor is all isomorphism, and being directed to the routing algorithm of isomorphism can not well reduce the energy of whole network under heterogeneous networkAmount consumption, easily causes local nodes overload and energy is consumed excessively, and the working life of WSN is greatly reduced.TowardsIn the application of data fusion, network working life and transmission reliability are primarily to pursue a goal.Sensor is data acquisition, dataThe critical component for the treatment of, a physical quantity in physical world can be mapped to a quantitative measured value, make people couple by itPhysical world is formed and quantifies understanding.Sensor equipment has a sensing module such as sound, light, magnetic, vision etc. for perceiving surrounding generationPhysical quantity in boundary a, digital signal processing module is used for the signal for processing sensing module collection and the work(for completing procotolCan, a radio transceiver chip is used to communicate and a power module is for the various operations of sensor provide energy.It is existingTechnical scheme, the wireless sensor network system from special screne application.Wireless sensor network system substantially fourThe individual stage:1. substantial amounts of sensor node is randomly dispersed in Target monitoring area;2. pair network carries out network topology planning;3., it is necessary to the valid data that each sensor is collected pass node and base station back in time, accurately in data-gathering process;4. passSensor node gathers substantial amounts of, real time data and is compressed treatment.There is following restrictive condition in technical scheme above:1. power supplyIt is limited:Because wireless sensor network is typically configured in remote districts or the more unattainable natural environment of staff,Therefore the power supply in sensor node is difficult to change.And the small volume of sensor node, so as to cannot be equipped with for it large-scaleEnergy supply device.2. disposal ability is limited:Due to the limitation of volume, processing unit adds sensor using microprocessorThe limited power of node, therefore the disposal ability of processor is limited.Sensor node cannot run large-scale application program and placeManage substantial amounts of application data.3. storage capacity is limited:On the premise of volume, limited power, sensor node using capacity compared withSmall microprocessor stores a small amount of sensed data and short and small application program.4. communication distance is limited:Sensor node is adoptedCommunicated with radio.Its communication range radius is the circle (r is maximum communication distance) of r in the ideal situation, in communication modelAll the sensors node in enclosing can be in communication with each other.Because communication distance is bigger, energy consumption is bigger, thus sensor node energyAmount is limited to cause its communication distance to be limited.Wireless sensor network node finite energy and typically no energy supplement, therefore roadNeeded efficiently to utilize energy by agreement.Energy consumption is mainly reflected in collection, communication and data processing this several respect, and energy lossKey is in network layer communication.Routing Protocol is the core technology of wireless sensor network layer, and node can only obtain local topology knotStructure information, Routing Protocol will can select suitable path in partial network information ground foundation.Traditional Routing Protocol can not be straightConnect for sensor networking, and be directed to MANET design networking and communication protocol be generally not suitable for sensor network.1. traditionalThe design object of Routing Protocol is mainly high-quality service, the consideration in terms of lacking to energy-conservation, and the master of sensor network protocolBe related to target be reduce energy loss, improve network lifecycle, it is considered to performance indications it is inconsistent.Conventional routing protocols are simultaneouslyIt is inapplicable.2. legacy protocol causes to lead to the critical path for collecting node with shortest path or minimum delay as optimization aim, necessarilyNode energy exhausts rapidly on footpath, shortens network lifecycle, while change in topology is too fast, does not meet the design mesh of Routing ProtocolMark.3. legacy protocol reaches the requirement of routing convergence in global scope can cause the limited sensor network nodes of computing capabilityOverload, same causes some node pre-mature exhaustion energy, is unfavorable for network stabilization.4. the group for being proposed for MANETNet and communication protocol, are also generally unfit in sensor network.
In sum, the consideration in terms of traditional Routing Protocol lacks to energy-conservation, and autgmentability does not reach sensor yetThe requirement at networking, conventional routing protocols can not be applicable;Node energy exhausts rapidly on towards the critical path for collect node;It is limitedSensor network nodes overload.
The content of the invention
It is an object of the invention to provide the cluster head election in a kind of energy heterogeneous wireless sensor network and its rotation sideMethod, it is intended to solve the consideration in terms of traditional Routing Protocol lacks to energy-conservation, and autgmentability does not reach sensor networking yetIt is required that, conventional routing protocols can not be applicable;Node energy exhausts rapidly on towards the critical path for collect node;Limited sensingThe problem of device network node overload.
The present invention is achieved in that cluster head election and its rotation side in a kind of energy heterogeneous wireless sensor networkMethod, is roughly divided into startup stage and stabilization sub stage, and in startup stage, sensor node selection random number, random number is less than threshold value T(ni) node as cluster head, transmitted in stabilization sub stage, node continuous collecting data and to cluster head, cluster head is by the node in the clusterThe data for transmitting are sent to sink nodes after carrying out fusion treatment.Because each node energy is different, threshold value T (ni) also different, oftenOne wheel chooses cluster head using the method for cluster head rotation.Cluster head election and its rotation in the energy heterogeneous wireless sensor networkMethod is comprised the following steps:
Step one, cluster head chooses stage, the node different for primary power, the threshold value T (n of generationi) also different, it is inThe sensor node of active state can generate the random number between 0-1, if this number is less than its corresponding threshold values T (n), shouldNode is elected as cluster head;
Step 2, the establishment stage of cluster, after cluster head node is produced, actively to this message of all node broadcasts in network;The sensor node for being not selected as cluster head selects optimal cluster head, and sends the solicited message for adding the cluster;Cluster head is received pleaseAfter asking, node is set to member in cluster;After cluster is formed, cluster head informs to be each node distribution one in cluster by broadcast modeIndividual tdma communication time slot;Only in one's own time slot, member node just can send data to cluster head node;
Step 3, transmits the stabilization sub stage of data, for aggregation and processing data, route data;Node gathered data is rightData are merged.
Further, the step 2 is specifically included:
(1) P is elected in each roundoptN number of leader cluster node, wherein PoptIt is optimization cluster head ratio, is also probability-weighted, NIt is total nodal point number of whole network;N-thiIndividual node is by following threshold value T (ni) (probability threshold) come decide whether turn into cluster headNode:
Wherein, r is current wheel number, and G is nearestDo not have to turn into the node set of cluster head in wheel;EachNode has the opportunity to turn into the more leader cluster node of consumed energy in turn;
E0Represent the primary power of ordinary node, a1,a2,...,anThe ratio shared by n kind special joints, b are represented respectively1,b2,...,bnRepresent that special joint primary power exceedes the multiple of ordinary node primary power respectively;
a1N,a2N,...,anThe primary power of N number of special joint is respectively E0(1+b1),E0(1+b2),...,E0(1+bn),Remaining (1-a1-a2,...-an) N number of ordinary node primary power be E0(1+bn);
The total primary power of multi-tier Heterogeneous network is:
It is assumed that N number of sensor node is evenly distributed on the border circular areas that a radius is A at random, sink nodes are located at regionCentre, the gross energy that is consumed is during each round sends data to cluster head:
Wherein, l is cluster head number, EelecRepresent the energy consumed per bit data during operation transmission circuit or receiving circuitAmount, EDAThe cost of data fusion is performed for cluster head,It is cluster head to the average distance of sink nodes,It is bunch member nodeTo the average distance of leader cluster node, εampd4sinkWithIt is the energy of amplifier consumption.
It is calculated
To EroundLocal derviation is sought on l, and it is 0 to make the partial derivative, then optimal cluster head number is
Obtain the energy sum E that network is consumed in each roundround.Meanwhile,
The initial total energy E of networktotal, it is known that RtotalIt is the estimate of network lifecycle, also can obtain
Rtatal=Etotal/Eround
Different probability-weighted P are taken according to its primary power to this n+1 kinds nodei:
(2) the present energy E that node i is taken turns in riR () chooses its cluster head T turnaround timei,Represent network in rThe average energy of wheel, withAs reference energy and the present energy E of nodeiR () is made comparisons, obtain:
Wherein, PoptIt is optimization cluster head ratio;
The average energy of each node of network is after r wheels:
Substitute intoIt is calculated probability-weighted Hi(r);
Obtain the probability threshold of each node.
Cluster head election and its shift process in the energy heterogeneous wireless sensor network that the present invention is provided, cluster set up rankSection, only in one's own time slot, member node just can send data to cluster head node, it is ensured that the communication in cluster is notThere is conflict;The stabilization sub stage of data is transmitted, for aggregation and processing data, route data;Data are entered by node gathered dataRow fusion, so can not only reduce the transmission of redundant data, while improving transmission reliability.
The present invention improves the overall equilibrium degree of offered load while WSN data transmission credibilities are ensured, effectively reducesData redundancy and reduction node energy loss, so as to extend the working life of WSN;Combine sensor technology, embedding people's formula meterCalculation technology, modern network and wireless communication technology, distributed information processing etc., can be by all kinds of integrated miniature biographiesSensor collaboratively real-time monitoring, the data danger for perceiving and gathering various monitoring objects, data are wirelessly sent, and withUser terminal is sent to from the network mode of group multi-hop, so as to realize that people study the purpose of nature.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to embodiments, to the present inventionIt is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used toLimit the present invention.
Application principle of the invention is explained in detail below in conjunction with the accompanying drawings.
As shown in figure 1, cluster head election and its wheel in energy heterogeneous wireless sensor network provided in an embodiment of the present inventionThe method of changing is comprised the following steps:
S101:Cluster head chooses the stage, and the node different for primary power, the threshold value of generation is also different, in enlivening shapeThe sensor node of state can generate the random number between 0-1, if this number is less than its corresponding threshold values T (n), the node is worked asElect cluster head as;
S102:The establishment stage of cluster, after cluster head node is produced, actively to this message of all node broadcasts in network;NotThe sensor node for being selected as cluster head selects optimal cluster head, and sends the solicited message for adding the cluster;Cluster head receives requestAfterwards, node is set to member in cluster;After cluster is formed, cluster head informs to be each node distribution one in cluster by broadcast modeTdma communication time slot;Only in one's own time slot, member node just can send data to cluster head node;
S103:The stabilization sub stage of data is transmitted, for aggregation and processing data, route data;Node gathered data, logarithmAccording to being merged.
Specifically include in step s 102:
N number of sensor node is had in network to be evenly distributed at random in the border circular areas that a radius is A, cluster coveringArea size is limited in the region that radius is r, i.e., the node in cluster head communication radius r could turn into this cluster member.
Assuming that sensor network has following property:
A) sensor node is fixed.
B) Sink node is deployed in a fixed position beyond region A × A, and Sink node is unique.
C) network need not be safeguarded artificially after disposing.
D) sensor network interior joint is energy heterogeneous.
E) sensor node is in the direct communications range of other nodes, and directly can be communicated with Sink node.
F) node location has randomness, and without equipment GPS, can not know its specific position by the method for measuringPut.
The present invention is obtained on the basis of homogeneous network cluster head routing algorithm.
During isomorphism, in order to be balanced the load in all-network node, about PN leader cluster node is elected in each round, itsMiddle P is optimization cluster head ratio, is also herein probability-weighted.Each node is decided whether to turn into by following probability thresholdLeader cluster node:
Wherein, r is current wheel number, and G is nearestDo not have to turn into the node set of cluster head in wheel;EachNode has the opportunity to turn into the more leader cluster node of consumed energy in turn.
Ordinary node (Normal node) and n kinds special joint (Special node) are included in network, they have notSame primary power.
If E0Represent the primary power of ordinary node, a1,a2,...,anThe ratio shared by n kind special joints is represented respectively,b1,b2,...,bnRepresent that special joint primary power exceedes the multiple of ordinary node primary power respectively.
a1N,a2N,...,anThe primary power of N number of special joint is respectively E0(1+b1),E0(1+b2),...,E0(1+bn),Remaining (1-a1-a2,...-an) N number of ordinary node primary power be E0(1+bn)。
The total primary power of multi-tier Heterogeneous network is:
Different probability-weighted P are taken according to its primary power to this n+1 kinds nodei:
The wheel number that special joint turns into cluster head is less than ordinary node so that special joint is as the chance of cluster head more than generalLogical node turns into the chance of cluster head.
First run data transfer is completed, into next round.
Changed by the energy of first round part of nodes, in addition it is also necessary to counted again with reference to the present energy situation of each nodeNew probability-weighted Hi(r)。
The present energy E that the present invention is taken turns based on node i in riR () chooses its cluster head T turnaround timei.Due to node toolThere are different present energies, the probability-weighted H of high-energy nodeiR () should be bigger than low energy node, can just make network uniformGround consumed energy is extending the life cycle of network.
IfThe average energy that network is taken turns in r is represented, withAs reference energy and the present energy E of nodeiR () is made comparisons, obtain:
Wherein, PoptIt is optimization cluster head ratio.
The present energy E of nodeiR () can directly measure, and average energyIt is difficult to obtain, it is necessary to be estimated.
It is assumed that sink nodes are located in the middle of border circular areas, the data of k bits are sent to cluster head, in the energy of each round consumptionMeasure and be:
Wherein, l is cluster head number, EelecRepresent the energy consumed per bit data during operation transmission circuit or receiving circuitAmount, EDAThe cost of data fusion is performed for cluster head,It is cluster head to the average distance of sink nodes,It is bunch member nodeTo the average distance of leader cluster node, εampd4sinkWithIt is the energy of amplifier consumption.
It is calculated
To EroundLocal derviation is sought on l, and it is 0 to make the partial derivative, then optimal cluster head number is:
Obtain the energy sum E that network is consumed in each roundround。
The initial total energy E of networktotalIt is known, then the estimate of network lifecycle also can obtain:
Rtatal=Etotal/Eround;
Ideally each node is roughly the same in the energy that each round is consumed, and each node of network is flat after r wheelsEqual energy is:
Substitute intoIt is calculated probability-weighted Hi(r)。
Substitute into, obtain the probability threshold of each node.
To ensure that sensor node cluster head will not be overweight and dead because of traffic load, the dump energy threshold value for setting cluster head isEmin, when node present energy is less than threshold value, it is no longer participate in the selection of cluster head.
Step S104 of the invention is specifically included:
After cluster is formed, into the stabilization sub stage, stable state operation is made up of several time frames.
Each leader cluster node serves as expeditor and control centre's effect of data transfer in respective cluster, and leader cluster node isThe data transmission conflict between cluster interior nodes is avoided, the packet that cluster interior nodes are gathered is received successively using time division multiplex strategy.
Be processed the data of each node in cluster such as data fusion by leader cluster node, centralized calculation etc., then will be after processingData is activation give certain gateway node, the gateway node is transferred to s ink nodes again after data are reprocessed.
The step of data fusion, specifically includes:
Aggregators of the sensor node as the cluster, i.e. cluster head are selected in each cluster;
Determine the data fusion mode of the network, including:
(1) data fusion in layer.Data fusion is that the sensor that receives in the cluster of each cluster head of this layer is adopted in layerThe all information for collecting, and the data fusion for carrying out;
(2) inter-layer data fusion.Inter-layer data fusion is that the aggregators of this layer receive other layer of all letters of transmissionBreath, and the data fusion for carrying out;
Determine the data transfer mode of network, including:
The comentropy that sensor in each cluster is collected it is transferred to the aggregators of the cluster;
The cluster head of each cluster gives the information transfer after data fusion in the layer and inter-layer data fusion than bagLayer where including the cluster apart from sink nodes closer to layer aggregators;
The aggregators of each layer only have in the completion layer after data fusion and inter-layer data fusionContinue to transmit the information after the data fusion;
Comentropy after the data fusion is finally delivered to the aggregation node.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the inventionAny modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.