Cognitive radio blind convergence method based on available channel set
Technical Field
The invention belongs to the field of communication, and relates to a cognitive radio blind rendezvous method, in particular to a cognitive radio blind rendezvous method based on an available channel set.
Background
With the rapid development of wireless communication technology, the number of wireless devices and the amount of communication data have been increasing explosively in recent years, which makes the problem of scarcity of wireless spectrum resources increasingly prominent. In addition, a great deal of research shows that the traditional spectrum resource fixed allocation technology causes low utilization rate of a great amount of spectrum resources. In order to improve the spectrum utilization rate and relieve the spectrum resource demand pressure, cognitive radio is a widely paid attention as an intelligent wireless technology for realizing dynamic spectrum resource allocation.
To implement the cognitive radio technology, a communication link between cognitive users is established first. Since the cognitive users belong to unauthorized users, it is difficult for the cognitive users to establish a connection with each other under the condition that no dedicated common control channel is allocated, and the cognitive users need to search for communication target users thereof in a frequency hopping manner on the authorized channel to establish a communication link. Such a communication link establishment problem without dedicated control channel conditions is called the blind rendezvous problem (blindezvous).
In order to effectively solve the blind rendezvous problem of the cognitive user, a breakthrough needs to be made in the blind rendezvous solution, wherein the key point is to design a frequency hopping sequence generation algorithm which is based on an available channel set, does not need role playing, uses additional requirements such as user ID and the like and has good performance guarantee, and the problem which is solved and the realized aim of the invention are achieved.
Disclosure of Invention
In order to solve the above problems, the present invention provides a cognitive radio blind rendezvous method based on a set of available channels, comprising
A pair of cognitive users U to be convergediAnd UjRandomly selecting 1 channel s from respective sets of idle channelsiAnd sj;
According to siAnd sjAnd a corresponding seed sequence D is generated by a seed generation method based on the channeliAnd Dj;
From DiAnd DjRespective frequency hopping sequences Z are generated according to a random frequency hopping sequence generation methodiAnd Zj;
The cognitive user follows the frequency hopping sequence ZiAnd ZjFrequency hopping communications are conducted until rendezvous is complete.
In an embodiment of the present invention, the seed generation method includes: determining the total number M of the selectable channels and the number s of the current selected channel of each cognitive user
iAnd the minimum binary digit number of M
Defining a seed component A
iO, I, wherein A
iNumbering the channels s
iCorresponding L-bit binary number, O ═<0,0,..,0>1×L,I=<1,1,..,1>1×L。
According to Ai,O,I,siConstruction of seed Di。
In the embodiment of the present invention, further, the seed Di=<Ai,O,I,Ai,O,I,si>1×(6L+1)。
In the embodiment of the invention, the method for generating the random frequency hopping sequence comprises the step of sequentially constructing the frequency hopping basic sequence Z according to the values of the seed components(k)Where k is the seed component index.
In an embodiment of the present invention, the value of the seed component is 0, 1 or si。
In this embodiment of the present invention, further, when the value of the seed component is 0, the frequency hopping basic sequence Z is(k)From a random sequence X0In turn and a random sequence Y0Is composed of interlaced corresponding elements of (1), wherein X0、Y0Randomly selecting any permutation of p elements from m available channel numbers, wherein m is the number of channels available for the cognitive user, and p is the minimum prime number not less than m, namely:
Z(k)=<X0[1],Y1[1],X1[2],Y1[2],...,...,X0[p],Y0[p]>1×2p
in this embodiment of the present invention, further, when the value of the seed component is 1, the frequency hopping basic sequence Z is(k)From a random sequence X1In turn and a random sequence Y1Is composed of interlaced elements of (a), wherein X1For randomly selecting an arrangement of p elements from m available channel numbers, Y1Randomly selecting a permutation of p +1 elements from m available channel numbers, wherein m is the number of channels available for the cognitive user, and p is the minimum prime number not less than m, namely:
Z(k)=<X1[1],Y1[1],X1[2],Y1[2],...,...,X1[p],Y1[p-1],..,X1[p],Y1[p-1],..,X1[p],Y1[p-2],..,X1[p],Y1[p-3],..,X1[p],Y1[p-(p-1)],X1[1],Y1[2],X1[2],Y1[3],..,X1[p],Y1[p+1]>1×2p(p+1)。
in the embodiment of the invention, the cognitive user UiAnd UjAnd performing convergence according to the channel numbers in the sequence corresponding to the current time slot, and if the convergence is successful, stopping frequency hopping and starting to transmit data by the cognitive user.
The invention has the beneficial effects that:
1. high efficiency: according to the invention, the cognitive users only need to realize blind convergence according to the available channel set information and do not need the global information of all channels, so that the algorithm efficiency is improved, and the fast and stable convergence among the cognitive users is ensured.
2. Flexibility: additional information about the cognitive user is not needed, such as defining the cognitive user as a transmitter or a receiver, or knowing the ID of the cognitive user in advance, so that the method can be flexibly applied to various cognitive wireless networks.
Drawings
Fig. 1 shows a complete hopping sequence of user 1 in a two-dimensional table in embodiment 1 of the present invention;
fig. 2 is a complete frequency hopping sequence of the user 2 presented in a two-dimensional table form in embodiment 1 of the present invention;
FIG. 3 is a schematic diagram showing convergence of user 1 and user 2 in embodiment 1 of the present invention;
FIG. 4 is a graph of simulation results of maximum rendezvous time for an embodiment of the invention;
FIG. 5 is a graph of simulation results of average rendezvous time for an embodiment of the invention.
Detailed Description
A cognitive radio blind rendezvous method based on an available channel set comprises a pair of cognitive users U to be rendezvousediAnd UjRandomly selecting 1 channel s from respective sets of idle channelsiAnd sj(ii) a According to siAnd sjAnd generating a seed sequence D based on the channel seed generation methodiAnd Dj(ii) a From DiAnd DjRespective frequency hopping sequences Z are generated according to a random frequency hopping sequence generation methodiAnd Zj(ii) a Cognitive user UiAnd UjAccording to said frequency hopping sequence ZiAnd ZjFrequency hopping communications are conducted until rendezvous is complete.
The method comprises the following specific steps:
it is known that: total number of channels M, cognitive user set
N is the total number of the cognitive users; idle channel concentrated station
Wherein C is
kRepresents the k-th cognitive user U
kCorresponding to a set of idle channels. Arbitrary user U
iAnd user U
j(j ≠ i) is a pair of users that are to rendezvous the communication.
The method comprises the following steps: user UiAt CiTo select 1 channel siUser UjAt CjTo select 1 channel sj。
Step two: user UiAnd user UjAccording to channel s respectivelyiAnd sjAnd a channel-based seed generation algorithm for generating a seed DiAnd Dj。
Step three: user UiAnd user UjAccording to seed D respectivelyiAnd DjAnd a hopping sequence generation algorithm generates a hopping sequence ZiAnd Zj。
Step four: user UiAnd user UjRespectively adopt ZiAnd ZjAnd carrying out frequency hopping communication until rendezvous is completed.
The seed generation method comprises the following steps:
step A1: initialization, for arbitrarily assigned user U
iGiven the set of channels C available to the user
iAnd the selected channel number s
iThe total number of channels M, can represent the minimum binary digit number of M channels
Step A2: definition of seed component, definition AiNumbering the channels siCorresponding L bit binary number O=<0,0,..,0>1×L,I=<1,1,..,1>1×L。
Step A3: seed production, seed Di=<Ai,O,I,Ai,O,I,si>1×(6L+1)。
The frequency hopping sequence generation method comprises the following steps:
the known conditions are: any given user UiSeed D ofiAnd (3) initializing: k is 1;
step B1: if k ≦ 6L, perform step B2, otherwise, perform step B3.
Step B2: if D isi[k]Step B4 is executed when the value is 0; otherwise, step B5 is performed.
Step B3: frequency hopping sequence Z(k)=<si>And then, the process is ended.
Step B4: initialization of X0=<0,0,..,0>1×p,Y0=<0,0,..,0>1×p,m=|CiL is user UiP is the smallest prime number not less than m.
Step B41: x0[1:m]=Select(Ci,m);
// is X0The first m elements of (A) are CiA random arrangement of available channels, where and hereinafter elements refer to the number of channels;
Y0[1:m]=Select(Ci,m);
// is Y0The first m elements of (A) are CiRandom arrangement of available channels
Step B42: if p is>m,X0[m+1:p]=Select(Ci,p-m);
// is X0Each of the m +1 th to p-th elements of (A) is at CiRandomly selecting the number of one channel from available channels;
Y0[m+1:p]=Select(Ci,p-m);
// is Y0Each of the m +1 th to p-th elements of (A) is at CiRandomly selecting the number of one channel from available channels;
step B43: frequency hopping sequence Z(k)=<X0[1],Y1[1],X1[2],Y1[2],...,...,X0[p],Y0[p]>1×2p;
Step B44: k is k +1, and the step B1 is returned;
step B5: initialization of X1=<0,0,..,0>1×p,Y0=<0,0,..,0>1×(p+1),m=|CiL is user UiP is the smallest prime number not less than m.
Step B51: x1[1:m]=Select(Ci,m);
// is X1The first m elements of (A) are CiA random permutation of available channels;
Y1[1:m]=Select(Ci,m);
// is Y1The first m elements of (A) are CiA random permutation of available channels;
step B52: if p is>m,X1[m+1:p]=Select(Ci,p-m);
// is X1Each of the m +1 th to p-th elements of (A) is at CiRandomly selecting the number of one channel from the channels;
Y1[m+1:p+1]=Select(Ci,p+1-m);
// is Y1Each of the m +1 th to p +1 th elements of (A) is at CiRandomly selecting the number of one channel from the channels;
step B53: frequency hopping sequence:
Z(k)=<X1[1],Y1[1],X1[2],Y1[2],...,...,X1[p],Y1[p-1],..,X1[p],Y1[p-1],..,X1[p],Y1[p-2],..,X1[p],Y1[p-3],..,X1[p],Y1[p-(p-1)],X1[1],Y1[2],X1[2],Y1[3],..,X1[p],Y1[p+1]>1×2p(p+1);
step B54: k equals k +1, and the process returns to step B1.
The frequency hopping method comprises the following steps:
initialization: t is 1;
step C1: if the cognitive user does not rendezvous, sequentially executing the steps C2 to C5;
step C2: k ═ ((t-1) mod (6L +1)) + 1;
step C4: cognitive user attempting on channel Z(k)[n]Upper convergence; // Z(k)[n]Denotes z(k)The nth element of (1);
step C5: if the convergence is successful, the cognitive user stops frequency hopping and starts to transmit data; otherwise, go to step C6;
step C6: and returning to the step C1 when t is t + 1.
Example 1
Assuming the full set of channels as C ═ C1,c2,c3I.e. there are a total of M-3 channels. Considering two cognitive users, suppose the available channel sets for user 1 and user 2 are C, respectively1={c1,c2And C2={c2,c3Channel 2 is their only common available channel. Suppose s is selected by user 1 in the initial stage1S selected by user 2 as 12=2。
1) Note that M ═ 3, s1And s2Are respectively the binary representation sequences of<0,1>And<1,0>. According to the seed generation algorithm, the user 1 and the user 2 respectively generate seeds D1And D2The following were used:
D1=<0,1,0,0,1,1,0,1,0,0,1,1,s1>1×13,
D2=<1,0,0,0,1,1,1,0,0,0,1,1,s2>1×13。
2) generating a frequency hopping basic sequence
User 1: c1={c1,c2The number m of available channels is 2, and the minimum prime number p not less than m is 2;
when k is 1, D1[1]Assuming that X is generated through the operations of steps B41 and B42 as 00=<1,2>1×p,Y0=<2,1>1 × p, then the corresponding basic sequence of frequency hopping Z(1)=<X0[1],Y1[1],X1[2],Y1[2],...,...,X0[p],Y0[p]>1×2p=<1,2,2,1>. When k is 2, D1[2]Assuming that X is generated through the operations of steps B41 and B42 as 11=<2,1>1×p,
Y1=<1,2,1>1 × (p +1), then the corresponding hopping basic sequence:
Z(2)=<X1[1],Y1[1],X1[2],Y1[2],...,...,X1[p],Y1[p-1],..,X1[p],Y1[p-1],..,X1[p],Y1[p-2],..,X1[p],Y1[p-3],..,X1[p],Y1[p-(p-1)],X1[1],Y1[2],X1[2],Y1[3],..,X1[p],Y1[p+1]>1×2p(p+1)
=<2,1,1,2,2,1,1,1,2,2,1,1>。
for simplicity, for k 3, 4, …, 12, if D1[k]Assuming that 0, the generated base sequence Z is assumed(k)) And Z(1)Same (note D)1[1]0); if D is1[k]Assuming that 1, the generated base sequence Z is assumed(k)And Z(2)Same (note D)1[2]=1)。
When k is 13, Z(13)=<s1>=<1>。
And (4) a user 2: c2={c2,c3And when k is equal to 2, selecting the minimum prime number p which is not less than m as 21,D2[1]Assuming that X is generated through the operations of steps B41 and B42 as 11=<2,3>1×p,Y1=<3,2,3>1 x (p +1), the corresponding basic sequence of frequency hopping becomes<2,3,3,2,2,3,3,3,2,2,3,3>。
When k is 2, D2[2]Assuming that X is generated through the operations of steps B41 and B42 as 00=<3,2>1×p,Y0=<2,3>1 × p, then the corresponding basic sequence of frequency hopping Z(2)=<X0[1],Y1[1],X1[2],Y1[2],...,...,X0[p],Y0[p]>1×2p=<3,2,2,3>。
For simplicity, for k 3, 4, …, 12, if D2[k]Assuming that 0, the generated base sequence Z is assumed(k)And Z(2)Same (note D)2[2]0); if D is2[k]Assuming that 1, the generated base sequence Z is assumed(k)) And Z(1)Same (note D)2[1]=1)。
When k is 13, Z(13)=<s2>=<2>。
3) Performing a frequency hopping sequence attempting to rendezvous
And the user 1 and the user 2 continuously try to rendezvous according to the frequency hopping algorithm execution flow by utilizing respective frequency hopping sequences until rendezvous is successful. The frequency hopping sequence of user 1 can be presented in the form of a two-dimensional table, see in particular fig. 1; similarly, the frequency hopping sequence for user 2 can be presented by fig. 2.
User 1 and user 2 can guarantee that rendezvous is achieved in a limited time, regardless of their slot offsets. For example, assuming that user 1 starts executing its hopping sequence 7 slots after user 2 has executed it (slot offset 7), the algorithm theory ensures that user 1 and user 2 achieve rendezvous on their common available channel 2 after 33 slots, as shown in fig. 3. Note that, user 1 and user 2 may achieve rendezvous in a shorter time, for example, in this embodiment, user 1 and user 2 may access channel 2 simultaneously to achieve rendezvous after 5 time slots, but this is not guaranteed by the algorithm theory, but is relevant to the specific example.
As shown in fig. 3, the frequency hopping sequences of fig. 1 and 2 are performed, with user 1 and user 2 guaranteed rendezvous within a limited time.
Simulation experiment results
Simulation experiments were performed at matlab7.11, and representative CSAC, MMC, EJS and SSB were selected for comparison. For convenience, the process proposed by the present invention is named ZOS. In the simulation experiment, M is set to 100, that is, the full set of channels C includes 100 channels; randomly picking a part of channels from C to form an available channel set of each user, wherein each user has theta multiplied by M (0 ≦ theta ≦ 1) available channels on average, and the parameter theta is set to be changed from 0.1 to 0.5 in the simulation experiment; in addition, the number of commonly available channels between two users is set to 6. The results of the simulation experiments are given in fig. 4 and 5, where fig. 4 gives the results in terms of Maximum rendezvous time (Maximum TTR) and fig. 5 gives the results in terms of Average rendezvous time (Average TTR), each of which is statistically obtained based on 5000 independent runs. It can be seen that the rendezvous method proposed by the present invention outperforms the existing blind channel rendezvous method in terms of performance.
The above is only an embodiment of the present invention, and the total number of selectable channels, the channel number, and the sequence number of the frequency hopping start timeslot of the cognitive user in the embodiment are only examples, and the protection scope of the present invention is not limited thereby; any alterations and modifications that would be obvious to those skilled in the art without departing from the spirit of the invention are intended to be included within the scope of the invention.