Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and apparatus of IQ channel allocation of Base Band Unit, solves IQ port number restricted problem between BBU, realizes that IQ channel allocation and IQ data exchange entirely.
For achieving the above object, technical scheme of the present invention is achieved in that
The method of the IQ channel allocation of a kind of Base Band Unit provided by the invention, this method comprises:
The BBU at the Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records in the tables of data;
BBU according to the Guang Kou place of each corresponding RRU connection in the tables of data adds up through IQ port number between per two BBU, prescribes a time limit on greater than resource, exchanges the RRU physical channel of these two BBU correspondences, continues the tables of data after exchanging is added up;
Through IQ port number all is not more than on the resource in limited time between any two BBU in tables of data, according to the RRU physical channel of each BBU correspondence in the tables of data, the IQ passage between BBU and RRU is distributed.
In the such scheme, the described resource upper limit is specially the IQ port number that allows at most between BBU.
In the such scheme, through IQ port number is being not more than on the resource in limited time between two BBU, and this method further comprises: the RRU physical channel of described two BBU correspondences is not exchanged.
In the such scheme, the described RRU physical channel and the BBU at the Guang Kou place that connects of corresponding RRU with each BBU correspondence records in the tables of data and be specially: BBU physical channel and RRU physical channel data are that the unit is put in order out with BBU one to one, record in the tables of data, search the BBU at the Guang Kou place that the RRU of each BBU correspondence connects then, and corresponding RRU physical channel records in the tables of data.
In the such scheme, described recording in the tables of data is specially: the Guang Kou place BBU number record that BBU physical channel numbering, RRU numbering and RRU physical channel numbering, RRU are connected is in tables of data; The Guang Kou place BBU that described RRU connects numbers corresponding described RRU numbering and RRU physical channel numbering.
In the such scheme, described method further comprises: n BBU arranged in the distributed band processing system, and when the IQ channel allocation of carrying out BBU, the number of times of exchanging the RRU physical channel of BBU correspondence will be not more than n-1 time.
The device of the IQ channel allocation of a kind of Base Band Unit provided by the invention, this device comprises: logging modle, to wearing IQ port number module, exchanging module, tables of data; Wherein,
Logging modle, the BBU that is used for Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records tables of data;
To wearing IQ port number module, be used for BBU according to the Guang Kou place of each corresponding RRU connection of tables of data, add up through IQ port number between per two BBU, on greater than resource, prescribe a time limit, two BBU that add up are notified to exchange module; And in tables of data between any two BBU through IQ port number all be not more than on the resource in limited time the notice distribution module;
Exchange module, be used for exchanging RRU physical channel two BBU correspondences of wearing IQ port number module notice in tables of data, exchange finish after, notice is added up new tables of data wearing IQ port number module;
Tables of data is used to store the BBU at the RRU physical channel and the Guang Kou place that corresponding RRU connects of each BBU correspondence;
Distribution module is used for the RRU physical channel according to each BBU correspondence of tables of data, and the IQ passage between BBU and RRU is distributed.
In the such scheme, described to wearing IQ port number module, through IQ port number is not notified and is exchanged module being not more than on the resource in limited time between two BBU that are further used for adding up.
In the such scheme, the described resource upper limit is specially the IQ port number that allows at most between BBU.
The method and apparatus of the IQ channel allocation of a kind of Base Band Unit provided by the invention, the BBU at the Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records in the tables of data, add up through IQ port number between per two BBU, on greater than resource, prescribe a time limit, exchange the RRU physical channel of these two BBU correspondences; Thereby through after the exchanging of limited number of time, through IQ port number all is not more than the resource upper limit between all BBU; According to the RRU physical channel of each BBU correspondence in the tables of data, the IQ passage between BBU and RRU is distributed then; Solve the problem that the IQ port number limits between BBU in the IQ channel allocation process, can realize the full exchange of IQ data.
Embodiment
BBU in the distributed band processing system has the network exchange function, and as shown in Figure 1, the CPRI light mouth of BBU connects RRU, and the IQ passage is interconnected in twos between the BBU.
Below to through IQ port number between any two BBU in the distributed band processing system, prescribe a time limit on greater than the BBU disposal ability, the correctness that can make through IQ port number be not more than the resource upper limit by the RRU physical channel of exchanging these two BBU correspondences describes.Be limited to the IQ port number that allows at most between BBU on the resource of the present invention.
With three BBU is example, as shown in Figure 2, is respectively BBU1, BBU2 and BBU3, and the physical channel that the BBU1 light-emitting window is connected RRU is divided into three subclass S
11(corresponding Base-Band Processing is at BBU1), S
12(corresponding Base-Band Processing is at BBU2) and S
13(corresponding Base-Band Processing is at BBU3); In like manner, the physical channel of BBU2, BBU3 light-emitting window connection RRU is divided into subclass S
21, S
22, S
23, S
31, S
32, S
33Suppose that each BBU has 12 physical channels, allow 12 IQ passages between per two BBU at most, that is:
The RRU physical channel of BBU1 correspondence: S
11+ S
21+ S
31≤ 12 1.
The RRU physical channel of BBU2 correspondence: S
12+ S
22+ S
32≤ 12 2.
The RRU physical channel of BBU3 correspondence: S
13+ S
23+ S
33≤ 12 3.
At first, calculate through IQ port number between BBU:
Through IQ port number is between BBU1 and the BBU2: S
21+ S
12
Through IQ port number is between BBU1 and the BBU3: S
31+ S
13
Through IQ port number is between BBU2 and the BBU3: S
32+ S
23
Have only two groups of data at most greater than 12 in these three groups of data, this be because if three groups of data all greater than 12, that is:
S
21+S
31+S
12+S
32+S
13+S
23>36
According to formula 1., 2. and 3. know, exceeding the Base-Band Processing ability of 3 BBU, obviously is invalid.
Secondly, suppose that first group of data is greater than 12, that is:
S
21+S
12>12 ④
The RRU physical channel of BBU1 and BBU2 correspondence is exchanged, shown in (b) among Fig. 2,
Through IQ port number is between BBU1 and the BBU2: S
22+ S
11
Through IQ port number is between BBU1 and the BBU3: S
32+ S
13
Through IQ port number is between BBU2 and the BBU3: S
31+ S
23
Suppose S wherein
22+ S
11Greater than 12, obtain by 4. formula:
S
21+S
12+S
22+S
11>24
That is:
S
11+S
21+S
12+S
22>24
1. and 2. obviously can not satisfy formula simultaneously, so hypothesis is false S
22+ S
11≤ 12.And S
32+ S
13And S
31+ S
23Whether be not more than 12 and can not determine, in like manner can suppose:
S
32+S
13>12 ⑤
Then the RRU physical channel of BBU1 and BBU3 correspondence is exchanged, shown in (c) among Fig. 2,
Through IQ port number is between BBU1 and the BBU2: S
23+ S
11
Through IQ port number is between BBU1 and the BBU3: S
33+ S
12
Through IQ port number is between BBU2 and the BBU3: S
31+ S
22
Suppose to exchange back S
23+ S
11>12, with it and formula 4. and 5. addition can get:
S
11+S
21+S
12+S
32+S
13+S
23>36
Obviously can not satisfy formula simultaneously 1., 2., 3., supposing is false, so S
23+ S
11≤ 12.
Suppose S
33+ S
12>12, with it and formula 5. addition obtain:
S
12+S
32+S
13+S
23>24
Obviously can not satisfy formula simultaneously 2., 3., supposing is false, so S
33+ S
12≤ 12.
Suppose S
31+ S
22>12, with it and formula 4. addition obtain:
S
21+S
31+S
12+S
22>24
Obviously can not satisfy formula simultaneously 1., 2., supposing is false, so S
31+ S
22≤ 12.
In like manner, also can suppose S
31+ S
23>12, the RRU physical channel of BBU2 and BBU3 correspondence is exchanged, through IQ port number all is not more than 12 between same provable all BBU.
For n BBU arranged in the distributed band processing system, the RRU physical channel of its BBU correspondence is exchanged number of times and will be not more than n-1 time, and method of proof is as follows:
The Base-Band Processing ability of supposing each BBU is T physical channel to the maximum, between per two BBU T IQ passage is arranged, and then the physical channel of the RRU of BBU1~BBUn processing is:
S
11+S
21+...+S
(n-1)1+S
n1≤T a1
S
12+S
22+...+S
(n-1)2+S
n2≤T a2
:
S
1i+S
2i+...+S
(n-1)i+S
ni≤T ai
:
S
1(n-1)+S
2(n-1)+...+S
(n-1)(n-1)+S
n(n-1)≤T a(n-1)
S
1n+S
2n+...+S
(n-1)n+S
nn≤T an
Shown in (a) among Fig. 3, a1 is formed the capable determinant of n row n to an, successively hypothesis:
S
21+S
12>T b1
S
32+S
13>T b2
S
43+S
14>T b3
:
S
(i-1)(i-2)+S
1(i-i)>T b(i-2)
S
i(i-1)+S
1i>T bi-1
S
(i+1)i+S
1(i+1)>T bi
:
S
(n-1)(n-2)+S
1(n-1)>T b(n-2)
S
n(n-1)+S
1n>T b(n-1)
Be listed as successively to b (n-1) according to formula b1 and exchange,, the determinant among Fig. 3 (a) is become determinant (b), obtain the expression formula among through IQ port number between all BBU such as Fig. 4 through after exchanging n-1 time.Proof is the form of Fig. 5 with expression formula b1 to b (n-1) arrangement for convenience.
Suppose the S among Fig. 4
2n+ S
11>T, by Fig. 5, with itself and formula b1, b2 ..., b (n-1) addition, obtain:
S
1n+S
2n+S
11+S
21+S
12+S
32+...+S
1(n-1)+S
n(n-1)>nT
Obviously and formula a1 to an contradiction, supposing is false, so S
2n+ S
11≤ T, promptly through IQ port number is not more than T between BBUn and the BBU1.
In like manner, can prove that expression formulas all among Fig. 4 all is not more than T, after promptly exchanging through n-1 time, through IQ port number all is not more than T between n the BBU.
According to principle mentioned above, basic thought of the present invention is: the BBU at the Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records in the tables of data, add up through IQ port number between per two BBU, on greater than resource, prescribe a time limit, exchange the RRU physical channel of these two BBU correspondences; Thereby through after the exchanging of limited number of time, through IQ port number all is not more than the resource upper limit between all BBU; According to the RRU physical channel of each BBU correspondence in the tables of data, the IQ passage between BBU and RRU is distributed.
The present invention is described in further detail below by drawings and the specific embodiments.
The present invention realizes a kind of method of IQ channel allocation of Base Band Unit, and as shown in Figure 6, this method comprises following step:
Step 601: the BBU at the Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records in the tables of data;
Concrete, according to the configuration in the distributed band processing system, BBU physical channel and RRU physical channel data are that the unit is put in order out with BBU one to one, record in the tables of data, search the BBU at the Guang Kou place that the RRU of each BBU correspondence connects then, and corresponding RRU physical channel records in the tables of data.
Step 602: the BBU at the Guang Kou place that connects according to the RRU of each BBU correspondence in the tables of data, add up through IQ port number between per two BBU,, exchange the RRU physical channel of these two BBU correspondences in limited time on greater than resource; Through IQ port number all is not more than on the resource and prescribes a time limit execution in step 603 between any two BBU in tables of data;
When exchanging the RRU physical channel of these two BBU correspondences described in this step, the BBU at the Guang Kou place that corresponding RRU connects also exchanges thereupon;
To wearing in the BBU physical channel and RRU physical channel data that is meant one group of correspondence, the light mouth that RRU connects need be finished the transmission of IQ data by the IQ passage between two BBU not on the BBU of correspondence described in this step;
Further, in this step between two BBU through IQ port number the RRU physical channel of these two BBU correspondences is not exchanged being not more than on the resource in limited time.
Step 603:, the IQ passage between BBU and RRU is distributed according to the RRU physical channel of each BBU correspondence in the tables of data;
Described in this step the IQ passage between BBU and RRU is assigned as prior art, comprise BBU on the backboard between the distribution of IQ passage and the distribution of the IQ passage of BBU glazing mouth, concrete steps repeat no more.
Be to realize said method, the present invention also provides a kind of device of IQ channel allocation of Base Band Unit, and as shown in Figure 7, this device comprises: logging modle 71, to wear IQ port number module 72, exchange module 73, tables of data 74; Wherein,
Logging modle 71, the BBU that is used for Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records tables of data 74;
To wearing IQ port number module 72, be used for the BBU at the Guang Kou place that connects according to the RRU of tables of data 74 each BBU correspondence, add up through IQ port number between per two BBU, in limited time, two BBU of statistics are notified to exchange module 73 on greater than resource; And in tables of data 74 between any two BBU through IQ port number all be not more than on the resource in limited time notice distribution module 75;
Exchange module 73, be used for exchanging RRU physical channel two BBU correspondences of wearing IQ port number module 72 notice in tables of data 74, exchange finish after, notice is added up wearing 72 pairs of new tables of data 74 of IQ port number module; Described in the RRU physical channel of exchanging two BBU correspondences of wearing IQ port number module 72 notice, exchange the BBU at the Guang Kou place that corresponding RRU connects.
Tables of data 74 is used to store the BBU at the RRU physical channel and the Guang Kou place that corresponding RRU connects of each BBU correspondence;
Distribution module 75 is used for the RRU physical channel according to tables of data 74 each BBU correspondence, and the IQ passage between BBU and RRU is distributed.
Described to wearing IQ port number module 72, through IQ port number is not notified and is exchanged module 73 being not more than on the resource in limited time between two BBU that are further used for adding up.
The upper limit of resource described in the said apparatus is specially the IQ port number that allows at most between BBU.
Below by specific embodiment the solution of the present invention is described in further detail again.
Embodiment one:
With three BBU with network exchange function is example, is respectively BBU1, BBU2 and BBU3, allows 12 IQ passages at most between per two BBU, realizes a kind of method of IQ channel allocation of Base Band Unit, and as shown in Figure 8, this method comprises:
Step 801: the BBU at the Guang Kou place that the RRU physical channel of each BBU correspondence and corresponding RRU are connected records among the tables of data BpIQData;
Concrete, according to the configuration in the distributed band processing system, BBU physical channel and RRU physical channel data are that the unit is put in order out with BBU one to one, number in (RRUTruNo) the BBU physical channel numbering (BBUTruNo) and RRU numbering, the physical channel that record tables of data BpIQData, search the BBU at the Guang Kou place of each RRU connection then, the RRU that corresponding RRUTruNo records tables of data BpIQData connects in the Guang Kou place BBU numbering (FSPos), obtains the BpIQData tables of data; As shown in table 1:
Table 1
Step 802: the BBU at the Guang Kou place that connects according to the RRU of each BBU correspondence in the tables of data, add up through IQ port number between per two BBU,, exchange the RRU physical channel of these two BBU correspondences in limited time on greater than resource; Through IQ port number all is not more than on the resource and prescribes a time limit execution in step 803 between any two BBU in tables of data;
Such as through IQ passage number ExIQDataNum between statistics BBU1 and the BBU2: at first adding up FSPos among the BBU1 and be 2 number is 7, adding up FSPos among the BBU2 then and be 1 number is 6, it is 13 that both additions are obtained through IQ passage number ExIQDataNum, surpassed the restriction of 12 IQ passages between BBU, exchange the RRU physical channel data of BBU1 and BBU2 correspondence, promptly exchange the RRUTruNo of BBU1 and BBU2, the FSPos of BBU1 and BBU2 also exchanges thereupon simultaneously, as shown in table 2, exchange then that FSPos is that 2 number is 1 among the BBU1 of back, FSPos is that 1 number is 4 among the BBU2, it is 5 that both additions are obtained through IQ passage number ExIQDataNum, does not surpass the restriction of 12 IQ passages between BBU.
Table 2
Again according to through IQ passage number ExIQDataNum between table 2 statistics BBU1 and the BBU3: at first adding up FSPos among the BBU1 and be 3 number is 5, adding up FSPos among the BBU3 then and be 1 number is 8, it is 13 that both additions are obtained through IQ passage number ExIQDataNum, surpassed the restriction of 12 IQ passages between BBU, exchange the RRU physical channel data of BBU1 and BBU3 correspondence, promptly exchange the RRUTruNo of BBU1 and BBU3, the FSPos of BBU1 and BBU3 also exchanges thereupon simultaneously, as shown in table 3, exchange then that FSPos is that 3 number is 0 among the BBU1 of back, FSPos is that 1 number is 6 among the BBU3, it is 6 that both additions are obtained through IQ passage number ExIQDataNum, does not surpass the restriction of 12 IQ passages between BBU.
Table 3
Can count according to table 3:
Through IQ passage number ExIQDataNum is 8 between BBU1 and the BBU2, through IQ passage number ExIQDataNum is 6 between BBU1 and the BBU3, through IQ passage number ExIQDataNum is 2 between BBU2 and the BBU3, as seen, after exchanging by twice, through IQ passage number all is not more than resource limit 12 between all BBU.
Step 803:, the IQ passage between BBU and RRU is distributed according to the RRU physical channel of each BBU correspondence in the tables of data.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.