[go: up one dir, main page]

CN103795521B - Clock recovery method and device for transmitting EI signals based on Ethernet - Google Patents

Clock recovery method and device for transmitting EI signals based on Ethernet Download PDF

Info

Publication number
CN103795521B
CN103795521B CN201410039177.2A CN201410039177A CN103795521B CN 103795521 B CN103795521 B CN 103795521B CN 201410039177 A CN201410039177 A CN 201410039177A CN 103795521 B CN103795521 B CN 103795521B
Authority
CN
China
Prior art keywords
clock
phase
output
data
locked loop
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
CN201410039177.2A
Other languages
Chinese (zh)
Other versions
CN103795521A (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.)
Syntronic Beijing R&d Center Co ltd
Original Assignee
Hkust Intelligence (hefei) 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 Hkust Intelligence (hefei) Technology Co Ltd filed Critical Hkust Intelligence (hefei) Technology Co Ltd
Priority to CN201410039177.2A priority Critical patent/CN103795521B/en
Publication of CN103795521A publication Critical patent/CN103795521A/en
Application granted granted Critical
Publication of CN103795521B publication Critical patent/CN103795521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及基于以太网传送E1信号的时钟恢复方法,包括将来自以太网的E1数据包存入FIFO存储器缓冲,并用缺齿时钟CLKG进行读取,FIFO存储器输出时钟缺齿的E1数据;将时钟缺齿的E1数据存入弹性存储器,锁相环输出同步信号至弹性存储器,同时锁相环的输出作为其反馈输入,锁相环通过监视弹性存储器读、写指针差的方式控制其输出时钟频率,若读、写指针差大于设定值,降低锁相环输出的时钟频率,反之,增大锁相环输出的时钟频率,弹性存储器输出时钟平滑的E1数据。本发明还公开了基于以太网传送E1信号的时钟恢复装置。以两级缓冲调节来恢复时钟,以减小相位漫移,平滑缺齿,恢复出符合ITU‑T G.823相关要求的时钟,无需更改帧结构就能达到较好的漫移性能指标。

The invention relates to a clock recovery method for transmitting E1 signals based on Ethernet, including storing E1 data packets from Ethernet into a FIFO memory buffer, and reading with a missing-tooth clock CLK G , and the FIFO memory outputs the E1 data of clock-missing teeth; The E1 data with missing teeth in the clock is stored in the elastic memory, and the PLL outputs a synchronization signal to the elastic memory, and the output of the PLL is used as its feedback input, and the PLL controls the output clock by monitoring the difference between the read and write pointers of the elastic memory Frequency, if the difference between the read and write pointers is greater than the set value, reduce the clock frequency output by the phase-locked loop, otherwise, increase the clock frequency output by the phase-locked loop, and the elastic memory will output clock-smooth E1 data. The invention also discloses a clock recovery device for transmitting E1 signals based on the Ethernet. The clock is recovered by two-level buffer adjustment to reduce phase drift, smooth tooth loss, and recover the clock that meets the relevant requirements of ITU-T G.823, and achieve better roaming performance indicators without changing the frame structure.

Description

一种基于以太网传送E1信号的时钟恢复方法及装置A clock recovery method and device for transmitting E1 signals based on Ethernet

技术领域technical field

本发明涉及通信与信息系统网络传输技术领域,尤其是一种基于以太网传送E1信号的时钟恢复方法及装置。The invention relates to the technical field of communication and information system network transmission, in particular to a clock recovery method and device for transmitting E1 signals based on Ethernet.

背景技术Background technique

在基于IP的新一代通信网中,为了实现多业务传输,在发送端,把实时业务(TDM)进行打包处理,使其变成以太网包的数据包,然后传输;在接收端,为了恢复原来的TDM业务,对数据进行统计和抖动消除,从而获得码流的定时信息。由于在TDMoIP系统中,在发送端需要发送的信号是标准的E1信号,为了在以太网中传输,把E1信号进行拆分、封装,使其变成固定大小的以太网包,原来的E1信号中的定时信息全部丢失,在接收端收到的信号中不含有任何定时信息,数据的抖动也变成随机的,这就需要在接收端进行特殊处理,才能恢复E1信号的时钟。In the new-generation communication network based on IP, in order to realize multi-service transmission, at the sending end, the real-time service (TDM) is packaged and processed so that it becomes a data packet of an Ethernet packet, and then transmitted; at the receiving end, in order to recover In the original TDM business, statistics and jitter elimination are performed on the data, so as to obtain the timing information of the code stream. In the TDMoIP system, the signal that needs to be sent at the sending end is a standard E1 signal. In order to transmit in the Ethernet, the E1 signal is split and encapsulated to make it into a fixed-sized Ethernet packet. The original E1 signal All the timing information in the receiver is lost, the signal received by the receiving end does not contain any timing information, and the jitter of the data becomes random, which requires special processing at the receiving end to recover the clock of the E1 signal.

一般复用设备接收数据比特流时,在锁相环上用一、二阶低通滤波器给予平滑以得到符合规格的时钟恢复。但该锁相环使用的时钟相位侦测器的缺点就是解析度只能达到一个比特,当恢复时钟非常接近实际值时,相差要累积到一个比特,需要很长时间,这就会产生漫移,很难满足漫移规格要求。另外由于以太网的特性,数据包到达目的地的时间会有随机性的变异,甚至可能掉包。并且,包数据属于大的块状突发数据,一个包过来,就是几百甚至上千字节过来,弹性存储器的写指针变化属于跳跃式的,这种情况,相位变化的检测滤波,无法从检测指针差经过一般的低通滤波方式来完成。Generally, when the multiplexing equipment receives the data bit stream, it uses first-order and second-order low-pass filters on the phase-locked loop to provide smoothing to obtain clock recovery that meets the specifications. However, the disadvantage of the clock phase detector used in the PLL is that the resolution can only reach one bit. When the recovered clock is very close to the actual value, it takes a long time for the phase difference to accumulate to one bit, which will cause drift , it is difficult to meet the requirements of roaming specifications. In addition, due to the characteristics of Ethernet, the time when data packets arrive at the destination will vary randomly, and may even drop packets. In addition, the packet data is a large block burst data. When a packet arrives, it is hundreds or even thousands of bytes. The change of the write pointer of the elastic memory is jumpy. In this case, the phase change detection filter cannot be changed from The detection of pointer difference is accomplished through a general low-pass filtering method.

发明内容Contents of the invention

本发明的首要目的在于提供一种在无需更改帧结构的情况下达到较好漫移性能指标的基于以太网传送E1信号的时钟恢复方法。The primary purpose of the present invention is to provide a clock recovery method for transmitting E1 signals based on Ethernet, which can achieve better roaming performance index without changing the frame structure.

为实现上述目的,本发明采用了以下技术方案:一种基于以太网传送E1信号的时钟恢复方法,该方法包括下列顺序的步骤:In order to achieve the above object, the present invention adopts the following technical scheme: a kind of clock recovery method based on Ethernet transmission E1 signal, this method comprises the steps of following order:

(1)第一级粗调:时钟CLKH经过掐陷处理后得到缺齿时钟CLKG,将来自以太网的E1数据包存入FIFO存储器缓冲,并用缺齿时钟CLKG进行读取,FIFO存储器输出时钟缺齿的E1数据;(1) The first level of rough adjustment: the clock CLK H is pinched to get the tooth-missing clock CLK G , and the E1 data packet from the Ethernet is stored in the FIFO memory buffer, and read with the tooth-missing clock CLK G , and the FIFO memory Output the E1 data of the missing tooth of the clock;

(2)第二级细调:将时钟缺齿的E1数据存入弹性存储器,缺齿时钟CLKG作为锁相环的输入,锁相环输出同步信号至弹性存储器,同时锁相环的输出作为其反馈输入,锁相环通过监视弹性存储器读、写指针差的方式控制其输出时钟频率,若读、写指针差大于设定值,降低锁相环输出的时钟频率,反之,增大锁相环输出的时钟频率,最终,弹性存储器输出时钟平滑的E1数据。(2) Second-level fine-tuning: store the E1 data of the missing tooth in the elastic memory, and use the tooth-missing clock CLK G as the input of the phase-locked loop. The phase-locked loop outputs the synchronization signal to the elastic memory, and the output of the phase-locked loop serves Its feedback input, the phase-locked loop controls its output clock frequency by monitoring the difference between the read and write pointers of the elastic memory. If the difference between the read and write pointers is greater than the set value, the clock frequency output by the phase-locked loop is reduced, otherwise, the phase-locked loop is increased. The clock frequency of the ring output, and finally, the elastic memory output clock-smoothed E1 data.

所述时钟CLKH的频率为2.048MHz+100ppm。The frequency of the clock CLK H is 2.048MHz+100ppm.

对时钟CLKH进行掐陷处理使调整后的缺齿时钟CLKG能跟踪输入的E1时钟,具体方法为:The clock CLK H is pinched so that the adjusted tooth-missing clock CLK G can track the input E1 clock. The specific method is:

(1)接收端超过3ms 没有收到数据包,强制掐掉时钟CLKH的一个脉冲;(1) If the receiving end does not receive a data packet for more than 3ms, a pulse of the clock CLK H is forcibly cut off;

(2)掐陷的时间间隔大于等于2.5ms,掐陷时机在收完一个包的瞬间,判断FIFO存储器中的数据是否为“空”,如为“空”,则掐掉CLKH一个脉冲,所述FIFO存储器中的数据为“空”是指FIFO存储器存储空间达到设定的下限阈值。(2) The time interval of trapping is greater than or equal to 2.5ms. The timing of trapping is at the moment when a packet is received, and it is judged whether the data in the FIFO memory is "empty". If it is "empty", a pulse of CLK H is pinched. The fact that the data in the FIFO memory is "empty" means that the storage space of the FIFO memory reaches the set lower limit threshold.

所述FIFO存储器存储空间下限的计算公式如下:The calculation formula of the lower limit of the storage space of the FIFO memory is as follows:

若以太网线路传输速度为VE,单位为Mbps,当其最长数据包1518字节传输E1数据时,FIFO存储器应没有溢出,据此推算出FIFO存储器下限存储容量C F:If the transmission speed of the Ethernet line is V E , and the unit is Mbps, when the longest data packet is 1518 bytes to transmit E1 data, the FIFO memory should not overflow, and the lower limit storage capacity C F of the FIFO memory is calculated accordingly:

C F =1518*2.048/ VE字节。C F =1518*2.048/ V E bytes.

本发明的另一目的在于提供一种基于以太网传送E1信号的时钟恢复装置,包括FIFO存储器,其一端输入端接收来自以太网的E1数据包,另一端输入端接收缺齿时钟CLKG,其输出端与弹性存储器的输入端相连,弹性存储器输出读写指针差信号至锁相环,锁相环的输入端接收缺齿时钟CLKG,锁相环的输出作为其反馈输入,锁相环的输出端与弹性存储器的输入端相连,弹性存储器的输出端作为装置输出。Another object of the present invention is to provide a clock recovery device for transmitting E1 signals based on Ethernet, including a FIFO memory, whose input terminal at one end receives the E1 data packet from Ethernet, and the input terminal at the other end receives the tooth-missing clock CLK G , which The output end is connected to the input end of the elastic memory, and the elastic memory outputs the read-write pointer difference signal to the phase-locked loop, and the input end of the phase-locked loop receives the tooth-missing clock CLK G , and the output of the phase-locked loop is used as its feedback input, and the phase-locked loop The output terminal is connected to the input terminal of the elastic memory, and the output terminal of the elastic memory serves as the device output.

缺齿时钟CLKG由时钟CLKH经掐陷处理电路得到。The missing-tooth clock CLK G is obtained from the clock CLK H through a pinch processing circuit.

由上述技术方案可知,本发明以两级缓冲调节来恢复时钟,第一级是粗调,即原数据包经FIFO存储器缓冲,由2.048MHz+100ppm的读信号时钟CLK H读出,通过检测FIFO存储器的数据“空”指示对CLK H脉冲掐陷,产生缺齿时钟CLKG;第二级是细调,即将缺齿时钟CLKG的E1数据存入弹性存储器,由锁相环产生的连续时钟读出,通过监视读、写指针差控制锁相环,大于设定值做频率降速,小于设定值做频率加速,以减小相位漫移,平滑缺齿,恢复出符合ITU-T G.823相关要求的时钟,无需更改帧结构就能达到较好的漫移性能指标。As can be seen from the above technical solution, the present invention restores the clock with two-stage buffer adjustment, the first stage is coarse adjustment, that is, the original data packet is buffered by the FIFO memory, read by the read signal clock CLK H of 2.048MHz+100ppm, and detected by the FIFO The data "empty" of the memory indicates that the CLK H pulse is pinched to generate a tooth-missing clock CLK G ; the second stage is fine adjustment, that is, the E1 data of the tooth-missing clock CLK G is stored in the elastic memory, and the continuous clock generated by the phase-locked loop Read out, control the phase-locked loop by monitoring the difference between the read and write pointers, reduce the frequency when it is greater than the set value, and accelerate the frequency when it is less than the set value, so as to reduce the phase drift, smooth missing teeth, and restore the ITU-T G The clock required by .823 can achieve better roaming performance index without changing the frame structure.

附图说明Description of drawings

图1为本发明的方法流程图;Fig. 1 is method flowchart of the present invention;

图2为通过2.304Mbps的SDSL传送E1信号和以太网数据的效果示意图。Figure 2 is a schematic diagram of the effect of transmitting E1 signals and Ethernet data through 2.304Mbps SDSL.

具体实施方式detailed description

一种基于以太网传送E1信号的时钟恢复方法,该方法包括下列顺序的步骤:(1)第一级粗调:时钟CLKH经过掐陷处理后得到缺齿时钟CLKG,将来自以太网的E1数据包存入FIFO存储器1缓冲,并用缺齿时钟CLKG进行读取,FIFO存储器1输出时钟缺齿的E1数据;(2)第二级细调:将时钟缺齿的E1数据存入弹性存储器2,缺齿时钟CLKG作为锁相环3的输入,锁相环3输出同步信号至弹性存储器2,同时锁相环3的输出作为其反馈输入,锁相环3通过监视弹性存储器2读、写指针差的方式控制其输出时钟频率,若读、写指针差大于设定值,降低锁相环3输出的时钟频率,反之,增大锁相环3输出的时钟频率,最终,弹性存储器2输出时钟平滑的E1数据。如图1所示。设定值是锁相环3的参数之一,利用外部处理器对锁相环3参数寄存器进行设定。A clock recovery method for transmitting E1 signals based on Ethernet, which includes the following sequential steps: (1) First-level rough adjustment: the clock CLK H undergoes pinching processing to obtain the missing tooth clock CLK G , and the clock from the Ethernet E1 data packets are stored in FIFO memory 1 for buffering, and are read by clock CLK G , and FIFO memory 1 outputs the E1 data of clock missing teeth; (2) Second-level fine-tuning: store the E1 data of clock missing teeth in elastic Memory 2, tooth-missing clock CLK G is used as the input of phase-locked loop 3, and phase-locked loop 3 outputs a synchronous signal to elastic memory 2, and the output of phase-locked loop 3 is used as its feedback input, and phase-locked loop 3 reads 1. The mode of writing pointer difference controls its output clock frequency, if read, write pointer difference is greater than setting value, reduce the clock frequency of phase-locked loop 3 output, conversely, increase the clock frequency of phase-locked loop 3 output, finally, elastic memory 2 Output clock-smoothed E1 data. As shown in Figure 1. The setting value is one of the parameters of the phase-locked loop 3, and the parameter register of the phase-locked loop 3 is set by an external processor.

所述时钟CLKH的频率为2.048MHz+100ppm,如图1所示,时钟CLK H频率的选择方法:1)不小于E1信号速率上限,即2.048MHz+50ppm;2)考虑时钟CLKH本身可能有50ppm的偏差,因此为2.048MHz+100ppm。The frequency of the clock CLK H is 2.048MHz+100ppm, as shown in Figure 1, the selection method of the frequency of the clock CLK H : 1) Not less than the upper limit of the E1 signal rate, that is, 2.048MHz+50ppm; 2) Considering the possibility of the clock CLK H itself There is a 50ppm deviation, so 2.048MHz+100ppm.

连续的最大速率为2.048MHz+50ppm的E1数据,在发送端被打包成随机的以太网数据包,传送到接收端。这些数据包首先存入一个足够大的FIFO存储器1,并用一个2.048MHz+100ppm的时钟CLKH 读出,为了保证一级调整后的时钟能跟踪输入的E1信号时钟,需要对时钟CLKH的脉冲进行掐陷处理。对时钟CLKH进行掐陷处理使调整后的缺齿时钟CLKG能跟踪输入的E1时钟,具体方法为:(1)接收端超过3ms 没有收到数据包,强制掐掉时钟CLKH的一个脉冲;(2)掐陷的时间间隔大于等于2.5ms,掐陷时机在收完一个包的瞬间,判断FIFO存储器1中的数据是否为“空”,如为“空”,则掐掉CLKH一个脉冲,所述FIFO存储器1中的数据为“空”是指FIFO存储器1存储空间达到设定的下限阈值。The continuous E1 data with a maximum rate of 2.048MHz+50ppm is packaged into random Ethernet data packets at the sending end and transmitted to the receiving end. These data packets are first stored in a sufficiently large FIFO memory 1, and read out with a 2.048MHz+100ppm clock CLK H. In order to ensure that the first-level adjusted clock can track the input E1 signal clock, the pulse of the clock CLK H is required Perform pinching treatment. The clock CLK H is pinched so that the adjusted tooth-missing clock CLK G can track the input E1 clock. The specific method is: (1) If the receiving end does not receive a data packet for more than 3ms, a pulse of the clock CLK H is forcibly pinched ; (2) The time interval of trapping is greater than or equal to 2.5ms. The timing of trapping is at the moment of receiving a packet, and judge whether the data in FIFO memory 1 is "empty". If it is "empty", then pinch off CLK H one Pulse, the data in the FIFO memory 1 is "empty" means that the storage space of the FIFO memory 1 reaches the set lower limit threshold.

所述FIFO存储器1存储空间下限的计算公式如下:若以太网线路传输速度为VE,单位为Mbps,当其最长数据包1518字节传输E1数据时,FIFO存储器1应没有溢出,据此推算出FIFO存储器1下限存储容量C F:The calculation formula of the lower limit of the storage space of the FIFO memory 1 is as follows: if the transmission speed of the Ethernet line is VE , and the unit is Mbps, when the longest data packet 1518 bytes transmits E1 data, the FIFO memory 1 should not overflow, accordingly Calculate the lower limit storage capacity C F of FIFO memory 1:

C F =1518*2.048/ VE字节。C F =1518*2.048/ V E bytes.

如图1所示,本装置包括FIFO存储器1,其一端输入端接收来自以太网的E1数据包,另一端输入端接收缺齿时钟CLKG,其输出端与弹性存储器2的输入端相连,弹性存储器2输出读写指针差信号至锁相环3,锁相环3的输入端接收缺齿时钟CLKG,锁相环3的输出作为其反馈输入,锁相环3的输出端与弹性存储器2的输入端相连,弹性存储器2的输出端作为装置输出。缺齿时钟CLKG由时钟CLKH经掐陷处理电路得到。As shown in Figure 1, the device includes a FIFO memory 1, the input end of one end receives the E1 data packet from Ethernet, the input end of the other end receives the missing tooth clock CLK G , the output end is connected with the input end of the elastic memory 2, and the elastic The memory 2 outputs the read-write pointer difference signal to the phase-locked loop 3, the input end of the phase-locked loop 3 receives the missing tooth clock CLK G , the output of the phase-locked loop 3 is used as its feedback input, and the output end of the phase-locked loop 3 is connected with the elastic memory 2 The input end of the elastic memory 2 is connected, and the output end of the elastic memory 2 is used as the device output. The missing-tooth clock CLK G is obtained from the clock CLK H through a pinch processing circuit.

由于以太网的特性,E1数据包到达目的地的时间会有随机性的变异,甚至可能掉包。另外,数据包的数据属于大的块状突发数据,一个数据包过来,就是几百甚至上千字节,弹性存储器2的写指针变化属于跳跃式的。在这样的情况下,无法通过一般的低通滤波方式来完成指针差的检测。即使忽略掉包的情况,以太网路传送有QoS保证带宽,数据包经过以太网路到达接收端的时间行为变异因子仍然存在。Due to the characteristics of Ethernet, the time when E1 data packets arrive at the destination will vary randomly, and may even drop packets. In addition, the data of the data packet belongs to the large block burst data. When a data packet arrives, it is hundreds or even thousands of bytes, and the change of the write pointer of the elastic memory 2 belongs to the jump type. In such a case, it is impossible to complete the detection of the pointer difference by means of a general low-pass filter. Even if the case of packet loss is ignored, the Ethernet transmission has QoS guaranteed bandwidth, and the variation factor of the time behavior of the data packet passing through the Ethernet to the receiving end still exists.

图2的上半部分,即从FIFO“满”基线以上的部分可以看出,一个E1包,即传送E1信号的以太网数据包,是256字节,一般情况E1包到达间隔时间应在 1.0 ms +/- 数 μs 间,发送方送完若干个E1包后即插入复用的以太网数据包(1518字节),则必须等待这个包传完(约6ms)才能再传送 E1 包。缓存的E1数据获得传送机会时,会以2.304Mbps全速消化累积缓存(包间隔约0.89ms)之后再回到正常的约 1.0 ms 的间隔传送。The upper part of Figure 2, that is, from the part above the FIFO "full" baseline, it can be seen that an E1 packet, that is, an Ethernet data packet that transmits an E1 signal, is 256 bytes. Generally, the arrival interval of an E1 packet should be 1.0 Within ms +/- several μs, the sender inserts multiplexed Ethernet data packets (1518 bytes) after sending several E1 packets, and must wait for this packet to be transmitted (about 6ms) before sending the E1 packet. When the cached E1 data gets a transmission opportunity, it will digest the accumulated cache at full speed of 2.304Mbps (the packet interval is about 0.89ms), and then return to the normal transmission interval of about 1.0ms.

接收E1包的FIFO 存储器缓存要有足够的容量,具体计算如下:The FIFO memory buffer for receiving E1 packets must have sufficient capacity, and the specific calculation is as follows:

C F =1518*2.048/ VE=1518*2.048/2.304=1350字节C F =1518*2.048/ V E =1518*2.048/2.304=1350 bytes

因此,开机后FIFO存储器1 要等填满1350字节以上才能启动读出。Therefore, the FIFO memory 1 has to wait for more than 1350 bytes to start reading after starting up.

图2的下半部分给出了FIFO指针顶尖包络曲线与FIFO“满”、“空”基线之间的关系。指针顶尖连接成的虚线包络跟FIFO“满”基线的差距正比于实际信号速率与读时钟CLKH的速率差,由此产生的缺齿时钟存在着较大的漫移。因此,必须经过由弹性存储器2和锁相环3组成的二级缓冲和时钟平滑,以减小相位漫移,平滑缺齿,才能最终得到符合规格的恢复时钟。The lower part of Figure 2 shows the relationship between the FIFO pointer tip envelope curve and the FIFO "full" and "empty" baselines. The difference between the dotted line envelope formed by the pointer tops and the FIFO "full" baseline is proportional to the difference between the actual signal rate and the rate of the read clock CLK H , and the resulting missing tooth clock has a large drift. Therefore, it is necessary to go through the secondary buffering and clock smoothing composed of the elastic memory 2 and the phase-locked loop 3 to reduce the phase drift and smooth the missing teeth, so as to finally obtain the recovered clock that meets the specifications.

综上所述,本发明以两级缓冲调节来恢复时钟,第一级是粗调,即原数据包经FIFO存储器1缓冲,由2.048MHz+100ppm的读信号时钟CLK H读出,通过检测FIFO存储器1的数据“空”指示对CLK H脉冲掐陷,产生缺齿时钟CLKG;第二级是细调,即将缺齿时钟CLKG的E1数据存入弹性存储器2,由锁相环3产生的连续时钟读出,通过监视读、写指针差控制锁相环3,大于设定值做频率降速,小于设定值做频率加速,以减小相位漫移,平滑缺齿,恢复出符合ITU-T G.823相关要求的时钟,无需更改帧结构就能达到较好的漫移性能指标。In summary, the present invention restores the clock with two-stage buffer adjustment, the first stage is coarse adjustment, that is, the original data packet is buffered by FIFO memory 1, read by the read signal clock CLK H of 2.048MHz+100ppm, and detected by FIFO The data "empty" of the memory 1 indicates that the CLK H pulse is pinched to generate the tooth-missing clock CLK G ; the second stage is fine adjustment, that is, the E1 data of the tooth-missing clock CLK G is stored in the elastic memory 2, which is generated by the phase-locked loop 3 Continuous clock readout, control the phase-locked loop 3 by monitoring the difference between the read and write pointers, reduce the frequency when it is greater than the set value, and accelerate the frequency when it is less than the set value, so as to reduce the phase drift, smooth missing teeth, and restore the compliance The clock required by ITU-T G.823 can achieve better roaming performance without changing the frame structure.

Claims (6)

1.一种基于以太网传送E1信号的时钟恢复方法,该方法包括下列顺序的步骤:1. A clock recovery method based on Ethernet transmission E1 signal, the method comprises the steps of the following sequence: (1)第一级粗调:时钟CLKH经过掐陷处理后得到缺齿时钟CLKG,将来自以太网的E1数据包存入FIFO存储器缓冲,并用缺齿时钟CLKG进行读取,FIFO存储器输出时钟缺齿的E1数据;(1) The first level of rough adjustment: the clock CLK H is pinched to get the tooth-missing clock CLK G , and the E1 data packet from the Ethernet is stored in the FIFO memory buffer, and read with the tooth-missing clock CLK G , and the FIFO memory Output the E1 data of the missing tooth of the clock; (2)第二级细调:将时钟缺齿的E1数据存入弹性存储器,缺齿时钟CLKG作为锁相环的输入,锁相环输出同步信号至弹性存储器,同时锁相环的输出作为其反馈输入,锁相环通过监视弹性存储器读、写指针差的方式控制其输出时钟频率,若读、写指针差大于设定值,降低锁相环输出的时钟频率,反之,增大锁相环输出的时钟频率,最终,弹性存储器输出时钟平滑的E1数据。(2) Second-level fine-tuning: store the E1 data of the missing tooth in the elastic memory, and use the tooth-missing clock CLK G as the input of the phase-locked loop. The phase-locked loop outputs the synchronization signal to the elastic memory, and the output of the phase-locked loop serves Its feedback input, the phase-locked loop controls its output clock frequency by monitoring the difference between the read and write pointers of the elastic memory. If the difference between the read and write pointers is greater than the set value, the clock frequency output by the phase-locked loop is reduced, otherwise, the phase-locked loop is increased. The clock frequency of the ring output, and finally, the elastic memory output clock-smoothed E1 data. 2.根据权利要求1所述的基于以太网传送E1信号的时钟恢复方法,其特征在于:所述时钟CLKH的频率为2.048MHz+100ppm。2. The clock recovery method for transmitting E1 signals based on Ethernet according to claim 1, characterized in that: the frequency of the clock CLK H is 2.048MHz+100ppm. 3.根据权利要求1所述的基于以太网传送E1信号的时钟恢复方法,其特征在于:对时钟CLKH进行掐陷处理使调整后的缺齿时钟CLKG能跟踪输入的E1时钟,具体方法为:3. The clock recovery method for transmitting E1 signals based on Ethernet according to claim 1, characterized in that: the clock CLK H is pinched and processed so that the adjusted missing tooth clock CLK G can track the input E1 clock, the specific method for: (1)接收端超过3ms 没有收到数据包,强制掐掉时钟CLKH的一个脉冲;(1) If the receiving end does not receive a data packet for more than 3ms, a pulse of the clock CLK H is forcibly cut off; (2)掐陷的时间间隔大于等于2.5ms,掐陷时机在收完一个包的瞬间,判断FIFO存储器中的数据是否为“空”,如为“空”,则掐掉CLKH一个脉冲,所述FIFO存储器中的数据为“空”是指FIFO存储器存储空间达到设定的下限阈值。(2) The time interval of trapping is greater than or equal to 2.5ms. The timing of trapping is at the moment when a packet is received, and it is judged whether the data in the FIFO memory is "empty". If it is "empty", a pulse of CLK H is pinched. The fact that the data in the FIFO memory is "empty" means that the storage space of the FIFO memory reaches the set lower limit threshold. 4.根据权利要求3所述的基于以太网传送E1信号的时钟恢复方法,其特征在于:所述FIFO存储器存储空间下限的计算公式如下:4. the clock recovery method based on Ethernet transmission E1 signal according to claim 3, is characterized in that: the computing formula of described FIFO memory storage space lower limit is as follows: 若以太网线路传输速度为VE,单位为Mbps,当其最长数据包1518字节传输E1数据时,FIFO存储器应没有溢出,据此推算出FIFO存储器下限存储容量C F:If the transmission speed of the Ethernet line is V E , and the unit is Mbps, when the longest data packet is 1518 bytes to transmit E1 data, the FIFO memory should not overflow, and the lower limit storage capacity C F of the FIFO memory is calculated accordingly: C F =1518*2.048/ VE字节。C F =1518*2.048/ V E bytes. 5.实施权利要求1至4中任一项所述时钟恢复方法的装置,其特征在于:包括FIFO存储器,其一端输入端接收来自以太网的E1数据包,另一端输入端接收缺齿时钟CLKG,其输出端与弹性存储器的输入端相连,弹性存储器输出读写指针差信号至锁相环,锁相环的输入端接收缺齿时钟CLKG,锁相环的输出作为其反馈输入,锁相环的输出端与弹性存储器的输入端相连,弹性存储器的输出端作为装置输出。5. The device for implementing the clock recovery method according to any one of claims 1 to 4, characterized in that: it comprises a FIFO memory, and its input terminal at one end receives the E1 data packet from Ethernet, and the input terminal at the other end receives the tooth-missing clock CLK G , its output end is connected with the input end of the elastic memory, the elastic memory outputs the reading and writing pointer difference signal to the phase-locked loop, the input end of the phase-locked loop receives the tooth-missing clock CLK G , the output of the phase-locked loop is used as its feedback input, and the lock The output end of the phase loop is connected with the input end of the elastic memory, and the output end of the elastic memory is used as the device output. 6.根据权利要求5所述的装置,其特征在于:缺齿时钟CLKG由时钟CLKH经掐陷处理电路得到。6. The device according to claim 5, characterized in that the missing tooth clock CLK G is obtained from the clock CLK H through a pinch processing circuit.
CN201410039177.2A 2014-01-27 2014-01-27 Clock recovery method and device for transmitting EI signals based on Ethernet Active CN103795521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410039177.2A CN103795521B (en) 2014-01-27 2014-01-27 Clock recovery method and device for transmitting EI signals based on Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410039177.2A CN103795521B (en) 2014-01-27 2014-01-27 Clock recovery method and device for transmitting EI signals based on Ethernet

Publications (2)

Publication Number Publication Date
CN103795521A CN103795521A (en) 2014-05-14
CN103795521B true CN103795521B (en) 2017-01-25

Family

ID=50670857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410039177.2A Active CN103795521B (en) 2014-01-27 2014-01-27 Clock recovery method and device for transmitting EI signals based on Ethernet

Country Status (1)

Country Link
CN (1) CN103795521B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9331724B2 (en) * 2014-09-15 2016-05-03 Xilinx, Inc. Lane-to-lane de-skew for transmitters
CN106612114B (en) * 2015-10-21 2020-08-28 扬智科技股份有限公司 Clock recovery device and clock recovery method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0876016A1 (en) * 1997-05-02 1998-11-04 Lsi Logic Corporation Adaptive digital clock recovery
CN1301100A (en) * 1999-12-17 2001-06-27 米特尔公司 Clock resetting phase-locked loops

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0876016A1 (en) * 1997-05-02 1998-11-04 Lsi Logic Corporation Adaptive digital clock recovery
CN1301100A (en) * 1999-12-17 2001-06-27 米特尔公司 Clock resetting phase-locked loops

Also Published As

Publication number Publication date
CN103795521A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
CN100550822C (en) Adaptive clock recovery
CN100550720C (en) Clock synchronization on Packet Based Network
US7756233B2 (en) Data receiving device and data receiving method
JP2861515B2 (en) Clock synchronizer and clock synchronizer between transmission and reception in packet network
CN103067153B (en) For regulating the method and apparatus of sampling phase
US20080186972A1 (en) Data Stream Synchronization
CN101803254B (en) Network Node and Reverse Timestamping Method for Clock Recovery
JP3660517B2 (en) DATA RECEIVING DEVICE, SOURCE CLOCK REPRODUCTION METHOD USED FOR THE SAME, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD
US5761203A (en) Synchronous and asynchronous recovery of signals in an ATM network
CN103795521B (en) Clock recovery method and device for transmitting EI signals based on Ethernet
CN101110661B (en) Jitter Buffer Adjustment Method for Circuit Simulation System
CN101534186B (en) Digital smoothing circuit and method for realizing clock extraction from Ethernet signal
KR102328071B1 (en) Method and apparatus of processing traffic in optical transport network
CN101350776B (en) Adjusting the degree of filling of a jitter buffer
US9112625B2 (en) Method and apparatus for emulating stream clock signal in asynchronous data transmission
JP6259227B2 (en) Clock reproduction control device and video signal receiving device
JP3909029B2 (en) Terminal synchronization method and terminal synchronization circuit
US8363764B2 (en) Method and device for reconstructing a data clock from asynchronously transmitted data packets
US8094562B1 (en) Transmission of a continuous datastream through a re-clocked frame-based transport network
KR101196823B1 (en) Method and apparatus for constant-bit-rate traffic clock recovery
KR20040019931A (en) Adaptive clock recovery
CN106550289B (en) A method, device and client for providing a reference clock for a serial-to-parallel converter
JP4612688B2 (en) Receiver
CN105306987B (en) A kind of device for controlling TS stream interface bit rate outputs
CN118625890B (en) Clock recovery system and method

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
TR01 Transfer of patent right

Effective date of registration: 20210118

Address after: 201600 room 539, building 1, 777 sizhuan Road, Sijing Town, Songjiang District, Shanghai

Patentee after: Keda Zhizao (Shanghai) equipment Technology Co.,Ltd.

Address before: No. 612, Huangshan Road, high tech Zone, Hefei City, Anhui Province, 230088

Patentee before: HKUST INTELLIGENT (HEFEI) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230525

Address after: 215163 No.110 kejing Road, high tech Zone, Suzhou City, Jiangsu Province

Patentee after: HUAXIAO PRECISION (SUZHOU) Co.,Ltd.

Address before: 201600 room 539, building 1, 777 sizhuan Road, Sijing Town, Songjiang District, Shanghai

Patentee before: Keda Zhizao (Shanghai) equipment Technology Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140514

Assignee: Syntronic (Beijing) R&D Center Co.,Ltd.

Assignor: HUAXIAO PRECISION (SUZHOU) Co.,Ltd.

Contract record no.: X2023980045859

Denomination of invention: A Clock Recovery Method and Device for Transferring E1 Signal Based on Ethernet

Granted publication date: 20170125

License type: Exclusive License

Record date: 20231107

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250718

Address after: 100012 Beijing City Chaoyang District Ziyue Road 18th Yard 15th Building 6th Floor 601 Room

Patentee after: Syntronic (Beijing) R&D Center Co.,Ltd.

Country or region after: China

Address before: 215163 No.110 kejing Road, high tech Zone, Suzhou City, Jiangsu Province

Patentee before: HUAXIAO PRECISION (SUZHOU) Co.,Ltd.

Country or region before: China