Summary of the invention
Technical problem: the objective of the invention is to provide in CRSN a kind of information transmission method for cognitive radio sensor network, the method can obtain the maximization of network throughput and life cycle.
Technical scheme: the present invention is a kind of information transmission method for cognitive radio sensor network, it comprises five processes: cycle frequency spectrum perception process, broadcasting or forwarding route requests process, usable spectrum and power of communications negotiations process, Route establishment 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, with broadcast request (RREQ, Routing Request), its neighbor node is being received after this request and this node carries out the negotiation of usable spectrum and power of communications when source node need to send data to aggregation 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 the Route establishment 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.The 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 to send data to aggregation node, will broadcast RREQ, its neighbor node is being received after this request and this node carries 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 take maximization network throughput and life cycle as target, 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 as target, carry out the negotiation of usable spectrum and power of communications with this neighbor node
4) Route establishment process: receive the RREQ of source node when aggregation node after, initiate request of route discovery, each node is according to the cost that stores, to minimize step 3) described in cost function be target, 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 take oneself as data source nodes, again broadcast request, 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 frequency spectrum, namely in the known constantly inaccessible situation of link, 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 take maximization network throughput and life cycle as target, provided the multiple-objection optimization function, with linear weight sum method multiple objective function is converted into 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 minimize point-to-point transmission link trace utilization cost as target.
In the described route finding process, receive the RREQ of source node when aggregation node after, initiate the Route establishment 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 an efficient solution of described multiple-objection optimization function.
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 access 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, with broadcast request (RREQ, Routing Request), its neighbor node is being received after this request and this node carries out the negotiation of usable spectrum and power of communications when source node need to send data to aggregation 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 the Route establishment 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.The 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 to send data to aggregation node, will broadcast RREQ, its neighbor node is being received after this request and this node carries 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 take maximization network throughput and life cycle as target, 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 as target, carry out the negotiation of usable spectrum and power of communications with this neighbor node
4) Route establishment process: receive the RREQ of source node when aggregation node after, initiate request of route discovery, each node is according to the cost that stores, to minimize step 3) described in cost function be target, 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 take oneself as data source nodes, again broadcast request, 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 subject to and noise guaranteeing proper communication, and two will reduce transmitting power to guarantee the proper communication of user around the impact within reason.Thus, the transmitting power of each node 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 to 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.The method has provided the multiple-objection optimization function take maximization network throughput and life cycle as target, with linear weight sum method multiple objective function is converted into 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 as target, distributed earth carries out the negotiation of usable spectrum and power of communications, has the minimum cost forward-path as target to obtain on this basis, carries out routing procedure.Dynamic frequency spectrum deployment can with effectively utilizing frequency spectrum access chance, be carried out Route Selection to obtain the maximization of network throughput and life cycle on this basis.
By reference to 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 in 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 transfer, respectively be path delay of time of grouping:
In the following formula, N
0Be the data volume of transmitting, K is packet count, R
I, i+1Be the message transmission rate on the link (i, i+1), 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 processed energy consumption, P
I, i+1Be the upper power that sends the required consumption of bit of link (i, i+1).
(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 take maximization network throughput and life cycle as target, and it is as follows to provide the multiple-objection optimization function:
Minimize: T
P
Maximization: E
P
Interval
Communications band for link (i, i+1).
Utilize linear weight sum method that multiple objective function is converted into 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 method for allocating dynamic frequency spectrums to minimize the point-to-point transmission link
i-e
i/ ξ is target.All adopt the BPSK modulation system if establish each node, by calculating the optimum results that can obtain first on each frequency be:
Then, node utilizes following target function frequency range that negotiation communication uses on the basis of above-mentioned optimum results.Require selected transmission rate, should be the optimum results 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 method for allocating dynamic frequency spectrums flow process 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 the Route establishment 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, be connection charge from X to Y if establish Cost (X, Y), Cost_min (X, Y) is the expense of economizing route most from X to Y.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 that it arrives the province route of Z.Node A just can carry out above-mentioned calculating 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 received new information and is correspondingly upgraded its routing table.Because neighbours are broadcast message termly constantly, final network node is connected with connection and is spread all over for information about whole network.The information that enters node allows them to find new node and the shortest path that leads to other nodes.Algorithm flow as shown in Figure 4.