CN108574547A - A kind of time calibrating method and device - Google Patents

A kind of time calibrating method and device Download PDF

Info

Publication number
CN108574547A
CN108574547A CN201710147218.3A CN201710147218A CN108574547A CN 108574547 A CN108574547 A CN 108574547A CN 201710147218 A CN201710147218 A CN 201710147218A CN 108574547 A CN108574547 A CN 108574547A
Authority
CN
China
Prior art keywords
time
side data
data
difference
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710147218.3A
Other languages
Chinese (zh)
Other versions
CN108574547B (en
Inventor
黄艳华
高东辉
种璟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710147218.3A priority Critical patent/CN108574547B/en
Publication of CN108574547A publication Critical patent/CN108574547A/en
Application granted granted Critical
Publication of CN108574547B publication Critical patent/CN108574547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a kind of time calibrating method and device, the method includes:Get terminal communicated with network side caused by the time value of N terminal side data and the time value of M network side data;N and M is integer;The time value of time value and the M network side data based on the N terminal side data is calculated the terminal device and carries out communicating corresponding time error coefficient with network side;Based on the time error coefficient, the time value of the terminal device and N terminal side data caused by the network-side communication is calibrated, or, being calibrated to the terminal device and the time value of M network side data caused by the network-side communication.

Description

A kind of time calibrating method and device
Technical field
The present invention relates to the synchronizing information technologies more particularly to a kind of time calibrating method and device in the communications field.
Background technology
During communications network signaling, operation flow multi-interface data association analysis, due to terminal, eat dishes without rice or wine, network side Data are acquired by distinct device respectively, lead to multi-interface data time irreversibility, signaling/operation flow logic incorrect order, nothing Method is associated analysis.Existing Time synchronization technique generally includes the GPS synchronizations based on satellite data and is based on procotol NTP synchronize, and by the way that the timestamp of multi-source data is synchronized according to service logic context.
Invention content
The invention discloses a kind of time calibrating method and devices, it is intended to solve the problems, such as more existing in the prior art.
For example, the time synchronizations means such as GPS/NTP exist, because of Various types of data collecting device, itself clock accuracy is insufficient, causes Synchronization failure problem, such as:
Because there are the different a variety of data sources of the hardware such as mobile phone, the relative time of data time stamp is caused to be undergone with practical Time and differ.If front and back two signaling data real times are 1000 seconds, if cell phone clock crystal oscillator and standard time clock Deviation be ten a ten thousandths, then the difference of timestamp be 1000*0.00001=0.01 seconds=10 milliseconds.The mistake of this magnitude Difference is for signal interval is only the signaling of millisecond magnitude, it is sufficient to cause what operation flow logic can not then be restored to ask Topic.
A kind of time calibrating method provided by the invention, the method includes:
Get terminal communicated with network side caused by N terminal side data time value and M network side The time value of data;N and M is integer;Wherein, the terminal side data is the data that the terminal is received or sent, described Network side data is the data that the network side is received or sent;
The time value of time value and the M network side data based on the N terminal side data, is calculated The terminal device carries out communicating corresponding time error coefficient with network side;
Based on the time error coefficient, to N end side caused by the terminal device and the network-side communication The time value of data is calibrated, or, to M network side data caused by the terminal device and the network-side communication Time value is calibrated.
The embodiment of the present invention also provides a kind of time calibration device, including:
Information acquisition unit, communicated for getting terminal with network side caused by N terminal side data when Between be worth and M network side data time value;N and M is integer;Wherein, the terminal side data receives for the terminal Or the data sent, the network side data are the data that the network side is received or sent;
Coefficient calculation unit is used for the time value based on the N terminal side data and the M network side data Time value, the terminal device is calculated and carries out communicating corresponding time error coefficient with network side;
Alignment unit produces the terminal device and the network-side communication for being based on the time error coefficient The time value of N raw terminal side data is calibrated, or, to M caused by the terminal device and the network-side communication The time value of network side data is calibrated.
A kind of time calibrating method and device proposed by the present invention, data caused by the communication based on terminal and network, The time difference for getting uplink and downlink data, being then based on the time difference is calculated time error coefficient, recycles time error system Several data to terminal or network side are calibrated.In this way, by for the data of certain side analyze and calibrate one by one, The problems such as capable of avoiding the data incorrect order caused by prolonged error accumulation.
Description of the drawings
Fig. 1 is time calibrating method flow diagram of the embodiment of the present invention;
Fig. 2 is communication scenes schematic diagram of the embodiment of the present invention;
Fig. 3 is time calibration calculation process schematic diagram of the embodiment of the present invention;
Fig. 4 is information collection schematic diagram of the embodiment of the present invention;
Fig. 5 is time calibration device composed structure schematic diagram of the embodiment of the present invention.
Specific implementation mode
Invention is further described in detail in the following with reference to the drawings and specific embodiments.
Embodiment one,
An embodiment of the present invention provides a kind of time calibrating methods, as shown in Figure 1, including:
Step 101:Get the time value and M of the N terminal side data that communication of the terminal device with network side generates The time value of network side data;N and M is integer;Wherein, the terminal side data is the number that the terminal is received or sent According to the network side data is the data that the network side is received or sent;
Step 102:The time value of time value and the M network side data based on the N terminal side data, The terminal device is calculated to carry out communicating corresponding time error coefficient with network side;
Step 103:Based on the time error coefficient, to N caused by the terminal device and the network-side communication The time value of terminal side data is calibrated, or, to M network caused by the terminal device and the network-side communication The time value of side data is calibrated.
About the time value of terminal side data and the time value of network side data, Fig. 2, wherein terminal device may refer to The data TAi sent out is the corresponding time value of terminal side data, and TBj is the corresponding time value of network side data.Wherein, i and j It is integer.Usually N and M can be identical, that is to say, that when executing an operation flow, terminal sends and connects The total quantity of the data of receipts, the total quantity of the data sended and received with network side may be identical, also be not excluded for spy certainly Different situation, such as when terminal does not receive the data that network side is sent, it is possible to corresponding response message will not be sent out, then In this case N and M is then different numerical value.Without exhaustion in specific signal intelligence the present embodiment.
It is understood that when getting these communication datas, in addition to can obtain N terminal side data and Except the time value of M network side data, the transmission of each terminal side data and network side data should be able to be also got Or direction is received, for example, i-th terminal side data is the downlink data that the upstream data sent still receives.It is specific to obtain Mode can be to obtain, can also be reported by terminal from the management equipment side of network side, and the present embodiment is without exhaustion.
The time value of the time value based on the N terminal side data and the M network side data calculates The terminal device is obtained to carry out communicating corresponding time error coefficient with network side, including:
First terminal side data is got from the N terminal side data;First terminal side data characterization Time earliest a data in the N terminal side data;
First network side data is got from the M terminal side data;First network side data characterization Time earliest a data in the M network side data;
Based on the corresponding time value of first terminal side data and first network side data institute, It determines the calculation based on the time error coefficient, the time error coefficient is calculated based on the calculation.
Specifically, described to be distinguished based on first terminal side data and first network side data Corresponding time value determines the calculation based on the time error coefficient, including:
When the time value of first network side data is more than the time value of first terminal side data, determine The time error coefficient is calculated using the first calculation, otherwise, it determines calculating the time mistake using the second calculation Poor coefficient;The time value of first network side data be more than first terminal side data time value generation scene can be by It, can be from terminal to network for example, when terminal originated calls business caused by some operation flow of end side triggering Hair request, then in this business, the time value of the first data of terminal will be less than the first data of network side Time value;It is on the contrary, it is possible to be the business scenario of network side triggering, be not discussed here.
The time error coefficient is calculated based on the calculation includes correspondingly, described:
When determining using the first calculation, it is based on the N terminal side data and the M network side data, The maximum downstream time difference is calculated and minimum upstream time is poor, is at least based in the maximum downstream time difference and minimum The time error coefficient is calculated in the row time difference;
It is using the second calculation when determining, is based on the N terminal side data and the M network side data, Maximum upstream time difference is calculated and minimum downgoing time is poor, is at least based under the maximum upstream time difference and minimum The time error coefficient is calculated in the row time difference.
It is at least based on the maximum downstream time difference and minimum upstream time is poor, the time error system is calculated It counts, further includes:
The maximum downstream time difference is subtracted into minimum upstream time difference and obtains the first difference, by first of end side upper line number Subtract end side the last item downlink data receiving time according to transmission time value and be worth to the second difference, by the first difference with it is described The ratio of second difference, as the time error coefficient.
Further, in this calculating, when can also first determine whether that whether the maximum downstream time difference is no more than minimum uplink Between it is poor, if so, can without calculating, otherwise, execute it is above-mentioned be at least based on the maximum upstream time difference and it is described most Small downgoing time is poor, and the calculating of the time error coefficient is calculated.
It is at least based on the maximum upstream time difference and the minimum downgoing time is poor about above-mentioned, is calculated described The calculation of time error coefficient, specifically, when the first data time value is more than in end side first in network side When data time value, maximum downstream time difference DownVlaueMax and minimum upstream time difference UpVlaueMin are calculated, due to DownVlaueMax≤UpVlaueMin, time synchronization could carry out, so the calculation of time error coefficient is:
K=(DownVlaueMax-UpVlaueMin)/(UpMinUETime-DownMaxUETime), so that after adjustment Time difference ensure DownVlaueMax≤UpVlaueMin;
Wherein, UpMinUETime indicates the upstream data transmission time value of end side first;DownMaxUETime is indicated End side the last item downlink data receiving time value.
In addition, being at least based on the poor and minimum downgoing time difference of maximum upstream time is calculated the time error Coefficient further includes:
Minimum downgoing time difference is gone to obtain third difference maximum upstream time subtractive, by first lower line number of end side The last item upstream data sending time, which is subtracted, according to receiving time value is worth to the 4th difference, third difference and the described 4th is poor The ratio of value, as the time error coefficient.
When the first data time value is calculated less than the first data time value in end side in network side UpVlaueMax and DownVlaueMin, as UpVlaueMax≤DownVlaueMin, time synchronization could carry out, so the time Error coefficient k=(UpVlaueMax-DownVlaueMin)/(DownMinUETime-UpMaxUETime);
Wherein, DownMinUETime indicates first downlink data receiving time value of end side;UpMaxUETime tables Show end side the last item upstream data transmission time value.
The time value to N terminal side data caused by the terminal device and the network-side communication carries out school Standard, including:
The time difference i between i-th terminal side data and first terminal side data is calculated;Wherein, i be more than or equal to 0 and less than or equal to N integer;Based on the time difference i and the time error multiplication, then with i-th end side number According to time value be added as a result, time value as i-th terminal side data after calibration;
The terminal device and the time value of M network side data caused by the network-side communication are calibrated, Including:
The time difference j between j-th strip network side data and first network side data is calculated;Wherein, j be more than or equal to 0 and less than or equal to M integer;Based on the time difference j and the time error multiplication, then with the j-th strip network side number According to time value be added as a result, time value as i-th network side data after calibration.
Based on time error coefficient, a side data all times are calibrated, it is ensured that opposite with other side data clock It is synchronous.For example, all data time in the sides UE are calibrated:
Time=TAi-TA0;
New TAi=TAi+ (Time_hour*3600+Time_minute*60+Time_second) * k;
Wherein, the time respectively include sometimes, point and the second parameter, when being based respectively on, point and the second parameter and time error Then coefficient, which calculate, to be calibrated TAi to obtain new TAi.
The UE side datas after clock alignment or network side data are carried out, then carries out time synchronization, such operation flow logic Just obtain whole reduction.
Referring to Fig. 3, calculation process is provided for processing method provided in this embodiment:Uplink and downlink data are calculated first Time difference obtains uplink and downlink data time difference list, respectively DownValueList and UpValueList;
Judge the time value of the first data of end side, if be more than the time value of the first data of network side;
If so, from the uplink and downlink data time difference list, extraction obtains uplink maximum time difference and downlink is minimum Time difference;Then judge whether that uplink maximum time difference is poor more than downlink minimum time, if so, being based on k= (DownVlaueMax-UpVlaueMin) time error coefficient is calculated in/(UpMinUETime-DownMaxUETime), so The time value after calibration is calculated based on time error coefficient afterwards;
Otherwise, from uplink and downlink data time difference list, extraction obtains downlink maximum time difference and uplink minimum time is poor, Judge whether downlink maximum time difference is poor not less than uplink minimum time, if so, being based on k=(UpVlaueMax- DownVlaueMin time error coefficient is calculated in)/(DownMinUETime-UpMaxUETime), is then based on time mistake The time value after calibration is calculated in poor coefficient.
It finally introduces and carries out communicating generated data on how to obtain terminal and network side, may refer to Fig. 4, answer With commercial drive test and Open-Source Tools, the original signaling data in extraction end side, measurement data of eating dishes without rice or wine, user face data export standard Formatted data, application mainstream signaling monitoring system/instrument, the original signaling of synchronous acquisition core net, user face data simultaneously carried out Filter extraction, exports standard data;Then by clock compensation multi-source data synchronizer, when signaling/business datum is carried out Clock relative calibration obtains signaling/business datum after clock compensation;Then pass through signaling/operation flow matching unit with timely Between synchronizer processing, realize that the signaling and operation flow logic of terminal and network side integrally restore.
As it can be seen that by using said program, it will be able to which data caused by the communication based on terminal and network are got The time difference of downlink data, being then based on the time difference is calculated time error coefficient, recycles time error coefficient to terminal Or the data of network side are calibrated.In this way, by for the data of certain side analyze and calibrate one by one, it will be able to keep away The problems such as exempting from the data incorrect order caused by prolonged error accumulation.
Embodiment two,
An embodiment of the present invention provides a kind of time calibration devices, as shown in figure 5, including:
Information acquisition unit 51, communicated for getting terminal with network side caused by N terminal side data The time value of time value and M network side data;N and M is integer;Wherein, the terminal side data is that the terminal connects The data received or sent, the network side data are the data that the network side is received or sent;
Coefficient calculation unit 52 is used for the time value based on the N terminal side data and the M network side number According to time value, the terminal device is calculated and carries out communicating corresponding time error coefficient with network side;
Alignment unit 53, for being based on the time error coefficient, to the terminal device and the network-side communication institute The time value of N terminal side data of generation is calibrated, or, to caused by the terminal device and the network-side communication The time value of M network side data is calibrated.
Device provided in an embodiment of the present invention, can be arranged in network side, and the management that can be specifically arranged in a network is set In standby, without exhaustion in specific installation position the present embodiment.
About the time value of terminal side data and the time value of network side data, Fig. 2, wherein terminal device may refer to The data TAi sent out is the corresponding time value of terminal side data, and TBj is the corresponding time value of network side data.Wherein, i and j It is integer.Usually N and M can be identical, that is to say, that when executing an operation flow, terminal sends and connects The total quantity of the data of receipts, the total quantity of the data sended and received with network side may be identical, also be not excluded for spy certainly Different situation, such as when terminal does not receive the data that network side is sent, it is possible to corresponding response message will not be sent out, then In this case N and M is then different numerical value.Without exhaustion in specific signal intelligence the present embodiment.
It is understood that when getting these communication datas, in addition to can obtain N terminal side data and Except the time value of M network side data, the transmission of each terminal side data and network side data should be able to be also got Or direction is received, for example, i-th terminal side data is the downlink data that the upstream data sent still receives.It is specific to obtain Mode can be to obtain, can also be reported by terminal from the management equipment side of network side, and the present embodiment is without exhaustion.
The coefficient calculation unit, for getting first terminal side data from the N terminal side data;It is described First terminal side data characterizes the earliest a data of time in the N terminal side data;
First network side data is got from the M terminal side data;First network side data characterization Time earliest a data in the M network side data;
Based on the corresponding time value of first terminal side data and first network side data institute, It determines the calculation based on the time error coefficient, the time error coefficient is calculated based on the calculation.
Specifically, the coefficient calculation unit, described in being more than when the time value of first network side data When the time value of first terminal side data, determines and the time error coefficient is calculated using the first calculation, otherwise, it determines The time error coefficient is calculated using the second calculation;The time value of first network side data is more than first end side The generation scene of the time value of data can be due to caused by some operation flow that end side is triggered, for example, terminal When initiating call business, it can send out and ask from terminal to network, then in this business, the time of the first data of terminal Value will be less than the time value of the first data of network side;It is on the contrary, it is possible to be the business scenario of network side triggering, here No longer repeated.
Correspondingly, the coefficient calculation unit, for when determining using the first calculation, being based on the N terminal Side data and the M network side data, are calculated the maximum downstream time difference and minimum upstream time is poor, at least base It is poor in the maximum downstream time difference and minimum upstream time, the time error coefficient is calculated;
It is using the second calculation when determining, is based on the N terminal side data and the M network side data, Maximum upstream time difference is calculated and minimum downgoing time is poor, is at least based under the maximum upstream time difference and minimum The time error coefficient is calculated in the row time difference.
Coefficient calculation unit obtains the first difference, by terminal for the maximum downstream time difference to be subtracted minimum upstream time First upstream data transmission time value of side subtracts end side the last item downlink data receiving time and is worth to the second difference, By the ratio of the first difference and second difference, as the time error coefficient.
Further, in this calculating, when can also first determine whether that whether the maximum downstream time difference is no more than minimum uplink Between it is poor, if so, can without calculating, otherwise, execute it is above-mentioned be at least based on the maximum upstream time difference and it is described most Small downgoing time is poor, and the calculating of the time error coefficient is calculated.
It is at least based on the maximum upstream time difference and the minimum downgoing time is poor about above-mentioned, is calculated described The calculation of time error coefficient, specifically, when the first data time value is more than in end side first in network side Data time value calculates maximum downstream time difference DownVlaueMax and minimum upstream time difference UpVlaueMin, due to DownVlaueMax≤UpVlaueMin, time synchronization could carry out, so time error coefficient k=(DownVlaueMax- UpVlaueMin)/(UpMinUETime-DownMaxUETime), so that the time difference guarantee DownVlaueMax after adjustment ≤UpVlaueMin。
In addition, coefficient calculation unit, for going minimum downgoing time difference to obtain third difference maximum upstream time subtractive, First article of downlink data receiving time value of end side is subtracted into the last item upstream data sending time and is worth to the 4th difference, By the ratio of third difference and the 4th difference, as the time error coefficient.
When the first data time value is calculated less than the first data time value in end side in network side UpVlaueMax and DownVlaueMin, as UpVlaueMax≤DownVlaueMin, time synchronization could carry out, so the time Error coefficient k=(UpVlaueMax-DownVlaueMin)/(DownMinUETime-UpMaxUETime).
The alignment unit, specifically for being calculated between i-th terminal side data and first terminal side data Time difference i;Wherein, i is the integer more than or equal to 0 and less than or equal to N;Based on the time difference i and the time error multiplication, It is being added again with the time value of i-th terminal side data as a result, as i-th terminal side data after calibration when Between be worth;
And/or
The time difference j between j-th strip network side data and first network side data is calculated;Wherein, j be more than or equal to 0 and less than or equal to M integer;Based on the time difference j and the time error multiplication, then with the j-th strip network side number According to time value be added as a result, time value as i-th network side data after calibration.
Based on time error coefficient, a side data all times are calibrated, it is ensured that opposite with other side data clock It is synchronous.For example, all data time in the sides UE are calibrated:
Time=TAi-TA0
New TAi=TAi+ (Time_hour*3600+Time_minute*60+Time_second) * k;
Wherein, the time respectively include sometimes, point and the second parameter, when being based respectively on, point and the second parameter and time error Then coefficient, which calculate, to be calibrated TAi to obtain new TAi.
The UE side datas after clock alignment or network side data are carried out, then carries out time synchronization, such operation flow logic Just obtain whole reduction.
Referring to Fig. 3, calculation process is provided for processing method provided in this embodiment:Uplink and downlink data are calculated first Time difference list obtains uplink and downlink data time difference list, respectively DownValueList and UpValueList;Then judge Whether the time value of the first data of end side is more than the time value of the first data of network side;
If so, from the uplink and downlink data time difference list, extraction obtains uplink maximum time difference and downlink is minimum Time difference;Then judge whether that uplink maximum time difference is poor more than downlink minimum time, if so, being based on k= (DownVlaueMax-UpVlaueMin) time error coefficient is calculated in/(UpMinUETime-DownMaxUETime), so The time value after calibration is calculated based on time error coefficient afterwards;
Otherwise, from uplink and downlink data time difference list, extraction obtains downlink maximum time difference and uplink minimum time is poor, Judge whether downlink maximum time difference is poor not less than uplink minimum time, if so, being based on k=(UpVlaueMax- DownVlaueMin time error coefficient is calculated in)/(DownMinUETime-UpMaxUETime), is then based on time mistake The time value after calibration is calculated in poor coefficient.
It finally introduces and carries out communicating generated data on how to obtain terminal and network side, may refer to Fig. 4, answer With commercial drive test and Open-Source Tools, the original signaling data in extraction end side, measurement data of eating dishes without rice or wine, user face data export standard Formatted data, application mainstream signaling monitoring system/instrument, the original signaling of synchronous acquisition core net, user face data simultaneously carried out Filter extraction, exports standard data, by clock compensation multi-source data synchronizer by signaling/business datum into row clock phase Signaling and operation flow logic are realized by the processing of signaling/operation flow matching unit and time synchronism equipment to calibration Whole reduction.
As it can be seen that by using said program, it will be able to which data caused by the communication based on terminal and network are got The time difference of downlink data, being then based on the time difference is calculated time error coefficient, recycles time error coefficient to terminal Or the data of network side are calibrated.In this way, by for the data of certain side analyze and calibrate one by one, it will be able to keep away The problems such as exempting from the data incorrect order caused by prolonged error accumulation.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or server including a series of elements include not only those elements, But also include other elements that are not explicitly listed, or further include for this process, method, article or server institute Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wrapping Include in process, method, article or the server of the element that there is also other identical elements.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (12)

1. a kind of time calibrating method, which is characterized in that the method includes:
Get terminal communicated with network side caused by N terminal side data time value and M network side data Time value;N and M is integer;Wherein, the terminal side data is the data that the terminal is received or sent, the network Side data is the data that the network side is received or sent;
The time value of time value and the M network side data based on the N terminal side data is calculated described Terminal device carries out communicating corresponding time error coefficient with network side;
Based on the time error coefficient, to N terminal side data caused by the terminal device and the network-side communication Time value calibrated, or, to the time of M network side data caused by the terminal device and the network-side communication Value is calibrated.
2. according to the method described in claim 1, it is characterized in that, the time value based on the N terminal side data, with And the time value of the M network side data, the terminal device is calculated and carries out communicating the corresponding time with network side Error coefficient, including:
First terminal side data is got from the N terminal side data;First terminal side data characterizes the N Time earliest a data in terminal side data;
First network side data is got from the M terminal side data;First network side data characterizes the M Time earliest a data in network side data;
Based on the corresponding time value of first terminal side data and first network side data institute, determine Based on the calculation of the time error coefficient, the time error coefficient is calculated based on the calculation.
3. according to the method described in claim 2, it is characterized in that, described be based on first terminal side data, the Yi Jisuo The corresponding time value of first network side data institute is stated, determines the calculation based on the time error coefficient, including:
When the time value of first network side data is more than the time value of first terminal side data, determines and use First calculation calculates the time error coefficient, otherwise, it determines calculating the time error system using the second calculation Number;
The time error coefficient is calculated based on the calculation includes correspondingly, described:
When determining using the first calculation, it is based on the N terminal side data and the M network side data, is calculated It obtains the maximum downstream time difference and minimum upstream time is poor, when being at least based on the maximum downstream time difference and minimum uplink Between it is poor, the time error coefficient is calculated;
It is using the second calculation when determining, is based on the N terminal side data and the M network side data, calculates It obtains maximum upstream time difference and minimum downgoing time is poor, when being at least based on the maximum upstream time difference and minimum downlink Between difference the time error coefficient is calculated.
4. according to the method described in claim 3, it is characterized in that,
It is at least based on the maximum downstream time difference and minimum upstream time is poor, the time error coefficient is calculated, also Including:
The maximum downstream time difference is subtracted into minimum upstream time difference and obtains the first difference, first upstream data of end side is sent out It send time value to subtract end side the last item downlink data receiving time and is worth to the second difference, by the first difference and described second The ratio of difference, as the time error coefficient;
It is at least based on the maximum upstream time difference and the time error coefficient is calculated in minimum downgoing time difference, also wrap It includes:
It goes minimum downgoing time difference to obtain third difference maximum upstream time subtractive, first downlink data of end side is connect Receipts time value subtracts the last item upstream data sending time and is worth to the 4th difference, by third difference and the 4th difference Ratio, as the time error coefficient.
5. according to the method described in claim 3, it is characterized in that, described be at least based on the maximum upstream time difference and institute It is poor to state minimum downgoing time, is calculated before the time error coefficient, the method further includes:Judge the maximum uplink Whether the time difference is poor no more than the minimum downgoing time;
It is described that the time error coefficient is at least calculated based on the maximum upstream time difference and minimum downgoing time difference Before, the method further includes:Judge whether the maximum upstream time difference is poor no more than minimum downgoing time.
6. according to claim 1-5 any one of them methods, which is characterized in that described to the terminal device and the network The time value of N terminal side data caused by the communication of side is calibrated, including:I-th article of terminal side data and is calculated Time difference i between one terminal side data;Wherein, i is the integer more than or equal to 0 and less than or equal to N;Based on the time difference i with The time error multiplication, then be added with the time value of i-th terminal side data as a result, after as calibration I-th terminal side data time value;
The terminal device and the time value of M network side data caused by the network-side communication are calibrated, including:
The time difference j between j-th strip network side data and first network side data is calculated;Wherein, j be more than or equal to 0 and Integer less than or equal to M;Based on the time difference j and the time error multiplication, then with the j-th strip network side data It is that time value is added as a result, time value as i-th network side data after calibration.
7. a kind of time calibration device, which is characterized in that described device includes:
Information acquisition unit, communicated for getting terminal with network side caused by N terminal side data time value, And the time value of M network side data;N and M is integer;Wherein, the terminal side data is that the terminal is received or sent out The data sent, the network side data are the data that the network side is received or sent;
Coefficient calculation unit, for based on the N terminal side data time value and the M network side data when Between be worth, the terminal device is calculated and carries out communicating corresponding time error coefficient with network side;
Alignment unit, for being based on the time error coefficient, to N caused by the terminal device and the network-side communication The time value of terminal side data is calibrated, or, to M network caused by the terminal device and the network-side communication The time value of side data is calibrated.
8. device according to claim 7, which is characterized in that the coefficient calculation unit is used for from the N end side First terminal side data is got in data;First terminal side data characterizes the time in the N terminal side data Earliest a data;
First network side data is got from the M terminal side data;First network side data characterizes the M Time earliest a data in network side data;
Based on the corresponding time value of first terminal side data and first network side data institute, determine Based on the calculation of the time error coefficient, the time error coefficient is calculated based on the calculation.
9. device according to claim 8, which is characterized in that the coefficient calculation unit, for working as first net When the time value of network side data is more than the time value of first terminal side data, determines and institute is calculated using the first calculation Time error coefficient is stated, otherwise, it determines calculating the time error coefficient using the second calculation;
The time error coefficient is calculated based on the calculation includes correspondingly, described:
When determining using the first calculation, it is based on the N terminal side data and the M network side data, is calculated It obtains the maximum downstream time difference and minimum upstream time is poor, when being at least based on the maximum downstream time difference and minimum uplink Between it is poor, the time error coefficient is calculated;
It is using the second calculation when determining, is based on the N terminal side data and the M network side data, calculates It obtains maximum upstream time difference and minimum downgoing time is poor, when being at least based on the maximum upstream time difference and minimum downlink Between difference the time error coefficient is calculated.
10. device according to claim 9, which is characterized in that
The coefficient calculation unit obtains the first difference, by terminal for the maximum downstream time difference to be subtracted minimum upstream time First upstream data transmission time value of side subtracts end side the last item downlink data receiving time and is worth to the second difference, By the ratio of the first difference and second difference, as the time error coefficient;
And
It goes minimum downgoing time difference to obtain third difference maximum upstream time subtractive, first downlink data of end side is connect Receipts time value subtracts the last item upstream data sending time and is worth to the 4th difference, by third difference and the 4th difference Ratio, as the time error coefficient.
11. device according to claim 9, which is characterized in that the coefficient calculation unit, for be at least based on it is described most Big upstream time difference and the minimum downgoing time are poor, are calculated before the time error coefficient, judge the maximum Whether upstream time difference is poor no more than the minimum downgoing time;And
It is described that the time error coefficient is at least calculated based on the maximum upstream time difference and minimum downgoing time difference Before, judge whether the maximum upstream time difference is poor no more than minimum downgoing time.
12. according to claim 7-11 any one of them devices, which is characterized in that the alignment unit is specifically used for calculating Obtain the time difference i between i-th terminal side data and first terminal side data;Wherein, i is more than or equal to 0 and to be less than or equal to N Integer;Based on the time difference i and the time error multiplication, then the time value phase with i-th terminal side data It is adding as a result, time value as i-th terminal side data after calibration;
And/or
The time difference j between j-th strip network side data and first network side data is calculated;Wherein, j be more than or equal to 0 and Integer less than or equal to M;Based on the time difference j and the time error multiplication, then with the j-th strip network side data It is that time value is added as a result, time value as i-th network side data after calibration.
CN201710147218.3A 2017-03-13 2017-03-13 Time calibration method and device Active CN108574547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710147218.3A CN108574547B (en) 2017-03-13 2017-03-13 Time calibration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710147218.3A CN108574547B (en) 2017-03-13 2017-03-13 Time calibration method and device

Publications (2)

Publication Number Publication Date
CN108574547A true CN108574547A (en) 2018-09-25
CN108574547B CN108574547B (en) 2020-07-03

Family

ID=63578329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710147218.3A Active CN108574547B (en) 2017-03-13 2017-03-13 Time calibration method and device

Country Status (1)

Country Link
CN (1) CN108574547B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132302A (en) * 2019-12-27 2020-05-08 京信通信系统(中国)有限公司 Time synchronization method, device, base station equipment and computer readable storage medium
CN112019289A (en) * 2020-08-28 2020-12-01 帷幄匠心科技(杭州)有限公司 Time synchronization method for time-sharing system
CN112286039A (en) * 2020-12-30 2021-01-29 深圳市越芯电子有限责任公司 Clock calibration method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431385A (en) * 2008-08-26 2009-05-13 中兴通讯股份有限公司 Frequency and time synchronization method for passive optical network
KR20090128654A (en) * 2008-06-11 2009-12-16 삼성전자주식회사 Appratus and method for acquting uplink transmit timing in wireless mobile communication
WO2011068554A1 (en) * 2009-12-01 2011-06-09 Qualcomm Incorporated Method and apparatus of utilizing uplink synchronization shift command bits in td-scdma uplink transmission
CN102664698A (en) * 2011-12-27 2012-09-12 华为技术有限公司 Method, device and system for providing synchronous deviation time
CN105827350A (en) * 2015-01-04 2016-08-03 中国移动通信集团公司 Information synchronization method and network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090128654A (en) * 2008-06-11 2009-12-16 삼성전자주식회사 Appratus and method for acquting uplink transmit timing in wireless mobile communication
CN101431385A (en) * 2008-08-26 2009-05-13 中兴通讯股份有限公司 Frequency and time synchronization method for passive optical network
WO2011068554A1 (en) * 2009-12-01 2011-06-09 Qualcomm Incorporated Method and apparatus of utilizing uplink synchronization shift command bits in td-scdma uplink transmission
CN102664698A (en) * 2011-12-27 2012-09-12 华为技术有限公司 Method, device and system for providing synchronous deviation time
CN105827350A (en) * 2015-01-04 2016-08-03 中国移动通信集团公司 Information synchronization method and network equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132302A (en) * 2019-12-27 2020-05-08 京信通信系统(中国)有限公司 Time synchronization method, device, base station equipment and computer readable storage medium
CN111132302B (en) * 2019-12-27 2022-05-03 京信网络系统股份有限公司 Time synchronization method, device, base station equipment and computer readable storage medium
CN112019289A (en) * 2020-08-28 2020-12-01 帷幄匠心科技(杭州)有限公司 Time synchronization method for time-sharing system
CN112286039A (en) * 2020-12-30 2021-01-29 深圳市越芯电子有限责任公司 Clock calibration method and device and readable storage medium

Also Published As

Publication number Publication date
CN108574547B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN100581164C (en) Accurate time synchronization method and system facing measurement and control
US8873589B2 (en) Methods and devices for clock synchronization
EP2528254B1 (en) Method and device for time synchronization
CN103563287B (en) Synchronization device and synchronization method
US9270607B2 (en) Method and devices for packet selection
CN103546268B (en) The compensation method of a kind of system time and equipment
CN108574547A (en) A kind of time calibrating method and device
CN102932083B (en) A kind of method and apparatus during microwave synchronization pair
CN103458496A (en) Method and system for achieving time synchronization through WiFi-Direct
CN107528654A (en) It is a kind of based on 1588 method for synchronizing time and device
CN108322280A (en) A kind of distributed computer network (DCN) clock synchronizing relay compensation method
CN106301996B (en) A kind of method and device that PTP message is tested automatically
CN109327899A (en) A kind of method, apparatus and system synchronization time of mobile unit synchronization time
CN106533603A (en) Time synchronizing method and device for distributed system
CN106688207A (en) Method for determining a propagation time of a telegram in a communication network, and corresponding network components
CN103686982A (en) Method for time synchronization based on clock information and node equipment
US8775885B2 (en) IEEE1588 protocol negative testing method
CN108259105B (en) time synchronization processing method and device and synchronization network
CN106647228B (en) Converter station master clock fault judgment system
CN109842456A (en) A kind of clock synchronizing method based on AFDX network
CN103178920A (en) Multi-channel synchronization method in test system of digital transformer substation
CN106549904A (en) The method and device of packet parsing
CN107566072A (en) A kind of secondary device clock synchronizing method based on dual time correction
WO2022143548A1 (en) Synchronization method and apparatus, and time server and downstream time server
CN102137483A (en) Time synchronization method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant