Background technology
CPRI (Common Public Radio Interface) is a kind of general Radio interface protocols in the wireless communication system, the interface of CPRI is a high-speed interface, each CPRI frame can transmit a lot of single antenna lists sub-districts (AxC) data, the base station zoom out and the situation of cascade under, different remote base station (hereinafter to be referred as RRU) is walked different AxC data channel on the CPRI link.Like this, when carrying out transfer of data, the home base stations side need be selected to handle to the different data channel in the CPRI link.
In order to support the flexibility of RRU cascade, the home base stations side is to the full selection scheme of the general employing of selection of data passage.
The full selection scheme that is applied to the data channel selection is meant in the face of all selectable data channel, therefrom select required object, promptly select required passage here in the face of all AxC passages, choose on the basis of whole required objects in assurance, also requirement can be controlled the output order of whole objects, can adjust the output order of every data channel arbitrarily.
At present, the full selection of data channel can realize by using a plurality of selectors.
For instance,, need therefrom select m passage, then select link will arrange m n to select 1 channel to channel adapter, output m circuit-switched data if a CPRI passage has n AxC passage.
When carrying out actual selection, owing to need from n passage, select m passage, therefore need to use m selector, so that make the corresponding passage of each selector; In addition, used selector all uses n to select 1 selector, and each selector can be selected any in the n bar data channel.
The full flexibility of selecting is, can choose m bar data channel to be selected as requested in n data passage, and by controlling the output order that each n selects the sequential control m bar data path of 1 selector.
Though described full selection scheme can satisfy the maximum flexibility of RRU cascade, no matter what mode to realize this selection with, all must use a large amount of selectors, therefore can waste a large amount of Internet resources.If the CPRI link is a lot, select the shared resource of link will be exponential increase, system can't provide enough resources for other functions, and this moment, its practicality was very limited.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the purpose of this invention is to provide a kind of data channel group selecting method and device that can satisfy RRU cascade maximum flexibility.
The objective of the invention is to be achieved through the following technical solutions:
A kind of data channel group selecting method comprises:
A, data channel to be selected is divided into groups, each the data channel group after the grouping is carried out data channel select based on the random distribution algorithm;
B, output order to selecting entirely by the data channel of selecting to obtain of selecting, use to select data in the control data passage entirely.
Data channel number in the described steps A in each grouping is the approximate number of data channel sum, and the data channel number in each grouping is identical.
In the described steps A in the data channel group data number be the approximate number of total data channel number to be selected, and the merchant of the data channel number of selecting and data channel group group number be the data channel number of every group of data channel requirement selection.
Selection to passage in the data channel group in the described steps A divides the control of group selection parameter by ordering, and ordering divides the group selection parameter to be disposed by upper layer software (applications).
Full selection to the data passage among the described step B is controlled by the full parameter of selecting of ordering, and the full parameter of selecting of ordering is disposed by upper layer software (applications).
Described data channel is the AxC passage of CPRI agreement.
A kind of data channel grouping choice device comprises:
Grouping module is used for according to random algorithm data channel being divided into several data channel groups;
Group selection module, each group selection module are selected the data channel group after the grouping corresponding to a data channel group;
The full module of selecting is used for the data channel of selecting from the data channel group is selected entirely, and the full result who selects is used for the data output sequence of control data passage.
Also comprise the selection parameter configuration module, be used to dispose that ordering divides the group selection parameter so that the selection of control data passage, or be used to dispose that ordering is complete selects parameter so that the output of data order in the control data passage.
Described data channel is the AxC passage of CPRI agreement.
A kind of data channel is divided the group selection base station, when the data channel selection is carried out in described base station data channel is divided into several data channel groups, data channel group after the grouping is selected, and behind selected data channel to selecting data channel to select control data output order entirely.
The data channel of described base station is the AxC passage of CPRI agreement.
As seen from the above technical solution provided by the invention, the present invention selects data channel grouping earlier again, uses less selector, and the corresponding minimizing of the system resource that takies effectively reduces the cost of realizing channel selecting; Simultaneously, the present invention also selects entirely to gating road, thereby can also continue to guarantee the maximum flexibility of RRU cascade.In a word, the invention provides that a kind of to take resource few, realize the low channel selecting implementation method of cost.
Embodiment
Core of the present invention is when a plurality of AxC data channel are selected, AxC data channel to be selected is carried out random packet, data channel in each grouping is not reproducible, use several pins that the selector of each data channel group is carried out channel selecting, be provided for arranging the sequencing selection circuit of each selected passage order at the channel selecting output.
More specifically say, the present invention is when selecting a plurality of AxC data channel, at first AxC data channel to be selected is carried out random packet, use several pins that the selector of this data channel group is carried out channel selecting to each channel group then, after all selector is finished channel selecting, re-use the sequencing selection circuit and select entirely at last for selected passage.
Emphasis of the present invention carries out random packet for the data channel for the treatment of selection before the data passage is selected entirely and selects, reduce the data channel number of selecting entirely, save a large amount of Internet resources than the method that prior art is directly selected entirely to the total data passage.
The method of AxC data channel to be selected being carried out random packet is:
For the AxC data channel that adds up to N, select with every n passage as one group, here n preferably in the CP RI link all AxC data channel count the approximate number of N, promptly size is satisfied can be divided exactly N/n=m (integer) by the total N of data channel.
No matter N and n why concrete value or AxC data channel be divided into how many groups, must satisfy in each grouping and the AxC data channel between each grouping does not repeat.
Group technology to the AxC data channel is not limited thereto, and can also comprise additive method.
The method of using selector to carry out channel selecting is:
For every group of each AxC data channel group that comprises n passage,, be that n selects 1 selector then for each channel group is provided with k range of choice if need from each grouping, to select k AxC data channel;
For the link that has m grouping, the overall operating position of selector is selected 1 selector for using m * k n, and passage of each selector output is exported m * k AxC data channel altogether.
So far, by though the grouping of data passage and selection having been realized selection to data in the passage, but because the data result that this process obtains is the random distribution state, therefore in order to obtain and the complete the same AxC data output effect in proper order of selecting, make data channel have flexibility, need use ranking circuit to select entirely obtain data channel by a minute group selection.
The method of using the sequencing selection circuit to select control data to export in proper order entirely is:
The output that is total to m * k selector in each data channel group connects the selection circuit with m * k input, this selection circuit also is provided with a full parameter input of selecting of ordering, the full parameter of selecting of ordering of every input, just have the data output in the data channel of a correspondence, by the complete input of selecting parameter of control ordering, just can realize the data output sequence of each data channel, realize the full selection of data channel.Be used to realize that the ordering of selection selects parameter to be controlled by upper layer software (applications) entirely entirely.
Below in conjunction with the specific embodiment of the invention accompanying drawing the present invention is elaborated.
The present invention mainly comprises three parts, promptly
AxC data channel to be selected is carried out random packet;
Use several pins that the selector of this data channel group is carried out channel selecting to each data channel group;
After the selector of total data channel group is finished channel selecting, selected data channel is connected to the full selection circuit that is used for array data passage output order.
Figure 1 shows that the branch group selection schematic diagram of the embodiment of the invention one.
As shown in Figure 1, describedly AxC data channel to be selected is carried out random packet be meant,, every n passage is divided into one group for the AxC data channel that adds up to N.Here n preferably in the link all AxC data channel count the approximate number of N, promptly size satisfies and can be divided exactly N/n=m (integer) by the total N of data channel.
No matter N and the concrete value of n why or the AxC data channel be divided into how many groups, must satisfy in each grouping and the AxC data channel between each grouping does not repeat.
In order to guarantee the flexibility of RRU cascade, the embodiment of the invention adopts the random packet algorithm in grouping, and n passage of the AxC channel selecting in N CPRI is divided into one group, is divided into into the m group, and each quantity of organizing passage is identical.
The embodiment of the invention is an example with the CPRI link, and the meaning that relates to each symbol in the embodiment of the invention is:
I represents the AxC channel number, and its scope is 0~N-1;
Min is the minimum ability that every CPRI link can transmit the AxC number of channels, and promptly CPRI can transmit the ability of AxC port number under the situation of transmission slowly;
Max is the maximum capacity that every CPRI link can transmit the AxC number of channels, and promptly CPRI can transmit the ability of AxC port number under the situation of fast transmission.
G is the ratio that every CPRI link maximum capacity that can transmit the AxC number and every CPRI link can transmit the minimum ability of AxC number;
M is the CPRI number of links;
N be in all CPRI links whole AxC port numbers;
C represents the CPRI link No.;
R represents AXC number.
In the random algorithm of the embodiment of the invention, the computing formula of c and r is respectively:
C (CPRI link No.)=i%3;
R (AXC number)=min* (i%G)+(i/ (M * G));
Round numbers after wherein "/" expression is divided by is got remainder after " % " expression is divided by.
According to top algorithm, AxC channel number that can be in order obtains the CPRI link No., and the corresponding form between the AxC channel number among each CPRI, and Shun Xu n the AxC passage of choosing is one group then, just has been divided into the m group.
Requiring the data channel number of selection and the merchant of data channel group group number is that the data channel that every group of data channel requires to select is counted k.From each little grouping, select k AxC passage,, just need k n to select 1 selector like this for the selection of each group.The number of the selector of all CPRI links just becomes: m * k n selects 1 selector, exports m * k AxC passage.
As shown in Figure 1, in embodiment one of the present invention, there are 3 CPRI links in system, 10 of every minimum carryings of link, and 20 AXC data channel of high-mechanic have 60 AxC passages at most.
According to the above-mentioned parameter computing formula, calculate CPRI link No. c respectively, AxC channel number r.
Here G=20/10=2, M=3, min=10 can obtain according to c, r computing formula:
c=i%3;
r=10*(i%2)+(i/(3*2))。
After being divided by, " % " expression gets remainder, round numbers after "/" expression is divided by.
When i=0, c=0, r=10*0+0=0;
When i=1, c=1, r=10*1+1/6=10+0=10;
When i=2, c=2, r=0;
When i=3, c=0, r=1;
When i=4, c=1, r=0;
When i=5,
By above calculating, can obtain the c value and the r value of whole 60 passages, its numerical value is as shown in the table:
| Sequence number | CPRI number | AC number | |
0 group | 0 | 0 | 0 | |
1 | 1 | 10 | |
2 | 2 | 0 | |
3 | 0 | 10 | |
4 | 1 | 0 | |
1 group | 5 | 2 | 10 | |
6 | 0 | 1 | |
7 | 1 | 11 | |
8 | 2 | 1 | |
9 | 0 | 11 | |
2 groups | 10 | 1 | 1 | |
11 | 2 | 11 | |
12 | 0 | 2 | |
13 | 1 | 12 | |
| 14 | 2 | 2 | |
3 groups | 15 | 0 | 12 | |
16 | 1 | 2 | |
17 | 2 | 12 | |
18 | 0 | 3 | |
19 | 1 | 13 | |
4 groups | 20 | 2 | 3 | |
21 | 0 | 13 | |
22 | 1 | 3 | |
23 | 2 | 13 | |
24 | 0 | 4 | |
5 groups | 25 | 1 | 14 | |
26 | 2 | 4 | |
27 | 0 | 14 | |
28 | 1 | 4 | |
29 | 2 | 14 | |
6 groups | 30 | 0 | 5 | |
31 | 1 | 15 | |
32 | 2 | 5 | |
33 | 0 | 15 | |
34 | 1 | 5 | |
7 groups | 35 | 2 | 15 | |
36 | 0 | 6 | |
37 | 1 | 16 | |
38 | 2 | 6 | |
39 | 0 | 16 | |
8 groups | 40 | 1 | 6 | |
41 | 2 | 16 | |
42 | 0 | 7 | |
43 | 1 | 17 | |
44 | 2 | 7 | |
9 groups | 45 | 0 | 17 | |
46 | 1 | 7 | |
47 | 2 | 17 | |
48 | 0 | 8 | |
49 | 1 | 18 | |
10 groups | 50 | 2 | 8 | |
51 | 0 | 18 | |
52 | 1 | 8 | |
53 | 2 | 18 | |
54 | 0 | 9 | |
11 groups | 55 | 1 | 19 | |
| 56 | 2 | 9 | |
57 | 0 | 19 | |
58 | 1 | 9 | |
59 | 2 | 19 | |
| | | | |
Table 1: the c value of passage and r value list
When needs are chosen 24 passages in 60 passages, can it be one group sequentially according to the i value in the last table with 5, whole passages are divided into 12 groups, select 1 selector for 5 passages of every group connect 25,12 groups of passages connect 24 selectors, obtain 24 passage D_out0~D_out23.For each selector, its selection operation divides group selection parameter D_sel0~D_sel23 control by the ordering of upper layer software (applications) configuration, 2 selectors on the same group can not be selected same passage simultaneously, again since in 12 channel group the passage between each channel group can not repeat the therefore passage selected of 24 selectors situation that can not duplicate.
The AxC data that above-mentioned use random algorithm is selected remain distribution at random.In order to reach and the complete the same AxC data output effect in proper order of selecting, also to use the sequencing selection circuit, just under the control of software, m * k AxC data of output are once selected entirely, requiring has m * k m * k to select 1 selector.
Figure 2 shows that the sequencing selection schematic diagram of the embodiment of the invention two.
As described in Figure 2, the embodiment of the invention two is selected 1 selector for 24 passages being selected by random algorithm connect 24 24, full parameter S _ sel0~the S_sel23 that selects controls 24 selectors by 24 orderings of upper layer software (applications) control, to realize control, realize and the complete same flexibility of system of selection 24 passage output orders.Under the control of the full selection of ordering parameter S _ sel0~S_sel23, the final output of selector sequences the AxC data S_D0~S_D23 of team.
In the present embodiment, there are 3 CPRI links in system, every link carries 20 AxC data channel at most, have 60 AXC passages, each AxC passage has 3bit, if do full selection, select 24 AXC passages, just need 24 60 select 1 selector, formula rule of thumb, resource occupation is estimated as: 24 * 60 * 3 * 2 ÷ 3=2880 (LE).If adopt the way of grouping, if 5 are divided into one group, be divided into 12 groups, select 2 AxC passages from 5 the insides, only need 12 * 25 to select a selector, increase the one-level ranking circuit again, just 24 24 are selected a selector, total like this resource occupation is estimated as: (24 * 5 * 3 * 2 ÷ 3)+(24 * 24 * 3 * 2 ÷ 3)=1392 (LE), as seen saved ample resources.
Figure 3 shows that apparatus of the present invention schematic diagram.
A kind of data channel grouping choice device as shown in Figure 3 comprises:
Grouping module is used for according to random algorithm data channel being divided into several data channel groups;
Group selection module, each group selection module are selected the data channel after the grouping corresponding to a data channel group;
The full module of selecting is used for the data channel that the group selection module is selected is selected entirely, by the data output sequence of full selection control data passage.
Data channel grouping choice device also comprises the selection parameter configuration module, is used to dispose that ordering divides the group selection parameter so that the selection of control data passage, or is used to dispose that ordering is complete selects parameter so that the output of data order in the control data passage.
Data channel is the AxC passage of CPRI agreement described in the data channel grouping choice device.
The present invention comprises that also a kind of data channel divides the group selection base station, when the data channel selection is carried out in described base station data channel is divided into several data channel groups, data channel group after the grouping is selected, and behind selected data channel to selecting data channel to select control data output order entirely.
It is the AxC passage of CPRI agreement that data channel is divided data channel described in the group selection base station.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.