Embodiment
Below in conjunction with accompanying drawing the embodiment of the embodiment of the invention is done further and to be elaborated.
As shown in Figure 2, be the flow chart of first embodiment of the method for measurement propagation delay time of the present invention, comprise step:
A data-frame sync time difference and the frame number of S201, the transmit port of measuring current device and receiving port are poor; So-called current device is relative with the difference of subordinate equipment, and in the system that is made up of several equipment, with regard to downlink data, the data whereabouts equipment of current device is its subordinate equipment, and is with regard to upstream data, just in time opposite.
A data-frame sync time difference and the frame number of S202, the receiving port of measuring subordinate equipment and transmit port are poor;
S203, that the frame number difference of described current device is deducted the frame number of described higher level equipment is poor, and the cycle of the difference of the frame number that obtains be multiply by described data-frame sync head obtains transmitting the data duration;
S204, synchronous head time difference of described current device is deducted synchronous head time difference of described subordinate current device, with the result that obtains and described transmission data duration is got and, average then, obtain propagation delay time.
The method of measurement of utilizing the foregoing description to provide does not need the subordinate equipment winding, but utilizes the structure of base station data frame itself to finish measuring process in the process of measuring propagation delay time.And, owing to be the data in the transmission that utilizes, not that independent transmitting and receiving data is measured, so when between equipment at different levels, carrying out latency measurement, data are pressed original mode normal transmission, thereby can influence itself or the transmission of other link data at different levels.And, only between adjacent two-stage equipment, carry out during measurement, with other device independent in the system, improved measuring stability.Certainly, above-mentioned method of averaging can be divided by 2.
Wherein, in the above-described embodiments,, can also comprise step if current device itself has intrinsic time delay:
With described intrinsic time delay and described propagation delay time addition.
After the intrinsic time delay and described propagation delay time addition with described higher level equipment, the result who measures is the propagation delay time between more accurate higher level equipment and current device.
Wherein, in the above-described embodiments, the transmit port of described measurement current device and the data-frame sync of a receiving port time difference step can be specially:
When described subordinate equipment sent certain Frame, the sequence number of described Frame was N at described current device, began counting after the counter O reset;
When receiving that in described current device the last time described subordinate equipment sends certain Frame, the sequence number of described Frame is J, and described counter stops counting;
With the cycle that the count value of described counter multiply by described counter, obtain a data-frame sync time difference of the transmit port and the receiving port of described current device.
Utilize two nearest synchronous head features of the Frame that transmit port and receiving port send and receive, calculate time difference of described two synchronous heads by counter, can obtain a data-frame sync time difference of the transmit port and the receiving port of current device.
Wherein, in the above-described embodiments, the receiving port of described measurement subordinate equipment and the data-frame sync of a transmit port time difference step can be specially:
When subordinate equipment was received certain Frame of current device transmission, the sequence number of described Frame was N, begins counting after the counter O reset;
Described subordinate equipment the last time when described current device sends certain Frame, the sequence number of described Frame is M, described counter stop the counting;
With the cycle that the count value of described counter multiply by described counter, obtain a data-frame sync time difference of the receiving port and the transmit port of described current device.
Wherein, in the above-described embodiments, in order to repeat latency measurement, thereby carry out more accurately can also comprising step synchronously according to some cycles:
When the default time interval arrives, repeat each step in the method for described measurement propagation delay time.
Wherein, in the above-described embodiments, the cascade system for usually using in practice need superpose for the time delay of each grade equipment, then can also comprise step:
If described current device and some higher level equipments are formed cascade system, then described subordinate equipment with the propagation delay time of higher level's higher level equipment is:
With the propagation delay time between described current device and its higher level equipment, and the propagation delay time addition between described current device and described subordinate equipment.
Wherein, in the above-described embodiments, in the practice, consider that each equipment may all can produce intrinsic time delay, that is:
If each cascade device itself has intrinsic time delay, can also comprise step:
Intrinsic time delay and described propagation delay time addition with described each cascade device.
As shown in Figure 3; be the annexation figure of REC and RE among the present invention; both wait long optical fibers or cable to connect by two; can certainly adopt other modes to connect; this does not influence the realization of technical scheme of the present invention; for the those skilled in the art, this variation does not exceed protection scope of the present invention.Each circle among the figure is represented the node that data send or receive respectively, and REC has only a category node, i.e. second line of a couplet node M (REC is defined as the second line of a couplet as main end with being connected of RE); RE has two category nodes: first line of a couplet node S (point of close REC on the closure) and second line of a couplet node M (directly be connected the current RE that connects, and be connected with REC by the S node).The numbering principle of node is among the figure: what REC held is numbered 0, and RE merchant is the residing series connection progression of this RE; Tx
-(n)The data sending terminal mouth of expression node n, Rx
-(n)The Data Receiving port of expression node n.
Measure the chain-circuit time delay between remote radio frequency equipment RE and base stations control end REC, just need to measure adjacent M node and the internodal chain-circuit time delay of S.As shown in Figure 4, latency measurement schematic diagram between adjacent R E among the present invention illustrates a kind of concrete method of measurement provided by the invention with detailed flow process below.
Downlink data is transferred to current RE4 by transmission medium from higher level equipment RE3, can produce time delay, the value T of this time delay between node M 3 and S4
Cd-34Cable time-delay cable-delay is represented in expression, cd subscript, and the method for measurement time delay value of the present invention is by using the synchronous head in the link transmission data frame to realize.As shown in Figure 5, be typical remote base station uplink downlink data frame structure schematic diagram.Each Frame is made up of periodic synchronous head (comma), frame number (n) and data (data).
Pass through the time delay T of transmission medium by the downlink data of higher level equipment RE3 transmission
Cable-delayThe back arrives current device RE4, when current device RE4 receives from the Frame of higher level equipment RE3, sends the uplink data frames that is relatively independent of downlink data simultaneously, and uplink data frames is through chain-circuit time delay T
Cable-delayThe back arrives higher level equipment RE3.Because the transmission link two ends lay respectively at different equipment both sides, the present invention adopts the method for measuring the synchronous head information of receiving and dispatching interface everywhere at the two ends of transmission link respectively to measure described time delay value.Comprise the steps:
In the present embodiment, the operating frequency of system is Fs, clock cycle T
s=1/F
sT
fBe the time cycle of Frame.
S601, RE4 are when receiving the synchronous head comma of certain frame (supposing that this frame number is n) that RE3 sends, with a counter O reset and begin counting;
S602, when the last RE4 sends to the synchronous head of frame (supposing that this frame number is m) of RE3, described counter stops counting;
S603, multiply by counter clock period T s according to the count value of described counter and just obtained a RE4 termination receiving end mouth and a transmit port data-frame sync time difference T
Srx-stxSimultaneously, according to described Frame sequence number, obtained the frame number poor (n-m) of RE4 receiving port and transmit port, the frame number difference is a signed number.Certainly, in practice, for the those skilled in the art, can understand that step S601 also can not adopt the method for zero clearing herein.As long as can access the time span of all Frames of experience around here.Its final purpose is to obtain a RE4 termination receiving end mouth and a transmit port data-frame sync time difference T
Stx-stx
The data-frame sync time difference T that S604, RE4 measure local terminal
Srx-stxBe sent to RE3 with the frame number difference by up data link;
When S605, RE3 are the synchronous head comma of n frame in the transmit frame sequence number, with a counter O reset and begin the counting; For the those skilled in the art, in practice, even the synchronous head frame number of the Frame that current RE3 sends is not n, we can look its sequence number is n.Because this sequence number can be defined by user oneself in practice;
S606, when receiving the synchronous head of the frame that RE4 sends (suppose this frame number for be j) in the last time, described counter stops counting; Similar with the frame number explanation among the step S605, as long as the process of the difference of the frame number among step S605 and the step S606 is calculated, the difference that can draw between a RE3 transmission data-frame sync frame number (n) and the receiving data frames synchronous head frame number (j) is n-j.
S607, multiply by counter clock period T s according to the count value of described counter and just obtained a RE3 end transmit port and a receiving port data-frame sync time difference T
Mtx-mrxSimultaneously, according to described Frame sequence number, obtained the frame number poor (n-j) of RE3 transmit port and receiving port, the frame number difference is a signed number.Certainly, in practice, for the those skilled in the art, can understand that step S605 also can not adopt the method for zero clearing herein.As long as can access the time span of all Frames of experience around here.Its final purpose is to obtain a RE4 termination receiving end mouth and a transmit port data-frame sync time difference T
Srx-stxFor the technology in affiliated field, can understand that obviously the order of step S605-S606 and step S601-S602 also can be such not according to what show in the present embodiment.
S608, according to the result of above-mentioned steps, measuring and calculating obtains propagation delay time.Concrete measuring and calculating process and principle thereof are as follows:
As seen from Figure 5, have following equation to set up:
T
mtx-mrx+(n-j)×T
f=T
cable-delay+T
srx-stx+T
cable-delay+(n-m)×T
f (1)
After following formula carried out conversion, can obtain:
T
cable-delay=(T
mtx-mrx+(n-j)×T
f-T
srx-stx-(n-m)×T
f)/2
=(T
mtx-mrx-T
srx-stx+(m-j)×T
f)/2 (2)
That is to say that RE3 receives the T that RE4 sends
Srx-stx(n-m), the T that measures with local terminal
Mtx-mrx(n-j) together, use top formula to calculate the time delay value T that can obtain link transmission
Cable-delayBe T shown in Fig. 3
Cd-34
The method that provides based on the foregoing description,, in the whole remote base station, the those skilled in the art can clearly obtain following technical scheme:
For the system that is made up of REC and RE at different levels, Time delay measurement is can abide by the principle of measuring step by step to carry out the i.e. at first time-delay between measure R EC and RE1.Consider possible equipment delay T again
c, can obtain following result so:
Draw T according to method mentioned above
Cd-01, calculate the actual time delay value of RE1 by REC:
T
d1=T
cd-01+T
c0 (3)
T
C (n)Be the inherent delay offset (T between inner M node transmitting terminal of equipment REn and time reference
C0Transmitting terminal and time reference T for REC
ReferenceBetween the inherent delay offset; For RE, time reference is S node receiving terminal, i.e. T
C (n)Be the M node transmitting terminal of equipment REn and the inherent delay offset of time reference), only relevant with the processing of hardware device itself, be a fixed value for fixing equipment.REC is with T
D1Be sent to RE1 by down link.RE1 according to receive in the REC data structure itself comprise time reference information (frame head of the specific frame number correspondence of certain of arranging in the data frame structure) and the chain-circuit time delay value of receiving is finished synchronously.
In the time time-delay of measure R E2, at first measure M1 node and the internodal delay value T of S2 by RE1
Cd-12, calculate the time delay value of RE2 according to formula 4:
T
d2=T
d1+T
cd-12+T
c1 (4)
By RE1 with T
D2Be sent to RE2 by down link.RE2 also according to this delay value finish with RE1 end synchronously owing to be synchronous between RE1 and REC, so also possess synchronized relation between RE2 and REC.
And the like, the measurement result of n level RE is:
T
dn=T
d(n-1)+T
cd-(n-1)n+T
c(n-1) (5)
This method is when carrying out latency measurement, measure step by step, the emphasis of measuring is the delay value between M node and the S node, and this method can guarantee the consistency that serial type cascade measurements at different levels are realized, and the inherent delay that adds each section has respectively also increased the precision of measurement.
Wherein, in practice, as preferred embodiment, method of the present invention can periodically be carried out measuring operation in the running of base station, promptly when predetermined interval arrives, repeat described step.In the hope of can guarantee RE can keep constantly with REC synchronously and be communicated with.
The method of measurement that the embodiment of the invention provides does not need RE end winding, but utilizes the structure of base station data frame itself to finish measuring process.And, owing to be the data in the transmission that utilizes, not that independent transmitting and receiving data is measured, so the time at RE at different levels and REC or RE and RE measurements, data are pressed original mode normal transmission, thereby can influence itself or the transmission of other link data at different levels.
As shown in Figure 7, be the embodiment of the system of measurement propagation delay time of the present invention, comprising:
Current device synchronous head time difference measurements equipment 701 is used for: a data-frame sync time difference and the frame number difference and the transmission of measuring the transmit port and the receiving port of current device;
Subordinate equipment synchronous head time difference measurements equipment 702 is used for: a data-frame sync time difference and the frame number difference and the transmission of measuring the receiving port and the transmit port of subordinate equipment;
Transmission data duration calculation equipment 703 is used for: the frame number that the frame number difference of described current device is deducted described higher level equipment is poor, and the cycle of the difference of the frame number that obtains be multiply by described data-frame sync head obtains transmitting the data duration;
Propagation delay time measuring equipment 704 is used for: synchronous head time difference of described current device is deducted synchronous head time difference of described subordinate equipment, with the result that obtains and described transmission data duration is got and, average then, obtain propagation delay time.
Wherein, in the above-described embodiments, can also comprise:
Intrinsic time delay increases equipment, is used for:
If current device itself has intrinsic time delay, with described intrinsic time delay and described propagation delay time addition.
Wherein, in the above-described embodiments, can also comprise:
The cycle actuating equipment is used for: when the default time interval arrives, instruct the system of described measurement propagation delay time to repeat the propagation delay time measurement function.
Wherein, in the above-described embodiments, can also comprise:
Multilevel device time delay superimpose device is used for: if described current device and some higher level equipments are formed cascade device, and with the propagation delay time between described higher level equipment and its higher level equipment, and the propagation delay time addition between described higher level equipment and described current device.
Wherein, in the above-described embodiments, can also comprise:
Intrinsic time delay superimpose device is used for: if each cascade device itself has intrinsic time delay, with the intrinsic time delay and the described propagation delay time addition of described each cascade device.As shown in Figure 8, be the embodiment of the equipment of measurement propagation delay time of the present invention, comprising:
Current device synchronous head time difference measurements unit 801 is used for: the transmit port of measurement current device and a data-frame sync time difference and the frame number of receiving port are poor;
Subordinate equipment synchronous head time difference receiving element 802 is used for: the receiving port of reception subordinate equipment and a data-frame sync time difference and the frame number of transmit port are poor;
Transmission data duration calculation unit 803 is used for: the frame number that the frame number difference of described current device is deducted described subordinate equipment is poor, and the cycle of the difference of the frame number that obtains be multiply by described data-frame sync head obtains transmitting the data duration;
Propagation delay time measuring unit 804 is used for: synchronous head time difference of described current device is deducted synchronous head time difference of described subordinate equipment, with the result that obtains and described transmission data duration is got and, average then, obtain propagation delay time.
Wherein, in the above-described embodiments, current device synchronous head time difference measurements unit is specially:
Current device data transmit-receive trigger element is used for:
When current device sent certain Frame, the sequence number of described Frame was N, generated clear command and transmission.
When certain Frame of the last reception of described current device subordinate equipment, the sequence number of described Frame is J, generates halt instruction and transmission;
Counter, be used for: begin counting after receiving described clear command, stop counting after receiving described halt instruction,, obtain a data-frame sync time difference of the transmit port and the receiving port of described current device with the cycle that the count value of described counter multiply by described counter.
With regard to each mthods, systems and devices of the present invention, because the present invention adopts the mode of measuring step by step, measure first order RE by REC, all the other RE are all finished by its upper level RE, adjacent two-stage equipment has been formed higher level equipment and current device respectively, and higher level equipment all can measure the time delay of the equipment of its adjacent next stage.Such flow process is simple relatively, does not also need REC that the important information of latency measurement is striden level transmission, and the consistency and the stability of realization all increase.
Simultaneously, each embodiment of the present invention utilizes the data frame structure characteristics of remote base station itself to design.This Frame is made up of the frame that periodically has frame number, when using this Frame to carry out latency measurement, does not need the RE end to carry out the data winding, can measure when the link data proper communication, makes measurement periodically to carry out.Under the situation that does not influence RE work, measure at any time, eliminate the variation that environment or other conditions change the back time delay immediately, guarantee that synchronization accuracy is reliable and stable.For the those skilled in the art, the time delay between every equipment that possesses this kind data frame structure all can adopt each embodiment of the present invention to reach the measurement purpose.This variation does not exceed protection scope of the present invention.
With regard to the process of setting up synchronously of multistage remote base station, each embodiment of the present invention has the meaning and the significant advantage of particular importance.Because do not influence the data transmit-receive of the corresponding levels and the RE of subordinate, improved the reliability of whole system in the synchro measure process.Calculation process can realize by processor or programmable logic device such as FPGA.Under the situation of the system that multilevel device is formed, because latency measurement is to carry out step by step, the Time delay measurement classification is finished, and the latency measurement operation of every grade of RE is only relevant with adjacent equipment on the topology, with spaced device independent on the topological diagram, help realizing latency measurement.Further, because latency measurement is only relevant with adjacent equipment on the topology, and latency measurement is initiated by the equipment that is positioned at prime in the neighbouring device, and this equipment can be judged the operating state of subordinate equipment by the reception of monitoring link, carries out surveying work in good time.The latency measurement process does not need RE to carry out winding, does not influence the normal operating conditions of equipment but the cycle carries out.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.