Summary of the invention
The object of the present invention is to provide the resource allocation methods based on available capacity in a kind of cognitive radio system.
For achieving the above object, the present invention has adopted following technical scheme.
The first step, the cognitive user in cognitive radio system is carried out perception to channel, has judged whether that authorized user is using channel, if detected authorized user use channel, cognitive user not insertion authority channel communicate; If detect, with no authorized user uses channel, and cognitive user can insertion authority frequency range communicate;
Second step, determine the transmission plan of cognitive user according to the sensing results of the first step: using channel if sensing results is authorized user, for fear of cognitive user, authorized user is produced to harmful interference, now cognitive user is not carried out transfer of data, and now the transmitting power of cognitive user and transmission rate are 0; Do not use channel if sensing results is authorized user, cognitive user access frequency range, carries out transfer of data with larger transmitting power and transmission rate;
The 3rd step, obtain the available capacity in cognitive radio system according to described transmission plan, and under the limited condition of average power, described available capacity is optimized, by using gradient descent method to solve the dual problem of former optimization problem, obtain optimum power distribution strategies.
The described first step specifically comprises the following steps:
Consider a cognitive radio system, this system contains a cognitive user, M sub-channels, M>=2, channel model is rayleigh fading channel and is piece decline, M sub-channels independently carries out channel-aware, do not interfere with each other, frame length in cognitive radio system is T, the long-time cognitive user of front N of each frame is carried out channel-aware, according to how channel-aware is modeled as Hypothesis Testing Problem by graceful Pearson criterion, and according to the prior probability of the authorized CU of channel, obtain 2 in conjunction with false alarm probability and detection probability
2Mplant the probability expression of the state that may occur.
In described second step, the sensing results that cognitive user obtains according to the first step is selected corresponding transmission plan, if being authorized user, sensing results do not use channel, cognitive user access frequency range, meanwhile, determine corresponding power distribution strategies function and instantaneous transmission speed, and carry out transfer of data in remaining T-N is long-time, frame length in cognitive radio system is T, and the long-time cognitive user of front N of each frame is carried out channel-aware.
Available capacity in described the 3rd step is expressed as:
Wherein, θ represents QoS index; s
jthe virtual condition of expression system, j=1,2 ..., 2
m, P (s
j) represent that the virtual condition of system is s
jtime probability; ρ
mrepresent the probability of the authorized CU of m sub-channels; ρ
m'represent the probability of the authorized CU of m' sub-channels; Φ
jthe virtual condition that system is worked as in expression is s
jtime, the set of the subchannel of authorized CU;
the virtual condition that system is worked as in expression is s
jtime, the not set of the subchannel of authorized CU;
represent system senses result, i=1,2 ..., 2
m,
represent the sensing results of m sub-channels,
the virtual condition that system is worked as in expression is s
j, sensing results is
time conditional probability; z
mrepresent the channel gain of m sub-channels;
represent the power distribution strategies function of m sub-channels;
represent the instantaneous transmission speed of m sub-channels, the frame length in cognitive radio system is T, and the long-time cognitive user of front N of each frame is carried out channel-aware, and M represents number of subchannels.
In the time that number of subchannels is 2 (when M=2), the optimization method of available capacity comprises the following steps:
Optimization problem is modeled as to the available capacity that maximizes system under the limited condition of system average power, is specifically expressed as:
P1=(1-ρ
A)(1-P
f)(ρ
BP
d+(1-ρ
B)P
f);P2=(1-ρ
A)ρ
B(1-P
f)(1-P
d);
P3=ρ
A(1-ρ
B)(1-P
d)(1-P
f);P4=(1-ρ
A)(1-ρ
B)(1-P
f)(1-P
f);
P5=(1-ρ
B)(1-P
f)((1-ρ
A)P
f+ρ
AP
d);
Wherein, θ represents QoS index, z
aand z
brepresent respectively the channel gain of subchannel A and subchannel B;
with
represent respectively the power distribution strategies function of subchannel A and subchannel B, i=1,2,3,4;
with
represent respectively the instantaneous transmission speed of subchannel A and subchannel B; ρ
aand ρ
brepresent respectively the probability of the authorized CU of subchannel A and subchannel B; P
frepresent false alarm probability; P
drepresent detection probability, the frame length in cognitive radio system is T, and the long-time cognitive user of front N of each frame is carried out channel-aware;
Because the logarithmic function in optimization aim function in formula (13) is monotonically increasing, so former optimization problem can abbreviation be:
The dual problem of the optimization problem that formula (14) represents is expressed as:
Wherein λ represents Lagrange multiplier, and the expression of Lagrange duality function is:
Utilize gradient descent method to solve dual problem and comprise following concrete steps:
Step 1: initialization setting:
Make iterations t=1, and the initial value D of dual function is set
(0)and the initial value λ of Lagrange multiplier
(0);
Step 2: upgrade optimized variable:
Step 3: upgrade gradient factor Δ f
(t), dual function D
(t)and Lagrange multiplier λ
(t):
Wherein step is iteration step length;
Step 4: judge whether iteration finishes:
ξ=|D
(t)-D
(t-1)|;t=t+1 (19)
If ξ is >10
-4, meet iterated conditional, repeat step 1 to step 3, until iteration finishes, obtain optimum power distribution strategies function.
Beneficial effect of the present invention is: the present invention is by being applied to the theory of available capacity in cognitive radio system, and its system model is extended under multi channel sight, derivation draws the available capacity expression of multichannel cognitive radio system, for research ensures that cognitive user meets the ability that different QoS requires effective and feasible method is provided in cognitive radio system, the available capacity scheme of the optimization multichannel system that the present invention proposes, compared with carrying out with traditional constant power scheme, the performance of system is got a promotion, and the supportability of the QoS of system is improved, under multichannel sight, can either ensure for cognitive user provides reliable QoS, can improve again the availability of frequency spectrum of system.
Embodiment
Below in conjunction with drawings and Examples, the present invention is elaborated.
The power allocation scheme of the optimization based on available capacity that the present invention proposes is as follows:
Consider a cognitive radio system, this system contains a cognitive user, and two sub-channels are respectively subchannel A and subchannel B, and channel model is rayleigh fading channel and is piece decline.As shown in Figure 1, wherein T represents the duration length of a frame to the frame structure of cognitive radio system, i.e. frame length, and N represents that cognitive user in each frame carries out the duration length of channel-aware, the long-time cognitive user of front N of each frame is carried out channel-aware.
The first step: two sub-channels independently carry out channel-aware, do not interfere with each other, the long-time cognitive user of front N of each frame is carried out channel-aware, judges whether busy channel of authorized user, according to how channel-aware is modeled as Hypothesis Testing Problem by graceful Pearson criterion, and obtain 2
2Mthe probability expression of the state that kind (M=2) may occur;
Cognitive user is carried out channel-aware, judges whether busy channel of authorized user, generally adopts the method for energy measuring, and the graceful Pearson criterion according to how can be modeled as channel-aware the problem of a hypothesis testing.Taking single channel as example, channel width is W, x[i] and y[i] the instantaneous input and output signal of a channel represented respectively; H[i] represent the fading coefficients of channel, be separate and obey the multiple Gaussian Profile of zero-mean circulation, the channel fading coefficient of every frame is independent variation; N[i] represent the independent identically distributed obedience zero-mean circulation additive white Gaussian noise of Gaussian Profile again in channel, variance is
n
p[i] represents the interference of authorized user to cognitive user, obeys the multiple Gaussian Profile of zero-mean circulation, and variance is
the input/output relation of channel can be expressed as so:
Hypothesis Testing Problem can be expressed as:
The graceful Pearson criterion according to how, test statistics is expressed as:
Wherein λ
0represent energy measuring thresholding.
Detecting performance can represent by two very important parameters, i.e. false alarm probability P
fwith detection probability P
d:
Wherein (x, a) represents incomplete gamma functions to γ, and Γ (a) represents gamma function.
For single channel, the virtual condition of channel has two kinds of possible situations, and channel is idle or busy; And cognitive user also has two kinds of possible situations to the sensing results of channel, perceive channel for idle or busy, for cognitive radio system, always have four kinds of sights that may occur, if ρ represents the probability of the authorized CU of channel, in conjunction with false alarm probability and detection probability, the probability expression of four kinds of states is as shown in table 1.
Table 1 single channel Simple Expressions
Consider the practicality of system, mainly consider multi channel situation, taking two channels as example, each channel independently carries out channel-aware and transfer of data, does not interfere with each other.In cognitive radio system, the virtual condition of channel has four kinds of possible situations, and the sensing results of cognitive user also has four kinds of possible situations, for whole system, altogether having 16 kinds of possible sights occurs, with above-mentioned single-channel state probability analysis classes seemingly, also can obtain the probability expressions of 16 kinds of states under two channel situation, illustrate, the virtual condition of channel is that channel A free time and channel B are busy, and cognitive user perception is correct, this kind of shape probability of state is (1-ρ
a) ρ
b(1-P
f) P
d, wherein ρ
aand ρ
bthe virtual condition that represents respectively channel A and channel B is the probability of busy (being the authorized CU of channel).In like manner can obtain the probability expression of other 15 kinds of states.
Second step: the sensing results that cognitive user obtains according to first step, select corresponding transmission plan, determine corresponding power distribution strategies function
with
and instantaneous transmission speed r
aand r
b, in remaining T-N is long-time, carry out transfer of data;
The sensing results that cognitive user obtains according to the first step, selects corresponding transmission plan to carry out transfer of data.If the sensing results in the first step is channel idle, cognitive user selects larger transmitting power and transmission rate to communicate; If the sensing results in the first step is that channel is busy, the interference for fear of cognitive user to authorized user, cognitive user does not communicate, and transmitting power and transmission rate is now 0.Four kinds of different sensing results are represented as follows:
According to different sensing results, carry out corresponding power division.If sensing results is
be busy owing to perceiving channel B, according to power division principle, cognitive user, in channel B transmission data, is not therefore only carried out power division to channel A, and power distribution strategies function is
if sensing results is
cognitive user is carried out transfer of data at channel A and channel B simultaneously, and power distribution strategies function is
with
if sensing results is
because two sub-channels all detect as busy condition, cognitive user does not communicate at any subchannel, and transmitting power and transmission rate under this sensing results are 0; If sensing results is
cognitive user selective channel B communicates, and power distribution strategies function is
after determining corresponding power distribution strategies function, can obtain the corresponding instantaneous transmission speed of two sub-channels, represent as follows respectively:
Wherein z
a[i]=| h
a[i] |
2, z
b[i]=| h
b[i] |
2,
the average power of expression system,
represent four kinds of testing results one of them, i=1,2,3,4.
The 3rd step: derive and obtain the expression formula of multichannel cognitive radio system available capacity, be based upon the optimization problem that maximizes available capacity under the limited condition of average power, and it is solved and obtains optimum power distribution strategies function;
After determining that cognitive user is for the corresponding transmission plan of different sensing results, can obtain the expression of the available capacity of cognitive radio system, thereby can optimization problem be carried out modeling and be solved, finally obtain optimum power distribution strategies.The expression formula of available capacity is as follows:
Wherein θ represents QoS index,
represent accumulated time service process.In the theory of available capacity, can weigh the performance that system QoS ensures by time delay rate of violation, instantaneous time delay exceedes the probability of time delay threshold value, and its expression formula is as follows:
Wherein D (t) represents instantaneous time delay, D
maxrepresent time delay threshold value, μ represents information source speed.Can obtain the expression formula of the available capacity under two channel situation in cognitive radio system according to (6) formula.First try to achieve the expression formula of four kinds of exponential parts under different actual channel state, as follows:
1) channel A idle channel B is busy
2) the channel A idle channel B free time
3) the busy channel B free time of channel A
4) the busy channel B of channel A is busy
e
-θS(t)=ρ
Aρ
B[(1-P
d)P
d+(1-P
d)(1-P
d)+P
dP
d+P
d(1-P
d)] (11)
The expression that can obtain the available capacity under two channel situation of cognitive radio system through be simplified by integration is:
P1=(1-ρ
A)(1-P
f)(ρ
BP
d+(1-ρ
B)P
f);P2=(1-ρ
A)ρ
B(1-P
f)(1-P
d);
P3=ρ
A(1-ρ
B)(1-P
d)(1-P
f);P4=(1-ρ
A)(1-ρ
B)(1-P
f)(1-P
f);
P5=(1-ρ
B)(1-P
f)((1-ρ
A)P
f+ρ
AP
d);
Therefore optimization problem is modeled as under the limited condition of system average power, maximizes the available capacity of system, is specifically expressed as:
Because the logarithmic function in optimization aim function is monotonically increasing function, so former optimization problem can abbreviation be:
Because this optimization aim function is a convex function, and restrictive condition is linear, so this optimization problem is a protruding optimization problem, meets strong duality.But owing to cannot directly by Lagrangian method, it being solved, so by the method that solves its dual problem, former optimization problem is solved.The dual problem of former problem is expressed as:
Wherein λ represents Lagrange multiplier, and the expression of Lagrange duality function is as follows:
Utilize gradient descent method to solve dual problem, thereby obtain the optimal solution of the optimized variable of former problem, concrete solution procedure comprises:
Step 1: initialization setting, makes iterations t=1, and the initial value D of dual function is set
(0)and the initial value λ of Lagrange multiplier
(0).
Step 2: upgrade optimized variable:
Step 3: upgrade the gradient factor, dual function and Lagrange multiplier:
Wherein step is iteration step length.
Step 4: judge whether iteration finishes:
ξ=|D
(t)-D
(t-1)|;t=t+1 (19)
If ξ is >10
-4, meet iterated conditional, repeat step 1-step 3, until iteration finishes, finally obtain optimum power distribution strategies function.
Simulated effect of the present invention is as follows: considers a cognitive radio system, in system, contains a user, and two sub-channels, channel model adopts rayleigh fading channel, and the bandwidth of every sub-channels is 10kHz, detection threshold value λ
0the duration T that is 1.4, one frames is 0.1 second, and the long-time cognitive user of front N of each frame is carried out channel-aware, and its value is 0.02 second, the probability ρ of the authorized CU of subchannel A and subchannel B
aand ρ
bthe span that is 0.1, QoS index θ is [0,1].
Theoretical value and the simulation value of the available capacity of the system model that the present invention is proposed contrast, and the theoretical curve of the available capacity of system and simulation curve are substantially identical as seen from Figure 2, and this has proved correctness and the feasibility of the system model of the present invention's proposition.Along with the increase of QoS index, index reduces the curve of available capacity as can be seen from Figure 2, describes and meets with formula (6).Due to the stricter delay requirement of larger QoS exponential representation, the less looser delay requirement of QoS exponential representation, when QoS index increases, when delay requirement is stricter, the available capacity of system reduces.In the time that QoS index is tending towards 0, system can be born the time delay of any length, and in the time that QoS index is tending towards infinity, system cannot be born any time delay.Power allocation scheme and the constant power allocative decision of the optimization that the present invention is proposed compare, contrast with constant power allocative decision (equal power adaption algorithm) as can be seen from Figure 3, adopt after the power allocation scheme (proposed power adaption algorithm) of optimizing, the available capacity (Effective Capacity) of system of the present invention has had certain lifting, the supportability under different QoS requires increases to cognitive user to make system, the ability of the real-time service of the stricter delay requirement of cognitive user service simultaneously also has a certain upgrade.
Theoretical value and the simulation value of the time delay rate of violation of the system model that the present invention is proposed contrast, the theoretical curve of the time delay rate of violation of system and simulation curve are basic coincideing as seen from Figure 4, have further verified the correctness of system model proposed by the invention.As can be seen from Figure 4, time delay rate of violation (Delay violation probability) reduces along with the increase of time delay threshold value is index.Power allocation scheme and the constant power allocative decision of the optimization that the present invention is proposed contrast, and can be found out by Fig. 5, adopt the power allocation scheme of optimizing can make the time delay rate of violation of system reduce, and have promoted the performance of system.Fig. 6 and Fig. 7 have compared respectively different channels detecting period and the impact of various information source speed on Time Delay of Systems rate of violation.As seen from Figure 6, along with the increase of channel-aware time, time delay rate of violation increases, and this is because detecting period increases, and can cause more packet congested at transmit queue place, therefore can cause time delay rate of violation to increase.As seen from Figure 7, along with the increase of information source speed, the time delay rate of violation of system increases, and information source speed is larger, equally also can cause the packet of storing excess in transmit queue, finally causes the time delay rate of violation of system to increase.
Can find out by above simulated effect, the power allocation scheme of optimizing in multichannel cognitive radio system that the present invention proposes gets a promotion the available capacity of system, time delay rate of violation declines to some extent, thereby the ability that makes user serve the real-time service of different QoS requirement is improved, and the ability that makes system provide reliable QoS to ensure gets a promotion.