Movatterモバイル変換


[0]ホーム

URL:


CN113287266B - Data transmission method, network chip and communication system - Google Patents

Data transmission method, network chip and communication system
Download PDF

Info

Publication number
CN113287266B
CN113287266BCN201880100557.9ACN201880100557ACN113287266BCN 113287266 BCN113287266 BCN 113287266BCN 201880100557 ACN201880100557 ACN 201880100557ACN 113287266 BCN113287266 BCN 113287266B
Authority
CN
China
Prior art keywords
data
transmission
time slot
code stream
interface
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
CN201880100557.9A
Other languages
Chinese (zh)
Other versions
CN113287266A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Publication of CN113287266ApublicationCriticalpatent/CN113287266A/en
Application grantedgrantedCritical
Publication of CN113287266BpublicationCriticalpatent/CN113287266B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the application provides a network chip, a data transmission method and a communication system. The network chip comprises a time slot scheduler, a channel encoder and a data distributor, wherein the time slot scheduler is used for determining transmission time slots corresponding to transmission data from two service interfaces, the channel encoder is used for respectively encoding the two transmission data in the two time slots so as to respectively obtain two code stream data, and the data distributor is used for respectively distributing the code stream data to corresponding receiving ends. The network chip flexibly accesses a plurality of different or same service interfaces and shares one encoder, so that the hardware resources of the network chip can be saved.

Description

Translated fromChinese
一种数据传输的方法、网络芯片以及通信系统A data transmission method, network chip and communication system

技术领域technical field

本申请涉及通信领域,尤其涉及一种数据传输的方法、网络芯片以及通信系统。The present application relates to the communication field, in particular to a data transmission method, a network chip and a communication system.

背景技术Background technique

前向纠错(forward error correction,FEC)编码是一种在通信系统中控制传输错误的技术,通过在发送数据中加入额外的信息进行错误恢复,以降低误码率。随着串行数据速率的不断提升,已经接近每条通道56G比特/秒,信噪比对高速信号的影响正在不断提高,因此需要采用FEC技术对传输数据进行纠错,以降低误码率。Forward error correction (forward error correction, FEC) coding is a technology to control transmission errors in a communication system, by adding additional information to the transmitted data for error recovery to reduce the bit error rate. With the continuous improvement of the serial data rate, it is close to 56Gbit/s per channel, and the impact of the signal-to-noise ratio on high-speed signals is constantly increasing. Therefore, it is necessary to use FEC technology to correct errors in the transmitted data to reduce the bit error rate.

现有方案中,一个编码器对应一个业务接口,该编码器对接收到的该业务接口的数据进行编码。以以太网实现FEC编码的方式为例,在接收到以从太网接口传输的数据后,将该数据进行扰码、重组、插入预置标识等等之后,输入到编码器中,以输出码流数据,该码流数据将通过以太网的物理介质访问(physical media Access,PMA)发送至对应的接收端中。In the existing solution, one encoder corresponds to one service interface, and the encoder encodes the received data of the service interface. Taking the way of Ethernet to realize FEC encoding as an example, after receiving the data transmitted from the Ethernet interface, the data is scrambled, reorganized, inserted into the preset logo, etc., and then input into the encoder to output the code Stream data, the code stream data will be sent to the corresponding receiving end through physical media access (PMA) of Ethernet.

上述方案中,业务接口与编码器是一一对应的。若有多个业务接口,则需要与该多个业务接口一一对应的编码器,容易产生资源浪费。例如,一个里德所罗门前向纠错码(Reed Solomon forward error correction,RS-FEC)编码器仅能支持单一的以太网端口,即RS-FEC编码器仅能处理一个业务接口传输的数据,若有多个业务接口,则需要多个一一对应的RS-FEC编码器,容易造成资源浪费。In the above solution, there is a one-to-one correspondence between the service interface and the encoder. If there are multiple service interfaces, encoders corresponding to the multiple service interfaces are required, which is prone to waste of resources. For example, a Reed Solomon forward error correction code (Reed Solomon forward error correction, RS-FEC) encoder can only support a single Ethernet port, that is, the RS-FEC encoder can only process data transmitted by one service interface, if If there are multiple service interfaces, multiple one-to-one corresponding RS-FEC encoders are required, which is likely to cause waste of resources.

发明内容Contents of the invention

本申请实施例提供了一种数据传输的方法、网络芯片以及通信系统,用于实现灵活地接入多个不同或相同的业务接口,并且可以共用一个RS-FEC编码器,提高RS-FEC编码资源的利用率,节约网络资源。The embodiment of the present application provides a data transmission method, a network chip and a communication system, which are used to realize flexible access to multiple different or the same service interfaces, and can share one RS-FEC encoder to improve RS-FEC encoding Resource utilization, saving network resources.

有鉴于此,本申请第一方面提供一种数据传输的方法,包括:In view of this, the first aspect of this application provides a data transmission method, including:

获取第一传输数据,以及第二传输数据,该第一传输数据和该第二传输数据为多个业务接口对应的多组传输数据中的任意两组传输数据;通过信道编码器在第一传输时隙对该第一传输数据进行信道编码,得到第一码流数据,以及通过该信道编码器在第二传输时隙对该第二传输数据进行编码,得到第二码流数据,该第一传输时隙与该第二传输时隙为不同的时隙;之后将第一码流数据发送至与第一码流数据对应的接收端,以及将第二码流数据发送至与第二码流数据对应的接收端。Obtain the first transmission data and the second transmission data, the first transmission data and the second transmission data are any two sets of transmission data in the multiple sets of transmission data corresponding to multiple service interfaces; performing channel coding on the first transmission data in a time slot to obtain first code stream data, and encoding the second transmission data in a second transmission time slot by the channel encoder to obtain second code stream data, the first The transmission time slot and the second transmission time slot are different time slots; then the first code stream data is sent to the receiving end corresponding to the first code stream data, and the second code stream data is sent to the receiving end corresponding to the second code stream data The receiving end corresponding to the data.

在本申请实施例中,可以接入多个业务接口,并获取多个业务接口对应的多组传输数据,每组传输数据都有对应的传输时隙。因此,可以使用同一个信道编码器在每组传输数据对应的传输时隙中对每组传输数据进行编码。例如,在第一传输时隙对第一传输数据进行编码,该第一传输数据可以是该多组传输数据中的任意一组,在第二传输时隙对第二传输数据进行编码,该第二传输数据为该多组传输数据中除第一传输数据之外的任意一组。并且,第一传输时隙与第二传输时隙不同。因此,即使获取到多个业务接口对应的多组传输数据,也可以使用同一个信道编码器在对应的传输时隙对每组传输数据进行编码。可以实现多个业务接口共用一个编码器,实现编码器的高效利用,节约网络资源。In the embodiment of the present application, multiple service interfaces can be accessed, and multiple sets of transmission data corresponding to the multiple service interfaces can be obtained, and each set of transmission data has a corresponding transmission time slot. Therefore, the same channel encoder can be used to encode each set of transmission data in the transmission time slot corresponding to each set of transmission data. For example, the first transmission data is encoded in the first transmission time slot, and the first transmission data may be any group of the multiple groups of transmission data, and the second transmission data is encoded in the second transmission time slot, and the first transmission data The second transmission data is any set of the multiple sets of transmission data except the first transmission data. Also, the first transmission slot is different from the second transmission slot. Therefore, even if multiple sets of transmission data corresponding to multiple service interfaces are obtained, the same channel encoder can be used to encode each set of transmission data in a corresponding transmission time slot. Multiple service interfaces can share one encoder to realize efficient utilization of encoders and save network resources.

在本申请的一种可选实施方式中,将第一码流数据发送至与第一码流数据对应的接收端,以及将第二码流数据发送至与第二码流数据对应的接收端可以包括:In an optional implementation manner of the present application, the first code stream data is sent to the receiving end corresponding to the first code stream data, and the second code stream data is sent to the receiving end corresponding to the second code stream data Can include:

在该第一传输时隙,将该第一码流数据按照预置分发规则分发至对应的物理媒介适配子层PMA,以及在该第二传输时隙将该第二码流数据分发至该PMA,并通过该PMA将该第一码流数据传输至与该第一码流数据对应的接收端,以及将该第二码流数据传输至与该第二码流数据对应的接收端。在本申请实施例中,可以通过PMA层将第一码流数据与第二码流数据发送至对应的接收端,完成对码流数据的发送。使接收端可以接收到对应的码流数据。In the first transmission time slot, distribute the first code stream data to the corresponding physical medium adaptation sublayer PMA according to the preset distribution rule, and distribute the second code stream data to the PMA in the second transmission time slot PMA, and transmit the first code stream data to the receiving end corresponding to the first code stream data through the PMA, and transmit the second code stream data to the receiving end corresponding to the second code stream data. In the embodiment of the present application, the first code stream data and the second code stream data may be sent to the corresponding receiving end through the PMA layer to complete the sending of the code stream data. So that the receiving end can receive the corresponding code stream data.

在本申请的一种可选实施方式中,该多个业务接口中任一接口为以太网业务接口或灵活以太网FlexE接口,该获取第一传输数据,包括:In an optional implementation manner of the present application, any one of the multiple service interfaces is an Ethernet service interface or a flexible Ethernet FlexE interface, and the acquisition of the first transmission data includes:

接收该以太网业务接口或FlexE接口至少一种接口中任意一个接口传输的初始码流数据;确定该初始码流数据的处理时隙;在该处理时隙对该初始码流数据进行编码,得到编码数据;在该处理时隙对该编码数据进行扰码,得到该第一传输数据。在本申请实施例中,可以接入一个或多个以太网业务接口或一个或多个灵活以太网(Flexible Ethernet,FlexE)接口,并且,可以对从该一个或多个以太网业务接口或一个或多个FlexE接口发送的数据确定处理时隙进行处理,通过时分复用的方式实现多个以太网业务接口或者FlexE接口的接入,使多个太网业务接口或者FlexE接口可以共用同一个信道编码器进行编码。提高信道编码器的利用率,节约网络资源。Receive the initial code stream data transmitted by any interface in at least one interface of the Ethernet service interface or the FlexE interface; determine the processing time slot of the initial code stream data; encode the initial code stream data in the processing time slot to obtain Coded data: scrambling the coded data in the processing time slot to obtain the first transmission data. In the embodiment of the present application, one or more Ethernet service interfaces or one or more flexible Ethernet (Flexible Ethernet, FlexE) interfaces can be accessed, and from the one or more Ethernet service interfaces or one or multiple FlexE interfaces to determine the processing time slot for processing, and realize the access of multiple Ethernet service interfaces or FlexE interfaces through time division multiplexing, so that multiple Ethernet service interfaces or FlexE interfaces can share the same channel Encoder to encode. Improve the utilization rate of the channel coder and save network resources.

在本申请的一种可选实施方式中,该多个业务接口包括至少一个高速互联(Interlaken)接口,则该获取第一传输数据,可以包括:In an optional implementation manner of the present application, the multiple service interfaces include at least one high-speed interconnection (Interlaken) interface, then the acquisition of the first transmission data may include:

接收该至少一个Interlaken接口中任一接口传输的输入数据;对该输入数据进行扰码,得到扰码数据;在该扰码数据中添加标识数据,以得到预置长度的数据;将该预置长度的数据进行编组,以得到该第一传输数据。在本申请实施例中,当接入了一个或多个Interlaken接口时,可以分别对每个Interlaken接口发送的数据进行扰码与转码处理,得到信道编码器可以处理的传输数据。因此,可以实现Interlaken接口的接入,使一个或多个Interlaken可以使用一个信道编码器进行编码。提高信道编码器的利用率,节约网络资源。receiving input data transmitted by any interface in the at least one Interlaken interface; scrambling the input data to obtain scrambled data; adding identification data to the scrambled data to obtain data of a preset length; The length of data is grouped to obtain the first transmission data. In the embodiment of the present application, when one or more Interlaken interfaces are connected, the data sent by each Interlaken interface can be scrambled and transcoded to obtain transmission data that can be processed by the channel encoder. Therefore, the access of the Interlaken interface can be realized, so that one or more Interlakens can use one channel encoder for encoding. Improve the utilization rate of the channel coder and save network resources.

在本申请的一种可选实施方式中,该多个业务接口包括至少一个灵活光传送网(Flexible optical transport network,FlexO)接口,则该获取第一传输数据,可以包括:In an optional implementation manner of the present application, the multiple service interfaces include at least one flexible optical transport network (Flexible optical transport network, FlexO) interface, then the acquisition of the first transmission data may include:

接收该至少一个FlexO接口中任意一个接口发送的该第一传输数据。在本申请实施例中,当接入了一个或多个FlexO接口时,可以直接对该FlexO接口传输的数据进行编码。因此,可以使一个或多个FlexO接口可以共用同一个信道编码器进行编码。提高信道编码器的利用率,节约网络资源。receiving the first transmission data sent by any interface in the at least one FlexO interface. In the embodiment of the present application, when one or more FlexO interfaces are connected, data transmitted by the FlexO interfaces may be directly encoded. Therefore, one or more FlexO interfaces can share the same channel encoder for encoding. Improve the utilization rate of the channel coder and save network resources.

在本申请的一种可选实施方式中,在通过信道编码器在第一传输时隙对该第一传输数据进行信道编码,得到第一码流数据,以及通过该信道编码器在第二传输时隙对该第二传输数据进行编码,得到第二码流数据之前,该方法还可以包括:In an optional implementation manner of the present application, channel encoding is performed on the first transmission data in the first transmission time slot through a channel encoder to obtain the first code stream data, and the channel encoder performs channel encoding on the second transmission time slot Before the time slot encodes the second transmission data and obtains the second code stream data, the method may also include:

根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。在本申请实施例中,在对每组传输数据进行信道编码,得到码流数据之前,可以根据预置规则确定每组擦混输数据对应的传输时隙。以便后续可以在对应的时隙对每组传输数据进行信道编码,实现信道编码器的时分复用,使多个业务接口可以共用同一个信道编码器。The first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data are determined according to a preset rule. In the embodiment of the present application, before performing channel coding on each group of transmission data to obtain code stream data, the transmission time slot corresponding to each group of erasing and mixing input data may be determined according to preset rules. In order to perform channel coding on each group of transmission data in a corresponding time slot subsequently, time division multiplexing of the channel coder is realized, so that multiple service interfaces can share the same channel coder.

在本申请的一种可选实施方式中,该根据预置规则确定该第一传输数据的该第一传输时隙,以及该第二传输数据的第二传输时隙,可以包括:In an optional implementation manner of the present application, the determining the first transmission time slot of the first transmission data and the second transmission time slot of the second transmission data according to preset rules may include:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的传输时隙;确定该第一传输数据对应的第一业务接口,以及该第二传输数据对应的第二业务接口;根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。在本申请实施例中,可以提前为接入的每个业务接口分配传输时隙。在获取到每个业务接口对应的传输数据后,即可根据提前为接入的每个业务接口分配的传输时隙,确定获取到的每组传输数据的传输时隙。可以提高确定每组传输数据的传输时隙的效率。Assign a transmission time slot to each of the multiple service interfaces according to a preset method, so as to obtain the transmission time slot corresponding to each service interface; determine the first service interface corresponding to the first transmission data, and the second The second service interface corresponding to the transmission data; determine the first transmission time slot from the transmission time slot corresponding to each service interface according to the first service interface, and determine the first transmission time slot from the transmission time slot corresponding to each service interface according to the second service interface The second transmission time slot is determined in the transmission time slot. In the embodiment of the present application, a transmission time slot may be allocated in advance for each service interface accessed. After the transmission data corresponding to each service interface is acquired, the acquired transmission time slot of each group of transmission data can be determined according to the transmission time slot allocated in advance for each service interface accessed. The efficiency of determining the transmission time slot for each group of transmission data can be improved.

在本申请的一种可选实施方式中,该根据预置规则确定该第一传输数据的该第一传输时隙,以及该第二传输数据的第二传输时隙,还可以包括:In an optional implementation manner of the present application, the determining the first transmission time slot of the first transmission data and the second transmission time slot of the second transmission data according to preset rules may further include:

根据预置的分配方式为获取到的每组传输数据分配传输时隙。包括在获取到第一传输数据之后,为第一传输数据分配第一传输时隙。在获取到第二传输数据之后,为第二传输数据分配第二传输时隙。在本申请实施例中,可以在获取到传输数据之后再为每组传输数据分配传输时隙。实时为获取到的传输数据分配传输时隙,灵活地确定每组传输数据对应的传输时隙,使可以根据信道编码器的工作状态分配传输时隙,进一步提高信道编码器的利用率。Allocate a transmission time slot for each set of acquired transmission data according to a preset allocation manner. The method includes allocating a first transmission time slot for the first transmission data after the first transmission data is acquired. After the second transmission data is acquired, a second transmission time slot is allocated for the second transmission data. In the embodiment of the present application, a transmission time slot may be assigned to each group of transmission data after the transmission data is acquired. Allocate transmission time slots for the acquired transmission data in real time, and flexibly determine the transmission time slots corresponding to each group of transmission data, so that the transmission time slots can be allocated according to the working status of the channel encoder, and further improve the utilization rate of the channel encoder.

在本申请的一种可选实施方式中,该第一传输时隙对该第一传输数据进行RS-FEC编码,以得到第一码流数据,可以包括:In an optional implementation manner of the present application, performing RS-FEC encoding on the first transmission data in the first transmission time slot to obtain the first code stream data may include:

在该第一传输时隙对该第一传输数据进行码块交织分组,以得到第一预处理数据;在该第一传输时隙对该第一预处理数据插入对齐标识,得到第二预处理数据;通过该信道编码器对该第二预处理数据进行信道编码,得到该第一码流数据。在本申请实施例中,在进行信道编码得到第一码流数据时,可以对第一传输数据进行码块交织分组、插入对齐标识,使信道编码器可以对得到的第二预处理数据进行信道编码,符合信道编码器的编码格式。Perform code block interleaving and grouping on the first transmission data in the first transmission time slot to obtain first pre-processed data; insert an alignment mark into the first pre-processed data in the first transmission time slot to obtain second pre-processing Data: performing channel encoding on the second preprocessed data by the channel encoder to obtain the first code stream data. In this embodiment of the present application, when channel encoding is performed to obtain the first code stream data, code block interleaving and grouping can be performed on the first transmission data, and alignment marks can be inserted, so that the channel encoder can perform channel encoding on the obtained second preprocessed data. Encoding, which conforms to the encoding format of the channel encoder.

在本申请的一种可选实施方式中,该信道编码器为RS-FEC编码器。在本申请实施例中,信道编码器可以是RS-FEC编码器,因此,可以实现多个业务接口共用同一个RS-FEC编码器。提高RS-FEC编码器的利用率,节约网络资源。In an optional implementation manner of the present application, the channel encoder is an RS-FEC encoder. In the embodiment of the present application, the channel encoder may be an RS-FEC encoder, so multiple service interfaces may share the same RS-FEC encoder. Improve the utilization rate of the RS-FEC encoder and save network resources.

本申请第二方面一种数据传输的方法,包括:In the second aspect of the present application, a data transmission method includes:

获取第一码流数据,以及第二码流数据,该第一码流数据为获取到的多组码流数据中的任意一组码流数据,该第二码流数据为获取到的该多组码流数据中与该第一码流不同的任意一组码流数据,该多组码流数据对应多个业务接口;通过解码器在第一传输时隙对该第一码流数据进行解码,得到第一传输数据,通过该解码器在第二传输时隙对该第二码流数据进行解码,得到第二传输数据,该第一传输时隙与该第二传输时隙不同。Obtain the first code stream data and the second code stream data, the first code stream data is any set of code stream data in the obtained multiple sets of code stream data, and the second code stream data is the obtained multiple code stream data Any set of code stream data different from the first code stream in the group of code stream data, the multiple sets of code stream data correspond to multiple service interfaces; the first code stream data is decoded by the decoder in the first transmission time slot , the first transmission data is obtained, and the second code stream data is decoded by the decoder in the second transmission time slot to obtain the second transmission data, and the first transmission time slot is different from the second transmission time slot.

在本申请实施例中,在获取到多个业务接口对应的多组码流数据之后,使用同一个解码器在每组码流数据对应的传输时隙对每组码流数据进行解码,得到对应的传输数据。因此,可以实现多个业务接口共用同一个解码器。例如,第一码流数据以及第二码流数据后,确定第一码流数据的第一传输时隙,并在第一传输时隙对第一码流数据进行解码之后,发送至对应的第一业务接口。确定第二码流数据的第二传输时隙,并在第二传输时隙对第二码流数据进行解码,之后可以发送至对应的第二业务接口。因此,本申请实施例可以接受多个业务接口对应的多组码流数据,每组码流数据可以对应不同的传输时隙。可以使用同一个解码器在对应的传输时隙对每组传输数据进行解码,以得到传输数据。因此,多个相同或不同的业务接口可以共用同一个解码器。可以提高解码资源的利用率,节约网络资源。In the embodiment of this application, after obtaining multiple sets of code stream data corresponding to multiple service interfaces, use the same decoder to decode each set of code stream data in the transmission time slot corresponding to each set of code stream data, and obtain the corresponding the transmission data. Therefore, multiple service interfaces can share the same decoder. For example, after the first code stream data and the second code stream data, determine the first transmission time slot of the first code stream data, and after decoding the first code stream data in the first transmission time slot, send it to the corresponding A business interface. The second transmission time slot of the second code stream data is determined, and the second code stream data is decoded in the second transmission time slot, and then can be sent to the corresponding second service interface. Therefore, the embodiment of the present application can accept multiple sets of stream data corresponding to multiple service interfaces, and each set of stream data can correspond to a different transmission time slot. The same decoder can be used to decode each group of transmission data in the corresponding transmission time slot to obtain the transmission data. Therefore, multiple identical or different service interfaces can share the same decoder. It can improve the utilization rate of decoding resources and save network resources.

在本申请的一种可选实施方式中,若该第一业务接口的类型为以太网业务接口或FlexE接口中的任意一种,则在该通过解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,该方法还可以包括:In an optional implementation manner of the present application, if the type of the first service interface is any one of the Ethernet service interface or the FlexE interface, the first After the code stream data is decoded to obtain the first transmission data, the method may further include:

确定该第一传输数据的处理时隙;在该处理时隙对该第一传输数据进行解扰,以得到解扰数据;在该处理时隙对该解扰数据进行转码,以得到与该第一业务接口对应的第三码流数据,并向该第一业务接口传输该第三码流数据。在本申请实施例中,接入的业务接口可以包括以太网业务接口或FlexE接口中的任意一种,针对以太网业务接口或FlexE接口对应的数据格式,可以在对应的处理时隙对第一传输数据进行解扰、转码等,得到与以太网业务接口或FlexE接口对应的第三码流数据。使接入的以太网业务接口或FlexE接口可以获取到对应的码流数据,通过时分复用的方式接入一个或多以太网业务接口或FlexE接口。使多个以太网业务接口或FlexE接口可以共用同一个信道编码器,提高信道编码器的利用率,节约编码资源。Determining a processing time slot for the first transmission data; descrambling the first transmission data in the processing time slot to obtain descrambled data; transcoding the descrambled data in the processing time slot to obtain the the third code stream data corresponding to the first service interface, and transmit the third code stream data to the first service interface. In this embodiment of the application, the service interface to be accessed may include any one of the Ethernet service interface or the FlexE interface, and for the data format corresponding to the Ethernet service interface or the FlexE interface, the first The transmitted data is descrambled, transcoded, etc., to obtain the third code stream data corresponding to the Ethernet service interface or the FlexE interface. The connected Ethernet service interface or FlexE interface can obtain the corresponding code stream data, and access one or more Ethernet service interfaces or FlexE interfaces through time division multiplexing. Multiple Ethernet service interfaces or FlexE interfaces can share the same channel encoder, which improves the utilization rate of the channel encoder and saves encoding resources.

在本申请的一种可选实施方式中,若该第一业务接口为Interlaken接口,则在该通过解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,该方法还可以包括:In an optional implementation manner of the present application, if the first service interface is an Interlaken interface, after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data, The method can also include:

对该第一传输数据进行解码,以得到预置长度的数据;删除该预置长度的数据中的标识数据,以得到扰码数据;对该扰码数据进行解扰,以得到该Interlaken接口对应的业务数据,并将该业务数据传输至该第一业务接口。在本申请实施例中,可以接入Interlaken接口,并针对Interlaken接口对应的传输数据进行处理,使得到的业务数据可以传输至对应Interlaken接口。实现一个或多个Interlaken接口的接入,使多个Interlaken接口可以使用同一个解码器,并且可以使Interlaken与其他接口共用同一个解码器,提高解码器的利用率,节约解码资源。Decoding the first transmission data to obtain data of a preset length; deleting the identification data in the data of a preset length to obtain scrambled data; descrambling the scrambled data to obtain the Interlaken interface corresponding business data, and transmit the business data to the first business interface. In the embodiment of the present application, the Interlaken interface can be accessed, and the transmission data corresponding to the Interlaken interface can be processed, so that the obtained service data can be transmitted to the corresponding Interlaken interface. Realize the access of one or more Interlaken interfaces, so that multiple Interlaken interfaces can use the same decoder, and the Interlaken can share the same decoder with other interfaces, improving the utilization rate of the decoder and saving decoding resources.

在本申请的一种可选实施方式中,若该第一业务接口为FlexO接口,则在该通过解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,该方法还可以包括:In an optional implementation manner of the present application, if the first service interface is a FlexO interface, after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data, The method can also include:

将该第一传输数据发送至该第一业务接口。在本申请实施例中,可以接入FlexO接口,并且,在得到第一传输数据之后,可以直接将第一传输数据发送至第一业务接口。可以实现一个或多个FlexO接口的接入,使多个FlexO接口共用同一个解码器,或者使FlexO接口与其他接口可以共用同一个解码器。提高解码器的利用率,节约解码资源。Send the first transmission data to the first service interface. In the embodiment of the present application, the FlexO interface can be accessed, and after the first transmission data is obtained, the first transmission data can be directly sent to the first service interface. Access to one or more FlexO interfaces can be realized, so that multiple FlexO interfaces can share the same decoder, or the FlexO interface and other interfaces can share the same decoder. Improve the utilization rate of the decoder and save decoding resources.

在本申请的一种可选实施方式中,在该通过解码器在第一传输时隙对该第一码流数据进行解码,以得到第一传输数据,通过该解码器在第二传输时隙对该第二码流数据进行解码,得到第二传输数据之前,该方法还可以包括:In an optional implementation manner of the present application, the first code stream data is decoded by the decoder in the first transmission time slot to obtain the first transmission data, and by the decoder in the second transmission time slot Before decoding the second code stream data to obtain the second transmission data, the method may also include:

根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。在本申请实施例中,在对每组码流数据进行解码之前,还需要确定每组码流数据的传输时隙,以使解码器可以在每组码流数据对应的传输时隙对每组码流数据进行解码。且该每组码流数据可以对应多个业务接口,因此,可以通过时分复用的方式实现对多个业务接口对应的码流数据的解码。使多个业务接口可以共用同一个解码器。提高解码器的利用率,节约解码资源。The first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data are determined according to a preset rule. In the embodiment of this application, before decoding each group of code stream data, it is also necessary to determine the transmission time slot of each group of code stream data, so that the decoder can Code stream data is decoded. In addition, each group of code stream data may correspond to multiple service interfaces, therefore, the decoding of the code stream data corresponding to multiple service interfaces may be realized by means of time division multiplexing. It enables multiple service interfaces to share the same decoder. Improve the utilization rate of the decoder and save decoding resources.

在本申请的一种可选实施方式中,该根据预置规则确定该第一码流数据对应的该第一传输时隙,以及该第二码流数据对应的该第二传输时隙,可以包括:In an optional implementation manner of the present application, the determination of the first transmission time slot corresponding to the first code stream data and the second transmission time slot corresponding to the second code stream data according to preset rules may be include:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的传输时隙;确定该第一码流数据对应该多个业务接口中的第一业务接口,该第二码流数据对应该多个业务接口中的第二业务接口;根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。在本申请实施例中,可以提前为接入的每个业务接口分配传输时隙。在获取到每个业务接口对应的码流数据后,即可根据提前为接入的每个业务接口分配的传输时隙,确定获取到的每组码流数据的传输时隙。可以提高确定每组传输数据的传输时隙的效率。Assign a transmission time slot to each service interface in the plurality of service interfaces according to a preset method, so as to obtain a transmission time slot corresponding to each service interface; determine that the first code stream data corresponds to the first of the plurality of service interfaces service interface, the second stream data corresponds to the second service interface in the plurality of service interfaces; determine the first transmission time slot from the transmission time slots corresponding to each service interface according to the first service interface, and determine the first transmission time slot according to the first service interface The second service interface determines the second transmission time slot from the transmission time slots corresponding to each service interface. In the embodiment of the present application, a transmission time slot may be allocated in advance for each service interface accessed. After the code stream data corresponding to each service interface is obtained, the acquired transmission time slot of each set of code stream data can be determined according to the transmission time slot allocated in advance for each service interface accessed. The efficiency of determining the transmission time slot for each group of transmission data can be improved.

在本申请的一种可选实施方式中,该根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙,还可以包括:In an optional implementation manner of the present application, determining the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules may also include :

根据预置的分配方式为获取到的每组码流数据分配传输时隙。包括在获取到第一码流数据之后,为第一码流数据分配第一传输时隙。在获取到第二码流数据之后,为第二码流数据分配第二传输时隙。在本申请实施例中,可以在获取到码流数据之后再为每组码流数据分配传输时隙。实时为获取到的码流数据分配传输时隙,灵活地确定每组码流数据对应的传输时隙,使可以根据解码器的工作状态分配传输时隙,进一步提高解码器的利用率。Allocate transmission time slots for each set of code stream data obtained according to a preset allocation method. The method includes allocating a first transmission time slot for the first code stream data after the first code stream data is acquired. After the second code stream data is acquired, a second transmission time slot is allocated for the second code stream data. In the embodiment of the present application, transmission time slots may be assigned to each group of code stream data after the code stream data is acquired. Allocate transmission time slots for the acquired code stream data in real time, flexibly determine the transmission time slots corresponding to each group of code stream data, so that the transmission time slots can be allocated according to the working status of the decoder, and further improve the utilization rate of the decoder.

在本申请的一种可选实施方式中,该通过解码器在第一传输时隙对该第一码流数据进行解码,得到该第一传输数据,可以包括:In an optional implementation manner of the present application, the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data, which may include:

在该第一传输时隙获取该第一码流数据中的对齐标识;在该第一传输时隙根据该对齐标识对该第一码流数据进行对齐,得到对齐数据;在该第一传输时隙对该对齐数据进行解码,得到该第一传输数据。在本申请实施例中,在进行解码之前,还可以对每组码流数据根据对齐标识进行对齐。以对接收到的每组码流数据进行校正,避免码流数据出现错位、丢失等情况。在得到对齐数据之后,再通过解码器对对齐数据进行解码,提高得到的码流数据的准确度。Acquiring the alignment identifier in the first code stream data in the first transmission time slot; aligning the first code stream data according to the alignment identifier in the first transmission time slot to obtain alignment data; during the first transmission The slot decodes the alignment data to obtain the first transmission data. In the embodiment of the present application, before decoding, each set of code stream data may be aligned according to the alignment identifier. To correct each set of code stream data received to avoid misalignment and loss of code stream data. After the aligned data is obtained, the aligned data is decoded by a decoder to improve the accuracy of the obtained code stream data.

在本申请的一种可选实施方式中,该解码器为RS-FEC解码器。在本申请实施例中,信道编码器可以是RS-FEC编码器,因此,可以实现多个业务接口共用同一个RS-FEC编码器。提高RS-FEC解码器的利用率,节约解码资源。In an optional implementation manner of the present application, the decoder is an RS-FEC decoder. In the embodiment of the present application, the channel encoder may be an RS-FEC encoder, so multiple service interfaces may share the same RS-FEC encoder. Improve the utilization rate of the RS-FEC decoder and save decoding resources.

本申请第三方面提供一种网络芯片,包括:信道编码器、时隙调度器以及数据分发器;The third aspect of the present application provides a network chip, including: a channel encoder, a time slot scheduler, and a data distributor;

该时隙调度器,用于确定第一传输数据的第一传输时隙和第二传输数据的第二传输时隙,该第一传输数据和所述第二传输数据为多个业务接口对应的多组传输数据中的任意两组传输数据;The time slot scheduler is configured to determine a first transmission time slot for the first transmission data and a second transmission time slot for the second transmission data, the first transmission data and the second transmission data are corresponding to multiple service interfaces Any two sets of transmission data among multiple sets of transmission data;

该信道编码器,用于在第一传输时隙对该第一传输数据进行信道编码,得到第一码流数据,以及通过该信道编码器在第二传输时隙对该第二传输数据进行编码,得到第二码流数据;The channel encoder is configured to perform channel encoding on the first transmission data in the first transmission time slot to obtain the first code stream data, and encode the second transmission data in the second transmission time slot through the channel encoder , to obtain the second code stream data;

该数据分发器,用于将该第一码流数据分发至与该第一码流数据分发至对应的接收端,以及将该第二码流分发至与该第二码流对应的接收端。The data distributor is configured to distribute the first code stream data to the receiving end corresponding to the distribution of the first code stream data, and distribute the second code stream data to the receiving end corresponding to the second code stream.

在本申请的一种可选实施方式中,该数据分发器具体用于在该第一传输时隙将该第一码流数据按照预置分发规则分发至对应的物理媒介适配子层PMA,以及在该第二传输时隙将该第二码流数据分发至该PMA,以通过该PMA将该第一码流数据传输至与该第一码流数据对应的接收端,以及将该第二码流数据传输至与该第二码流数据对应的接收端。In an optional implementation manner of the present application, the data distributor is specifically configured to distribute the first code stream data to the corresponding physical medium adaptation sublayer PMA according to a preset distribution rule in the first transmission time slot, and distribute the second code stream data to the PMA in the second transmission time slot, so as to transmit the first code stream data to the receiving end corresponding to the first code stream data through the PMA, and the second code stream data The code stream data is transmitted to the receiving end corresponding to the second code stream data.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个类型为以太网或灵活以太网FlexE的接口、第一转码器以及第一扰码器;In an optional implementation manner of the present application, the network chip may further include: at least one interface of type Ethernet or Flexible Ethernet FlexE, a first transcoder, and a first scrambler;

该至少一个类型为以太网或灵活以太网FlexE的接口中任一接口,用于接收初始码流数据;The at least one type is any interface in the interface of Ethernet or flexible Ethernet FlexE, which is used to receive the initial stream data;

该时隙调度器,还用于确定该初始码流数据的处理时隙;The time slot scheduler is also used to determine the processing time slot of the initial stream data;

该第一转码器,用于在该处理时隙对该初始码流数据进行转码,得到转码数据;The first transcoder is configured to transcode the initial code stream data in the processing time slot to obtain transcoded data;

该第一扰码器,用于在该处理时隙对该转码数据进行扰码,得到该第一传输数据。The first scrambler is configured to scramble the transcoded data in the processing time slot to obtain the first transmission data.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个Interlaken接口。第二转码器、第二扰码器以及第三转码器;In an optional implementation manner of the present application, the network chip may further include: at least one Interlaken interface. a second transcoder, a second scrambler and a third transcoder;

该至少一个Interlaken接口中的任一接口,用于接收输入数据;Any interface in the at least one Interlaken interface is used to receive input data;

该第二扰码器,用于对该输入数据进行扰码,得到扰码数据;The second scrambler is configured to scramble the input data to obtain scrambled data;

该第二转码器,用于在该扰码数据中添加标识数据,以得到预置长度的数据;The second transcoder is configured to add identification data to the scrambled data to obtain data with a preset length;

该第三转码器,用于将该预置长度的数据进行编组,以得到该第一传输数据。The third transcoder is configured to group the data of the preset length to obtain the first transmission data.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个FlexO接口。In an optional implementation manner of the present application, the network chip may further include: at least one FlexO interface.

该至少一个FlexO接口中任一接口,可以用于接收该第一传输数据。Any interface in the at least one FlexO interface may be used to receive the first transmission data.

在本申请的一种可选实施方式中,In an optional embodiment of the present application,

该时隙调度器,具体用于根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。The time slot scheduler is specifically configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.

在本申请的一种可选实施方式中,该时隙调度器,具体用于:In an optional implementation manner of the present application, the time slot scheduler is specifically used for:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的传输时隙;Allocating a transmission time slot to each of the multiple service interfaces according to a preset method, so as to obtain a transmission time slot corresponding to each service interface;

确定该第一传输数据对应的第一业务接口,以及该第二传输数据对应的第二业务接口;determining a first service interface corresponding to the first transmission data, and a second service interface corresponding to the second transmission data;

根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。Determine the first transmission time slot from the transmission time slots corresponding to each service interface according to the first service interface, and determine the second transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface time slot.

在本申请的一种可选实施方式中,该信道编码器,具体可以用于:In an optional implementation manner of the present application, the channel encoder may specifically be used for:

在该第一传输时隙对该第一传输数据进行码块交织分组,以得到第一预处理数据;在该第一传输时隙对该第一预处理数据插入对齐标识,得到第二预处理数据;在该第一传输时隙对该第二预处理数据进行信道编码,得到该第一码流数据。Perform code block interleaving and grouping on the first transmission data in the first transmission time slot to obtain first pre-processed data; insert an alignment mark into the first pre-processed data in the first transmission time slot to obtain second pre-processing Data: performing channel coding on the second preprocessed data in the first transmission time slot to obtain the first code stream data.

在本申请的一种可选实施方式中,该信道编码器为里德所罗门前向纠错码RS-FEC编码器。In an optional implementation manner of the present application, the channel encoder is a Reed-Solomon forward error correction code RS-FEC encoder.

本申请第四方面提供一种网络芯片,包括:解码器以及时隙调度器;The fourth aspect of the present application provides a network chip, including: a decoder and a time slot scheduler;

该时隙调度器,用于确定第一码流数据对应的第一传输时隙,以及第二码流数据对应的第二传输时隙,该第一码流数据和该第二码流数据为多个业务接口对应的多组码流数据中的任意两组码流数据;The time slot scheduler is configured to determine a first transmission time slot corresponding to the first code stream data and a second transmission time slot corresponding to the second code stream data, the first code stream data and the second code stream data are Any two sets of code stream data among multiple sets of code stream data corresponding to multiple service interfaces;

该解码器,用于在第一传输时隙对该第一码流数据进行解码,得到第一传输数据,通过该解码器在第二传输时隙对该第二码流数据进行解码,得到第二传输数据,该第一传输时隙与该第二传输时隙不同。The decoder is used to decode the first code stream data in the first transmission time slot to obtain the first transmission data, and the decoder decodes the second code stream data in the second transmission time slot to obtain the secondcode stream data 2. To transmit data, the first transmission time slot is different from the second transmission time slot.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个类型为以太网或灵活以太网FlexE的接口、第一解扰器、第一转码器以及第一分发器;In an optional implementation manner of the present application, the network chip may further include: at least one interface of type Ethernet or Flexible Ethernet FlexE, a first descrambler, a first transcoder, and a first distributor;

该时隙调度器,还用于在该解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,确定该第一传输数据的处理时隙;The time slot scheduler is further configured to determine a processing time slot for the first transmission data after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data;

该第一解扰器,用于在该处理时隙对该第一传输数据进行解扰,以得到解扰数据;The first descrambler is configured to descramble the first transmission data in the processing time slot to obtain descrambled data;

该第一转码器,用于在该处理时隙对该解扰数据进行转码,以得到第三码流数据;The first transcoder is configured to transcode the descrambled data in the processing time slot to obtain third code stream data;

该第一分发器,用于向将该第三码流数据分发至至少一个类型为以太网或灵活以太网FlexE的接口中的任一接口。The first distributor is configured to distribute the third code stream data to any one of at least one Ethernet or FlexE interface.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个Interlaken接口、第二解扰器、第二转码器以及第三转码器;In an optional implementation manner of the present application, the network chip may further include: at least one Interlaken interface, a second descrambler, a second transcoder, and a third transcoder;

该第二转码器,用于在该解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,对该第一传输数据进行转码,以得到预置长度的数据;The second transcoder is configured to transcode the first transmission data to obtain the preset length after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data The data;

该第三转码器,用于删除该预置长度的数据中的标识数据,以得到扰码数据;The third transcoder is configured to delete the identification data in the data of the preset length to obtain scrambled data;

该第二解扰器,用于对该扰码数据进行解扰,以得到与Interlaken接口对应的业务数据;The second descrambler is configured to descramble the scrambled data to obtain service data corresponding to the Interlaken interface;

该至少一个Interlaken接口中的任一接口,用于传输该业务数据。Any interface in the at least one Interlaken interface is used to transmit the service data.

需要说明的是,网络芯片可以包括至少一个第二转码器、以及至少一个第二扰码器,每个第三转码器、以及第二扰码器可以对应一个Interlaken接口。It should be noted that the network chip may include at least one second transcoder and at least one second scrambler, and each third transcoder and second scrambler may correspond to one Interlaken interface.

在本申请的一种可选实施方式中,该网络芯片还可以包括:至少一个FlexO接口,以及第二分发器;In an optional implementation manner of the present application, the network chip may also include: at least one FlexO interface, and a second distributor;

该第二分发器,用于在该解码器在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,将该第一传输数据发送至至少一个FlexO接口中的任一接口。The second distributor is configured to send the first transmission data to any one of the at least one FlexO interface after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data interface.

在本申请的一种可选实施方式中,In an optional embodiment of the present application,

该时隙调度器,具体用于根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。The time slot scheduler is specifically configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.

在本申请的一种可选实施方式中,该时隙调度器,具体用于:In an optional implementation manner of the present application, the time slot scheduler is specifically used for:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的第传输时隙;确定该第一码流数据对应该多个业务接口中的第一业务接口,以及该第二码流数据对应该多个业务接口中的第二业务接口;根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。Allocate a transmission time slot for each service interface in the multiple service interfaces according to a preset method, so as to obtain the first transmission time slot corresponding to each service interface; determine that the first code stream data corresponds to the first code stream data among the multiple service interfaces A service interface, and the second code stream data corresponds to the second service interface in the plurality of service interfaces; according to the first service interface, the first transmission time slot is determined from the transmission time slots corresponding to each service interface, And determining the second transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface.

在本申请的一种可选实施方式中,该网络芯片还可以包括:同步器;In an optional implementation manner of the present application, the network chip may further include: a synchronizer;

该同步器,用于在该第一传输时隙获取该第一码流数据中的对齐标识;The synchronizer is used to obtain the alignment identifier in the first code stream data in the first transmission time slot;

该同步器,还用于在该第一传输时隙根据该对齐标识对该第一码流数据进行对齐,得到对齐数据;The synchronizer is also used to align the first code stream data according to the alignment identifier in the first transmission time slot to obtain aligned data;

该解码器,具体用于在该第一传输时隙对该对齐数据进行解码,得到该第一传输数据。The decoder is specifically configured to decode the alignment data in the first transmission time slot to obtain the first transmission data.

在本申请的一种可选实施方式中,该解码器为RS-FEC解码器。In an optional implementation manner of the present application, the decoder is an RS-FEC decoder.

本申请第五方面提供一种通信系统,该通信系统可以包括第一网络芯片与第二网络芯片,该第一网络芯片可以是本申请第三方面或第三方面任一实施例提供的网络芯片,该第二网络芯片可以是本申请第四方面或第四方面任一实施例提供的网络芯片。The fifth aspect of the present application provides a communication system, the communication system may include a first network chip and a second network chip, the first network chip may be the network chip provided in the third aspect of the application or any embodiment of the third aspect , the second network chip may be the fourth aspect of the present application or the network chip provided in any embodiment of the fourth aspect.

本申请实施例提供的技术方案中,网络芯片可以接入多个业务接口,并获取多个业务接口对应的多组传输数据,每组传输数据都有对应的传输时隙。因此,可以使用同一个信道编码器在每组传输数据对应的传输时隙中对每组传输数据进行编码。例如,在第一传输时隙对第一传输数据进行编码,该第一传输数据可以是该多组传输数据中的任意一组,在第二传输时隙对第二传输数据进行编码,该第二传输数据为该多组传输数据中除第一传输数据之外的任意一组。并且,第一传输时隙与第二传输时隙不同。因此,即使获取到多个业务接口对应的多组传输数据,也可以使用同一个信道编码器在对应的传输时隙对每组传输数据进行编码。可以实现多个业务接口共用一个编码器,实现编码器的高效利用,节约网络资源。In the technical solution provided by the embodiment of the present application, the network chip can access multiple service interfaces, and obtain multiple sets of transmission data corresponding to the multiple service interfaces, and each set of transmission data has a corresponding transmission time slot. Therefore, the same channel encoder can be used to encode each set of transmission data in the transmission time slot corresponding to each set of transmission data. For example, the first transmission data is encoded in the first transmission time slot, and the first transmission data may be any group of the multiple groups of transmission data, and the second transmission data is encoded in the second transmission time slot, and the first transmission data The second transmission data is any set of the multiple sets of transmission data except the first transmission data. Also, the first transmission slot is different from the second transmission slot. Therefore, even if multiple sets of transmission data corresponding to multiple service interfaces are obtained, the same channel encoder can be used to encode each set of transmission data in a corresponding transmission time slot. Multiple service interfaces can share one encoder to realize efficient utilization of encoders and save network resources.

附图说明Description of drawings

图1为本申请实施例中网络架构示意图;FIG. 1 is a schematic diagram of a network architecture in an embodiment of the present application;

图2为本申请实施例提供的数据传输的方法的一种流程示意图;FIG. 2 is a schematic flowchart of a data transmission method provided in an embodiment of the present application;

图3为本申请实施例提供的数据传输的方法的另一种流程示意图;FIG. 3 is another schematic flowchart of a data transmission method provided in an embodiment of the present application;

图4为本申请实施例提供的数据传输的方法的一种编码解码流程示意图;FIG. 4 is a schematic diagram of an encoding and decoding process of a data transmission method provided in an embodiment of the present application;

图5为本申请实施例提供的数据传输的方法的一种66B至257B编码方式示意图;FIG. 5 is a schematic diagram of a 66B to 257B encoding method of the data transmission method provided by the embodiment of the present application;

图6为本申请实施例提供的数据传输的方法的另一种66B至257B编码方式示意图;FIG. 6 is a schematic diagram of another 66B to 257B encoding method of the data transmission method provided by the embodiment of the present application;

图7为本申请实施例提供的数据传输的方法的另一种66B至257B编码方式示意图;FIG. 7 is a schematic diagram of another 66B to 257B encoding method of the data transmission method provided by the embodiment of the present application;

图8为本申请实施例提供的数据传输的方法的另一种66B至257B编码方式示意图;FIG. 8 is a schematic diagram of another 66B to 257B encoding method of the data transmission method provided by the embodiment of the present application;

图9为本申请实施例提供的数据传输的方法的一种扰码方式示意图;FIG. 9 is a schematic diagram of a scrambling method of a data transmission method provided in an embodiment of the present application;

图10为本申请实施例提供的网络芯片的一种结构示意图;FIG. 10 is a schematic structural diagram of a network chip provided by an embodiment of the present application;

图11为本申请实施例提供的网络芯片的另一种结构示意图。FIG. 11 is another schematic structural diagram of a network chip provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请提供一种数据传输的方法、网络芯片以及通信系统,用于实现灵活地接入多个不同或相同的业务接口,并且可以共用一个RS-FEC编码器,提高RS-FEC编码资源的利用率,节约网络资源。This application provides a data transmission method, a network chip and a communication system, which are used to flexibly access multiple different or the same service interfaces, and can share one RS-FEC encoder to improve the utilization of RS-FEC encoding resources efficiency and save network resources.

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the drawings are used to distinguish similar objects and not necessarily Describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本申请提供的数据传输的方法可以应用于高速的灵活以太网(FlexibleEthernet,FlexE)、高速互联(Interlaken)、高速传输接口灵活光传送网(Flexibleoptical transport network,FlexO)等网络。进一步地,还可以应用于其他包括以太网、FlexE、FlexO以及Interlaken相关的业务接口或协议等的通信系统,例如,可以应用于第五代移动通信技术(5th-Generation,5G)中的承载网络。具体例如,FlexE可以应用于5G网络中的网络分六。The data transmission method provided by the present application can be applied to networks such as high-speed flexible Ethernet (FlexibleEthernet, FlexE), high-speed interconnection (Interlaken), high-speed transmission interface flexible optical transport network (Flexible optical transport network, FlexO). Further, it can also be applied to other communication systems including Ethernet, FlexE, FlexO, and Interlaken-related service interfaces or protocols, for example, it can be applied to the bearer network in the fifth-generation mobile communication technology (5th-Generation, 5G) . For example, FlexE can be applied to network segmentation in 5G networks.

具体地,以以太网的架构为例进行说明,请参阅图1,本申请提供的数据传输的方法的网络架构。Specifically, the Ethernet architecture is taken as an example for illustration, please refer to FIG. 1 , which shows the network architecture of the data transmission method provided by this application.

通常,通信系统可以参考七层模型(Open System Interconnection,OSI)进行分层,可以包括应用层、表示层、会话层、传输层、网络层、数据链路层以及物理层,其中,本申请实施例中应用的架构可以包括全部或部分的物理层。可以包括:物理编码子层(PhysicalCoding Sublayer,PCS)、物理媒介适配子层(Physical Medium Attachment,PMA)、物理媒介相关子层(Physical Medium Dependent,PMD)。Generally, a communication system can be layered with reference to the seven-layer model (Open System Interconnection, OSI), and can include an application layer, a presentation layer, a session layer, a transport layer, a network layer, a data link layer, and a physical layer. The architecture of the example application may include all or part of the physical layer. It may include: Physical Coding Sublayer (Physical Coding Sublayer, PCS), Physical Medium Adaptation Sublayer (Physical Medium Attachment, PMA), Physical Medium Dependent (Physical Medium Dependent, PMD).

PCS子层可以接入以太网、FlexE、FlexO以及Interlaken等业务接口,其中,图1中仅以以太网接口、FlexE接口、FlexO接口以及Interlaken接口进行示例性说明,PCS子层还可以接收其他网络业务的业务接口发送的数据,具体此处并不作限定。The PCS sublayer can access service interfaces such as Ethernet, FlexE, FlexO, and Interlaken. In Figure 1, only the Ethernet interface, FlexE interface, FlexO interface, and Interlaken interface are used for illustration. The PCS sublayer can also receive other network interfaces. The data sent by the service interface of the service is not limited here.

PCS子层和PMA子层之间可以通过适配单元接口(Attachment Unit Interface,AUI)连接,AUI接口可以为物理接口。The PCS sublayer and the PMA sublayer may be connected through an adapter unit interface (Attachment Unit Interface, AUI), and the AUI interface may be a physical interface.

PCS子层对接收到的各个业务接口发送的数据进行转码、调度、预处理或RS-FEC编码等处理后,分发至PMA子层。The PCS sublayer performs transcoding, scheduling, preprocessing, or RS-FEC encoding on the received data sent by each service interface, and then distributes it to the PMA sublayer.

PMA子层将接收到的PCS数据进行串并联转换,并将待发送的数据通过预置的发送通道发送至PMD子层。The PMA sublayer performs series-parallel conversion on the received PCS data, and sends the data to be sent to the PMD sublayer through a preset sending channel.

PMD子层将接收到的PMA数据进行数据调制,然后通过媒介发送至对应的接收端,媒介可以是光纤、传输线等等。The PMD sublayer performs data modulation on the received PMA data, and then sends it to the corresponding receiving end through a medium, which can be an optical fiber, a transmission line, and the like.

本申请实施例提供的数据传输的方法应用于PCS子层,具体可以包括数据的发送与接收处理。其中,PCS子层可以接收来自多个业务接口发送的数据,多个业务接口可以包括相同或不同业务类型的业务接口,可以为每个业务接口传输的数据分配不同的时隙,在不同的时隙对每个业务接口传输的数据进行处理,以实现多个业务接口共用编码器,提高编码器的利用率,降低成本。The data transmission method provided in the embodiment of the present application is applied to the PCS sublayer, and may specifically include data sending and receiving processing. Among them, the PCS sublayer can receive data sent from multiple service interfaces, and multiple service interfaces can include service interfaces of the same or different service types, and different time slots can be allocated for the data transmitted by each service interface. The slots process the data transmitted by each service interface, so as to realize the sharing of encoders by multiple service interfaces, improve the utilization rate of encoders, and reduce costs.

首先,对本申请实施例提供的数据的发送流程进行说明。本申请实施例提供的数据传输的方法的流程示意图可以如图2所示,可以包括:First, the flow of sending data provided by the embodiment of the present application will be described. The schematic flowchart of the data transmission method provided in the embodiment of the present application may be shown in Figure 2, and may include:

201、获取多个业务接口对应的多组传输数据。201. Acquire multiple sets of transmission data corresponding to multiple service interfaces.

首先,获取多个业务口对应的多组传输数据。其中,该多个为两个或两个以上,该多组为两组或两个以上。并且该多个业务接口可以是业务类型相同的业务接口,也可以是业务类型不同的业务接口。该多个业务接口为接入PCS子层的业务接口。该多组数据为该多个业务接口对应的传输数据,其中,一个业务接口可以对应一组或多组传输数据。First, multiple sets of transmission data corresponding to multiple service ports are obtained. Wherein, the plurality is two or more, and the multiple group is two or more. In addition, the multiple service interfaces may be service interfaces of the same service type, or service interfaces of different service types. The multiple service interfaces are service interfaces for accessing the PCS sublayer. The multiple sets of data are transmission data corresponding to the multiple service interfaces, wherein one service interface may correspond to one or more sets of transmission data.

其中,本申请实施例中,传输数据的数量可以大于业务接口的数量,也可以小于业务接口的数量。例如,可以接收N个业务接口对应的M组传输数据,其中,N>=2,N可以大于或等于M,N也可以小于M,具体可以根据实际应用场景调整。Wherein, in the embodiment of the present application, the quantity of transmitted data may be greater than the quantity of service interfaces, or may be smaller than the quantity of service interfaces. For example, M groups of transmission data corresponding to N service interfaces can be received, where N>=2, N can be greater than or equal to M, and N can also be less than M, which can be adjusted according to actual application scenarios.

具体地,该多个业务接口可以包括不同业务类型的业务接口,例如,该多个业务接口可以包括一个或多个的不同业务类型的接口,该不同业务类型可以是以太网接口、FlexE接口、FlexO接口或Interlaken接口等。并且,根据业务接口的业务类型的不同,获取对应的传输数据的过程也不相同,可以是直接从业务接口中接收传输数据,也可以是对业务接口发送的数据进行进一步处理后得到传输数据,更具体地步骤在以下实施例中将做进一步说明,此处不作赘述。Specifically, the multiple service interfaces may include service interfaces of different service types, for example, the multiple service interfaces may include one or more interfaces of different service types, and the different service types may be Ethernet interfaces, FlexE interfaces, FlexO interface or Interlaken interface, etc. In addition, depending on the business type of the service interface, the process of obtaining the corresponding transmission data is also different. It may be to receive the transmission data directly from the service interface, or to obtain the transmission data after further processing the data sent by the service interface. More specific steps will be further described in the following embodiments, and will not be repeated here.

并且,也可以接收一组传输数据。当接收到的数据为一组时,该一组传输数据可以是以太网接口、FlexE接口、FlexO接口或Interlaken接口中任一接口对应的数据。Also, a set of transmission data can also be received. When the received data is a group, the group of transmission data may be data corresponding to any one of the Ethernet interface, the FlexE interface, the FlexO interface or the Interlaken interface.

因此,本申请实施例中,可以接入相同或不同业务类型的多个业务接口,并获取该多个业务接口的数据,以便后续进行编码处理,实现多个业务接口共用编码器,提高编码器的利用率。Therefore, in the embodiment of the present application, multiple service interfaces of the same or different service types can be accessed, and the data of the multiple service interfaces can be obtained for subsequent encoding processing, so that multiple service interfaces can share an encoder and improve the efficiency of the encoder. utilization rate.

202、通过信道编码器在第一传输时隙对第一传输数据进行编码,以得到第一码流数据,以及在第二传输时隙对第二传输数据进行编码,以得到第二码流数据。202. Use a channel encoder to encode the first transmission data in the first transmission time slot to obtain the first code stream data, and encode the second transmission data in the second transmission time slot to obtain the second code stream data .

在接收到多个业务接口对应的多组传输数据后,可以确定每组传输数据对应的传输时隙。并在每组传输数据对应的时隙,通过同一信道编码器,对每组传输数据进行编码,得到每组数据对应的码流数据。以第一传输数据与第二传输数据为例,以确定第一传输数据的第一传输时隙,以及第二传输数据的第二传输时隙,第一传输数据为该多组传输数据中的任意一组传输数据,第二传输数据为该多组数据中与第一传输数据不同的任意一组传输数据,第一传输时隙为与该第一传输数据对应的时隙,第二传输时隙为第二传输数据对应的时隙。并且,第一传输时隙与第二传输时隙不同。在第一传输时隙将第一传输数据输入信道编码器,输出第一码流数据,并且在第二传输时隙可以通过同一信道编码器,对第二传输数据进行信道编码,输出第二码流数据。After receiving multiple sets of transmission data corresponding to multiple service interfaces, the transmission time slot corresponding to each set of transmission data can be determined. And in the time slot corresponding to each group of transmission data, the same channel encoder is used to encode each group of transmission data to obtain the code stream data corresponding to each group of data. Taking the first transmission data and the second transmission data as an example, to determine the first transmission time slot of the first transmission data and the second transmission time slot of the second transmission data, the first transmission data is one of the multiple sets of transmission data Any set of transmission data, the second transmission data is any set of transmission data different from the first transmission data among the multiple sets of data, the first transmission time slot is the time slot corresponding to the first transmission data, and the second transmission time The slot is a time slot corresponding to the second transmission data. Also, the first transmission slot is different from the second transmission slot. In the first transmission time slot, the first transmission data is input into the channel coder, and the first code stream data is output, and in the second transmission time slot, the second transmission data can be channel coded by the same channel coder, and the second code is output stream data.

获取到的每组传输数据,都可以在对应的传输数据进行编码,得到对应的码流数据。例如,若获取到i组传输数据,i为大于等于2的整数,在获取到该i组传输数据中每组传输数据一一对应的传输时隙后,在每组传输数据对应的传输时隙对每组传输数据进行编码,得到每组传输数据对应的码流数据。Each set of acquired transmission data can be encoded on the corresponding transmission data to obtain the corresponding code stream data. For example, if i group of transmission data is obtained, i is an integer greater than or equal to 2, after obtaining the one-to-one transmission time slot corresponding to each group of transmission data in the i group of transmission data, in the transmission time slot corresponding to each group of transmission data Each group of transmission data is encoded to obtain code stream data corresponding to each group of transmission data.

其中,可选的,对第一传输数据进行编码的方式可以是RS-FEC编码,即该信道编码器可以是RS-FEC编码器。例如,可以将该第一传输数据输入到RS-FEC编码器,以进行RS-FEC编码,得到RS-FEC编码后的第一码流数据。除了RS-FEC编码,该信道编码方式也可以包括常用的FEC编码方式,或者下一代网络中将使用到的编码方式等等。Wherein, optionally, the manner of encoding the first transmission data may be RS-FEC encoding, that is, the channel encoder may be an RS-FEC encoder. For example, the first transmission data may be input to an RS-FEC encoder to perform RS-FEC encoding to obtain RS-FEC-encoded first code stream data. In addition to RS-FEC coding, the channel coding method may also include a commonly used FEC coding method, or a coding method to be used in the next generation network, and the like.

示例性地,具体的RS-FEC编码过程可以是,根据预置的生成多项式对第一传输数据进行计算,计算出第一传输数据的校验多项式,然后将第一传输数据与校验多项式进行组合,得到第一码流数据。Exemplarily, the specific RS-FEC encoding process may be to calculate the first transmission data according to the preset generator polynomial, calculate the check polynomial of the first transmission data, and then perform the first transmission data and the check polynomial combined to obtain the first code stream data.

其中,可选地,在本申请实施例中,每组传输数据对应的传输时隙可以是预置的,也可以是在获取到传输数据后实时分配的。具体地,若传输时隙为预置的,则在获取该多组传输数据之前,可以为每个接入的业务接口分配对应的时隙,并可以保存在数据库中。并且,更具体地,为每个接入的业务接口分配的时隙还可以是按照固定周期分配的,例如,一个周期可以包括N个时隙,然后将该N个时隙分别分配给接入的业务接口,N>=1。在获取到业务接口对应的传输数据后,可以根据该业务接口从数据库中查找该传输数据的传输时隙。若传输时隙为实时分配的,在获取该多组传输数据之后,可以根据业务接口的业务类型进行时隙分配,也可以按照获取顺序进行时隙分配,还可以按照传输数据的优先级进行时隙分配等等,具体可以根据实际应用场景进行调整。Wherein, optionally, in the embodiment of the present application, the transmission time slot corresponding to each group of transmission data may be preset, or may be allocated in real time after the transmission data is acquired. Specifically, if the transmission time slot is preset, before acquiring the multiple sets of transmission data, a corresponding time slot may be allocated to each accessed service interface and stored in the database. And, more specifically, the time slots allocated to each accessed service interface can also be allocated according to a fixed cycle, for example, a cycle can include N time slots, and then the N time slots are allocated to the access service interface, N>=1. After obtaining the transmission data corresponding to the service interface, the transmission time slot of the transmission data can be searched from the database according to the service interface. If the transmission time slots are allocated in real time, after obtaining the multiple sets of transmission data, the time slots can be allocated according to the service type of the service interface, the time slots can also be allocated according to the order of acquisition, and the time slots can also be allocated according to the priority of the transmission data. slot allocation, etc., which can be adjusted according to actual application scenarios.

此外,可选的,在获取到每组传输数据后,也可以对每组数据进行其他处理,例如,对传输数据进行分组、插入预置的标识数据等等,之后再进行编码。In addition, optionally, after each set of transmission data is acquired, other processing may be performed on each set of data, for example, grouping the transmission data, inserting preset identification data, etc., and then encoding.

203、在第一传输时隙,将第一码流数据按照预置分发规则分发至对应的PMA,以及在第二传输时隙,将第二码流数据按照预置分发规则分发至对应的PMA。203. In the first transmission time slot, distribute the first code stream data to the corresponding PMA according to the preset distribution rule, and in the second transmission time slot, distribute the second code stream data to the corresponding PMA according to the preset distribution rule .

在对每组传输数据完成RS-FEC编码,得到每组传输数据对应的码流数据后,根据每组码流数据对应的传输时隙将第一码流数据按照预置的分发规则分发至PMA,并将第二码流数据按照预置的规则分发至PMA,由PMA确定码流数据的传输通道,并发送至PMD子层,通过PMD子层确定传输通道,将第一码流数据传输至第一码流数据对应的接收端,并将第二码流数据传输至第二码流数据对应的接收端。After completing RS-FEC encoding for each group of transmission data and obtaining the code stream data corresponding to each group of transmission data, the first code stream data is distributed to the PMA according to the preset distribution rules according to the transmission time slot corresponding to each group of code stream data , and distribute the second code stream data to the PMA according to the preset rules, the PMA determines the transmission channel of the code stream data, and sends it to the PMD sublayer, determines the transmission channel through the PMD sublayer, and transmits the first code stream data to the receiving end corresponding to the first code stream data, and transmit the second code stream data to the receiving end corresponding to the second code stream data.

该预置的分发规则可以是,确定第一传输数据对应的业务接口对应的传输通道,并将第一码流数据分配至对应的传输通道中进行发送。以及确定第二传输数据对应的业务接口对应的传输通道,并将第二码流数据分配至对应的传输通道中进行发送。The preset distribution rule may be to determine the transmission channel corresponding to the service interface corresponding to the first transmission data, and allocate the first code stream data to the corresponding transmission channel for transmission. And determining the transmission channel corresponding to the service interface corresponding to the second transmission data, and assigning the second code stream data to the corresponding transmission channel for transmission.

需要说明的是,本申请实施例中的第一传输数据与第二传输数据仅仅是示例性说明,实际可以接收多组传输数据,为每组传输数据确定对应的传输时隙。并在每组传输数据对应的传输数据使用同一信道编码器进行信道编码,使多个业务接口可以共用一个编码器。It should be noted that the first transmission data and the second transmission data in the embodiment of the present application are only illustrative, and multiple sets of transmission data may be received actually, and a corresponding transmission time slot may be determined for each set of transmission data. And the transmission data corresponding to each group of transmission data is channel coded by using the same channel coder, so that multiple service interfaces can share one coder.

在本申请实施例中,PCS子层可以接入多个业务接口,该多个业务接口可以是业务类型相同的业务接口,也可以是业务类型不同的业务接口。并获取该多个业务接口对应的传输数据,包括直接接收业务接口发送的数据,或对接收到的业务接口发送的数据处理后的数据。并确定该多个业务接口对应的传输数据的传输时隙,根据传输时隙对传输数据进行编码以及分发等,完成对多个业务接口对应的传输数据的处理。因此,本申请实施例提供的数据传输方法可以通过一个RS-FEC编码器,通过分配时隙的方式,对多个业务接口的传输数据进行RS-FEC编码,以实现RS-FEC资源的高效利用。In the embodiment of the present application, the PCS sublayer may access multiple service interfaces, and the multiple service interfaces may be service interfaces of the same service type, or service interfaces of different service types. And acquire the transmission data corresponding to the multiple service interfaces, including directly receiving the data sent by the service interfaces, or the data after processing the received data sent by the service interfaces. And determine the transmission time slots of the transmission data corresponding to the multiple service interfaces, encode and distribute the transmission data according to the transmission time slots, and complete the processing of the transmission data corresponding to the multiple service interfaces. Therefore, the data transmission method provided by the embodiment of the present application can use an RS-FEC encoder to perform RS-FEC encoding on the transmission data of multiple service interfaces by allocating time slots, so as to realize efficient utilization of RS-FEC resources .

前述对本申请提供的数据传输方法的发送流程进行了说明,下面对本申请提供的数据传输方法的接收流程进行详细说明,请参阅图3,本申请实施例提供的数据传输方法的另一种流程示意图,可以包括:The foregoing describes the sending process of the data transmission method provided by this application, and the following describes the receiving process of the data transmission method provided by this application in detail. Please refer to Figure 3, another schematic flow diagram of the data transmission method provided by the embodiment of this application , which can include:

301、获取多组码流数据。301. Acquire multiple sets of code stream data.

首先获取多组码流数据,该多组码流数据可以与多个业务接口对应,当与多个业务接口对应时,该多个业务接口的业务类型可以相同,也可以不同。First, multiple sets of code stream data are obtained. The multiple sets of code stream data may correspond to multiple service interfaces. When corresponding to multiple service interfaces, the service types of the multiple service interfaces may be the same or different.

该多组码流数据可以是直接从PMA子层接收到的数据,也可以是对从PMA子层接收到的数据进行处理后得到数据,例如,在获取该多组码流数据之前,还可以包括对接收的数据进行解调、偏斜补偿等步骤,以得到该多组码流数据,具体此处不再一一阐述。The multiple sets of code stream data may be data received directly from the PMA sublayer, or data obtained after processing the data received from the PMA sublayer. For example, before obtaining the multiple sets of code stream data, you may also Steps such as demodulating and skew compensating the received data are included to obtain the multiple sets of code stream data, which will not be elaborated here one by one.

302、通过解码器在第一传输时隙对第一码流数据进行解码,得到第一传输数据,在第二传输时隙对第二码流数据进行解码,得到第二传输数据。302. Use a decoder to decode the first code stream data in a first transmission time slot to obtain first transmission data, and decode the second code stream data in a second transmission time slot to obtain second transmission data.

在获取到多组码流数据后,可以确定每组码流数据对应的传输时隙。并且在确定每组码流数据的传输时隙后,使用同一编码器在每组码流数据对应的传输时隙对每组码流数据进行编码。After acquiring multiple sets of code stream data, the transmission time slot corresponding to each set of code stream data can be determined. And after the transmission time slot of each group of code stream data is determined, the same encoder is used to encode each group of code stream data in the transmission time slot corresponding to each group of code stream data.

以第一码流数据与第二码流数据为例,可以确定第一码流数据对应的第一传输时隙,以及第二码流数据对应的第二传输时隙。第一码流数据为该多组码流数据中任意一组码流数据,第二码流数据为该多组码流数据中除第一码流数据之外的任意一组码流数据。第一传输时隙为该第一码流数据对应的传输时隙,第二传输时隙为第二码流数据对应的传输时隙。本申请实施例仅以该多组码流数据中的第一码流数据与第二码流数据进行示例性说明。Taking the first code stream data and the second code stream data as an example, the first transmission time slot corresponding to the first code stream data and the second transmission time slot corresponding to the second code stream data may be determined. The first code stream data is any set of code stream data in the multiple sets of code stream data, and the second code stream data is any set of code stream data in the multiple sets of code stream data except the first code stream data. The first transmission time slot is a transmission time slot corresponding to the first code stream data, and the second transmission time slot is a transmission time slot corresponding to the second code stream data. The embodiment of the present application is only illustrated by using the first code stream data and the second code stream data in the multiple sets of code stream data.

在确定第一码流数据对应的第一传输时隙后,使用解码器在第一传输时隙对第一码流数据进行解码,以得到第一传输时隙。在确定第二码流数据对应的第二传输时隙后,使用同一解码器在第二传输时隙对第二码流数据进行解码,得到第二传输数据。After the first transmission time slot corresponding to the first code stream data is determined, the decoder is used to decode the first code stream data in the first transmission time slot to obtain the first transmission time slot. After determining the second transmission time slot corresponding to the second code stream data, the same decoder is used to decode the second code stream data in the second transmission time slot to obtain second transmission data.

具体地,发送端侧在发送数据之前,对数据进行编码,因此,在接收到第一码流数据后,可以对第一码流数据进行解码,以完成对第一码流数据的纠错,得到第一解码数据。Specifically, the sending end side encodes the data before sending the data, therefore, after receiving the first code stream data, it can decode the first code stream data to complete the error correction of the first code stream data, Obtain the first decoded data.

可选的,具体的解码方式可以是针对信道编码进行的解码,例如,若网络芯片执行的是RS-FEC编码,那么,本申请实施例中可以对第一码流数据进行RS-FEC解码。Optionally, the specific decoding method may be decoding for channel coding. For example, if the network chip performs RS-FEC coding, then RS-FEC decoding may be performed on the first code stream data in this embodiment of the present application.

在本申请的一种可选实施方式中,在对第一码流数据进行解码之前,若第一码流数据分为多个数据包由多个传输通道并行传输,可能因每二个传输通道的时延不同,导致获取到的第一码流数据错位。因此,还可以对该多个数据包进行校正。具体地,每个数据包中可能包括插入的对齐标识(Align Marker,AM),可以根据对齐标识,对该多个数据包进行重组,可以避免重组后的第一码流数据出现数据错误。In an optional implementation manner of the present application, before decoding the first code stream data, if the first code stream data is divided into multiple data packets and transmitted in parallel by multiple transmission channels, it may be possible that every second transmission channel The time delays are different, resulting in misalignment of the obtained first code stream data. Therefore, corrections can also be performed on the plurality of data packets. Specifically, each data packet may include an inserted alignment mark (Align Marker, AM), and the plurality of data packets can be reassembled according to the alignment mark, which can avoid data errors in the reassembled first code stream data.

在本申请的一种可选实施方式中,每组码流数据的传输时隙可以是在接收到每组码流数据后实时分配的,在接收到每组码流数据后,可以为每组码流数据分配传输时隙,在每组码流数据对应的传输时隙对每组码流数据进行处理,可以避免同时处理多组码流数据,造成网络芯片负载过大或数据错误等。具体地,可以是按照接收顺序为每组码流数据分配传输时隙,也可以是按照码流数据的优先级分配传输时隙等,可以根据实际应用场景进行调整,此处不作限定。In an optional implementation of the present application, the transmission time slot of each group of code stream data can be allocated in real time after receiving each group of code stream data, after receiving each group of code stream data, it can be allocated for each group The code stream data is assigned transmission time slots, and each group of code stream data is processed in the transmission time slot corresponding to each group of code stream data, which can avoid processing multiple sets of code stream data at the same time, causing excessive load on the network chip or data errors. Specifically, transmission time slots may be assigned to each group of code stream data according to the receiving order, or transmission time slots may be allocated according to the priority of the code stream data, etc., which may be adjusted according to actual application scenarios, and are not limited here.

在本申请的一种可选实施方式中,每组码流数据的传输时隙还可以是在接收每组码流数据之前,按照预置方式为每个业务接口分配传输时隙的。例如,可以将一个周期平均分为多个时隙,每个业务接口对应的时隙大小相同,也可以按照每个业务接口的数据量来分配时隙,数据量大的业务接口,所分配的时隙也可以较大等等。又例如,若网络芯片接入有N个业务接口,N>=1,该N个业务接口可以是相同业务类型的接口,也可以是不同业务类型的接口,还可以包括多个相同业务类型以及多个不同业务类型的接口。在接收每个业务接口对应的码流数据之前,为每个业务接口分配预置的传输时隙,在接收到码流数据后,可以首先判断该码流数据对应的业务接口,然后根据对应的业务接口查询该码流数据的传输时隙。In an optional implementation manner of the present application, the transmission time slot for each set of code stream data may also be allocated to each service interface in a preset manner before receiving each set of code stream data. For example, a cycle can be divided into multiple time slots on average, and the time slots corresponding to each service interface have the same size, or the time slots can be allocated according to the data volume of each service interface. The time slots can also be larger and so on. For another example, if there are N service interfaces connected to the network chip, N>=1, the N service interfaces can be interfaces of the same service type, or interfaces of different service types, and can also include multiple same service types and Multiple interfaces of different business types. Before receiving the code stream data corresponding to each service interface, assign a preset transmission time slot for each service interface. After receiving the code stream data, you can first determine the service interface corresponding to the code stream data, and then according to the corresponding The service interface queries the transmission time slot of the stream data.

303、将第一传输数据传输至对应的第一业务接口,将第二传输数据传输至对应的第二业务接口。303. Transmit the first transmission data to a corresponding first service interface, and transmit the second transmission data to a corresponding second service interface.

在对每组码流数据分别在对应的时隙进行解码,得到对应的传输数据后之后,可以分别将每组传输数据传输至对应的业务接口。以第二传输数据与第二传输数据为例,在对第一码流数据进行解码得到第一传输数据之后,将第一传输数据分发至对应的第一业务接口。在使用同一解码器对第二码流数据进行解码得到第二传输数据之后,将第二传输数据分发至对应的第二业务接口。After decoding each group of code stream data in a corresponding time slot to obtain corresponding transmission data, each group of transmission data can be transmitted to a corresponding service interface. Taking the second transmission data and the second transmission data as an example, after the first code stream data is decoded to obtain the first transmission data, the first transmission data is distributed to the corresponding first service interface. After the second code stream data is decoded by the same decoder to obtain the second transmission data, the second transmission data is distributed to the corresponding second service interface.

需要说明的是,本申请实施例中,在得到每组传输数据后,可以根据业务接口的业务类型,对每组传输数据进行传输。可以是直接发送至对应的业务接口,也可以是对每组传输数据进行进一步解码、解扰等处理之后,再发送至对应的业务接口。例如,若第一传输数据对应的业务接口为FlexE接口或以太网接口,则对得到的第一传输数据进行进一步解扰并解码之后,再发送至该FlexE接口或以太网接口。若第一传输数据对应的业务接口为FlexO接口,则直接将该第一传输数据发送至该FlexO接口。若该业务接口为Interlaken接口,则对第一传输数据进行解码并解扰后,发送至该Interlaken接口。It should be noted that, in the embodiment of the present application, after each group of transmission data is obtained, each group of transmission data may be transmitted according to the service type of the service interface. It may be directly sent to the corresponding service interface, or it may be sent to the corresponding service interface after further processing such as decoding and descrambling for each group of transmission data. For example, if the service interface corresponding to the first transmission data is a FlexE interface or an Ethernet interface, the obtained first transmission data is further descrambled and decoded, and then sent to the FlexE interface or the Ethernet interface. If the service interface corresponding to the first transmission data is a FlexO interface, the first transmission data is directly sent to the FlexO interface. If the service interface is an Interlaken interface, the first transmission data is decoded and descrambled, and then sent to the Interlaken interface.

还需要说明的是,本申请实施例中的步骤303为可选步骤。It should also be noted thatstep 303 in the embodiment of the present application is an optional step.

在本申请实施例中,在获取到多个业务接口对应的多组码流数据之后,使用同一个解码器在每组码流数据对应的传输时隙对每组码流数据进行解码,得到对应的传输数据。因此,可以实现多个业务接口共用同一个解码器。例如,第一码流数据以及第二码流数据后,确定第一码流数据的第一传输时隙,并在第一传输时隙对第一码流数据进行解码之后,发送至对应的第一业务接口。确定第二码流数据的第二传输时隙,并在第二传输时隙对第二码流数据进行解码,之后可以发送至对应的第二业务接口。因此,本申请实施例可以接受多个业务接口对应的多组码流数据,每组码流数据可以对应不同的传输时隙。可以使用同一个解码器在对应的传输时隙对每组传输数据进行解码,以得到传输数据。因此,多个相同或不同的业务接口可以共用同一个解码器。可以提高解码资源的利用率,节约网络资源。In the embodiment of this application, after obtaining multiple sets of code stream data corresponding to multiple service interfaces, use the same decoder to decode each set of code stream data in the transmission time slot corresponding to each set of code stream data, and obtain the corresponding the transmission data. Therefore, multiple service interfaces can share the same decoder. For example, after the first code stream data and the second code stream data, determine the first transmission time slot of the first code stream data, and after decoding the first code stream data in the first transmission time slot, send it to the corresponding A business interface. The second transmission time slot of the second code stream data is determined, and the second code stream data is decoded in the second transmission time slot, and then can be sent to the corresponding second service interface. Therefore, the embodiment of the present application can accept multiple sets of stream data corresponding to multiple service interfaces, and each set of stream data can correspond to a different transmission time slot. The same decoder can be used to decode each group of transmission data in the corresponding transmission time slot to obtain the transmission data. Therefore, multiple identical or different service interfaces can share the same decoder. It can improve the utilization rate of decoding resources and save network resources.

更进一步地,下面对本申请实施例提供的数据传输方法的发送与接收流程进行更详细的示例性说明。请参阅图4,本申请实施例提供的数据传输方法的另一种实施例示意图,可以包括发送流程与接收流程。发送流程可以理解为编码流程,接收流程可以理解为解码流程,下面结合编码流程与解码流程,以RS-FEC编码与解码的方式为例,进行更进一步地详细说明。Furthermore, a more detailed exemplary description will be given below of the sending and receiving process of the data transmission method provided by the embodiment of the present application. Please refer to FIG. 4 , which is a schematic diagram of another embodiment of the data transmission method provided by the embodiment of the present application, which may include a sending process and a receiving process. The sending process can be understood as an encoding process, and the receiving process can be understood as a decoding process. The following combines the encoding process and the decoding process, taking RS-FEC encoding and decoding as an example to describe in further detail.

其中,本申请实施例中的业务接口可以包括不同类型的多个接口,下面以4种接口为例,可以包括:以太网接口、FlexE接口、FlexO接口以及Interlaken接口,进行示例性说明。示例性地,每种业务类型的接口可以有一个或者多个,例如,Interlaken接口可以有一个或者多个,图4中仅以2个为例进行说明。Wherein, the service interface in the embodiment of the present application may include multiple interfaces of different types. The following four types of interfaces are taken as examples, which may include: Ethernet interface, FlexE interface, FlexO interface and Interlaken interface, for exemplary illustration. Exemplarily, there may be one or more interfaces for each service type, for example, there may be one or more Interlaken interfaces, and only two are used as an example for illustration in FIG. 4 .

首先,对PCS子层发送数据的步骤进行说明。其中,PCS子层可以接收多个业务接口发送的数据,该多个业务接口可以包括:以太网接口、FlexE接口、FlexO接口或Interlaken接口等等。通常,对于接收到的FlexO接口传输的数据,可以直接作为传输数据进行时分复用(Time Division Multiplexing,TDM)调度,而对于以太网接口、FlexE接口以及Interlaken接口传输的数据,则需要进行处理,得到对应的传输数据之后,才进行TDM调度。First, the steps of sending data by the PCS sublayer are described. Wherein, the PCS sublayer may receive data sent by multiple service interfaces, and the multiple service interfaces may include: an Ethernet interface, a FlexE interface, a FlexO interface, or an Interlaken interface, and the like. Usually, the received data transmitted by the FlexO interface can be directly used as transmission data for Time Division Multiplexing (TDM) scheduling, while the data transmitted by the Ethernet interface, FlexE interface and Interlaken interface need to be processed. TDM scheduling is performed only after corresponding transmission data is obtained.

业务接口可以包括一个或多个以太网接口或FlexE接口,当接收到以太网接口或FlexE接口的传输的初始码流数据时,该初始码流数据,即以太网接口的数据或FlexE接口的数据可以是以66B为单位的数据,可以对接收到的以太网接口的数据与FlexE接口的数据进行TDM调度(即步骤4011),确定每个业务接口对应的处理时隙。其中,每个业务接口对应的处理时隙可以是预置的,即提前为每个业务接口分配的,也可以是在接收到每个业务接口发送的数据后,实时分配的。当每个业务接口对应的处理时隙为预置的,则可以在接收到每个业务接口对应的数据时,在数据库中查询每个业务接口对应的时隙,以便后续在对应的处理时隙处理每个业务接口对应的数据。若每个业务接口对应的处理时隙为实时分配的,则可以对获取到的每个业务接口对应的数据按照业务类型、获取顺序、优先级等等,进行实时分配,以得到每个业务接口对应的数据的处理时隙。因此,本申请实施例在接收到以太网接口的数据或FlexE接口的数据后,可以确定每个业务接口对应的处理时隙,进行TDM调度,对每个业务接口传输的数据进行分时处理,实现一个或多个以太网接口或FlexE接口对应的数据的处理,使一个或多个以太网接口或FlexE接口对应的数据可以共用RS-FEC编码资源,提高RS-FEC编码资源的利用率。The service interface may include one or more Ethernet interfaces or FlexE interfaces. When receiving the initial code stream data transmitted by the Ethernet interface or the FlexE interface, the initial code stream data, that is, the data of the Ethernet interface or the data of the FlexE interface The data may be in units of 66B, and TDM scheduling may be performed on the received data of the Ethernet interface and the data of the FlexE interface (that is, step 4011), and the processing time slot corresponding to each service interface is determined. Wherein, the processing time slot corresponding to each service interface may be preset, that is, allocated for each service interface in advance, or may be allocated in real time after receiving data sent by each service interface. When the processing time slot corresponding to each service interface is preset, when the data corresponding to each service interface is received, the time slot corresponding to each service interface can be queried in the database, so that the corresponding processing time slot can be processed subsequently Process the data corresponding to each business interface. If the processing time slot corresponding to each service interface is allocated in real time, then the obtained data corresponding to each service interface can be allocated in real time according to the service type, acquisition order, priority, etc., to obtain each service interface The corresponding data processing time slot. Therefore, in the embodiment of the present application, after receiving the data of the Ethernet interface or the data of the FlexE interface, the processing time slot corresponding to each service interface can be determined, TDM scheduling can be performed, and the data transmitted by each service interface can be processed in time-sharing. Realize the processing of data corresponding to one or more Ethernet interfaces or FlexE interfaces, so that the data corresponding to one or more Ethernet interfaces or FlexE interfaces can share RS-FEC encoding resources, and improve the utilization rate of RS-FEC encoding resources.

在进行66B数据的TDM调度后,确定每个业务接口对应的处理时隙后,在每个处理时隙进行对应的66B至257B转码(即步骤4012),即对66B数据在对应的处理时隙进行转码,得到256B数据。具体地,通常接收到的业务接口发送的数据为数据流,即可以包括多个66B数据。可以将数据进行处理,包括将多个66B数据进行处理组合,得到257B数据,其中,因通常接收到的数据为66B数据的数据流,因此,将多个66B数据进行处理组合后,可以得到包括257B数据的数据流。After performing the TDM scheduling of 66B data, after determining the processing time slot corresponding to each service interface, perform corresponding 66B to 257B transcoding in each processing time slot (that is, step 4012), that is, the corresponding processing time for 66B data Slots are transcoded to obtain 256B data. Specifically, generally received data sent by the service interface is a data stream, that is, may include a plurality of 66B data. The data can be processed, including processing and combining multiple 66B data to obtain 257B data, among which, because the data usually received is a data stream of 66B data, after processing and combining multiple 66B data, it can be obtained including The data flow of 257B data.

通常,66B数据可以包括数据66B与控制66B,数据66B的比特0位为0,比特1位为1,控制66B的比特0位为1,比特1位为0。Generally, 66B data may includedata 66B andcontrol 66B,bit 0 ofdata 66B is 0,bit 1 is 1,bit 0 ofcontrol 66B is 1, andbit 1 is 0.

示例性地,将66B数据转码为257B数据的规则可以有多种,具体可以包括:Exemplarily, there may be various rules for transcoding 66B data into 257B data, which may specifically include:

1、当数据流中的66B数据都为数据66B时,将每个数据的比特0位与比特1位删除,将删除后的64B数据组成256比特的数据,并且在256比特的数据的头部添加值为1的比特位。例如,如图5所示,包括4个数据66B:tx_code_0、tx_code_1、tx_code_2以及tx_code_3。可以将4个数据66B的前2位删除,然后组成256B数据,在256数据头部增加比特1,即可得到257B数据,即tx_xcoded。1. When the 66B data in the data stream are alldata 66B, delete thebit 0 andbit 1 of each data, and form the deleted 64B data into 256-bit data, and place it at the head of the 256-bit data A bit with a value of 1 is added. For example, as shown in FIG. 5 , four pieces ofdata 66B are included: tx_code_0, tx_code_1, tx_code_2, and tx_code_3. The first 2 bits of the 4 pieces ofdata 66B can be deleted to form 256B data, andbit 1 can be added to the header of the 256 data to obtain 257B data, namely tx_xcoded.

2、当第1个66B数据为控制66B,后面3个数据为数据66B时,可以将控制66B与数据66B的比特0位与比特1位删除,并且把控制66B的比特6位至比特9位删除,组成252B数据,然后在252B数据头部添加0111表示控制66B后跟着3个数据66B,组合成256B数据,然后在256B数据头部添加比特0,得到257B数据,且比特位0表示该257B数据为带控制数据的257B数据。例如,如图6所示,包括1个数据66B以及2个控制66B:tx_code_0、tx_code_1、tx_code_2以及tx_code_3。将控制66B与数据66B的比特0位与比特1位删除,并且把控制66B的比特6位至比特9位删除,组成252B数据,然后在252B数据头部添加0111表示控制66B后包括3个数据66B,组合成256B数据,然后在256B数据头部添加比特0,得到257B数据,即tx_xcoded。2. When the first 66B data iscontrol 66B and the next three data aredata 66B, thebit 0 andbit 1 ofcontrol 66B anddata 66B can be deleted, and bit 6 to bit 9 ofcontrol 66B can be deleted Delete to form 252B data, and then add 0111 to the 252B data header to indicatecontrol 66B followed by 3data 66B to form 256B data, then addbit 0 to the 256B data header to obtain 257B data, andbit 0 indicates the 257B The data is 257B data with control data. For example, as shown in FIG. 6 , one piece ofdata 66B and two pieces ofcontrol 66B are included: tx_code_0, tx_code_1, tx_code_2, and tx_code_3.Delete bit 0 andbit 1 ofcontrol 66B anddata 66B, and delete bit 6 to bit 9 ofcontrol 66B to form 252B data, and then add 0111 to the 252B data header to indicate thatcontrol 66B includes 3data 66B, combined into 256B data, and then addbit 0 to the 256B data header to get 257B data, namely tx_xcoded.

3、当前3个数据为数据66B,后1个为控制66B时,可以将数据66B与控制66B的比特0位与比特1位删除,控制66B把比特6位到比特9位删除掉,在最前面添加4比特1111表示3个数据66B后面跟着1个控制66B,拼成1个256比特数据,然后在最前面添上比特0表示是带控制的257B。例如,如图7所示,包括3个数据66B以及1个控制66B:tx_code_0、tx_code_1、tx_code_2以及tx_code_3。将数据66B与控制66B的比特0位与比特1位删除,控制66B把比特6位到比特9位删除掉,在最前面添加4比特1111表示3个数据66B后面跟着1个控制66B,拼成1个256比特数据。然后在最前面添上比特0,得到257B数据,即tx_xcoded。3. When the first three data aredata 66B and the last one iscontrol 66B,bit 0 andbit 1 ofdata 66B andcontrol 66B can be deleted, and control 66B can delete bit 6 to bit 9. Adding 4bits 1111 in front means that 3 data 66Bs are followed by 1control 66B, which is assembled into 1 256-bit data, and then adding abit 0 at the front means that it is 257B with control. For example, as shown in FIG. 7 , three pieces ofdata 66B and one piece ofcontrol 66B are included: tx_code_0, tx_code_1, tx_code_2, and tx_code_3.Delete bit 0 andbit 1 ofdata 66B andcontrol 66B, delete bit 6 to bit 9 ofcontrol 66B, add 4bits 1111 at the front to indicate 3data 66B followed by 1control 66B, spelled 1 256-bit data. Then addbit 0 to the front to get 257B data, namely tx_xcoded.

4、当4个数据都是控制66B时,删除所有的控制66B把比特0位和比特1位,第1个控制66B把比特6位至比特9位删除掉,在最前面添加4比特1112表示4个控制66B,组合为1个256比特数据,然后在最前面添上比特0表示是带控制的257B。例如,如图8所示,包括4个控制66B:tx_code_0、tx_code_1、tx_code_2以及tx_code_3。删除所有的控制66B把比特0位和比特1位,第1个控制66B把比特6位至比特9位删除掉,在最前面添加4比特1112表示4个控制66B,组合为1个256比特数据。然后在最前面添上比特0,得到257B数据,即tx_xcoded。4. When the 4 data are allcontrol 66B, delete all control 66B to removebit 0 andbit 1, and thefirst control 66B deletes bit 6 to bit 9, and add 4bits 1112 at the front to indicate 4control 66B, combined into 1 256-bit data, and then addbit 0 at the front to indicate 257B with control. For example, as shown in FIG. 8, fourcontrols 66B are included: tx_code_0, tx_code_1, tx_code_2, and tx_code_3. Delete all control 66B to removebit 0 andbit 1, thefirst control 66B to delete bit 6 to bit 9, add 4bits 1112 at the front to represent 4control 66B, combined into a 256-bit data . Then addbit 0 to the front to get 257B data, namely tx_xcoded.

在进行66B至257B转码(即步骤4012)后,对得到的257B数据进行扰码(即步骤4013)。扰码通常是对对257B数据进行随机处理,减少连0和连1的出现,从而减少码间干扰和抖动,方便接收端的时钟提取。同时还扩展了基带信号频谱,起到加密的效果。After transcoding from 66B to 257B (ie step 4012), scramble the obtained 257B data (ie step 4013). The scrambling code is usually to randomly process the 257B data to reduce the occurrence of consecutive 0s and consecutive 1s, thereby reducing intersymbol interference and jitter, and facilitating clock extraction at the receiving end. At the same time, the spectrum of the baseband signal is expanded to achieve the effect of encryption.

示例性地,扰码的其中一种实现可以如图9所示。其中,扰码多项式可以是:G(x)=1+x39+x58。通常,扰码是一个循环计算的过程,输入的扰码器的数据是以数据流的形式输入,扰码器输出的扰码后的数据也是以数据流的形式输出。具体地,S0至S57可以理解为串行的同步移位寄存器,持续输入257B数据时,首先与一个数据进行异或运算,该数据为对S38与S57分别输出的数据进行异或运算后的数据,然后输出该与一个数据进行异或运算后的数据,并且输入值S0,通过S0至S57进行移位,并将移位寄存器S38与S57分别输出的值进行异或,并且将异或计算的值继续与输入的数据进行异或计算后输出,并且移位到S0继续进行移位与异或计算。经扰码器输出的数据即以太网接口或FlexE对应的传输数据。Exemplarily, one implementation of the scrambling code may be as shown in FIG. 9 . Wherein, the scrambling code polynomial may be: G(x)=1+x39 +x58 . Generally, scrambling is a cyclic calculation process, the data input to the scrambler is input in the form of a data stream, and the scrambled data output by the scrambler is also output in the form of a data stream. Specifically, S0 to S57 can be understood as serial synchronous shift registers. When continuously inputting 257B data, first perform an XOR operation with a data, which is the data after the XOR operation is performed on the data output by S38 and S57 respectively. , and then output the data after XOR operation with one data, and input value S0, shift through S0 to S57, and XOR the values output by shift registers S38 and S57 respectively, and XOR the calculated The value continues to be output after XOR calculation with the input data, and shifted to S0 to continue the shift and XOR calculation. The data output by the scrambler is the transmission data corresponding to the Ethernet interface or FlexE.

可以理解为,首先接收接入PCS子层的任一个以太网业务接口或任一个FlexE接口传输的初始码流数据,确定初始码流数据的处理时隙,根据该处理时隙对该码流数据进行转码,得到转码数据,根据该处理时隙对转码数据进行扰码,以得到以太网接口或与FlexE对应的传输数据,例如,前述的第一传输数据或第二传输数据。因此,可以实现以太网接口与FlexE接口数据的同时获取,可以为每个以太网接口或FlexE接口分配时隙,并在每个时隙处理对应的业务接口的数据,通过时分的方式实现对以太网接口的数据与FlexE接口的数据的处理,节约网络资源。It can be understood that firstly receive the initial code stream data transmitted by any Ethernet service interface or any FlexE interface connected to the PCS sublayer, determine the processing time slot of the initial code stream data, and process the code stream data according to the processing time slot Transcoding is performed to obtain transcoded data, and the transcoded data is scrambled according to the processing time slot to obtain transmission data corresponding to the Ethernet interface or FlexE, for example, the aforementioned first transmission data or second transmission data. Therefore, it is possible to obtain data from Ethernet interfaces and FlexE interfaces at the same time, assign time slots to each Ethernet interface or FlexE interface, and process the data of the corresponding service interface in each time slot. The data of the network interface and the data of the FlexE interface are processed, saving network resources.

然而,FlexO接口传输的数据,已符合后续的进行调度、预处理以及RS-FEC编码等数据需求,因此无需经过转码、扰码等处理,可直接接收FlexO接口传输的数据,后续进行TDM调度、预处理等步骤。即该FlexO接口传输的数据即可作为前述的第一传输数据。通常,FlexO接口传输的是数据流,RS-FEC可以直接对FlexO接口传输的数据流按照257B数据进行处理。因此,在接收到FlexO接口发送的数据后,无需进行处理,即可进行调度与预处理等步骤。However, the data transmitted by the FlexO interface has met the subsequent data requirements for scheduling, preprocessing, and RS-FEC encoding, so it can directly receive the data transmitted by the FlexO interface without transcoding, scrambling, etc., and then perform TDM scheduling , preprocessing and other steps. That is, the data transmitted by the FlexO interface can be used as the aforementioned first transmission data. Usually, the FlexO interface transmits data streams, and the RS-FEC can directly process the data streams transmitted by the FlexO interface as 257B data. Therefore, after receiving the data sent by the FlexO interface, steps such as scheduling and preprocessing can be performed without processing.

此外,PCS子层还可以接收一个或多个Interlaken接口传输的输入数据,其中,可以通过空分的方式实现Interlaken接口传输的输入数据的接口。以其中一个Interlaken接口为例,在接收到任一个Interlaken接口传输的初始码流数据后,首先对接收到的输入数据进行扰码(即步骤4021),其中,接收到的输入数据为XB长度的数据,X>=1,更一步地,扰码的步骤可以与前述步骤4013类似,此处不再赘述。In addition, the PCS sublayer may also receive input data transmitted by one or more Interlaken interfaces, where the interface of the input data transmitted by the Interlaken interfaces may be implemented in a space division manner. Taking one of the Interlaken interfaces as an example, after receiving the initial code stream data transmitted by any Interlaken interface, the received input data is first scrambled (ie step 4021), wherein the received input data is XB length For data, X>=1. Furthermore, the steps of scrambling may be similar to theaforementioned step 4013, and will not be repeated here.

然后对扰码后的XB数据进行XB至YB转码(即步骤4022)。具体可以是在XB前添加n位标识数据,以得到YB数据,n为不小于0的整数。例如,若X=64,Y=67,则可以在XB数据前添加3比特的标识数据。例如,可以在64B数据的头部增加001、010、101、110等,其中,001可以标识为数据块,且所有64比特数据位不取反码;010可以标识为控制块,且所有64比特数据位不取反码;101可以标识为数据块,所有64比特数据位取反码;110可以标识为控制块,且所有64比特数据位取反码。Then perform XB to YB transcoding on the scrambled XB data (that is, step 4022). Specifically, n bits of identification data may be added before XB to obtain YB data, where n is an integer not less than 0. For example, if X=64 and Y=67, 3-bit identification data can be added before the XB data. For example, 001, 010, 101, 110, etc. can be added to the head of 64B data, where 001 can be identified as a data block, and all 64-bit data bits are not inverted; 010 can be identified as a control block, and all 64-bit Data bits are not inverted; 101 can be identified as a data block, and all 64-bit data bits are inverted; 110 can be identified as a control block, and all 64-bit data bits are inverted.

在得到YB数据后,继续进行YB至ZB转码(即步骤4023),以得到Interlaken接口对应的传输数据,即前述图2中的多组传输数据的其中一个。其中,PCS子层可以接入多个Interlaken接口,可以接收多个Interlaken接口传输的输入数据,因此,在对多个输入数据进行处理,得到多个YB数据后,都进行YB至ZB的转码。并且,可以同时处理多个Interlaken接口传输的扰码后的XB数据,在将多个Interlaken接口对应的XB数据转换为YB数据后,后续在进行YB至ZB的转换时,可以为每个YB数据分配时隙,在不同的时隙对每个Interlaken接口对应的YB数据进行处理。因此,在进行YB至ZB转码时,还可以确定每个Interlaken接口对应的时隙,并在对应的时隙对每个YB数据进行处理。具体地,将YB转码为ZB数据的具体过程可以例如,若Y=67,Z=130,则可以是将67B数据压缩为65B数据,具体可以是将3位标识数据压缩为1比特的数据。例如,将数据块标识为0,控制块标识为1,得到65B数据。然后将两个65B数据组合起来,即可得到130B数据。该130B数据即可理解为传输数据,例如,前述的第一传输数据或第二传输数据。After obtaining the YB data, continue to transcode from YB to ZB (that is, step 4023 ) to obtain the transmission data corresponding to the Interlaken interface, that is, one of the multiple sets of transmission data in FIG. 2 above. Among them, the PCS sublayer can be connected to multiple Interlaken interfaces, and can receive input data transmitted by multiple Interlaken interfaces. Therefore, after processing multiple input data and obtaining multiple YB data, transcoding from YB to ZB is performed. . In addition, the scrambled XB data transmitted by multiple Interlaken interfaces can be processed at the same time. After converting the XB data corresponding to multiple Interlaken interfaces into YB data, when converting from YB to ZB, each YB data can be Allocate time slots, and process the YB data corresponding to each Interlaken interface in different time slots. Therefore, when transcoding from YB to ZB, the time slot corresponding to each Interlaken interface can also be determined, and each YB data can be processed in the corresponding time slot. Specifically, the specific process of transcoding YB data into ZB data may be, for example, if Y=67, Z=130, then it may be to compress 67B data into 65B data, specifically, it may be to compress 3-bit identification data into 1-bit data . For example, mark the data block as 0 and the control block as 1 to obtain 65B data. Then combine the two 65B data to get 130B data. The 130B data can be understood as transmission data, for example, the aforementioned first transmission data or second transmission data.

需要说明的是,在本申请实施例中,对于每个业务接口的传输数据的获取顺序不作限定,可以是先获取以太网接口对应的传输数据,也可以是先获取FlexO接口对应的传输数据,具体根据实际业务接口的发送对应数据的顺序确定,此处不作限定。It should be noted that, in the embodiment of the present application, the acquisition order of the transmission data of each service interface is not limited, it may be to obtain the transmission data corresponding to the Ethernet interface first, or to obtain the transmission data corresponding to the FlexO interface first, Specifically, it is determined according to the sequence of the corresponding data sent by the actual service interface, which is not limited here.

在得到多组传输数据后,即可进行TDM调度(即步骤403)。为每组传输数据确定对应的传输时隙,并按照每组传输数据对应的传输时隙进行调度处理。After obtaining multiple sets of transmission data, TDM scheduling can be performed (that is, step 403). A corresponding transmission time slot is determined for each group of transmission data, and scheduling processing is performed according to the transmission time slot corresponding to each group of transmission data.

具体地,可以获取多组传输数据,该多组传输数据可以包括步骤4013、步骤4023或直接接收的一个或多个FlexO接口传输的数据等。在获取到该多组传输数据后,可以确定每组传输数据的传输时隙,并根据每组传输数据的传输时隙对获取到的传输数据进行处理。下面以第一传输数据为例进行进一步地说明,第一传输数据为该多组传输数据中的任意一个。Specifically, multiple sets of transmission data may be acquired, and the multiple sets of transmission data may includestep 4013,step 4023 or directly received data transmitted by one or more FlexO interfaces. After the multiple sets of transmission data are acquired, the transmission time slots of each set of transmission data may be determined, and the acquired transmission data may be processed according to the transmission time slots of each set of transmission data. The following takes the first transmission data as an example for further description, where the first transmission data is any one of the multiple sets of transmission data.

其中,可选地,每组传输数据对应的传输时隙可以是预置的,也可以是在获取到传输数据后实时分配的。具体地,若传输时隙为预置的,则在获取该多组传输数据之前,可以为每个接入的业务接口分配与带宽匹配的时隙,并保存在数据库中,在获取到业务接口对应的传输数据后,可以根据该业务接口从数据库中查找该传输数据的传输时隙。若传输时隙为实时分配的,在获取该多组传输数据中的每组传输数据之后,可以根据每组传输数据对应的业务接口的业务类型进行时隙分配,也可以按照每组传输数据的获取顺序进行时隙分配,还可以按照每组传输数据的优先级进行时隙分配等等,为每组传输数据分配的时隙还可以与对应的业务接口的带宽匹配,具体可以根据实际应用场景进行调整。Wherein, optionally, the transmission time slot corresponding to each group of transmission data may be preset, or may be allocated in real time after the transmission data is acquired. Specifically, if the transmission time slot is preset, before obtaining the multiple sets of transmission data, a time slot matching the bandwidth can be allocated for each accessed service interface and stored in the database. After the corresponding data is transmitted, the transmission time slot of the transmitted data can be searched from the database according to the service interface. If the transmission time slots are assigned in real time, after obtaining each group of transmission data in the multiple groups of transmission data, the time slots can be allocated according to the service type of the service interface corresponding to each group of transmission data, or according to the time slot of each group of transmission data The time slots can be allocated according to the priority of each group of transmission data, etc. The time slots allocated for each group of transmission data can also be matched with the bandwidth of the corresponding service interface, which can be determined according to the actual application scenario Make adjustments.

在确定第一传输数据对应的第一传输时隙后,在第一传输时隙对第一传输数据进行预处理(即步骤404),以得到第一传输数据对应的预处理数据。获取到的多组传输数据中的每组传输数据都可以根据对应的传输时隙进行预处理,以得到每组传输数据对应的预处理数据。After the first transmission time slot corresponding to the first transmission data is determined, preprocessing is performed on the first transmission data in the first transmission time slot (that is, step 404 ), so as to obtain preprocessing data corresponding to the first transmission data. Each of the multiple sets of acquired transmission data may be preprocessed according to a corresponding transmission time slot, so as to obtain preprocessed data corresponding to each set of transmission data.

其中,预处理过程可以包括对第一传输数据进行码块交织分组,得到第一预处理数据。在第一预处理数据中插入对齐标识,得到第二预处理数据。Wherein, the preprocessing process may include performing code block interleaving and grouping on the first transmission data to obtain the first preprocessing data. The alignment identifier is inserted into the first preprocessing data to obtain the second preprocessing data.

具体地,进行码块交织分组,可以将第一传输数据分为多个组。每个组的数据的比特长度为与信道编码器的编码比特长度的整数倍。例如,若信道编码器为RS-FEC编码器,因RS-FEC编码器可以采用基于伽罗华域(Galois Field,GF)的RS编码,每个字符的长度为10比特(bit)。因此,在进行分组时,每组字符都可以为10bit字符的整数倍,以使RS-FEC编码器可以正常编码。例如,若第一传输数据的长度为1000比特,那么,可以将第一传输数据分为n组,n<=100,且每组字符的长度为10比特的整数倍。Specifically, performing code block interleaving and grouping may divide the first transmission data into multiple groups. The bit length of the data of each group is an integer multiple of the encoding bit length of the channel encoder. For example, if the channel coder is an RS-FEC coder, since the RS-FEC coder can use Galois Field (Galois Field, GF)-based RS coding, the length of each character is 10 bits (bit). Therefore, when grouping, each group of characters can be an integer multiple of 10bit characters, so that the RS-FEC encoder can encode normally. For example, if the length of the first transmission data is 1000 bits, then the first transmission data can be divided into n groups, n<=100, and the length of each group of characters is an integer multiple of 10 bits.

具体地,进行码块交织分组后,第一预处理数据可以理解为多个数据包。可以在每个数据包中插入与第一业务对应的对齐标识,以便编码器可以对第一预处理数据进行编码。例如,若在每个数据包的起始位添加对齐标识,则编码器在识别到该对齐标识后,即可对对齐标识后的数据进行编码。此外,对齐标识也可以使接收端在接收到该多个数据包编码后的数据后,完成对该多个数据包的对齐,避免数据错位。对齐标识可以是在将传输数据切分后的每个数据包中,预置间隔插入的标识。此外,对齐标识还可以是按照预置方式排列的一段数据、按照数据包的先后顺序排列的序列号等等。Specifically, after code block interleaving and grouping, the first preprocessed data can be understood as multiple data packets. An alignment identifier corresponding to the first service may be inserted into each data packet, so that the encoder can encode the first preprocessed data. For example, if an alignment mark is added to the start bit of each data packet, the encoder can encode the data after the alignment mark after recognizing the alignment mark. In addition, the alignment mark can also enable the receiving end to complete the alignment of the multiple data packets after receiving the encoded data of the multiple data packets, so as to avoid data misalignment. The alignment identifier may be an identifier inserted at a preset interval in each data packet after the transmission data is segmented. In addition, the alignment identifier may also be a piece of data arranged in a preset manner, a sequence number arranged in a sequence of data packets, and the like.

不同的业务接口对应的对齐标识可以相同,也可以不同,具体可以根据实际应用场景调整,此处不作限定。The alignment identifiers corresponding to different service interfaces can be the same or different, and can be adjusted according to actual application scenarios, which is not limited here.

更具体地,对齐标识的插入方式可以参阅标准IEEE802.3中的相关规范。More specifically, the insertion method of the alignment mark may refer to relevant specifications in the standard IEEE802.3.

在进行预处理(即步骤404),得到第二预处理数据后,可以继续进行编码(即步骤405),以得到第一码流数据。其中,编码方式可以是RS-FEC编码。After performing preprocessing (ie, step 404) to obtain the second preprocessed data, encoding may continue (ie, step 405) to obtain the first code stream data. Wherein, the encoding manner may be RS-FEC encoding.

其中,具体地,RS-FEC编码的方式可以是,RS-FEC编码器处理k个字符,计算出2t个冗余校验字符,得到的最终字符,字符数为n,n=k+2t。例如,以常用的RS(544,514)为例,n=544,k=514,t=15。Wherein, specifically, the RS-FEC encoding method may be that the RS-FEC encoder processes k characters, calculates 2t redundant check characters, and obtains a final character whose number of characters is n, where n=k+2t. For example, taking the commonly used RS (544, 514) as an example, n=544, k=514, t=15.

更进一步地,RS-FEC编码的具体过程可以是:Furthermore, the specific process of RS-FEC encoding can be:

消息多项式m(x)除以生成多项式g(x),获得校验多项式p(x):Divide the message polynomial m(x) by the generator polynomial g(x) to obtain the check polynomial p(x):

p(x)=xn-km(x)mod g(x)。p(x)=xnk m(x) mod g(x).

生成多项式可以是:

Figure GPA0000307073310000201
Generator polynomials can be:
Figure GPA0000307073310000201

消息多项式可以是:m(x)=mk-1xk-1+mk-2xk-2+...+m1x+m0The message polynomial may be: m(x)=mk-1 xk-1 +mk-2 xk-2 +...+m1 x+m0 .

可以得到校验多项式可以为:p(x)=p2t-1x2t-1+p2t-2x2t-2+...+p1x+p0It can be obtained that the check polynomial can be: p(x)=p2t-1 x2t-1 +p2t-2 x2t-2 +...+p1 x+p0 .

根据上述公式,最终输出的RS-FEC编码多项式可以是:According to the above formula, the final output RS-FEC encoding polynomial can be:

C(x)=mn-1n-1+mn-2n-2+...+mn-kxn-k-1+pn-k-1xn-k-1...+p0C(x) = mn-1n-1 + mn-2n-2 + . . . + mnk xnk-1 + pnk-1 xnk-1 . . . + p0 .

RS-FEC编码多项式可以理解为消息多项式与校验多项式的组合。其中,该校验多项式用于接收端在获取到数据时,根据数据中携带的数据确定校验多项式,以及预置的生成多项式,来计算数据中携带的消息多项式是否有数据错误,并对错误的数据进行纠错。The RS-FEC encoding polynomial can be understood as a combination of a message polynomial and a check polynomial. Wherein, the check polynomial is used by the receiving end to determine the check polynomial according to the data carried in the data when the receiving end obtains the data, and the preset generator polynomial to calculate whether there is a data error in the message polynomial carried in the data, and correct the error data for error correction.

RS-FEC编码器可以采用不同的n、k取值,获得不同的数据纠错能力,通常,以太网采用的是RS(528,514)和RS(544,514)。The RS-FEC encoder can adopt different values of n and k to obtain different data error correction capabilities. Usually, Ethernet adopts RS(528,514) and RS(544,514).

在进行RS-FEC编码得到第一码流数据后,根据第一码流数据对应的业务接口,对第一码流数据进行一步地分发(即步骤406)。具体地,在进行第一码流数据的分发时,根据第一码流数据对应的业务接口的业务类型的不同,在对应的第一传输时隙,将第一码流数据的虚拟传输通道映射到的物理通道,以通过物理传输通道对第一码流数据进行传输。通常,不同业务类型的业务接口,所对应的传输速率也可能不相同,例如,以太网接口对应的传输速率可以是200GB,FlexE接口对应的传输速率可能是100GB等等。而不同的物理通道的传输速率也可能不相同,因此,根据第一码流数据对应的业务接口的业务类型,确定第一码流数据传输的物理通道,并对第一码流数据进行分发,分发到PMA子层分发至对应的物理通道,并通过PMA子层,发送至接收端。After RS-FEC encoding is performed to obtain the first code stream data, the first code stream data is distributed in one step according to the service interface corresponding to the first code stream data (ie step 406). Specifically, when distributing the first code stream data, according to the service type of the service interface corresponding to the first code stream data, in the corresponding first transmission time slot, the virtual transmission channel of the first code stream data is mapped to the physical channel to transmit the first code stream data through the physical transmission channel. Generally, service interfaces of different service types may have different transmission rates. For example, the transmission rate corresponding to the Ethernet interface may be 200GB, and the transmission rate corresponding to the FlexE interface may be 100GB. The transmission rates of different physical channels may also be different. Therefore, according to the service type of the service interface corresponding to the first code stream data, determine the physical channel for the transmission of the first code stream data, and distribute the first code stream data. Distributed to the PMA sublayer, distributed to the corresponding physical channel, and sent to the receiving end through the PMA sublayer.

在本申请实施例中,PCS子层可以接入多个业务接口,确定每个业务接口传输的数据对应的传输时隙,并在对应的传输时隙对每组传输数据进行处理。因此,RS-FEC编码器可以根据确定的业务接口对应的传输时隙,处理多个相同或不同的业务接口传输的数据,提高RS-FEC编码资源的利用率。并且,每个业务接口之间可以通过时分或空分等方式,实现多个业务接口的接入,并且时隙可以灵活配置,可以灵活接入多种类型的业务接口,在保证接入业务接口的灵活性的同时可以节省网络资源。In the embodiment of the present application, the PCS sublayer can access multiple service interfaces, determine the transmission time slot corresponding to the data transmitted by each service interface, and process each group of transmission data in the corresponding transmission time slot. Therefore, the RS-FEC encoder can process data transmitted by multiple identical or different service interfaces according to the transmission time slot corresponding to the determined service interface, thereby improving the utilization rate of RS-FEC coding resources. Moreover, multiple service interfaces can be accessed through time division or space division between each service interface, and the time slot can be flexibly configured to flexibly access various types of service interfaces. It can save network resources while maintaining flexibility.

前述对本申请实施例提供的数据传输的方法的发送流程进行了具体说明,下面对本申请提供的接收流程进行更具体的说明。The foregoing has specifically described the sending process of the data transmission method provided in the embodiment of the present application, and the receiving process provided in the present application will be described in more detail below.

首先,每组码流数据可能被切分为多个数据包,接收通过PMA子层发送的多个数据包后,可以检索数据包中的对齐标识。在检索到多个数据包中的对齐标识后,将携带对齐标识的数据包锁定(即步骤407),即重组码流数据前,该数据包无需再进行处理。First, each set of code stream data may be divided into multiple data packets, and after receiving multiple data packets sent through the PMA sublayer, the alignment identifier in the data packet can be retrieved. After the alignment identifiers in the multiple data packets are retrieved, the data packets carrying the alignment identifiers are locked (ie step 407), that is, the data packets do not need to be processed before the code stream data is reassembled.

并在确定码流数据的所有数据包以后,按照不同的业务类型的对齐规则以及传输时隙,根据已经检测到的对齐标识,进行偏斜补偿(即步骤408)。将数据对齐,组合为前述步骤405中进行RS-FEC编码得到的第一码流数据。通过对齐标识消除不同的传输通道间的传输偏差。And after determining all data packets of code stream data, perform skew compensation according to alignment rules and transmission time slots of different types of services, and according to detected alignment marks (ie step 408). The data is aligned and combined into the first code stream data obtained by performing RS-FEC encoding in theaforementioned step 405 . The transmission deviation between different transmission channels is eliminated by aligning the marks.

可选的,在通过对齐标识进行对齐得到第一码流数据后,还可以删除第一码流数据中的对齐标识。当删除对齐标识时,在本申请实施例中,以下步骤中的第一码流数据可以理解为将删除对齐标识后的第一码流数据。Optionally, after the first code stream data is obtained through alignment using the alignment mark, the alignment mark in the first code stream data may also be deleted. When the alignment mark is deleted, in the embodiment of the present application, the first code stream data in the following steps can be understood as the first code stream data after the alignment mark is deleted.

例如,若在每100个字符之间插入对齐标识,那么,在接收到多个数据包后,检测每个数据包中的对齐标识,若其中一个数据包的只有99个字符,那么,可以确认该数据包中有数据错误或数据丢失,此时,可以根据通知PMA重新发送该数据包,或根据预置的规则,恢复该数据错误或数据丢失的字符等。并在码流数据的所有数据包都获取到后,将数据重组为码流数据。For example, if an alignment mark is inserted between every 100 characters, then, after receiving multiple data packets, detect the alignment mark in each data packet, and if one of the data packets has only 99 characters, then it can be confirmed There is a data error or data loss in the data packet. At this time, the data packet can be resent according to the notification PMA, or the character of the data error or data loss can be recovered according to a preset rule. And after all the data packets of the code stream data are obtained, the data is reassembled into the code stream data.

需要说明的是,本申请实施例中具体的对齐标识锁定(即步骤407)与偏斜补偿(即步骤408)可以参阅标准IEEE802.3中的相关规范,此处不再赘述。It should be noted that for the specific alignment mark locking (that is, step 407 ) and skew compensation (that is, step 408 ) in the embodiment of the present application, reference may be made to relevant specifications in the standard IEEE802.3, which will not be repeated here.

可以在获取到多组码流数据后,确定每组码流数据对应的传输时隙,并子在对应的传输时隙对每组码流数据进行解码(即步骤409)。以第一码流数据与第二码流数据为例,在得到第一码流数据后,确定第一码流数据的第一传输时隙,并在第一传输时隙对第一码流数据进行解码。在得到第二码流数据后,确定第二码流数据对应的第二传输时隙,并在第二传输时隙对第二码流数据进行解码。其中,第一码流数据为该多组码流数据中的任意一组码流数据,该第二码流数据为该多组码流数据中除第一码流数据之外的任意一组码流数据。具体的解码步骤为前述步骤405中RS-FEC编码步骤的逆过程。After acquiring multiple sets of code stream data, determine the transmission time slot corresponding to each set of code stream data, and decode each set of code stream data in the corresponding transmission time slot (that is, step 409). Taking the first code stream data and the second code stream data as an example, after the first code stream data is obtained, the first transmission time slot of the first code stream data is determined, and the first code stream data is processed in the first transmission time slot to decode. After obtaining the second code stream data, determine the second transmission time slot corresponding to the second code stream data, and decode the second code stream data in the second transmission time slot. Wherein, the first code stream data is any set of code stream data in the multiple sets of code stream data, and the second code stream data is any set of code stream data in the multiple sets of code stream data except the first code stream data streaming data. The specific decoding step is the reverse process of the RS-FEC encoding step in theaforementioned step 405 .

示例性的,以获取到的多组组码流数据中的任意一组码流数据作为第一码流数据为例,在前述步骤405中,可以理解为,消息多项式除以生成多项式,获得校验多项式,最终输出的RS-FEC编码多项式为消息多项式加上校验多项式。因此,逆过程即为组合得到的编码多项式分为消息多项式与校验多项式。因生成多项式、n与k的值已确定,因此,可以计算出消息多项式与校验多项式,根据校验多项式与生成多项式,即可确定消息多项式中的不正确的比特,以实现对消息多项式的误码纠错,得到第一解码数据。Exemplarily, taking any set of code stream data among the multiple sets of code stream data obtained as the first code stream data as an example, in theaforementioned step 405, it can be understood that the message polynomial is divided by the generator polynomial to obtain the correction The verification polynomial, the final output RS-FEC encoding polynomial is the message polynomial plus the verification polynomial. Therefore, the inverse process is that the combined encoding polynomial is divided into a message polynomial and a check polynomial. Since the values of the generator polynomial, n and k have been determined, the message polynomial and the check polynomial can be calculated, and the incorrect bits in the message polynomial can be determined according to the check polynomial and the generator polynomial, so as to realize the verification of the message polynomial Error correction is performed to obtain the first decoded data.

在对每组码流数据根据对应的传输时隙进行解码后,继续进行重组(即步骤410),以得到多组传输数据。After decoding each set of code stream data according to the corresponding transmission time slot, continue to recombine (that is, step 410) to obtain multiple sets of transmission data.

具体的重组过程为,针对前述步骤预处理(即步骤404),因添加了不同业务的对齐标识、进行了码块交织分组等,在获取到每组码流数据后,还需要进行码流数据的重组,包括将码流数据重新组合起来,分为分组之前的字符数,例如,将原10比特的整数倍为一组,分为8比特的整数倍为一组。并且根据不同的业务规则,重组为对应的传输数据。例如,以太网接口、FlexE接口与FlexO接口对应的传输数据长度可以重组为257B,Interlaken接口对应的传输数据的长度可以重组为130B等。The specific reorganization process is, for the preprocessing of the aforementioned steps (that is, step 404), due to the addition of alignment marks of different services, the interleaving and grouping of code blocks, etc., after obtaining each group of code stream data, it is also necessary to perform code stream data The recombination includes recombining the code stream data and dividing them into the number of characters before grouping, for example, dividing the integer multiples of the original 10 bits into a group and dividing them into a group of integer multiples of 8 bits. And according to different business rules, it is reorganized into corresponding transmission data. For example, the transmission data length corresponding to the Ethernet interface, the FlexE interface, and the FlexO interface can be reorganized into 257B, and the transmission data length corresponding to the Interlaken interface can be reorganized into 130B.

在重组得到多组传输数据后,根据每组传输数据对应的传输时隙,对每组传输数据进行分发(即步骤411)。After recombining multiple sets of transmission data, each set of transmission data is distributed according to the transmission time slot corresponding to each set of transmission data (that is, step 411).

以第一传输数据为例,若第一传输数据为以太网接口或FlexE接口对应的传输数据,则将第一传输数据分发至对应的解扰码器,进行解扰码。若第一传输数据为FlexO接口对应的传输数据,则直接将第一传输数据分发至FlexO接口。若第一传输数据为Interlaken接口对应的传输数据,则将第一传输数据分发至转码器进行转码。Taking the first transmission data as an example, if the first transmission data is the transmission data corresponding to the Ethernet interface or the FlexE interface, the first transmission data is distributed to a corresponding descrambler for descrambling. If the first transmission data is transmission data corresponding to the FlexO interface, the first transmission data is directly distributed to the FlexO interface. If the first transmission data is the transmission data corresponding to the Interlaken interface, the first transmission data is distributed to the transcoder for transcoding.

以下以第一传输数据为例,分别针对不同的业务接口进行说明。The following takes the first transmission data as an example to describe different service interfaces respectively.

1、若第一传输数据为Interlaken接口对应的传输数据。1. If the first transmission data is the transmission data corresponding to the Interlaken interface.

首先需要对第一传输数据进行转码(即步骤4121)。第一传输数据的长度为ZB,则可以将ZB转换为YB长度的转码数据。例如,若Z=130,Y=67,则可以将130B数据分为两个65B数据,并且将每个65B数据的预置位置的1位数据转换为3位标识数据。例如,将0转换为001、101,将1装换为010、110等,以得到67B数据。其中,001可以标识为数据块,且所有64比特数据位不取反码;010可以标识为控制块,且所有64比特数据位不取反码;101可以标识为数据块,所有64比特数据位取反码;110可以标识为控制块,且所有64比特数据位取反码。Firstly, the first transmission data needs to be transcoded (that is, step 4121). The length of the first transmission data is ZB, then ZB can be converted into transcoded data with a length of YB. For example, if Z=130, Y=67, the 130B data can be divided into two 65B data, and the 1-bit data at the preset position of each 65B data can be converted into 3-bit identification data. For example, convert 0 to 001, 101, and convert 1 to 010, 110, etc. to get 67B data. Among them, 001 can be identified as a data block, and all 64-bit data bits are not inverted; 010 can be identified as a control block, and all 64-bit data bits are not inverted; 101 can be identified as a data block, and all 64-bit data bits Negative code; 110 can be identified as a control block, and all 64 data bits are negated.

然后进行YB至XB转码(即步骤4122)。将YB数据转换为XB数据,具体可以是删除YB数据中的标识数据。例如,若Y=67,X=64,且每个YB数据的头部包括3位标识数据,则可以删除头部的3位标识数据,以得到64B数据。Then perform YB to XB transcoding (ie step 4122). Converting the YB data into XB data may specifically delete the identification data in the YB data. For example, if Y=67, X=64, and the header of each YB data includes 3-bit identification data, then the 3-bit identification data in the header can be deleted to obtain 64B data.

然后对XB数据解扰码(即步骤4123),以得到Interlaken接口对应的业务数据。解扰码的过程为扰码的逆过程,针对前述步骤4021,可以是将XB数据输入到解扰码器中,对输入的数据异或运算,然后进行移位输出。具体地,解扰码的具体过程可以根据扰码多项式进行计算,具体解扰的流程与图9中所示的扰码流程类似,此处不再赘述。Then descramble the XB data (that is, step 4123) to obtain the service data corresponding to the Interlaken interface. The process of descrambling is the reverse process of scrambling. For theaforementioned step 4021, the XB data may be input into the descrambling device, XOR operation is performed on the input data, and then shifted and outputted. Specifically, the specific process of descrambling codes may be calculated according to the scrambling code polynomial, and the specific descrambling process is similar to the scrambling code process shown in FIG. 9 , and will not be repeated here.

在得到Interlaken接口对应的业务数据后,将该业务数据发送至对应的Interlaken接口。After obtaining the service data corresponding to the Interlaken interface, the service data is sent to the corresponding Interlaken interface.

应理解,Interlaken接口的接入数量可以是一个也可以是多个,当有多个Interlaken接口时,进行转码(即步骤4121)得到传输数据后,根据每组传输数据对应的业务接口,分别分发至对应的处理通道进行处理,可以同时对多路数据进行处理,包括转码、解扰码等,并在处理完成得到对应的业务数据后,发送至对应的Interlaken接口。It should be understood that the access quantity of the Interlaken interface can be one or more. When there are multiple Interlaken interfaces, after transcoding (that is, step 4121) to obtain the transmission data, according to the service interface corresponding to each group of transmission data, respectively Distributed to the corresponding processing channel for processing, multiple channels of data can be processed at the same time, including transcoding, descrambling, etc., and after the processing is completed to obtain the corresponding business data, it is sent to the corresponding Interlaken interface.

在本申请实施例中,在进行ZB至YB转码后,可以将YB数据进行进一步地转码、解扰码处理,并且,若有多个YB数据,且对应多个Interlaken接口,则可以同时对每个Interlaken接口对应的YB数据进进行处理,通过空分的方式接入多个Interlaken接口,因此,可以提高处理步骤407至步骤411中所涉及的资源的利用率。In this embodiment of the application, after transcoding from ZB to YB, the YB data can be further transcoded and descrambled, and if there are multiple YB data corresponding to multiple Interlaken interfaces, they can be simultaneously The YB data corresponding to each Interlaken interface is processed, and multiple Interlaken interfaces are connected through space division, so the utilization rate of resources involved in processingsteps 407 to 411 can be improved.

2、若第一传输数据为FlexO接口对应的传输数据。2. If the first transmission data is the transmission data corresponding to the FlexO interface.

若第一传输数据为FlexO接口对应的传输数据,则可以直接将第一传输数据发送至对应的FlexO接口。通常,FlexO接口对应的传输数据的长度为257B,无需进行处理,所以可以直接将FlexO对应的传输数据发送至FlexO接口。接入的FlexO接口可以有一个或者多个,若有多个FlexO接口,则分别将每个FlexO接口的传输数据发送每个FlexO接口。If the first transmission data is transmission data corresponding to the FlexO interface, the first transmission data may be directly sent to the corresponding FlexO interface. Usually, the length of the transmission data corresponding to the FlexO interface is 257B, and no processing is required, so the transmission data corresponding to the FlexO can be directly sent to the FlexO interface. There may be one or more connected FlexO interfaces. If there are multiple FlexO interfaces, the transmission data of each FlexO interface is sent to each FlexO interface.

在本申请实施例中,若第一传输数据对应FlexO接口,则可以直接将第一数据传输至对应的FlexO接口,因此,可以接入一个或多个FlexO接口,提高网络资源的利用率。In the embodiment of the present application, if the first transmission data corresponds to the FlexO interface, the first data can be directly transmitted to the corresponding FlexO interface, therefore, one or more FlexO interfaces can be connected to improve the utilization rate of network resources.

3、若第一传输数据为以太网接口或FlexE接口对应的传输数据。3. If the first transmission data is the transmission data corresponding to the Ethernet interface or the FlexE interface.

若第一传输数据对应的业务接口为以太网接口或FlexE接口,则在进行解扰码(即步骤4131)之前,确定第一传输数据对应的处理时隙。该处理时隙可以是预置的,则在获取到第一传输数据时,可以直接根据第一传输数据对应的业务接口的业务类型,查询该第一传输数据的处理时隙。该处理时隙也可以是在获取到第一传输数据时,为第一传输数据实时分配的。If the service interface corresponding to the first transmission data is an Ethernet interface or a FlexE interface, before descrambling (that is, step 4131 ), the processing time slot corresponding to the first transmission data is determined. The processing time slot may be preset, and when the first transmission data is acquired, the processing time slot of the first transmission data may be queried directly according to the service type of the service interface corresponding to the first transmission data. The processing time slot may also be allocated in real time for the first transmission data when the first transmission data is acquired.

可以将第一传输数据分发至解扰器进行解扰码(即步骤4131),以得到解扰数据。具体地,解扰码的过程与前述步骤4013中扰码的过程类似。针对前述步骤4013,可以是根据第一传输时隙将第一传输数据输入到解扰码器中,对输入的数据异或运算、移位等输出。The first transmission data may be distributed to a descrambler for descrambling (that is, step 4131), so as to obtain descrambled data. Specifically, the descrambling process is similar to the scrambling process instep 4013 described above. For theaforementioned step 4013, the first transmission data may be input into the descrambler according to the first transmission time slot, and the input data is XORed, shifted and outputted.

具体例如,具体的解扰过程参照前述图9,可以是,若扰码的生成多项式为G(x)=1+x39+x58,首先与一个数据进行异或运算,该数据为对S38与S57分别输出的数据进行异或运算后的数据,然后输出该与一个数据进行异或运算后的数据,并且输入值S0,通过S0至S57进行移位,并将移位寄存器S38与S57分别输出的值进行异或,并且将异或计算的值继续与输入的数据进行异或计算后输出,并且移位到S0继续进行移位与异或计算,以得到解扰数据并输出。For example, referring to the aforementioned Figure 9 for the specific descrambling process, it may be that if the generator polynomial of the scrambling code is G(x)=1+x39 +x58 , first perform an XOR operation with a piece of data, which is the pair S38 The data after XOR operation with the data output by S57 respectively, and then output the data after XOR operation with one data, and input value S0, shift through S0 to S57, and shift registers S38 and S57 respectively The output value is XORed, and the value calculated by XOR is continued to be XORed with the input data and then output, and shifted to S0 to continue shifting and XOR calculation to obtain descrambled data and output.

在得到解扰数据后,通常解扰数据的长度为257B,因此,可以根据第一传输数据对应的处理时隙进行257B至66B转码(即步骤4132)。具体地,将257B数据转换为66B数据可以为前述图5至图8中所述的转换过程的逆过程。例如,可以将257数据的比特0位删除,然后剩下的数据平均切分为4个64B数据,然后在每个64B数据头部添加2位标识位,即可得到4个66B数据。其中,该4个66B数据都为数据66B。而当4个66B数据为1个66B数据为控制66B,后面3个数据为数据66B时,则可以将257数据的比特0位至比特4位删除,然后在比特4位之后增加4位控制数据,之后将数据平均切分为4个64B数据,在每个64B数据头部添加2位标识位,即可得到4个66B数据。当前3个数据为数据66B,后1个为控制66B时,将257数据的比特0位至比特4位删除,然后在前述控制数据部分增加4位控制数据,之后将数据平均切分为4个64B数据,在每个64B数据头部添加2位标识位,即可得到4个66B数据。当4个数据都是控制66B时,将257数据的比特0位至比特4位删除,然后在每个控制数据对应的比特位增加对应的控制数据,之后将数据平均切分为4个64B数据,在每个64B数据头部添加2位标识位,即可得到4个66B数据。After obtaining the descrambled data, usually the length of the descrambled data is 257B, therefore, transcoding from 257B to 66B can be performed according to the processing time slot corresponding to the first transmission data (that is, step 4132). Specifically, converting 257B data into 66B data may be an inverse process of the conversion process described above in FIGS. 5 to 8 . For example,bit 0 of 257 data can be deleted, and then the remaining data can be equally divided into four 64B data, and then 2 identification bits can be added to each 64B data header to obtain four 66B data. Wherein, the four pieces of 66B data are alldata 66B. And when the 4 66B data are 1 66B data iscontrol 66B, and the following 3 data aredata 66B, you can deletebit 0 to bit 4 of 257 data, and then add 4 bits of control data after bit 4 , and then divide the data into four 64B data on average, and add 2 identification bits to each 64B data header to obtain four 66B data. When the first three data aredata 66B and the last one iscontrol 66B, deletebit 0 to bit 4 of the 257 data, then add 4-bit control data to the aforementioned control data part, and then divide the data into 4 evenly For 64B data, add 2 identification bits to each 64B data header to get 4 66B data. When the 4 data are allcontrol 66B, deletebit 0 to bit 4 of the 257 data, then add the corresponding control data to the bit corresponding to each control data, and then divide the data into 4 64B data on average , adding 2 identification bits to each 64B data header, you can get 4 66B data.

在进行转码得到66B数据后,根据处理时隙,对66B数据进行分发(即步骤4133),发送至对应的FlexE接口或以太网接口。其中,若接入有一个或多个FlexE接口,或一个或多个以太网接口,将66B数据分发至对应的FlexE接口或以太网接口。After the 66B data is obtained by transcoding, the 66B data is distributed according to the processing time slot (that is, step 4133), and sent to the corresponding FlexE interface or Ethernet interface. Wherein, if there are one or more FlexE interfaces, or one or more Ethernet interfaces, the 66B data is distributed to the corresponding FlexE interfaces or Ethernet interfaces.

因此,当第一传输数据对应的接口为FlexE接口或以太网接口时,可以根据第一传输数据的处理时隙对第一传输数据进行处理,在处理完成后分发至对应的业务接口。例如,若第一传输数据对应的是FlexE接口,则对第一传输数据根据处理时隙进行解扰码、257B至66B转码后,将66B数据,即第三码流数据分发至该FlexE接口。因此,可以通过时分的方式,对一个或多个FlexE接口,或一个或多个以太网接口对应的传输数据,共用RS-FEC解码资源进行处理,实现多个业务接口的接入,提高网络资源的利用率。Therefore, when the interface corresponding to the first transmission data is a FlexE interface or an Ethernet interface, the first transmission data can be processed according to the processing time slot of the first transmission data, and distributed to the corresponding service interface after the processing is completed. For example, if the first transmission data corresponds to the FlexE interface, then the first transmission data is descrambled and transcoded from 257B to 66B according to the processing time slot, and then the 66B data, that is, the third code stream data, is distributed to the FlexE interface . Therefore, the transmission data corresponding to one or more FlexE interfaces or one or more Ethernet interfaces can be processed in a time-division manner by sharing RS-FEC decoding resources to realize the access of multiple service interfaces and improve network resources. utilization rate.

在本申请实施例中,在接收到PMA子层发送过来的码流数据后,对该码流数据进行处理,包括AM锁定、偏斜补偿、解码、重组、分发等步骤,业务接口对应的数据分配对应的传输时隙,实现对多个业务接口对应的数据的处理。因此,可以接入一个或多个相同或不同的业务接口,实现对一个或多个相同或不同的业务接口的数据的处理,节约网络资源,相对于一个业务接口对应一个RS-FEC编码器,本申请实施例提供的数据传输方法可以结合时分与空分的方式,实现多个相同或不同的业务接口共用RS-FEC资源,提高RS-FEC资源的利用率。并且,可以灵活地接入多种类型的业务接口,提高对多种类型的业务接口对应的数据的处理效率。In the embodiment of this application, after receiving the code stream data sent by the PMA sublayer, the code stream data is processed, including steps such as AM locking, skew compensation, decoding, reorganization, and distribution, and the data corresponding to the service interface The corresponding transmission time slots are allocated to realize the processing of data corresponding to multiple service interfaces. Therefore, one or more same or different service interfaces can be connected to realize data processing of one or more same or different service interfaces, saving network resources. Compared with one service interface corresponding to one RS-FEC encoder, The data transmission method provided by the embodiment of the present application can combine time division and space division to realize the sharing of RS-FEC resources by multiple identical or different service interfaces and improve the utilization rate of RS-FEC resources. Moreover, various types of service interfaces can be flexibly connected, and the efficiency of processing data corresponding to various types of service interfaces can be improved.

应理解,在图4提供的申请实施例中,发送侧或接收侧都接入有多个业务接口,当执行步骤4011-步骤406的设备或网络芯片位于某一装置内部时,该多个业务的一端可以接入本申请中的网络芯片或网络芯片侧,另一端可以连接其他的处理模块,将其他处理模块处理之后的数据通过该多个业务接口传输至本申请实施例中的发送侧进行处理,或者将本申请实施例接收侧得到的数据发送至处理模块进行进一步处理。It should be understood that in the embodiment of the application provided in Figure 4, both the sending side and the receiving side are connected with multiple service interfaces. One end of this application can be connected to the network chip or the network chip side in this application, and the other end can be connected to other processing modules, and the data processed by other processing modules can be transmitted to the sending side in the embodiment of this application through the multiple service interfaces. processing, or sending the data obtained by the receiving side in the embodiment of the present application to the processing module for further processing.

前述对本申请提供的方法流程进行了说明,基于前述图2-图9中所示的方法,下面对本申请提供的装置进行详细说明。请参阅图10,本申请提供的网络芯片的一种结构示意图。The foregoing describes the flow of the method provided by the present application. Based on the methods shown in FIGS. 2-9 above, the device provided by the present application will be described in detail below. Please refer to FIG. 10 , which is a schematic structural diagram of a network chip provided in this application.

该网络芯片可以包括:信道编码器1001、时隙调度器1002以及数据分发器1003。The network chip may include: achannel encoder 1001 , atime slot scheduler 1002 and adata distributor 1003 .

该时隙调度器1002,用于确定第一传输数据的第一传输时隙和第二传输数据的第二传输时隙,该第一传输数据和所述第二传输数据为多个业务接口对应的多组传输数据中的任意两组传输数据。Thetime slot scheduler 1002 is configured to determine a first transmission time slot for the first transmission data and a second transmission time slot for the second transmission data, the first transmission data and the second transmission data correspond to multiple service interfaces Any two sets of transmission data in multiple sets of transmission data.

该信道编码器1001,用于在第一传输时隙对该第一传输数据进行信道编码,得到第一码流数据,以及通过该信道编码器1001在第二传输时隙对该第二传输数据进行编码,得到第二码流数据。Thechannel encoder 1001 is configured to perform channel encoding on the first transmission data in the first transmission time slot to obtain the first code stream data, and use thechannel encoder 1001 to perform channel encoding on the second transmission data in the second transmission time slot Encoding is performed to obtain the second code stream data.

其中,该信道编码器1001可以用于执行前述图2中的步骤202。Wherein, thechannel encoder 1001 can be used to execute theaforementioned step 202 in FIG. 2 .

该数据分发器1003,用于将该第一码流数据分发至与该第一码流数据分发至对应的接收端,以及将该第二码流分发至与该第二码流对应的接收端。Thedata distributor 1003 is configured to distribute the first code stream data to the receiving end corresponding to the distribution of the first code stream data, and distribute the second code stream to the receiving end corresponding to the second code stream .

其中,该数据分发器1003可以用于执行前述图2中的步骤203。Wherein, thedata distributor 1003 can be used to execute theaforementioned step 203 in FIG. 2 .

在本申请实施例的一种可选实施方式中,该数据分发器1003,具体用于该第一传输时隙将该第一码流数据按照预置分发规则分发至对应的物理媒介适配子层PMA,以及在该第二传输时隙将该第二码流数据分发至该PMA,以通过该PMA将该第一码流数据传输至与该第一码流数据对应的网络芯片,以及将该第二码流数据传输至与该第二码流数据对应的网络芯片。In an optional implementation manner of the embodiment of the present application, thedata distributor 1003 is specifically used for distributing the first code stream data to the corresponding physical media adapter in the first transmission time slot according to a preset distribution rule Layer PMA, and distribute the second code stream data to the PMA in the second transmission time slot, so as to transmit the first code stream data to the network chip corresponding to the first code stream data through the PMA, and The second code stream data is transmitted to the network chip corresponding to the second code stream data.

其中,该数据分发器1003可以用于执行前述图2中的步骤203,以及图4中的步骤406。Wherein, thedata distributor 1003 can be used to executestep 203 in FIG. 2 and step 406 in FIG. 4 .

在本申请实施例的一种可选实施方式中,该多个业务接口中任一接口可以是以太网业务接口或灵活以太网FlexE接口,该网络芯片还包括:第一业务接口、第一转码器1006以及第一扰码器1007。该第一业务接口可以是以太网接口或FlexE接口,示例性地,如图10中的FlexE接口1004、以太网接口1005。In an optional implementation manner of the embodiment of the present application, any one of the multiple service interfaces may be an Ethernet service interface or a flexible Ethernet FlexE interface, and the network chip further includes: a first service interface, afirst switch Encoder 1006 andfirst scrambler 1007. The first service interface may be an Ethernet interface or a FlexE interface, for example, theFlexE interface 1004 and theEthernet interface 1005 in FIG. 10 .

该第一业务接口,即FlexE接口1004或以太网接口1005,具体用于接收初始码流数据。The first service interface, that is, theFlexE interface 1004 or theEthernet interface 1005 is specifically used to receive initial code stream data.

该时隙调度器1002,还用于确定该初始码流数据的处理时隙。该时隙调度器1002可以用于执行前述图4中的步骤4011。Thetime slot scheduler 1002 is also used to determine the processing time slot of the initial stream data. Thetime slot scheduler 1002 can be used to execute theaforementioned step 4011 in FIG. 4 .

需要说明的是,本申请实施例可以包括一个或多个时隙调度器。其中,为每组传输数据确定传输时隙,以及为初始码流数据确定时隙的时隙调度器可以是同一个时隙调度器,也可以是不同的时隙调度器。It should be noted that this embodiment of the present application may include one or more time slot schedulers. Wherein, the time slot scheduler that determines the transmission time slot for each group of transmission data and the time slot for the initial code stream data may be the same time slot scheduler or different time slot schedulers.

该第一转码器1006,用于在该处理时隙对该初始码流数据进行转码,得到转码数据。该第一转码器1006具体可以用于执行前述图4中的步骤4011Thefirst transcoder 1006 is configured to transcode the initial code stream data in the processing time slot to obtain transcoded data. Thefirst transcoder 1006 can specifically be used to execute theaforementioned step 4011 in FIG. 4

该第一扰码器1007,用于在该处理时隙对该转码数据进行扰码,得到该第一传输数据。该第一扰码器1007可以用于执行前述图4中的步骤4013。Thefirst scrambler 1007 is configured to scramble the transcoded data in the processing time slot to obtain the first transmission data. Thefirst scrambler 1007 can be used to execute theaforementioned step 4013 in FIG. 4 .

在本申请实施例的一种可选实施方式中,该多个业务接口包括至少一个Inter1aken接口,该网络芯片还包括:第二业务接口、第二转码器1006以及第二扰码器1007。该第二业务接口可以是Interlaken接口,即图10中的Interlaken接口1008。In an optional implementation manner of the embodiment of the present application, the multiple service interfaces include at least one Interlaken interface, and the network chip further includes: a second service interface, asecond transcoder 1006 and asecond scrambler 1007 . The second service interface may be an Interlaken interface, that is, theInterlaken interface 1008 in FIG. 10 .

该第二业务接口,即该Interlaken接口1008的数量为一个或多个,用于接收输入数据。There are one or more second service interfaces, that is, theInterlaken interface 1008, which are used to receive input data.

该第二扰码器1009,用于对该输入数据进行扰码,得到扰码数据。该第二扰码器1009可以用于执行前述图4中的步骤4021。其中,网络芯片可以包括一个或多个第二扰码器,每个Interlaken接口可以对应一个第二扰码器。The second scrambler 1009 is configured to scramble the input data to obtain scrambled data. The second scrambler 1009 can be used to execute theaforementioned step 4021 in FIG. 4 . Wherein, the network chip may include one or more second scramblers, and each Interlaken interface may correspond to one second scrambler.

该第二转码器1010,用于在该扰码数据中添加标识数据,以得到预置长度的数据。该第二转码器1010可以用于执行前述图4中的步骤4022。其中,本申请中的网络芯片可以包括一个或多个第二转码器1010,每个Interlaken接口可以对应一个第二转码器1010。Thesecond transcoder 1010 is configured to add identification data to the scrambled data to obtain data with a preset length. Thesecond transcoder 1010 can be used to execute theaforementioned step 4022 in FIG. 4 . Wherein, the network chip in this application may include one or moresecond transcoders 1010 , and each Interlaken interface may correspond to onesecond transcoder 1010 .

该第三转码器1011,用于将该预置长度的数据进行编组,以得到该第一传输数据。其中,该第三转码器1011可以用于执行前述图4中的步骤4023。Thethird transcoder 1011 is configured to group the data of the preset length to obtain the first transmission data. Wherein, thethird transcoder 1011 can be used to execute theaforementioned step 4023 in FIG. 4 .

在本申请实施例的一种可选实施方式中,该多个业务接口包括至少一个FlexO接口,该网络芯片还可以包括:第三业务接口,该第三业务接口即图10中的FlexO接口1012。In an optional implementation manner of the embodiment of the present application, the multiple service interfaces include at least one FlexO interface, and the network chip may further include: a third service interface, the third service interface being theFlexO interface 1012 in FIG. 10 .

该FlexO接口1012的数量为一个或多个,可以用于接收该第一传输数据。The number of theFlexO interface 1012 is one or more, and can be used to receive the first transmission data.

在本申请实施例的一种可选实施方式中,In an optional implementation manner of the embodiment of the present application,

该时隙调度器1002,具体用于根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。Thetime slot scheduler 1002 is specifically configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.

在本申请实施例的一种可选实施方式中,该时隙调度器1002,具体用于:In an optional implementation manner of the embodiment of this application, thetime slot scheduler 1002 is specifically used for:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的传输时隙;Allocating a transmission time slot to each of the multiple service interfaces according to a preset method, so as to obtain a transmission time slot corresponding to each service interface;

确定该第一传输数据对应的第一业务接口,以及该第二传输数据对应的第二业务接口;determining a first service interface corresponding to the first transmission data, and a second service interface corresponding to the second transmission data;

根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。Determine the first transmission time slot from the transmission time slots corresponding to each service interface according to the first service interface, and determine the second transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface time slot.

在本申请实施例的一种可选实施方式中,该信道编码器1001,具体用于:In an optional implementation manner of the embodiment of this application, thechannel encoder 1001 is specifically used for:

在该第一传输时隙对该第一传输数据进行码块交织分组,以得到第一预处理数据。在该第一传输时隙对该第一预处理数据插入对齐标识,得到第二预处理数据。在该第一传输时隙对该第二预处理数据进行信道编码,得到该第一码流数据。Perform code block interleaving and grouping on the first transmission data in the first transmission time slot to obtain first preprocessed data. Inserting an alignment mark into the first pre-processed data in the first transmission time slot to obtain second pre-processed data. Perform channel coding on the second preprocessed data in the first transmission time slot to obtain the first code stream data.

其中,该信道编码器1001可以用于执行前述图2中的步骤202或前述图4中的步骤404与步骤405。Wherein, thechannel encoder 1001 may be used to execute theaforementioned step 202 in FIG. 2 or theaforementioned steps 404 and 405 in FIG. 4 .

在本申请实施例的一种可选实施方式中,该信道编码器1001可以是RS-FEC编码器。In an optional implementation manner of the embodiment of this application, thechannel encoder 1001 may be an RS-FEC encoder.

前述对本申请提供的一种网络芯片进行了详细说明,下面对本申请提供的另一种网络芯片进行说明。A network chip provided by the present application has been described in detail above, and another network chip provided by the present application will be described below.

请参阅图11,该网络芯片可以包括:解码器1102以及时隙调度器1101。Referring to FIG. 11 , the network chip may include: adecoder 1102 and atime slot scheduler 1101 .

该时隙调度器1101,用于确定多组码流数据中每组码流数据的传输时隙,包括第一码流数据对应的第一传输时隙,以及第二码流数据对应的第二传输时隙,该第一码流数据和该第二码流数据为多个业务接口对应的多组码流数据中的任意两组码流数据。Thetime slot scheduler 1101 is used to determine the transmission time slot of each set of code stream data in multiple sets of code stream data, including the first transmission time slot corresponding to the first code stream data, and the second transmission time slot corresponding to the second code stream data In the transmission time slot, the first code stream data and the second code stream data are any two sets of code stream data among multiple sets of code stream data corresponding to multiple service interfaces.

该解码器1102,用于在第一传输时隙对该第一码流数据进行解码,得到第一传输数据,通过该解码器1102在第二传输时隙对该第二码流数据进行解码,得到第二传输数据,该第一传输时隙与该第二传输时隙不同。其中。该接收器该解码器1102可以用于执行前述图3中的步骤302。Thedecoder 1102 is configured to decode the first code stream data in the first transmission time slot to obtain the first transmission data, and decode the second code stream data in the second transmission time slot through thedecoder 1102, Obtaining second transmission data, the first transmission time slot is different from the second transmission time slot. in. The receiver and thedecoder 1102 can be used to execute theaforementioned step 302 in FIG. 3 .

在本申请实施例的一种可选实施方式中,若该第一业务接口的类型为以太网接口或FlexE接口中的任意一种,该网络芯片还可以包括:第一业务接口、第一解扰器1103、第一转码器1104以及第一分发器1105;该第一业务接口可以是FlexE接口或以太网接口,示例性地,如图11中的FlexE接口1106或以太网接口1107。In an optional implementation manner of the embodiment of the present application, if the type of the first service interface is any one of an Ethernet interface or a FlexE interface, the network chip may further include: a first service interface, a firstsolution A scrambler 1103, afirst transcoder 1104, and afirst distributor 1105; the first service interface may be a FlexE interface or an Ethernet interface, for example, aFlexE interface 1106 or anEthernet interface 1107 in FIG. 11 .

该时隙调度器1101,还用于在该解码器1102在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,确定该第一传输数据的处理时隙。Thetime slot scheduler 1101 is further configured to determine a processing time slot for the first transmission data after thedecoder 1102 decodes the first code stream data in the first transmission time slot to obtain the first transmission data.

需要说明的是,本申请中的网络芯片可以包括一个或多个时隙调度器,为每组码流数据确定传输时隙,以及为第一传输数据确定处理时隙,可以是同一个时隙调度器,也可以是不同的时隙调度器。It should be noted that the network chip in this application may include one or more time slot schedulers, which determine the transmission time slot for each set of code stream data, and determine the processing time slot for the first transmission data, which may be the same time slot The scheduler can also be a different slot scheduler.

该第一解扰器1103,可以用于在该处理时隙对该第一传输数据进行解扰,以得到解扰数据。该第一解扰器1103可以用于执行前述图4中的步骤4131。Thefirst descrambler 1103 may be configured to descramble the first transmission data in the processing time slot to obtain descrambled data. Thefirst descrambler 1103 may be used to execute theaforementioned step 4131 in FIG. 4 .

该第一转码器1104,用于在该处理时隙对该解扰数据进行转码,以得到与该第一业务接口对应的第三码流数据。该第一转码器1104可以用于执行前述图4中的步骤4132。Thefirst transcoder 1104 is configured to transcode the descrambled data in the processing time slot to obtain third code stream data corresponding to the first service interface. Thefirst transcoder 1104 can be used to execute theaforementioned step 4132 in FIG. 4 .

该第一分发器1105,用于将该第三码流数据分发至第一业务接口,即FlexE接口或以太网接口。该第一分发器1105可以用于执行前述图4中的步骤4133。Thefirst distributor 1105 is configured to distribute the third code stream data to the first service interface, that is, the FlexE interface or the Ethernet interface. Thefirst distributor 1105 can be used to execute theaforementioned step 4133 in FIG. 4 .

在本申请实施例的一种可选实施方式中,若该第一业务接口为Interlaken接口,该网络芯片还可以包括:第二业务接口、第二解扰器1110、第二转码器1108以及第三转码器1109;该第二业务接口可以是Interlaken接口,示例性地,如图11中的Interlaken接口1111。In an optional implementation manner of the embodiment of the present application, if the first service interface is an Interlaken interface, the network chip may further include: a second service interface, asecond descrambler 1110, asecond transcoder 1108, and Thethird transcoder 1109; the second service interface may be an Interlaken interface, for example, theInterlaken interface 1111 in FIG. 11 .

该第二转码器1108,用于在该解码器1102在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,对该第一传输数据进行转码,以得到预置长度的数据。该第二转码器1108具体可以用于执行前述图4中的步骤4121。Thesecond transcoder 1108 is configured to transcode the first transmission data after thedecoder 1102 decodes the first code stream data in the first transmission time slot to obtain the first transmission data, so as to obtain the predicted Set length data. Thesecond transcoder 1108 can specifically be used to execute theaforementioned step 4121 in FIG. 4 .

该第三转码器1109,用于删除该预置长度的数据中的标识数据,以得到扰码数据。该第三转码器1109具体可以用于执行前述图4中的步骤4122。其中,网络芯片可以包括一个或多个第三转码器1109,每个Interlaken接口可以对应一个第三转码器。Thethird transcoder 1109 is configured to delete the identification data in the preset length data to obtain scrambled data. Thethird transcoder 1109 can specifically be used to execute theaforementioned step 4122 in FIG. 4 . Wherein, the network chip may include one or morethird transcoders 1109, and each Interlaken interface may correspond to one third transcoder.

该第二解扰器1110,用于对该扰码数据进行解扰,以得到该Interlaken接口对应的业务数据。该第二解扰器1110具体可以用于执行前述图4中的步骤4123。其中,网络芯片可以包括一个或多个第二解扰器,每个Interlaken接口可以对应一个第二解扰器。Thesecond descrambler 1110 is configured to descramble the scrambled data to obtain service data corresponding to the Interlaken interface. Thesecond descrambler 1110 may be specifically configured to execute theaforementioned step 4123 in FIG. 4 . Wherein, the network chip may include one or more second descramblers, and each Interlaken interface may correspond to one second descrambler.

该第二业务接口,即Interlaken接口1111,用于传输该业务数据。该Interlaken接口1111的数量可以是一个,也可以是多个。The second service interface, that is, theInterlaken interface 1111, is used to transmit the service data. The number of theInterlaken interface 1111 can be one or more.

在本申请实施例的一种可选实施方式中,若该第一业务接口为FlexO接口,该网络芯片还可以包括:第三业务接口以及第二分发器1112。该第三业务接口可以是FlexO接口,示例性地,如图11中的FlexO接口1113。In an optional implementation manner of the embodiment of the present application, if the first service interface is a FlexO interface, the network chip may further include: a third service interface and asecond distributor 1112 . The third service interface may be a FlexO interface, for example, theFlexO interface 1113 in FIG. 11 .

该第二分发器1112,用于在该解码器1102在第一传输时隙对该第一码流数据进行解码得到第一传输数据之后,将该第一传输数据发送至第三业务接口,即FlexO接口1113。Thesecond distributor 1112 is configured to send the first transmission data to the third service interface after thedecoder 1102 decodes the first code stream data in the first transmission time slot to obtain the first transmission data, namelyFlexO interface 1113.

此外,还需要说明的是,第二分发器1112除了可以是将码流数据分发至FlexO接口之外,也可以是将码流数据分发至第一解扰器1103或第二转码器1102等,具体可以根据实际应用场景调整,此处并不作限定。In addition, it should be noted that, in addition to distributing the code stream data to the Flex0 interface, thesecond distributor 1112 can also distribute the code stream data to thefirst descrambler 1103 or thesecond transcoder 1102, etc. , which can be adjusted according to actual application scenarios, and is not limited here.

在本申请实施例的一种可选实施方式中,In an optional implementation manner of the embodiment of the present application,

该时隙调度器1101,具体可以用于根据预置规则确定该第一传输数据对应的该第一传输时隙,以及该第二传输数据对应的该第二传输时隙。Thetime slot scheduler 1101 may specifically be configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.

在本申请实施例的一种可选实施方式中,该时隙调度器1101,具体可以用于:In an optional implementation manner of the embodiment of this application, thetime slot scheduler 1101 can specifically be used for:

根据预置方式为该多个业务接口中每个业务接口分配传输时隙,以得到该每个业务接口对应的第传输时隙;确定该第一码流数据对应该多个业务接口中的第一业务接口,以及该第二码流数据对应该多个业务接口中的第二业务接口;根据该第一业务接口从该每个业务接口对应的传输时隙中确定该第一传输时隙,以及根据该第二业务接口从该每个业务接口对应的传输时隙中确定该第二传输时隙。Allocate a transmission time slot for each service interface in the multiple service interfaces according to a preset method, so as to obtain the first transmission time slot corresponding to each service interface; determine that the first code stream data corresponds to the first code stream data among the multiple service interfaces A service interface, and the second code stream data corresponds to the second service interface in the plurality of service interfaces; according to the first service interface, the first transmission time slot is determined from the transmission time slots corresponding to each service interface, And determining the second transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface.

在本申请实施例的一种可选实施方式中,该时隙调度器1101,具体可以用于:在接收到每组码流数据后,为每组码流数据分配传输时隙。In an optional implementation manner of the embodiment of the present application, thetime slot scheduler 1101 may specifically be configured to: allocate a transmission time slot for each group of code stream data after receiving each group of code stream data.

在本申请实施例的一种可选实施方式中,该网络芯片还包括:同步器1114。In an optional implementation manner of the embodiment of the present application, the network chip further includes: asynchronizer 1114 .

该同步器1114,用于在该第一传输时隙获取该第一码流数据中的对齐标识。Thesynchronizer 1114 is configured to obtain the alignment identifier in the first code stream data in the first transmission time slot.

该同步器1114,还用于在该第一传输时隙根据该对齐标识对该第一码流数据进行对齐,得到对齐数据。该同步在1112可以用于执行前述图4中的步骤407与步骤407。Thesynchronizer 1114 is further configured to align the first code stream data according to the alignment identifier in the first transmission time slot to obtain aligned data. The synchronization at 1112 can be used to execute theaforementioned step 407 and step 407 in FIG. 4 .

该解码器1102,具体用于在该第一传输时隙对该对齐数据进行解码,得到该第一传输数据。Thedecoder 1102 is specifically configured to decode the alignment data in the first transmission time slot to obtain the first transmission data.

在本申请实施例的一种可选实施方式中,包括:In an optional implementation manner of the embodiment of the present application, it includes:

该解码器1102可以为RS-FEC解码器。Thedecoder 1102 may be an RS-FEC decoder.

需要说明的是,前述图10提供的网络芯片与图11提供的网络芯片,除了图10与图11中所包括的器件外,还可以包括更多的器件,具体可以根据实际应用调整,本申请对此并不作限定。It should be noted that the network chip provided in Figure 10 and the network chip provided in Figure 11 may include more devices in addition to the devices included in Figure 10 and Figure 11, which can be adjusted according to actual applications. This is not limited.

本申请还提供了一种通信系统,可以包括一个或多个第一网络芯片与一个或多个第二网络芯片。该一个或多个第一网络芯片可以是前述图10中的网络芯片,可以用于执行前述图2-图9中任一实施例中涉及到的数据传输的方法的发送侧的流程。该一个或多个第二网络芯片可以是前述图11中的网络芯片,可以用于执行前述图2-图9中任一实施例中涉及到的数据传输的方法的接收侧的流程。The present application also provides a communication system, which may include one or more first network chips and one or more second network chips. The one or more first network chips may be the aforementioned network chips in FIG. 10 , and may be used to execute the flow on the sending side of the data transmission method involved in any of the embodiments in the aforementioned FIGS. 2-9 . The one or more second network chips may be the aforementioned network chips in FIG. 11 , and may be used to execute the flow on the receiving side of the data transmission method involved in any of the embodiments in the aforementioned FIGS. 2-9 .

本申请实施例还提供了一种网络芯片,包括:处理模块与通信模块,所述处理模块能执行上述提供的数据传输的方法的流程。进一步地,所述芯片还可以包括存储模块(如,存储器),所述存储模块用于存储指令,所述处理模块用于执行所述存储模块存储的指令,并且对所述存储模块中存储的指令的执行使得所述处理模块执行上述图2-图9中任一方法实施例中的方法流程。The embodiment of the present application also provides a network chip, including: a processing module and a communication module, and the processing module can execute the flow of the data transmission method provided above. Further, the chip may further include a storage module (such as a memory), the storage module is used for storing instructions, the processing module is used for executing the instructions stored in the storage module, and processing the instructions stored in the storage module Execution of the instruction causes the processing module to execute the method flow in any one of the method embodiments in FIGS. 2-9 above.

应理解,本申请实施例中提及的网络芯片可以包括中央处理单元(CentralProcessing Unit,CPU),还可以包括其他通用处理器、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the network chip mentioned in the embodiment of the present application may include a central processing unit (Central Processing Unit, CPU), and may also include other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

在本申请实施例中,对于集成了前述图10中的网络芯片或图11中的网络芯片,可以是通信芯片、或者FPGA等等,使用同一信道编码器对接入的多个业务接口对应的传输数据进行编码,可以提高信道编码器的利用率,节约逻辑资源。In the embodiment of the present application, for the integrated network chip in Figure 10 or the network chip in Figure 11, it can be a communication chip, or FPGA, etc., using the same channel encoder to correspond to multiple service interfaces accessed Encoding the transmission data can improve the utilization rate of the channel encoder and save logic resources.

还应理解,本申请中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Flectrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DR RAM)。It should also be understood that references to memory in this application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable In addition to programmable read-only memory (Flectrally EPROM, EEPROM) or flash memory. The volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DR RAM).

应注意,本申请描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.

应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,部分或全部步骤可以并行执行或先后执行,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and some or all steps may be executed in parallel or sequentially, and the execution order of each process shall be based on its functions and The internal logic is determined and should not constitute any limitation to the implementation process of the embodiment of the present application.

本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

本申请各方法实施例之间相关部分可以相互参考;各装置实施例所提供的装置用于执行对应的方法实施例所提供的方法,故各装置实施例可以参考相关的方法实施例中的相关部分进行理解。The relevant parts of the various method embodiments of the present application can be referred to each other; the devices provided by each device embodiment are used to execute the method provided by the corresponding method embodiment, so each device embodiment can refer to the related methods in the related method embodiments. partly understood.

本申请各装置实施例中给出的装置结构图仅示出了对应的装置的简化设计。在实际应用中,该装置可以包含任意数量的发射器,接收器,处理器,存储器等,以实现本申请各装置实施例中该装置所执行的功能或操作,而所有可以实现本申请的装置都在本申请的保护范围之内。The device structure diagrams given in each device embodiment of the present application only show the simplified design of the corresponding device. In practical applications, the device may contain any number of transmitters, receivers, processors, memories, etc., to realize the functions or operations performed by the device in each device embodiment of the application, and all devices that can implement the application All within the scope of protection of this application.

本申请各实施例中提供的消息/帧/指示信息、模块或单元等的名称仅为示例,可以使用其他名称,只要消息/帧/指示信息、模块或单元等的作用相同即可。The names of messages/frames/indication information, modules or units, etc. provided in various embodiments of the present application are only examples, and other names may be used as long as the functions of the messages/frames/instruction information, modules or units, etc. are the same.

在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本申请实施例和所附实施例书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。本申请中字符“/”,一般表示前后关联对象是一种“或”的关系。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the examples of this application and the appended examples are also intended to include the plural forms unless the context clearly indicates otherwise. The character "/" in this application generally indicates that the contextually related objects are an "or" relationship.

取决于语境,如在此所使用的词语“如果”或“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if" or "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关硬件来完成,所述的程序可以存储于一个设备的可读存储介质中,该程序在执行时,包括上述全部或部分步骤,所述的存储介质,如:FLASH、EEPROM等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a readable storage medium of a device. When the program is executed , including all or part of the above steps, the storage medium, such as: FLASH, EEPROM and so on.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,不同的实施例可以进行组合,以上所述仅为本申请的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何组合、修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that different embodiments can be combined, and the above descriptions are only specific embodiments of the present application. , are not intended to limit the protection scope of the present invention, and any combination, modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims (27)

Translated fromChinese
1.一种网络芯片,其特征在于,包括:信道编码器、时隙调度器以及数据分发器,其中:1. A network chip, characterized in that it comprises: a channel encoder, a time slot scheduler and a data distributor, wherein:所述时隙调度器,用于确定第一传输数据的第一传输时隙和第二传输数据的第二传输时隙,所述第一传输数据和所述第二传输数据为多个业务接口对应的多组传输数据中的任意两组传输数据;The time slot scheduler is configured to determine a first transmission time slot for the first transmission data and a second transmission time slot for the second transmission data, the first transmission data and the second transmission data are multiple service interfaces Any two sets of transmission data among the corresponding multiple sets of transmission data;所述信道编码器,用于在所述第一传输时隙对所述第一传输数据进行信道编码,得到第一码流数据,并在所述第二传输时隙对所述第二传输数据进行编码,得到第二码流数据;The channel encoder is configured to perform channel coding on the first transmission data in the first transmission time slot to obtain first code stream data, and perform channel coding on the second transmission data in the second transmission time slot Encoding is performed to obtain the second code stream data;所述数据分发器,用于将所述第一码流数据分发至与所述第一码流数据对应的接收端,以及将所述第二码流数据分发至与所述第二码流数据对应的接收端;The data distributor is configured to distribute the first code stream data to the receiving end corresponding to the first code stream data, and distribute the second code stream data to the receiving end corresponding to the second code stream data the corresponding receiver;所述数据分发器,具体用于在所述第一传输时隙将所述第一码流数据按照预置分发规则分发至对应的物理媒介适配子层PMA,以及在所述第二传输时隙将所述第二码流数据分发至所述PMA,以通过所述PMA将所述第一码流数据传输至与所述第一码流数据对应的接收端,以及将所述第二码流数据传输至与所述第二码流数据对应的接收端。The data distributor is specifically configured to distribute the first code stream data to the corresponding physical medium adaptation sublayer PMA according to a preset distribution rule during the first transmission time slot, and during the second transmission distribute the second code stream data to the PMA, so as to transmit the first code stream data to the receiving end corresponding to the first code stream data through the PMA, and transmit the second code stream data The stream data is transmitted to the receiving end corresponding to the second code stream data.2.根据权利要求1所述的网络芯片,其特征在于,所述网络芯片还包括:以太网接口或灵活以太网FlexE接口、第一转码器以及第一扰码器,其中:2. The network chip according to claim 1, wherein the network chip further comprises: an Ethernet interface or a flexible Ethernet FlexE interface, a first transcoder and a first scrambler, wherein:所述以太网接口或所述灵活以太网FlexE的接口中的任一接口,用于接收初始码流数据;Any one of the Ethernet interface or the interface of the flexible Ethernet FlexE is used to receive initial stream data;所述时隙调度器,还用于确定所述初始码流数据的处理时隙;The time slot scheduler is also used to determine the processing time slot of the initial code stream data;所述第一转码器,用于在所述处理时隙对所述初始码流数据进行转码,得到转码数据;The first transcoder is configured to transcode the initial code stream data in the processing time slot to obtain transcoded data;所述第一扰码器,用于在所述处理时隙对所述转码数据进行扰码,得到所述第一传输数据。The first scrambler is configured to scramble the transcoded data in the processing time slot to obtain the first transmission data.3.根据权利要求1所述的网络芯片,其特征在于,所述网络芯片还包括:至少一个Interlaken接口、第二转码器、第二扰码器以及第三转码器,其中:3. The network chip according to claim 1, further comprising: at least one Interlaken interface, a second transcoder, a second scrambler, and a third transcoder, wherein:所述至少一个Interlaken接口中的任一接口,用于接收输入数据;Any interface in the at least one Interlaken interface is used to receive input data;所述第二扰码器,用于对所述输入数据进行扰码,得到扰码数据;The second scrambler is configured to scramble the input data to obtain scrambled data;所述第二转码器,用于在所述扰码数据中添加标识数据,以得到预置长度的数据;The second transcoder is configured to add identification data to the scrambled data to obtain data of a preset length;所述第三转码器,用于将所述预置长度的数据进行编组,以得到所述第一传输数据。The third transcoder is configured to group the data of the preset length to obtain the first transmission data.4.根据权利要求1所述的网络芯片,其特征在于,所述网络芯片还包括: FlexO接口;4. network chip according to claim 1, is characterized in that, described network chip also comprises: FlexO interface;所述FlexO接口,用于接收所述第一传输数据。The FlexO interface is configured to receive the first transmission data.5.根据权利要求1-4中任一项所述的网络芯片,其特征在于,5. The network chip according to any one of claims 1-4, characterized in that,所述时隙调度器,具体用于根据预置规则确定所述第一传输数据对应的所述第一传输时隙,以及所述第二传输数据对应的所述第二传输时隙。The time slot scheduler is specifically configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.6.根据权利要求5所述的网络芯片,其特征在于,所述时隙调度器,具体用于:6. The network chip according to claim 5, wherein the time slot scheduler is specifically used for:根据预置方式为所述多个业务接口中每个业务接口分配传输时隙,以得到所述每个业务接口对应的传输时隙;Allocating a transmission time slot to each of the multiple service interfaces according to a preset method, so as to obtain a transmission time slot corresponding to each of the service interfaces;确定所述第一传输数据对应的第一业务接口,以及所述第二传输数据对应的第二业务接口;determining a first service interface corresponding to the first transmission data, and a second service interface corresponding to the second transmission data;根据所述第一业务接口从所述每个业务接口对应的传输时隙中确定所述第一传输时隙,以及根据所述第二业务接口从所述每个业务接口对应的传输时隙中确定所述第二传输时隙。Determining the first transmission time slot from the transmission time slots corresponding to each service interface according to the first service interface, and determining the first transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface The second transmission time slot is determined.7.根据权利要求1-4中任一项所述的网络芯片,其特征在于,所述信道编码器,具体用于:7. The network chip according to any one of claims 1-4, wherein the channel encoder is specifically used for:在所述第一传输时隙对所述第一传输数据进行码块交织分组,以得到第一预处理数据;performing code block interleaving and grouping on the first transmission data in the first transmission time slot to obtain first preprocessed data;在所述第一传输时隙对所述第一预处理数据插入对齐标识,得到第二预处理数据;Inserting an alignment mark into the first pre-processed data in the first transmission time slot to obtain second pre-processed data;在所述第一传输时隙对所述第二预处理数据进行信道编码,得到所述第一码流数据。Perform channel coding on the second preprocessed data in the first transmission time slot to obtain the first code stream data.8.根据权利要求7所述的网络芯片,其特征在于,所述信道编码器为里德所罗门前向纠错码RS-FEC编码器。8. The network chip according to claim 7, wherein the channel encoder is a Reed Solomon forward error correction code (RS-FEC) encoder.9.一种网络芯片,其特征在于,包括:解码器以及时隙调度器;9. A network chip, comprising: a decoder and a time slot scheduler;所述时隙调度器,用于确定第一码流数据对应的第一传输时隙,以及第二码流数据对应的第二传输时隙,所述第一码流数据和所述第二码流数据为多个业务接口对应的多组码流数据中的任意两组码流数据;The time slot scheduler is configured to determine the first transmission time slot corresponding to the first code stream data and the second transmission time slot corresponding to the second code stream data, the first code stream data and the second code stream data The stream data is any two sets of stream data among multiple sets of stream data corresponding to multiple service interfaces;所述解码器,用于在第一传输时隙对所述第一码流数据进行解码,得到第一传输数据,通过所述解码器在第二传输时隙对所述第二码流数据进行解码,得到第二传输数据,所述第一传输时隙与所述第二传输时隙不同;The decoder is configured to decode the first code stream data in the first transmission time slot to obtain the first transmission data, and perform the decoding on the second code stream data in the second transmission time slot by the decoder Decoding to obtain second transmission data, where the first transmission time slot is different from the second transmission time slot;所述时隙调度器,具体用于:The time slot scheduler is specifically used for:根据预置方式为所述多个业务接口中每个业务接口分配传输时隙,以得到所述每个业务接口对应的传输时隙;Allocating a transmission time slot to each of the multiple service interfaces according to a preset method, so as to obtain a transmission time slot corresponding to each of the service interfaces;确定所述第一码流数据对应所述多个业务接口中的第一业务接口,以及所述第二码流数据对应所述多个业务接口中的第二业务接口;determining that the first code stream data corresponds to a first service interface among the multiple service interfaces, and that the second code stream data corresponds to a second service interface among the multiple service interfaces;根据所述第一业务接口从所述每个业务接口对应的传输时隙中确定所述第一传输时隙,以及根据所述第二业务接口从所述每个业务接口对应的传输时隙中确定所述第二传输时隙。Determining the first transmission time slot from the transmission time slots corresponding to each service interface according to the first service interface, and determining the first transmission time slot from the transmission time slots corresponding to each service interface according to the second service interface The second transmission time slot is determined.10.根据权利要求9所述的网络芯片,其特征在于,所述网络芯片还包括:以太网接口或FlexE接口,第一解扰器、第一转码器以及第一分发器;10. The network chip according to claim 9, further comprising: an Ethernet interface or a FlexE interface, a first descrambler, a first transcoder, and a first distributor;所述时隙调度器,还用于在所述解码器在第一传输时隙对所述第一码流数据进行解码得到第一传输数据之后,确定所述第一传输数据的处理时隙;The time slot scheduler is further configured to determine a processing time slot for the first transmission data after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data;所述第一解扰器,用于在所述处理时隙对所述第一传输数据进行解扰,以得到解扰数据;The first descrambler is configured to descramble the first transmission data in the processing time slot to obtain descrambled data;所述第一转码器,用于在所述处理时隙对所述解扰数据进行转码,以得到第三码流数据;The first transcoder is configured to transcode the descrambled data in the processing time slot to obtain third code stream data;所述第一分发器,用于将所述第三码流数据分发至所述第一业务接口。The first distributor is configured to distribute the third code stream data to the first service interface.11.根据权利要求9所述的网络芯片,其特征在于,所述网络芯片还包括:至少一个Interlaken接口、第二解扰器、第二转码器以及第三转码器;11. The network chip according to claim 9, further comprising: at least one Interlaken interface, a second descrambler, a second transcoder, and a third transcoder;所述第二转码器,用于在所述解码器在第一传输时隙对所述第一码流数据进行解码得到第一传输数据之后,对所述第一传输数据进行转码,以得到预置长度的数据;The second transcoder is configured to transcode the first transmission data after the decoder decodes the first code stream data in the first transmission time slot to obtain the first transmission data, so as to Get the data of preset length;所述第三转码器,用于删除所述预置长度的数据中的标识数据,以得到扰码数据;The third transcoder is configured to delete the identification data in the data of the preset length to obtain scrambled data;所述第二解扰器,用于对所述扰码数据进行解扰,以得到业务数据;The second descrambler is configured to descramble the scrambled data to obtain service data;所述至少一个Interlaken接口中的任一接口,用于传输所述业务数据。Any interface in the at least one Interlaken interface is used to transmit the service data.12.根据权利要求9所述的网络芯片,其特征在于,所述网络芯片还包括:FlexO接口,以及第二分发器;12. The network chip according to claim 9, wherein the network chip further comprises: a FlexO interface, and a second distributor;所述第二分发器,将所述第一传输数据分发至所述FlexO接口。The second distributor distributes the first transmission data to the FlexO interface.13.根据权利要求9-12中任一项所述的网络芯片,其特征在于,13. The network chip according to any one of claims 9-12, characterized in that,所述时隙调度器,具体用于根据预置规则确定所述第一传输数据对应的所述第一传输时隙,以及所述第二传输数据对应的所述第二传输时隙。The time slot scheduler is specifically configured to determine the first transmission time slot corresponding to the first transmission data and the second transmission time slot corresponding to the second transmission data according to preset rules.14.根据权利要求9-12中任一项所述的网络芯片,其特征在于,所述网络芯片还包括:同步器;14. The network chip according to any one of claims 9-12, wherein the network chip further comprises: a synchronizer;所述同步器,用于在所述第一传输时隙获取所述第一码流数据中的对齐标识;The synchronizer is configured to acquire the alignment identifier in the first code stream data in the first transmission time slot;所述同步器,还用于在所述第一传输时隙根据所述对齐标识对所述第一码流数据进行对齐,得到对齐数据;The synchronizer is further configured to align the first code stream data according to the alignment identifier in the first transmission time slot to obtain aligned data;所述解码器,具体用于在所述第一传输时隙对所述对齐数据进行解码,得到所述第一传输数据。The decoder is specifically configured to decode the alignment data in the first transmission time slot to obtain the first transmission data.15.根据权利要求9-12中任一项所述的网络芯片,其特征在于,包括:15. The network chip according to any one of claims 9-12, comprising:所述解码器为RS-FEC解码器。The decoder is an RS-FEC decoder.16.一种数据传输的方法,其特征在于,包括:16. A method for data transmission, comprising:获取第一传输数据,以及第二传输数据,所述第一传输数据和所述第二传输数据为多个业务接口对应的多组传输数据中的任意两组传输数据;Obtaining first transmission data and second transmission data, where the first transmission data and the second transmission data are any two sets of transmission data among multiple sets of transmission data corresponding to multiple service interfaces;通过信道编码器在第一传输时隙对所述第一传输数据进行信道编码,得到第一码流数据,以及通过所述信道编码器在第二传输时隙对所述第二传输数据进行编码,得到第二码流数据,所述第一传输时隙与所述第二传输时隙为不同的时隙;Perform channel encoding on the first transmission data by a channel encoder in a first transmission time slot to obtain first code stream data, and encode the second transmission data in a second transmission time slot by the channel encoder , to obtain second code stream data, the first transmission time slot and the second transmission time slot are different time slots;将所述第一码流数据分发至所述第一码流数据对应的接收端,以及将所述第二码流数据分发至所述第二码流数据对应的接收端;Distributing the first code stream data to the receiving end corresponding to the first code stream data, and distributing the second code stream data to the receiving end corresponding to the second code stream data;所述将所述第一码流数据分发至所述第一码流数据对应的接收端,以及将所述第二码流数据分发至所述第二码流数据对应的接收端,包括:The distributing the first code stream data to the receiving end corresponding to the first code stream data, and distributing the second code stream data to the receiving end corresponding to the second code stream data include:在所述第一传输时隙,将所述第一码流数据按照预置分发规则分发至对应的物理媒介适配子层PMA,以及在所述第二传输时隙将所述第二码流数据分发至所述PMA,并通过所述PMA将所述第一码流数据传输至与所述第一码流数据对应的接收端,以及将所述第二码流数据传输至与所述第二码流数据对应的接收端。In the first transmission time slot, distribute the first code stream data to the corresponding physical medium adaptation sublayer PMA according to the preset distribution rules, and distribute the second code stream data in the second transmission time slot The data is distributed to the PMA, and the first code stream data is transmitted to the receiving end corresponding to the first code stream data through the PMA, and the second code stream data is transmitted to the receiving end corresponding to the first code stream data The receiving end corresponding to the binary stream data.17.根据权利要求16所述的方法,其特征在于,所述多个业务接口中任一接口为以太网接口或灵活以太网FlexE接口,所述获取第一传输数据,包括:17. The method according to claim 16, wherein any one of the plurality of service interfaces is an Ethernet interface or a flexible Ethernet FlexE interface, and the acquiring the first transmission data includes:接收所述以太网业务接口或FlexE接口传输的初始码流数据;receiving the initial stream data transmitted by the Ethernet service interface or the FlexE interface;确定所述初始码流数据的处理时隙;determining a processing time slot for the initial code stream data;在所述处理时隙对所述初始码流数据进行转码,得到转码数据;Transcoding the initial code stream data in the processing time slot to obtain transcoded data;在所述处理时隙对所述转码数据进行扰码,得到所述第一传输数据。Scrambling the transcoded data in the processing time slot to obtain the first transmission data.18.根据权利要求16所述的方法,其特征在于,所述多个业务接口包括至少一个高速互联Interlaken接口,则所述获取第一传输数据,包括:18. The method according to claim 16, wherein the multiple service interfaces include at least one high-speed interconnection Interlaken interface, and the acquisition of the first transmission data includes:接收所述至少一个Interlaken接口中任一接口传输的输入数据;receiving input data transmitted by any interface in the at least one Interlaken interface;对所述输入数据进行扰码,得到扰码数据;Scrambling the input data to obtain scrambled data;在所述扰码数据中添加标识数据,以得到预置长度的数据;adding identification data to the scrambled data to obtain data with a preset length;将所述预置长度的数据进行编组,以得到所述第一传输数据。grouping the data of the preset length to obtain the first transmission data.19.根据权利要求16所述的方法,其特征在于,所述多个业务接口包括至少一个灵活光传送网FlexO接口,则所述获取第一传输数据,包括:19. The method according to claim 16, wherein the plurality of service interfaces comprises at least one Flexible Optical Transport Network FlexO interface, and the acquisition of the first transmission data comprises:接收所述至少一个FlexO接口中任意一个接口发送的所述第一传输数据。receiving the first transmission data sent by any interface in the at least one FlexO interface.20.根据权利要求16-19中任一项所述的方法,其特征在于,所述第一传输时隙对所述第一传输数据进行RS-FEC编码,以得到第一码流数据,包括:20. The method according to any one of claims 16-19, wherein the first transmission time slot performs RS-FEC encoding on the first transmission data to obtain the first code stream data, including :在所述第一传输时隙对所述第一传输数据进行码块交织分组,以得到第一预处理数据;performing code block interleaving and grouping on the first transmission data in the first transmission time slot to obtain first preprocessed data;在所述第一传输时隙对所述第一预处理数据插入对齐标识,得到第二预处理数据;Inserting an alignment mark into the first pre-processed data in the first transmission time slot to obtain second pre-processed data;在所述第一传输时隙通过所述信道编码器对所述第二预处理数据进行信道编码,得到所述第一码流数据。performing channel coding on the second preprocessed data by the channel coder in the first transmission time slot to obtain the first code stream data.21.根据权利要求20所述的方法,其特征在于,所述信道编码器为里德所罗门前向纠错码RS-FEC编码器。21. The method according to claim 20, wherein the channel encoder is a Reed Solomon forward error correction code (RS-FEC) encoder.22.一种数据传输的方法,其特征在于,包括:22. A method for data transmission, comprising:获取第一码流数据,以及第二码流数据,所述第一码流数据和所述第二码流数据为多个业务接口对应的多组码流数据中的任意两组码流数据;Obtaining first code stream data and second code stream data, where the first code stream data and the second code stream data are any two sets of code stream data among multiple sets of code stream data corresponding to multiple service interfaces;通过解码器在第一传输时隙对所述第一码流数据进行解码,得到第一传输数据,通过所述解码器在第二传输时隙对所述第二码流数据进行解码,得到第二传输数据,所述第一传输时隙与所述第二传输时隙不同;The first code stream data is decoded by the decoder in the first transmission time slot to obtain the first transmission data, and the second code stream data is decoded by the decoder in the second transmission time slot to obtain the second code stream data 2. transmitting data, the first transmission time slot is different from the second transmission time slot;所述通过解码器在第一传输时隙对所述第一码流数据进行解码,得到所述第一传输数据,包括:The decoding of the first code stream data by the decoder in the first transmission time slot to obtain the first transmission data includes:在所述第一传输时隙获取所述第一码流数据中的对齐标识;Obtain the alignment identifier in the first code stream data in the first transmission time slot;在所述第一传输时隙根据所述对齐标识对所述第一码流数据进行对齐,得到对齐数据;Aligning the first code stream data according to the alignment identifier in the first transmission time slot to obtain aligned data;在所述第一传输时隙通过所述解码器对所述对齐数据进行解码,得到所述第一传输数据。Decoding the alignment data by using the decoder in the first transmission time slot to obtain the first transmission data.23.根据权利要求22所述的方法,其特征在于,若所述多个业务接口的类型包括以太网接口或FlexE接口中的任意一种,则在所述通过解码器在第一传输时隙对所述第一码流数据进行解码得到第一传输数据之后,所述方法还包括:23. The method according to claim 22, wherein if the types of the plurality of service interfaces include any one of an Ethernet interface or a FlexE interface, then in the first transmission time slot through the decoder After decoding the first code stream data to obtain the first transmission data, the method further includes:确定所述第一传输数据的处理时隙;determining a processing time slot for the first transmission data;在所述处理时隙对所述第一传输数据进行解扰,以得到解扰数据;Descrambling the first transmission data in the processing time slot to obtain descrambled data;在所述处理时隙对所述解扰数据进行转码,以得到与所述以太网接口或FlexE接口对应的第三码流数据,并向所述以太网接口或FlexE接口传输所述第三码流数据。Transcode the descrambled data in the processing time slot to obtain third code stream data corresponding to the Ethernet interface or FlexE interface, and transmit the third code stream data to the Ethernet interface or FlexE interface stream data.24.根据权利要求22所述的方法,其特征在于,若所述多个业务接口包括Interlaken接口,则在所述通过解码器在第一传输时隙对所述第一码流数据进行解码得到第一传输数据之后,所述方法还包括:24. The method according to claim 22, wherein if the multiple service interfaces include an Interlaken interface, then the first code stream data is decoded by the decoder in the first transmission time slot to obtain After the first transmission of data, the method further includes:对所述第一传输数据进行转码,以得到预置长度的数据;Transcoding the first transmission data to obtain data with a preset length;删除所述预置长度的数据中的标识数据,以得到扰码数据;Deleting the identification data in the data of the preset length to obtain scrambled data;对所述扰码数据进行解扰,以得到所述Interlaken接口对应的业务数据,并将所述业务数据传输至所述Interlaken接口。Descrambling the scrambled data to obtain service data corresponding to the Interlaken interface, and transmitting the service data to the Interlaken interface.25.根据权利要求22所述的方法,其特征在于,若所述多个业务接口包括FlexO接口,则在所述通过解码器在第一传输时隙对所述第一码流数据进行解码得到第一传输数据之后,所述方法还包括:25. The method according to claim 22, wherein if the plurality of service interfaces comprises a FlexO interface, then the first code stream data is decoded by the decoder in the first transmission time slot to obtain After the first transmission of data, the method further includes:将所述第一传输数据发送至所述FlexO接口。sending the first transmission data to the FlexO interface.26.根据权利要求22-25中任一项所述的方法,其特征在于,所述解码器为RS-FEC解码器。26. The method according to any one of claims 22-25, wherein the decoder is an RS-FEC decoder.27.一种通信系统,其特征在于,包括第一网络芯片与第二网络芯片;27. A communication system, comprising a first network chip and a second network chip;所述第一网络芯片为权利要求1-8中任一项所述的网络芯片;The first network chip is the network chip according to any one of claims 1-8;所述第二网络芯片为权利要求9-15中任一项所述的网络芯片。The second network chip is the network chip according to any one of claims 9-15.
CN201880100557.9A2018-12-282018-12-28Data transmission method, network chip and communication systemActiveCN113287266B (en)

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2018/124957WO2020133237A1 (en)2018-12-282018-12-28Data transmission method, and network chip, and communication system

Publications (2)

Publication NumberPublication Date
CN113287266A CN113287266A (en)2021-08-20
CN113287266Btrue CN113287266B (en)2023-05-05

Family

ID=71128476

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201880100557.9AActiveCN113287266B (en)2018-12-282018-12-28Data transmission method, network chip and communication system

Country Status (2)

CountryLink
CN (1)CN113287266B (en)
WO (1)WO2020133237A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115766047A (en)*2021-09-032023-03-07华为技术有限公司 A data transmission method, device, readable storage medium and chip system
CN113890827B (en)*2021-12-032022-04-15国网江苏省电力有限公司信息通信分公司 Power communication resource allocation method, device, storage medium, and electronic device
CN118487714B (en)*2023-02-142025-04-22华为技术有限公司Method, equipment and system for transmitting data in Ethernet
CN119276664A (en)*2023-07-072025-01-07华为技术有限公司 Communication method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101594539A (en)*2009-06-242009-12-02中兴通讯股份有限公司Realize method, decoder and the supervisory control system of decoder synchronous polling

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8289952B2 (en)*2005-05-252012-10-16Telefonaktiebolaget Lm Ericsson (Publ)Enhanced VoIP media flow quality by adapting speech encoding based on selected modulation and coding scheme (MCS)
US7839948B2 (en)*2005-12-022010-11-23Qualcomm IncorporatedTime slicing techniques for variable data rate encoding
KR100678156B1 (en)*2005-12-122007-02-02삼성전자주식회사 Wireless packet data transmitter and receiver and transmission and reception method
US10231254B2 (en)*2016-08-052019-03-12Nokia Technologies Oy5G cloud RAN method for symbol by symbol bit streaming
CN108809392B (en)*2017-04-262020-07-28华为技术有限公司 Data transmission method, data reception method, network device and terminal device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101594539A (en)*2009-06-242009-12-02中兴通讯股份有限公司Realize method, decoder and the supervisory control system of decoder synchronous polling

Also Published As

Publication numberPublication date
CN113287266A (en)2021-08-20
WO2020133237A1 (en)2020-07-02

Similar Documents

PublicationPublication DateTitle
US12160314B2 (en)Forward error correction (FEC) code type conversion
US11043975B2 (en)Encoding method, decoding method, apparatus, and system
CN113287266B (en)Data transmission method, network chip and communication system
EP2975858B1 (en)Method for processing data in the ethernet, physical layer chip and ethernet device
CN103875205B (en) Method and device for transmitting data
EP4228160B1 (en)Encoding method and apparatus for ethernet
CA2644491C (en)Advanced-vsb system (a-vsb)
CN107786320B (en) A method, device and network system for sending and receiving services
CN102130742B (en)Method and device for encoding and decoding of error correcting codes
WO2015032259A1 (en)Data processing method and device
WO2008052858B1 (en)Forward error correction encoding for multiple link transmission compatible with 64b/66b scrambling
MX2014013560A (en)Apparatus and method of transmitting and receiving packet in a broadcasting and communication system.
US8024558B2 (en)Method and system for providing synchronous running encoding and encryption
CA2998900C (en)Fec mechanism based on media contents
US10833710B2 (en)Bandwidth efficient FEC scheme supporting uneven levels of protection
CN111385058A (en) A method and device for data transmission
RU2646346C2 (en)Apparatus and method for transmitting and receiving forward error correction packet
US20210367710A1 (en)Apparatus and method for sending side-channel bits on an ethernet cable
CN110830153B (en)Method for receiving code block stream, method for transmitting code block stream and communication device
WO2017137436A1 (en)System and method for line coding based on bit flipping to limit the run length and balance dc power
CN110830152A (en)Method for receiving code block stream, method for transmitting code block stream and communication device
WO2022105753A1 (en)Network data encoding transmission method and apparatus
WO2024055954A1 (en)Data processing method and data processing apparatus
CN116261066A (en) A data transmission method and related equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp