Summary of the invention
Technical problem: the objective of the invention is to provide in CRSN a kind of cognitive radio sensor network information transmission method, this method can obtain the maximization of network throughput and life cycle.
Technical scheme: the present invention is a kind of cognitive radio sensor network information transmission method, it comprises five processes: cycle frequency spectrum perception process, broadcasting or forwarding route requests process, usable spectrum and power of communications negotiations process, route is set up process and route maintenance procedure.
Distributed frequency spectrum is distributed for joint route agreement of the present invention and information transferring method and Route Selection combines.At first, when source node need will be broadcasted route requests (RREQ, Routing Request) when aggregation node sends data, its neighbor node is receiving that this request back carries out the negotiation of usable spectrum and power of communications with this node; Then, but arranged the multilink time spent, source node calculates the trace utilization cost of each link and stores, and all nodes in the available link are transmitted route requests successively until aggregation node; At last, receive the RREQ of source node when aggregation node after, initiate route and set up request, each node is according to the cost of storage, distributed earth determines to have minimum path of transmitting cost, to obtain the maximization of network throughput and life cycle.This method comprises following 5 processes and is undertaken by described order:
1) cycle frequency spectrum perception process: each sensor node periodically carries out frequency spectrum perception in the network, and this perception can independently be carried out, and also can cooperate and finish,
2) broadcasting or forwarding route requests process: when source node need will be broadcasted RREQ when aggregation node sends data, its neighbor node is receiving that this request back and this node carry out the negotiation of usable spectrum and power of communications, but there is being the multilink time spent, source node calculates the trace utilization cost of each link and stores, all nodes in the available link are transmitted route requests successively until aggregation node
3) usable spectrum and power of communications negotiations process: this process is a target with maximization network throughput and life cycle, and by linear weighted function formation cost function, after node is received neighbor node RREQ, to minimize point-to-point transmission link trace utilization cost is target, carry out the negotiation of usable spectrum and power of communications with this neighbor node
4) route is set up process: receive the RREQ of source node when aggregation node after, initiate request of route discovery, each node is target according to the cost that stores to minimize cost function described in the step 3), and distributed earth is determined forward-path,
5) route maintenance procedure: adopt the routing error grouping and confirm to divide into groups to carry out route maintenance, when route can not be used because of the change of network topology, the node of chain rupture place is oneself to be data source nodes, again broadcast route requests, consult usable spectrum and power of communications until aggregation node to transmit remaining data.
Two aspects of described forwarding route requests process: on the one hand, and if only if this neighbor node to the distance of aggregation node greater than self to aggregation node apart from the time, node is just accepted this route requests, otherwise abandons request; On the other hand, if consult to show between two nodes there is not available spectrum, promptly under the known inaccessible situation of link constantly, node is not transmitted route requests.The route requests forwarding process as shown in Figure 2.
Communication spectrum and power of communications machinery of consultation are target with maximization network throughput and life cycle, provided the multiple-objection optimization function, with linear weight sum method multiple objective function is converted into the single goal function, is out of shape this single goal function by abbreviation and draws the forward-path cost function.Each node carries out the negotiation of usable spectrum and power of communications to being target to minimize point-to-point transmission link trace utilization cost.
In the described route finding process, receive the RREQ of source node when aggregation node after, initiate route and set up request, each node is according to stored cost, utilize the distributed dijkstra's algorithm in the graph theory, distributed earth is looked for the path with minimal path cost function and is transmitted, and this path is of described multiple-objection optimization function and effectively separates.
Beneficial effect: the CRSN information transferring method that the present invention proposes joint route agreement and dynamic frequency spectrum deployment.Advantage is that cognitive radio is combined with sensor network, the frequency spectrum of improving the occasion inserts and reduces collision and the competition time delay of bringing owing to the sensor node very dense, sensor node distributed earth in the network carries out dynamic frequency spectrum deployment and routing procedure, with the maximization of acquisition network throughput and the maximization of life cycle.
Embodiment
Distributed frequency spectrum is distributed information transferring method of the present invention and Route Selection combines.At first, when source node need will be broadcasted route requests (RREQ, Routing Request) when aggregation node sends data, its neighbor node is receiving that this request back carries out the negotiation of usable spectrum and power of communications with this node; Then, but arranged the multilink time spent, source node calculates the trace utilization cost of each link and stores, and all nodes in the available link are transmitted route requests successively until aggregation node; At last, receive the RREQ of source node when aggregation node after, initiate route and set up request, each node is according to the cost of storage, distributed earth determines to have minimum path of transmitting cost, to obtain the maximization of network throughput and life cycle.This method comprises following 5 processes and is undertaken by described order:
1) cycle frequency spectrum perception process: each sensor node periodically carries out frequency spectrum perception in the network, and this perception can independently be carried out, and also can cooperate and finish,
2) broadcasting or forwarding route requests process: when source node need will be broadcasted RREQ when aggregation node sends data, its neighbor node is receiving that this request back and this node carry out the negotiation of usable spectrum and power of communications, but there is being the multilink time spent, source node calculates the trace utilization cost of each link and stores, all nodes in the available link are transmitted route requests successively until aggregation node
3) usable spectrum and power of communications negotiations process: this process is a target with maximization network throughput and life cycle, and by linear weighted function formation cost function, after node is received neighbor node RREQ, to minimize point-to-point transmission link trace utilization cost is target, carry out the negotiation of usable spectrum and power of communications with this neighbor node
4) route is set up process: receive the RREQ of source node when aggregation node after, initiate request of route discovery, each node is target according to the cost that stores to minimize cost function described in the step 3), and distributed earth is determined forward-path,
5) route maintenance procedure: adopt the routing error grouping and confirm to divide into groups to carry out route maintenance, when route can not be used because of the change of network topology, the node of chain rupture place is oneself to be data source nodes, again broadcast route requests, consult usable spectrum and power of communications until aggregation node to transmit remaining data.
The transmitting power of node is retrained by two aspects: be the available maximum transmission power of perception user on the one hand, this is mainly determined by perception user hardware condition; Be the activity of other users in the network on the other hand, node one will overcome the interference that self is subjected to and noise guaranteeing proper communication, and two will reduce transmitting power to guarantee the proper communication of user around the influence within reason.Thus, the transmitting power of each node all exists a supremum and an infimum, if the some time is carved infimum less than supremum, then node perceives a frequency spectrum cavity-pocket constantly at this.
Because the dynamic variation characteristic of frequency spectrum and the otherness of the usable spectrum that each node real-time perception arrives need be carried out spectrum allocation may and Route Selection dynamically.According to the target of maximization network throughput and life cycle, the CRSN information transferring method of a kind of joint route agreement and dynamic frequency spectrum deployment has been proposed.This method is a target with maximization network throughput and life cycle, has provided the multiple-objection optimization function, with linear weight sum method multiple objective function is converted into the single goal function, is out of shape this single goal function by abbreviation and draws the forward-path cost function.Sensor node in the network is after receiving route requests RREQ, to minimize point-to-point transmission link trace utilization cost is target, distributed earth carries out the negotiation of usable spectrum and power of communications, and to have the minimum cost forward-path be target to obtain on this basis, carries out routing procedure.Dynamic frequency spectrum deployment can insert chance with effectively utilizing frequency spectrum, carries out Route Selection on this basis to obtain the maximization of network throughput and life cycle.
In conjunction with the accompanying drawings, the present invention program is designed work further concrete analysis and description.
(1) mathematical expression of network throughput and life cycle
The throughput of path P is the data volume of transmitting in the unit interval on this path, is equivalent to the actual average data transmission rate in this path, and under the given situation of data to be transferred amount, the maximization network throughput is equivalent to and minimizes the path delay of time.The path delay of time T
PComprise propagation delay time t
Tran, processing delay t
ProcWith queuing delay t
Line, establish data packet transmission, respectively be path delay of time of grouping:
In the following formula, N
0Be the data volume of transmitting, K is a packet count, R
I, i+1Be link (i, the i+1) message transmission rate on, R
pBe the data processing rate of node, Q
iBe the data to be transferred sequence length of node i, H is total jumping figure of path P.
The maximization problems of network lifetime can be converted into the average residual ENERGY E on the selected path P of maximization
P, its formulation is the maximization following formula:
In the following formula, e
iBe the dump energy of node i, E
pFor the node single-bit is handled energy consumption, P
I, i+1(i i+1) goes up the power that sends the required consumption of bit for link.
(2) method of dynamic frequency spectrum deployment
The CRSN information transferring method of joint route agreement of the present invention and dynamic frequency spectrum deployment is a target with maximization network throughput and life cycle, and it is as follows to provide the multiple-objection optimization function:
Minimize: T
P
Maximization: E
P
Interval
Be link (i, communications band i+1).
Utilize linear weight sum method that multiple objective function is converted into the single goal function, be out of shape this single goal function by abbreviation and draw the forward-path cost function:
And have
Parameter ξ and network size among the cost function Φ (comprising monitored area size, leader cluster node number etc.) and data source nodes be to the distance dependent between aggregation node, in addition,
Cost 2 ρs of dynamic frequency spectrum deployment method to minimize the point-to-point transmission link
i-e
i/ ξ is a target.If establishing each node all adopts the BPSK modulation system, be by calculating the optimization result that can obtain earlier on each frequency:
Then, node utilizes following target function frequency range that negotiation communication uses on above-mentioned optimization result's basis.Require selected transmission rate, should be the optimization result on certain frequency in the selected frequency range, and the transmitted power on this frequency should not drop on outside the frequency spectrum cavity-pocket, this can finish by simple search.Provide the dynamic frequency spectrum deployment method flow as shown in Figure 3.
(3) method of joint route selection
Route selection method of the present invention adopts the distributed dijkstra's algorithm in the graph theory, receive the RREQ of source node when aggregation node after, initiate route and set up request, each node is according to stored cost, and distributed earth is looked for the path with minimal path cost function and transmitted.In the distributed dijkstra's algorithm, (X Y) is connection charge from X to Y, and (X Y) is the expense of economizing route most from X to Y to Cost_min if establish Cost.Suppose A and Node B, C ..., D has direct connection.Algorithm is followed following principle so:
According to this principle, as long as node A knows that it arrives the expense of each neighbor node, each neighbour knows the province route of the own Z of arriving simultaneously, and node A just can determine it to arrive the province route of Z.Node A just can carry out aforementioned calculation like this, and determines to have economized route most.
Each node is only known expense and available all information of neighbours that arrive each neighbour.Therefore, in Distributed Calculation, each node is to its information of adjacent office node broadcasts known to it.Each node is all received new information and is correspondingly upgraded its routing table.Because neighbours are broadcast message termly constantly, final network node be connected spread all over whole network for information about.The information that enters node allows the province path that their find new node and lead to other nodes.Algorithm flow as shown in Figure 4.