Background technology
Energy of wireless sensor network is limited is the of paramount importance factor restricting radio sensing network, just node failure is meaned once depleted of energy, the loss of data may be caused or cannot transmit, because wireless sensor network is often operated in bad environments or more dangerous search coverage, so it is very difficult to change battery.
The progress of cell hardware is slower in recent years, researcher is converted to the research to network routing protocol direction gradually, when traditional AODV protocol needs to set up route in AODV agreement, first source node broadcasts a route requests (Route Request, RREQ) grouping.When intermediate node receives RREQ, first the information provided according to this RREQ is established to the reverse route of upper hop, then the routing table of oneself is searched, if find that there is the effective routing of destination node, so transmit route replies (Route Replay, RREP) grouping by reverse route.If be not found to the effective routing of destination node, so just the RREQ received is broadcast to neighbor node, until this RREQ arrives destination node, generates RREP by destination node, and pass to source node along the reverse route set up.As shown in Figure 8, No. 0 node is source node, and No. 11 nodes are destination nodes.No. 0 node sends request message RREP to set up its route to No. 11 nodes, and just initiate to reply message RREQ to No. 0 source node until No. 11 destination nodes receive request message, the final path set up is { 0,7,10,11}.When same route requests message RREQ has some different reply message RREP, source node is by according to the destination node sequence number marked in all reply message RREP, choosing the destination node sequence number marked in RREP is that message is replied in maximum conduct, or mark in RREP destination node sequence number identical time, choose the minimum conduct of jumping figure in RREP and reply message, thus set up route according to reply message.
Energy of wireless sensor network problem has become study hotspot now and difficult point, what traditional wireless sensor network route discovery strategy adopted is AODV agreement, AODV agreement is by setting up route to the whole network broadcast route request message, but on the basis in the direction of known destination node, some unnecessary broadcast can be formed.
Summary of the invention
The object of the present invention is to provide a kind of low-power consumption directional broadcasting method for wireless sensor network that can improve a lot of network performances of wireless sensor network.
The object of the present invention is achieved like this:
The first step: initialization network topology
Wireless sensor node is after deployment, according to from the known coordinate information of sink node, carry out Coordinate Conversion, determine the position of destination node in the coordinate system being the origin of coordinates with work at present node, with the positive direction that this direction is x-axis, determine the coordinate system of working node;
Second step: divide sector region
According to the x-axis direction determined with x-axis be angular bisector with 2/3 π for of drift angle determination sensing scope is fan-shaped, divide equally another two fan-shaped;
3rd step: determine sensing radius
Fan-shaped according to what obtain, each fan-shaped in namely to increase through-put power by increasing sensing radius method search neighbor node, make each fan-shaped at least existence neighbor node, neighbor node is numbered according to place is fan-shaped, number information is inserted in the middle of packet;
4th step: directional broadcasting
Using directed broadcast in route finding process, the node having marked the fan-shaped numbering of orientation is received to the RREQ message of source node broadcast, the node IP address that message comprises, energy information, fan-shaped numbering, broadcast type relevant information, carry out the process of write nodal information, receive source node broadcast packet but not belong to directed fan-shaped node the broadcast packet received is carried out packet loss process, determination methods is according to forward node criterion;
5th step: route discovery
The node receiving RREQ message judges node for the purpose of oneself whether, if not destination node, then carry out the first step to the iteration process of the 4th step thus build route, if destination node then route construction success, the opposite direction along constructed route carries out transmission data manipulation.
The present invention is the technical research that the agreement being AODV based on Wireless Sensor Network Routing Protocol is improved, and devise a kind of route discovery algorithm (DB_AODV) of directional broadcasting, the method has the following advantages:
(1) DB_AODV agreement is compared traditional AODV agreement and is improved a lot at Packet delivery fractions, group delivery ratio is an index describing network quality, for representing that the packet sent out from source node within a certain period of time can be successfully transmitted to the ratio of destination node.Scale in an experiment by changing topological structure is tested and is added the AODV agreement of directional broadcasting algorithm and the performance (see figure 5) of puppy parc.
(2) degree of communication: network just can be made not to be communicated with if sensor network at least will remove k sensor node, this just claims network k to be communicated with, or the degree of communication claiming network is k.Topology controls generally to ensure that network is communicated with (1 is communicated with).No matter be radio frequency network, ADHOC network, or wireless sensor network are all utilize the multi-hop transmission between two nodes to connect, so the degree of communication of topology is most important.So Topology Control Algorithm must ensure the connectedness of network, this is also the most basic demand that topology controls.In the whole process of algorithm, along with dissipation of energy, node can exit network because exhausting energy gradually, this will certainly cause the direct impact on degree of communication, herein after regular hour experiment, by weighing the degree of communication of topology to the ratio of working node in total node be communicated with, as shown in the figure, the a very long time advantage of degree of communication in algorithmic procedure is unconspicuous, but after algorithm carries out a period of time, due to the increase of each broadcast node dissipation energy of AODV, algorithm still can ensure certain degree of communication.(see figure 6).
(3) network energy loss: the load of network topology balancing energy is the comprehensive important indicator considering network performance, energy consumption level have recorded the energy total value consumed at all nodes of a certain operation time, DB_AODV algorithm can make single node broadcasting efficiency in topology improve 67%, and overall energy consumption reduces about 20%(and sees Fig. 7).
Embodiment
Energy of wireless sensor network problem is the technological difficulties that govern Internet of Things development always, wireless sensor network searches node, what set up route employing is traditional AODV agreement, AODV agreement sets up the form of the whole network broadcast that route adopts, each node broadcasts the RREQ message oneself received, until message arrives destination node, set up route, in this process, a lot of node there is no need to broadcast, the foundation of route has also only used small part node, the present invention have devised a kind of strategy of directional broadcasting accordingly, the mode of AODV in original Routing Protocol being searched route adds the thought of directional broadcasting, only for the broadcast of part at the node of defined sector region, to not carrying out packet loss process at the node that directional broadcasting is fan-shaped, therefore the energy of the sensor node of packet loss process just can store, to treat application next time, a lot of network performances of wireless sensor network can be improved by analysis of simulation experiment DB_AODV agreement.Concrete technical scheme is described below:
Before description DB_AODV method, provide in method the several conditions that can use:
1, power
Node determination distance sensing is enough to make a hop neighbor node around receive and reply data-message.
2, energy consumption
Node energy consumption does not consider the energy ezpenditure that itself calculates, because compared with all energy consumptions of transmission, it is very little for calculating the cost paid.
3, node coordinate
Each node is known itself is the coordinate of the coordinate system of initial point relative to sink gateway node.
4, topological density
Topology density is enough, and the present invention is set to the square area of 300*300m, can ensure that the step of searching neighbor node is carried out smoothly.
DB_AODV method is always divided into five steps:
The first step: initialization network topology
Wireless sensor node is after deployment, according to from the known coordinate information of sink node, carry out Coordinate Conversion, determine the position of destination node in the coordinate system being the origin of coordinates with work at present node, with the positive direction that this direction is x-axis, determine the coordinate system of working node.
Second step: divide sector region
Conveniently transducer is to the identification of node, according to the x-axis direction determined with x-axis be angular bisector with 2/3 π for of drift angle determination sensing scope is fan-shaped, divide equally another two fan-shaped, three regions are made to have effective identification by the amendment to specific fields in transmission packet, mark, the operation after convenient.
3rd step: determine sensing radius
Fan-shaped according to what obtain, each fan-shaped in by increase sensing radius (namely increasing through-put power) method search neighbor node, make each fan-shaped at least existence neighbor node, the sensing radius now determined is three fan-shaped maximums determining sensing radius, this value can make three fan-shaped central each fan-shaped at least existence transducer neighbor node, neighbor node is marked according to fan-shaped numbering used, markup information is inserted in the middle of packet.
4th step: directional broadcasting
The thought of using directed broadcast in route finding process, the node having marked the fan-shaped numbering of orientation is received to the RREQ message of source node broadcast, the node IP address that message comprises, energy information, fan-shaped numbering, broadcast type etc. relevant information carries out the process such as write nodal information, receives source node broadcast packet and does not but belong to the fan-shaped node of numbered orientation and the broadcast packet received is carried out packet loss process, and determination methods is according to forward node criterion.
5th step: route discovery
Node in the middle of each transmitting procedure will carry out aforesaid operations, namely the node receiving RREQ message needs to judge node for the purpose of oneself whether, if not the destination node that will transmit, so to carry out the first step to the iteration process of the 4th step thus build route, if destination node then route construction success, the opposite direction along constructed route carries out transmission data manipulation.
0 is source node, according to the coordinate information determination destination node direction of sink node switching after, trisection is carried out to the sensitive zones of 0, make eachly fan-shapedly there is neighbor node at 0 peripheral region by increasing the mode of through-put power, determine sensing radius, forward node is chosen from orientation is fan-shaped, to determine in the node (see figure 2) figure that lower step forwards that 0 for source node according to the orientation chosen is fan-shaped, neighbor node in orientation is fan-shaped is 5 and 6, only these two nodes are forwarded, other nodes judge whether to forward by forward node criterion after accepting RREQ message, packet loss process is carried out if ineligible, following 5, the forward node of 6 nodes is 7 nodes, determine that 10 nodes are down hop forward node by identical step, confirmable route is { 0 accordingly, 5, 7, 10, 11} and { 0, 6, 7, 10, 11}, relatively just final Route Selection can be determined by certain, each node in directed set of node will perform said process, the object of directional broadcasting just can be realized by above algorithm, general broadcast scope of 2 π radians around node carries out searching next step forward node, and the present invention only fan-shaped for directional broadcasting in node carry out broadcast forwarding, as shown in Figure 3, the node 2 of broadcasting is carried out at generic broadcasted middle needs, 1, 3, 4, 5, 12 just can carry out packet loss process, save the energy of broadcast for work afterwards, eliminate the energy consumption of beyond orientation is fan-shaped (radian is 4 π/3), thus in a repeating process, save the broadcast angle of 67%, thus a large amount of saving is achieved to their energy, n point all adopts this strategy can reach (67%) the saving of angle
n, so the saving of algorithm to energy is significant.
Fig. 1 is the division methods of the sensor sensing area determined according to the positional information of source node destination node, the sensing scope of source node O can regard a circle as, fan-shaped drift angle degree is α, at least a neighbor node is there is in the middle of each sector region, A as shown in Figure 1, B, C, D, E, F node is respectively three fan-shaped central neighbor nodes, and G, H node be not included in neighbor node fan-shaped in the middle of, wherein B, C node is positioned at 2. number fan-shaped, A point is positioned at 3. number fan-shaped, D, E, F is positioned at 1. number fan-shaped, determine that so directed fan-shaped just selection the in direction completes by known.
Fig. 4 is the basis for estimation of forward node, node for the purpose of I point, be the positive direction of x-axis, when node judges to be less than π/3 with the angle of x-axis and working node line, node namely drop on this directed fan-shaped in the middle of, i.e. ∠ KSI< π/3 in figure, illustrate K point be positioned at directed fan-shaped in the middle of, it is a selection of S node or work at present node forward node, and ∠ FSI> π/3 in figure, illustrate that F point is in the middle of orientation is not fan-shaped, after F point receives RREQ message, will packet loss process be carried out.
Fig. 5 is the simulation result of Packet delivery fractions.Use the agreement of directional broadcasting can obtain higher Packet delivery fractions.When the number of nodes in network is little time, the Packet delivery fractions of network is general not high, and the performance difference before and after utilization directional broadcasting strategy is not clearly.Along with the change of topological scale is large, the Packet delivery fractions of network raises gradually.
Fig. 6 is the design sketch of degree of communication emulation experiment.The a very long time advantage of degree of communication in algorithmic procedure is unconspicuous, but after algorithm carries out a period of time, due to the increase of each broadcast node dissipation energy of AODV, algorithm still can ensure certain degree of communication.
Fig. 7 is the experiment simulation schematic diagram of network energy loss.The load of network topology balancing energy is the comprehensive important indicator considering network performance, energy consumption level have recorded the energy total value consumed at all nodes of a certain operation time, the experiment consumption of incipient stage to energy is more or less the same, but As time goes on can find that the saving of DB_AODV algorithm to energy is very significant in repeatedly broadcasting process.