[go: up one dir, main page]

CN1855786B - A branch signal recovery method and device based on non-integer leakage rate - Google Patents

A branch signal recovery method and device based on non-integer leakage rate Download PDF

Info

Publication number
CN1855786B
CN1855786B CN2005100877086A CN200510087708A CN1855786B CN 1855786 B CN1855786 B CN 1855786B CN 2005100877086 A CN2005100877086 A CN 2005100877086A CN 200510087708 A CN200510087708 A CN 200510087708A CN 1855786 B CN1855786 B CN 1855786B
Authority
CN
China
Prior art keywords
signal
leakage
bit
value
branch
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
Application number
CN2005100877086A
Other languages
Chinese (zh)
Other versions
CN1855786A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2005100877086A priority Critical patent/CN1855786B/en
Priority to PCT/CN2005/001831 priority patent/WO2007016823A1/en
Publication of CN1855786A publication Critical patent/CN1855786A/en
Application granted granted Critical
Publication of CN1855786B publication Critical patent/CN1855786B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

本发明公开一种支路信号恢复时非整数泄露率的处理方法及其装置,用缓存器对解映射出的支路信号缓存,再通过信号平滑模块产生的地址信号将其均匀地读取。该信号平滑模块先计算选定单位时间内实际解映射出的支路信号相对于标准速率支路信号增减的比特数T,确定要泄漏的比特数T;由该T值获取对应泄漏率的整数部分M0和初始余数部分N0,计算出比特泄漏间隔,在单位时间内将比特数T均匀地全部泄漏掉;每经过一个比特泄漏间隔时间产生一个泄漏脉冲信号,将其与标准速率的均匀脉冲信号叠加并对叠加信号的脉冲计数,从而产生均匀变化的读地址将缓存的支路信号读出。采用本发明方法,可使得处理后的支路信号经一次精确泄漏后具有更好的平滑性。

Figure 200510087708

The invention discloses a method and device for processing non-integer leakage rate when branch signal recovers. The demapped branch signal is buffered by a buffer, and then uniformly read by an address signal generated by a signal smoothing module. The signal smoothing module first calculates the bit number T of the branch signal that is actually demapped in the selected unit time relative to the standard rate branch signal, and determines the bit number T to be leaked; the value of the corresponding leak rate is obtained from the T value The integer part M0 and the initial remainder part N0 calculate the bit leakage interval, and leak all the bits T evenly in unit time; every time a bit leakage interval passes, a leakage pulse signal is generated, and it is compared with the standard rate uniform pulse signal The signals are superimposed and the pulses of the superimposed signals are counted, thereby generating evenly changing read addresses to read out the buffered branch signals. By adopting the method of the present invention, the processed branch signal can have better smoothness after being accurately leaked once.

Figure 200510087708

Description

一种基于非整数泄露率的支路信号恢复方法及其装置 A branch signal recovery method and device based on non-integer leakage rate

技术领域technical field

本发明涉及从SDH(同步数字体系)的VC(虚容器)中恢复出PDH(准同步数字体系)信号的技术,尤其涉及对信号进行平滑时基于非整数泄露率的支路信号恢复方法及实现装置。The present invention relates to the technique of recovering PDH (quasi-synchronous digital hierarchy) signal from VC (virtual container) of SDH (synchronous digital hierarchy), especially relates to the branch signal recovery method and its realization based on the non-integer leakage rate when smoothing the signal device.

背景技术Background technique

在SDH体系中传送PDH支路信号(以后简称支路信号)的时候,根据标准,首先需要将PDH信号(被看做净荷)通过映射按一定的映射结构适配到SDH的虚容器VC中,支路信号与标准VC速率的差异经过映射调整比特的控制来消除,当调整比特指示调整位置有效的时候,调整有效位置可以装入净荷,反之,装入填充比特。经过这样的适配后支路信号就被封装在VC中,而VC信号能够在SDH的网络体系里面独立地进行传送,复用和交叉连接,把支路信号送到需要到达的地方。到达目的地后,需要将支路信号从VC里面提取出来,这一过程称为解映射,而为了将从VC中恢复出均匀的支路信号来,就需要恢复出支路信号原来均匀的时钟信号。而由于支路信号在封装进VC的时候已经失去了其时钟信息,需要从解映射的数据流中再恢复支路信号的时钟,但按照映射帧结构去掉塞入比特和开销比特解映射后得出的数据流,是一个带缺口的不规则数据流。When transmitting PDH tributary signals (hereinafter referred to as tributary signals) in the SDH system, according to the standard, it is first necessary to adapt the PDH signal (considered as the payload) to the SDH virtual container VC through mapping according to a certain mapping structure , the difference between the tributary signal and the standard VC rate is eliminated through the control of the mapping adjustment bit. When the adjustment bit indicates that the adjustment position is valid, the effective adjustment position can be loaded into the payload, otherwise, the stuffing bit is loaded. After such adaptation, the tributary signal is encapsulated in VC, and the VC signal can be independently transmitted, multiplexed and cross-connected in the SDH network system, and the tributary signal is sent to the place where it needs to reach. After arriving at the destination, the branch signal needs to be extracted from the VC. This process is called demapping. In order to recover a uniform branch signal from the VC, it is necessary to restore the original uniform clock of the branch signal. Signal. Since the tributary signal has lost its clock information when it is encapsulated into the VC, it is necessary to recover the clock of the tributary signal from the demapped data stream. However, after removing the stuffed bits and overhead bits and demapping according to the mapping frame structure, we get The outgoing data stream is an irregular data stream with gaps.

而且,支路信号在SDH体系中传递时由于指针调整的作用,当封装支路信号的VC在SDH系统传递的过程中由于网络本身的不同步或失步出现指针调整时,VC的位置在SDH帧结构出现3个字节或是1个字节的变化,导致这一帧里实际VC内容有多达8或24个比特的变化,因此恢复出来的数据流是一个不规则的数据流,而根据此数据流恢复出的支路信号时钟具有较大的抖动值。所以在解映射时,降低这种由于信号流相位跃变导致恢复出来的信号抖动过大是这一过程中的一个关键问题。Moreover, when the tributary signal is transmitted in the SDH system, due to the function of pointer adjustment, when the VC that encapsulates the tributary signal is in the process of transmitting the SDH system due to the asynchronous or out-of-synchronization of the network itself, the pointer adjustment occurs, the position of the VC is in the SDH A change of 3 bytes or 1 byte in the frame structure results in a change of up to 8 or 24 bits in the actual VC content in this frame, so the recovered data stream is an irregular data stream, and The tributary signal clock recovered from the data flow has a relatively large jitter value. Therefore, during demapping, reducing the excessive jitter of the recovered signal due to the phase jump of the signal flow is a key issue in this process.

因此要降低恢复时钟的抖动,就需要对恢复的信号进行平滑处理,对于一次指针调整带来的信息比特的变化值,可以考虑将这些指针调整带来变化的比特数先保存起来(可能是多了或者少了),然后再将它们一次一个比特地均匀释放。而整个过程相当于将集中的相位变化“分散”成多次较小的变化。相当于像水库一样,将一次的洪流先存放起来,然后再逐渐慢慢泄漏出去,因此称为“泄漏”。每一次泄漏掉一个比特所需要的单位时间则称之为泄漏率。支路信号通过泄漏处理后,信号将变得均匀,从而可以得出抖动较小的时钟信号。Therefore, in order to reduce the jitter of the recovered clock, it is necessary to smooth the recovered signal. For the change value of information bits brought about by a pointer adjustment, it can be considered to save the number of bits changed by these pointer adjustments first (possibly multiple more or less), and then release them evenly, one bit at a time. The whole process is equivalent to "dispersing" the concentrated phase change into multiple smaller changes. It is equivalent to storing a torrent first like a reservoir, and then gradually leaking out, so it is called "leakage". The unit time required to leak one bit each time is called the leak rate. After the branch signal is processed by leakage, the signal will become uniform, so that a clock signal with less jitter can be obtained.

但现有技术对支路信号进行泄漏的处理过程中,却存在以下缺点:However, the prior art has the following disadvantages in the process of leaking branch signals:

1.对于计算出来的泄漏率取整数部分来进行泄漏平滑,而实际上泄漏率大多是一个非整数数值,这样使得在只用泄漏率的整数部分来泄漏积累比特的时候,出现泄漏次数多于需要泄漏的比特数,不能精确泄漏的问题。1. Take the integer part of the calculated leak rate to perform leak smoothing, but in fact the leak rate is mostly a non-integer value, so that when only the integer part of the leak rate is used to leak the accumulated bits, the number of leaks is more than The number of bits that need to be leaked cannot be leaked precisely.

2.由于上一问题的存在,现有技术中需要额外的电路来消除过泄漏比特影响,增加了电路的复杂性。2. Due to the existence of the above problem, an additional circuit is required in the prior art to eliminate the influence of over-leakage bits, which increases the complexity of the circuit.

3.泄漏率的计算需要外部处理器来完成。3. The calculation of the leakage rate requires an external processor to complete.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种基于非整数泄露率的支路信号恢复方法,使得处理后的支路信号经一次精确泄漏后具有更好的平滑性。本发明还要提供一种可实现该方法的支路信号恢复装置。The technical problem to be solved by the present invention is to provide a branch signal recovery method based on a non-integer leakage rate, so that the processed branch signal has better smoothness after a precise leak. The present invention also provides a branch signal recovery device capable of realizing the method.

为了解决上述技术问题,本发明提供了一种基于非整数泄露率的支路信号恢复方法,包括以下步骤:In order to solve the above technical problems, the present invention provides a branch signal recovery method based on a non-integer leakage rate, comprising the following steps:

(a)从虚容器中解映射出支路信号并缓存;(a) demap branch signals from the virtual container and cache them;

(b)计算出每一个选定的单位时间内,实际解映射出的支路信号相对于其标准速率支路信号所增加或减少的比特数T,并根据该T值确定下一个单位时间内要泄漏的比特数T;(b) Calculate the number of bits T increased or decreased by the actual demapped tributary signal relative to its standard rate tributary signal for each selected unit time, and determine the next unit time according to the T value The number of bits T to be leaked;

(c)根据要泄漏的比特数T和所述单位时间内包含的最小泄漏间隔数,得到T对应的泄漏率,包括整数部分M0和初始余数部分N0,具体地,用单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T就可得到该T对应的泄漏率,其中,所述单位时间是指步骤(b)中的每一个选定的单位时间,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;(c) According to the number of bits T to be leaked and the minimum number of leak intervals included in the unit time, the leak rate corresponding to T is obtained, including the integer part M0 and the initial remainder part N0. The minimum leakage interval number divided by the bit number T that needs to be leaked can obtain the leakage rate corresponding to this T, wherein the unit time refers to each selected unit time in step (b), and the minimum leakage interval is Refers to the time corresponding to the signal structure segment that can appear repeatedly in the signal flow;

(d)在每一个单位时间内,根据泄漏率的整数部分M0和初始余数部分N0算出为最小泄漏间隔整数倍的比特泄漏间隔并使其均匀变化,在该单位时间内将要泄漏的比特数T按当前的比特泄漏间隔逐一泄漏掉,具体地,以N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当该累加的值<T时,以M0为下一个比特释放的比特泄漏间隔,而在该累加的值≥T时,以M0+1为下一个比特释放的比特泄漏间隔并将该累加的余数部分值减去T;(d) In each unit time, calculate the bit leakage interval that is an integer multiple of the minimum leakage interval according to the integer part M0 of the leakage rate and the initial remainder part N0 and make it change uniformly, the number of bits T to be leaked in this unit time Leak out one by one according to the current bit leakage interval, specifically, use N0 as the increment and initial value, accumulate the remainder once every time a bit leakage interval passes, and when the accumulated value<T, use M0 as the next bit release The bit leakage interval, and when the accumulated value ≥ T, take M0+1 as the bit leakage interval of the next bit release and subtract T from the accumulated remainder value;

(e)每经过一个比特泄漏间隔产生一个与T值正负一致的泄漏脉冲信号,将该泄漏脉冲信号与具有所述支路信号标准速率的均匀脉冲信号相叠加,并对叠加信号的脉冲累加计数,得到均匀变化的地址信号,用该地址信号将缓存的所述支路信号读出;(e) Generate a leakage pulse signal consistent with the positive and negative values of T every time a bit leakage interval passes, superimpose the leakage pulse signal with the uniform pulse signal having the standard rate of the branch signal, and accumulate the pulses of the superimposed signal Counting to obtain a uniformly changing address signal, using the address signal to read out the cached branch signal;

(f)利用所述计数产生的均匀地址信号将读出的支路信号再写入另一缓存器二次缓存,并将该地址信号作为鉴相信号以恢复出均匀时钟,然后用该均匀时钟读取二次缓存的支路信号,恢复出最终需要的均匀支路信号。(f) Utilize the uniform address signal generated by the counting to write the read branch signal into another register for secondary buffering, and use the address signal as a phase detection signal to recover a uniform clock, and then use the uniform clock Read the secondary cached branch signals to recover the final required uniform branch signals.

进一步地,上述支路信号恢复方法还可具有以下特点:所述步骤(e)中,是对所述最小泄漏间隔计数,在计数值等于所述比特泄漏间隔值时,产生一个正或负的泄漏脉冲信号并重新开始计数。Further, the above branch signal recovery method may also have the following characteristics: in the step (e), the minimum leakage interval is counted, and when the count value is equal to the bit leakage interval value, a positive or negative Leak the pulse signal and start counting again.

进一步地,上述支路信号恢复方法还可具有以下特点:所述步骤(b)中,是对当前单位时间和此前若干连续单位时间的所有T值取均值,来确定所述要泄漏的比特数T。Further, the above-mentioned branch signal recovery method may also have the following characteristics: in the step (b), the average value of all T values of the current unit time and previous several consecutive unit times is taken to determine the number of bits to be leaked T.

进一步地,上述支路信号恢复方法还可具有以下特点:所述步骤(c)中,所述泄漏率是根据T值从存储单元中直接取出的,该存储单元预先存储了所有可能的T值所对应的泄漏率。Further, the above-mentioned branch signal recovery method may also have the following characteristics: in the step (c), the leakage rate is directly taken out from the storage unit according to the T value, and the storage unit pre-stores all possible T values The corresponding leakage rate.

进一步地,上述支路信号恢复方法还可具有以下特点:所述步骤(e)将所述泄漏脉冲信号和所述标准速率的均匀脉冲信号叠加时,需要将两者的脉冲信号错开,避免脉冲的重叠,且在对该两者的叠加信号计数时,每出现一个标准速率信号脉冲和正泄漏脉冲,计数加1,每出现一个负泄漏脉冲,计数减1.Further, the above branch signal recovery method may also have the following characteristics: when the step (e) superimposes the leakage pulse signal and the uniform pulse signal of the standard rate, it is necessary to stagger the pulse signals of the two to avoid pulse , and when counting the superimposed signals of the two, each time a standard rate signal pulse and a positive leakage pulse appear, the count increases by 1, and each time a negative leakage pulse occurs, the count decreases by 1.

进一步地,上述支路信号恢复方法还可具有以下特点:为了实现每出现一个负泄漏脉冲计数减1,在对高速时钟分频得到所述标准速率的脉冲信号时,使该脉冲信号在最小泄漏间隔内的实际脉冲数比其标准数目少一个,如果在一个最小泄漏间隔内所述叠加信号中没有负泄漏脉冲,对计数产生的读地址再加1,如果有负泄漏脉冲,则计数产生的读地址保持不变。Further, the above-mentioned branch signal recovery method can also have the following characteristics: in order to realize that the pulse count of each negative leakage is reduced by 1, when the high-speed clock is frequency-divided to obtain the pulse signal of the standard rate, the pulse signal is made at the minimum leakage The actual number of pulses in the interval is one less than its standard number. If there are no negative leakage pulses in the superimposed signal within a minimum leakage interval, add 1 to the read address generated by the count. If there is a negative leakage pulse, the count generated by the The read address remains unchanged.

为了实现上述方法,本发明提供了一种基于非整数泄露率的支路信号恢复装置,包括用于缓存解映射后不规则支路信号的第一级缓存器模块和用于提供地址信号将缓存的支路信号读出的信号平滑模块,还包括一个与所述第一级缓存器模块连接的二级缓存器模块,其特征在于,所述信号平滑模块进一步包括调整影响比特计数单元、泄漏间隔计算单元和泄漏实现单元,所述二级缓存器模块用于缓存从所述第一级缓存器模块读出的支路信号,并通过地址鉴相恢复出的均匀的支路时钟信号将其读出,其中:In order to realize the above method, the present invention provides a branch signal restoration device based on a non-integer leak rate, including a first-level buffer module for buffering the irregular branch signal after demapping and a buffer module for providing an address signal to buffer The signal smoothing module of the branch signal readout also includes a secondary buffer module connected with the first-level buffer module, it is characterized in that, the signal smoothing module further includes adjusting the influence bit counting unit, leakage interval A calculation unit and a leakage realization unit, the secondary buffer module is used to buffer the branch signal read from the first level buffer module, and read it through the uniform branch clock signal recovered by address phase detection out, of which:

所述调整影响比特计数单元用于计算选定单位时间内实际解映射出的支路信号相对于标准速率支路信号增加或减少的比特数T,并根据该T值确定并输出下一单位时间要泄漏的比特数T;The adjustment-affected bit counting unit is used to calculate the number of bits T increased or decreased by the branch signal actually demapped in the selected unit time relative to the standard rate branch signal, and determine and output the next unit time according to the T value The number of bits T to be leaked;

所述泄漏间隔计算单元用于在每一个单位时间内,根据泄漏率的整数部分M0和初始余数部分N0计算比特泄漏间隔并使其均匀变化,在该单位时间内将要泄漏的比特数T按当前的比特泄漏间隔逐一泄漏掉;The leakage interval calculation unit is used to calculate the bit leakage interval according to the integer part M0 of the leakage rate and the initial remainder part N0 in each unit time and make it change uniformly, and the number T of bits to be leaked in the unit time is calculated according to the current The bit leakage interval of is leaked one by one;

所述泄漏实现单元用于每经过一个比特泄漏间隔产生一个与T值正负一致的泄漏脉冲信号,将该泄漏信号与具有所述支路信号标准速率的均匀脉冲信号相叠加,并对叠加信号的脉冲累加计数,得到均匀变化的地址信号,用该地址将缓存的所述支路信号读出。The leakage realization unit is used to generate a leakage pulse signal consistent with the positive and negative values of T every time a bit leakage interval passes, superimpose the leakage signal with a uniform pulse signal having the standard rate of the branch signal, and perform the superimposed signal The pulses are accumulated and counted to obtain a uniformly changing address signal, and the buffered branch signal is read out using the address.

进一步地,上述支路信号恢复装置还可具有以下特点:所述调整影响比特计数单元还包括一个滑动平均子单元,用于对当前单位时间和此前n-1个连续单位时间的所有T值取均值得到所述要泄漏的比特数T。Further, the above-mentioned branch signal recovery device may also have the following characteristics: the adjustment affected bit counting unit further includes a sliding average subunit, which is used to calculate the current unit time and all T values of the previous n-1 consecutive unit times The mean value gives the number T of bits to be leaked.

进一步地,上述支路信号恢复装置还可具有以下特点:所述泄漏间隔计算单元包括泄漏率获取子单元、逻辑运算子单元和选择器,其中:Further, the above-mentioned branch signal recovery device may also have the following characteristics: the leakage interval calculation unit includes a leakage rate acquisition subunit, a logic operation subunit and a selector, wherein:

所述泄漏率获取子单元,用于根据要泄漏的比特数T得到包括整数部分M0和初始余数部分N0的泄漏率,具体地,用单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T就可得到该T对应的泄漏率,其中,所述单位时间是指选定单位时间,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;The leakage rate obtaining subunit is used to obtain the leakage rate including the integer part M0 and the initial remainder part N0 according to the number of bits T to be leaked, specifically, divide the minimum number of leaking intervals that can be transmitted per unit time by the number of bits that need to be leaked The number of bits T can obtain the leakage rate corresponding to this T, wherein the unit time refers to the selected unit time, and the minimum leakage interval refers to the time corresponding to the signal structure segment that can reappear in the signal stream;

所述逻辑运算子单元,用于以N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当该累加的值<T时,指示所述选择器选通M0值输出,而在该累加的值≥T时,指示所述选择器选通M0+1值输出并将该累加的余数部分值减去T;The logic operation subunit is used to use N0 as an increment and an initial value to accumulate the remainder once after a bit leakage interval, and when the accumulated value<T, instruct the selector to strobe the M0 value output, And when the accumulated value ≥ T, instruct the selector to strobe the M0+1 value output and subtract T from the accumulated remainder part value;

所述选择器,用于根据所述逻辑运算子单元的指示信号从M0和M0+1中选择一个作为下一个比特释放的比特泄漏间隔值输出。The selector is configured to select one of M0 and M0+1 according to the indication signal of the logical operation subunit to output as the bit leakage interval value for the next bit release.

进一步地,上述支路信号恢复装置还可具有以下特点:所述泄漏实现单元包括:最小泄漏间隔计数器,用于对经过的最小泄漏间隔计数并在输出泄漏脉冲信号后清零,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;比较器,用于比较所述最小泄漏间隔计数器的计数值和所述比特泄漏间隔值,在两者相等时产生一个与T值正负一致的泄漏脉冲信号;分频器,用于对高速时钟分频得到具有所述支路信号标准速率的均匀脉冲信号;脉冲计数器,用于将所述均匀脉冲信号和泄漏脉冲信号叠加并对叠加信号的脉冲计数,计数结果作为所述第一级缓存器模块的读地址信号输出.Further, the above-mentioned branch signal recovery device may also have the following characteristics: the leakage realization unit includes: a minimum leakage interval counter, which is used to count the elapsed minimum leakage intervals and reset to zero after outputting a leakage pulse signal, the minimum leakage The interval refers to the time corresponding to the signal structure segment that can appear repeatedly in the signal stream; the comparator is used to compare the count value of the minimum leakage interval counter and the bit leakage interval value, and generate a T value when the two are equal A leakage pulse signal with consistent positive and negative; a frequency divider, used to divide the frequency of the high-speed clock to obtain a uniform pulse signal with the standard rate of the branch signal; a pulse counter, used to superimpose the uniform pulse signal and the leakage pulse signal and Count the pulses of the superimposed signal, and the counting result is output as the read address signal of the first-level buffer module.

进一步地,上述支路信号恢复装置还可具有以下特点:所述泄漏率获取子单元包括一个存储器,用于存放了所有可能的T值所对应的泄漏率的整数部分M0和初始余数部分值N0供取出。Further, the above-mentioned branch signal recovery device may also have the following characteristics: the leakage rate acquisition subunit includes a memory for storing the integer part M0 and the initial remainder part value N0 of the leakage rate corresponding to all possible T values For take out.

进一步地,上述支路信号恢复装置还可具有以下特点:该支路信号恢复装置的各个模块均接入了一个速率高于所述支路信号的高速时钟作为各模块进行支路信号平滑处理的基础时钟。Further, the above-mentioned branch signal recovery device can also have the following characteristics: each module of the branch signal recovery device is connected with a high-speed clock whose rate is higher than that of the branch signal as a means for each module to perform smooth processing of the branch signal base clock.

由上可知,采用本发明装置和方法通过对泄漏率余数的处理,不仅可以将选定时间内指针调整和映射调整后相对于标准速率信号增加或减少的比特数全部泄漏掉,使得泄漏更精确,同时也保证了比特泄漏间隔的平滑性,使得产生的读写地址更均匀,恢复出的支路时钟信号有较小的抖动值。进一步地,本发明装置采用纯硬件电路来实现非整数泄漏率的计算和泄漏实现,不需要外部处理器的参与,也无需电路来消除过泄漏比特的影响。As can be seen from the above, by using the device and method of the present invention to process the remainder of the leakage rate, not only can all the bits increased or decreased relative to the standard rate signal after the pointer adjustment and mapping adjustment within the selected time period be leaked, so that the leakage is more accurate , and also ensures the smoothness of the bit leakage interval, so that the generated read and write addresses are more uniform, and the recovered branch clock signal has a smaller jitter value. Furthermore, the device of the present invention uses pure hardware circuits to realize the calculation and leakage of non-integer leakage rates, without the participation of external processors, and without the need for circuits to eliminate the influence of over-leakage bits.

附图说明Description of drawings

图1是本发明实施例装置的结构示意图。图中表示求和装置,

Figure G2005100877086D00062
表示比较器。Fig. 1 is a schematic structural diagram of a device according to an embodiment of the present invention. in the picture Indicates the summing device,
Figure G2005100877086D00062
Indicates a comparator.

图2是本发明实施例方法的流程图。Fig. 2 is a flow chart of the method of the embodiment of the present invention.

具体实施方式Detailed ways

如图1所示,本实施例的泄漏平滑装置包含第一级先进先出缓存器(FIFO1)模块,第二级先进先出缓存器(FIFO2)模块以及信号平滑模块。同时为其提供一个频率高于恢复支路信号时钟频率的高速时钟,作为实现支路信号平滑处理的上述模块的基础时钟。As shown in FIG. 1 , the leakage smoothing device of this embodiment includes a first-level FIFO1 module, a second-level FIFO2 module and a signal smoothing module. At the same time, a high-speed clock whose frequency is higher than that of the recovered branch signal clock is provided as the basic clock of the above-mentioned modules for realizing the smooth processing of the branch signal.

第一级先进先出缓存器模块用于缓存解映射出的不规则的支路信号,通过信号平滑单元产生的地址将其均匀地读出,实现信号的平滑。The first-level first-in-first-out buffer module is used to buffer the demapped irregular branch signals, and read them evenly through the address generated by the signal smoothing unit to achieve signal smoothing.

第二级先进先出缓存器模块用于缓存从第一级先进先出缓存器读出的支路信号,并通过恢复出的均匀支路时钟信号将其读出。如图1所示,该均匀的支路时钟信号是利用信号平滑模块产生的均匀地址最高位与恢复时钟产生的地址信号最高位信号鉴相,通过低通滤波后控制外部电路的压腔振荡器(VCXO)而恢复的。The second-level FIFO buffer module is used for buffering the tributary signals read from the first-level FIFO buffer, and reading them out through the recovered uniform tributary clock signal. As shown in Figure 1, the uniform branch clock signal is phase-identified by the highest bit of the uniform address generated by the signal smoothing module and the highest bit of the address signal generated by the recovered clock, and then controlled by the pressure cavity oscillator of the external circuit after low-pass filtering (VCXO) and recovered.

信号平滑模块又包括:调整影响比特计数单元、泄漏间隔计算单元和泄漏实现单元。其中:The signal smoothing module further includes: an adjustment influence bit counting unit, a leakage interval calculation unit and a leakage realization unit. in:

调整影响比特计数单元用于计算选定单位时间内实际解映射出的支路信号相对于标准速率支路信号增加或减少的比特数T,对其滑动平均后输出下一单位时间要泄漏的比特数T。如图1所示,该单元中的实际信号计数器和标准速率信号计数器分别用于计算实际有效的信号比特数和标准速率支路信号的比特数,相减得到差值后,在滑动平均计算子单元对当前单位时间和此前n-1个连续单位时间的所有T值取均值得到T。Adjusting the affected bit counting unit is used to calculate the number of bits T increased or decreased by the tributary signal actually demapped in the selected unit of time relative to the standard rate tributary signal, and output the bit to be leaked in the next unit of time after its sliding average Count T. As shown in Figure 1, the actual signal counter and the standard rate signal counter in this unit are used to calculate the actual effective signal bit number and the bit number of the standard rate branch signal respectively. After subtracting the difference, the moving average calculator The unit takes the mean value of all T values of the current unit time and the previous n-1 consecutive unit times to obtain T.

泄漏间隔计算单元用于以要泄漏的比特数T为地址取出存储器中对应的包括整数部分M0和初始余数部分N0的泄漏率,以N0为初值和增量,每经过一个比特泄漏间隔对余数部分累加一次,在累加的余数部分值≥T时,将M0+1作为下一个比特释放的比特泄漏间隔输出并将累加的余数部分值减去T,在累加的余数部分值<T时,将M0作为下一个比特释放的比特泄漏间隔输出.这里的比特泄漏间隔是用两次泄漏之间的最小泄漏间隔的个数表示的.The leakage interval calculation unit is used to take the number of bits to be leaked T as the address to take out the leakage rate corresponding to the integer part M0 and the initial remainder part N0 in the memory, and take N0 as the initial value and increment, and every time a bit leakage interval passes through the remainder Partially accumulate once, when the accumulated remainder value ≥ T, output M0+1 as the bit leakage interval of the next bit release and subtract T from the accumulated remainder value, and when the accumulated remainder value <T, set M0 is output as the bit leakage interval of the next bit release. The bit leakage interval here is represented by the number of minimum leakage intervals between two leaks.

如图1所示,该单元中有一个ROM,其中存有T与其泄漏率整数M0和初始余数N0对应的索引关系表,根据T值就可以直接取出M0和N0,用一个简单的方法避免了直接用电路计算除法问题,也无需外部处理器来进行泄漏率的运算。当然通过外部处理器参与计算上述T值和比特泄漏间隔也是可以的,但对处理器的运算速度要求很高。As shown in Figure 1, there is a ROM in the unit, which stores the index relationship table corresponding to T, its leakage rate integer M0 and the initial remainder N0. According to the value of T, M0 and N0 can be directly taken out, and a simple method is used to avoid The division problem is directly calculated by the circuit, and no external processor is needed to calculate the leakage rate. Of course, it is also possible to use an external processor to participate in the calculation of the above-mentioned T value and the bit leakage interval, but the requirement for the computing speed of the processor is very high.

图中的求和装置(∑)、比较器(∑>=T)和减法器(∑-T)组成的逻辑运算子单元分别用于完成上述余数部分的累加,累加的余数部分值与T的比较,以及累加值与T的减法运算。本实施例中,泄漏实现单元的比较器在最小泄漏间隔计数和比特泄漏间隔的值相等时,会输出一个指示信号启动上述累加、比较和减法运算(图中未示出)。二选一的选择器则根据累加值和T的比较结果从M0和M0+1中选择一个作为下一个比特释放的比特泄漏间隔值输出。The logic operation sub-unit composed of the summation device (∑), comparator (∑>=T) and subtractor (∑-T) in the figure is respectively used to complete the accumulation of the above-mentioned remainder part, and the accumulated remainder part value and T comparison, and subtraction of the accumulated value from T. In this embodiment, the comparator of the leakage implementation unit outputs an indication signal to start the above accumulation, comparison and subtraction operations (not shown in the figure) when the minimum leakage interval count is equal to the value of the bit leakage interval. The one-of-two selector selects one of M0 and M0+1 according to the comparison result of the accumulated value and T, and outputs it as the bit leakage interval value for the next bit release.

泄漏实现单元用于在比特泄漏间隔值和最小泄漏间隔的计数值相等时输出与T值正负一致的泄漏脉冲信号,并与分频后得到的标准速率的均匀脉冲信号叠加,然后对叠加信号的脉冲计数,得到均匀变化的读写地址,用于FIFO1和FIFO2之间的读写以及地址鉴相。The leakage realization unit is used to output a leakage pulse signal consistent with the positive and negative values of the T value when the bit leakage interval value and the count value of the minimum leakage interval are equal, and superimposed with the uniform pulse signal of the standard rate obtained after frequency division, and then superimposing the superimposed signal Pulse counting, to obtain uniform read and write addresses, used for reading and writing between FIFO1 and FIFO2 and address phase discrimination.

从图1可以看出,该单元包括最小泄漏间隔计数器,用于对经过的最小泄漏间隔计数,在产生泄漏脉冲信号后清零重新计数;比较器,用于比较最小泄漏间隔计数和所述比特泄漏间隔的值,在两者相等时产生一个与T值正负一致的泄漏脉冲信号;分频器,用于对高速时钟分频得到具有所述支路信号标准速率的均匀脉冲信号;脉冲计数器,用于将所述均匀脉冲信号和泄漏脉冲信号叠加并对叠加信号的脉冲计数,计数的结果作为第一级和第二级缓存器之间的读写地址输出。最小泄漏间隔计数器、分频器和脉冲计数器都利用所述的高速时钟作为计数和分频的基础时钟。As can be seen from Fig. 1, the unit includes a minimum leakage interval counter, which is used to count the passed minimum leakage interval, and resets to count again after the leakage pulse signal is generated; a comparator, which is used to compare the minimum leakage interval count and the bit The value of the leakage interval, when the two are equal, a leakage pulse signal consistent with the positive and negative values of T is generated; the frequency divider is used to divide the frequency of the high-speed clock to obtain a uniform pulse signal with the standard rate of the branch signal; the pulse counter , for superimposing the uniform pulse signal and the leakage pulse signal and counting the pulses of the superimposed signal, and the counting result is output as a read-write address between the first-level and second-level buffers. The minimum leakage interval counter, the frequency divider and the pulse counter all use the high-speed clock as the basic clock for counting and frequency division.

通过上述装置,经指针调整和映射调整的实际支路信号相对于标准速率支路信号增加或减少的部分被均匀地泄漏到标准速率的支路信号上去。Through the above device, the part of the actual tributary signal adjusted by the pointer adjustment and the mapping adjustment relative to the standard rate tributary signal is evenly leaked to the standard rate tributary signal.

下面将详细介绍本实施例的泄漏方法,同时以该方法在E/T3信号平滑泄漏中的应用为实例加以说明。如图2所示,包括以下步骤:The leakage method of this embodiment will be described in detail below, and the application of this method in E/T3 signal smooth leakage is taken as an example to illustrate. As shown in Figure 2, it includes the following steps:

步骤100,从VC虚容器中解映射出支路信号并写入一级缓存;Step 100, demap the tributary signal from the VC virtual container and write it into the first-level cache;

步骤110,计算出每一个选定的单位时间内实际解映射出的支路信号相对于标准速率支路信号增加或减少的比特数T,该T值反映了指针调整和映射频偏带来的在一个单位时间内的比特变化数;Step 110, calculate the number T of bits T increased or decreased by the actually demapped tributary signal relative to the standard rate tributary signal in each selected unit time, the T value reflects the pointer adjustment and mapping frequency offset The number of bit changes in a unit of time;

实例中,选取1/3秒为单位时间,在该单位时间内根据解映射出的数据有效指示信号累加出这段时间内实际有效的信号比特数,而对标准速率E/T3信号来说,在该段时间内,对于E3有34.368*125*8000/3=11456000个bit,T3有44.736*125*8000/3=14912000个bit,用实际有效的信号比特数与E3信号的-11456000或T3信号的-14912000个比特值相加,就可以知道这段时间内实际信号比标准速率的支路信号增加或减少了多少个比特。In the example, 1/3 second is selected as the unit time, and the number of actually effective signal bits during this period is accumulated according to the demapped data valid indication signal within the unit time, while for the standard rate E/T3 signal, During this period of time, there are 34.368*125*8000/3=11456000 bits for E3, and 44.736*125*8000/3=14912000 bits for T3. Use the actual effective signal bit number and -11456000 or T3 of the E3 signal By adding the -14912000 bit values of the signal, it is possible to know how many bits the actual signal has increased or decreased compared with the standard rate tributary signal during this period.

根据标准,指针调整所允许的频偏为+-4.6ppm,PDH支路信号允许的频偏为+-20ppm,因此不管是E3或是T3信号,其指针调整和映射调整最终导致的比特变化数在一定范围之内.According to the standard, the frequency deviation allowed by pointer adjustment is +-4.6ppm, and the frequency deviation allowed by PDH branch signal is +-20ppm. Therefore, no matter it is E3 or T3 signal, the number of bit changes caused by pointer adjustment and mapping adjustment within a certain range.

步骤120,对当前单位时间和此前n-1个连续的单位时间的所有T值取均值得到T,作为下一个单位时间内要泄漏的比特数;Step 120, taking the mean value of all T values of the current unit time and the previous n-1 consecutive unit times to obtain T, as the number of bits to be leaked in the next unit time;

实例中,将8个单位时间内计算出来的数据做一个滑动平均,将前7个单位时间的值加上当前单位时间得出的值后再除以8,作为下一单位时间要泄漏的比特数,这样使得8个单位时间内的比特变化数被均分,进一步保证了每个选定的单位时间内T值的变化更具平滑性。In the example, make a sliding average of the data calculated in 8 units of time, add the value of the first 7 units of time to the value obtained by the current unit of time, and then divide it by 8, as the bit to be leaked in the next unit of time In this way, the number of bit changes in the 8 unit time is divided equally, which further ensures that the change of the T value in each selected unit time is smoother.

步骤130,根据需要泄漏的比特数T取出对应的泄漏率,包括整数部分M0和初始余数部分N0;Step 130, taking out the corresponding leakage rate according to the number T of bits to be leaked, including the integer part M0 and the initial remainder part N0;

最小泄漏间隔可根据支路信号映射帧的结构来确定,信号流中能够重复出现的信号结构段对应的时间都可以用来作为最小泄漏间隔,比如可以选取一个子帧对应的时间,因此这里的泄漏率就表示泄漏一个比特需要经过多少最小泄漏间隔。The minimum leakage interval can be determined according to the structure of the branch signal mapping frame. The time corresponding to the signal structure segment that can appear repeatedly in the signal flow can be used as the minimum leakage interval. For example, the time corresponding to a subframe can be selected, so here The leak rate indicates how many minimum leak intervals one bit needs to pass through.

根据PDH信号E3/T3的帧结构,可以看到信号是以一个子帧为单位重复发送的,E3的子帧是T3子帧长的3倍,因此可选择最小泄漏间隔为一个E3子帧对应的时间间隔。在1/3秒的时间内,有8000个E3子帧,用单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T就可得到该T对应的泄漏率,即泄漏一个比特需要间隔多少个最小时间间隔,实例中即子帧。该泄漏率的值并不一定是整数,为了精确泄漏应同时取其整数部分和余数部分。对E3信号,其泄漏率值的整数部分为M0=INT(8000/T),余数部分为N0=MOD(8000/T)。According to the frame structure of the PDH signal E3/T3, it can be seen that the signal is repeatedly sent in units of one subframe, and the subframe of E3 is three times the length of the subframe of T3, so the minimum leakage interval can be selected to correspond to one E3 subframe time interval. In 1/3 second, there are 8000 E3 subframes. Divide the minimum number of leakage intervals that can be transmitted per unit time by the number T of bits that need to be leaked to get the leakage rate corresponding to T, that is, it takes How many minimum time intervals are separated, subframes in this instance. The value of the leakage rate is not necessarily an integer, and the integer part and the remainder part should be taken at the same time for accurate leakage. For the E3 signal, the integer part of the leak rate value is M0=INT(8000/T), and the remainder part is N0=MOD(8000/T).

在介绍装置时已提到,本实施例将选定单位时间内所有可能的T值所对应的泄漏率的整数部分和余数部分的值都预先存入到ROM存储单元中,建立每一个T与对应的泄漏率整数部分M0和初始余数部分N0的索引关系表。这样根据T值就可以直接取出M0和N0。前面已指出,指针调整和映射调整最终导致的比特变化数在一定范围之内,但考虑到网络失步时候的突变影响,本实施例还将T值的范围适当扩大。When introducing the device, it has been mentioned that in this embodiment, the values of the integer part and the remainder part of the leakage rate corresponding to all possible T values in the selected unit time are pre-stored in the ROM storage unit, and each T and Corresponding index relationship table of the leak rate integer part M0 and the initial remainder part N0. In this way, M0 and N0 can be directly taken out according to the T value. It has been pointed out above that the number of bit changes ultimately caused by pointer adjustment and mapping adjustment is within a certain range, but considering the impact of sudden changes when the network is out of sync, this embodiment also appropriately expands the range of the T value.

步骤140,在每一个单位时间内,以初始余数N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当累加的余数部分值<T时,以M0为下一个比特释放的比特泄漏间隔,而在累加的余数部分值≥T时,以M0+1为下一个比特释放的比特泄漏间隔且将累加的余数值减去T;Step 140: In each unit time, use the initial remainder N0 as the increment and initial value, accumulate the remainder once every bit leakage interval, and when the accumulated remainder value < T, use M0 as the next bit release The bit leakage interval of , and when the accumulated remainder value ≥ T, take M0+1 as the bit leakage interval of the next bit release and subtract T from the accumulated remainder value;

实例中,在每一个(1/3秒)单位时间开始后,根据上一(1/3秒)计算出来的T值取出相应的M0、N0,N0作为泄漏率余数部分的初值和增量,并开始子帧累加计数,当子帧计数值等于泄漏率整数部分M0时,开始泄漏掉第一个比特,子帧计数清零重新计数,同时累加一次泄漏率的余数部分,当累加的余数值大于或等于T的时候,取下一次比特泄漏间隔为M0+1,并将余数的累加部分减去T,否则取泄漏间隔为M0。下一次当子帧计数等于比特泄漏间隔时,又泄漏掉一个比特,并重复上边的计算:子帧计数清零,累加泄漏率余数部分,得出下一次泄漏比特的间隔等。如此,直到(1/3秒)单位时间完。下一个(1/3秒)单位时间时刻开始,又根据新的T值取出相应的M0、N0开始泄漏。In the example, after the start of each (1/3 second) unit time, take the corresponding M0, N0, and N0 as the initial value and increment of the remainder of the leak rate according to the T value calculated in the previous (1/3 second) , and start subframe accumulative counting. When the subframe count value is equal to the integer part of the leakage rate M0, the first bit will be leaked, the subframe count will be reset to zero, and the remainder of the leakage rate will be accumulated once. When the accumulated remainder When the value is greater than or equal to T, take the next bit leakage interval as M0+1, and subtract T from the accumulated part of the remainder, otherwise take the leakage interval as M0. Next time when the subframe count is equal to the bit leakage interval, another bit is leaked, and the above calculation is repeated: the subframe count is cleared, and the remainder of the leakage rate is accumulated to obtain the next bit leakage interval, etc. So, until (1/3 second) unit time is over. The next (1/3 second) unit time moment begins, and the corresponding M0 and N0 are taken out according to the new T value to start leaking.

用另一个简单的例子来说明一下,假定在一个单位时间内有100个子帧,平滑处理后需泄漏的比特数T=8,则泄漏率的整数部分M0=12,初始余数部分N0=4.按本实施例方法,计算出的比特泄漏间隔依次为12,13,12,13,12,13,12,13,从而将8个比特在一个单位时间内均匀地泄漏掉.Use another simple example to illustrate, assuming that there are 100 subframes in a unit time, and the number of bits to be leaked after smoothing is T=8, then the integer part of the leakage rate M0=12, and the initial remainder part N0=4. According to the method of this embodiment, the calculated bit leakage intervals are 12, 13, 12, 13, 12, 13, 12, 13 in sequence, so that 8 bits are evenly leaked in a unit time.

步骤150,当比特泄漏间隔与最小泄漏间隔计数值相等时,产生一个正或负的泄漏脉冲(相当于泄漏一个比特的指示信号,T为正时为正的泄漏脉冲,反之为负的泄漏脉冲)并将计数值清零,将泄漏脉冲信号叠加到具有支路信号标准速率的均匀脉冲信号上,并对叠加后信号的脉冲计数,每出现一个标准速率信号脉冲和正泄漏脉冲,计数加1,每出现一个负泄漏脉冲,计数减1;Step 150, when the bit leakage interval is equal to the minimum leakage interval count value, generate a positive or negative leakage pulse (equivalent to an indication signal of a bit leakage, when T is positive, it is a positive leakage pulse, otherwise it is a negative leakage pulse ) and clear the count value, superimpose the leakage pulse signal on the uniform pulse signal with the standard rate of the branch signal, and count the pulses of the superimposed signal, every time a standard rate signal pulse and a positive leakage pulse appear, the count increases by 1, Each time a negative leakage pulse occurs, the count is decremented by 1;

实例中,基础时钟采用速率为77.76M的高速时钟。对于标准速率的支路信号部分,我们需要得到一个标准速率的均匀脉冲信号来,在每一个脉冲有效位置对读写地址加一。这个标准速率脉冲可以通过对77.76M的高速时钟均匀分频而来,只要脉冲是均匀的,读写地址累加递增就是均匀的。对于77.76M的时钟信号,在一个子帧125μs/3的时间内有3240个时钟周期,而对于标准速率的支路信号来说,速率34.368M的E3信号在相同的时间内有1432个时钟周期,速率44.736368M的T3信号则有1864个时钟周期,这就要在3240个时钟周期中均匀取出1432或1864个时钟脉冲。但实例中我们只取1431和1863个脉冲,即比标准数目少一个,原因下边介绍。In the example, the basic clock adopts a high-speed clock with a rate of 77.76M. For the branch signal part of the standard rate, we need to obtain a uniform pulse signal of the standard rate to add one to the read and write address at each pulse effective position. This standard rate pulse can be obtained by evenly dividing the frequency of the 77.76M high-speed clock. As long as the pulse is uniform, the accumulative increment of the read and write addresses is uniform. For the clock signal of 77.76M, there are 3240 clock cycles in a subframe of 125μs/3, while for the branch signal of the standard rate, the E3 signal of the rate 34.368M has 1432 clock cycles in the same time , the T3 signal with a rate of 44.736368M has 1864 clock cycles, which requires 1432 or 1864 clock pulses to be taken out evenly in 3240 clock cycles. But in the example, we only take 1431 and 1863 pulses, which is one less than the standard number, and the reason will be introduced below.

在标准速率的脉冲上,我们还要叠加上由于指针调整和映射调整使比特数目发生变化的部分,也就是要将计算得出的泄漏比特按照计算出的泄漏率均匀叠加到标准速率的脉冲上去,应该注意的是正负泄漏脉冲的位置与标准信号脉冲的位置不能重叠。因此,根据泄漏率,在每个比特泄漏的位置产生泄漏指示的脉冲,如果T为正,该脉冲为正泄漏脉冲,在该脉冲位置将读写地址加一;如果T为负,该脉冲为负泄漏脉冲,在该脉冲位置应该将读写地址减一,但实际设计中并没有直接在这个位置将地址减一。因为考虑到读写地址的减法运算反而会导致其值的来回变化,导致抖动的增加,因此,在计算标准速率比特数的时候,在一个子帧内,对于E3只取了1431个脉冲,T3取1863个脉冲,比实际的数目少了一个,这样导致的标准频率偏差为大约-700ppm,远远大与±20ppm的范围,因此,对每一个子帧对应的时间间隔内,如果没有负泄漏脉冲,读写地址再加一,而在有负泄漏脉冲的时候,读写地址保持不变,不加即可。这种方式同样达到了对每出现一个负泄漏脉冲计数减1的目的,只不过是在一个子帧内实现的,而不一定是在负泄漏脉冲产生的位置。这样就解决了负频率偏差导致的比特数减少的问题。On the standard rate pulse, we also need to superimpose the part where the number of bits changes due to pointer adjustment and mapping adjustment, that is, we need to evenly superimpose the calculated leakage bits on the standard rate pulse according to the calculated leakage rate. , it should be noted that the position of the positive and negative leakage pulses cannot overlap with the position of the standard signal pulse. Therefore, according to the leak rate, a leak indication pulse is generated at the position of each bit leak. If T is positive, the pulse is a positive leak pulse, and the read and write address is increased by one at the pulse position; if T is negative, the pulse is Negative leakage pulse, the read and write address should be decremented by one at the pulse position, but the actual design does not directly decrement the address by one at this position. Considering that the subtraction operation of the read-write address will cause its value to change back and forth, resulting in an increase in jitter, therefore, when calculating the number of bits at the standard rate, in a subframe, only 1431 pulses are taken for E3, T3 Take 1863 pulses, which is one less than the actual number, which leads to a standard frequency deviation of about -700ppm, which is much larger than the range of ±20ppm. Therefore, within the time interval corresponding to each subframe, if there is no negative leakage pulse , add one to the read and write address, and when there is a negative leakage pulse, the read and write address remains unchanged, just do not add. This approach also achieves the purpose of decrementing the count by 1 each time a negative leakage pulse occurs, but it is realized within a subframe, not necessarily at the position where the negative leakage pulse is generated. This solves the problem of bit number reduction caused by negative frequency deviation.

步骤160,将对所述叠加信号计数得到的均匀变化的信号作为读写地址,将缓存的所述支路信号平滑读出并写入二级缓存。该累加的读写地址中包含了两个部分,一个是标准速率的支路信号部分,一个是泄漏部分。Step 160, using the uniformly changing signal obtained by counting the superimposed signal as a read/write address, smoothly reading out the cached branch signal and writing it into the L2 cache. The accumulated read-write address contains two parts, one is the branch signal part of the standard rate, and the other is the leakage part.

步骤170,将所述计数产生的均匀地址信号作为鉴相信号,恢复出均匀时钟,然后用该均匀时钟读取二次缓存的支路信号,恢复出最终需要的均匀支路信号。二次缓存可以使恢复出的支路信号进一步平滑。Step 170, using the uniform address signal generated by the counting as a phase detection signal to recover a uniform clock, and then use the uniform clock to read the secondary buffered branch signals to recover the final required uniform branch signal. Secondary buffering can further smooth the recovered tributary signal.

很明显,本发明并不局限于E3,T3速率信号,作为一个通用方法,在PDH支路信号从SDH恢复的时候均可运用。通过上述方法,不仅可以将选定时间内指针调整和映射调整后相对于标准速率信号增加或减少的比特数全部泄漏掉,同时也保证了比特泄漏间隔的平滑性,因此用此方法处理后恢复出的支路时钟信号有较小的抖动值。Obviously, the present invention is not limited to E3, T3 rate signals, as a general method, it can be used when PDH tributary signals are recovered from SDH. Through the above method, not only the number of bits increased or decreased relative to the standard rate signal after the pointer adjustment and mapping adjustment within the selected time period can be leaked, but also the smoothness of the bit leakage interval is guaranteed. Therefore, after processing with this method, recovery The output tributary clock signal has a smaller jitter value.

在上述实施例的基础上,本发明还可以做各种变换,例如:对T进行滑动平均并非本发明必须的,本发明也可以不对T进行取平均值而直接应用为下一单位时间要泄漏的比特数.On the basis of the foregoing embodiments, the present invention can also perform various transformations. For example, it is not necessary for the present invention to perform a sliding average on T. The present invention can also be directly applied as the next unit time without taking the average value of T. the number of bits.

另外,在使用处部处理器计算泄漏率、比特泄漏间隔时,从逻辑上也可以将单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T的商的小数部分代替泄漏率的余数部分进行累加计算,当累加值大于1时取下一次比特泄漏间隔为M0+1并将累加的值减去1,该方案与上述实施例的方案效果等同,并且本实施例方法的计算更简单一些。In addition, when using the local processor to calculate the leakage rate and bit leakage interval, logically, the fractional part of the quotient of the minimum number of leak intervals that can be transmitted per unit time divided by the number of bits T that need to be leaked can be replaced by the fractional part of the leakage rate. The remainder part is accumulated and calculated. When the accumulated value is greater than 1, the next bit leakage interval is taken as M0+1 and the accumulated value is subtracted by 1. This scheme has the same effect as the scheme of the above-mentioned embodiment, and the calculation of the method of this embodiment is more accurate. Keep it simple.

另外,在得到均匀变化的比特泄漏间隔后,基于该比特泄漏间隔得到均匀变化的读写地址的泄漏实现装置和方法也可以采用其它的方案,如基于整数泄漏率的支路信号恢复中采用的方案。In addition, after the uniformly varying bit leakage interval is obtained, the leakage implementation device and method for obtaining uniformly varying read and write addresses based on the bit leakage interval can also adopt other schemes, such as the one used in the recovery of branch signals based on integer leakage rates. plan.

Claims (12)

1.一种基于非整数泄露率的支路信号恢复方法,包括以下步骤:1. A branch signal recovery method based on a non-integer leakage rate, comprising the following steps: (a)从虚容器中解映射出支路信号并缓存;(a) demap branch signals from the virtual container and cache them; (b)计算出每一个选定的单位时间内,实际解映射出的支路信号相对于其标准速率支路信号所增加或减少的比特数T,并根据该T值确定下一个单位时间内要泄漏的比特数T;(b) Calculate the number of bits T increased or decreased by the actual demapped tributary signal relative to its standard rate tributary signal for each selected unit time, and determine the next unit time according to the T value The number of bits T to be leaked; (c)根据要泄漏的比特数T和所述单位时间内包含的最小泄漏间隔数,得到T对应的泄漏率,包括整数部分M0和初始余数部分N0,具体地,用单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T就可得到该T对应的泄漏率,其中,所述单位时间是指步骤(b)中的每一个选定的单位时间,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;(c) According to the number of bits T to be leaked and the minimum number of leak intervals included in the unit time, the leak rate corresponding to T is obtained, including the integer part M0 and the initial remainder part N0. The minimum leakage interval number divided by the bit number T that needs to be leaked can obtain the leakage rate corresponding to this T, wherein the unit time refers to each selected unit time in step (b), and the minimum leakage interval is Refers to the time corresponding to the signal structure segment that can appear repeatedly in the signal flow; (d)在每一个单位时间内,根据泄漏率的整数部分M0和初始余数部分N0算出为最小泄漏间隔整数倍的比特泄漏间隔并使其均匀变化,在该单位时间内将要泄漏的比特数T按当前的比特泄漏间隔逐一泄漏掉,具体地,以N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当该累加的值<T时,以M0为下一个比特释放的比特泄漏间隔,而在该累加的值≥T时,以M0+1为下一个比特释放的比特泄漏间隔并将该累加的余数部分值减去T;(d) In each unit time, calculate the bit leakage interval that is an integer multiple of the minimum leakage interval according to the integer part M0 of the leakage rate and the initial remainder part N0 and make it change uniformly, the number of bits T to be leaked in this unit time Leak out one by one according to the current bit leakage interval, specifically, use N0 as the increment and initial value, accumulate the remainder once every time a bit leakage interval passes, and when the accumulated value<T, use M0 as the next bit release The bit leakage interval, and when the accumulated value ≥ T, take M0+1 as the bit leakage interval of the next bit release and subtract T from the accumulated remainder value; (e)每经过一个比特泄漏间隔产生一个与T值正负一致的泄漏脉冲信号,将该泄漏脉冲信号与具有所述支路信号标准速率的均匀脉冲信号相叠加,并对叠加信号的脉冲累加计数,得到均匀变化的地址信号,用该地址信号将缓存的所述支路信号读出;(e) Generate a leakage pulse signal consistent with the positive and negative values of T every time a bit leakage interval passes, superimpose the leakage pulse signal with the uniform pulse signal having the standard rate of the branch signal, and accumulate the pulses of the superimposed signal Counting to obtain a uniformly changing address signal, using the address signal to read out the cached branch signal; (f)利用所述计数产生的均匀地址信号将读出的支路信号再写入另一缓存器二次缓存,并将该地址信号作为鉴相信号以恢复出均匀时钟,然后用该均匀时钟读取二次缓存的支路信号,恢复出最终需要的均匀支路信号。(f) Utilize the uniform address signal generated by the counting to write the read branch signal into another register for secondary buffering, and use the address signal as a phase detection signal to recover a uniform clock, and then use the uniform clock Read the secondary cached branch signals to recover the final required uniform branch signals. 2.如权利要求1所述的支路信号恢复方法,其特征在于,所述步骤(e)中,是对所述最小泄漏间隔计数,在计数值等于所述比特泄漏间隔值时,产生一个正或负的泄漏脉冲信号并重新开始计数。2. branch signal recovery method as claimed in claim 1, is characterized in that, in described step (e), is to described minimum leakage interval counting, when counting value is equal to described bit leakage interval value, produces a Positive or negative leakage pulse signal and restart counting. 3.如权利要求1或2所述的支路信号恢复方法,其特征在于,所述步骤(b)中,是对当前单位时间和此前若干连续单位时间的所有T值取均值,来确定所述要泄漏的比特数T。3. The branch signal recovery method as claimed in claim 1 or 2, wherein, in the step (b), the average value of all T values of the current unit time and several consecutive unit times before that is used to determine the Describe the number T of bits to be leaked. 4.如权利要求1或2所述的支路信号恢复方法,其特征在于,所述步骤(c)中,所述泄漏率是根据T值从存储单元中直接取出的,该存储单元预先存储了所有可能的T值所对应的泄漏率。4. The branch signal recovery method as claimed in claim 1 or 2, wherein in the step (c), the leakage rate is directly taken out from the storage unit according to the T value, and the storage unit prestores Leakage rates for all possible values of T are given. 5.如权利要求1或2所述的支路信号恢复方法,其特征在于,所述步骤(e)将所述泄漏脉冲信号和所述标准速率的均匀脉冲信号叠加时,需要将两者的脉冲信号错开,避免脉冲的重叠,且在对该两者的叠加信号计数时,每出现一个标准速率信号脉冲和正泄漏脉冲,计数加1,每出现一个负泄漏脉冲,计数减1。5. The branch signal recovery method as claimed in claim 1 or 2, wherein, when the step (e) superimposes the leakage pulse signal and the uniform pulse signal of the standard rate, it is necessary to combine the two Pulse signals are staggered to avoid overlapping of pulses, and when counting the superimposed signals of the two, each time a standard rate signal pulse and a positive leakage pulse appear, the count increases by 1, and each time a negative leakage pulse occurs, the count decreases by 1. 6.如权利要求5所述的支路信号恢复方法,其特征在于,为了实现每出现一个负泄漏脉冲计数减1,在对高速时钟分频时,使得到的所述标准速率的均匀脉冲信号在最小泄漏间隔内的脉冲数比其标准数目少一个,如果在一个最小泄漏间隔内所述叠加信号中没有负泄漏脉冲,对计数产生的读地址再加1,如果有负泄漏脉冲,则计数产生的读地址保持不变。6. The branch signal recovery method as claimed in claim 5, characterized in that, in order to realize that a negative leakage pulse count is subtracted by 1, when dividing the frequency of the high-speed clock, the obtained uniform pulse signal of the standard rate The number of pulses in the minimum leakage interval is one less than its standard number. If there is no negative leakage pulse in the superimposed signal within a minimum leakage interval, add 1 to the read address generated by the count. If there is a negative leakage pulse, count The resulting read address remains unchanged. 7.一种基于非整数泄露率的支路信号恢复装置,包括用于缓存解映射后不规则支路信号的第一级缓存器模块和用于提供地址信号将缓存的支路信号读出的信号平滑模块,还包括一个与所述第一级缓存器模块连接的二级缓存器模块,其特征在于,所述信号平滑模块进一步包括调整影响比特计数单元、泄漏间隔计算单元和泄漏实现单元,所述二级缓存器模块用于缓存从所述第一级缓存器模块读出的支路信号,并通过地址鉴相恢复出的均匀的支路时钟信号将其读出,其中:7. A branch signal restoration device based on a non-integer leak rate, including a first-level buffer module for buffering the irregular branch signal after demapping and a device for providing an address signal to read out the buffered branch signal The signal smoothing module also includes a secondary buffer module connected to the first-level buffer module, wherein the signal smoothing module further includes an adjustment affected bit counting unit, a leakage interval calculation unit and a leakage realization unit, The secondary buffer module is used to buffer the branch signal read from the first level buffer module, and read it out through the uniform branch clock signal recovered by address phase detection, wherein: 所述调整影响比特计数单元用于计算选定单位时间内实际解映射出的支路信号相对于标准速率支路信号增加或减少的比特数T,并根据该T值确定并输出下一单位时间要泄漏的比特数T;The adjustment-affected bit counting unit is used to calculate the number of bits T increased or decreased by the branch signal actually demapped in the selected unit time relative to the standard rate branch signal, and determine and output the next unit time according to the T value The number of bits T to be leaked; 所述泄漏间隔计算单元用于在每一个单位时间内,根据泄漏率的整数部分M0和初始余数部分N0计算比特泄漏间隔并使其均匀变化,在该单位时间内将要泄漏的比特数T按当前的比特泄漏间隔逐一泄漏掉,具体地,以N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当该累加的值<T时,指示所述选择器选通M0值输出,而在该累加的值≥T时,指示所述选择器选通M0+1值输出并将该累加的余数部分值减去T;The leakage interval calculation unit is used to calculate the bit leakage interval according to the integer part M0 of the leakage rate and the initial remainder part N0 in each unit time and make it change uniformly, and the number T of bits to be leaked in the unit time is calculated according to the current The bit leakage interval of is leaked one by one, specifically, with N0 as the increment and initial value, the remainder is accumulated once every time a bit leakage interval passes, and when the accumulated value<T, the selector is instructed to gate the value of M0 output, and when the accumulated value ≥ T, instruct the selector to strobe the M0+1 value output and subtract T from the accumulated remainder value; 所述泄漏实现单元用于每经过一个比特泄漏间隔产生一个与T值正负一致的泄漏脉冲信号,将该泄漏脉冲信号与具有所述支路信号标准速率的均匀脉冲信号相叠加,并对叠加信号的脉冲累加计数,得到均匀变化的地址信号,用该地址信号将缓存的所述支路信号读出。The leakage realization unit is used to generate a leakage pulse signal consistent with the positive and negative values of T every time a bit leakage interval passes, superimpose the leakage pulse signal with the uniform pulse signal having the standard rate of the branch signal, and superimpose The pulses of the signal are accumulated and counted to obtain a uniformly changing address signal, and the buffered branch signal is read out by using the address signal. 8.如权利要求7所述的支路信号恢复装置,其特征在于,所述调整影响比特计数单元还包括一个滑动平均子单元,用于对当前单位时间和此前n-1个连续单位时间的所有T值取均值得到所述要泄漏的比特数T。8. The branch signal restoration device according to claim 7, wherein the adjustment-affected bit counting unit further comprises a sliding average subunit, which is used to compare the current unit time and previous n-1 consecutive unit times All T values are averaged to obtain the number T of bits to be leaked. 9.如权利要求7所述的支路信号恢复装置,其特征在于,所述泄漏间隔计算单元包括泄漏率获取子单元、逻辑运算子单元和选择器,其中:9. The branch signal restoration device according to claim 7, wherein the leakage interval calculation unit comprises a leakage rate acquisition subunit, a logical operation subunit and a selector, wherein: 所述泄漏率获取子单元,用于根据要泄漏的比特数T得到包括整数部分M0和初始余数部分N0的泄漏率,具体地,用单位时间内可传递的最小泄漏间隔数目除以需要泄漏的比特数T就可得到该T对应的泄漏率,其中,所述单位时间是指选定单位时间,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;The leakage rate obtaining subunit is used to obtain the leakage rate including the integer part M0 and the initial remainder part N0 according to the number of bits T to be leaked, specifically, divide the minimum number of leaking intervals that can be transmitted per unit time by the number of bits that need to be leaked The number of bits T can obtain the leakage rate corresponding to this T, wherein the unit time refers to the selected unit time, and the minimum leakage interval refers to the time corresponding to the signal structure segment that can reappear in the signal stream; 所述逻辑运算子单元,用于以N0为增量和初值,每经过一个比特泄漏间隔对余数部分累加一次,当该累加的值<T时,指示所述选择器选通M0值输出,而在该累加的值≥T时,指示所述选择器选通M0+1值输出并将该累加的余数部分值减去T;The logic operation subunit is used to use N0 as an increment and an initial value to accumulate the remainder once after a bit leakage interval, and when the accumulated value<T, instruct the selector to strobe the M0 value output, And when the accumulated value ≥ T, instruct the selector to strobe the M0+1 value output and subtract T from the accumulated remainder part value; 所述选择器,用于根据所述逻辑运算子单元的指示信号从M0和M0+1中选择一个作为下一个比特释放的比特泄漏间隔值输出。The selector is configured to select one of M0 and M0+1 according to the indication signal of the logical operation subunit to output as the bit leakage interval value for the next bit release. 10.如权利要求7所述的支路信号恢复装置,其特征在于,所述泄漏实现单元包括:最小泄漏间隔计数器,用于对经过的最小泄漏间隔计数并在输出泄漏脉冲信号后清零,所述最小泄漏间隔是指信号流中能够重复出现的信号结构段对应的时间;比较器,用于比较所述最小泄漏间隔计数器的计数值和所述比特泄漏间隔值,在两者相等时产生一个与T值正负一致的泄漏脉冲信号;分频器,用于对高速时钟分频得到具有所述支路信号标准速率的均匀脉冲信号;脉冲计数器,用于将所述均匀脉冲信号和泄漏脉冲信号叠加并对叠加信号的脉冲计数,计数结果作为所述第一级缓存器模块的读地址信号输出。10. The branch signal recovery device according to claim 7, characterized in that, the leakage realization unit comprises: a minimum leakage interval counter, which is used to count the passed minimum leakage interval and clear it after outputting the leakage pulse signal, The minimum leakage interval refers to the time corresponding to the signal structure segment that can appear repeatedly in the signal stream; the comparator is used to compare the count value of the minimum leakage interval counter with the bit leakage interval value, and generates when the two are equal A leakage pulse signal consistent with the positive and negative values of T; a frequency divider, used to divide the frequency of the high-speed clock to obtain a uniform pulse signal with the standard rate of the branch signal; a pulse counter, used to combine the uniform pulse signal and the leakage The pulse signal is superimposed and the pulses of the superimposed signal are counted, and the counting result is output as a read address signal of the first-level buffer module. 11.如权利要求9所述的支路信号恢复装置,其特征在于,所述泄漏率获取子单元包括一个存储器,用于存放了所有可能的T值所对应的泄漏率的整数部分M0和初始余数部分值N0供取出。11. The branch signal recovery device according to claim 9, wherein the leakage rate acquisition subunit includes a memory for storing the integer part M0 of the leakage rate corresponding to all possible T values and the initial The remainder part value N0 is for taking out. 12.如权利要求7、8、9或10所述的支路信号恢复装置,其特征在于,该支路信号恢复装置的各个模块均接入了一个速率高于所述支路信号的高速时钟作为各模块进行支路信号平滑处理的基础时钟。12. The branch signal recovery device as claimed in claim 7, 8, 9 or 10, wherein each module of the branch signal recovery device is connected with a high-speed clock whose rate is higher than that of the branch signal It is used as the basic clock for each module to perform branch signal smoothing.
CN2005100877086A 2005-04-19 2005-08-05 A branch signal recovery method and device based on non-integer leakage rate Expired - Fee Related CN1855786B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2005100877086A CN1855786B (en) 2005-04-19 2005-08-05 A branch signal recovery method and device based on non-integer leakage rate
PCT/CN2005/001831 WO2007016823A1 (en) 2005-08-05 2005-11-02 A recovery method of a branch signal based on the nonintegral leak rate and the apparatus thereof

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200510066007.4 2005-04-19
CN200510066007 2005-04-19
CN2005100877086A CN1855786B (en) 2005-04-19 2005-08-05 A branch signal recovery method and device based on non-integer leakage rate

Publications (2)

Publication Number Publication Date
CN1855786A CN1855786A (en) 2006-11-01
CN1855786B true CN1855786B (en) 2010-05-05

Family

ID=37195669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005100877086A Expired - Fee Related CN1855786B (en) 2005-04-19 2005-08-05 A branch signal recovery method and device based on non-integer leakage rate

Country Status (1)

Country Link
CN (1) CN1855786B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100558031C (en) * 2006-04-29 2009-11-04 华为技术有限公司 Bit leakage control method and system
CN112821981B (en) * 2021-01-19 2023-03-24 柳州达迪通信技术股份有限公司 Service recovery clock extraction method, system and storage medium based on optical transport network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1147734A (en) * 1996-09-20 1997-04-16 清华大学 Method and circuit for reducing jitter by secondary smoothing
KR20010003166A (en) * 1999-06-21 2001-01-15 서평원 Vc12 demapper using digital phase-locked loop
WO2002098087A1 (en) * 2001-05-25 2002-12-05 Transwitch Corporation Method and apparatus for desynchronizing a ds-3 signal and/or an e3 signal from the data portion of an sts/stm payload
CN1428945A (en) * 2001-12-22 2003-07-09 深圳市中兴通讯股份有限公司上海第二研究所 Equipment for restoring E3/T3 branch signal from synchronous digital transmission system
CN1531258A (en) * 2003-03-12 2004-09-22 中兴通讯股份有限公司 A Leakage Removal Method Used in 2M Mapped Slices
CN1588837A (en) * 2004-08-25 2005-03-02 启攀微电子(上海)有限公司 Shaking attenuation processor in SDH branch clock restoration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1147734A (en) * 1996-09-20 1997-04-16 清华大学 Method and circuit for reducing jitter by secondary smoothing
KR20010003166A (en) * 1999-06-21 2001-01-15 서평원 Vc12 demapper using digital phase-locked loop
WO2002098087A1 (en) * 2001-05-25 2002-12-05 Transwitch Corporation Method and apparatus for desynchronizing a ds-3 signal and/or an e3 signal from the data portion of an sts/stm payload
CN1428945A (en) * 2001-12-22 2003-07-09 深圳市中兴通讯股份有限公司上海第二研究所 Equipment for restoring E3/T3 branch signal from synchronous digital transmission system
CN1531258A (en) * 2003-03-12 2004-09-22 中兴通讯股份有限公司 A Leakage Removal Method Used in 2M Mapped Slices
CN1588837A (en) * 2004-08-25 2005-03-02 启攀微电子(上海)有限公司 Shaking attenuation processor in SDH branch clock restoration

Also Published As

Publication number Publication date
CN1855786A (en) 2006-11-01

Similar Documents

Publication Publication Date Title
EP0529012B1 (en) Method of and circuit for synchronizing data
US5402452A (en) Incremental phase smoothing desynchronizer and calculation apparatus
US5404380A (en) Desynchronizer for adjusting the read data rate of payload data received over a digital communication network transmitting payload data within frames
EP0830760B1 (en) Digital desynchronizer
JPH09505705A (en) Mapping and jitter removing apparatus and method
US5297180A (en) Digital clock dejitter circuits for regenerating clock signals with minimal jitter
US6463111B1 (en) Method and apparatus for desynchronizing a DS-3 signal and/or an E3 signal from the data portion of an STS-STM payload
JPH07503818A (en) Desynchronization device and method for suppressing pointer jitter in desynchronization device
CN102223198A (en) A method and device for implementing clock recovery
JP3419345B2 (en) Clock recovery method and circuit for low-order group signal in pulse stuff synchronization system
US7068679B1 (en) Asynchronous payload mapping using direct phase transfer
US7212599B2 (en) Jitter and wander reduction apparatus
CN1855786B (en) A branch signal recovery method and device based on non-integer leakage rate
CN1286290C (en) An apparatus and method for restoring E3/T3 branch signal from synchronous digital transmission hierarchy
CN101176302B (en) Branch signal recovery method and device based on non-integer leakage rate
JPH08172455A (en) Transmission system containing bit stream allowing positioning and multiplexing / demultiplexing device
WO2007016823A1 (en) A recovery method of a branch signal based on the nonintegral leak rate and the apparatus thereof
JP3875031B2 (en) Asynchronous signal transmission device
KR20010003166A (en) Vc12 demapper using digital phase-locked loop
JP2963194B2 (en) Jitter suppression circuit
KR0126854B1 (en) AU Pointer Adjustment Jitter Reduction Device in Synchronous Multiple Devices
JP4476266B2 (en) Demapping method and circuit
JP3949595B2 (en) Jitter suppression circuit
JPH0685778A (en) Jitter suppression system in smoothing circuit
El-Ela et al. Desynchronizer circuit in SDH system using digital PLL

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100505

Termination date: 20170805