[go: up one dir, main page]

CN109412740B - Method and device for processing delay jitter - Google Patents

Method and device for processing delay jitter Download PDF

Info

Publication number
CN109412740B
CN109412740B CN201710702893.8A CN201710702893A CN109412740B CN 109412740 B CN109412740 B CN 109412740B CN 201710702893 A CN201710702893 A CN 201710702893A CN 109412740 B CN109412740 B CN 109412740B
Authority
CN
China
Prior art keywords
data
preset
frame
fifo
read
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
CN201710702893.8A
Other languages
Chinese (zh)
Other versions
CN109412740A (en
Inventor
芦秋雁
苏胜涛
贾世英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips 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 Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201710702893.8A priority Critical patent/CN109412740B/en
Publication of CN109412740A publication Critical patent/CN109412740A/en
Application granted granted Critical
Publication of CN109412740B publication Critical patent/CN109412740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J14/00Optical multiplex systems
    • H04J14/02Wavelength-division multiplex systems
    • H04J14/0227Operation, administration, maintenance or provisioning [OAMP] of WDM networks, e.g. media access, routing or wavelength allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Optical Communication System (AREA)

Abstract

一种处理延时抖动的方法及装置,包括:获取数据的处理速率信息;根据获取的处理速率信息进行数据的处理。本发明实施例降低了延时抖动,提升了数据传输质量。

Figure 201710702893

A method and device for processing delay jitter, comprising: acquiring processing rate information of data; and processing data according to the acquired processing rate information. The embodiment of the present invention reduces delay jitter and improves data transmission quality.

Figure 201710702893

Description

一种处理延时抖动的方法及装置A method and device for processing delay jitter

技术领域technical field

本文涉及但不限于光通信技术,尤指一种处理延时抖动的方法及装置。This article relates to, but is not limited to, optical communication technology, especially a method and device for processing delay jitter.

背景技术Background technique

在传输技术的发展中,光纤是一种不可或缺的媒介。出于如何用最少量的光纤传输最丰富的信息,光传输的发展经历了以下几个阶段:空分复用阶段(SDM)、时分复用阶段(TDM)和波分复用阶段(WDM)。In the development of transmission technology, optical fiber is an indispensable medium. In order to transmit the most abundant information with the least amount of optical fiber, the development of optical transmission has gone through the following stages: space division multiplexing (SDM), time division multiplexing (TDM) and wavelength division multiplexing (WDM) .

目前,有线传输依然以波分复用为主;商用的波分传输由40吉(G)逐渐演变到100G、400G。此外,数据传输距离上也在不断的拓展;数据业务的快速增长也给传送网络提出了更高的要求:大容量、低成本、快速灵活的业务调度、扩展能力强以及高可靠性。At present, the cable transmission is still dominated by wavelength division multiplexing; commercial wavelength division transmission has gradually evolved from 40 gigabits (G) to 100G and 400G. In addition, the data transmission distance is also constantly expanding; the rapid growth of data services also puts forward higher requirements for the transmission network: large capacity, low cost, fast and flexible service scheduling, strong expansion capability and high reliability.

延时抖动是影响光通信系统中信号传输质量的一个重要方面,随着传输速率的提高和传输距离的增长,延时抖动对光通信质量的影响越来越不可忽视。光传送网(OTN)体系中,发送链路和接收链路中的延时抖动会造成客户信号的传输损伤,对整个系统的可靠性及性能产生影响,业界目前主流的DSP芯片对此无特殊的处理。在100G/400G业务、100G/400G直通业务及100G/400G环回业务中,系统的可靠性及性能会受到影响,对于对延时需求有特殊要求的业务,例如100G/400G业务,将无法满足可靠性需求,影响100G/400G DSP芯片在市场中的应用。Delay jitter is an important aspect that affects the quality of signal transmission in optical communication systems. With the increase of transmission rate and transmission distance, the impact of delay jitter on optical communication quality can not be ignored more and more. In the optical transport network (OTN) system, the delay jitter in the sending link and the receiving link will cause the transmission damage of the client signal, which will affect the reliability and performance of the entire system. The current mainstream DSP chips in the industry have no special effect on this. processing. In 100G/400G services, 100G/400G pass-through services and 100G/400G loopback services, the reliability and performance of the system will be affected, and services with special requirements for delay, such as 100G/400G services, will not be able to meet the Reliability requirements affect the application of 100G/400G DSP chips in the market.

发明内容SUMMARY OF THE INVENTION

以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this article. This summary is not intended to limit the scope of protection of the claims.

本发明实施例提供一种处理延时抖动的方法及装置,能够降低延时抖动。Embodiments of the present invention provide a method and device for processing delay jitter, which can reduce delay jitter.

本发明实施例提供了一种处理延时抖动的方法,包括:An embodiment of the present invention provides a method for processing delay jitter, including:

获取数据的处理速率信息;Obtain data processing rate information;

根据获取的处理速率信息进行数据的处理。Data is processed according to the acquired processing rate information.

可选的,所述根据获取的处理速率信息进行数据的处理包括:Optionally, the data processing according to the acquired processing rate information includes:

所述处理速率信息包括写时钟频率和写时钟频率时,根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写;When the processing rate information includes the write clock frequency and the write clock frequency, the data in the first FIFO is read and written according to the read clock frequency and the write clock frequency;

所述处理速率信息包括链路入口和链路出口的流量信息时,根据所述流量信息对待发出的数据进行插入预设数据帧的处理。When the processing rate information includes the traffic information of the link ingress and the link egress, the processing of inserting the data to be sent into a preset data frame is performed according to the traffic information.

可选的,所述根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, the reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency include:

根据所述读时钟频率和所述写时钟频率计算占空比;Calculate a duty cycle according to the read clock frequency and the write clock frequency;

根据计算的所述占空比及预设的FIFO缓存水位阈值,确定是否对第一FIFO中的数据进行读写,以以根据FIFO缓存水位控制延迟在预设区间内波动。Whether to read or write data in the first FIFO is determined according to the calculated duty cycle and the preset FIFO buffer water level threshold, so as to control the delay fluctuation within the preset interval according to the FIFO buffer water level.

可选的,所述根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, the reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency include:

通过预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,以根据生成的使能信号对第一FIFO中的数据进行读写。An enable signal for whether to read and write data in the first FIFO is generated by a preset state machine, so as to read and write data in the first FIFO according to the generated enable signal.

可选的,所述对待发出的数据进行插入预设数据帧的处理包括:Optionally, the process of inserting the data to be sent into the preset data frame includes:

计算间隔帧个数

Figure BDA0001380798580000021
Calculate the number of interval frames
Figure BDA0001380798580000021

根据计算获得间隔帧个数X进行所述预设数据帧的插入;According to the calculation to obtain the number of interval frames X, insert the preset data frame;

其中,所述V_ge为光以太网GE模式下链路入口的流量值;所述gain_ge为链路入口通过光转换单元OTU处理后的数据增益;所述V_out为模式下链路入口的流量值;所述gain_gfec前向纠错FEC译码装置的数据增益;

Figure BDA0001380798580000022
为向上取整。Wherein, the V_ge is the traffic value of the link ingress in the optical Ethernet GE mode; the gain_ge is the data gain after the link ingress is processed by the optical conversion unit OTU; the V_out is the traffic value of the link ingress in the mode; the data gain of the forward error correction FEC decoding device of the gain_gfec;
Figure BDA0001380798580000022
to round up.

可选的,所述根据计算获得间隔帧个数X进行所述预设数据帧的插入包括:Optionally, the inserting of the preset data frame according to the calculation to obtain the number of interval frames X includes:

在间隔帧个数X个TPC帧后插入所述预设数据帧;或,Insert the preset data frame after the interval frame number X TPC frames; or,

当由随机存取存储器RAM组成的第二FIFO的水位小于预设存储水位阈值时,在间隔帧个数X个TPC帧后插入所述预设数据帧;当第二FIFO的水位大于预设存储水位阈值时,在间隔帧个数X加1个TPC帧后插入所述预设数据帧。When the water level of the second FIFO composed of random access memory RAM is lower than the preset storage water level threshold, the preset data frame is inserted after the interval frame number X TPC frames; when the water level of the second FIFO is greater than the preset storage water level When the water level threshold is set, the preset data frame is inserted after adding 1 TPC frame to the number of interval frames X.

可选的,所述计算间隔帧个数X包括:Optionally, the calculation interval frame number X includes:

按照预设周期计算所述间隔帧个数X。The number X of the interval frames is calculated according to a preset period.

可选的,所述预设数据帧包括:Optionally, the preset data frame includes:

包含第一预设长度的空帧识别码和第二预设长度的伪随机二进制序列PRBS的数据帧的空帧;或,an empty frame of a data frame of a pseudo-random binary sequence PRBS comprising a first preset length of an empty frame identification code and a second preset length; or,

预设格式的与TPC帧的帧长相同的数据帧;A data frame with the same frame length as the TPC frame in a preset format;

其中,所述第一预设长度与第二预设长度的和与TPC帧长度相同。Wherein, the sum of the first preset length and the second preset length is the same as the TPC frame length.

可选的,所述对待发出的数据进行插入预设数据帧的处理之前,所述方法还包括:Optionally, before the data to be sent is inserted into a preset data frame, the method further includes:

对所述待发出的数据进行跨时钟域处理。Cross-clock domain processing is performed on the data to be sent.

另一方面,本发明实施例还提供一种处理延时抖动的装置,包括:获取单元和处理单元;其中,On the other hand, an embodiment of the present invention further provides an apparatus for processing delay jitter, including: an acquisition unit and a processing unit; wherein,

获取单元用于:获取数据的处理速率信息;The obtaining unit is used for: obtaining the processing rate information of the data;

处理单元用于:根据获取的处理速率信息进行数据的处理。The processing unit is used for: processing data according to the acquired processing rate information.

可选的,所述处理单元包括读写控制模块和插帧模块;其中,Optionally, the processing unit includes a read-write control module and a frame insertion module; wherein,

读写控制模块用于:所述获取单元获取的所述处理速率信息包括写时钟频率和写时钟频率时,根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写;The read-write control module is used for: when the processing rate information obtained by the obtaining unit includes the write clock frequency and the write clock frequency, read and write the data in the first FIFO according to the read clock frequency and the write clock frequency;

插帧模块用于:所述获取单元获取的所述处理速率信息包括链路入口和链路出口的流量信息时,根据所述流量信息对待发出的数据进行插入预设数据帧的处理。The frame inserting module is configured to: when the processing rate information obtained by the obtaining unit includes the traffic information of the link ingress and the link egress, perform processing of inserting the data to be sent out into a preset data frame according to the traffic information.

可选的,所述读写控制模块具体用于:Optionally, the read-write control module is specifically used for:

根据所述读时钟频率和所述写时钟频率计算占空比;Calculate a duty cycle according to the read clock frequency and the write clock frequency;

根据计算的所述占空比及预设的FIFO缓存水位阈值,确定是否对第一FIFO中的数据进行读写,以根据FIFO缓存水位控制延迟在预设区间内波动。According to the calculated duty cycle and the preset FIFO buffer water level threshold, it is determined whether to read or write the data in the first FIFO, so as to control the delay fluctuation within the preset interval according to the FIFO buffer water level.

可选的,所述读写控制模块具体用于:通过预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,以根据生成的使能信号对第一FIFO中的数据进行读写。Optionally, the read-write control module is specifically configured to: generate an enable signal for whether to read and write data in the first FIFO by using a preset state machine, so as to control the data in the first FIFO according to the generated enable signal. Data is read and written.

可选的,所述插帧模块具体用于:Optionally, the frame insertion module is specifically used for:

计算间隔帧个数

Figure BDA0001380798580000041
Calculate the number of interval frames
Figure BDA0001380798580000041

根据计算获得间隔帧个数X进行所述预设数据帧的插入;According to the calculation to obtain the number of interval frames X, insert the preset data frame;

其中,所述V_ge为光以太网GE模式下链路入口的流量值;所述gain_ge为链路入口通过光转换单元OTU处理后的数据增益;所述V_out为模式下链路入口的流量值;所述gain_gfec前向纠错FEC译码装置的数据增益;

Figure BDA0001380798580000042
为向上取整。Wherein, the V_ge is the traffic value of the link ingress in the optical Ethernet GE mode; the gain_ge is the data gain after the link ingress is processed by the optical conversion unit OTU; the V_out is the traffic value of the link ingress in the mode; the data gain of the forward error correction FEC decoding device of the gain_gfec;
Figure BDA0001380798580000042
to round up.

可选的,所述插帧模块用于根据计算获得间隔帧个数X进行所述预设数据帧的插入包括:Optionally, the frame insertion module is used to obtain the interval frame number X according to the calculation to perform the insertion of the preset data frame, including:

在间隔帧个数X个TPC帧后插入所述预设数据帧;或,Insert the preset data frame after the interval frame number X TPC frames; or,

当由随机存取存储器RAM组成的第二FIFO的水位小于预设存储水位阈值时,在间隔帧个数X个TPC帧后插入所述预设数据帧;当第二FIFO的水位大于预设存储水位阈值时,在间隔帧个数X加1个TPC帧后插入所述预设数据帧。When the water level of the second FIFO composed of random access memory RAM is lower than the preset storage water level threshold, the preset data frame is inserted after the interval frame number X TPC frames; when the water level of the second FIFO is greater than the preset storage water level When the water level threshold is set, the preset data frame is inserted after adding 1 TPC frame to the number of interval frames X.

可选的,所述插帧模块用于计算间隔帧个数X包括:Optionally, the frame insertion module is used to calculate the number X of interval frames including:

按照预设周期计算所述间隔帧个数X。The number X of the interval frames is calculated according to a preset period.

可选的,所述预设数据帧包括:Optionally, the preset data frame includes:

包含第一预设长度的空帧识别码和第二预设长度的伪随机二进制序列PRBS的数据帧的空帧;或,an empty frame of a data frame of a pseudo-random binary sequence PRBS comprising a first preset length of an empty frame identification code and a second preset length; or,

预设格式的与TPC帧的帧长相同的数据帧;A data frame with the same frame length as the TPC frame in a preset format;

其中,所述第一预设长度与第二预设长度的和与TPC帧长度相同。Wherein, the sum of the first preset length and the second preset length is the same as the TPC frame length.

可选的,所述装置还包括跨时钟域处理单元,用于对待发出的数据进行插入预设数据帧的处理之前,对所述待发出的数据进行跨时钟域处理。Optionally, the apparatus further includes a cross-clock domain processing unit configured to perform cross-clock domain processing on the data to be sent before inserting the data into a preset data frame.

再一方面,本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述的处理延时抖动的方法。In another aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the above method for processing delay jitter.

还一方面,本发明实施例还提供一种终端,包括:存储器和处理器;其中,In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein,

处理器被配置为执行存储器中的程序指令;the processor is configured to execute program instructions in the memory;

程序指令在处理器读取执行以下操作:Program instructions are read by the processor to do the following:

获取数据的处理速率信息;Obtain data processing rate information;

根据获取的处理速率信息进行数据的处理。Data is processed according to the acquired processing rate information.

与相关技术相比,本申请技术方案包括:获取数据的处理速率信息;根据获取的处理速率信息进行数据的处理。本发明实施例降低了延时抖动,提升了数据传输质量。Compared with the related art, the technical solution of the present application includes: acquiring processing rate information of data; and processing data according to the acquired processing rate information. The embodiments of the present invention reduce delay jitter and improve data transmission quality.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the description, claims and drawings.

附图说明Description of drawings

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solutions of the present invention, and constitute a part of the specification. They are used to explain the technical solutions of the present invention together with the embodiments of the present application, and do not limit the technical solutions of the present invention.

图1为本发明实施例处理延时抖动的方法的流程图;1 is a flowchart of a method for processing delay jitter according to an embodiment of the present invention;

图2为本发明实施例处理延时抖动的装置的结构框图;2 is a structural block diagram of an apparatus for processing delay jitter according to an embodiment of the present invention;

图3为本发明应用示例的状态机示意图;3 is a schematic diagram of a state machine of an application example of the present invention;

图4为本应用示例状态机在100G DSP中连接示意图;Figure 4 is a schematic diagram of the connection of the state machine in the 100G DSP for this application example;

图5为本发明实施例空帧的组成结构示意图。FIG. 5 is a schematic diagram of the composition structure of an empty frame according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, the embodiments in the present application and the features in the embodiments may be arbitrarily combined with each other if there is no conflict.

在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

图1为本发明实施例处理延时抖动的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for processing delay jitter according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:

步骤100、获取数据的处理速率信息;Step 100, obtaining processing rate information of the data;

可选的,本发明实施例处理速率信息包括:写时钟频率、写时钟频率、链路入口和链路出口的流量信息等。Optionally, the processing rate information in this embodiment of the present invention includes: write clock frequency, write clock frequency, traffic information of link ingress and link egress, and the like.

步骤101、根据获取的处理速率信息进行数据的处理。Step 101: Perform data processing according to the acquired processing rate information.

可选的,本发明实施例根据获取的处理速率信息进行数据的处理包括:Optionally, the processing of data according to the acquired processing rate information in this embodiment of the present invention includes:

处理速率信息包括写时钟频率和写时钟频率时,根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写;When the processing rate information includes the write clock frequency and the write clock frequency, read and write data in the first FIFO according to the read clock frequency and the write clock frequency;

处理速率信息包括链路入口和链路出口的流量信息时,根据所述流量信息对待发出的数据进行插入预设数据帧的处理。When the processing rate information includes the traffic information of the link ingress and the link egress, the processing of inserting the data to be sent into the preset data frame is performed according to the traffic information.

可选的,本发明实施例根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, in this embodiment of the present invention, reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency includes:

根据所述读时钟频率和所述写时钟频率计算占空比;Calculate a duty cycle according to the read clock frequency and the write clock frequency;

根据计算的所述占空比及预设的FIFO缓存水位阈值,确定是否对第一FIFO中的数据进行读写,以以根据FIFO缓存水位控制延迟在预设区间内波动。Whether to read or write data in the first FIFO is determined according to the calculated duty cycle and the preset FIFO buffer water level threshold, so as to control the delay fluctuation within the preset interval according to the FIFO buffer water level.

需要说明的是,本发明实施例通过FIFO缓存水位阈值确定FIFO缓存水位的高低,根据FIFO缓存水位高低,本领域技术人员可以确定是否对FIFO中的数据进行读写,以控制延迟在预设区间内波动It should be noted that in this embodiment of the present invention, the FIFO buffer water level is determined by the FIFO buffer water level threshold. According to the FIFO buffer water level, those skilled in the art can determine whether to read or write the data in the FIFO, so as to control the delay within a preset interval. Internal volatility

可选的,本发明实施例根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, in this embodiment of the present invention, reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency includes:

通过预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,以根据生成的使能信号对第一FIFO中的数据进行读写。An enable signal for whether to read and write data in the first FIFO is generated by a preset state machine, so as to read and write data in the first FIFO according to the generated enable signal.

可选的,所述对待发出的数据进行插入预设数据帧的处理包括:Optionally, the process of inserting the data to be sent into the preset data frame includes:

计算间隔帧个数

Figure BDA0001380798580000071
Calculate the number of interval frames
Figure BDA0001380798580000071

根据计算获得间隔帧个数X进行所述预设数据帧的插入;According to the calculation to obtain the number of interval frames X, insert the preset data frame;

其中,所述V_ge为光以太网GE模式下链路入口的流量值;所述gain_ge为链路入口通过光转换单元OTU处理后的数据增益;所述V_out为模式下链路入口的流量值;所述gain_gfec前向纠错FEC译码装置的数据增益;

Figure BDA0001380798580000072
为向上取整。Wherein, the V_ge is the traffic value of the link ingress in the optical Ethernet GE mode; the gain_ge is the data gain after the link ingress is processed by the optical conversion unit OTU; the V_out is the traffic value of the link ingress in the mode; the data gain of the forward error correction FEC decoding device of the gain_gfec;
Figure BDA0001380798580000072
to round up.

可选的,本发明实施例根据计算获得间隔帧个数X进行所述预设数据帧的插入包括:Optionally, the embodiment of the present invention performs the insertion of the preset data frame according to the number X of interval frames obtained by calculation, including:

在间隔帧个数X个TPC帧后插入所述预设数据帧;或,Insert the preset data frame after the interval frame number X TPC frames; or,

当由随机存取存储器(RAM)组成的第二FIFO的水位小于预设存储水位阈值时,在间隔帧个数X个TPC帧后插入所述预设数据帧;当第二FIFO的水位大于预设存储水位阈值时,在间隔帧个数X加1个TPC帧后插入所述预设数据帧。When the water level of the second FIFO composed of random access memory (RAM) is lower than the preset storage water level threshold, the preset data frame is inserted after the number of interval frames X TPC frames; when the water level of the second FIFO is greater than the preset storage water level threshold When the storage water level threshold is set, the preset data frame is inserted after the interval frame number X plus 1 TPC frame.

可选的,本发明实施例计算间隔帧个数X包括:Optionally, calculating the number X of interval frames in this embodiment of the present invention includes:

按照预设周期计算所述间隔帧个数X。The number X of the interval frames is calculated according to a preset period.

可选的,本发明实施例预设数据帧包括:Optionally, the preset data frame in this embodiment of the present invention includes:

包含第一预设长度的空帧识别码和第二预设长度的伪随机二进制序列PRBS的数据帧的空帧;或,an empty frame of a data frame of a pseudo-random binary sequence PRBS comprising a first preset length of an empty frame identification code and a second preset length; or,

预设格式的与TPC帧的帧长相同的数据帧;A data frame with the same frame length as the TPC frame in a preset format;

其中,所述第一预设长度与第二预设长度的和与TPC帧长度相同。Wherein, the sum of the first preset length and the second preset length is the same as the TPC frame length.

可选的,对待发出的数据进行插入预设数据帧的处理之前,本发明实施例方法还包括:对所述待发出的数据进行跨时钟域处理。Optionally, before performing the process of inserting the data to be sent into the preset data frame, the method according to the embodiment of the present invention further includes: performing cross-clock domain processing on the data to be sent.

与相关技术相比,本申请技术方案包括:获取数据的处理速率信息;根据获取的处理速率信息进行数据的处理。本发明实施例降低了延时抖动,提升了数据传输质量。Compared with the related art, the technical solution of the present application includes: acquiring processing rate information of data; and processing data according to the acquired processing rate information. The embodiments of the present invention reduce delay jitter and improve data transmission quality.

图2为本发明实施例处理延时抖动的装置的结构框图,如图2所示,包括:获取单元和处理单元;其中,FIG. 2 is a structural block diagram of an apparatus for processing delay jitter according to an embodiment of the present invention. As shown in FIG. 2 , it includes: an acquisition unit and a processing unit; wherein,

获取单元用于:获取数据的处理速率信息;The obtaining unit is used for: obtaining the processing rate information of the data;

处理单元用于:根据获取的处理速率信息进行数据的处理。The processing unit is used for: processing data according to the acquired processing rate information.

可选的,本发明实施例处理单元包括读写控制模块和插帧模块;其中,Optionally, the processing unit in the embodiment of the present invention includes a read-write control module and a frame insertion module; wherein,

读写控制模块用于:所述获取单元获取的所述处理速率信息包括写时钟频率和写时钟频率时,根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写;The read-write control module is used for: when the processing rate information obtained by the obtaining unit includes the write clock frequency and the write clock frequency, read and write the data in the first FIFO according to the read clock frequency and the write clock frequency;

插帧模块用于:所述获取单元获取的所述处理速率信息包括链路入口和链路出口的流量信息时,根据所述流量信息对待发出的数据进行插入预设数据帧的处理。The frame inserting module is configured to: when the processing rate information obtained by the obtaining unit includes the flow information of the link ingress and the link egress, insert the preset data frame into the data to be sent according to the flow information.

可选的,本发明实施例读写控制模块具体用于:Optionally, the read-write control module in the embodiment of the present invention is specifically used for:

根据所述读时钟频率和所述写时钟频率计算占空比;Calculate a duty cycle according to the read clock frequency and the write clock frequency;

根据计算的所述占空比及预设的FIFO缓存水位阈值,确定是否对第一FIFO中的数据进行读写,以根据FIFO缓存水位控制延迟在预设区间内波动。According to the calculated duty cycle and the preset FIFO buffer water level threshold, it is determined whether to read or write the data in the first FIFO, so as to control the delay fluctuation within the preset interval according to the FIFO buffer water level.

可选的,本发明实施例读写控制模块具体用于:通过预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,以根据生成的使能信号对第一FIFO中的数据进行读写。Optionally, the read-write control module in the embodiment of the present invention is specifically configured to: generate an enable signal for whether to read and write data in the first FIFO by using a preset state machine, so as to control the first FIFO according to the generated enable signal. read and write data in.

可选的,所述插帧模块具体用于:Optionally, the frame insertion module is specifically used for:

计算间隔帧个数

Figure BDA0001380798580000081
Calculate the number of interval frames
Figure BDA0001380798580000081

根据计算获得间隔帧个数X进行所述预设数据帧的插入;According to the calculation to obtain the number of interval frames X, insert the preset data frame;

其中,所述V_ge为光以太网GE模式下链路入口的流量值;所述gain_ge为链路入口通过光转换单元OTU处理后的数据增益;所述V_out为模式下链路入口的流量值;所述gain_gfec前向纠错FEC译码装置的数据增益;

Figure BDA0001380798580000091
为向上取整。Wherein, the V_ge is the traffic value of the link ingress in the optical Ethernet GE mode; the gain_ge is the data gain after the link ingress is processed by the optical conversion unit OTU; the V_out is the traffic value of the link ingress in the mode; the data gain of the forward error correction FEC decoding device of the gain_gfec;
Figure BDA0001380798580000091
to round up.

可选的,所述插帧模块用于根据计算获得间隔帧个数X进行所述预设数据帧的插入包括:Optionally, the frame insertion module is used to obtain the interval frame number X according to the calculation to perform the insertion of the preset data frame, including:

在间隔帧个数X个TPC帧后插入所述预设数据帧;或,Insert the preset data frame after the interval frame number X TPC frames; or,

当由随机存取存储器(RAM)的第二FIFO的水位小于预设存储水位阈值时,在间隔帧个数X个TPC帧后插入所述预设数据帧;当第二FIFO的水位大于预设存储水位阈值时,在间隔帧个数X加1个TPC帧后插入所述预设数据帧。When the water level of the second FIFO in the random access memory (RAM) is smaller than the preset storage water level threshold, the preset data frame is inserted after the interval frame number X TPC frames; when the water level of the second FIFO is greater than the preset storage water level threshold When storing the water level threshold, the preset data frame is inserted after adding 1 TPC frame to the number of interval frames X.

可选的,所述插帧模块用于计算间隔帧个数X包括:Optionally, the frame insertion module is used to calculate the number X of interval frames including:

按照预设周期计算所述间隔帧个数X。The number X of the interval frames is calculated according to a preset period.

可选的,本发明实施例预设数据帧包括:Optionally, the preset data frame in this embodiment of the present invention includes:

包含第一预设长度的空帧识别码和第二预设长度的伪随机二进制序列PRBS的数据帧的空帧;或,an empty frame of a data frame of a pseudo-random binary sequence PRBS comprising a first preset length of an empty frame identification code and a second preset length; or,

预设格式的与TPC帧的帧长相同的数据帧;A data frame with the same frame length as the TPC frame in a preset format;

其中,所述第一预设长度与第二预设长度的和与TPC帧长度相同。Wherein, the sum of the first preset length and the second preset length is the same as the TPC frame length.

可选的,本发明实施例装置还包括跨时钟域处理单元,用于对待发出的数据进行插入预设数据帧的处理之前,对待发出的数据进行跨时钟域处理。Optionally, the apparatus according to the embodiment of the present invention further includes a cross-clock domain processing unit, configured to perform cross-clock domain processing on the data to be sent before the data to be sent is inserted into the preset data frame.

本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述的处理延时抖动的方法。An embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the above method for processing delay jitter.

本发明实施例还提供一种终端,包括:存储器和处理器;其中,An embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein,

处理器被配置为执行存储器中的程序指令;the processor is configured to execute program instructions in the memory;

程序指令在处理器读取执行以下操作:Program instructions are read by the processor to do the following:

获取数据的处理速率信息;Obtain data processing rate information;

根据获取的处理速率信息进行数据的处理。Data is processed according to the acquired processing rate information.

以下通过应用示例对本发明实施例的方法进行清楚详细的说明,应用示例仅用于陈述本发明,并不用于限定本发明的保护范围。The methods of the embodiments of the present invention will be clearly and detailedly described below through application examples, which are only used to describe the present invention, and are not used to limit the protection scope of the present invention.

应用示例Application example

应用示例以100吉(G)数字信号处理(DSP)为例,对发端的处理延时抖动的方法进行介绍,应用示例有64*10路Serdes(串行器)输入,每路输入是64比特(bit)的数据。The application example takes 100 gigabit (G) digital signal processing (DSP) as an example to introduce the method of processing delay jitter at the originating end. The application example has 64*10 Serdes (serializer) inputs, each input is 64 bits (bit) data.

参照相关技术将串行器数据转换到DSP工作的时钟域,同时将并行度由640转换为320;其中,时钟域转换先入先出队列(FIFO)大小为32x64bit,共10个;上述处理方式通过异步FIFO方式实现。当发端的接收FIFO发生写满时,需要清零FIFO的读写指针和使能,同时,读空或写满时需要分别上报给中央处理器(CPU),并产生一个异常告警。Referring to the related art, the serializer data is converted to the clock domain of DSP work, and the parallelism is converted from 640 to 320; among them, the first-in-first-out queue (FIFO) size of the clock domain conversion is 32x64bit, a total of 10; the above processing method passes Asynchronous FIFO implementation. When the receiving FIFO of the originating end is full, the read and write pointer and enable of the FIFO need to be cleared. At the same time, when the reading is empty or the writing is full, it needs to be reported to the central processing unit (CPU) respectively, and an abnormal alarm will be generated.

处理速率信息包括写时钟频率和写时钟频率时,根据读时钟频率和写时钟频率对第一FIFO(发端的接收FIFO)中的数据进行读写;When the processing rate information includes the write clock frequency and the write clock frequency, read and write the data in the first FIFO (the receiving FIFO of the sender) according to the read clock frequency and the write clock frequency;

可选的,本应用示例根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, this application example reads and writes data in the first FIFO according to the read clock frequency and the write clock frequency, including:

根据读时钟频率和写时钟频率计算占空比;Calculate the duty cycle according to the read clock frequency and the write clock frequency;

根据计算的占空比及预设的FIFO缓存水位阈值,确定是否对第一FIFO中的数据进行读写,以以根据FIFO缓存水位控制延迟在预设区间内波动。Whether to read or write the data in the first FIFO is determined according to the calculated duty cycle and the preset FIFO buffer water level threshold, so as to control the delay fluctuation within the preset interval according to the FIFO buffer water level.

可选的,本发明实施例根据读时钟频率和写时钟频率对第一FIFO中的数据进行读写包括:Optionally, in this embodiment of the present invention, reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency includes:

通过预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,以根据生成的使能信号对第一FIFO中的数据进行读写。An enable signal for whether to read and write data in the first FIFO is generated by a preset state machine, so as to read and write data in the first FIFO according to the generated enable signal.

本应用示例预设的状态机生成是否对第一FIFO中的数据进行读写的使能信号,图3为本发明应用示例的状态机示意图,如图3所示,本应用示例FIFO缓存水位阈值为第一FIFO水位的一半,本应用示例简称为半水位;本应用示例,当占空比等于2、3时,状态机在S_0状态输出使能,其余状态输出0;当占空比等于4、6、7时,状态机在S_0状态输出0,其余状态输出使能。当占空比为0时,表示读使能不受占空比控制,水位半满即读,不到半满时不读。状态机的具体工作包括:The state machine preset in this application example generates an enable signal for whether to read or write data in the first FIFO. Figure 3 is a schematic diagram of the state machine of the application example of the present invention. As shown in Figure 3, the FIFO buffer water level threshold of this application example is It is half of the water level of the first FIFO, this application example is referred to as half water level; in this application example, when the duty cycle is equal to 2, 3, the state machine outputs enable in the S_0 state, and outputs 0 in the other states; when the duty cycle is equal to 4 , 6, 7, the state machine outputs 0 in the S_0 state, and the output of other states is enabled. When the duty cycle is 0, it means that the read enable is not controlled by the duty cycle, and the water level is half full, and it is read, and it is not read when it is less than half full. The specific work of the state machine includes:

系统复位或者清零时,状态机进入初始态(IDLE);在此状态判断到第一FIFO读水位大于等于半水位时,状态机进入S_0状态。When the system is reset or cleared, the state machine enters the initial state (IDLE); in this state, when it is judged that the first FIFO read water level is greater than or equal to the half water level, the state machine enters the S_0 state.

在S_0状态,状态机无条件跳转至S_1;In the S_0 state, the state machine unconditionally jumps to S_1;

在S_1状态,当判断到第一FIFO读水位大于等于半水位时,且占空比为2时,状态机跳转至S_0状态;判断到第一FIFO读水位小于半水位或占空比不等于2时,状态机跳转至S_2状态;In the S_1 state, when it is judged that the first FIFO read water level is greater than or equal to the half water level, and the duty cycle is 2, the state machine jumps to the S_0 state; it is judged that the first FIFO read water level is less than the half water level or the duty cycle is not equal to 2, the state machine jumps to the S_2 state;

在S_2状态,当判断到第一FIFO读水位大于等于半水位时,且占空比为3或2时,状态机跳转至S_0状态;判断到第一FIFO读水位小于半水位或占空比不等于2和3时,状态机跳转至S_3状态;In the S_2 state, when it is judged that the first FIFO read water level is greater than or equal to the half water level and the duty cycle is 3 or 2, the state machine jumps to the S_0 state; it is judged that the first FIFO read water level is less than the half water level or the duty cycle When not equal to 2 and 3, the state machine jumps to the S_3 state;

在S_3状态,当判断到第一FIFO读水位小于半水位,且占空比为4或3时,状态机跳转至S_0状态;判断到第一FIFO读水位大于等于半水位,或占空比不为3和4时,状态机跳转至S_4状态;In the S_3 state, when it is judged that the first FIFO read water level is less than the half water level and the duty cycle is 4 or 3, the state machine jumps to the S_0 state; it is judged that the first FIFO read water level is greater than or equal to the half water level, or the duty cycle When not 3 and 4, the state machine jumps to the S_4 state;

在S_4状态,状态机无条件跳转至S_5状态;In the S_4 state, the state machine unconditionally jumps to the S_5 state;

在S_5状态,当判断到第一FIFO读水位小于半水位,且占空比为6或4时,状态机回跳至S_0状态;判断到第一FIFO读水位大于或等于半水位,或占空比不等于6和4时,状态机跳转至S_6状态;In the S_5 state, when it is judged that the first FIFO read water level is less than the half water level and the duty cycle is 6 or 4, the state machine jumps back to the S_0 state; it is judged that the first FIFO read water level is greater than or equal to the half water level, or the duty cycle is 6 or 4. When the ratio is not equal to 6 and 4, the state machine jumps to the S_6 state;

在S_6状态,当判断到第一FIFO读水位小于半水位,且占空比为7时,状态机回跳至S_0状态;判断到第一FIFO读水位大于或等于半水位,或占空比不等于7时,状态机跳转至S_7状态;In the S_6 state, when it is judged that the first FIFO read water level is less than the half water level and the duty cycle is 7, the state machine jumps back to the S_0 state; it is judged that the first FIFO read water level is greater than or equal to the half water level, or the duty cycle is not When equal to 7, the state machine jumps to the S_7 state;

在S_7状态,当判断到占空比为7时,状态机回跳至S_0状态;判断到占空比不等于7时,状态机跳转至S_8状态;In the S_7 state, when it is judged that the duty cycle is 7, the state machine jumps back to the S_0 state; when it is judged that the duty cycle is not equal to 7, the state machine jumps to the S_8 state;

在S_8状态,状态机无条件跳转至S_0状态。In the S_8 state, the state machine unconditionally jumps to the S_0 state.

本应用示例,根据状态机不同状态的读使能,对第一FIFO中的数据进行读取,实现了根据第一FIFO缓存水位控制延迟在预设区间内波动。In this application example, the data in the first FIFO is read according to the read enable of different states of the state machine, so that the delay fluctuation within the preset interval is controlled according to the buffer water level of the first FIFO.

本应用示例根据相关技术选择输出FIFO的数据,如果是10通道,选择所有10个通道FIFO的输出数据;如果是4通道,选择低4个FIFO的读数据。因为4通道时输出数据只有256bit,需要在光传输处理装置上进行高位补充64bit,从而与10通道时统一成320bit。This application example selects the data of the output FIFO according to the related technology. If it is 10 channels, select the output data of all 10 channel FIFOs; if it is 4 channels, select the read data of the lower 4 FIFOs. Because the output data is only 256bit with 4 channels, it is necessary to supplement 64bits with high bits on the optical transmission processing device, so that it is unified into 320bits with 10 channels.

通过使用状态机产生的使能,对第一FIFO进行数据读取,读使能的均匀分布使数据均匀流出,减少延时抖动。参照本应用示例第一FIFO的数据读使能处理,数据读出到光传输处理装置和turbo乘积码编码处理装置进行数据流处理;图4为本应用示例状态机在100GDSP中连接示意图,如图4所示,状态机与第一FIFO的读端口连接,用于发出读使能信号,读出的数据被发往光传输处理装置和turbo乘积码编码处理装置。By using the enable generated by the state machine, data is read from the first FIFO, and the even distribution of the read enable enables the data to flow out evenly, reducing delay jitter. Referring to the data read enable processing of the first FIFO in this application example, the data is read out to the optical transmission processing device and the turbo product code encoding processing device for data stream processing; Figure 4 is a schematic diagram of the connection of the state machine in the 100GDSP for this application example, as shown in the figure As shown in 4, the state machine is connected to the read port of the first FIFO for sending out a read enable signal, and the read data is sent to the optical transmission processing device and the turbo product code encoding processing device.

本应用示例可以在发端发送数据之前进行插帧处理,数据可以来自turbo乘积码编码(TPCE)装置的输出数据,也可以发端自己产生的伪随机二进制序列(PRBS)数据,在插帧处理之前,对上述数据进行以下处理:插入帧头和训练序列、对调制信号进行脉冲成型及预加重滤波、非线性预补偿、寄存器配置即数据选择。In this application example, frame insertion can be performed before the sender sends data. The data can come from the output data of the turbo product code encoding (TPCE) device, or the Pseudo-Random Binary Sequence (PRBS) data generated by the sender. Before frame insertion, The above data are processed as follows: inserting frame headers and training sequences, performing pulse shaping and pre-emphasis filtering on the modulated signal, nonlinear pre-compensation, and register configuration, that is, data selection.

由于100G DSP发端的链路入口速率在100以太网(GE)模式/100G模式/OTU直通下的数据速率即流量不同,而在100G DSP发端的链路出口处以自定义的固定速率发送;造成100G DSP发端的链路流量不匹配,从而造成内部存储(例如FIFO水位等)不稳定,长时间累积会出现读空或溢出(FIFO会出现空满状态),从而引发链路的不稳定,造成延时抖动,影响数据传输质量。Because the data rate, i.e., the flow, of the link ingress rate of the 100G DSP originating end is different in 100 Ethernet (GE) mode/100G mode/OTU pass-through, but it is sent at a custom fixed rate at the link egress originating from the 100G DSP; resulting in 100G The link traffic at the originating end of the DSP does not match, resulting in unstable internal storage (such as FIFO water level, etc.), and long-term accumulation will cause read empty or overflow (FIFO will appear empty), which will lead to link instability and delay. jitter, which affects the quality of data transmission.

本应用示例根据链路入口和链路出口的流量信息确定是否插入预设的数据帧,即在数据不够的是否插入预设的数据帧;预设的数据帧可以是空帧,是否插入空帧可以使能打开或者关闭。图5为本发明实施例空帧的组成结构示意图,如图5所示,空帧包含第一预设长度的空帧识别码和第二预设长度的伪随机二进制序列(PRBS)。例如、空帧的开头是一段192比特长的空帧识别码(null frame identifier),然后接着是31阶PRBS,空帧总数据长度是432拍,和TPC帧大小一致。光信号数据通过偏振分束器(PBS)分成两个同相(I)和正交(Q)的偏振态数据;再与本震激光机进行混频处理,输出同相实部(XI)的信号、同相虚部(YI)的信号、正交实部(XQ)的信号、正交虚部(YQ)的信号;本应用示例,XI和YI两路的空帧识别码相同;XQ和YQ两路的空帧识别码相同,空帧识别码可配置。以下为空帧识别码的示例,This application example determines whether to insert a preset data frame according to the traffic information of the link ingress and link egress, that is, whether to insert a preset data frame when the data is insufficient; the preset data frame can be an empty frame, whether to insert an empty frame Can be turned on or off. FIG. 5 is a schematic structural diagram of a null frame according to an embodiment of the present invention. As shown in FIG. 5 , the null frame includes a null frame identification code of a first preset length and a pseudo-random binary sequence (PRBS) of a second preset length. For example, the beginning of a null frame is a 192-bit long null frame identifier, followed by a 31-order PRBS, and the total data length of the null frame is 432 beats, which is consistent with the TPC frame size. The optical signal data is divided into two in-phase (I) and quadrature (Q) polarization state data by the polarization beam splitter (PBS); and then mixed with the local vibration laser machine to output the in-phase real part (XI) signal, in-phase The signal of the imaginary part (YI), the signal of the quadrature real part (XQ), the signal of the quadrature imaginary part (YQ); in this application example, the empty frame identification codes of the two channels XI and YI are the same; The empty frame identification code is the same, and the empty frame identification code can be configured. The following is an example of an empty frame identifier,

XI路的空帧识别码:Empty frame identification code of channel XI:

011011000101011011010100001100011000000001100101100100111100001001010110100100001111000101100111011111101111001101011001101001110010010111110110100110010110010110110111001000010011010101011000;011011000101011011010100001100011000000001100101100100111100001001010110100100001111000101100111011111101111001101011001101001110010010111110110100110010110010110110111001000010011010101011000;

XQ路的空帧识别码:Empty frame identification code of XQ road:

001110010000001110000001011001001101010100110000110001101001011100000011110001011010010000110010001010111010011000001100111100100111000010100011110011000011000011100010011101000110000000001101。0011001000000111000000110011011010101010011000011000111101011000000001111011010010010010001010111011001100110010010010011001111111111111111111111100111111111001111001111001111111100

接收端根据空帧结构进行差分解码,并删除空帧。The receiver performs differential decoding according to the empty frame structure and deletes the empty frame.

本应用示例在空帧插入的PRBS是31阶的,四路交织分配到四路上去,如表1所示:In this application example, the PRBS inserted in the empty frame is of order 31, and the four-way interleaving is allocated to the four-way, as shown in Table 1:

XIXI prbs[255]、prbs[251]、……prbs[3]prbs[255], prbs[251], ...prbs[3] XQXQ prbs[254]、prbs[250]、……prbs[2]prbs[254], prbs[250], ... prbs[2] YIYI prbs[253]、prbs[249]、……prbs[1]prbs[253], prbs[249], ...prbs[1] YQYQ prbs[252]、prbs[248]、……prbs[0]prbs[252], prbs[248], ...prbs[0]

表1Table 1

本应用示例插入的空帧需要做星座映射,映射方式是比特取反的操作。本应用示例按照预设周期计算间隔帧个数X,预设周期可以是固定周期,也可以是动态变化的周期,例如、第一次计算间隔帧个数X由本领域技术人员根据校验分析获得,计算获得间隔帧个数X后,以最新计算获得的间隔帧个数X作为下一个预设周期;The empty frame inserted in this application example needs to do constellation mapping, and the mapping method is a bit inversion operation. In this application example, the number of interval frames X is calculated according to a preset period, and the preset period may be a fixed period or a dynamically changing period. For example, the first calculation of the number of interval frames X is obtained by those skilled in the art based on verification analysis , after calculating the number of interval frames X, the number of interval frames X obtained by the latest calculation is used as the next preset period;

可选的,对待发出的数据进行插入预设数据帧的处理包括:Optionally, the process of inserting the data to be sent into the preset data frame includes:

计算间隔帧个数

Figure BDA0001380798580000131
Calculate the number of interval frames
Figure BDA0001380798580000131

根据计算获得间隔帧个数X进行所述预设数据帧的插入;According to the calculation to obtain the number of interval frames X, insert the preset data frame;

其中,V_ge为以太网(GE)模式下链路入口的流量值;gain_ge为链路入口通过光转换单元(OTU)处理后的数据增益;V_out为模式下链路入口的流量值;gain_gfec前向纠错(FEC)译码装置的数据增益;

Figure BDA0001380798580000141
为向上取整。Among them, V_ge is the traffic value of the link ingress in the Ethernet (GE) mode; gain_ge is the data gain after the link ingress is processed by the optical conversion unit (OTU); V_out is the traffic value of the link ingress in the mode; gain_gfec forward The data gain of the error correction (FEC) decoding device;
Figure BDA0001380798580000141
to round up.

本应用示例针对100吉(G)数字信号处理(DSP),This application example is for 100 gigabit (G) digital signal processing (DSP),

TPC帧比例n=V_100ge*gain_100ge/(V_otu*gain_fec);TPC frame ratio n=V_100ge*gain_100ge/(V_otu*gain_fec);

空帧比例为1-n;The ratio of empty frames is 1-n;

TPC帧与空帧比例rate_np2100ge=n/(1-n);TPC frame and empty frame ratio rate_np2100ge=n/(1-n);

间隔帧个数X为rate_np2100ge数值的向上取整;The number of interval frames X is the upward rounding of the value of rate_np2100ge;

其中,V_100ge为:100GE模式下,100G DSP发端的链路入口处的数据流量;gain_100ge为:100GE模式下,发端的链路入口数据进行OTU处理后的数据增益;V_out为:OTU模式下,100G DSP发端的链路入口处的数据流量;gain_gfec为:FEC译码模块的数据增益。Among them, V_100ge is: in 100GE mode, the data traffic at the link ingress of the 100G DSP originating end; gain_100ge is: in 100GE mode, the data gain of the originating link ingress data after OTU processing; V_out is: in OTU mode, 100G The data flow at the entry of the link sent by the DSP; gain_gfec is: the data gain of the FEC decoding module.

可选的,本发明实施例根据计算获得间隔帧个数X进行预设数据帧的插入包括:Optionally, the embodiment of the present invention performs the insertion of the preset data frame according to the number X of the interval frames obtained by calculation, including:

在间隔帧个数X个TPC帧后插入预设数据帧;或,Insert a preset data frame after the interval frame number X TPC frames; or,

当由随机存取存储器(RAM)组成的第二FIFO的水位小于预设存储水位阈值时,在间隔帧个数X个TPC帧后插入预设数据帧;当第二FIFO的水位大于预设存储水位阈值时,在间隔帧个数X加1个TPC帧后插入预设数据帧。When the water level of the second FIFO composed of random access memory (RAM) is lower than the preset storage water level threshold, the preset data frame is inserted after the interval frame number X TPC frames; when the water level of the second FIFO is greater than the preset storage water level When the water level threshold is set, the preset data frame is inserted after the interval frame number X plus 1 TPC frame.

可选的,本发明实施例计算间隔帧个数X包括:Optionally, calculating the number X of interval frames in this embodiment of the present invention includes:

按照预设周期计算所述间隔帧个数X。The number X of the interval frames is calculated according to a preset period.

由于空帧与待发送的数据属于异步时钟,在插入预设数据帧之前,本应用示例对数据进行跨时钟域处理,跨时钟域处理的方法可以包括相关技术中已有的实现方法,在此不做赘述。Since the empty frame and the data to be sent belong to the asynchronous clock, before inserting the preset data frame, this application example performs cross-clock domain processing on the data. The cross-clock domain processing method may include the existing implementation methods in the related art, here I won't go into details.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware (such as a processor) through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk Wait. Optionally, all or part of the steps in the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above-mentioned embodiments can be implemented in the form of hardware, for example, an integrated circuit to implement its corresponding function, or it can be implemented in the form of a software function module, for example, a processor executes a function stored in a memory. program/instruction to achieve its corresponding function. The present invention is not limited to any particular form of combination of hardware and software.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described contents are only the embodiments adopted to facilitate the understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art to which the present invention belongs, without departing from the spirit and scope disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the scope of the patent protection of the present invention still needs to be The scope defined by the appended claims shall prevail.

Claims (14)

1. A method of handling delay jitter, comprising:
acquiring processing rate information of data;
calculating a duty ratio according to the read clock frequency and the write clock frequency when the processing rate information comprises the read clock frequency and the write clock frequency; determining whether to read and write data in the first FIFO according to the calculated duty ratio and a preset FIFO cache water level threshold value so as to control the delay to fluctuate in a preset interval according to the FIFO cache water level;
when the processing rate information comprises the flow information of a link inlet and a link outlet, inserting preset data frames into data to be sent according to the flow information;
the processing of inserting the preset data frame into the data to be sent out includes:
calculating the number of interval frames
Figure FDA0002622484630000011
Inserting the preset data frame according to the number X of the interval frames obtained by calculation;
wherein, V _ GE is the flow value of the link entrance under the GE mode; gain _ ge is data gain of the link entrance after being processed by the optical switching unit OTU; v _ OTU is the flow value of the link entrance in the OTU mode; gain-fec forward error correction FEC data gain of the decoding device;
Figure FDA0002622484630000012
is rounded up.
2. The method of claim 1, wherein reading and writing data in the first FIFO comprises:
and generating an enabling signal whether to read and write the data in the first FIFO through a preset state machine so as to read and write the data in the first FIFO according to the generated enabling signal.
3. The method according to claim 1, wherein said inserting the predetermined data frame according to the calculated number X of the interval frames comprises:
inserting the preset data frame after X TPC frames are spaced; or,
when the water level of a second FIFO (first in first out) consisting of a Random Access Memory (RAM) is smaller than a preset storage water level threshold value, inserting a preset data frame after X TPC (transmit power control) frames are spaced by the number of frames; and when the water level of the second FIFO is greater than a preset storage water level threshold, inserting the preset data frame after adding 1 TPC frame to the number X of the interval frames.
4. The method of claim 1, wherein said calculating the number X of inter frames comprises:
and calculating the number X of the interval frames according to a preset period.
5. The method of claim 1, 3 or 4, wherein the default data frame comprises:
the null frame comprises a null frame identification code with a first preset length and a data frame of a pseudo random binary sequence PRBS with a second preset length; or,
presetting a data frame with the same format as the TPC frame;
wherein the sum of the first preset length and the second preset length is the same as the TPC frame length.
6. The method according to claim 1, 2, 3 or 4, wherein before the processing of inserting the preset data frame into the data to be sent out, the method further comprises:
and performing clock domain crossing processing on the data to be sent.
7. An apparatus for processing delay jitter, comprising: an acquisition unit and a processing unit; wherein,
the acquisition unit is used for: acquiring processing rate information of data;
the processing unit is used for: processing data according to the acquired processing rate information;
the processing unit comprises a read-write control module and a frame insertion module; wherein,
the read-write control module is used for: when the processing rate information acquired by the acquisition unit comprises a read clock frequency and a write clock frequency, reading and writing data in the first FIFO according to the read clock frequency and the write clock frequency;
the frame insertion module is used for: when the processing rate information acquired by the acquisition unit includes flow information of a link inlet and a link outlet, performing processing of inserting a preset data frame into data to be transmitted according to the flow information;
the read-write control module is specifically configured to:
calculating a duty cycle from the read clock frequency and the write clock frequency;
determining whether to read and write data in the first FIFO according to the calculated duty ratio and a preset FIFO cache water level threshold value so as to control the delay to fluctuate in a preset interval according to the FIFO cache water level;
the frame insertion module is specifically configured to:
calculating the number of interval frames
Figure FDA0002622484630000031
Inserting the preset data frame according to the number X of the interval frames obtained by calculation;
wherein, V _ GE is the flow value of the link entrance under the GE mode; gain _ ge is data gain of the link entrance after being processed by the optical switching unit OTU; v _ OTU is the flow value of the link entrance in the OTU mode; the data gain of the gain _ FEC FEC decoding device;
Figure FDA0002622484630000032
is rounded up.
8. The apparatus of claim 7, wherein the read-write control module is specifically configured to: and generating an enabling signal whether to read and write the data in the first FIFO through a preset state machine so as to read and write the data in the first FIFO according to the generated enabling signal.
9. The apparatus of claim 7, wherein the frame insertion module is configured to insert the preset data frame according to the number X of the interval frames obtained by calculation includes:
inserting the preset data frame after X TPC frames are spaced; or,
when the water level of a second FIFO (first in first out) consisting of a Random Access Memory (RAM) is smaller than a preset storage water level threshold value, inserting a preset data frame after X TPC (transmit power control) frames are spaced by the number of frames; and when the water level of the second FIFO is greater than a preset storage water level threshold, inserting the preset data frame after adding 1 TPC frame to the number X of the interval frames.
10. The apparatus of claim 7, wherein the frame interpolation module is configured to calculate the number X of inter frames comprises:
and calculating the number X of the interval frames according to a preset period.
11. The apparatus of claim 8, 9 or 10, wherein the predetermined data frame comprises:
the null frame comprises a null frame identification code with a first preset length and a data frame of a pseudo random binary sequence PRBS with a second preset length; or,
presetting a data frame with the same format as the TPC frame;
wherein the sum of the first preset length and the second preset length is the same as the TPC frame length.
12. The apparatus according to claim 8, 9 or 10, further comprising a clock domain crossing processing unit, configured to perform clock domain crossing processing on the data to be sent before performing processing for inserting a preset data frame on the data to be sent.
13. A computer storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement a method of handling delay jitter as claimed in any one of claims 1 to 6.
14. A terminal, comprising: a memory and a processor; wherein,
the processor is configured to execute program instructions in the memory;
the program instructions read on the processor to perform the following operations:
acquiring processing rate information of data;
calculating a duty ratio according to the read clock frequency and the write clock frequency when the processing rate information comprises the read clock frequency and the write clock frequency; determining whether to read and write data in the first FIFO according to the calculated duty ratio and a preset FIFO cache water level threshold value so as to control the delay to fluctuate in a preset interval according to the FIFO cache water level;
when the processing rate information comprises the flow information of a link inlet and a link outlet, inserting preset data frames into data to be sent according to the flow information;
the processing of inserting the preset data frame into the data to be sent out includes:
calculating the number of interval frames
Figure FDA0002622484630000041
Inserting the preset data frame according to the number X of the interval frames obtained by calculation;
wherein, V _ GE is the flow value of the link entrance under the GE mode; gain _ ge is data gain of the link entrance after being processed by the optical switching unit OTU; v _ OTU is the flow value of the link entrance in the OTU mode; the data gain of the gain _ FEC FEC decoding device;
Figure FDA0002622484630000042
is rounded up.
CN201710702893.8A 2017-08-16 2017-08-16 Method and device for processing delay jitter Active CN109412740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710702893.8A CN109412740B (en) 2017-08-16 2017-08-16 Method and device for processing delay jitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710702893.8A CN109412740B (en) 2017-08-16 2017-08-16 Method and device for processing delay jitter

Publications (2)

Publication Number Publication Date
CN109412740A CN109412740A (en) 2019-03-01
CN109412740B true CN109412740B (en) 2020-09-29

Family

ID=65454537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710702893.8A Active CN109412740B (en) 2017-08-16 2017-08-16 Method and device for processing delay jitter

Country Status (1)

Country Link
CN (1) CN109412740B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4179920B2 (en) * 2003-04-30 2008-11-12 株式会社リコー Buffer buffer circuit
EP2198543B1 (en) * 2007-09-14 2016-12-14 Semtech Corporation High-speed serializer, related components, systems and methods
US8797850B2 (en) * 2008-01-10 2014-08-05 Qualcomm Incorporated System and method to adapt to network congestion
WO2012106910A1 (en) * 2011-07-20 2012-08-16 华为技术有限公司 Method and device for correcting clock jitter
CN102946330B (en) * 2012-09-29 2017-03-15 华为技术有限公司 network packet loss measuring method, device and system

Also Published As

Publication number Publication date
CN109412740A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109729588B (en) Service data transmission method and device
US20220416895A1 (en) Data transmission method and apparatus, terminal device and storage medium
JP6149150B2 (en) Timestamp correction in skewed multilane communication links
US11082739B2 (en) Data flow control method and apparatus
CN106717111A (en) Method, device, and system for receiving CPRI data stream and ethernet frame
CN116795172B (en) Cross-clock domain processing method, medium and device for high-speed digital transmission
CN110708133B (en) Method and device for clock synchronization and time synchronization in system based on FPGA
WO2021103640A1 (en) Data transmission method and apparatus, terminal device, and storage medium
JP2017532908A (en) Data caching method, apparatus and storage medium
WO2017063457A1 (en) Rate adaptation method and apparatus, and computer storage medium
CN102006158B (en) Clock synchronizing method and system
WO2018000820A1 (en) Method and device for queue management
CN103560982B (en) Bag apparatus and method is cut for what Interlaken enhancement mode was dispatched
CN105446699A (en) Data frame queue management method
CN101977092B (en) Forward error correction mapping and de-mapping techniques
CN104471888B (en) Processing method, equipment and the system of free block IDLE in block of burst data
CN109412740B (en) Method and device for processing delay jitter
WO2024104200A1 (en) Dynamic power consumption management system
WO2016192321A1 (en) Phase ambiguity correction method and device, and computer storage medium
CN102386969A (en) Receiving performance optimization method and device for optical communication system
WO2021218721A1 (en) Service processing method and apparatus
WO2017219979A1 (en) Service processing method and device
US11438091B2 (en) Method and apparatus for processing bit block stream, method and apparatus for rate matching of bit block stream, and method and apparatus for switching bit block stream
CN108023660B (en) A kind of optical transport network service access method and device
CN103428039B (en) The method and device of IMA delay difference detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant