Disclosure of Invention
Aiming at the problems, the invention provides a method for fusing and transmitting CPRI (common public radio interface) and ECPRI (Internet protocol redundancy protocol), which mainly adopts a CPRI and ECPRI protocol data merging and transmitting technology, can realize data transmission between 5G +4G dual-mode base station equipment in a 10G transmission bandwidth, shares forward transmission resources, improves transmission efficiency, reduces transmission cost and ensures the transmission cost at the same time, and comprises the following steps:
step S1: the method comprises the steps of obtaining CPRI protocol data of 4G signals and ECPRI protocol data of 5G signals in real time, wherein in a CPRI synchronous transmission protocol, data transmission is transmitted by taking a data block as a unit, and in an ECPRI asynchronous transmission protocol, data transmission is transmitted by dividing bits into small groups;
step S2: according to the judgment of the signal priority, the hysteresis degree of the 4G signal and the 5G signal is balanced, the CPRI protocol data of the 4G signal and the ECPRI protocol data of the 5G signal are fused, and the transmission resources are applied to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data.
Has the advantages that:
(1) the invention adopts 5G +4G dual-mode base station equipment, can simultaneously forward transfer CPRI and ECPRI protocol data in the transmission bandwidth of a 10G optical module, saves forward transfer bandwidth resources, reduces the construction cost of a 5G +4G network and improves the transmission efficiency.
(2) The invention fuses the ECPRI of 5G and the CPRI protocol data of 4G, and applies transmission resources to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data.
Detailed Description
In order to make the invention more comprehensible to those skilled in the art, the invention is described below with reference to the following embodiments and the accompanying drawings, in which reference is made to fig. 1 to 4.
In order to realize the content, the invention designs a method for fusing and transmitting CPRI and ECPRI protocol data, which comprises the following steps:
step S1: the method comprises the steps of obtaining CPRI protocol data of 4G signals and ECPRI protocol data of 5G signals in real time, wherein in a CPRI synchronous transmission protocol, data transmission is transmitted by taking a data block as a unit, and in an ECPRI asynchronous transmission protocol, data transmission is transmitted by dividing bits into small groups;
the purpose of the step is to obtain CPRI protocol data and eCPRI protocol data transferred between 5G +4G dual-mode base station equipment.
It should be noted that, currently, the common use of the base station device of the 4G network is the CPRI interface protocol, and the data frame structure is shown in fig. 1. The CPRI protocol is a protocol for synchronous transmission, and the frame structure of forwarding data is fixed and is a timing transmission. In the CPRI synchronous transmission protocol, data is transmitted in units of data blocks, each data block is composed of a series of words, and these data blocks are called data frames.
It should be noted that the data frame stores valid information, and the longer the bit of the valid information is, the larger the buffer area required for buffering data is, which limits the size of a data frame. In addition, the larger the data frame, the longer the continuous time it takes to occupy the transmission medium. In the process of synchronous transmission, the receiving party needs to wait for the data to finish other operations.
The current 5G network base station equipment commonly uses the ECPRI interface protocol, and the data frame structure is shown in fig. 2. The ECPRI protocol is an asynchronous transmission protocol, and the frame structure of forwarding data is variable and non-timing. In the protocol for ECPRI asynchronous transmission, the transmission of data is transmitted in groups of bits, which may be 1 character of 8 bits or longer. The sender can send these groups of bits at any time, while the receiver never knows when they will arrive; during an asynchronous transmission the receiver may perform other operations during the transmission.
Step S2: according to the judgment of the signal priority, the hysteresis degree of the 4G signal and the 5G signal is balanced, the CPRI protocol data of the 4G signal and the ECPRI protocol data of the 5G signal are fused, and transmission resources are applied to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data;
the purpose of this step is to insert the ECPRI protocol data of the non-timed asynchronous transmission into the CPRI protocol data of the timed synchronous transmission, and the ECPRI and the CPRI share the forwarding resource of 10G. In order to fully utilize the forward transmission resources, the invention fuses the ECPRI of 5G and the CPRI protocol data of 4G, and the transmission resources are applied to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data.
It should be noted that, in the process of transmitting CPRI protocol data of 4G alone (synchronous transmission): let data frame be A, adjacent data frame Ai,Ai+1The time interval between them is the same, denoted as T0(ii) a Data frame AiWherein the transmitted data is Ti-1+T0Erasing the acquired CPRI protocol data within a time period, wherein Ti-1Indicating the transmission of data frame Ai-1The time required.
In the course of the separate transmission of the 5G ECPRI protocol data (asynchronous transmission): when data S needing to be transmitted is acquired, the data can be transmitted to a receiving end after a start bit and a stop bit are respectively inserted into the front end and the rear end of the data.
The transmission efficiency of two protocol data can be influenced when inserting the ECPRI protocol data of the non-timed asynchronous transmission into the CPRI protocol data of the timed synchronous transmission to complete the data compression and combination, so the invention focuses on how to utilize the forward transmission resource to the maximum extent while balancing the transmission efficiency of the two signals. The detailed process of compressing and merging two protocol data is as follows:
a) it should be noted that, the CPRI protocol data of 4G is collected at any time and transmitted at regular time, while the ECPRI protocol data of 5G is generated at irregular time and transmitted at any time. As shown, CPRI protocol data frame A of 4GiTransmitted is a time period Ti-1+T0(i-1) when the clock is at Ti-1+T0(i-1) at time, data frame A is obtained according to the collected informationi(ii) a Wherein T isi-1CPRI protocol data frame A for representing transmission 4Gi-1The time required; t is0(i-1) is data frame Ai-1And AiThe time interval therebetween;
b) to maximize the utilization of forward resources, at T
i-1+T
0(i-1) the 5G EPRI protocol data collected in the time period will be in the time period T in priority
0(i-1) transmission, due to the sporadic generation of the ECPRI protocol data of 5G, cannot be ensured in the time period T
0(i-1) can be completely transmitted, and the ECPRI protocol data of the 5G signal which is not completely transmitted is recorded as ECPRI protocol data
c) So far, the CPRI protocol data frame A of 4G is obtained
iAnd a time period T
0(i-1) ECPRI protocol data of 5G signal not completely transmitted
d) CPRI protocol data frame A for 4G
iElapsed time T
iAfter the transmission is finished, and obtaining a time period T
iECPRI protocol data S of internally generated 5G signals
iNote that, the data S
iIs a time period T
iProduced at random, S
iFrom a plurality of sub-data segments s
*Composition of the kth sub-data segment
The sound generation time is
e) When 4G data frame A
iAfter the transmission is finished, the 4G signal entering time is T
0At this point, the transmission of 5G ECPRI protocol data is started. It should be noted that the 5G ECPRI protocol data includes: time period T
0(i-1) ECPRI protocol data of 5G signal not completely transmitted
Time period T
iInternally generated S
iIn a time period T
0Also generates 5G data
Three parts;
f) first, ECPRI protocol data of 5G signal is assumed
S
iAnd
and after all the data are transmitted, 4G data are transmitted: then the time T' when the ECPRI protocol data of the 5G signal is completely transmitted is obtained according to the transmitted data amount, and the time and the 4G interval time T are calculated
0Difference of (2)
The ReLU is a common activation function, and is not described herein again. The difference can be reflectedIn data frame AiThe degree of delay of transmission of 5G data to transmission of 4G signals; the larger the value is, the larger the hysteresis degree of signal transmission is, and the transmission of the 4G signal becomes slower;
g) in parallel, obtaining a degree of hysteresis in the transmission of 5G data
Wherein the content of the first and second substances,
representing data
Middle k sub-data segments
At the moment of generation of (t)
kRepresenting data
Middle k sub-data segments
The time of the real-time transmission is,
is shown in data frame A
iThe larger the value of the hysteresis degree of the 5G signal transmission, the larger the hysteresis degree of the 5G signal is represented;
h) in order to ensure the balance of the lags of the 4G signal and the 5G signal in the process of data compression combination, the signal priority is firstly judged:
wherein the content of the first and second substances,
represents the sum of the hysteresis degrees of 4G data generated in the history transmission process,
is shown in data frame A
iThe predicted 4G data lag degree under the ECPRI protocol data of the priority transmission 5G signal;
respectively representing the sum of the hysteresis degrees of the 5G data generated in the history transmission process and the data frame A
iThe predicted 5G data lag degree under the ECPRI protocol data of the priority transmission 5G signal; gamma is an adjusting coefficient and is used for adjusting the proportional relation of the hysteresis degrees of two protocol data, according to prior, 5G has higher requirement on the transmission speed, so the hysteresis degree of 5G data transmission is required to be lower than that of 4G data, and the invention takes gamma as 1.5;
i) when alpha is less than or equal to 1, the 5G signal is delayed seriously, and then the data frame A
iThe 5G signal should be transmitted preferentially: at the moment, 5G ECPRI protocol data is transmitted
Merge into data frame A
iThen, the data frame A is transmitted synchronously
i,A
i+1Interval of time T between
0(i) Is T'; therefore, the compression algorithm is utilized to calculate the time delay T' -T required by the insertion of PTP packet data (1588 PTP packet with Ethernet packet for synchronization)
0And writing the time delay into the data, and the receiver receives the synchronous data and simultaneously according to the original synchronous time T + (T' -T)
0) Processing is carried out to ensure clock synchronization among base station equipment;
j) when alpha > 1 indicates that the 4G signal lags more seriously, then in data frame A
iThe 4G signal should be transmitted preferentially: at the moment, 5G ECPRI protocol data is transmitted
Is segmented into segments at time T
0Data that can be transmitted and cannot be transmitted at time T
05G ECPRI protocol data with internal completion transmission
The first transmission of the ECPRI protocol data of the 5G part simultaneously guarantees that the 4G signal has no hysteresis and cannot be transmitted at the time T
05G ECPRI protocol data with internal completion transmission
In data frame A
i+1Time T of
0(i +1) priority transmission;
k) so far, the compression and combination of the CPRI protocol data of the 4G signal and the protocol data of the 5G signal are completed, and the forwarding resources are utilized to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data.
Thus, the present invention has been completed.