Disclosure of Invention
Aiming at the problems, the invention provides a CPRI and ECPRI protocol data fusion transmission method, which mainly adopts CPRI and ECPRI protocol data merging transmission technology, can realize data transmission between 5G+4G dual-mode base station equipment in 10G transmission bandwidth, shares forwarding resources, improves transmission efficiency, reduces transmission cost and ensures simultaneously, and comprises the following steps:
step S1: CPRI protocol data of a 4G signal and ECPRI protocol data of a 5G signal are obtained in real time, in a CPRI synchronous transmission protocol, data transmission is carried out by taking a data block as a unit, and in an ECPRI asynchronous transmission protocol, data transmission is carried out by dividing bits into groups;
step S2: according to the judgment of the signal priority, the hysteresis degrees of the 4G signal and the 5G signal are balanced, the fusion of CPRI protocol data of the 4G signal and ECPRI protocol data of the 5G signal is realized, and transmission resources are furthest applied on the basis of balancing the transmission efficiency of the two protocol data.
The beneficial effects are that:
(1) The invention adopts the 5G+4G dual-mode base station equipment, can forward CPRI and ECPRI protocol data in the transmission bandwidth of the 10G optical module, saves the forward bandwidth resource, reduces the construction cost of the 5G+4G network and improves the transmission efficiency.
(2) The invention fuses the ECPRI of 5G and 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
For a better understanding of the present invention to those skilled in the art, the present invention will be described below with reference to the accompanying examples and figures, with reference to fig. 1-4.
In order to realize the content of the invention, the invention designs a CPRI and ECPRI protocol data fusion transmission method, which comprises the following steps:
step S1: CPRI protocol data of a 4G signal and ECPRI protocol data of a 5G signal are obtained in real time, in a CPRI synchronous transmission protocol, data transmission is carried out by taking a data block as a unit, and in an ECPRI asynchronous transmission protocol, data transmission is carried out by dividing bits into groups;
the purpose of this step is to obtain CPRI protocol data and eCPRI protocol data communicated between the 5g+4g dual mode base station devices.
It should be noted that, currently, the CPRI interface protocol is commonly used by the 4G network base station apparatus, and the data frame structure is shown in fig. 1. The CPRI protocol is a synchronous transmission protocol, and the frame structure of the forward data is fixed and is a timing transmission. In the CPRI synchronous transmission protocol, data is transmitted in units of data blocks, which are composed of a series of character combinations, and we refer to these data blocks as data frames.
It should be noted that, the longer the bits of the effective information are, the larger the buffer area required for buffering the data is, which limits the size of one data frame. In addition, the larger the data frame, the longer it takes up the continuous time of the transmission medium. In the synchronous transmission process, the receiver needs to wait for the data to finish before executing other operations.
Currently, the ECPRI interface protocol is commonly used by the 5G network base station apparatus, and the data frame structure of the ECPRI interface protocol is shown in fig. 2. The ECPRI protocol is an asynchronous transfer protocol, and the frame structure of the forward data is variable and non-timed. In the protocol of ECPRI asynchronous transfer, data is transferred 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 asynchronous transmission, the receiver may perform other operations during the transmission.
Step S2: according to the judgment of the signal priority, the hysteresis degrees of the 4G signal and the 5G signal are balanced, the fusion of CPRI protocol data of the 4G signal and ECPRI protocol data of the 5G signal is realized, and transmission resources are maximally applied 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 irregular asynchronous transmission into the CPRI protocol data of the regular synchronous transmission, and the ECPRI and the CPRI share the 10G forwarding resources. In order to fully utilize the forwarding resources, the invention fuses the ECPRI of the 5G and the CPRI protocol data of the 4G and maximally applies the transmission resources on the basis of balancing the transmission efficiency of the two protocol data.
In the process of separately transmitting the CPRI protocol data of 4G (synchronous transmission): the data frame is marked as A, and the adjacent data frame A i ,A i+1 The time intervals between are the same, denoted T 0 (i) The method comprises the steps of carrying out a first treatment on the surface of the Data frame A i The data transmitted in (a) is T i-1 +T 0 (i) CPRI protocol data collected during a time period, wherein T i-1 Representing a transmitted data frame A i-1 Time required for the time.
During the independent transmission of the ECPRI protocol data of 5G (asynchronous transmission): when the data S to be transmitted is acquired, the data S can be transmitted to the receiving end after the start bit and the stop bit are respectively inserted into the front end and the rear end of the data.
The ECPRI protocol data of the asynchronous transmission is inserted into CPRI protocol data of the synchronous transmission to complete data compression and combination, which affects the transmission efficiency of the two protocol data, so the invention focuses on how to balance the transmission efficiency of the two signals and simultaneously utilize the forwarding resources to the maximum extent. The procedure for compression and merging of two protocol data is described in detail as follows:
a) It should be noted that, the CPRI protocol data of 4G is collected and transmitted at any time, while the ECPRI protocol data of 5G is generated and transmitted at any time. CPRI co-ordination for 4G as shownConference data frame a i Transmitted is a time period T i-1 +T 0 Data in (i-1) when the clock is at T i-1 +T 0 (i-1) at time instant, obtaining data frame A based on the acquired information i The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is i-1 CPRI protocol data frame A representing transmission 4G i-1 The time required; t (T) 0 (i-1) data frame A i-1 And A is a i A time interval between lands;
b) In order to maximally utilize the forward resource, at T i-1 +T 0 (i-1) 5G EPRI protocol data collected during time will be prioritized for time period T 0 (i-1) internal transmission, since the generation of ECPRI protocol data of 5G is not timed, it cannot be ensured in the time period T 0 The ECPRI protocol data of the 5G signal which can be completely transmitted in the (i-1) is recorded as
c) Up to this point, a 4G CPRI protocol data frame a is obtained i And time period T 0 ECPRI protocol data of 5G signals not completely transmitted in (i-1)
d) CPRI protocol data frame A for 4G i Time of elapse T i After the transmission is completed, and a time period T is obtained i ECPRI protocol data S of internally generated 5G signals i The data S i For a period of time T i Randomly generated in S i From a plurality of sub-data segments s * Composition, record kth sub-data segmentThe time of generation is->
e) When 4G data frame A i After the transmission is finished, the 4G signal entry time is T 0 At this point, transmission of 5G ECPRI protocol data begins. It should be noted thatThe ECPRI protocol data of 5G includes: time period T 0 ECPRI protocol data of 5G signals not completely transmitted in (i-1)Time period T i S generated internally i In time period T 0 (i) 5G data is also generated inThree parts;
f) First assume ECPRI protocol data for 5G signalsS i And->And 4G data transmission is carried out after all transmission: the time T' when the ECPRI protocol data of the 5G signal is completely transmitted is obtained according to the transmitted data quantity, and the time and the 4G interval time T are calculated 0 Is the difference of (2)
Wherein, reLU is a common activation function, and is not described herein. The difference may be reflected in data frame a i A hysteresis level of transmission of 5G data to transmission of 4G signals; the larger the value is, the greater the hysteresis degree of signal transmission is, and the transmission of the 4G signal is slowed down;
g) In parallel, a hysteresis level of transmission of 5G data is obtained
Wherein,representation data->K sub-data segments->Time of generation t k Representing dataK sub-data segments->Time of real-time transmission,/-time of real-time transmission>Represented in data frame A i The hysteresis level of the 5G signal transmission is, and the larger the value is, the larger the hysteresis level of the 5G signal is;
h) In order to ensure the balance of the delay of the 4G signal and the 5G signal in the process of data compression and combination, firstly, judging the signal priority:
wherein,representing the sum of the hysteresis levels of 4G data generated during the history of transmission +.>Represented in data frame A i 4G data hysteresis degree predicted under ECPRI protocol data of the preferential transmission 5G signal; /> Respectively represent the sum of the hysteresis degrees of 5G data generated in the history transmission process and the data frame A i Predicted 5G data hysteresis level under ECPRI protocol data for preferentially transmitting 5G signals; gamma is an adjustment coefficient for adjusting the proportional relation of the hysteresis degrees of two protocol data, and according to priori, the 5G has higher requirement on transmission speed, so that the transmission hysteresis degree of 5G data is required to be lower than the hysteresis degree of 4G data, and gamma=1.5 is adopted in the invention;
i) When alpha is less than or equal to 1, the 5G signal hysteresis is serious, and then the data frame A i The 5G signal should be transmitted preferentially: at this time, ECPRI protocol data of 5GMerging into data frame A i Then transmitting the data frame A synchronously i ,A i+1 Time interval between grounds T 0 (i) Is T'; the compression algorithm is used to calculate the time delay T' -T required for PTP packet data (1588 PTP packets for synchronization of ethernet packets) insertion 0 Writing the time delay into the data, and receiving the synchronous data by the receiver according to the original synchronous time T+ (T' -T) 0 ) Processing is carried out to ensure clock synchronization between base station equipment;
j) When alpha is>1 indicates that the 4G signal has serious hysteresis, then in data frame A i The 4G signal should be transmitted preferentially: at this time, ECPRI protocol data of 5GSegmenting into at time T 0 Data that can be transmitted internally and cannot be transmitted at time T 0 ECPRI protocol data of 5G with internal completed transmission +.>The ECPRI protocol data of the first transmission part 5G simultaneously ensures that the 4G signal has no hysteresis and cannot be transmitted at the time T 0 ECPRI protocol data of 5G with internal completed transmission +.>In data frame A i+1 Time T of (2) 0 (i+1) priority transmission;
k) So far, the compression and combination of CPRI protocol data of the 4G signal and protocol data of the 5G signal are completed, and the forward transmission resource is utilized to the maximum extent on the basis of balancing the transmission efficiency of the two protocol data.
The present invention has been completed.