Data compression method and system based on probability statistics in TD-LTE
Technical Field
The invention relates to the field of mobile communication, in particular to a data compression method and system based on probability statistics in TD-LTE.
Background
LTE is a long term evolution of the UMTS technical standard, currently known as 4G, established by the 3GPP organization. The LTE system architecture is still divided into two parts, including an evolved core network and an evolved access network. The evolved access network generally adopts a BBU + RRU architecture, the BBU and the RRU are connected through optical fibers, along with the improvement of service data flow, the optical fiber link rate between the BBU and the RRU is also proportionally improved, the station building cost is increased, and along with the formulation of a 5G standard and the research of related technologies, the challenge of large data flow also puts demands on a data compression technology.
Introduction common terminology in the LTE technology field is as follows:
1. BBU: base width Based Unit, Baseband processing Unit
2. RRU: remote RF Unit
3. LTE: long Term Evolution (LTE) plan for Long Term Evolution (Long Term Evolution)
4. TD-LTE: time Division Long Term Evolution
Disclosure of Invention
The invention aims to provide a TD-LTE (time division-Long term evolution) data compression scheme based on probability statistics, and aims to solve the problem that the transmission rate between a BBU (baseband unit) and an RRU (remote radio unit) is too high, so that the equipment cost is increased.
The technical scheme of the invention provides a data compression method based on probability statistics in TD-LTE, which comprises the following steps,
step 1, acquiring TD-LTE wireless frame configuration information;
step 2, setting a data statistical unit boundary according to the bit width of the original data;
step 3, obtaining a statistical time slot relative to the frame header according to the TD-LTE wireless frame configuration information obtained in the step 1;
step 4, carrying out data probability density statistics on the data according to the statistical time slot obtained in the step 3 to obtain an original data probability statistical result, wherein the original data probability statistical result comprises a step of carrying out data probability density statistics according to a preset fixed period TaMapping the data in the statistical time slot into a corresponding data statistical unit;
step 5, mapping the original data according to the data probability density to complete data compression, wherein the range of the data after being mapped and compressed by the data statistical unit is set according to the original data probability statistical result obtained in the step 4 and the bit width of the data after being compressed, and a compression factor is calculated;
completing data compression of the original data according to the compression factor;
and transmitting the compressed data and the compression factors to a remote end together, wherein the signal transmitted to the remote end also comprises the original data bit width and the compressed data bit width.
In step 2, the setting of the data statistic unit boundary includes setting a total Z to 2 according to the bit width N of the transmission dataN-10A statistical unit with a size of 210The data range of the 1 st data statistical unit is 0-210-1, nth data statistic unit data range is 2n+8-1~2n+9-1,n=2,3…Z。
And in step 3, acquiring a statistical time slot relative to the frame header, including performing density statistics on data in a downlink time slot of the TD-LTE radio frame.
Furthermore, in step 4, the period T is fixeda≥j×TfWherein j is not less than 100, TfOne LTE radio frame period.
Moreover, the mapping mode is that if the size of certain data is in the range of the nth data statistical unit, the corresponding counter of the nth data statistical unit is increased by one.
In step 5, the bit width of the compressed data is set to be k, and the bit width is set to be 0-2
k-1 is divided into Z ═ 2
N-10A mapping unit, the original data is mapped from the 1 st data statistics unit into a compressed data range
The nth data statistic unit maps the range of the compressed data into
Wherein Count
block_nIs at T
aThe number of times of data obtained by the counter corresponding to the nth data statistical unit in the period is Count
sumIs at T
aThe total number of the raw data counted in the period, n, is 2,3 … Z.
Furthermore, in step 5, the process,
furthermore, in step 5, each data statistic unit is used as an original data unit, which is in a one-to-one mapping relationship with the compressed data unit, the nth original data unit corresponds to the nth compressed data unit,
the data D in the nth original data unit is mapped to the compressed data C as follows,
wherein n is 1,2,3 … Z.
And the receiving end decompresses the corresponding compressed data unit according to different compression factors and restores the corresponding compressed data unit into the original data unit.
Moreover, the receiving end decompresses the corresponding compressed data unit according to different compression factors to restore the original data unit, which is realized as follows,
if the compressed data C satisfies
C is in the nth data compression unit, the data is decompressed as follows,
wherein n is 1,2,3 … Z.
The invention provides a data compression system based on probability statistics in TD-LTE, which comprises the following modules,
the first module is used for acquiring TD-LTE wireless frame configuration information;
the second module is used for setting the boundary of the data statistical unit according to the bit width of the original data;
a third module, configured to obtain a statistical time slot corresponding to the frame header according to the TD-LTE radio frame configuration information obtained by the first module;
a fourth module for carrying out data probability density statistics on the data according to the statistical time slot obtained by the third module to obtain an original data probability statistical result, which comprises a step of carrying out data probability density statistics according to a preset fixed period TaMapping the data in the statistical time slot into a corresponding data statistical unit;
the fifth module is used for mapping the original data according to the data probability density to complete data compression, and the range of the data after the data is mapped and compressed by the data statistical unit is set according to the original data probability statistical result obtained by the fourth module and the bit width of the data after the data is compressed, and a compression factor is calculated;
completing data compression of the original data according to the compression factor;
and transmitting the compressed data and the compression factors to a remote end together, wherein the signal transmitted to the remote end also comprises the original data bit width and the compressed data bit width.
The invention has the following advantages and positive effects:
1. according to probability statistics, data are compressed, quantization errors are small, and compared with other compression algorithms after compression and decompression, nonlinearity caused by compression and decompression of the whole system is lower.
2. The method is mainly applied to data compression processing of an interface between the BBU and the RRU of the distributed base station equipment, and can reduce the interface rate between the BBU and the RRU and the development cost of the equipment after compressing the data.
3. The technical scheme of the invention can be directly realized on the existing base station equipment, and the equipment investment before the equipment investment is protected.
Therefore, the invention has important market value in the field of communication.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
FIG. 2 is a diagram illustrating a mapping relationship between original data and compressed data according to an embodiment of the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
In specific implementation, the invention can adopt software technology to realize automatic operation of the process. Referring to fig. 1, an embodiment of the present invention includes the steps of:
step 1, TD-LTE wireless frame configuration information is obtained.
In specific implementation, the configuration information of the TD-LTE radio frame includes TD-LTE uplink and downlink subframe ratio configuration information, special subframe configuration information, and cyclic prefix length selection information.
And 2, setting a data statistical unit boundary.
The setting data statistics unit boundary is based on the transmission data bit width N (general N)>10) Setting a total of Z2N-10A statistical unit with a size of 210The data range of the 1 st data statistical unit is 0-210-1, nth data statistic unit data range is 2n+8-1~2n+9-1, n-2, 3 … Z. That is, the data range of the 1 st data statistical unit is 0-210-1, 2 nd data statistic unit data range of 210~211-1, 3 rd data statistics Unit data normEnclose as 211~2121, … th data statistic unit data range of Z2Z+8-1~2Z+9-1,。
In this embodiment, the original data bit width is 15 bits, i.e., N is 15, each data unit has a size of 1024, and there are 32 statistical units, which are respectively denoted as BLOCK1, BLOCK2, and BLOCK3 … BLOCK kz. The range of the first statistical unit is 0-1023, and the range of the nth data statistical unit is 2n+8~2n+9-1,n=2,3…Z。
And 3, acquiring the statistic time slot relative to the frame header according to the TD-LTE wireless frame configuration information acquired in the step 1.
In the embodiment, according to configuration information of the radio frame, probability density statistics is performed on data only in a downlink data time slot, that is, density statistics is performed on data in the downlink time slot of the TD-LTE radio frame.
And 4, carrying out data probability density statistics on the data according to the statistical time slot obtained in the step 3 to obtain an original data probability statistical result.
Further, in step 4, the probability density statistics of the data is according to a preset fixed period TaUpdating the data probability density statistics, and setting Ta≥j×TfTherefore, after j infinite frame data are counted, the probability density of the data is updated, the value of j is not small during specific implementation, and the probability density counted by the small value is not accurate. Preferably, where j ≧ 100, TfIs one LTE radio frame period of 10 ms.
According to the statistical time slot obtained in the step 3, the data in the downlink time slot is processed in a fixed period TaProbability density statistics is carried out in a period, j is 100 in the embodiment, and therefore the period T is counteda1 second, the frequency of updating the probability density statistical result, the frequency of updating the data compression ratio and TaThe same is true for 1 second.
At TaIn the period, mapping the data in the statistical time slot obtained in the step 3 into a specific original data unit (namely a data statistical unit) in such a way that if the size of certain data is within the range of the nth data statistical unit, the nth data unitOne is added according to the corresponding counter of the statistical unit.
And 5, mapping the original data according to the probability density of the data to complete data compression:
step 5 of the example comprises the following process:
(1) and 4, setting the range of the data after the data statistics unit is mapped and compressed according to the original data probability statistics result in the step 4, and calculating a compression factor.
According to the invention, the original data is mapped according to the statistics of the probability density of the data, and the data compression is completed: the original data and the compressed data are divided into the same data units, the original data units and the compressed data units are in one-to-one mapping relation, the compressed data units corresponding to one original data statistical unit form one mapping unit, and each mapping unit independently calculates a compression factor lambda according to probability density distribution.
At a fixed period T
aIn the period, according to the probability statistical result of the original data, the boundary division of the compressed data is completed, the bit width of the compressed data is set to be k, and the number is 0-2
k-1 is divided into Z ═ 2
N-10A mapping unit; the original data is mapped from the first data statistics unit into the compressed data range
The nth data statistic unit maps the range of the compressed data into
That is, the value range of the nth data block is from the sum of the first n-1 data blocks to the sum of the n data blocks, wherein the Count
block_nIs at T
aThe number of times of data obtained by the counter corresponding to the nth data statistical unit in the period is Count
sumIs at T
aThe total number of the original data counted in the period; n is 2,3 … Z.
Where floor (x) denotes rounding down data x, and round (x) denotes rounding data x.
The bit width of the compressed data is 6 bits, and the data range is 0-2
6-1 division into 32 data units, the first oneThe range of the data unit is
First data unit compression factor
The range of the nth data unit is
Nth data unit compression factor
As depicted in fig. 2, wherein f (n) represents the compressed data boundary, the general expression is:
in the examples, f (32) ═ 26-1。
The compression factor is:
(2) and completing data compression of the original data.
The specific implementation process of the embodiment is described as follows: each data statistical unit is used as an original data unit, each original data unit and a compressed data unit are in a one-to-one mapping relationship, the nth original data unit corresponds to the nth compressed data unit, n is more than or equal to 1 and less than or equal to 32 in the embodiment, and a general expression of data C in the embodiment, in which data D in the nth original data unit is mapped to compressed data, is
Wherein n is 1,2,3 … Z.
(3) Compressing each data C and a compression factor lambdanThe bit width N of the original data and the bit width k of the compressed data are also included in the signals transmitted to the remote end.
In specific implementation, the steps (1) and (2) from the step 4 to the step 5 can be executed circularly, and the current period T is processed continuouslyaAnd (3) transmitting the result to the remote end.
Because the compressed data C and the compression factor lambda are transmitted together, the receiving end can decompress the corresponding compressed data unit according to different compression factors lambda and restore the compressed data unit into the original data unit.
In the embodiment, the remote end is used for compressing the data according to the bit width of the original data, the bit width of the compressed data and the compression factor lambdanThe range of the compressed data is 0-26-1 and raw data range 0-215-1 dividing the data into 32 data units and determining the boundary of the compressed data unit, wherein the boundary of the 1 st data compression unit ranges from 0 to floor (1024 x lambda)1-1). The nth data compression unit boundary range is:
if the compressed data C satisfies
C is in the nth data compression unit. The data decompression expression is:
wherein n is 1,2,3 … Z.
In specific implementation, the method provided by the invention can realize automatic operation flow based on software technology, and can also realize a corresponding system in a modularized mode.
The embodiment of the invention provides a data compression system based on probability statistics in TD-LTE, which comprises the following modules,
the first module is used for acquiring TD-LTE wireless frame configuration information;
the second module is used for setting the boundary of the data statistical unit according to the bit width of the original data;
a third module, configured to obtain a statistical time slot corresponding to the frame header according to the TD-LTE radio frame configuration information obtained by the first module;
a fourth module for carrying out data probability density statistics on the data according to the statistical time slot obtained by the third module to obtain an original data probability statistical result, which comprises a step of carrying out data probability density statistics according to a preset fixed period TaMapping the data in the statistical time slot into a corresponding data statistical unit;
the fifth module is used for mapping the original data according to the data probability density to complete data compression, and the range of the data after the data is mapped and compressed by the data statistical unit is set according to the original data probability statistical result obtained by the fourth module and the bit width of the data after the data is compressed, and a compression factor is calculated;
completing data compression of the original data according to the compression factor;
and transmitting the compressed data and the compression factors to a remote end together, wherein the signal transmitted to the remote end also comprises the original data bit width and the compressed data bit width.
The specific implementation of each module can refer to the corresponding step, and the detailed description of the invention is omitted.
The above embodiment is an embodiment of the present invention, but the embodiment of the present invention is not limited by the above embodiment, and the spirit and scope of the present invention are not limited by the above embodiment, and any other changes, modifications, substitutions, combinations, and simplifications which are made without departing from the principle of the present invention are included in the protection scope of the present invention.