CN106685561B - A kind of the bit synchronous mapping treatment method and device of band filtering - Google Patents

A kind of the bit synchronous mapping treatment method and device of band filtering Download PDF

Info

Publication number
CN106685561B
CN106685561B CN201510761157.0A CN201510761157A CN106685561B CN 106685561 B CN106685561 B CN 106685561B CN 201510761157 A CN201510761157 A CN 201510761157A CN 106685561 B CN106685561 B CN 106685561B
Authority
CN
China
Prior art keywords
value
pserver
denominator
average
mean value
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.)
Active
Application number
CN201510761157.0A
Other languages
Chinese (zh)
Other versions
CN106685561A (en
Inventor
曲贺楠
刘庆葵
王通
林海都
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201510761157.0A priority Critical patent/CN106685561B/en
Priority to PCT/CN2016/103513 priority patent/WO2017080361A1/en
Publication of CN106685561A publication Critical patent/CN106685561A/en
Application granted granted Critical
Publication of CN106685561B publication Critical patent/CN106685561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种带滤波的比特同步映射处理方法,包括:根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则用所述标准分母值替换当前得到的均值Pserver_average,将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动法则映射输出ODUk帧缺口。本发明还同时公开了一种带滤波的比特同步映射处理装置。

The invention discloses a bit synchronous mapping processing method with filtering, comprising: obtaining the system clock number Pserver value according to the frame boundary value, sequentially storing the Pserver value corresponding to the previous k frames into the mean value filter to obtain the mean value Pserver_average; judging the current Whether the obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, and if so, replace the currently obtained mean value Pserver_average with the standard denominator value, use the described mean value Pserver_average as the denominator, and use the number of detected ODUk frame gaps as the numerator , according to the integral/differential rule to map the output ODUk frame gap. The invention also discloses a bit synchronous mapping processing device with filtering.

Description

一种带滤波的比特同步映射处理方法及装置Method and device for bit synchronous mapping processing with filtering

技术领域technical field

本发明涉及光传送网(OTN,Optical Transport Network)传输芯片通讯领域,尤其涉及一种带滤波的比特同步映射(BMP,Bit-Synchronous Mapping)处理方法及装置。The invention relates to the field of optical transport network (OTN, Optical Transport Network) transmission chip communication, in particular to a bit-synchronous mapping (BMP, Bit-Synchronous Mapping) processing method and device with filtering.

背景技术Background technique

对于OTN映射成帧类的芯片来说,BMP是一种重要的映射方式。BMP的映射方式能够跟随客户侧业务速率,但是,在BMP跟随客户侧业务速率的同时,有可能会引起客户侧业务速率的抖动,因此,如何更好地在克服客户侧业务速率抖动的同时,还能输出符合协议规定的频偏要求的服务层信号,一直是一个需要解决的难题。For chips that map OTN into frames, BMP is an important mapping method. The mapping method of BMP can follow the service rate of the client side. However, when BMP follows the service rate of the client side, it may cause the jitter of the service rate of the client side. Therefore, how to better overcome the jitter of the service rate of the client side, It has always been a difficult problem to be solved to be able to output service layer signals that meet the frequency offset requirements specified in the protocol.

目前,可采用完全跟随客户侧业务速率的方法来克服客户侧业务速率的抖动,该方法对已经过通用成帧规程(GFP,Generic Framing Procedure)包封的业务,能够满足要求;但对于未经过GFP包封的业务,却表现很差。另外一种做法是,采用固定的步长拟合跟随,但是,该方法跟随的速度较慢,同时也会引入低频抖动。At present, the method of completely following the service rate of the client side can be used to overcome the jitter of the service rate of the client side. This method can meet the requirements for the business that has been encapsulated by the General Framing Procedure (GFP, Generic Framing Procedure); The GFP-encapsulated business performed poorly. Another approach is to use a fixed step size to fit and follow. However, this method follows at a slower speed and also introduces low-frequency jitter.

对于一些业务,如同步数字体系(SDH,Synchronous Digital Hierarchy)、光纤通道(FC,Fiber Channel)、无限带宽(IB,Infini-Band)、通用公共无线电接口(CPRI,CommonPublic Radio Interface)等直接通过BMP方式映射到光通道数据单元(ODU,OpticalChannel Data Unit)时,客户侧业务速率的抖动对映射模块是个挑战,因此,采用特定的方法来减少客户侧业务速率的抖动,对于改善映射芯片的性能以及对芯片的时钟恢复具有重要意义。For some services, such as Synchronous Digital Hierarchy (SDH, Synchronous Digital Hierarchy), Fiber Channel (FC, Fiber Channel), Infinite Bandwidth (IB, Infini-Band), Common Public Radio Interface (CPRI, Common Public Radio Interface), etc. directly through BMP When the method is mapped to an Optical Channel Data Unit (ODU, Optical Channel Data Unit), the jitter of the client-side service rate is a challenge to the mapping module. Therefore, using a specific method to reduce the jitter of the client-side service rate is important for improving the performance of the mapping chip and It is of great significance to the clock recovery of the chip.

发明内容Contents of the invention

有鉴于此,本发明实施例期望提供一种带滤波的比特同步映射处理方法及装置,能使ODUk帧的速率在一定范围内精准跟随客户侧业务,减少客户侧业务速率的抖动,从而保证输出的ODUk帧的速率符合协议规定。In view of this, the embodiment of the present invention expects to provide a bit synchronous mapping processing method and device with filtering, which can make the ODUk frame rate accurately follow the client-side service within a certain range, reduce the jitter of the client-side service rate, and ensure output The rate of the ODUk frame complies with the protocol.

为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present invention is achieved in this way:

本发明实施例提供一种带滤波的比特同步映射处理方法,所述方法包括:根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;An embodiment of the present invention provides a bit synchronous mapping processing method with filtering. The method includes: obtaining the value of the number of system clocks Pserver according to the frame boundary value, and storing the Pserver values corresponding to the previous k frames into the mean value filter in order to obtain the mean value Pserver_average;

判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则用所述标准分母值替换当前得到的均值Pserver_average,将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动法则映射输出ODUk帧缺口。Determine whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, and if so, replace the currently obtained mean value Pserver_average with the standard denominator value, use the described mean value Pserver_average as the denominator, and detect the number of ODUk frame gaps obtained As a numerator, output ODUk frame gaps are mapped according to the integral/differential law.

上述方案中,所述根据帧边界值获取Pserver值,包括:将一个ODUk帧净荷对应的客户业务缺口个数作为帧边界值,根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。In the above scheme, the acquisition of the Pserver value according to the frame boundary value includes: using the number of customer service gaps corresponding to the payload of an ODUk frame as the frame boundary value, counting the number of corresponding system clocks according to the frame boundary value, Get the Pserver value.

上述方案中,所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母。In the above solution, the standard denominator value is the standard natural vibration denominator obtained when the output frequency deviation is 0 ppm.

上述方案中,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围。In the above solution, a frequency offset detection circuit is used to judge whether the currently obtained average value Pserver_average exceeds the tolerance range of the standard denominator value.

本发明实施例还提供一种带滤波的比特同步映射处理装置,所述装置包括:The embodiment of the present invention also provides a bit synchronous mapping processing device with filtering, the device includes:

获取模块,用于根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;The obtaining module is used to obtain the system clock number Pserver value according to the frame boundary value, and the Pserver value corresponding to the previous k frames is stored in the mean value filter in order to obtain the mean value Pserver_average;

判别模块,用于判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围;Discrimination module, is used for discriminating whether the mean value Pserver_average that obtains currently exceeds the tolerance range of standard denominator value;

替换模块,用于在所述判别模块判别确定超出标准分母值的容忍范围时,用所述标准分母值替换当前得到的均值Pserver_average;A replacement module, used to replace the currently obtained mean value Pserver_average with the standard denominator value when the judgment module judges that it exceeds the tolerance range of the standard denominator value;

映射输出模块,用于将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动法则映射输出ODUk帧缺口。The mapping output module is configured to use the mean value Pserver_average as a denominator and the number of detected ODUk frame gaps as a numerator, and map and output the ODUk frame gaps according to the integral/differential rule.

上述方案中,所述获取模块中根据帧边界值获取Pserver值,包括:将一个ODUk帧净荷对应的客户业务缺口个数作为帧边界值,根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。In the above scheme, the acquisition module obtains the Pserver value according to the frame boundary value, including: using the number of customer service gaps corresponding to an ODUk frame payload as the frame boundary value, and counting the corresponding system clock according to the frame boundary value number to get the Pserver value.

上述方案中,所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母。In the above solution, the standard denominator value is the standard natural vibration denominator obtained when the output frequency deviation is 0 ppm.

上述方案中,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围。In the above solution, a frequency offset detection circuit is used to judge whether the currently obtained average value Pserver_average exceeds the tolerance range of the standard denominator value.

本发明实施例所提供的带滤波的比特同步映射处理方法及装置,根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则用所述标准分母值替换当前得到的均值Pserver_average,将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动(sigma/delta)法则映射输出ODUk帧缺口。如此,不仅能使输出的ODUk帧缺口在符合频偏要求的范围内跟随客户侧业务,而且还能最大程度地消除客户侧业务速率的抖动,从而保证输出的ODUk帧的速率不超过协议规定的频偏要求。The bit synchronous mapping processing method and device with filtering provided by the embodiments of the present invention obtain the value of the number of system clocks Pserver according to the frame boundary value, and store the Pserver values corresponding to the previous k frames into the average value filter in order to obtain the average value Pserver_average; Whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, and if so, replace the currently obtained mean value Pserver_average with the standard denominator value, use the described mean value Pserver_average as the denominator, and use the detected number of ODUk frame gaps as The numerator maps the output ODUk frame gaps according to the integral/differential (sigma/delta) law. In this way, not only can the output ODUk frame gap follow the client-side service within the range that meets the frequency offset requirements, but also eliminate the jitter of the client-side service rate to the greatest extent, so as to ensure that the output ODUk frame rate does not exceed the protocol specified frequency offset requirements.

附图说明Description of drawings

图1为本发明实施例带滤波的比特同步映射处理方法的实现流程示意图;Fig. 1 is a schematic diagram of the implementation flow of the bit synchronous mapping processing method with filtering in the embodiment of the present invention;

图2为本发明实施例k阶均值滤波器的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of a k-order mean filter according to an embodiment of the present invention;

图3为本发明实施例带滤波的比特同步映射处理装置的组成结构示意图。FIG. 3 is a schematic diagram of the composition and structure of a bit synchronous mapping processing device with filtering according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the present invention.

如图1所示,本发明实施例带滤波的比特同步映射处理方法的实现流程包括以下步骤:As shown in Figure 1, the implementation process of the bit synchronous mapping processing method with filtering in the embodiment of the present invention includes the following steps:

步骤101:根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;Step 101: Obtain the value of the number of system clocks Pserver according to the frame boundary value, and store the Pserver values corresponding to the previous k frames into the average value filter in order to obtain the average value Pserver_average;

其中,所述根据帧边界值获取系统时钟个数Pserver值,具体包括:将一个ODUk帧净荷对应的客户业务缺口个数作为帧边界值,根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。Wherein, the acquisition of the system clock number Pserver value according to the frame boundary value specifically includes: taking the number of customer service gaps corresponding to an ODUk frame payload as the frame boundary value, and counting the corresponding system clocks according to the frame boundary value number to get the Pserver value.

这里,所述ODUk中的k表示ODU的级别,k的取值可以是0、1、2、2e、3、4,目前,在协议中已经定义有ODU1、ODU2、ODU3。Here, k in the ODUk represents the level of the ODU, and the value of k can be 0, 1, 2, 2e, 3, 4. Currently, ODU1, ODU2, and ODU3 have been defined in the protocol.

步骤102:判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则执行步骤103,否则,执行步骤104;Step 102: judging whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, if exceeded, then perform step 103, otherwise, perform step 104;

这里,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围;所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母。Here, a frequency offset detection circuit is used to determine whether the currently obtained mean value Pserver_average exceeds the tolerance range of a standard denominator value; the standard denominator value is a standard natural vibration denominator obtained when the output frequency offset is 0 ppm.

步骤103:用所述标准分母值替换当前得到的均值Pserver_average。Step 103: Replace the currently obtained mean value Pserver_average with the standard denominator value.

步骤104:将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动法则映射输出ODUk帧缺口。Step 104: Using the mean value Pserver_average as a denominator and the number of detected ODUk frame gaps as a numerator, map and output the ODUk frame gaps according to the integral/differential rule.

图1中步骤101的所述将前k帧对应的Pserver值依次存入均值滤波器,该均值滤波器可以采用k阶均值滤波器完成,本发明实施例采用k阶均值滤波器实现滤波的流程如图2所示,具体实现过程如下:In step 101 in FIG. 1, the Pserver values corresponding to the previous k frames are sequentially stored in the mean value filter. The mean value filter can be completed by using a k-order mean value filter. In the embodiment of the present invention, the k-order mean value filter is used to realize the filtering process. As shown in Figure 2, the specific implementation process is as follows:

将前k帧对应的Pserver值:Pserver0、Pserver1......Pserver(k-1)依次存入均值滤波器,并依次输出均值Pserver_average,同时将求均值剩下的余数Pserver_remain保存起来;其中,k的取值范围可以是任意自然数。Store the Pserver values corresponding to the previous k frames: Pserver0, Pserver1...Pserver(k-1) into the mean value filter in turn, and output the mean value Pserver_average in turn, and save the remainder Pserver_remain of the mean value at the same time; , the value range of k can be any natural number.

这里,当新的一帧Pserver(k)产生时,由于该均值滤波器的容量为k帧,因此,会从该均值滤波器中移除Pserver0,移入Pserver(k),加上之前的Pserver_remain值继续求均值,然后,更新输出的均值Pserver_average和余数Pserver_remain。Here, when a new frame Pserver(k) is generated, since the mean filter has a capacity of k frames, Pserver0 will be removed from the mean filter, moved into Pserver(k), and the previous Pserver_remain value added Continue to calculate the mean, and then update the output mean Pserver_average and remainder Pserver_remain.

由于得到的均值Pserver_average受到了前k个Pserver值的影响,相当于平滑了前k个Pserver值的抖动,而且每个均值Pserver_average都会有更新,这样,就保证了Pserver值的连续性,同时余数Pserver_remain的存在保证了Pserver值的计算不会有量上的丢失。Since the obtained average value Pserver_average is affected by the first k Pserver values, it is equivalent to smoothing the jitter of the first k Pserver values, and each average value Pserver_average will be updated, so that the continuity of the Pserver value is guaranteed, and the remainder Pserver_remain The existence of ensures that the calculation of the Pserver value will not be lost in quantity.

在实际应用中,当遇到一些特殊情况,例如:线路故障、告警等导致客户业务速率有很大频偏时,图1中步骤104映射输出的ODUk帧缺口在速率上有可能超出了协议规定的频偏范围,此时,该ODUk帧缺口不能直接输出,必须经过一个频偏检测电路加以判别,以输出一个符合协议频偏要求的ODUk帧缺口。In practical applications, when encountering some special circumstances, such as: line faults, alarms, etc., resulting in a large frequency deviation of the customer service rate, the rate of the ODUk frame gap mapped and output by step 104 in Figure 1 may exceed the protocol specification In this case, the ODUk frame notch cannot be directly output, and must be judged by a frequency offset detection circuit to output an ODUk frame notch that meets the frequency offset requirements of the protocol.

下面对本发明实施例提供的如何经过频偏检测电路,以判别得到的均值Pserver_average的技术方案做进一步地详细介绍:The following is a further detailed introduction to the technical solution of how to pass through the frequency offset detection circuit provided by the embodiment of the present invention to determine the obtained mean value Pserver_average:

首先,以ODUk帧缺口的个数(如ODUk帧的位宽为32bit,其所对应的ODUk帧缺口的个数是3824)作为分子,在输出频偏为0ppm的情况下,利用公式:0ppm的自振分母=系统时钟*位宽*3824/ODUk帧的速率,计算出一个标准的自振分母;First, take the number of gaps in the ODUk frame (for example, the bit width of the ODUk frame is 32bit, and the number of gaps in the corresponding ODUk frame is 3824) as the numerator, and when the output frequency offset is 0ppm, use the formula: 0ppm Natural vibration denominator = system clock * bit width * 3824/ODUk frame rate, calculate a standard natural vibration denominator;

这里,ODUk帧缺口在一定程度上体现并影响着ODUk帧的速率,ODUk帧缺口越大,表示ODUk帧的速率越小,反之亦然。Here, the gap in the ODUk frame reflects and affects the rate of the ODUk frame to a certain extent. The larger the gap in the ODUk frame, the lower the rate of the ODUk frame, and vice versa.

其次,将得到的每一个均值Pserver_average都与这个标准的自振分母进行比较,当当前得到的均值Pserver_average超出标准分母值的容忍范围时,就认为当前得到的均值Pserver_average产生的ODUk帧缺口将会超出符合协议规定的频偏,则用标准分母值替换当前得到的均值Pserver_average,输出没有频偏的ODUk帧缺口。Secondly, compare each obtained mean value Pserver_average with the standard natural vibration denominator. When the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, it is considered that the ODUk frame gap generated by the currently obtained mean value Pserver_average will exceed If the frequency offset conforms to the agreement, replace the currently obtained average value Pserver_average with the standard denominator value, and output the ODUk frame gap without frequency offset.

这里,所述符合协议规定的频偏可以为100ppm的频偏;然而,在这个超频偏的检测中,对于如何确定标准分母值的容忍范围,是尤其关键的。该标准分母值的容忍范围决定了频偏检测的精度,由于按照上面公式计算出的标准分母值不一定是整数,因此,需要按照比例同时放大分子分母,同时帧边界也放大相同的倍数。Here, the frequency offset that conforms to the agreement may be a frequency offset of 100ppm; however, in the detection of this overfrequency offset, how to determine the tolerance range of the standard denominator value is particularly critical. The tolerance range of the standard denominator value determines the accuracy of frequency offset detection. Since the standard denominator value calculated according to the above formula is not necessarily an integer, it is necessary to enlarge the numerator and denominator at the same time in proportion, and at the same time, the frame boundary is also enlarged by the same multiple.

其中,所述标准分母值的容忍范围是用户自行设置的,取决于每多一个或者少一个系统时钟所对应的频偏,均值滤波器计算出的均值Pserver_average、标准分母值、以及符合协议规定的频偏100ppm。Wherein, the tolerance range of the standard denominator value is set by the user, and depends on the frequency offset corresponding to each additional or missing system clock, the average value Pserver_average calculated by the mean value filter, the standard denominator value, and the value in compliance with the protocol. Frequency deviation 100ppm.

例如,每多一个或者少一个系统时钟所对应的频偏是2.8ppm,则当均值滤波器计算出的均值Pserver_average比标准分母值大或超过35个系统时钟时,就认为超出了协议规定的频偏100ppm。此时,35个系统时钟所对应的频偏是2.8*35=98ppm,而36个系统时钟所对应的频偏是2.8*36=100.8ppm,由于100.8ppm超过了100ppm,而98ppm未超过100ppm,因此,这种情况下标准分母值的容忍范围是35个系统时钟。For example, if the frequency offset corresponding to one more or one less system clock is 2.8ppm, then when the average value Pserver_average calculated by the averaging filter is greater than the standard denominator value or exceeds 35 system clocks, it is considered to exceed the frequency specified in the agreement. Partial 100ppm. At this time, the frequency offset corresponding to 35 system clocks is 2.8*35=98ppm, and the frequency offset corresponding to 36 system clocks is 2.8*36=100.8ppm, because 100.8ppm exceeds 100ppm, but 98ppm does not exceed 100ppm, Therefore, the tolerance range for the standard denominator value in this case is 35 system clocks.

下面以一个具体实施例对本发明如何提高频偏检测的精度做进一步地详细说明。How to improve the accuracy of frequency offset detection in the present invention will be further described in detail below with a specific embodiment.

在本发明实施例中,假设系统时钟为360M,客户侧业务输出ODUk帧缺口对应的位宽为32bit,采用BMP的映射方式映射到ODU0中,ODU0的速率为1.24416G,根据上述参数,计算出此时的标准分母值=3824*360*32/(1000*1.24416)=35407.407,即:对应在360M时钟下,每帧ODU0大约对应有35407个系统时钟。In the embodiment of the present invention, assuming that the system clock is 360M, the bit width corresponding to the ODUk frame gap of the client-side service output is 32bit, and the BMP mapping method is used to map to ODU0, and the rate of ODU0 is 1.24416G. According to the above parameters, calculate The standard denominator value at this time=3824*360*32/(1000*1.24416)=35407.407, that is, corresponding to the 360M clock, each frame of ODU0 corresponds to about 35407 system clocks.

根据sigma/delta法则,以3824作为分子,35407作为分母,跟随客户侧业务输出ODUk帧缺口,此时,每多一个或者少一个系统时钟所对应的频偏为28.24ppm。显然,这样的跟随太“粗糙了”;这时,将分子、分母同时放大10倍,帧边界也放大10倍,对应滤波器输入的Pserver值也相应地增大(通过增加Pserver(k)的数量k来增大Pserver值),这样,每多或者少一个系统时钟对应的频偏为2.8ppm。该方法通过放大分子、分母(采样分母的周期)实现了提高频偏的检测精度。According to the sigma/delta rule, 3824 is used as the numerator and 35407 is used as the denominator, and the ODUk frame gap is output following the client-side service. At this time, the frequency offset corresponding to one more or one less system clock is 28.24ppm. Obviously, this kind of following is too "rough"; at this time, the numerator and denominator are enlarged by 10 times at the same time, and the frame boundary is also enlarged by 10 times, and the value of Pserver corresponding to the input of the filter is correspondingly increased (by increasing the value of Pserver(k) The number k is used to increase the value of Pserver), in this way, the frequency deviation corresponding to one more or one less system clock is 2.8ppm. The method improves the detection accuracy of the frequency offset by enlarging the numerator and the denominator (period of sampling the denominator).

这里,具体如何根据sigma/delta法则计算客户侧业务输出ODUk帧缺口属于现有技术,在此不再赘述。Here, how to specifically calculate the client-side service output ODUk frame gap according to the sigma/delta rule belongs to the prior art, and will not be repeated here.

经过上面处理,输出的ODUk帧缺口在符合频偏要求的范围内跟随了客户侧业务,并最大程度地消除了客户侧业务的抖动。当客户的服务层信号超频偏时,同样能够输出符合频偏要求的ODUk信号。与现有的BMP电路相比,通过增大滤波器k的值可以更好的去除抖动,同时高精度的频偏检测保证了输出的频偏要求。After the above processing, the output ODUk frame gap follows the client-side service within the range that meets the frequency offset requirements, and eliminates the jitter of the client-side service to the greatest extent. When the customer's service layer signal exceeds the frequency deviation, it can also output ODUk signals that meet the frequency deviation requirements. Compared with the existing BMP circuit, the jitter can be removed better by increasing the value of the filter k, and at the same time, the high-precision frequency deviation detection ensures the frequency deviation requirement of the output.

为实现上述方法,本发明实施例还提供了一种带滤波的比特同步映射处理装置,如图3所示,该装置包括获取模块31、判别模块32、替换模块33、映射输出模块34;其中,In order to realize the above method, the embodiment of the present invention also provides a bit synchronous mapping processing device with filtering, as shown in Figure 3, the device includes an acquisition module 31, a discrimination module 32, a replacement module 33, and a mapping output module 34; wherein ,

获取模块31,用于根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;The obtaining module 31 is used to obtain the system clock number Pserver value according to the frame boundary value, and the Pserver value corresponding to the previous k frames is stored in the mean value filter in order to obtain the mean value Pserver_average;

判别模块32,用于判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围;Discrimination module 32, is used for discriminating whether the mean value Pserver_average that obtains currently exceeds the tolerance range of standard denominator value;

替换模块33,用于在所述判别模块32判别确定超出标准分母值的容忍范围时,用所述标准分母值替换当前得到的均值Pserver_average;A replacement module 33, configured to replace the currently obtained mean value Pserver_average with the standard denominator value when the judgment module 32 judges that it exceeds the tolerance range of the standard denominator value;

映射输出模块34,用于将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分/差动法则映射输出ODUk帧缺口。The mapping output module 34 is configured to use the mean value Pserver_average as a denominator and the number of detected ODUk frame gaps as a numerator, and map and output the ODUk frame gaps according to the integral/differential rule.

这里,所述获取模块31中根据帧边界值获取Pserver值,包括:将一个ODUk帧净荷对应的客户业务缺口个数作为帧边界值,根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。Here, obtaining the Pserver value according to the frame boundary value in the acquisition module 31 includes: taking the number of customer service gaps corresponding to an ODUk frame payload as the frame boundary value, and counting the number of corresponding system clocks according to the frame boundary value number to get the Pserver value.

这里,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围。Here, a frequency offset detection circuit is used to judge whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value.

其中,所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母。Wherein, the standard denominator value is a standard natural vibration denominator obtained when the output frequency deviation is 0 ppm.

在实际应用中,所述获取模块31、判别模块32、替换模块33、映射输出模块34均可由位于带滤波的映射芯片上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In practical applications, the acquisition module 31, the discrimination module 32, the replacement module 33, and the mapping output module 34 can be composed of a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), Digital Signal Processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA, Field Programmable Gate Array).

