CN101005349B - A clock synchronization method and system - Google Patents
A clock synchronization method and system Download PDFInfo
- Publication number
- CN101005349B CN101005349B CN200710000099A CN200710000099A CN101005349B CN 101005349 B CN101005349 B CN 101005349B CN 200710000099 A CN200710000099 A CN 200710000099A CN 200710000099 A CN200710000099 A CN 200710000099A CN 101005349 B CN101005349 B CN 101005349B
- Authority
- CN
- China
- Prior art keywords
- clock
- phy chip
- ethernet phy
- receiving equipment
- equipment side
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明属于通信技术领域,公开了一种时钟同步的方法和系统,利用所述同步系统,采用如下方法:在多业务传输平台MSTP设备侧将同步传送模块STM-N线路时钟通过锁相环生成MSTP设备侧以太网物理层接口PHY芯片的工作时钟;MSTP设备侧以太网PHY芯片通过以太网物理层接口将所述MSTP设备侧以太网PHY芯片的工作时钟传递到接收设备侧第一以太网PHY芯片;接收设备侧第一以太网PHY芯片提取所述MSTP设备侧以太网PHY芯片的工作时钟;对所述接收设备侧第一以太网PHY芯片所提取的工作时钟进行跟踪和处理,生成接收设备的系统时钟作为基准时钟。从而实现了在IP网络传输模式下低成本的且具有较高精度的时钟同步。
The invention belongs to the technical field of communication, and discloses a clock synchronization method and system. Using the synchronization system, the following method is adopted: on the multi-service transmission platform MSTP equipment side, the synchronous transmission module STM-N line clock is generated through a phase-locked loop The operating clock of the MSTP device side Ethernet physical layer interface PHY chip; the MSTP device side Ethernet PHY chip transmits the operating clock of the MSTP device side Ethernet PHY chip to the receiving device side first Ethernet PHY through the Ethernet physical layer interface chip; the first Ethernet PHY chip on the receiving device side extracts the working clock of the Ethernet PHY chip on the MSTP device side; tracks and processes the working clock extracted by the first Ethernet PHY chip on the receiving device side, and generates a receiving device The system clock is used as the reference clock. Therefore, low-cost and high-precision clock synchronization in the IP network transmission mode is realized.
Description
技术领域technical field
本发明属于通信技术领域,尤其涉及一种时钟同步方法和系统。The invention belongs to the technical field of communication, and in particular relates to a clock synchronization method and system.
背景技术Background technique
众所周知,良好的网络同步性能对电信业务影响重大,为保证通信业务的性能而建设的同步网已与信令网及电信管理网一起构成电信业务的三大支撑网。网络同步不良往往会带来一系列的问题,尤其在无线网络中,同步不良往往会导致语音质量差、掉话率高、切换成功率低、无法接入等诸多问题。As we all know, good network synchronization performance has a great impact on telecommunication services. The synchronization network built to ensure the performance of communication services has constituted the three major support networks for telecommunication services together with the signaling network and the telecommunication management network. Poor network synchronization often brings a series of problems, especially in wireless networks, poor synchronization often leads to poor voice quality, high call drop rate, low handover success rate, inability to access and many other problems.
从实际组网来看,一般核心网及基站控制器设备由于数量较少,可以采用成本相对较高的GPS(Global Position System,全球定位系统)或BITS(Building Integrated Timing Supply System,综合楼定时供给系统)作为同步参考源,因而比较容易获得良好的时钟同步参考源,而无线基站设备处于无线网络的末端,具体的接入方式千差万别,且基站的数量相对较多,考虑到实现同步的成本限制,不宜采用GPS或BITS作为时钟参考源。如果采用普通的OCXO(Oven Control Crystal Oscillator,恒温晶体振荡器)器件,虽然相对于GPS或BITS,成本较低,但是无线基站设备的空口载波对于时钟的稳定度要求较高,根据3GPP协议规定,需要达到0.05ppm的精度。为满足无线基站所需要的高精度时钟要求,需要跟踪GPS或BITS或者定期校准,总体成本仍然较高。所以相对来说,基站的时钟同步是整个无线网络中最不容易解决的部分。From the perspective of actual networking, due to the small number of general core network and base station controller equipment, relatively high-cost GPS (Global Position System, Global Positioning System) or BITS (Building Integrated Timing Supply System, comprehensive building timing supply system) can be used System) as a synchronization reference source, so it is relatively easy to obtain a good clock synchronization reference source, and the wireless base station equipment is at the end of the wireless network, the specific access methods vary widely, and the number of base stations is relatively large, considering the cost limitation of realizing synchronization , it is not suitable to use GPS or BITS as the clock reference source. If a common OCXO (Oven Control Crystal Oscillator, constant temperature crystal oscillator) device is used, although the cost is lower compared to GPS or BITS, the air interface carrier of the wireless base station equipment has higher requirements on the stability of the clock. According to the 3GPP agreement, An accuracy of 0.05ppm is required. In order to meet the high-precision clock requirements required by wireless base stations, it is necessary to track GPS or BITS or perform regular calibration, and the overall cost is still relatively high. So relatively speaking, the clock synchronization of the base station is the most difficult part to solve in the whole wireless network.
随着3G(3rd Generation,第三代移动通信技术)标准的不断演进,其对应的传输网络也在不断地演进,最初TDM(Time Division Multiplex,时分复用)、ATM(Asynchronous Transfer Mode,异步传输模式)通过物理承载从业务码流中为基站提取同步时钟信号,而如今传输网络已经逐渐向IP(InternetProtocol,网际协议)网络发展。由于IP网络最初用来解决计算机之间的相互通信,保证数据的可靠性传输,并不关心传输时网络的时延和抖动,各个网元之间没有公共的时钟同步关系,因此,原来在TDM和ATM传输模式下的低成本解决方案,在利用以太网承载的IP传输模式下变得越来越困难。With the continuous evolution of 3G (3rd Generation, third-generation mobile communication technology) standards, its corresponding transmission network is also constantly evolving. Initially, TDM (Time Division Multiplex, time division multiplexing), ATM (Asynchronous Transfer Mode, asynchronous transmission mode) extracts the synchronous clock signal for the base station from the service code stream through the physical bearer, and now the transmission network has gradually developed into an IP (Internet Protocol, Internet Protocol) network. Since the IP network was originally used to solve the mutual communication between computers and ensure the reliable transmission of data, it does not care about the delay and jitter of the network during transmission, and there is no common clock synchronization relationship between network elements. Therefore, the original TDM The low-cost solution under the transmission mode of ATM and ATM becomes more and more difficult under the IP transmission mode that utilizes Ethernet to bear the weight of.
MSTP(Multi-Service Transport platform,多业务传输平台)技术源于SDH(Synchronous Digital Hierarchy,同步数字体系),经过几年的不断发展,已经囊括了SDH、PDH(Pseudo-SDH,准同步数字体系)、POS(Packet OverSDH/SONET,基于同步数字体系/同步光网络的包传输)、以太网、ATM、RPR(Resilient Packet Ring,弹性分组环)、SHDSL(Symmetrical High-bit-rate DigitalSubscriber Line,对称高比特率数字用户环路)、DDN(Digital Date Network,数字数据网)等技术,它既可以通过多业务汇聚方式实现业务的综合传送,又可以通过自身对多类型业务的适配性实现业务的接入和处理,适应了多种技术相融合的发展趋势,成为一套相对完善的技术体系。从目前的形式看,无线基站接入采用MSTP组网是个较好的选择。MSTP (Multi-Service Transport platform, multi-service transmission platform) technology originated from SDH (Synchronous Digital Hierarchy, synchronous digital system), after several years of continuous development, it has included SDH, PDH (Pseudo-SDH, quasi-synchronous digital system) , POS (Packet Over SDH/SONET, packet transmission based on synchronous digital system/synchronous optical network), Ethernet, ATM, RPR (Resilient Packet Ring, resilient packet ring), SHDSL (Symmetrical High-bit-rate Digital Subscriber Line, symmetrical high Bit rate digital subscriber loop), DDN (Digital Date Network, digital data network) and other technologies, it can not only realize the comprehensive transmission of services through multi-service convergence, but also realize the service integration through its own adaptability to multiple types of services Access and processing have adapted to the development trend of the integration of various technologies and become a relatively complete technical system. Judging from the current form, it is a better choice to adopt MSTP networking for wireless base station access.
在采用MSTP组网作为无线基站接入网的方式下,可以利用MSTP接入设备提供的2048kHz外同步端口为基站提供时钟参考。但现有基站设备没有与2048kHz外同步端口匹配的接口,且2048kHz外同步端口拉远距离有限,不适合基站通过光纤接入的环境。并且,在有限的拉远距离之内,还需要做防雷、室外防护等工作,导致工程的复杂度和成本相对较高。In the case of adopting MSTP networking as the wireless base station access network, the 2048kHz external synchronization port provided by the MSTP access device can be used to provide clock reference for the base station. However, the existing base station equipment does not have an interface matching the 2048kHz external synchronization port, and the distance of the 2048kHz external synchronization port is limited, which is not suitable for the environment where the base station is connected through optical fiber. Moreover, within the limited extended distance, work such as lightning protection and outdoor protection needs to be done, resulting in relatively high complexity and cost of the project.
综上,在当前IP网络处于主导地位的传输网络中,并没有很好的低成本的且具有较高精度的时钟同步的解决方案。To sum up, in the current transmission network where the IP network is dominant, there is no good low-cost and high-precision clock synchronization solution.
发明内容Contents of the invention
本发明要解决的技术问题是提供一种时钟同步的方法和系统,以实现在IP网络传输模式下低成本的且具有较高精度的时钟同步。The technical problem to be solved by the present invention is to provide a clock synchronization method and system to realize low-cost and high-precision clock synchronization in the IP network transmission mode.
为解决上述技术问题,本发明的目的是通过以下技术方案实现的:In order to solve the problems of the technologies described above, the purpose of the present invention is achieved through the following technical solutions:
首先,本发明提供了一种时钟同步方法,包括:First, the present invention provides a clock synchronization method, including:
在多业务传输平台MSTP设备侧将同步传送模块STM-N线路时钟通过锁相环生成MSTP设备侧以太网物理层接口PHY芯片的工作时钟;On the MSTP equipment side of the multi-service transmission platform, the synchronous transmission module STM-N line clock is generated through the phase-locked loop to generate the working clock of the Ethernet physical layer interface PHY chip on the MSTP equipment side;
MSTP设备侧以太网PHY芯片通过以太网物理层接口将所述MSTP设备侧以太网PHY芯片的工作时钟传递到接收设备侧第一以太网PHY芯片;The MSTP device side Ethernet PHY chip transmits the working clock of the MSTP device side Ethernet PHY chip to the receiving device side first Ethernet PHY chip through the Ethernet physical layer interface;
接收设备侧第一以太网PHY芯片提取所述MSTP设备侧以太网PHY芯片的工作时钟;The first Ethernet PHY chip on the receiving device side extracts the working clock of the Ethernet PHY chip on the MSTP device side;
对所述接收设备侧第一以太网PHY芯片所提取的工作时钟进行跟踪和处理,生成接收设备的系统时钟作为基准时钟。Track and process the working clock extracted by the first Ethernet PHY chip on the receiving device side, and generate the system clock of the receiving device as a reference clock.
可选的,对所述接收设备侧第一以太网PHY芯片提取的所述工作时钟进行跟踪和处理之前,进一步将所述接收设备侧第一以太网PHY芯片所提取的工作时钟通过锁相环生成接收设备基准时钟所要跟踪和处理的时钟。Optionally, before tracking and processing the working clock extracted by the first Ethernet PHY chip on the receiving device side, the working clock extracted by the first Ethernet PHY chip on the receiving device side is further passed through a phase-locked loop Generates the clock to be tracked and processed by the receiving device reference clock.
可选的,生成接收设备的系统时钟后进一步包括:Optionally, after generating the system clock of the receiving device, further include:
接收设备对接收设备的系统时钟通过锁相环生成接收设备侧第二以太网PHY芯片的工作时钟;The receiving device generates the working clock of the second Ethernet PHY chip on the receiving device side through a phase-locked loop for the system clock of the receiving device;
接收设备侧第二以太网PHY芯片通过以太网物理层接口将所述接收设备侧第二PHY芯片的工作时钟传递到下级级联设备侧以太网PHY芯片;The second Ethernet PHY chip on the receiving device side transmits the working clock of the second PHY chip on the receiving device side to the Ethernet PHY chip on the lower-level cascading device side through the Ethernet physical layer interface;
级联设备侧以太网PHY芯片提取工作时钟;The Ethernet PHY chip on the side of the cascaded device extracts the working clock;
对所述级联设备侧以太网PHY芯片所提取的工作时钟进行跟踪和处理,生成级联设备的系统时钟。The working clock extracted by the Ethernet PHY chip on the side of the cascaded device is tracked and processed to generate a system clock of the cascaded device.
优选的,通过网络层、介质访问控制子层MAC层、以太网物理层或通过MAC层、以太网物理层将STM-N线路时钟的同步状态信息SSM发送到接收设备侧,接收设备根据接收到的SSM判断基准时钟是否失效,如果是,则保持失效前的时钟频率为基准时钟。Preferably, the synchronization state information SSM of the STM-N line clock is sent to the receiving device side through the network layer, the medium access control sublayer MAC layer, the Ethernet physical layer or through the MAC layer and the Ethernet physical layer, and the receiving device receives the The SSM judges whether the reference clock is invalid, and if so, maintains the clock frequency before the failure as the reference clock.
优选的,所述对接收设备侧第一以太网PHY芯片所提取的工作时钟进行跟踪和处理是通过软件锁相环进行的。Preferably, the tracking and processing of the operating clock extracted by the first Ethernet PHY chip at the receiving device side is performed through a software phase-locked loop.
优选的,所述对MSTP设备侧STM-N线路时钟和/或接收设备系统时钟进行处理的锁相环为带压控晶体振荡器的锁相环。Preferably, the phase-locked loop for processing the STM-N line clock on the MSTP device side and/or the system clock of the receiving device is a phase-locked loop with a voltage-controlled crystal oscillator.
同时,本发明提供了一种时钟同步系统,包括:MSTP设备侧锁相环单元、MSTP设备侧以太网PHY芯片、接收设备侧第一以太网PHY芯片、接收设备系统时钟单元,其中:At the same time, the present invention provides a clock synchronization system, including: MSTP equipment side phase-locked loop unit, MSTP equipment side Ethernet PHY chip, receiving equipment side first Ethernet PHY chip, receiving equipment system clock unit, wherein:
MSTP设备侧锁相环单元,对STM-N线路时钟进行处理生成MSTP设备侧以太网PHY芯片的工作时钟;The phase-locked loop unit on the MSTP device side processes the STM-N line clock to generate the working clock of the Ethernet PHY chip on the MSTP device side;
MSTP设备侧以太网PHY芯片,通过以太网物理层接口将所述MSTP设备侧以太网PHY芯片的工作时钟传递到接收设备侧第一以太网PHY芯片;The MSTP device side Ethernet PHY chip transmits the working clock of the MSTP device side Ethernet PHY chip to the receiving device side first Ethernet PHY chip through the Ethernet physical layer interface;
接收设备侧第一以太网PHY芯片,对接收到的时钟进行提取;The first Ethernet PHY chip on the receiving device side extracts the received clock;
接收设备系统时钟单元,用于对所述接收设备侧第一以太网PHY芯片提取的时钟进行跟踪和处理,生成接收设备的系统时钟。The system clock unit of the receiving device is configured to track and process the clock extracted by the first Ethernet PHY chip on the receiving device side to generate a system clock of the receiving device.
可选的,还包括接收设备侧锁相环单元,用于对接收设备侧第一以太网PHY芯片所提取的时钟进行处理生成接收设备系统时钟单元所要跟踪和处理的时钟。Optionally, a phase-locked loop unit on the receiving device side is also included, configured to process the clock extracted by the first Ethernet PHY chip on the receiving device side to generate a clock to be tracked and processed by the system clock unit of the receiving device.
可选的,还包括:接收设备侧第二锁相环单元、接收设备侧第二以太网PHY芯片、级联设备侧以太网PHY芯片、级联设备系统时钟单元,其中:Optionally, it also includes: a second phase-locked loop unit on the receiving device side, a second Ethernet PHY chip on the receiving device side, an Ethernet PHY chip on the cascading device side, and a system clock unit on the cascading device, wherein:
接收设备侧第二锁相环单元,用于将所述接收设备系统时钟进行处理生成接收设备侧第二以太网PHY芯片的工作时钟;The second phase-locked loop unit on the receiving device side is configured to process the system clock of the receiving device to generate the working clock of the second Ethernet PHY chip on the receiving device side;
接收设备侧第二以太网PHY芯片,用于将所述接收设备第二以太网PHY芯片的工作时钟传递到级联设备侧以太网PHY芯片;The second Ethernet PHY chip on the receiving device side is used to transfer the working clock of the second Ethernet PHY chip on the receiving device to the Ethernet PHY chip on the cascaded device side;
级联设备侧以太网PHY芯片,用于提取接收到的所述工作时钟;The Ethernet PHY chip on the cascaded device side is used to extract the received working clock;
级联设备系统时钟单元,用于对所述级联设备侧以太网PHY芯片提取的时钟进行跟踪和处理,生成级联设备的系统时钟。The system clock unit of the cascaded device is configured to track and process the clock extracted by the Ethernet PHY chip on the side of the cascaded device, and generate a system clock of the cascaded device.
优选的,时钟同步系统还包括SSM传输单元,系统时钟单元还包括时钟保持单元,其中:Preferably, the clock synchronization system also includes an SSM transmission unit, and the system clock unit also includes a clock holding unit, wherein:
SSM传输单元包括MAC层、以太网物理层,用于将STM-N线路时钟的同步状态信息SSM传递到接收设备的时钟保持单元;The SSM transmission unit includes a MAC layer and an Ethernet physical layer, and is used to transfer the synchronization state information SSM of the STM-N line clock to the clock holding unit of the receiving device;
时钟保持单元,用于当接收到的SSM显示基准时钟失效时,将失效前储存的时钟作为基准时钟。The clock holding unit is configured to use the clock stored before the failure as the reference clock when the received SSM shows that the reference clock is invalid.
在上述时钟同步系统中,所述MSTP设备侧锁相环单元和/或接收设备侧第二锁相环单元包括:鉴相器、滤波器、振荡器,其中:In the above clock synchronization system, the phase-locked loop unit on the MSTP device side and/or the second phase-locked loop unit on the receiving device side include: a phase detector, a filter, and an oscillator, wherein:
鉴相器,用于判断输入的STM-N线路时钟与所述振荡器所输出的时钟频率的相位差,产生对应于相差的控制信号;a phase detector, configured to judge the phase difference between the input STM-N line clock and the clock frequency output by the oscillator, and generate a control signal corresponding to the phase difference;
滤波器,用于对鉴相器所输出的控制信号进行滤波,产生用于控制振荡器的控制信号;a filter, configured to filter the control signal output by the phase detector to generate a control signal for controlling the oscillator;
振荡器,在滤波器的输出的控制信号下调节自身的振荡频率。The oscillator adjusts its own oscillation frequency under the control signal output from the filter.
优选的,所述振荡器为压控晶体振荡器。Preferably, the oscillator is a voltage-controlled crystal oscillator.
以上技术方案可以看出,相对于在接收设备侧采用GPS或BITS等时钟参考源的方法,本发明采用简单且易于获得的锁相环单元以及传输网络所固有的以太网PHY芯片来实现时钟同步,实现成本较低;同时,相对于通过2048kHz作为外同步参考源的方法,本发明通过以太网物理层来传递STM-N线路时钟信号,本发明不需要专门的维护,维护成本较低,因此,总体来说,本发明成本相对较低。It can be seen from the above technical solutions that, compared with the method of using clock reference sources such as GPS or BITS on the receiving device side, the present invention uses a simple and easy-to-obtain phase-locked loop unit and an Ethernet PHY chip inherent in the transmission network to realize clock synchronization , the implementation cost is lower; at the same time, compared with the method of using 2048kHz as the external synchronization reference source, the present invention transmits the STM-N line clock signal through the Ethernet physical layer, the present invention does not require special maintenance, and the maintenance cost is low, so , generally speaking, the cost of the present invention is relatively low.
同时,本发明将具有良好同步性能的STM-N线路时钟作为接收设备侧的同步时钟参考源,不受指针调整的影响,且锁相环具有良好的时钟恢复性能,并且,直接通过以太网物理层将时钟传递到接收设备侧,时钟延迟小,因此,本发明能够满足无线基站等设备对时钟精度要求较高的需要。At the same time, the present invention uses the STM-N line clock with good synchronization performance as the synchronization clock reference source on the receiving device side, which is not affected by pointer adjustment, and the phase-locked loop has good clock recovery performance, and directly through the Ethernet physical The layer transmits the clock to the receiving device side, and the clock delay is small. Therefore, the present invention can meet the requirement of high clock precision for wireless base stations and other devices.
进一步,接收设备通过软件锁相环单元对接收设备侧以太网PHY芯片提取出的时钟进行跟踪和处理,使得生成的系统时钟更为稳定。Further, the receiving device tracks and processes the clock extracted by the Ethernet PHY chip on the receiving device side through the software phase-locked loop unit, so that the generated system clock is more stable.
另外,本发明不需要通过IP层或MAC层传递时钟,不占用额外的传输带宽。In addition, the present invention does not need to transmit the clock through the IP layer or the MAC layer, and does not occupy additional transmission bandwidth.
附图说明Description of drawings
图1为本发明实施例一的时钟同步系统的原理框图;FIG. 1 is a functional block diagram of a clock synchronization system according to Embodiment 1 of the present invention;
图2为本发明实施例二的时钟同步系统的原理框图;FIG. 2 is a functional block diagram of a clock synchronization system according to Embodiment 2 of the present invention;
图3为本发明实施例三的时钟同步系统的原理框图;FIG. 3 is a functional block diagram of a clock synchronization system according to Embodiment 3 of the present invention;
图4为本发明实施例四的时钟同步系统的原理框图。FIG. 4 is a functional block diagram of a clock synchronization system according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
为使本发明的优点和特征更加清楚明白,下面参照附图并举实施例对本发明作进一步描述。In order to make the advantages and features of the present invention clearer, the present invention will be further described below with reference to the accompanying drawings and examples.
MSTP技术是在SDH基础上发展起来的,可以融合多业务的接入。MSTP网络主要的传输承载方式仍然是基于SDH的,SDH网络一般都经过良好的同步规划。其中,SDH的信号由一个或多个不同阶的同步传送模块STM-N信号组成,其中N为正整数。对SDH光缆接入系统而言,目前,N=1,4或16,基本模块STM-1信号的比特率为155.52Mbit/s,STM-N信号的比特率是N×155.520Mbit/s。STM-N信号可由N个基本模块STM-1经字节间插而形成。无论N为何值,STM-N的帧重复周期均为125μs,每秒8000帧。STM-N线路时钟不受指针调整的影响,可以作为良好的同步参考源。MSTP technology is developed on the basis of SDH and can integrate multi-service access. The main transmission and bearer mode of MSTP network is still based on SDH, and SDH network generally undergoes good synchronization planning. Among them, the SDH signal is composed of one or more synchronous transmission module STM-N signals of different orders, where N is a positive integer. For the SDH optical cable access system, at present, N=1, 4 or 16, the bit rate of the basic module STM-1 signal is 155.52Mbit/s, and the bit rate of the STM-N signal is N×155.520Mbit/s. The STM-N signal can be formed by interleaving bytes of N basic modules STM-1. Regardless of the value of N, the frame repetition period of STM-N is 125μs, 8000 frames per second. The STM-N line clock is not affected by pointer adjustments and can be used as a good synchronization reference source.
在MSTP设备侧将STM-N线路时钟通过锁相环单元生成MSTP设备侧以太网物理层接口PHY芯片的工作时钟,并由该以太网PHY芯片通过以太网物理层将工作时钟传递到接收设备侧第一以太网PHY芯片,经接收设备侧第一以太网PHY芯片提取出时钟,对提取出的该时钟进行跟踪和处理,得到接收设备的系统时钟。接收设备的系统时钟即与MSTP设备侧的STM-N线路时钟保持同步。On the MSTP device side, the STM-N line clock is generated by the phase-locked loop unit to generate the working clock of the Ethernet physical layer interface PHY chip on the MSTP device side, and the Ethernet PHY chip transmits the working clock to the receiving device side through the Ethernet physical layer The first Ethernet PHY chip extracts the clock through the first Ethernet PHY chip on the receiving device side, and tracks and processes the extracted clock to obtain the system clock of the receiving device. The system clock of the receiving device is synchronized with the STM-N line clock on the MSTP device side.
目前,以太网在光纤和双绞线媒体支持下有4种传输速率,分别为:10Mbps的标准以太网、100Mbps的快速以太网FE、1000Mbps的千兆以太网GE和10GE以太网。以下各实施例以同步网较常用的FE和GE进行说明。Currently, Ethernet has four transmission rates supported by optical fiber and twisted pair media, namely: 10Mbps standard Ethernet, 100Mbps Fast Ethernet FE, 1000Mbps Gigabit Ethernet GE and 10GE Ethernet. The following embodiments are described using FE and GE which are commonly used in synchronization networks.
以实现基站设备的时钟同步为例进行详细说明。The implementation of clock synchronization of base station equipment is taken as an example to describe in detail.
实施例一,MSTP设备通过以太网物理层将STM-N线路时钟传递到基站侧,参照图1,以下进行详细说明。Embodiment 1. The MSTP device transmits the STM-N line clock to the base station side through the Ethernet physical layer. Referring to FIG. 1 , the details will be described below.
步骤11:MSTP设备通过锁相环单元生成MSTP设备侧以太网物理层接口PHY芯片的工作时钟。Step 11: The MSTP device generates the working clock of the PHY chip of the Ethernet physical layer interface on the side of the MSTP device through the phase-locked loop unit.
锁相环单元一般包括鉴相器、滤波器和振荡器,其中,鉴相器通过比较输入的STM-N线路时钟与振荡器的输出频率的相位差,产生一个控制信号;滤波器对输入鉴相器输出的信号进行滤波与平滑,消除抖动;振荡器根据滤波器输出的控制信号调节自身振荡频率,向输入信号的频率靠拢,直至消除误差而锁定。The phase-locked loop unit generally includes a phase detector, a filter and an oscillator, wherein the phase detector generates a control signal by comparing the phase difference between the input STM-N line clock and the output frequency of the oscillator; The signal output by the phaser is filtered and smoothed to eliminate jitter; the oscillator adjusts its own oscillation frequency according to the control signal output by the filter, and moves closer to the frequency of the input signal until the error is eliminated and locked.
物理层接口处理信号的物理/电气特性的协议部分,也称为PHY。The physical layer interface is the part of the protocol that deals with the physical/electrical characteristics of the signal, also known as the PHY.
由于PHY芯片的工作时钟频率可能与STM-N线路时钟频率不同,因此在锁相环电路中可以首先对振荡器频率分频或倍频,同时对输入的STM-N线路时钟分频或倍频,从而产生出以太网PHY芯片的工作时钟。Since the operating clock frequency of the PHY chip may be different from the STM-N line clock frequency, in the phase-locked loop circuit, the oscillator frequency can be divided or multiplied first, and the input STM-N line clock frequency can be divided or multiplied at the same time , so as to generate the working clock of the Ethernet PHY chip.
步骤12:MSTP设备侧以太网PHY芯片通过FE/GE接口发送数据流将工作时钟传递到基站侧第一以太网PHY芯片。Step 12: The Ethernet PHY chip on the MSTP device side sends a data stream through the FE/GE interface to transmit the working clock to the first Ethernet PHY chip on the base station side.
其中,MSTP设备侧产生的数据流同时包括数据和时钟信息,与数据一起,时钟被传递到基站侧第一以太网PHY芯片。Wherein, the data flow generated by the MSTP device side includes data and clock information at the same time, and the clock is transmitted to the first Ethernet PHY chip at the base station side together with the data.
步骤13:基站侧第一以太网PHY芯片从数据流中提取出时钟。Step 13: the first Ethernet PHY chip at the base station side extracts the clock from the data stream.
步骤14:基站系统时钟单元对基站侧以太网PHY芯片所提取的时钟进行跟踪和处理,从而生成基站系统时钟,基站系统时钟实现与STM-N线路时钟同步。Step 14: The base station system clock unit tracks and processes the clock extracted by the base station Ethernet PHY chip, thereby generating a base station system clock, which is synchronized with the STM-N line clock.
步骤15:业务处理单元在基站系统时钟控制下进行业务处理,如业务处理单元进行编解码,调制解调。Step 15: The service processing unit performs service processing under the control of the base station system clock, for example, the service processing unit performs codec, modulation and demodulation.
为了更好地满足以太网PHY芯片对于时钟抖动性能的要求,MSTP设备侧用于产生以太网PHY芯片所需要的工作时钟的锁相环中的振荡器可以采用VCXO(Voltage Control Crystal Oscillator,压控晶体振荡器)。In order to better meet the clock jitter performance requirements of the Ethernet PHY chip, the oscillator in the phase-locked loop used to generate the working clock required by the Ethernet PHY chip on the MSTP device side can use a VCXO (Voltage Control Crystal Oscillator, voltage-controlled crystal oscillator).
另外,可以在基站系统时钟单元中增加软件锁相环。软件锁相环可以更好地消除信号抖动,从而能够生成一个更为稳定的系统时钟。软件锁相环具有硬件锁相环所不可比拟的优点,例如可以利用CPU灵活的处理能力实现优化滤波或自适应滤波,可以强行改变积分值实现快速锁定。In addition, a software phase-locked loop can be added to the system clock unit of the base station. The software phase-locked loop can better eliminate signal jitter, so that a more stable system clock can be generated. The software phase-locked loop has incomparable advantages over the hardware phase-locked loop. For example, the flexible processing capability of the CPU can be used to realize optimal filtering or adaptive filtering, and the integral value can be forcibly changed to achieve fast locking.
实施例一实现了基站系统时钟与MSTP设备侧STM-N线路时钟的同步,为了保证时钟同步系统的良好性能,以实施例二来说明基站系统时钟单元产生的基准时钟失效时系统时钟仍能在一段时间内与基准时钟只有很小的频率偏差,参照图2。Embodiment 1 realizes the synchronization between the base station system clock and the STM-N line clock on the MSTP equipment side. In order to ensure the good performance of the clock synchronization system, Embodiment 2 is used to illustrate that the system clock can still be used when the reference clock generated by the system clock unit of the base station fails. There is only a small frequency deviation from the reference clock for a period of time, see Figure 2.
与实施例一相同之处包括:在MSTP设备侧仍通过锁相环单元生成MSTP设备侧以太网PHY芯片所需要的时钟频率,MSTP设备侧以太网PHY芯片通过FE/GE接口发送数据流将时钟传递到基站侧第一以太网PHY芯片,基站侧第一以太网PHY芯片从接收到的数据流中提取时钟,基站系统时钟单元对提取出的时钟进行跟踪和处理,产生基站的系统时钟,为基站中的业务处理单元提供基准时钟,例如,作为后级编解码、调制解调以及中射频的基准时钟。The same as Embodiment 1 includes: the clock frequency required by the MSTP device side Ethernet PHY chip is still generated by the phase-locked loop unit on the MSTP device side, and the MSTP device side Ethernet PHY chip sends the data stream through the FE/GE interface to transfer the clock frequency Passed to the first Ethernet PHY chip on the base station side, the first Ethernet PHY chip on the base station side extracts the clock from the received data stream, and the system clock unit of the base station tracks and processes the extracted clock to generate the system clock of the base station, which is The service processing unit in the base station provides a reference clock, for example, as a reference clock for post-stage codec, modem, and intermediate radio frequency.
不同之处在于,如果MSTP网络为两层组网方式,MSTP设备同时还要将接收到的SSM(Synchronization Status Message,同步状态信息)通过MAC(Media Access Control,介质访问控制子层)层、物理层发送到MSTP设备侧以太网PHY芯片,MSTP设备侧以太网PHY芯片将SSM传送到基站侧第一以太网PHY芯片,基站侧第一以太网PHY芯片将SSM消息通过物理层、MAC层发送到系统时钟单元,指示基站系统时钟所生成的基准时钟的性能。The difference is that if the MSTP network is a two-layer network, the MSTP device will also pass the received SSM (Synchronization Status Message, synchronization status information) through the MAC (Media Access Control, media access control sublayer) layer, physical The first Ethernet PHY chip on the base station side sends the SSM message to the The system clock unit indicates the performance of the reference clock generated by the system clock of the base station.
如果MSTP网络为三层组网方式,MSTP设备则需要将接收到的SSM依次通过IP层、MAC层、物理层发送到MSTP设备侧以太网PHY芯片,MSTP设备侧以太网PHY芯片将SSM传送到基站侧第一以太网PHY芯片,基站侧第一以太网PHY芯片将SSM消息依次通过物理层、MAC层、IP层发送到基站系统时钟单元,指示系统时钟所生成的基准时钟的性能。If the MSTP network is a three-layer network, the MSTP device needs to send the received SSM to the Ethernet PHY chip on the MSTP device side through the IP layer, MAC layer, and physical layer in sequence, and the Ethernet PHY chip on the MSTP device side sends the SSM to The first Ethernet PHY chip on the base station side, the first Ethernet PHY chip on the base station side sends the SSM message to the base station system clock unit through the physical layer, MAC layer, and IP layer in sequence, indicating the performance of the reference clock generated by the system clock.
系统时钟单元可以对所使用的时钟频率进行抽样,计算平均值并储存。当SSM显示基站系统时钟单元所生成的基准时钟不能满足基站系统时钟的质量要求时,基准时钟失效,基站系统时钟不再跟踪,而是以基站系统基准时钟失效前所存储的时钟频率为其基准时钟而工作,基站系统时钟单元工作于保持模式。The system clock unit can sample the clock frequency used, calculate the average value and store it. When the SSM shows that the reference clock generated by the base station system clock unit cannot meet the quality requirements of the base station system clock, the reference clock fails, and the base station system clock no longer tracks, but uses the clock frequency stored before the base station system reference clock fails as its reference The clock works, and the base station system clock unit works in hold mode.
SSM只能指示当前基准时钟的质量等级,不能人为设定。例如,根据ITU-T标准,采用4种不同的质量等级:基准主时钟,以铯钟为主,时钟等级为G.811;转接局从时钟,以铷钟为主,一般由BITS提供,时钟等级为G.812T;端局从时钟,用于本地数字同步网,时钟等级标准为G.812L;设备定时源,由设备内部提供,时钟等级标准为G.813。SSM can only indicate the quality level of the current reference clock, and cannot be set artificially. For example, according to the ITU-T standard, four different quality levels are adopted: the reference master clock is mainly cesium clock, and the clock level is G.811; the slave clock of the transfer office is mainly rubidium clock, which is generally provided by BITS. The clock level is G.812T; the slave clock of the end office is used for the local digital synchronization network, and the clock level standard is G.812L; the equipment timing source is provided by the device, and the clock level standard is G.813.
引用SSM,可用STM-N信号中的复用段开销的同步状态字节S1来描述,例如,用S1的第5至8比特表示同步状态信息指示。0010表示G.811,0100表示G.812T,0111表示G.812L,1111表示不同于时钟同步。Referring to SSM, it can be described by the synchronization status byte S1 of the multiplex section overhead in the STM-N signal, for example, the 5th to 8th bits of S1 are used to indicate the synchronization status information indication. 0010 means G.811, 0100 means G.812T, 0111 means G.812L, and 1111 means different from clock synchronization.
当STM-N线路时钟失效时,MSTP设备可以检测出来,如LOS信号表示输入信号丢失。基站系统时钟即以基准时钟失效前所存储的时钟频率为其基准时钟而工作。When the STM-N line clock fails, the MSTP device can detect it. For example, the LOS signal indicates that the input signal is lost. The base station system clock works with the clock frequency stored before the reference clock fails as its reference clock.
可见,将SSM发送到基站等接收设备侧用作基准时钟的性能指示,当基准时钟失效时,接收设备侧系统时钟保持失效前的时钟频率作为基准时钟,从而避免了在异常条件下时钟失效时本地时钟继续跟踪而产生较大误差。It can be seen that the SSM is sent to the receiving device such as the base station as a performance indicator of the reference clock. When the reference clock fails, the system clock on the receiving device side maintains the clock frequency before the failure as the reference clock, thereby avoiding the clock frequency when the clock fails under abnormal conditions. The local clock continues to track with large errors.
在上述两实施例基础上,可以在基站侧以太网PHY芯片之后增加一个锁相环来产生基站系统时钟,而基站系统时钟单元中的软件锁相环则专门用于消除时钟信号的抖动。如图3所示,将该优化方案作为实施例三进行说明。On the basis of the above two embodiments, a phase-locked loop can be added behind the Ethernet PHY chip at the base station side to generate the base station system clock, and the software phase-locked loop in the system clock unit of the base station is specially used to eliminate the jitter of the clock signal. As shown in FIG. 3 , this optimization scheme is described as Embodiment 3.
实施例三,与前两例相同,本实现方案也需要由MSTP设备通过锁相环产生以太网PHY芯片的工作时钟并传递到基站侧第一以太网PHY芯片,并由该芯片提取出时钟。Embodiment 3, same as the previous two examples, this implementation scheme also requires the MSTP device to generate the working clock of the Ethernet PHY chip through the phase-locked loop and transmit it to the first Ethernet PHY chip at the base station side, and the chip extracts the clock.
同时,MSTP设备将本设备所生成的SSM通过IP层、MAC层、物理层并通过以太网PHY芯片发送到基站侧,基站侧第一以太网PHY芯片提取出SSM并通过MAC层、IP层传送到基站系统时钟单元,指示基站系统时钟的性能,如果基站系统时钟失效,基站系统时钟单元进入保持模式,以失效前储存的时钟频率作为其基准时钟而工作。At the same time, the MSTP device sends the SSM generated by the device to the base station side through the IP layer, MAC layer, physical layer and through the Ethernet PHY chip. The first Ethernet PHY chip on the base station side extracts the SSM and transmits it through the MAC layer and IP layer. To the base station system clock unit, indicating the performance of the base station system clock, if the base station system clock fails, the base station system clock unit enters the hold mode, and uses the clock frequency stored before the failure as its reference clock to work.
其不同之处在于,基站侧第一以太网PHY芯片提取出时钟后不直接发送到基站系统时钟单元,而是发送到锁相环单元,锁相环单元进行倍频或分频后,产生出基站的系统时钟,作为基准时钟,基站系统时钟单元进行跟踪和处理,得到满足质量要求的基站系统时钟,用于后级编解码、调制解调以及中射频等业务的基准时钟。The difference is that the first Ethernet PHY chip on the base station side does not directly send the clock to the base station system clock unit after extracting the clock, but sends it to the phase-locked loop unit, and the phase-locked loop unit performs frequency multiplication or frequency division to generate The system clock of the base station is used as the reference clock, and the base station system clock unit tracks and processes it to obtain a base station system clock that meets the quality requirements, which is used as a reference clock for subsequent codec, modulation and demodulation, and medium radio frequency services.
另外,对于多个基站级联的情况,基站设备可以通过其输出的向下级联的以太网来为下级级联基站提供时钟参考,参照图4,将该方案作为实施例四。In addition, in the case of cascading multiple base stations, the base station equipment can provide a clock reference for the lower cascaded base stations through the output cascaded Ethernet. Referring to FIG. 4 , this solution is taken as the fourth embodiment.
实施例四,如实施例三所述,一个基站与MSTP设备侧的STM-N线路时钟保持同步,如果有另一个基站与该基站级联,那么,该基站系统时钟可以作为另一个与其级联的基站设备的时钟参考源,如图4所示,基站1通过以太网从MSTP设备获取同步时钟参考源(图4未显示),基站2通过以太网从基站1获取同步时钟参考源。以下仅就级联基站之间的时钟同步进行说明。Embodiment 4, as described in Embodiment 3, a base station is synchronized with the STM-N line clock on the MSTP equipment side, if another base station is cascaded with this base station, then the system clock of this base station can be used as another The clock reference source of the base station equipment, as shown in Figure 4, the base station 1 obtains the synchronous clock reference source (not shown in Figure 4) from the MSTP device through the Ethernet, and the base station 2 obtains the synchronous clock reference source from the base station 1 through the Ethernet. The following only describes clock synchronization between cascaded base stations.
如图4所示,通过锁相环单元产生基站1侧第二以太网PHY芯片所需要的工作时钟,基站1侧第二以太网PHY时钟通过FE/GE接口将工作时钟传递到基站2侧第一以太网PHY芯片,由于基站1侧发送的数据流中除了时钟信息外还有其它的数据,因此,基站2侧的第一以太网PHY芯片首先将时钟从数据流中提取出来。然后,通过锁相环单元消除抖动,如果需要,还可以调节输入频率,从而产生出基站2的系统时钟,基站2的系统时钟单元可以通过软件锁相环进一步消除时钟信号的抖动,从而生成满足质量要求的基准时钟。As shown in Figure 4, the phase-locked loop unit generates the working clock required by the second Ethernet PHY chip on the base station 1 side, and the second Ethernet PHY clock on the base station 1 side transmits the working clock to the second Ethernet PHY chip on the base station 2 side through the FE/GE interface. An Ethernet PHY chip. Since the data stream sent by the base station 1 side contains other data besides the clock information, the first Ethernet PHY chip on the base station 2 side first extracts the clock from the data stream. Then, the jitter is eliminated by the phase-locked loop unit. If necessary, the input frequency can also be adjusted to generate the system clock of base station 2. The system clock unit of base station 2 can further eliminate the jitter of the clock signal through the software phase-locked loop, thereby generating Base clock for quality requirements.
同时,基站1将本设备的SSM通过IP层、MAC层、以太网物理层发送到基站1侧的第二以太网PHY芯片,该芯片通过FE/GE接口传送到基站2侧的第一以太网PHY芯片。基站2侧第一以太网PHY芯片依次通过以太网物理层、MAC层、IP层将SSM传送到基站2的系统时钟单元,作为基站2的系统时钟单元所生成的基准时钟的性能指示。At the same time, base station 1 sends the SSM of this device to the second Ethernet PHY chip on the side of base station 1 through the IP layer, MAC layer, and Ethernet physical layer, and the chip is transmitted to the first Ethernet PHY chip on the side of base station 2 through the FE/GE interface. PHY chip. The first Ethernet PHY chip on the base station 2 side sequentially transmits the SSM to the system clock unit of the base station 2 through the Ethernet physical layer, the MAC layer, and the IP layer, as a performance indication of the reference clock generated by the system clock unit of the base station 2.
这样,当SSM显示时钟质量满足质量要求时,基站2的系统时钟跟踪经锁相环及以太网PHY芯片处理后的基站1的系统时钟,并为基站2的业务处理单元提供基准时钟,如作为后级编解码以及调制解调等业务的基准时钟。In this way, when the SSM shows that the clock quality meets the quality requirements, the system clock of base station 2 tracks the system clock of base station 1 processed by the phase-locked loop and the Ethernet PHY chip, and provides a reference clock for the service processing unit of base station 2, such as The reference clock for subsequent codec and modulation and demodulation services.
基站2的系统时钟单元可以对所使用的时钟频率进行抽样,计算平均值并储存。当SSM显示时钟参考源失效时,基站2的系统时钟处于保持状态,以基准时钟失效前储存的时钟频率作为基准时钟而工作。The system clock unit of the base station 2 can sample the used clock frequency, calculate the average value and store it. When the SSM indicates that the clock reference source fails, the system clock of the base station 2 is in a holding state, and the clock frequency stored before the reference clock fails is used as the reference clock to work.
对于级联基站的下级基站下面再级联基站的时钟同步也是同样道理,利用从上级基站来的以太网中生成的时钟信息,作为系统时钟单元的参考源处理本基站系统时钟,同时通过以太网物理层传递到下级级联基站作为时钟参考源。由于基站控制器设备较少,而基站数量较多。这种方法对少量的几个基站与基站控制器直接保持同步,这几个基站下面在级联基站的布局下保持全网的时钟同步特别有益。The same is true for the clock synchronization of cascaded base stations below the cascaded base stations. The clock information generated from the Ethernet from the upper base station is used as the reference source of the system clock unit to process the system clock of the base station. The physical layer is passed to the lower-level cascaded base station as a clock reference source. Since the base station controller equipment is less, the number of base stations is large. This method directly keeps synchronization between a small number of base stations and the base station controller, and it is particularly beneficial to keep the clock synchronization of the entire network under the layout of cascaded base stations under these few base stations.
可见,基站通过以太网物理层将本地时钟传递到与其级联的下级基站中,各级级联基站均可以上级级联基站的系统时钟作为同步参考源,从而可以实现整个网络的时钟同步。It can be seen that the base station transmits the local clock to the lower-level base stations cascaded with it through the Ethernet physical layer. The cascaded base stations at all levels can use the system clock of the upper-level cascaded base station as a synchronization reference source, so that the clock synchronization of the entire network can be realized.
当然,如果级联的基站不是通过以太网进行通信,而是通过TDM或ATM网络,与其级联的基站也可采取从业务码流中提取时钟的方法实现时钟同步,在此不作详细描述。Of course, if the cascaded base stations communicate through TDM or ATM networks instead of Ethernet, the cascaded base stations can also implement clock synchronization by extracting clocks from service code streams, which will not be described in detail here.
以上实施例以MSTP组网方式下,通过FE或GE类型的以太网传递同步时钟,当然,也可采用其它类型的以太网,不再一一列举。In the above embodiments, the synchronous clock is transmitted through the FE or GE Ethernet in the MSTP networking mode. Of course, other types of Ethernet can also be used, and will not be listed one by one.
以上通过实施例对实现时钟同步的方法进行了较详细的描述,下面举例说明实现时钟同步的系统。The method for implementing clock synchronization has been described in detail through the embodiments above, and the system for implementing clock synchronization will be illustrated below with an example.
如图1所示的时钟同步系统,包括:MSTP设备侧锁相环单元11、以太网PHY芯片12以及基站侧第一以太网PHY芯片13和基站系统时钟单元14,以下详细说明各个单元的功能:The clock synchronization system shown in Figure 1 includes: MSTP device
MSTP设备侧锁相环单元11,通过对STM-N线路时钟进行处理生成MSTP设备侧以太网PHY芯片12的工作时钟;MSTP equipment
MSTP设备侧以太网PHY芯片12,通过FE/GE接口将所述工作时钟传递到基站侧第一以太网PHY芯片13;The
基站侧第一以太网PHY芯片13,对接收到的时钟进行提取;The first
基站系统时钟单元14,对基站侧第一以太网PHY芯片13提取出的时钟进行跟踪和处理,产生基站设备的系统时钟。The base station
以上系统即实现了基站系统时钟与MSTP接入设备的STM-N线路时钟的同步。The above system realizes the synchronization of the base station system clock and the STM-N line clock of the MSTP access equipment.
这样,在基站侧,基站系统时钟单元14就可为基站业务处理单元15提供基准时钟。基站业务处理单元15在基站系统时钟单元的控制下进行编解码、调制解调及中射频等工作。In this way, at the base station side, the base station
在上述时钟同步系统中,MSTP设备侧锁相环单元11用于将STM-N线路时钟进行处理生成MSTP设备侧以太网PHY芯片的工作时钟,至少包括鉴相器11、滤波器12、振荡器13,其中:In the above-mentioned clock synchronization system, the phase-locked
鉴相器11,用于判断输入的STM-N线路时钟频率与振荡器13输出的频率的相位差,产生对应于两个信号相位差的控制信号并输入到滤波器12;The
滤波器12,用于对输入的控制信号滤波,消除抖动,并输出控制信号控制振荡器13;The
振荡器13,用于在控制信号的作用下调节自身频率,使振荡器频率逐渐向输入信号频率靠拢,逐渐消除频差而锁定。The
如果所述MSTP设备侧以太网PHY芯片12的工作时钟与STM-N线路时钟不同,在所述锁相环单元11中还包括分频器或倍频器,用于生成所述MSTP设备侧以太网PHY芯片12的工作时钟。If the operating clock of the MSTP device side
锁相环单元可为分立器件,也可为集成了锁相环单元的芯片。The PLL unit can be a discrete device, or a chip integrated with the PLL unit.
其中,振荡器12可为VCXO,使得MSTP侧锁相环11所生成的时钟的抖动性能能够更好地满足MSTP侧以太网PHY芯片对于时钟抖动性能的要求。Wherein, the
另外,基站系统时钟单元14中还可包括软件锁相环单元。软件锁相环单元用于跟踪以太网PHY芯片所提取的时钟,消除抖动,产生基站的系统时钟。In addition, the base station
对图1中的时钟同步系统作进一步的优化,增加SSM,用于指示基站基准时钟的性能,如图2所示。The clock synchronization system in Figure 1 is further optimized, and SSM is added to indicate the performance of the base station's reference clock, as shown in Figure 2 .
在图1的时钟同步系统的基础上,增加MAC层,用于将SSM传送到MSTP设备侧以太网PHY芯片12,以及将基站侧第一以太网PHY芯片13所发送的SSM传送基站系统时钟单元14。如图2所示,在MSTP设备侧,MAC层将SSM传送到MSTP设备侧以太网PHY芯片12;在基站侧,MAC层将基站侧第一以太网PHY芯片13所发送的SSM传递到基站业务处理单元14。On the basis of the clock synchronization system in Fig. 1, a MAC layer is added to transmit the SSM to the
图2所示MSTP网络为两层组网方式,如果MSTP网络为三层组网方式,则需要在图1所示的时钟同步系统基础上增加IP层、MAC层。此时,在MSTP设备侧,IP层将SSM传递到MAC层,MAC层再将SSM传递到MSTP设备侧以太网PHY芯片12;在基站侧,MAC层将基站侧第一以太网PHY芯片13发送的SSM传递到IP层,IP层再传递到基站系统时钟单元14。The MSTP network shown in Figure 2 is a two-layer network. If the MSTP network is a three-layer network, an IP layer and a MAC layer need to be added on the basis of the clock synchronization system shown in Figure 1. Now, on the MSTP equipment side, the IP layer delivers the SSM to the MAC layer, and the MAC layer then transmits the SSM to the
基站系统时钟单元还包括时钟保持单元,可以对所使用的时钟频率进行抽样,计算平均值并储存。若SSM显示基准时钟的质量无法满足业务质量要求或无效时,时钟保持单元工作于保持模式,以失效前存储的时钟频率作为基准时钟而工作。The system clock unit of the base station also includes a clock holding unit, which can sample the clock frequency used, calculate the average value and store it. If the SSM shows that the quality of the reference clock cannot meet the quality of service requirements or is invalid, the clock holding unit works in the hold mode, using the clock frequency stored before the failure as the reference clock.
可见,将SSM发送到基站等接收设备侧用作基准时钟的性能指示,当基准时钟失效时,接收设备侧系统时钟保持失效前的时钟频率作为基准时钟,从而避免了在异常条件下时钟失效时本地时钟继续跟踪而产生较大误差。It can be seen that the SSM is sent to the receiving device such as the base station as a performance indicator of the reference clock. When the reference clock fails, the system clock on the receiving device side maintains the clock frequency before the failure as the reference clock, thereby avoiding the clock frequency when the clock fails under abnormal conditions. The local clock continues to track with large errors.
对图2所示时钟同步系统作进一步优化,如图3所示,在基站侧增加锁相环单元31,用于根据基站侧第一以太网PHY芯片13所提取的时钟生成基站系统时钟单元14的系统时钟作为时钟基准。锁相环单元31可进一步提高系统的抖动性能,为系统时钟单元14提供性能更好的基准时钟。The clock synchronization system shown in FIG. 2 is further optimized. As shown in FIG. 3, a phase-locked
如果基站侧第一以太网PHY芯片13所提取出的时钟频率与基站系统时钟单元的时钟频率不同,所述锁相环单元31还包括调频单元,以使基站侧第一以太网PHY芯片所输出的时钟频率与基站系统所需要的时钟频率相等。If the clock frequency extracted by the first
本发明实施例中所述的时钟同步系统还可用于实现同步了STM-N线路时钟的基站与其下级基站之间的同步,如图4所示的时钟同步系统包括:以STM-N为时钟参考源的基站1的系统时钟单元14,锁相环单元41、基站1侧的第二以太网PHY芯片42以及基站2侧的第一以太网PHY芯片43、锁相环单元44、基站2的系统时钟单元45,以及SSM传送所需要的基站1的业务处理单元46,基站2的业务处理单元46,MAC层47、48。The clock synchronization system described in the embodiment of the present invention can also be used to realize the synchronization between the base station and its subordinate base station that have synchronized the STM-N line clock. The clock synchronization system shown in Figure 4 includes: STM-N as the clock reference The
下面介绍系统各组成部分的功能:The following describes the functions of each component of the system:
基站1的系统时钟单元14,与STM-N线路时钟保持同步,并将本系统的时钟传递到锁相环单元41;The
锁相环单元41,根据系统时钟单元14的时钟生成基站1侧第二以太网PHY芯片42的工作时钟;The phase-locked loop unit 41 generates the working clock of the second Ethernet PHY chip 42 at the base station 1 side according to the clock of the
基站1侧第二以太网PHY芯片42,通过FE/GE接口将工作时钟传递到基站2侧的第一以太网PHY芯片43;The second Ethernet PHY chip 42 on the base station 1 side transmits the working clock to the first Ethernet PHY chip 43 on the base station 2 side through the FE/GE interface;
基站2侧的第一以太网PHY芯片43,对接收到的时钟进行提取;The first Ethernet PHY chip 43 on the base station 2 side extracts the received clock;
锁相环单元44,对基站2侧的第一以太网PHY芯片43所提取的时钟进行处理,并传递到基站2的系统时钟单元45;The phase-locked loop unit 44 processes the clock extracted by the first Ethernet PHY chip 43 on the base station 2 side, and transmits it to the system clock unit 45 of the base station 2;
基站2的系统时钟单元45,对锁相环单元44生成的时钟进行跟踪,产生基站2的系统时钟;在SSM的指示下,为基站2的业务处理单元46提供基准时钟。The system clock unit 45 of the base station 2 tracks the clock generated by the phase-locked loop unit 44 to generate the system clock of the base station 2; under the instruction of the SSM, it provides a reference clock for the service processing unit 46 of the base station 2.
MAC层47、48,作为SSM传输单元,用于将基站1生成的SSM传递到基站2的系统时钟单元。The MAC layers 47 and 48 are used as SSM transmission units for transferring the SSM generated by the base station 1 to the system clock unit of the base station 2 .
对于级联基站的下级基站下面再级联基站的时钟同步也是同样道理,利用从上级基站来的以太网中生成的时钟信息,作为系统时钟单元的参考源处理本基站系统时钟,同时通过以太网物理层传递到下级级联基站作为时钟参考源。由于基站控制器设备较少,而基站数量较多。这种方法对少量的几个基站与基站控制器直接保持同步,这几个基站下面在级联基站的布局下保持全网的时钟同步特别有益。The same is true for the clock synchronization of cascaded base stations below the cascaded base stations. The clock information generated from the Ethernet from the upper base station is used as the reference source of the system clock unit to process the system clock of the base station. The physical layer is passed to the lower-level cascaded base station as a clock reference source. Since the base station controller equipment is less, the number of base stations is large. This method directly keeps synchronization between a small number of base stations and the base station controller, and it is particularly beneficial to keep the clock synchronization of the entire network under the layout of cascaded base stations under these few base stations.
可见,基站通过以太网物理层将本地时钟传递到与其级联的下级基站中,各级级联基站均可以上级级联基站的系统时钟作为同步参考源,从而可以实现整个网络的时钟同步。It can be seen that the base station transmits the local clock to the lower-level base stations cascaded with it through the Ethernet physical layer. The cascaded base stations at all levels can use the system clock of the upper-level cascaded base station as a synchronization reference source, so that the clock synchronization of the entire network can be realized.
当然,如果级联的基站设备不是通过以太网进行通信,而是通过TDM或ATM网络,与其级联的设备也可采取从业务码流中提取时钟的解决方案实现时钟同步,在此不作详细描述。Of course, if the cascaded base station equipment communicates not through Ethernet, but through TDM or ATM network, the equipment cascaded with it can also adopt the solution of extracting the clock from the service code stream to achieve clock synchronization, which will not be described in detail here .
以上实施例以MSTP组网方式下,通过FE或GE类型的以太网物理层传递同步时钟,当然,也可采用其它类型的以太网物理层,不再一一列举。In the above embodiments, the synchronous clock is transmitted through the FE or GE type of Ethernet physical layer in the MSTP networking mode. Of course, other types of Ethernet physical layers can also be used, and will not be listed one by one.
以上对本发明所提供的一种时钟同步方法和系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,例如,本发明实施例并不限于只为基站传递时钟,用采用MSTP设备的STM-N线路时钟通过物理层为其它设备提供时钟也在本发明的保护之列,综上所述,本说明书内容不应理解为对本发明的限制。A clock synchronization method and system provided by the present invention has been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention. and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. For example, the embodiment of the present invention is not limited to only transmitting the clock for the base station , using the STM-N line clock using MSTP equipment to provide clocks for other equipment through the physical layer is also included in the protection of the present invention. In summary, the content of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710000099A CN101005349B (en) | 2007-01-09 | 2007-01-09 | A clock synchronization method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710000099A CN101005349B (en) | 2007-01-09 | 2007-01-09 | A clock synchronization method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101005349A CN101005349A (en) | 2007-07-25 |
| CN101005349B true CN101005349B (en) | 2010-05-19 |
Family
ID=38704249
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200710000099A Expired - Fee Related CN101005349B (en) | 2007-01-09 | 2007-01-09 | A clock synchronization method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101005349B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102118848B (en) * | 2009-12-21 | 2014-03-12 | 电信科学技术研究院 | Method and device for processing sending and receiving in process of clock transmission |
| CN101772151B (en) * | 2009-12-25 | 2013-05-08 | 中兴通讯股份有限公司 | Device and method for recovering clock signal of time division multiplex output |
| CN107493599B (en) * | 2016-06-12 | 2021-04-02 | 中兴通讯股份有限公司 | Method, apparatus and system for realizing time synchronization between base station equipment through baseband radio frequency interface |
| CN106131947B (en) * | 2016-09-14 | 2019-11-05 | 潘进 | A kind of synchronous method of clock between Wireless Communication Equipment |
| CN106899401B (en) * | 2017-02-10 | 2020-11-17 | 武汉虹信科技发展有限责任公司 | Clock synchronization method of ten-gigabit synchronous Ethernet |
| CN107861412A (en) * | 2017-09-27 | 2018-03-30 | 全球能源互联网研究院有限公司 | Signal acquisition method, apparatus and system |
| CN113032311A (en) * | 2021-05-08 | 2021-06-25 | 北京六合联珩科技有限公司 | Multichannel data acquisition circuit board and have its data acquisition synchronization system |
| CN115529481B (en) * | 2021-06-25 | 2024-05-03 | 杭州海康威视数字技术股份有限公司 | Video synchronous display system and method based on fusion signal source and input equipment |
| CN113406993A (en) * | 2021-07-16 | 2021-09-17 | 盛立安元科技(杭州)股份有限公司 | FPGA chip clock domain synchronization method based on recovered clock and related equipment |
| CN114035740B (en) * | 2021-11-13 | 2022-12-02 | 北京津发科技股份有限公司 | Method, device and system for synchronizing clock crystal oscillator |
| CN115065436B (en) * | 2022-08-16 | 2022-11-25 | 南方电网数字电网研究院有限公司 | Clock shunt multiplexing circuit special for electric power |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US1716904A (en) * | 1926-09-16 | 1929-06-11 | Siderits Thomas | Splicing clamp |
| CN1859042A (en) * | 2006-03-28 | 2006-11-08 | 华为技术有限公司 | Base station clock synchronous system and method under multiple service transmission platform building network |
| CN1867119A (en) * | 2005-12-02 | 2006-11-22 | 华为技术有限公司 | Clock recovery method and apparatus in RF far-end module |
-
2007
- 2007-01-09 CN CN200710000099A patent/CN101005349B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US1716904A (en) * | 1926-09-16 | 1929-06-11 | Siderits Thomas | Splicing clamp |
| CN1867119A (en) * | 2005-12-02 | 2006-11-22 | 华为技术有限公司 | Clock recovery method and apparatus in RF far-end module |
| CN1859042A (en) * | 2006-03-28 | 2006-11-08 | 华为技术有限公司 | Base station clock synchronous system and method under multiple service transmission platform building network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101005349A (en) | 2007-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101005349B (en) | A clock synchronization method and system | |
| EP1912361B1 (en) | Method, system and device for clock transmission between sender and receiver | |
| US7483450B1 (en) | Method and system for link-based clock synchronization in asynchronous networks | |
| US7873073B2 (en) | Method and system for synchronous high speed Ethernet GFP mapping over an optical transport network | |
| US7613212B1 (en) | Centralized clock synchronization for time division multiplexed traffic transported over Ethernet networks | |
| US7649910B1 (en) | Clock synchronization and distribution over a legacy optical Ethernet network | |
| EP1940086B1 (en) | Method, ethernet device and ethernet for solving the clock synchronization | |
| Ferrant et al. | Synchronous Ethernet: A method to transport synchronization | |
| CN101534185B (en) | Time synchronizing device, method and system | |
| US8644349B2 (en) | Clock recovery in a system which transports TDM data over a packet-switched network | |
| EP1520380B1 (en) | Synchronous data transfer system for time-sensitive data in packet-switched networks | |
| CN102480780B (en) | Time synchronization method of femto base station route (BSR) and system thereof | |
| US7660330B1 (en) | Clock synchronization and distribution over an optical Ethernet network | |
| WO2021151187A1 (en) | Systems and methods for transporting constant bit rate client signals over a packet transport network | |
| US20050041691A1 (en) | Apparatus and methods for providing synchronous digital data transfer over an ethernet | |
| US20190097744A1 (en) | Pseudowire clock recovery | |
| US7944941B1 (en) | High speed Ethernet based on SONET technology | |
| Aweya | Implementing synchronous ethernet in telecommunication systems | |
| EP1936848A1 (en) | Integrated phase lock loop and network PHY or switch | |
| CN102055727A (en) | Data encapsulation method, encapsulation equipment and branch unit in multi-service transport network | |
| US20110261842A1 (en) | Method and apparatus for resilient clock transfer over multiple dsl lines | |
| Magee | Synchronization in next-generation mobile backhaul networks | |
| JP2005505988A (en) | Method and apparatus for digital data synchronization | |
| WO2017134533A1 (en) | Method and apparatus for network synchronization | |
| Aweya | Emerging applications of synchronous Ethernet in telecommunication networks |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100519 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |