WO2010115357A1 - Method and system for clock correction of wireless base station based on internet protocol (ip) network - Google Patents

Method and system for clock correction of wireless base station based on internet protocol (ip) network Download PDF

Info

Publication number
WO2010115357A1
WO2010115357A1 PCT/CN2010/071024 CN2010071024W WO2010115357A1 WO 2010115357 A1 WO2010115357 A1 WO 2010115357A1 CN 2010071024 W CN2010071024 W CN 2010071024W WO 2010115357 A1 WO2010115357 A1 WO 2010115357A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
base station
wireless base
correction
timestamp
Prior art date
Application number
PCT/CN2010/071024
Other languages
French (fr)
Chinese (zh)
Inventor
杨锋
姚幸林
周辉
邰春玲
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2010115357A1 publication Critical patent/WO2010115357A1/en

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
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/38Reselection control by fixed network equipment
    • H04W36/385Reselection control by fixed network equipment of the core network

Definitions

  • the present invention relates to a clock synchronization correction technology for a wireless base station in the field of mobile communication, and more particularly to a method and system for correcting a wireless base station clock based on an Internet Protocol (IP) network.
  • IP Internet Protocol
  • GSM Global System For Mobile Communication
  • BSS Base Station Subsystem
  • BSC base station controller
  • BTS base transceiver station
  • Wireless base stations require accurate clock signals for a variety of applications.
  • a wireless base station uses a temperature compensated crystal oscillator (TCXO, Temperature Compensated Crystal Oscillator) to generate a 26 MHz oscillation frequency as a local clock signal, but as time and temperature change, the 26 MHz oscillation frequency will have a relatively large change, thereby affecting Air interface wireless transmission quality, and bring interference to other base stations and affect mobile phone access.
  • TCXO Temperature Compensated Crystal Oscillator
  • the BTS extracts a synchronous clock signal by means of an E1/T1 link of TDM, or a GPS device, to calibrate the oscillation of the local clock.
  • Frequency to ensure the quality of air interface wireless transmission, to solve the interference problem caused by frequency offset.
  • IP network networking is diverse and flexible, and IP networking has become mainstream.
  • the clock signal cannot be obtained through the E1 link, but the clock accuracy obtained only through the physical layer of the IP network cannot meet the requirements of the wireless communication device. Summary of the invention
  • the present invention provides a method and system for correcting a radio base station clock based on an IP network to provide a more accurate clock for a radio base station in an IP network.
  • the present invention adopts the following technical solutions:
  • a method for correcting a wireless base station clock based on an IP network comprising:
  • the wireless base station acquires at least two sets of related correction data indicating clock synchronization; in the clock correction process, the wireless base station calculates a corrected frequency difference by using the correlation correction data, and pairs the local clock according to the corrected frequency difference Make corrections.
  • the correlation correction data of each group includes a first timestamp, a second timestamp, a third timestamp, and a fourth timestamp;
  • the first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server;
  • the second timestamp is a time when the clock synchronization server receives the clock synchronization request;
  • the third timestamp is a clock a time when the synchronization server sends a clock synchronization response to the wireless base station;
  • the fourth timestamp is a time when the wireless base station receives the clock synchronization response; among them, /.
  • # is the correction frequency difference
  • is the standard frequency
  • ⁇ ⁇ is the difference between the first time stamps corresponding to each of the two sets of the correlation correction data
  • ⁇ ⁇ is the corresponding corresponding to each of the two sets of the correlation correction data a difference between the two timestamps
  • ⁇ ⁇ is a difference between the third timestamps corresponding to each of the two sets of the correlation correction data
  • ⁇ 4 is the difference between the fourth time stamps corresponding to each of the two sets of the correlation correction data.
  • the method further includes: filtering the bad values in the corrected frequency difference.
  • the method further includes: the wireless base station correcting the local clock by using an average of the plurality of corrected frequency differences.
  • the clock synchronization server is a network time protocol ( ⁇ ) synchronization source, and the US electrical And the Institute of Electrical Engineers 1588 Protocol (PTP) synchronization source, or a custom synchronization source. In addition, this method can also be used as a clock synchronization source.
  • network time protocol
  • PTP Institute of Electrical Engineers 1588 Protocol
  • the invention also discloses a wireless base station clock correction system based on an IP network, the system comprising: a correction data acquisition module and a clock correction module; wherein
  • a calibration data acquisition module configured to acquire, by the wireless base station, at least two sets of related correction data that characterize clock synchronization
  • a clock correction module configured to calculate, by the wireless base station, a corrected frequency difference by using the correlation correction data, and correct the local clock according to the corrected frequency difference.
  • the correction data collection module is further configured to: when acquiring at least two sets of the correlation correction data, each set of the correlation correction data includes a first timestamp, a second timestamp, a third timestamp, and a fourth Timestamp
  • the first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server;
  • the second timestamp is a time when the clock synchronization server receives the clock synchronization request;
  • the third timestamp is a clock a time when the synchronization server sends a clock synchronization response to the wireless base station;
  • the fourth timestamp is a time when the wireless base station receives the clock synchronization response;
  • the clock correction module is further configured to: when the local clock is corrected according to the corrected frequency difference, Wherein, the frequency difference is corrected; ⁇ is the standard frequency; ⁇ ⁇ is the difference between the first time stamps corresponding to each of the two sets of the correlation correction data; ⁇ ⁇ is corresponding to each of the two sets of the correlation correction data respectively a difference between the second time stamps; ⁇ ⁇ is a difference between the third time stamps corresponding to each of the two sets of the correlation correction data; ⁇ is a fourth time corresponding to each of the two sets of the correlation correction data The difference between the stamps.
  • the system further includes: a bad value filtering module, configured to filter a bad value in the corrected frequency difference when the wireless base station performs correction by using multiple corrected frequency differences.
  • the clock correction module is further configured to: when the wireless base station passes multiple correction frequencies When the difference is corrected, the radio base station corrects the local clock by the mean of the plurality of corrected frequency differences.
  • the clock synchronization server is an NTP synchronization source, a PTP synchronization source, or a customized synchronization source.
  • the system can be used as a clock synchronization source.
  • the present invention has the following advantages:
  • the invention corrects the local clock of the wireless base station by collecting data such as the sending time of the clock synchronization request of the wireless base station, the time when the clock synchronization server receives the request, the time of sending the clock synchronization response, and the time when the wireless base station receives the response. This provides accurate clock timing. DRAWINGS
  • FIG. 1 is a schematic view showing the structure of a system of an example of the present invention
  • FIG. 2 is a schematic flow chart of a calibration process of an example of the present invention
  • FIG. 3 is a schematic structural diagram of a system hardware of an example of the present invention.
  • FIG. 1 exemplarily depicts the system architecture of the present invention.
  • FIG. 1 depicts only portions relevant to the present invention, and those skilled in the art will appreciate that the wireless base station has other functions and structures, but these are not within the scope of the present invention.
  • the exemplary system shown in Figure 1 includes: a wireless base station at the client 1.
  • the radio base station 1 includes a local clock 11, a correction data acquisition module 12, and a clock correction module 13.
  • the radio base station 1 transmits a clock synchronization request 3 to the clock synchronization server 2 through the correction data acquisition module 12, and records the transmission time of the clock synchronization request 3 as the first time stamp T1.
  • the first timestamp T1 can be obtained by using the local clock 11 of the radio base station 1, for example, a 26 ⁇ voltage controlled crystal oscillator.
  • the clock synchronization server 2 When the clock synchronization server 2 receives the clock synchronization request 3, it records the current time as Second timestamp T2. Then, when the clock synchronization server 2 transmits the clock synchronization response 4 to the radio base station 1, the current time is also recorded, that is, the transmission time of the clock synchronization response 4 is taken as the third time stamp ⁇ 3.
  • the clock synchronization response 4 sent by the clock synchronization server 2 to the radio base station 1 will contain a second time stamp ⁇ 2 and a third time stamp ⁇ 3.
  • the acquisition of the second timestamp ⁇ 2 and the third timestamp ⁇ 3 may have different manners depending on the application scenario. For example, the clock synchronization server 2 may acquire the second time stamp ⁇ 2 and the third time stamp ⁇ 3 from the reference clock carried by itself, or may also be acquired by the coordinated receiving universal time (UTC) standard clock by the GPS receiving device.
  • UTC coordinated receiving universal time
  • the radio base station 1 When the radio base station 1 receives the clock synchronization response 4, the current time is recorded, that is, the reception time of the clock synchronization response 4 of the radio base station 1 is taken as the fourth time stamp ⁇ 4. Similarly, the fourth timestamp ⁇ 4 can be obtained by the local clock 11.
  • the calibration data acquisition module 11 of the radio base station 1 receives the correction data and hands it to the clock correction module 13 for correction processing.
  • the correction data includes: a first timestamp T1, a second timestamp ⁇ 2, a third timestamp ⁇ 4, and a fourth timestamp ⁇ 4.
  • the data collection process needs to be repeated in one synchronization.
  • the data collection can be performed periodically by the timing mode of the timer. In this mode, the next data collection may have a certain time interval from the previous data collection. Or the event triggering mode in which the wireless base station receives the clock synchronization response causes the next data acquisition to start immediately following the end of the previous data collection.
  • Figure 4 depicts the process of two data acquisitions.
  • the client is the wireless base station 1
  • the server is the clock synchronization server 2
  • the data ⁇ 10, ⁇ 20, ⁇ 30, ⁇ 40 are the first timestamp data collected
  • data Tll T21, T31, T41 are the timestamp data collected for the second time
  • ⁇ 2 ⁇ 1 -ul+u2
  • ⁇ ⁇ 2+ ⁇ ⁇ 3 ⁇ + AT4-ul +u2-D2+Dl
  • the FPGA count time is employed, and therefore, in the following derivation, the time data is expressed in the form of a count.
  • the standard frequency is 26MHz, which is the difference between the actual frequency and the standard frequency.
  • the bias correction voltage, the crystal oscillator is frequency corrected under the control of the correction voltage.
  • the interval between two acquisitions that is, the larger the timing interval of T11-T10, the smaller the introduction error.
  • multiple measurements can be taken and then averaged.
  • FIG. 2 exemplarily describes the calibration processing flow of the present invention, including the following steps: Step S201, the system is started.
  • Step S202 The calibration data collection module 12 of the radio base station 1 acquires and acquires data for correction and saves it by interacting with the data of the clock synchronization server 2. Thereafter, the process officially entered the correction process.
  • Step S203 The calibration process first needs to perform filtering algorithm analysis on the collected data to filter the bad values. For the analysis of the filtering algorithm, it can be performed by the bad value filtering module in the wireless base station 1, and the bad value filtering module is not indicated in the drawing.
  • Step S204 according to the foregoing frequency difference calculation process, , to determine whether it meets the network quality threshold requirements. After judging that the data meets the network quality threshold requirement, the process will proceed to step S205, otherwise, the process jumps to step
  • Step S205 The data that meets the network quality threshold requirement is saved to a reasonable data area. Through the screening of network quality threshold requirements, it is possible to filter out data whose accuracy is greatly affected by factors such as network jitter and delay, and to save more reasonable data.
  • Step S206 when the amount of reasonable data saved in the reasonable data area has not reached the predetermined number When the value is up, the process will return to step S202 to continue the above process of data collection, filtering, network quality threshold requirement judgment, etc., once the reasonable data amount in the reasonable data area reaches a predetermined value, usually set to 10, the process will The process proceeds to step S207.
  • Step S207 using a reasonable data of a predetermined data amount as a correction reference, using a frequency offset calculation algorithm, calculating a corrected frequency difference, and converting the corrected frequency difference into a voltage control voltage value to the wireless base station by using a D/A conversion algorithm
  • the 26M voltage controlled crystal oscillator of 1 performs correction control to realize frequency offset correction of the radio base station 1.
  • Step S208 When the frequency offset correction is completed, all data areas are cleared.
  • step S209 the data that does not meet the network quality threshold requirement will not be saved and will be cleared after the end of the synchronization.
  • FIG. 3 exemplarily describes the hardware configuration of the radio base station 1 of the present invention. It should be understood that Figure 3 only depicts portions of the invention that are relevant to the present invention, and that other configurations that the wireless base station should have are not within the scope of the description of Figure 3. Meanwhile, FIG. 3 is also merely an example of the present invention, and does not limit the necessity of adopting the hardware structure shown in FIG. 3 to implement the present invention.
  • the main components included in the wireless base station 1 and their functions are:
  • Microprocessor chip used for the implementation of the IP protocol stack and the functional control of each module of the system.
  • Programmable Logic Array FPGA: Used to count the output signal of the voltage controlled oscillator; 26M voltage controlled oscillator: Voltage controlled crystal oscillator, less affected by temperature drift and time drift; A/D subject to CPU control High-precision conversion chip for outputting voltage control values.
  • the CPU activates the FPGA running program to complete the initialization of each hardware module parameter.
  • the FPGA counts the 26M crystal oscillator output oscillation signal and converts it into a 64-bit format.
  • the unit assumes that it is 1/26000000S. It periodically sends a time synchronization message to the clock synchronization server that provides the IP clock synchronization source.
  • the protocol can use the network time protocol (NTP, Network Time Protocol). Or IEEE1588 protocol (PTP), after collecting a certain amount of data, you can obtain optimal multi-group data according to statistical methods, such as removing the maximum and minimum data of the offset value. After averaging these multiple sets of data, calculate the deviation of the FPGA count for a certain period of time, convert it to voltage voltage control value, and calibrate the 26M crystal oscillator signal.
  • IEEE is the American Institute of Electrical and Electronics Engineers.
  • Targeted Resolved the problem of clock and frequency synchronization in the current IP networking environment.
  • Flexible networking The present invention can be fully integrated into the base station software; and the same device can be used as a client for frequency offset correction, and can be used as a calibration synchronization source for other clients.
  • the present invention can be implemented entirely in software without the need for other external devices.
  • High precision By using a stable clock synchronization source as the clock synchronization server, filtering out the bad values that are greatly affected by network jitter, and using the data after the Xuexuan calculation to calculate the voltage control voltage value, the accuracy of O.lppm in the internet network environment can be obtained. O.Olppm precision clock under LAN.

Abstract

A method for clock correction of wireless base station based on Internet Protocol (IP) network, the method comprises: the wireless base station obtains at least two groups of related correction data which represent clock synchronization; the wireless base station calculates correction frequency difference using the related correction data, and corrects the local clock according to the correction frequency difference. A system for clock correction of wireless base station based on IP network is also provided, and the system comprises: a correction data acquisition module (12) for obtaining at least two groups of related correction data which represent clock synchronization; a clock correction module (13) for calculating correction frequency difference using the related correction data and correcting the local clock according to the correction frequency difference. With the method and the system, more accurate clock is provided for a wireless base station in IP network.

Description

一种基于 IP网络的无线基站时钟校正方法及系统 技术领域  Method and system for correcting wireless base station clock based on IP network
本发明涉及移动通讯领域中无线基站的时钟同步校正技术, 尤其涉及 一种基于网际协议(IP ) 网络的无线基站时钟校正方法及系统。 背景技术  The present invention relates to a clock synchronization correction technology for a wireless base station in the field of mobile communication, and more particularly to a method and system for correcting a wireless base station clock based on an Internet Protocol (IP) network. Background technique
全球移动通信 ( GSM, Global System For Mobile Communication )是移 动通讯中使用最广泛的一种通讯标准。 GSM系统的无线接入网络通常称为 基站子系统( BSS, Base Station Subsystem ) , 由基站控制器( BSC )和基站 收发信机(BTS )组成, 通过无线接口同移动台相接, 进行无线信号发送、 接收及无线资源管理。  Global System For Mobile Communication (GSM) is the most widely used communication standard in mobile communications. The radio access network of the GSM system is usually called a base station subsystem (BSS, Base Station Subsystem), and is composed of a base station controller (BSC) and a base transceiver station (BTS), and is connected to the mobile station through a radio interface to perform wireless signals. Send, receive and manage wireless resources.
无线基站要求精确的时钟信号以便在多种应用。 通常的, 无线基站使 用温度补偿晶振 ( TCXO, Temperature Compensated Crystal Oscillator )压控 晶振产生 26MHz振荡频率作为本地时钟信号, 但随着时间和温度的变化, 26MHz振荡频率会有比较大的变化, 从而影响空口无线传输质量, 并带来 对其它基站干扰和影响手机接入。  Wireless base stations require accurate clock signals for a variety of applications. Generally, a wireless base station uses a temperature compensated crystal oscillator (TCXO, Temperature Compensated Crystal Oscillator) to generate a 26 MHz oscillation frequency as a local clock signal, but as time and temperature change, the 26 MHz oscillation frequency will have a relatively large change, thereby affecting Air interface wireless transmission quality, and bring interference to other base stations and affect mobile phone access.
为此, 需要对晶振的频偏进行校正, 也即对无线基站的时钟进行校正。 目前, 对于传统的基于时分复用 (TDM )传输方式的无线接入网络系统, BTS是通过从 TDM的 E1/T1链路, 或者 GPS设备等方式提取同步时钟信 号, 用以校对本地时钟的振荡频率, 以确保空口无线传输质量, 解决由于 频偏导致的干扰问题。 但是在面临全网 IP化的今天, IP网络组网多样、 灵 活等优势, 已经使 IP组网方式逐渐成为主流。 对于 IP组网方式, 则无法通 过 E1链路获取时钟信号, 而仅仅单纯的通过 IP网络物理层获取的时钟精 度无法满足无线通讯设备的要求。 发明内容 For this reason, it is necessary to correct the frequency offset of the crystal oscillator, that is, to correct the clock of the radio base station. At present, for a traditional wireless access network system based on time division multiplexing (TDM) transmission mode, the BTS extracts a synchronous clock signal by means of an E1/T1 link of TDM, or a GPS device, to calibrate the oscillation of the local clock. Frequency, to ensure the quality of air interface wireless transmission, to solve the interference problem caused by frequency offset. However, in the face of IP-based networking, IP network networking is diverse and flexible, and IP networking has become mainstream. For the IP networking mode, the clock signal cannot be obtained through the E1 link, but the clock accuracy obtained only through the physical layer of the IP network cannot meet the requirements of the wireless communication device. Summary of the invention
有鉴于上述背景, 本发明提供了一种基于 IP网络的无线基站时钟校正 方法及系统, 以便在 IP网络中为无线基站提供更加精确的时钟。  In view of the above background, the present invention provides a method and system for correcting a radio base station clock based on an IP network to provide a more accurate clock for a radio base station in an IP network.
为了解决上述技术问题, 本发明采用了如下技术方案:  In order to solve the above technical problems, the present invention adopts the following technical solutions:
一种基于 IP网络的无线基站时钟校正方法, 该方法包括:  A method for correcting a wireless base station clock based on an IP network, the method comprising:
校正数据采集过程中, 无线基站获取至少两组表征时钟同步的相关校 正数据; 时钟校正过程中, 所述无线基站利用所述相关校正数据计算校正 频率差, 并根据所述校正频率差对本地时钟进行校正。  During the calibration data acquisition process, the wireless base station acquires at least two sets of related correction data indicating clock synchronization; in the clock correction process, the wireless base station calculates a corrected frequency difference by using the correlation correction data, and pairs the local clock according to the corrected frequency difference Make corrections.
其中, 每一组所述相关校正数据包括第一时间戳、 第二时间戳、 第三 时间戳、 和第四时间戳;  The correlation correction data of each group includes a first timestamp, a second timestamp, a third timestamp, and a fourth timestamp;
其中, 所述第一时间戳为无线基站向时钟同步服务器发送时钟同步请 求的时间; 所述第二时间戳为时钟同步服务器接收到所述时钟同步请求的 时间; 所述第三时间戳为时钟同步服务器向无线基站发送时钟同步响应的 时间; 所述第四时间戳为无线基站接收到所述时钟同步响应的时间;
Figure imgf000004_0001
其中, /。#为校正频率 差; ^为标准频率; Δ ^为每两组所述相关校正数据分别对应的第一时间戳 之间的差值; Δ ^为每两组所述相关校正数据分别对应的第二时间戳之间的 差值; Δ ^为每两组所述相关校正数据分别对应的第三时间戳之间的差值;
The first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server; the second timestamp is a time when the clock synchronization server receives the clock synchronization request; the third timestamp is a clock a time when the synchronization server sends a clock synchronization response to the wireless base station; the fourth timestamp is a time when the wireless base station receives the clock synchronization response;
Figure imgf000004_0001
among them, /. # is the correction frequency difference; ^ is the standard frequency; Δ ^ is the difference between the first time stamps corresponding to each of the two sets of the correlation correction data; Δ ^ is the corresponding corresponding to each of the two sets of the correlation correction data a difference between the two timestamps; Δ ^ is a difference between the third timestamps corresponding to each of the two sets of the correlation correction data;
Δ^4为每两组所述相关校正数据分别对应的第四时间戳之间的差值。 Δ^ 4 is the difference between the fourth time stamps corresponding to each of the two sets of the correlation correction data.
其中, 当无线基站通过多个校正频率差进行校正时, 该方法还包括: 对所述校正频率差中的坏值进行过滤。  Wherein, when the wireless base station performs correction by using multiple corrected frequency differences, the method further includes: filtering the bad values in the corrected frequency difference.
其中, 当无线基站通过多个校正频率差进行校正时, 该方法还包括: 无线基站通过多个校正频率差的均值对本地时钟进行校正。  Wherein, when the wireless base station performs correction by using multiple corrected frequency differences, the method further includes: the wireless base station correcting the local clock by using an average of the plurality of corrected frequency differences.
其中, 所述时钟同步服务器为网络时间协议(ΝΤΡ )同步源、 美国电气 和电子工程师协会 1588协议(PTP ) 同步源、 或自定义的同步源。 另外, 本方法也可做时钟同步源使用。 The clock synchronization server is a network time protocol (ΝΤΡ) synchronization source, and the US electrical And the Institute of Electrical Engineers 1588 Protocol (PTP) synchronization source, or a custom synchronization source. In addition, this method can also be used as a clock synchronization source.
本发明还公开了一种基于 IP网络的无线基站时钟校正系统, 该系统包 括: 校正数据采集模块和时钟校正模块; 其中,  The invention also discloses a wireless base station clock correction system based on an IP network, the system comprising: a correction data acquisition module and a clock correction module; wherein
校正数据采集模块, 用于无线基站获取至少两组表征时钟同步的相关 校正数据;  a calibration data acquisition module, configured to acquire, by the wireless base station, at least two sets of related correction data that characterize clock synchronization;
时钟校正模块, 用于所述无线基站利用所述相关校正数据计算校正频 率差, 并根据所述校正频率差对本地时钟进行校正。  And a clock correction module, configured to calculate, by the wireless base station, a corrected frequency difference by using the correlation correction data, and correct the local clock according to the corrected frequency difference.
其中, 所述校正数据采集模块, 进一步用于获取至少两组所述相关校 正数据时, 每一组所述相关校正数据包括第一时间戳、 第二时间戳、 第三 时间戳、 和第四时间戳;  The correction data collection module is further configured to: when acquiring at least two sets of the correlation correction data, each set of the correlation correction data includes a first timestamp, a second timestamp, a third timestamp, and a fourth Timestamp
其中, 所述第一时间戳为无线基站向时钟同步服务器发送时钟同步请 求的时间; 所述第二时间戳为时钟同步服务器接收到所述时钟同步请求的 时间; 所述第三时间戳为时钟同步服务器向无线基站发送时钟同步响应的 时间; 所述第四时间戳为无线基站接收到所述时钟同步响应的时间;  The first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server; the second timestamp is a time when the clock synchronization server receives the clock synchronization request; the third timestamp is a clock a time when the synchronization server sends a clock synchronization response to the wireless base station; the fourth timestamp is a time when the wireless base station receives the clock synchronization response;
所述时钟校正模块, 进一步用于根据所述校正频率差对本地时钟进行 校正时,
Figure imgf000005_0001
其中, 为校正 频率差; ^为标准频率; Δ ^为每两组所述相关校正数据分别对应的第一时 间戳之间的差值; Δ ^为每两组所述相关校正数据分别对应的第二时间戳之 间的差值; Δ ^为每两组所述相关校正数据分别对应的第三时间戳之间的差 值; ^为每两组所述相关校正数据分别对应的第四时间戳之间的差值。
The clock correction module is further configured to: when the local clock is corrected according to the corrected frequency difference,
Figure imgf000005_0001
Wherein, the frequency difference is corrected; ^ is the standard frequency; Δ ^ is the difference between the first time stamps corresponding to each of the two sets of the correlation correction data; Δ ^ is corresponding to each of the two sets of the correlation correction data respectively a difference between the second time stamps; Δ ^ is a difference between the third time stamps corresponding to each of the two sets of the correlation correction data; ^ is a fourth time corresponding to each of the two sets of the correlation correction data The difference between the stamps.
其中, 该系统还包括: 坏值过滤模块, 用于当无线基站通过多个校正 频率差进行校正时, 对所述校正频率差中的坏值进行过滤。  The system further includes: a bad value filtering module, configured to filter a bad value in the corrected frequency difference when the wireless base station performs correction by using multiple corrected frequency differences.
其中, 所述时钟校正模块, 进一步用于当无线基站通过多个校正频率 差进行校正时, 无线基站通过多个校正频率差的均值对本地时钟进行校正。 其中, 所述时钟同步服务器为 NTP同步源、 PTP同步源、 或自定义的 同步源。 另外, 本系统可以做为时钟同步源使用。 The clock correction module is further configured to: when the wireless base station passes multiple correction frequencies When the difference is corrected, the radio base station corrects the local clock by the mean of the plurality of corrected frequency differences. The clock synchronization server is an NTP synchronization source, a PTP synchronization source, or a customized synchronization source. In addition, the system can be used as a clock synchronization source.
与现有技术相比, 本发明具有如下优势:  Compared with the prior art, the present invention has the following advantages:
本发明通过采集无线基站的时钟同步请求的发送时间、 时钟同步服务 器收到该请求的时间、 发送时钟同步响应的时间、 无线基站收到该响应的 时间等数据对无线基站的本地时钟进行校正, 从而提供精确的时钟定时。 附图说明  The invention corrects the local clock of the wireless base station by collecting data such as the sending time of the clock synchronization request of the wireless base station, the time when the clock synchronization server receives the request, the time of sending the clock synchronization response, and the time when the wireless base station receives the response. This provides accurate clock timing. DRAWINGS
图 1是本发明示例的系统结构的示意图;  1 is a schematic view showing the structure of a system of an example of the present invention;
图 2是本发明示例的校正处理流程示意图;  2 is a schematic flow chart of a calibration process of an example of the present invention;
图 3是本发明示例的系统硬件结构示意图;  3 is a schematic structural diagram of a system hardware of an example of the present invention;
图 4是本发明示例的校正数据采集流程图。 具体实施方式  4 is a flow chart of calibration data acquisition of an example of the present invention. detailed description
下面对照附图并结合具体实施方式对本发明做详细说明。  The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
图 1示例性的描述了本发明的系统结构。 图 1仅描述了与本发明相关 的部分, 本领域技术人员可以理解, 无线基站具有其他功能和结构, 但这 些不在本发明的讨论范围内。 图 1 所示的示例性系统包括: 位于客户端的 无线基站 1、位于服务端的时钟同步服务器 2。无线基站 1包含本地时钟 11、 校正数据采集模块 12、 时钟校正模块 13。  Figure 1 exemplarily depicts the system architecture of the present invention. FIG. 1 depicts only portions relevant to the present invention, and those skilled in the art will appreciate that the wireless base station has other functions and structures, but these are not within the scope of the present invention. The exemplary system shown in Figure 1 includes: a wireless base station at the client 1. A clock synchronization server 2 at the server. The radio base station 1 includes a local clock 11, a correction data acquisition module 12, and a clock correction module 13.
在图 1中, 无线基站 1通过校正数据采集模块 12向时钟同步服务器 2 发送时钟同步请求 3 ,并记录下该时钟同步请求 3的发送时间作为第一时间 戳 Tl。其中,第一时间戳 T1可以利用无线基站 1的本地时钟 11 ,例如 26Μ 压控晶振来获取。  In Fig. 1, the radio base station 1 transmits a clock synchronization request 3 to the clock synchronization server 2 through the correction data acquisition module 12, and records the transmission time of the clock synchronization request 3 as the first time stamp T1. The first timestamp T1 can be obtained by using the local clock 11 of the radio base station 1, for example, a 26 压 voltage controlled crystal oscillator.
时钟同步服务器 2在收到时钟同步请求 3时, 记录下当前时间, 作为 第二时间戳 T2。 而后, 当时钟同步服务器 2向无线基站 1发送时钟同步响 应 4时, 同样记录下当前时间, 即以时钟同步响应 4的发送时间作为第三 时间戳 Τ3。 时钟同步服务器 2向无线基站 1发送的时钟同步响应 4将包含 第二时间戳 Τ2和第三时间戳 Τ3。第二时间戳 Τ2和第三时间戳 Τ3的获取, 根据应用场景的不同, 可以具有不同的方式。 例如时钟同步服务器 2 可以 从自身携带的基准时钟来获取第二时间戳 Τ2和第三时间戳 Τ3 , 或者也可 以通过 GPS接收设备由协调世界时 (UTC )标准时钟来获取。 When the clock synchronization server 2 receives the clock synchronization request 3, it records the current time as Second timestamp T2. Then, when the clock synchronization server 2 transmits the clock synchronization response 4 to the radio base station 1, the current time is also recorded, that is, the transmission time of the clock synchronization response 4 is taken as the third time stamp Τ3. The clock synchronization response 4 sent by the clock synchronization server 2 to the radio base station 1 will contain a second time stamp Τ2 and a third time stamp Τ3. The acquisition of the second timestamp Τ2 and the third timestamp Τ3 may have different manners depending on the application scenario. For example, the clock synchronization server 2 may acquire the second time stamp Τ2 and the third time stamp Τ3 from the reference clock carried by itself, or may also be acquired by the coordinated receiving universal time (UTC) standard clock by the GPS receiving device.
无线基站 1收到时钟同步响应 4时, 记录下当前时间, 即无线基站 1 的时钟同步响应 4的接收时间将作为第四时间戳 Τ4。 同样的, 第四时间戳 Τ4可通过本地时钟 11来获取。  When the radio base station 1 receives the clock synchronization response 4, the current time is recorded, that is, the reception time of the clock synchronization response 4 of the radio base station 1 is taken as the fourth time stamp Τ4. Similarly, the fourth timestamp Τ4 can be obtained by the local clock 11.
无线基站 1的校正数据采集模块 11采集到校正数据后, 交给时钟校正 模块 13进行校正处理。 其中, 校正数据包括: 第一时间戳 Tl、 第二时间戳 Τ2、 第三时间戳 Τ4、 第四时间戳 Τ4。  The calibration data acquisition module 11 of the radio base station 1 receives the correction data and hands it to the clock correction module 13 for correction processing. The correction data includes: a first timestamp T1, a second timestamp Τ2, a third timestamp Τ4, and a fourth timestamp Τ4.
数据采集过程在一次同步中需要反复进行, 可以通过定时器的定时方 式使得数据采集得以周期性的进行, 这种方式下, 下一次的数据采集将可 能与上一次的数据采集具有一定的时间间隔; 或者以无线基站收到时钟同 步响应的事件触发方式使得下一次的数据采集紧随着上一次的数据采集的 结束而开始。 图 4描述了两次数据采集的过程, 图 4中, 客户端即无线基 站 1 , 服务器端即时钟同步服务器 2, 数据 Τ10、 Τ20、 Τ30、 Τ40是第一次 采集的时间戳数据, 数据 Tll、 T21、 T31、 T41 是第二次采集的时间戳数 据, ul=T20-T10,Dl=T40-T30; u2=T21-Tll , D2=T41-T31。 下面说明如何 利用时间戳数据计算频率差。  The data collection process needs to be repeated in one synchronization. The data collection can be performed periodically by the timing mode of the timer. In this mode, the next data collection may have a certain time interval from the previous data collection. Or the event triggering mode in which the wireless base station receives the clock synchronization response causes the next data acquisition to start immediately following the end of the previous data collection. Figure 4 depicts the process of two data acquisitions. In Figure 4, the client is the wireless base station 1, the server is the clock synchronization server 2, and the data Τ10, Τ20, Τ30, Τ40 are the first timestamp data collected, data Tll T21, T31, T41 are the timestamp data collected for the second time, ul=T20-T10, Dl=T40-T30; u2=T21-Tll, D2=T41-T31. The following explains how to calculate the frequency difference using timestamp data.
1 )按照客户端和服务端的时间戳来计算  1) Calculate according to the timestamp of the client and server
Δ Τ1 = T11 - T10  Δ Τ1 = T11 - T10
Δ Τ2 = Τ21 - Τ20 ΔΤ3 =T31 -T30 Δ Τ2 = Τ21 - Τ20 ΔΤ3 = T31 -T30
ΔΤ4 = Τ41 -T40  ΔΤ4 = Τ41 -T40
2 )按照发送时延来计算  2) Calculated according to the transmission delay
ΔΤ2 = ΔΤ1 -ul+u2  ΔΤ2 = ΔΤ1 -ul+u2
ΔΤ3 = ΔΤ4- D2+D1  ΔΤ3 = ΔΤ4- D2+D1
Δ Τ2+ Δ Τ3 = ΔΤΙ + AT4-ul +u2-D2+Dl Δ Τ2+ Δ Τ3 = ΔΤΙ + AT4-ul +u2-D2+Dl
= ΔΤΙ + ΔΤ4 + (u2+ Dl)- (ul + D2)  = ΔΤΙ + ΔΤ4 + (u2+ Dl)- (ul + D2)
在本发明的示例中, 采用 FPGA计数时间, 因此, 在下面的推导中, 时间数据采用计数形式来表示。  In the example of the present invention, the FPGA count time is employed, and therefore, in the following derivation, the time data is expressed in the form of a count.
3 )根据计数 N = 时间 T 频率 F:  3) According to the count N = time T frequency F:
AD AD
—— -+—— - + +  —— -+—— - + +
fc fc fc + foff fc + foff fc + foff 其中, ΔΝ^ ΔΝ2、 ΔΝ3、 ΔΝ4、 AD 分别是 ΔΤ1、 ΔΤ2、 ΔΤ3、 Δ Τ4、 以及 (u2+ Dl)- (ul + D2)的计数形式表示。 Fc fc fc + f off fc + f off fc + f off where ΔΝ^ ΔΝ 2 , ΔΝ 3 , ΔΝ 4 , AD are ΔΤ1, ΔΤ2, ΔΤ3, Δ Τ4, and (u2+ Dl)- (ul + D2), respectively The form of the count is indicated.
推得:
Figure imgf000008_0001
Push:
Figure imgf000008_0001
其中, =标准频率 26MHz, 为实际频率与标准频率的差值。 Where = the standard frequency is 26MHz, which is the difference between the actual frequency and the standard frequency.
4 ) 考 虑 到 网 络 时 延 和抖动 带 来 的 影 响 , 在 公 式
Figure imgf000008_0002
4) Considering the effects of network delay and jitter, in the formula
Figure imgf000008_0002
可以看作是网络环境造成的误差, 当该值小于 1Hz时, 可以忽略不计。 也 It can be regarded as the error caused by the network environment. When the value is less than 1Hz, it can be ignored. and also
(u2+ Dl)- (ul + D2) Λ (u2+ Dl)- (ul + D2) Λ
― -X fc < 1 ― -X f c < 1
就是说, ΔΛ^ +ΔΛ^3 的时候, 可以忽略网络因素带 来的影响。 则可以得到校正的频率差为 That is to say, when ΔΛ^ +ΔΛ^ 3 , the network factor band can be ignored. The impact of coming. Then the corrected frequency difference can be obtained as
AN, + AN,  AN, + AN,
AN2+ AN3  AN2+ AN3
偏校正电压, 晶振在校正电压的控制下进行频率校正。 对于数据采集而言, 两次采集的间隔, 即 T11-T10定时间隔越大, 引入误差越小。 此外, 为提 高测量精度, 可采用多次测量, 然后对这些测量值求均值。 The bias correction voltage, the crystal oscillator is frequency corrected under the control of the correction voltage. For data acquisition, the interval between two acquisitions, that is, the larger the timing interval of T11-T10, the smaller the introduction error. In addition, to improve measurement accuracy, multiple measurements can be taken and then averaged.
图 2示例性的描述了本发明的校正处理流程, 包括以下步骤: 步骤 S201、 系统启动。  FIG. 2 exemplarily describes the calibration processing flow of the present invention, including the following steps: Step S201, the system is started.
步骤 S202、无线基站 1的校正数据采集模块 12通过与时钟同步服务器 2的数据交互, 采集获取到用于校正的数据并保存。 此后, 流程正式进入校 正处理。  Step S202: The calibration data collection module 12 of the radio base station 1 acquires and acquires data for correction and saves it by interacting with the data of the clock synchronization server 2. Thereafter, the process officially entered the correction process.
步骤 S203、 校正处理首先需要对采集到的数据进行过滤算法分析, 以 便将坏值过滤。 其中, 针对过滤算法分析而言, 可以通过无线基站 1 中的 坏值过滤模块进行, 该坏值过滤模块未在说明书附图中标示出。 步骤 S204、 根据前述频率差计算过程,
Figure imgf000009_0001
, 判断其 是否满足网络质量门限要求。 在判断该数据满足网络质量门限要求, 即 时, 流程将向步骤 S205进行, 否则, 流程则跳转至步
Figure imgf000009_0002
Step S203: The calibration process first needs to perform filtering algorithm analysis on the collected data to filter the bad values. For the analysis of the filtering algorithm, it can be performed by the bad value filtering module in the wireless base station 1, and the bad value filtering module is not indicated in the drawing. Step S204, according to the foregoing frequency difference calculation process,
Figure imgf000009_0001
, to determine whether it meets the network quality threshold requirements. After judging that the data meets the network quality threshold requirement, the process will proceed to step S205, otherwise, the process jumps to step
Figure imgf000009_0002
骤 S209。 Step S209.
步骤 S205、 满足网络质量门限要求的数据将被保存到合理数据区。 通 过网络质量门限要求的筛选, 可以过滤掉精度受网络抖动、 延时等因素影 响较大的数据, 而保存下比较合理的数据。  Step S205: The data that meets the network quality threshold requirement is saved to a reasonable data area. Through the screening of network quality threshold requirements, it is possible to filter out data whose accuracy is greatly affected by factors such as network jitter and delay, and to save more reasonable data.
步骤 S206、 当合理数据区中保存的合理数据的数量尚未达到预定的数 值时, 流程将会回到步骤 S202, 继续上述的数据采集、 过滤、 网络质量门 限要求判断等过程, 一旦合理数据区中的合理数据量达到预定的数值, 通 常设定为 10时, 流程将向步骤 S207进行。 Step S206, when the amount of reasonable data saved in the reasonable data area has not reached the predetermined number When the value is up, the process will return to step S202 to continue the above process of data collection, filtering, network quality threshold requirement judgment, etc., once the reasonable data amount in the reasonable data area reaches a predetermined value, usually set to 10, the process will The process proceeds to step S207.
步骤 S207、 将以预定数据量的合理数据作为校正参考, 采用频偏计算 算法, 计算出校正的频率差, 并将该校正频率差通过 D/A转换算法, 转换 为压控电压值对无线基站 1的 26M压控晶振进行校正控制, 实现无线基站 1的频偏校正。  Step S207: using a reasonable data of a predetermined data amount as a correction reference, using a frequency offset calculation algorithm, calculating a corrected frequency difference, and converting the corrected frequency difference into a voltage control voltage value to the wireless base station by using a D/A conversion algorithm The 26M voltage controlled crystal oscillator of 1 performs correction control to realize frequency offset correction of the radio base station 1.
步骤 S208、 当频偏校正完成, 则清空所有的数据区。  Step S208: When the frequency offset correction is completed, all data areas are cleared.
步骤 S209、 不满足网络质量门限要求的数据将不会被保存, 并在本次 同步结束后被清除。  In step S209, the data that does not meet the network quality threshold requirement will not be saved and will be cleared after the end of the synchronization.
图 3示例性的描述了本发明的无线基站 1的硬件结构。应当了解, 图 3 仅描述了与本发明相关的部分, 无线基站所应当具有的其他结构, 并不在 图 3的描述范围内。 同时, 图 3也仅仅作为本发明的一个示例, 而不限制 必需采用图 3所示的硬件结构来实现本发明。 图 3中, 无线基站 1 包括的 主要组件及其功能有:  Fig. 3 exemplarily describes the hardware configuration of the radio base station 1 of the present invention. It should be understood that Figure 3 only depicts portions of the invention that are relevant to the present invention, and that other configurations that the wireless base station should have are not within the scope of the description of Figure 3. Meanwhile, FIG. 3 is also merely an example of the present invention, and does not limit the necessity of adopting the hardware structure shown in FIG. 3 to implement the present invention. In Figure 3, the main components included in the wireless base station 1 and their functions are:
微处理器芯片(CPU ):用于 IP协议栈的实现和系统各模块的功能控制。 可编程逻辑阵列 (FPGA ): 用于对压控振荡器的输出信号计数; 26M压控振荡器: 电压可控的晶振, 受温漂和时漂影响较小; 可受 CPU控制的 A/D高精度转换芯片, 用于输出压控值。  Microprocessor chip (CPU): used for the implementation of the IP protocol stack and the functional control of each module of the system. Programmable Logic Array (FPGA): Used to count the output signal of the voltage controlled oscillator; 26M voltage controlled oscillator: Voltage controlled crystal oscillator, less affected by temperature drift and time drift; A/D subject to CPU control High-precision conversion chip for outputting voltage control values.
在系统启动完成硬件电路自检后, CPU激活 FPGA运行程序, 完成各 硬件模块参数初始化。 FPGA对 26M晶振输出振荡信号计数, 转换为 64位 格式, 单位假设为 1/26000000S, 定时向提供 IP时钟同步源的时钟同步服 务器发送时间同步消息, 协议可采用网络时间协议(NTP, Network Time Protocol )或 IEEE1588协议( PTP ), 待收集齐一定数量的数据后, 可以根 据统计学方法, 例如去除偏移值最大最小数据, 求取最优的多组数据, 而 后对这些多组数据求平均, 计算出一定时间内 FPGA计数的偏差, 转换为 电压压控值, 校准 26M晶振振荡信号。 其中, IEEE即为美国电气和电子工 程师协会。 After the system starts to complete the hardware circuit self-test, the CPU activates the FPGA running program to complete the initialization of each hardware module parameter. The FPGA counts the 26M crystal oscillator output oscillation signal and converts it into a 64-bit format. The unit assumes that it is 1/26000000S. It periodically sends a time synchronization message to the clock synchronization server that provides the IP clock synchronization source. The protocol can use the network time protocol (NTP, Network Time Protocol). Or IEEE1588 protocol (PTP), after collecting a certain amount of data, you can obtain optimal multi-group data according to statistical methods, such as removing the maximum and minimum data of the offset value. After averaging these multiple sets of data, calculate the deviation of the FPGA count for a certain period of time, convert it to voltage voltage control value, and calibrate the 26M crystal oscillator signal. Among them, IEEE is the American Institute of Electrical and Electronics Engineers.
本发明的技术效果如下所示:  The technical effects of the present invention are as follows:
针对性强: 解决了当前 IP组网环境下, 时钟和频率同步的问题。 组网灵活: 本发明可以完全集成于基站软件中; 且同一设备既可以作 为客户端进行频偏校正, 同时可以作为校准的同步源提供给其他客户端使 用。  Targeted: Resolved the problem of clock and frequency synchronization in the current IP networking environment. Flexible networking: The present invention can be fully integrated into the base station software; and the same device can be used as a client for frequency offset correction, and can be used as a calibration synchronization source for other clients.
实现成本低: 本发明可以全部用软件实现, 不需要其它外接设备。 精度高: 通过以稳定的时钟同步源作为时钟同步服务器, 过滤掉受网 络抖动影响较大的坏值,采用薛选后的数据计算压控电压值, 可以获得 internet网络环境下 O.lppm精度, 局域网下 O.Olppm精度的时钟。  Low implementation cost: The present invention can be implemented entirely in software without the need for other external devices. High precision: By using a stable clock synchronization source as the clock synchronization server, filtering out the bad values that are greatly affected by network jitter, and using the data after the Xuexuan calculation to calculate the voltage control voltage value, the accuracy of O.lppm in the internet network environment can be obtained. O.Olppm precision clock under LAN.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说 明, 但这只是为便于理解而举的实例, 不应认为本发明的具体实施只局限 于这些说明。 对于本发明所属技术领域的普通技术人员来说, 在不脱离本 发明构思的前提下, 可以做出各种可能的等同改变或替换, 这些改变或替 换都应属于本发明的保护范围。  The above is a further detailed description of the present invention in connection with the specific preferred embodiments, but this is only an example for the sake of understanding, and the specific implementation of the present invention should not be construed as being limited to the description. It is to be understood by those skilled in the art that various changes and substitutions may be made without departing from the spirit and scope of the invention.

Claims

权利要求书 Claim
1、一种基于 IP网络的无线基站时钟校正方法, 其特征在于, 该方法包 括:  A method for correcting a wireless base station clock based on an IP network, the method comprising:
无线基站获取至少两组表征时钟同步的相关校正数据; 所述无线基站 利用所述相关校正数据计算校正频率差, 并根据所述校正频率差对本地时 钟进行校正。  The wireless base station acquires at least two sets of correlation correction data indicative of clock synchronization; the wireless base station calculates a corrected frequency difference using the correlation correction data, and corrects the local clock based on the corrected frequency difference.
2、 根据权利要求 1所述的方法, 其特征在于, 每组所述相关校正数据 包括第一时间戳、 第二时间戳、 第三时间戳、 和第四时间戳;  2. The method according to claim 1, wherein each set of the correlation correction data comprises a first timestamp, a second timestamp, a third timestamp, and a fourth timestamp;
其中, 所述第一时间戳为无线基站向时钟同步服务器发送时钟同步请 求的时间; 所述第二时间戳为时钟同步服务器接收到所述时钟同步请求的 时间; 所述第三时间戳为时钟同步服务器向无线基站发送时钟同步响应的 时间; 所述第四时间戳为无线基站接收到所述时钟同步响应的时间; 所述校正频率差通过 /£ 计算; 其中, /。#为校正频
Figure imgf000012_0001
The first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server; the second timestamp is a time when the clock synchronization server receives the clock synchronization request; the third timestamp is a clock And a time when the synchronization server sends a clock synchronization response to the wireless base station; the fourth timestamp is a time when the wireless base station receives the clock synchronization response; and the corrected frequency difference is calculated by / £ ; wherein, /. #为校正频
Figure imgf000012_0001
差; 为标准频率; ΔΛ^为每两组所述相关校正数据分别对应的第一时间戳 之间的差值; AN2为每两组所述相关校正数据分别对应的第二时间戳之间的 差值; AN3为每两组所述相关校正数据分别对应的第三时间戳之间的差值; AN4为每两组所述相关校正数据分别对应的第四时间戳之间的差值。 AN 2 between each of said second time stamp is associated correction data sets corresponding to each; difference; standard frequency; ΔΛ ^ for each of the two sets of correction data related to a difference between a first time stamp corresponding to each difference; aN 3 as the difference between the two sets of each of the third timestamp associated correction data respectively corresponding to; aN 4 between the fourth time stamp for each of said two sets of correction data respectively corresponding to the relevant difference value.
3、 根据权利要求 2所述的方法, 其特征在于, 当无线基站通过多个校 正频率差进行校正时, 该方法还包括: 对所述校正频率差中的坏值进行过 滤。  3. The method according to claim 2, wherein when the wireless base station performs correction by using a plurality of corrected frequency differences, the method further comprises: filtering the bad values in the corrected frequency difference.
4、 根据权利要求 2所述的方法, 其特征在于, 当无线基站通过多个校 正频率差进行校正时, 该方法还包括: 无线基站通过多个校正频率差的均 值对本地时钟进行校正。  The method according to claim 2, wherein when the wireless base station performs correction by using a plurality of corrected frequency differences, the method further comprises: the wireless base station correcting the local clock by using the average of the plurality of corrected frequency differences.
5、 根据权利要求 2至 4任一所述的方法, 其特征在于, 所述时钟同步 服务器为网络时间协议(NTP ) 同步源、 美国电气和电子工程师协会 1588 协议(PTP ) 同步源、 或自定义的同步源。 The method according to any one of claims 2 to 4, characterized in that said clock synchronization The server is a Network Time Protocol (NTP) synchronization source, the Institute of Electrical and Electronics Engineers 1588 Protocol (PTP) synchronization source, or a custom synchronization source.
6、一种基于 IP网络的无线基站时钟校正系统, 其特征在于, 该系统包 括: 校正数据采集模块和时钟校正模块; 其中,  A wireless base station clock correction system based on an IP network, the system comprising: a correction data acquisition module and a clock correction module; wherein
校正数据采集模块, 用于获取至少两组表征时钟同步的相关校正数据; 时钟校正模块, 用于利用所述相关校正数据计算校正频率差, 并根据 所述校正频率差对本地时钟进行校正。  And a calibration data acquisition module, configured to acquire at least two sets of related correction data for characterizing clock synchronization; a clock correction module, configured to calculate a corrected frequency difference by using the correlation correction data, and correct the local clock according to the corrected frequency difference.
7、根据权利要求 6所述的系统, 其特征在于, 所述校正数据采集模块, 进一步用于获取至少两组所述相关校正数据时, 每一组所述相关校正数据 包括第一时间戳、 第二时间戳、 第三时间戳、 和第四时间戳;  The system according to claim 6, wherein the correction data acquisition module is further configured to: when acquiring at least two sets of the correlation correction data, each set of the correlation correction data includes a first time stamp, a second timestamp, a third timestamp, and a fourth timestamp;
其中, 所述第一时间戳为无线基站向时钟同步服务器发送时钟同步请 求的时间; 所述第二时间戳为时钟同步服务器接收到所述时钟同步请求的 时间; 所述第三时间戳为时钟同步服务器向无线基站发送时钟同步响应的 时间; 所述第四时间戳为无线基站接收到所述时钟同步响应的时间;  The first timestamp is a time when the wireless base station sends a clock synchronization request to the clock synchronization server; the second timestamp is a time when the clock synchronization server receives the clock synchronization request; the third timestamp is a clock a time when the synchronization server sends a clock synchronization response to the wireless base station; the fourth timestamp is a time when the wireless base station receives the clock synchronization response;
所述时钟校正模块, 进一步用于根据所述校正频率差对本地时钟进行 校正时, 通 X /:计算所述校正频率差; 其中, /。ff为校正
Figure imgf000013_0001
The clock correction module is further configured to: when the local clock is corrected according to the corrected frequency difference, calculate the corrected frequency difference by using X /:; Ff is corrected
Figure imgf000013_0001
频频率率差差;; //::为为标标准准频频率率;; ΔΔΛΛ^^为为每每两两组组所所述述相相关关校校正正数数据据分分别别对对应应的的第第一一时时 间间戳戳之之间间的的差差值值;; AANN22为为每每两两组组所所述述相相关关校校正正数数据据分分别别对对应应的的第第二二时时间间戳戳之之 间间的的差差值值;; AANN33为为每每两两组组所所述述相相关关校校正正数数据据分分别别对对应应的的第第三三时时间间戳戳之之间间的的差差 值值;; AANN44为为每每两两组组所所述述相相关关校校正正数数据据分分别别对对应应的的第第四四时时间间戳戳之之间间的的差差值值。。 Frequency frequency rate difference;; //:: is the standard frequency of the standard frequency;; ΔΔΛΛ^^ is the correction of the positive data of the relevant correlation corrections for each of the two groups of two groups The value of the difference between the first and first time stamps; AANN 22 is the correct correlation data for each of the two groups of two groups. The value of the difference between the second and second time stamps; AANN 33 is the correction of the positive data for each of the two groups of the two groups. Corresponding to the value of the difference between the third and third time stamps; AANN 44 is the correction of the positive data for each of the two groups of two The value of the difference between the time stamps of the fourth and fourth time corresponding to the corresponding ones. .
88、、 根根据据权权利利要要求求 77所所述述的的系系统统,, 其其特特征征在在于于,, 该该系系统统还还包包括括:: 坏坏值值过过 滤滤模模块块,, 用用于于当当无无线线基基站站通通过过多多个个校校正正频频率率差差进进行行校校正正时时,, 对对所所述述校校正正频频 率率差差中中的的坏坏值值进进行行过过滤滤。。  88. The system according to the claim of claim 77, the special feature of which is that the system system further includes:: bad value Passing the filter module block for correcting the correction when the step of correcting the positive frequency frequency difference is performed by the plurality of wireless base station stations The bad value in the difference of the positive frequency frequency rate is filtered through the filter. .
99、、 根根据据权权利利要要求求 77所所述述的的系系统统,, 其其特特征征在在于于,, 所所述述时时钟钟校校正正模模块块,, 进进 一步用于当无线基站通过多个校正频率差进行校正时, 通过多个校正频率 差的均值对本地时钟进行校正。 99. The system according to the claim of claim 77, wherein the characteristic system is characterized in that: the clock clock correction correcting module module, Enter One step is for correcting the local clock by the mean of the plurality of corrected frequency differences when the wireless base station corrects by the plurality of corrected frequency differences.
10、 根据权利要求 7至 9任一所述的系统, 其特征在于, 所述时钟同 步服务器为 NTP同步源、 PTP同步源、 或自定义的同步源。  The system according to any one of claims 7 to 9, wherein the clock synchronization server is an NTP synchronization source, a PTP synchronization source, or a customized synchronization source.
PCT/CN2010/071024 2009-04-09 2010-03-12 Method and system for clock correction of wireless base station based on internet protocol (ip) network WO2010115357A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101065750A CN101860952B (en) 2009-04-09 2009-04-09 Clock correcting method and system based on IP network for wireless base station
CN200910106575.0 2009-04-09

Publications (1)

Publication Number Publication Date
WO2010115357A1 true WO2010115357A1 (en) 2010-10-14

Family

ID=42935643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071024 WO2010115357A1 (en) 2009-04-09 2010-03-12 Method and system for clock correction of wireless base station based on internet protocol (ip) network

Country Status (2)

Country Link
CN (1) CN101860952B (en)
WO (1) WO2010115357A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111579918A (en) * 2020-04-13 2020-08-25 上海紫通信息科技有限公司 Sampling synchronous correction method for transient recording type fault indicator
EP3979527A1 (en) * 2020-09-30 2022-04-06 Rockwell Automation Technologies, Inc. System and method of network synchronized time in safety applications

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011143950A1 (en) * 2011-01-26 2011-11-24 华为技术有限公司 Method and apparatus for implementing time synchronization
CN105515710B (en) * 2011-01-26 2019-05-24 华为技术有限公司 A kind of method and apparatus for realizing time synchronization
KR20130040641A (en) 2011-10-14 2013-04-24 삼성테크윈 주식회사 Surveillance system using lada
CN102684808A (en) * 2012-06-06 2012-09-19 哈尔滨工业大学 Self-adaptive clock synchronous system
CN103475461B (en) * 2013-09-30 2016-06-08 武汉邮电科学研究院 A kind of 1588 clock synchronizing functions realize method
TWI548294B (en) 2014-03-10 2016-09-01 鴻海精密工業股份有限公司 Femtocell and method of adusting frequency
CN103945237A (en) * 2014-04-23 2014-07-23 海信集团有限公司 Clock synchronization method and system, digital television equipment and EPG server
WO2016011601A1 (en) * 2014-07-22 2016-01-28 华为技术有限公司 Access point, terminal and wireless fidelity (wifi) indoor locating method
CN104935584B (en) * 2015-06-01 2018-06-15 广州广哈通信股份有限公司 A kind of time service method and apparatus and system based on circuit transmission mode
CN105099649B (en) * 2015-08-14 2018-10-16 宋亚玲 A kind of method and system of network time synchronization insertion
CN107171763B (en) * 2017-07-05 2018-10-23 北京蓝海讯通科技股份有限公司 A kind of time processing method, device and mobile terminal based on time migration
CN109392074B (en) * 2017-08-04 2022-02-18 华为技术有限公司 Clock calibration method and device
CN111631737B (en) * 2020-05-14 2021-03-05 赛诺威盛科技(北京)有限公司 Method and device for generating synchronous pulse of CT system
CN111885696B (en) * 2020-07-07 2022-04-19 武汉虹信科技发展有限责任公司 5G NR clock frequency synchronization method and device
CN112040539B (en) * 2020-09-03 2021-09-14 广州视源电子科技股份有限公司 Clock synchronization method, device and storage medium
CN114221732A (en) * 2021-12-23 2022-03-22 北京四方继保工程技术有限公司 High-precision ping-pong synchronization method and system with synchronization quality

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003087182A (en) * 2001-09-12 2003-03-20 Hitachi Ltd Cdma system base station equipment and its time synchronizing method
CN101179316A (en) * 2007-11-30 2008-05-14 华为技术有限公司 Clock regulating method, device and access point
WO2008143907A1 (en) * 2007-05-15 2008-11-27 Zwire, Inc. Clock synchronization for a wireless communications system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878054B (en) * 2006-02-07 2010-05-12 华为技术有限公司 Clock reference device and method for IP network transmission base station
CN101222288B (en) * 2008-02-01 2011-07-20 华为技术有限公司 IP network transmission method, system and equipment automatically adapting network jitter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003087182A (en) * 2001-09-12 2003-03-20 Hitachi Ltd Cdma system base station equipment and its time synchronizing method
WO2008143907A1 (en) * 2007-05-15 2008-11-27 Zwire, Inc. Clock synchronization for a wireless communications system
CN101179316A (en) * 2007-11-30 2008-05-14 华为技术有限公司 Clock regulating method, device and access point

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111579918A (en) * 2020-04-13 2020-08-25 上海紫通信息科技有限公司 Sampling synchronous correction method for transient recording type fault indicator
CN111579918B (en) * 2020-04-13 2022-03-04 上海紫通信息科技有限公司 Sampling synchronous correction method for transient recording type fault indicator
EP3979527A1 (en) * 2020-09-30 2022-04-06 Rockwell Automation Technologies, Inc. System and method of network synchronized time in safety applications
US11599090B2 (en) 2020-09-30 2023-03-07 Rockwell Automation Technologies, Inc. System and method of network synchronized time in safety applications

Also Published As

Publication number Publication date
CN101860952B (en) 2012-06-06
CN101860952A (en) 2010-10-13

Similar Documents

Publication Publication Date Title
WO2010115357A1 (en) Method and system for clock correction of wireless base station based on internet protocol (ip) network
EP2715956B1 (en) Precision timing in a data over cable service interface specification (docsis) system
JP6546357B2 (en) Sensing system and time synchronization method
US20080075061A1 (en) Synchronising base stations
EP2382829B1 (en) Method of synchronisation within a base station system
JP5804086B2 (en) Node device and time synchronization method
WO2012118178A1 (en) Synchronization system, synchronization method, first synchronization device, second synchronization device, and computer program
CN108880727B (en) A kind of precision clock synchronization realizing method based on PTPd2 agreement
CN108023723B (en) Method for frequency synchronization and slave clock
WO2013020499A1 (en) Method and device for implementing automatic compensation for asymmetric delay of 1588 link
JP7014726B2 (en) Wireless node time synchronization network and wireless node
WO2011160595A1 (en) Method, slave clock node and system for selecting master clock node based on precision time protocol (ptp) and link quality
WO2012088931A1 (en) Method and device for monitoring time synchronization
KR20090071923A (en) Method for synchronization using single timesync frame in bridged local area network and appratus thereof
WO2015089848A1 (en) Precision time protocol synchronization method and node
WO2012103702A1 (en) Method and device for detecting 1588 equipment performance
JP6254028B2 (en) Slave node and time synchronization method
Thi et al. IEEE 802.1 TSN time synchronization over Wi-Fi and 5G mobile networks
CN113965288B (en) Method and device for improving precision time protocol PTP time synchronization precision
CN105450320B (en) A kind of intelligent substation whole process us class precisions wireless ethernet network sychronisation and method
CN114845377A (en) High-precision wireless clock synchronization method and system based on UWB
TWI314827B (en) Time synchronization method for wireless sensor networks
JP6385849B2 (en) Time synchronization method and time synchronization apparatus
KR101605316B1 (en) frequency error estimating apparatus using Rx delay in PTP
JP2019054479A (en) Base station device, radio communication system, and frequency correction method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10761186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10761186

Country of ref document: EP

Kind code of ref document: A1