Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method that realizes measurement of round trip time, avoids the influence of interlude calculation deviation, improves the accuracy of measurement of round trip time.
A kind of method that realizes that RTT measures provided by the invention is applied to comprise in the base station system of the support CPRI agreement be made up of BB and TRU:
A) BB joining day information the downlink data that sends from the unified time reference point, stipulating that current downlink data arrives the delay volume of target TRU antenna output point from time reference, is that the form of descending CPRI frame sends to target TRU by self CPRI interface conversion;
B) target TRU receives the data of the descending CPRI frame of the one-tenth form that BB sends by self CPRI interface, after the reduction, by local antenna transmission downlink data, satisfy the regulation of temporal information according to the temporal information in the current downlink data when making this downlink data arrive the antenna output point with respect to the delay volume of described time reference;
C) target TRU is by the upstream data of local antenna mobile terminal receive feedback, adds the form that BFN is converted to uplink CP RI frame by self CPRI interface, sends to BB;
D) BB receives into the data of uplink CP RI frame form by self CPRI interface, after the reduction, determine the pairing downlink data of current upstream data, obtain the delay volume of this downlink data temporal information regulation, and the described BFN of current upstream data, and it is poor according to frame fixed delay about the known target TRU side, upstream data from target TRU antenna input point to this TRU output interface delay volume, calculate frame fixed delay difference about described BFN value that the RTT measured value be this upstream data and the target TRU side with, deduct the BFN count value of downlink data when described unified time, reference point was sent, overall delay amount from described target TRU side CPRI interface to the antenna output point and upstream data poor from target TRU antenna input point to this TRU output interface delay volume.
The BFN of the described uplink CP RI frame form data that this method target TRU sends for current upstream data with the BFN value of the descending CPRI frame of constantly being received by target TRU and target TRU side described about the frame fixed delay poor.
This method step b) described downlink data process of transmitting comprises:
Target TRU is with stipulating described delay volume in the described downlink data temporal information, deduct downlink data arrive from described unified time reference point target TRU the CPRI interface the delay volume of process, deduct the delay volume of downlink data from the CPRI interface to the antenna output point of this target TRU internal fixation again, resulting difference is as need cache-time amount; According to need cache-time amount current downlink data is sent at the buffer memory rearward-facing antenna;
The delay volume that the described target TRU side of step d) CPRI interface is described cache-time amount and downlink data from the CPRI interface of target TRU to antenna output point transmission course to the overall delay amount of antenna output point.
The delay volume that the described downlink data of this method arrives the CPRI interface of target TRU from the unified time reference point be the CPRI interface of downlink data from the unified time reference point to BB delay volume with from the CPRI interface of BB to the delay volume the CPRI interface of target TRU with.
The described step b) of this method takes a step forward and comprises: measure described downlink data from the CPRI interface of BB to the delay volume the CPRI interface of target TRU.
The described base station system of this method is a cascade structure.
The delay volume that the described downlink data of this method arrives the CPRI interface of target TRU from the unified time reference point is the delay volume the CPRI interface of downlink data from the unified time reference point to BB, between BB and the target TRU on the down direction, data transmission delay amount between the CPRI interface of BB and contiguous TRU, the TRU that closes on and TRU, the data transmission delay amount between the inner CPRI interface of TRU add up with.
The described step b) of this method takes a step forward and comprises: measure between BB and the target TRU on the down direction BB and contiguous TRU, and the data transmission delay amount of each section between the CPRI interface of TRU that closes on and TRU respectively.
From above as can be seen, a kind of method that realizes measurement of round trip time provided by the invention, utilize in the base station system under the CPRI agreement, frame number (the BFN of Node B, Node B Frame Number) based on this characteristic of reference point unified time, arrive the simple technological means such as retardation of target TRU antenna output point from the unified time reference point by joining day information specifies downlink data in downlink data, the influence that is not subjected to data each section latency measurement precision in base station system internal transmission process that RTT is measured has improved the accuracy that RTT measures greatly.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
According to the CPRI agreement, each mutual CPRI frame all has the frame number (BFN, Node B Frame Number) of a Node B in the base station, and scope is 0~4095, and unit is 10ms.Be provided with unique real-time clock in the BB of base station side, each CPRI frame that sends from the BB side all with the count value of real-time counter as BFN.The CPRI frame that sends from the TRU side then deducts the fixed delay difference Toffset of frame up and down of this locality as BFN with the BFN value with the CPRI frame that receives from BB constantly.
The present invention program is after adopting the CPRI agreement, utilize BFN in base station system inside based on this characteristic of unified timing reference, the transmitting-receiving of control up-downgoing data regularly on TRU, on BB, directly calculate the timing information that TRU provided, deduct TRU at last and go up the time delay T63 of R2 to the time delay T25 of R5 and R6 to R3, thereby obtain T56, i.e. the RTT measured value.Shielded the influence of CPRI interface and Base-Band Processing time delay, only upward processing is relevant with TRU to guarantee the RTT measurement, thereby has improved the RTT certainty of measurement.
Referring to shown in Figure 4, the base station system for basic networking structure under the CPRI agreement comprises a BB and TRU, each has a CPRI interface among BB and the TRU and is used for communication between the two.At the CPRI of BB side interface descending reference point R1 and up reference point R4 have been shown for convenience of description, descending reference point R2 and up reference point R3 have been shown at the CPRI of TRU side interface.In addition, R0 represents BB unified time reference point among the figure, and R5 and R6 are respectively the output point and the input point of TRU antenna.
Below according to data from base band time reference R0, descending sending through TRU, comes back to R0 from up reception again, the measuring process of such up-downgoing data is that example comes the present invention program is described in detail.Be connected by the CPRI interface between BB and the TRU in this system, data send with the form of CPRI frame.
Step 11, BB sends downlink data from unified time reference point R0 to TRU, in this downlink data, add free information, stipulate when this downlink data arrives TRU antenna output point R5 the delay volume when sending with respect to R0, be later convenience of calculation, the unit of delay volume can adopt the digit of BFN, and this downlink data sends to TRU after the CPRI at R1 place interface is converted into the CPRI frame.
Step 12, by the method for top described CPRI agreement regulation measure descending CPRI frame from BB side CPRI interface R1 to the delay volume T12 the TRU side CPRI interface R2.
For instance, BB sends the CPRI frame to TRU constantly in certain, and BFN was a1 when this frame sent by local CPRI interface R1.Arrive the CPRI interface R2 of TRU after this CPRI frame is issued through propagation delay time T12, TRU receives that the back sends uplink CP RI frame by CPRI interface R3 to BB, and with the temporal information time delay Toffset that identifies in the CPRI frame that sends, promptly BFN is a1-Toffset.BFN is the uplink CP RI frame of a1-Toffset, arrives BB side CPRI interface R4 through uplink time delay T34, and BB learns that according to the temporal information of receiving in the CPRI frame it has been received corresponding to BFN is the uplink frame of a1 downlink frame.And, delay volume T14 total in this process can measure in the BB side, and owing to T14=T12+T34+Toffset, wherein Toffset is that known quantity can obtain by inquiry again, and supposition T12=T34, so just can calculate T12=(T14-Toffset)/2.
Because time delay T12 is a fixed value, if therefore base station system connects not change, T12 only surveys once just passable, and afterwards RTT measuring process just need not be carried out this step after the preservation.But,, then need to resurvey if change comprises the replacing module, changes cable, power-on and power-off etc.
Step 13, TRU is reduced to downlink data by the descending CPRI frame that BB in the CPRI interface receiving step 11 at R2 place sends, then, TRU is according to the temporal information in these data, calculate if the BFN value will make this downlink data arrive local antenna output point R5 the time satisfies the regulation of temporal information, then need time quantum its buffer memory.Promptly the time delay T01 that at first sends to R1 from R0 in BB inside according to the T12 that measures and known downlink data calculates the time delay T02=T12+T01 of this downlink data from R0 to R2; In addition, because generally speaking, time delay T25 and the R6 from R2 to R5 is just definite in system design process to the time delay T63 of R3 for the TRU side, therefore can obtain the processing delay T25 of downlink data from R2 to R5 by mode such as tabling look-up; Like this, TRU can calculate if the regulation that will satisfy temporal information then needs be Tdelay-T02-T25 to the time quantum that this downlink data carries out buffer memory.So TRU sends from R2 behind the buffer memory that this downlink data is carried out Tdelay-T02-T25 at R2, this downlink data arrives R5 through the T25 time delay and sends, and guarantees that like this R0 satisfies the delay volume Tdelay of regulation to the time delay between the R5.Should guarantee Tdelay 〉=T02+T25 from the described temporal information that adds as can be seen here, as can be seen, if Tdelay=T02+T25 just, then TRU will not carry out buffer memory.
Step 14, after mobile phone receives this downlink data, to send upstream data to respond to the base station, after corresponding upstream data sends from mobile phone, input point R6 place at the TRU antenna is received by TRU, CPRI interface through time delay T63 arrival R3 place adds the form that BFN is converted to uplink CP RI frame, sends to BB.That gives an example in definite method of BFN and the above-mentioned steps 12 in the uplink CP RI frame is identical herein, and promptly according to the CPRI definition, the BFN of this uplink CP RI frame deducts Toffset for the BFN value of the corresponding descending CPRI frame of receiving with TRU constantly.
Step 15, after the CPRI interface of BB by the R4 place receives uplink CP RI frame that TRU sends and is reduced to upstream data, utilize prior art, corresponding relation according to upstream data and downlink data can be determined the pairing downlink data of this upstream data base band search, obtain the temporal information of this downlink data then, thereby obtain Tdelay; Obtain the BFN value of the corresponding described uplink CP RI frame of this upstream data, wherein the BFN value is here added up at CPRI interface R3 place; In conjunction with known T63 and Toffset, calculate time delay T56 again, i.e. the measured value of RTT.
For example: suppose that BB requires downlink data to send at the R5 of TRU point through Tdelay time-delay back, when this downlink data is issued at the R0 place, the BFN count value of real-time counter is A0, and then this downlink data should be A1=A0+Tdelay from the BFN count value A1 that R5 sends the moment; In addition, R2 is A2 to total time-delay of R5, and wherein A2 comprises the time delay T25 of downlink data from R2 to the R5 process of transmitting, adds TRU data are carried out cache-time; And hypothesis Toffset=A3 (unit is 10ms), T63=A4 (unit is 10ms) receives corresponding upstream data then when the BFN=A5 of CPRI, the RTT measurement result is A5+A3-A0-A2-A4 (unit is 10ms) so.
Following table 1 provides a test sample in the reality, and the numeral in the table is unit with 10ms.
Parameter declaration |
Parameter |
Example |
Remarks |
The requirement that BB begins to send |
The time that R0 sends |
BFN=16 |
A1 |
The time that requires R5 to send |
BFN=32 |
|
The overall delay Tdelay that requires |
16 |
|
BB measures and configuration | T01 | |
1 |
|
T12 |
3 |
|
Configuration on the TRU |
T25 |
5 |
A2 |
T63 |
6 |
A4 |
Toffset |
9 |
A3 |
TRU receives up corresponding data |
The time that R3 sends |
BFN=35 |
A5 |
The downlink processing of TRU |
Buffer memory to downlink data |
7 |
A2 |
The calculating of RTT |
T56(RTT) |
10 |
|
Table 1
As can be seen from Table 1, the BFN of downlink data when the R0 point sends is 16, and the delay volume Tdelay when being defined in this downlink data and arriving R5 is 16, and the BFN when then arriving R5 is 32; After TRU receives downlink frame, calculate time quantum=Tdelay-(T01+T12)-T25=16-(the 1+3)-5=7 that needs buffer memory; The BFN of uplink CP RI frame form when the TRU side is sent by CPRI interface R3 is 35, like this, calculates the BFN-T63=35+9-12-16-6=10 that BFN+Toffset-R2 that RTT=R3 sends sends to total time-delay-R0 of R5.
As can be seen, because the present invention when the enterprising line data of R2 and two reference points of R3 is handled, is to be reference with the timing information BFN in the descending CPRI frame, and R3 and R2 are droop Toffset between regularly identifying from above.The RTT measurement is regularly poor of these two reference points, and up-downgoing BFN frame number is poor, deducts time delay on the TRU plate again, obtains.Therefore, RTT measures will no longer include relation with the baseband portion of R2 front and R3 back, no longer be subjected to the influence of CPRI interface and baseband portion time delay.
If the last processing delay T01 of BB has error, perhaps the transmission latency measurement is inaccurate on the CPRI interface, and promptly T12 has than mistake, will cause TRU to go up buffer memory and introduce these errors, and the down sending time of R5 is also directly introduced these errors simultaneously.But these errors also can directly be accumulated in R3 and send on the time, finally cancel out each other in the measurement of T56 (RTT) is calculated.
The present invention program has masked the influence that BB goes up propagation delay time on processing delay, the CPRI interface, only goes up relevant to the clock accuracy of BFN timing with the processing delay of TRU up-downgoing with TRU.
In addition, also can there be the situation of cascade in base station system, and referring to shown in Figure 5, base station system is made up of a BB and a plurality of TUR cascade, BB and TRU, and be connected by the CPRI interface between TUR and the TRU.Other situation and base station system shown in Figure 4 are similar.
Below according to data from base band unified time reference point R0, descending sending arrives RE-n (n RRU), comes back to R0 from up reception again, such measuring process is that example is described the present invention program.
Step 21, BB sends downlink data from unified time reference point R0 to TRU, and in downlink data, include temporal information, stipulate when this downlink data arrives TRUn antenna output point Rn-5 the delay volume when sending with respect to R0, equally, the unit of delay volume can adopt the digit of BFN, and this downlink data sends to TRU after the CPRI at R1 place interface is converted into the CPRI frame.
Step 22, by the method for top described CPRI agreement regulation, measure respectively downlink data at BB to TRU1, and TRU1 to the adjacent interface Rk-1 of TRUn and the delay volume Tk-12 between the Rk-2 (k=1,2 ..., n).
Equally, if this step base station system connects not change, also can only carry out once just passablely, afterwards RTT measuring process just need not be carried out again after the preservation.
Step 23, descending CPRI frame is transmitted step by step, is received by the CPRI interface at the Rn-2 place of TRUn, and being reduced to downlink data, TRUn is to Tk-12 (k=1,2 of BB measurement, ..., n), and upstream data in BB inside, middle REk (k=1 at different levels, 2 ..., be forwarded to the time delay of the RRU of subordinate on n-1), be interface R (k-1)-2 to Rk-1 (k=1,2 ..., n-1) time delay adds up, and obtains the time delay T0n of data from R0 to Rn-2.Wherein, Rk-1 (k=1,2 ..., n-1) all be the inner known preset parameter of base station system.RRU is again according to system design, by mode such as tabling look-up, obtains the processing delay (Tn-25) of downlink data from Rn-2 to Rn-5 on the RRU.It is Tn-delay-T0n-Tn-25 that thereby RRU calculates the time quantum that need carry out buffer memory to data.Like this, RRUn is to the current downlink data that Rn-2 receives, carry out the buffer memory of (Tn-delay-T0n-Tn-25) after, the processing delay through back Tn-25 sends data from Rn-5.Equally, if Tn-delay=T0n+Tn-25 just in this step, then TRU will not carry out buffer memory.
Wherein, each TRU will guarantee that data and its BFN corresponding relation regularly in the CPRI of the superior and the subordinate frame is constant when the up-downgoing forwarding of data, so that regularly carry out correct calculating according to the time of data.For example, in the descending transmission of the higher level TRU CPRI frame, certain CPRI frame and certain BFN correspondence when the TRU of its subordinate receives and handle this CPRI frame, guarantee this corresponding relation.
Step 24, after mobile phone receives this downlink data, to send upstream data to respond to the base station, after corresponding upstream data sends from mobile phone, be received at TRUn antenna input point Rn-6 place, the CPRI interface through processing delay Tn-63 arrives the Rn-3 place adds BFN and is converted to uplink CP RI frame, send to higher level RE, finally arrive the R0 place of BB.Definite method of BFN promptly according to CPRI definition, deducts Tn-offset at the BFN of current uplink frame for the BFN value of the corresponding descending CPRI frame of receiving in the Rn-1 place with TRUn constantly with identical described in top step 12 and 14 in the uplink CP RI frame herein.
Step 25, uplink CP RI frame is transmitted step by step, by the CPRI interface of BB by the R1-4 place receive be reduced to upstream data after, determine this upstream data corresponding downlink data according to the corresponding relation of upstream data and downlink data, obtain the temporal information of this downlink data, thereby obtain Tn-delay; Obtain this up this upstream data the BFN value of corresponding described uplink CP RI frame, wherein the BFN value is here added up on CPRI interface Rn-3; In conjunction with known Tn-63 and Tn-offset, calculate the time delay of Tn-56 again, the RTT that promptly obtains REn measures.
For example: suppose that BB requires downlink data to send at the Rn-5 of TRUn through Tn-delay time-delay back, when this downlink data is issued at the R0 place, the BFN count value of real-time counter is A0, and then this downlink data should be A1=A0+Tn-delay from the BFN count value A1 that Rn-5 sends the moment; In addition, Rn-2 is A2 to total time-delay of Rn-5, and wherein A2 comprises the processing delay Tn-25 of downlink data from Rn-2 to Rn-5, adds that TRU carries out cache-time to data; And the Tn-offset=A3 of hypothesis TRUn side, Tn-63=A4, the CPRI interface of BB is received the BFN=A5 of this uplink CP RI frame, the RTT measurement result is A5+A3-A0-A2-A4 (unit is 10ms) so.
As can be seen, because the present invention when the enterprising line data of Rn-2 and two reference points of Rn-3 is handled, is to be reference with the BFN in the descending CPRI frame, and Rn-3 and Rn-2 are droop Tn-offset between regularly identifying from above.The RTT measurement is regularly poor of these two reference points, and up-downgoing BFN frame number is poor, deducts time delay on the TRU plate again, obtains.Therefore, RTT measures will partly no longer include relation with the cascade of Rn-2 front and Rn-3 back, no longer be subjected to the influence of other cascade TRU and BB part time delay.
T0n has error if BB and prime TRU go up the processing time-delay, perhaps the transmission Time delay measurement is forbidden (same T0n has introduced error) on each CPRI interface, will cause the REn buffer memory to introduce these errors, the down sending time of Rn-5 is also directly introduced these errors simultaneously.But these errors also can directly be accumulated in Rn-3 and send on the time, finally balance out in the measurement of Tn-56 (RTT of REn) is calculated.
Therefore, the present invention program masked BB go up handle time-delay, each prime RRU goes up the influence of handling transmission delay on time-delay, each CPRI interface, is that the RTT measured value is only upward relevant to the clock accuracy of BFN timing with REn with the processing of the up-downgoing of REn at the corresponding levels time-delay.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.