本发明根据帧边界值获取Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average;判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则用所述标准分母值替换当前得到的均值Pserver_average,将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据sigma/delta法则映射输出ODUk帧缺口。如此,不仅能使输出的ODUk帧缺口在符合频偏要求的范围内跟随客户侧业务,而且还能最大程度地消除客户业务速率的抖动,从而保证输出的ODUk帧的速率不超过协议规定的频偏要求。The present invention obtains the Pserver value according to the frame boundary value, stores the Pserver values corresponding to the previous k frames into the mean value filter in turn, and obtains the mean value Pserver_average; judges whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, and if so, uses the The standard denominator value replaces the currently obtained mean value Pserver_average, using the mean value Pserver_average as the denominator, using the number of detected ODUk frame gaps as the numerator, and mapping and outputting the ODUk frame gaps according to the sigma/delta rule. In this way, not only can the output ODUk frame notch follow the client-side service within the range that meets the frequency offset requirements, but also eliminate the jitter of the client service rate to the greatest extent, so as to ensure that the output ODUk frame rate does not exceed the frequency specified by the protocol. partial request.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (6)

1.一种带滤波的比特同步映射处理方法,其特征在于,所述方法包括:1. A bit synchronous mapping processing method with filtering, is characterized in that, described method comprises: 根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average,k为自然数;Obtain the value of the number of system clocks Pserver according to the frame boundary value, and store the Pserver values corresponding to the previous k frames in the mean value filter in order to obtain the mean value Pserver_average, where k is a natural number; 判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围,如果超出,则用所述标准分母值替换当前得到的均值Pserver_average,将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分-差动法则映射输出ODUk帧缺口;Determine whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value, and if so, replace the currently obtained mean value Pserver_average with the standard denominator value, use the described mean value Pserver_average as the denominator, and detect the number of ODUk frame gaps obtained As a numerator, map the output ODUk frame gap according to the integral-differential rule; 其中,所述帧边界值是指一个ODUk帧净荷对应的客户业务缺口个数;Wherein, the frame boundary value refers to the number of customer service gaps corresponding to an ODUk frame payload; 所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母,自振分母=系统时钟×ODUk帧的位宽×ODUk帧缺口的个数÷ODUk帧的速率。The standard denominator value is the standard self-oscillating denominator obtained when the output frequency deviation is 0 ppm, and the self-oscillating denominator=system clock×the bit width of the ODUk frame×the number of gaps in the ODUk frame÷the rate of the ODUk frame. 2.根据权利要求1所述的方法,其特征在于,所述根据帧边界值获取Pserver值,包括:根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。2. The method according to claim 1, wherein said obtaining the Pserver value according to the frame boundary value comprises: counting the number of corresponding system clocks according to the frame boundary value to obtain the Pserver value. 3.根据权利要求1所述的方法,其特征在于,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围。3. The method according to claim 1, characterized in that a frequency offset detection circuit is used to judge whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value. 4.一种带滤波的比特同步映射处理装置,其特征在于,所述装置包括:4. A bit synchronous mapping processing device with filtering, it is characterized in that, described device comprises: 获取模块,用于根据帧边界值获取系统时钟个数Pserver值,将前k帧对应的Pserver值依次存入均值滤波器,得到均值Pserver_average,k为自然数;The obtaining module is used to obtain the system clock number Pserver value according to the frame boundary value, and the Pserver value corresponding to the previous k frames is stored in the mean value filter in sequence to obtain the mean value Pserver_average, and k is a natural number; 判别模块,用于判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围;Discrimination module, is used for discriminating whether the mean value Pserver_average that obtains currently exceeds the tolerance range of standard denominator value; 替换模块,用于在所述判别模块判别确定超出标准分母值的容忍范围时,用所述标准分母值替换当前得到的均值Pserver_average;A replacement module, used to replace the currently obtained mean value Pserver_average with the standard denominator value when the judgment module judges that it exceeds the tolerance range of the standard denominator value; 映射输出模块,用于将所述均值Pserver_average作为分母,将检测得到的ODUk帧缺口的个数作为分子,根据积分-差动法则映射输出ODUk帧缺口;The mapping output module is used to use the mean value Pserver_average as a denominator, and the number of detected ODUk frame gaps as a numerator, and map and output ODUk frame gaps according to the integral-differential rule; 其中,所述帧边界值是指一个ODUk帧净荷对应的客户业务缺口个数;Wherein, the frame boundary value refers to the number of customer service gaps corresponding to an ODUk frame payload; 所述标准分母值是在输出频偏为0ppm时,得到的标准的自振分母,自振分母=系统时钟×ODUk帧的位宽×ODUk帧缺口的个数÷ODUk帧的速率。The standard denominator value is the standard self-oscillating denominator obtained when the output frequency deviation is 0 ppm, and the self-oscillating denominator=system clock×the bit width of the ODUk frame×the number of gaps in the ODUk frame÷the rate of the ODUk frame. 5.根据权利要求4所述的装置,其特征在于,所述获取模块中根据帧边界值获取Pserver值,包括:根据所述帧边界值来统计对应的系统时钟的个数,得到Pserver值。5. The device according to claim 4, wherein the acquisition module acquires the Pserver value according to the frame boundary value, comprising: counting the number of corresponding system clocks according to the frame boundary value to obtain the Pserver value. 6.根据权利要求4所述的装置,其特征在于,采用频偏检测电路判别当前得到的均值Pserver_average是否超出标准分母值的容忍范围。6 . The device according to claim 4 , wherein a frequency offset detection circuit is used to judge whether the currently obtained mean value Pserver_average exceeds the tolerance range of the standard denominator value.
CN201510761157.0A 2015-11-10 2015-11-10 A kind of the bit synchronous mapping treatment method and device of band filtering Active CN106685561B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510761157.0A CN106685561B (en) 2015-11-10 2015-11-10 A kind of the bit synchronous mapping treatment method and device of band filtering
PCT/CN2016/103513 WO2017080361A1 (en) 2015-11-10 2016-10-27 Bit-synchronous mapping processing method and apparatus for band filtering, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510761157.0A CN106685561B (en) 2015-11-10 2015-11-10 A kind of the bit synchronous mapping treatment method and device of band filtering

Publications (2)

Publication Number Publication Date
CN106685561A CN106685561A (en) 2017-05-17
CN106685561B true CN106685561B (en) 2018-12-04

Family

ID=58694732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510761157.0A Active CN106685561B (en) 2015-11-10 2015-11-10 A kind of the bit synchronous mapping treatment method and device of band filtering

Country Status (2)

Country Link
CN (1) CN106685561B (en)
WO (1) WO2017080361A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968063A (en) * 2006-10-26 2007-05-23 华为技术有限公司 Clock recovery method and apparatus
CN101547055A (en) * 2009-04-25 2009-09-30 华为技术有限公司 Method and device for transmitting data in optical transfer network
CN103731223A (en) * 2012-10-16 2014-04-16 中兴通讯股份有限公司 Method and device for recovering clock

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3570507B2 (en) * 2001-03-28 2004-09-29 日本電気株式会社 STM mapping circuit and method
CN101651512B (en) * 2009-09-24 2013-06-05 中兴通讯股份有限公司 Method, system and device for realizing transparent transmission of data traffic
JP5999182B2 (en) * 2012-07-20 2016-09-28 富士通株式会社 Transmission equipment
EP2747318B1 (en) * 2012-12-19 2015-03-25 Alcatel Lucent Method and apparatus for transmitting signals in an optical transport network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968063A (en) * 2006-10-26 2007-05-23 华为技术有限公司 Clock recovery method and apparatus
CN101547055A (en) * 2009-04-25 2009-09-30 华为技术有限公司 Method and device for transmitting data in optical transfer network
CN103731223A (en) * 2012-10-16 2014-04-16 中兴通讯股份有限公司 Method and device for recovering clock

Also Published As

Publication number Publication date
WO2017080361A1 (en) 2017-05-18
CN106685561A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US9742549B1 (en) Apparatus and methods for asynchronous clock mapping
JP2018517371A (en) Data processing method, communication device, and communication system
EP3544210A1 (en) Clock transmission method and related device
US20160007103A1 (en) Optical Channel Data Unit Service Transmission Apparatus and Method
CN1968063B (en) A method and device for implementing clock recovery
CN111052632A (en) Method, device and system for measuring time delay in optical transport network
US8644347B2 (en) Transporting optical data units in an optical transport network
US7564875B2 (en) Techniques to map and de-map signals
CN105323053B (en) The method and device of business clock transparent transmission
JP5994579B2 (en) Frame conversion apparatus, frame conversion method, and transmission apparatus
CN111698708B (en) Method and device for service type adaptation in transmission system
CN106685561B (en) A kind of the bit synchronous mapping treatment method and device of band filtering
US12074696B2 (en) Method and apparatus for processing service bitstream
CN105007134A (en) Method and device for restraining packet network PDV (Packet Delay Variation) noise and slave clock equipment
CN105515749B (en) A kind of method and system for realizing clock transparent transmission during asynchronous mapping
CN106549732B (en) A kind of data processing system and wave-division device
WO2017219979A1 (en) Service processing method and device
EP2498446A1 (en) Method and apparatus compatible with 10ge lan port and wan port
WO2017152626A1 (en) Method for generating cn value by gmp mapping in otn
CN103023597B (en) The method and apparatus of optical network data transmission
JP6402562B2 (en) Optical transmission apparatus and transmission frame generation method
CN105553601B (en) SDH framer design method for highly reusable verification platform
WO2024221839A1 (en) Rate regeneration method and apparatus for client signal
CN106550289B (en) A method, device and client for providing a reference clock for a serial-to-parallel converter
JP2013121003A (en) Data smoothing circuit and data smoothing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170517

Assignee: Xi'an Chris Semiconductor Technology Co. Ltd.

Assignor: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Contract record no.: 2019440020036

Denomination of invention: Method and apparatus for processing Bit-synchronous mapping for band filtering

Granted publication date: 20181204

License type: Common License

Record date: 20190619

EE01 Entry into force of recordation of patent licensing contract