CN115865277A - Data processing method and device for flexible Ethernet, storage medium and electronic equipment - Google Patents

Data processing method and device for flexible Ethernet, storage medium and electronic equipment Download PDF

Info

Publication number
CN115865277A
CN115865277A CN202211518859.2A CN202211518859A CN115865277A CN 115865277 A CN115865277 A CN 115865277A CN 202211518859 A CN202211518859 A CN 202211518859A CN 115865277 A CN115865277 A CN 115865277A
Authority
CN
China
Prior art keywords
data
data stream
output
parameters
input
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.)
Granted
Application number
CN202211518859.2A
Other languages
Chinese (zh)
Other versions
CN115865277B (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.)
Suzhou Yige Technology Co ltd
Original Assignee
Suzhou Yige Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Yige Technology Co ltd filed Critical Suzhou Yige Technology Co ltd
Priority to CN202211518859.2A priority Critical patent/CN115865277B/en
Publication of CN115865277A publication Critical patent/CN115865277A/en
Application granted granted Critical
Publication of CN115865277B publication Critical patent/CN115865277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a data processing method and device for a flexible Ethernet, a storage medium and electronic equipment. The method comprises the following steps: receiving a data stream of the flexible Ethernet through a data interface, wherein data stream parameters are stored in the data interface and used for identifying the input specification and the output specification of the data stream; coding the data stream according to the input specification of the data stream parameters to obtain a plurality of coding blocks with preset sizes, wherein the input specification corresponds to the coding mode of the data stream; and storing the coding block into a target memory, and outputting the output data of the coding block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable. The problems that in the related technology, when the data interface of the flexible Ethernet is connected with different levels, different input and output transmission parameters need to be considered, and special design is carried out, so that the reusability of the data interface for processing data is poor, and a scene is limited are solved.

Description

Data processing method and device for flexible Ethernet, storage medium and electronic equipment
Technical Field
The present application relates to the field of data communication, and in particular, to a data processing method and apparatus, a storage medium, and an electronic device for a flexible ethernet.
Background
The flexible ethernet Interface FlexE Client is a legacy Interface corresponding to an ethernet Network, and is an ethernet data stream based on a Media Access Control (MAC) rate, and is used for interfacing UNIs (User Network interfaces) with different rates. The FlexE1.0 protocol provides that each flexible ethernet interface FlexE Client has its own independent media independent interface logic above the FlexE Shim logic layer.
Media independent interfaces of different rates have different data frame formats. For example, a 10G ethernet media independent interface (XGMII) splits 32-bit data into parallel 4 data lanes. And the 40G/100G Ethernet media independent interface (CGMCC II) divides 64-bit data into parallel 8 data channels. Meanwhile, flexeClinet can also be an nX25G Ethernet data stream, however, an nX25G (25G/50G/75G/150G) Ethernet media independent interface is not defined in the protocol standard.
The FlexE1.0 protocol specifies that the user data format that the time slot in FlexE Shim needs to carry is a 66B code block encoded with 64B/66B, whereas the encoding of a 10G/25G ethernet pair is 0x2D, 0x33, 0x55, 0x66 more than 40G/100G ethernet. If a set of interfaces with different bit widths and different coding logics is redesigned for each Client, the design process is very complicated and is not favorable for flexible switching.
Aiming at the problems that in the prior art, when a data interface of a flexible Ethernet is connected with different levels, different input and output transmission parameters need to be considered, and special design is carried out, so that the reusability of the data interface for processing data is poor, and a scene is limited, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a storage medium, and an electronic device for processing data of a flexible ethernet, so as to solve the problems of poor reusability of data processing by a data interface and limited scenarios caused by special design of a data interface of a flexible ethernet in the related art, which needs to consider different input and output transmission parameters when connecting different hierarchies.
In order to achieve the above object, according to an aspect of the present application, there is provided a data processing method for a flexible ethernet network, the method including: receiving a data stream of a flexible Ethernet through a data interface, wherein the data interface stores data stream parameters which are used for identifying an input specification and an output specification of the data stream; coding the data stream according to the input specification of the data stream parameters to obtain a plurality of coding blocks with preset sizes, wherein the input specification corresponds to the coding mode of the data stream; and storing the coding block into a target memory, and outputting the output data of the coding block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable.
Optionally, encoding the data stream according to the input specification of the data stream parameter, and obtaining multiple encoded blocks of a preset size includes: acquiring an input specification of the data stream parameters, wherein the input specification comprises target parameters, and the target parameters are used for determining the encoding mode of the data stream; determining the coding mode of the data stream according to the value range of the value of the target parameter, wherein different value ranges of the target parameter correspond to different coding modes; and coding the data stream according to the determined coding mode to obtain a plurality of coding blocks with preset sizes.
Optionally, the target parameter of the data stream is fixed, and after determining the encoding mode of the data stream according to the value range of the value of the target parameter, the method further includes: selecting a corresponding encoder according to the determined encoding mode; the encoder is coupled to a data path of the data stream from a plurality of encoders via a multiplexer, wherein the data path is used for transmitting the data stream and the encoder is used for encoding the data stream.
Optionally, storing the encoded block in a target memory, and outputting output data of the encoded block through the target memory includes: according to the data flow parameters, caching the coding blocks to the target memory, wherein the target memory is set to input the coding blocks meeting the input specification and output the coding blocks meeting the output specification; and reading and outputting the output data of the coding block from the target memory, wherein the output data conforms to the output specification.
Optionally, the target memory is a memory and is connected to the data flow path; the input and output bit width of the memory is variable, and the frequency is variable; the input specification includes: inputting bit width and frequency; the output specification includes an output encoding format, an output bit width, and an output frequency.
Optionally, after receiving the data stream of the flexible ethernet, the method further includes: receiving input specification parameters in response to a specification parameter input operation, wherein the specification parameters include at least one of: inputting bit width, inputting frequency, outputting coding format, outputting bit width and outputting frequency; and taking the specification parameters as parameters of the input specification and/or the output specification.
Optionally, receiving the data stream of the flexible ethernet through the data interface includes: receiving a data stream sent by a media access control layer of the flexible ethernet through an unrelated media interface, wherein the data interface is the unrelated media interface, and the media access control layer sends the data stream through the unrelated media interface; and identifying a target field of the data stream, and determining data stream parameters of the data stream.
In order to achieve the above object, according to another aspect of the present application, there is provided a data processing method of a flexible ethernet network, including: the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a data stream of the flexible Ethernet through a data interface, the data interface stores data stream parameters, and the data stream parameters are used for identifying the input specification and the output specification of the data stream; the encoding module is used for encoding the data stream according to the input specification of the data stream parameters to obtain a plurality of encoding blocks with preset sizes, wherein the input specification corresponds to the encoding mode of the data stream; and the output module is used for storing the coding block into a target memory and outputting the output data of the coding block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium for storing a program, wherein the program performs the data processing method of the flexible ethernet network according to any one of the above.
To achieve the above object, according to another aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the data processing method of the flexible ethernet network according to any one of the above.
The method comprises the steps of receiving data streams of the flexible Ethernet through a data interface, selecting a corresponding coding mode according to input specifications of data stream parameters, and coding the data streams to obtain a plurality of coding blocks with preset sizes; and according to the output specification of the data stream parameters, caching and outputting the plurality of coding blocks by using a target memory with variable input and output bit widths. By the mode, the purposes of processing and outputting data streams with different specifications according to the requirements of a receiving end are achieved, the technical effects of improving the reusability of the data interface and expanding the use scene of the data interface are achieved, and the problems that when the data interface of the flexible Ethernet in the related technology is connected with different levels, the reusability of the data interface for processing data is poor and the scene is limited due to the fact that the data interface needs to consider different input and output transmission parameters and carry out special design are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart of a data processing method of a flexible ethernet network according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a flexible data interface provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a data processing apparatus for a flexible Ethernet network according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a data processing method for a flexible ethernet network according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S101, receiving a data stream of the flexible Ethernet through a data interface, wherein the data interface stores data stream parameters, and the data stream parameters are used for identifying the input specification and the output specification of the data stream;
step S102, coding a data stream according to an input specification of a data stream parameter to obtain a plurality of coding blocks with preset sizes, wherein the input specification corresponds to a coding mode of the data stream;
and step S103, storing the coding blocks into a target memory, and outputting output data of the coding blocks through the target memory, wherein the obtained output data conform to an output specification, and input and output specification parameters of the target memory are variable.
The steps receive the data flow of the flexible Ethernet through the data interface, select the corresponding coding mode according to the input specification of the data flow parameter, code the data flow, get multiple code blocks of the predetermined size; and according to the output specification of the data stream parameters, caching and outputting the plurality of coding blocks by using a target memory with variable input and output bit widths. By the mode, the purposes of processing and outputting data streams with different specifications according to the requirements of the receiving end are achieved, the technical effects of improving the reusability of the data interface and expanding the use scenes of the data interface are achieved, and the problems that the reusability of the data interface for processing data is poor and the scenes are limited due to the fact that the data interface of the flexible Ethernet in the related technology needs to consider different input and output transmission parameters and is specially designed when different levels are connected are solved.
The execution subject of the above steps may be flexible ethernet, or specifically, a data interface of flexible ethernet. The flexible ethernet and its data interface may be configured on a processor, a calculator or a controller for data processing to perform the data processing operations in the above steps, such as step S102 to step S103.
The flexible ethernet is disposed between the MAC layer and the PHY layer for signal data conversion between the MAC layer and the PHY layer. In the process from the MAC layer to the PHY layer, the data stream is converted into a physical pulse signal, otherwise referred to as a digital signal. The data unit is sent to the physical layer first, and data transmission is carried out through a virtual channel of the physical layer.
The transmission of the data stream between different layers needs to be adaptively converted. For example, the data format of the MAC layer and the data format of the PHY layer are different, and the data bit width of the data transmission is also different. This requires the flexible ethernet to provide a data interface to allow data conversion between different layers.
In the prior art, for the above situation, when the flexible ethernet creates the data interface, a dedicated data interface is created by writing according to different layers to which the data interface is docked and data formats of the different layers. Such data interfaces have poor reusability and limited use scenarios.
For this reason, the present embodiment provides a data processing method for flexible ethernet, which encodes and adjusts bit width of data according to requirements by integrating multiple encoders and using a target memory with variable input bit width and output bit width.
The data stream may be understood as a data stream format output by a data layer of the flexible ethernet interface. For example, in a scenario of a data flow from the MAC layer to the PHY layer, the data flow may be a data flow output by the MAC layer. In a PHY layer to MAC layer data flow scenario, the data flow may be a data flow output by the PHY layer.
It should be noted that, in some scenarios, a received next layer may also have a certain requirement on an input data format, so that a data stream output by an upper layer does not necessarily meet the requirement on data input by a next layer. A coordination sublayer may be provided to coordinate the data stream output from the previous layer to the data stream meeting the data requirement input from the next layer.
However, the processing of the above-mentioned coordination sublayer is completely different from the processing of the data interface, and cannot replace the data interface. For example, in the scenario of the data stream from the MAC layer to the PHY layer, the coordination sublayer RS is responsible for converting the data stream of the MAC into a format unrelated to the media interface, so that the data stream can be transmitted to the data interface for processing, and then transmitted to the PHY layer through the data interface.
The data flow parameters, that is, the attribute parameters of the data flow, may include an input specification of the data flow, for example, a data flow of a 10G ethernet network, or a data flow of a 100G ethernet network. The data stream parameters can be input by human beings, and can also be obtained by data extraction and identification.
According to the data stream parameters, the corresponding processing mode of the data stream can be determined, including how to encode, how large bit width is output, and the like. In this embodiment, in the flexible ethernet scenario, data conversion between the MAC layer and the PHY layer is performed to perform data encoding and bit width adjustment.
The data coding can determine a coding mode through data stream parameters, and code the data stream to obtain a plurality of coding blocks with preset sizes. And storing the plurality of coding blocks into a target memory, and outputting the corresponding bit width by the target memory. Thereby completing the conversion of the data interface to the data.
The target Memory may be a Memory with a variable input/output bit width.
Optionally, the encoding the data stream according to the input specification of the data stream parameter to obtain a plurality of encoded blocks with a preset size includes: acquiring an input specification of data stream parameters, wherein the input specification comprises target parameters, and the target parameters are used for determining a coding mode of the data stream; determining the coding mode of the data stream according to the value range of the value of the target parameter, wherein different value ranges of the target parameter correspond to different coding modes; and coding the data stream according to the determined coding mode to obtain a plurality of coding blocks with preset sizes.
As described above, the processing method corresponding to the data stream can be determined according to the target parameters in the data stream parameter input specification. For encoding, encoders for encoding data streams of different specifications are different. Therefore, a plurality of encoders can be integrated in the data interface, and the value range of each target parameter corresponds to one encoding mode, that is, the encoder corresponds to the data stream parameter.
And determining the coding mode of the data stream according to the value range of the value of the target parameter, and coding the data stream according to the determined coding mode to obtain a plurality of coding blocks with preset sizes.
Optionally, the target parameter of the data stream is fixed, and after determining the encoding mode of the data stream according to the value range of the value of the target parameter, the method further includes: selecting a corresponding encoder according to the determined encoding mode; the encoder is coupled, via a multiplexer, from a plurality of encoders to a data path of a data stream, wherein the data path is used for transmitting the data stream and the encoder is used for encoding the data stream.
The target parameters of the data stream usually do not change, and when the data stream is encoded, the encoder can be selected to encode the data stream according to the encoding mode corresponding to the parameters of the data stream, so as to obtain a plurality of encoding blocks of a preset size. In the case of encoding by an encoder, the encoder needs to be connected to the data path of the data stream in advance, so that the data stream can be encoded by transmitting the data stream to the encoder.
Optionally, storing the encoded block in a target memory, and outputting output data of the encoded block through the target memory includes: according to the data flow parameters, caching the coding blocks to a target memory, wherein the target memory is set to input the coding blocks meeting the input specification and output the coding blocks meeting the output specification; and reading and outputting the output data of the coding block from the target memory, wherein the output data conforms to the output specification.
The data stream parameters also include data stream parameters required by the output specification, i.e., the module to which the data stream flows. In the context of the MAC layer to PHY layer data interface, the output specification may be a parameter required for the PHY layer input. The output parameters mainly include bit width.
And storing the plurality of coding blocks output by the encoder into a target memory according to the output specification, and outputting the plurality of stored coding blocks according to the bit width required by the output specification by utilizing the variable performance of the input bit width and the output bit width of the target memory. And completing bit width adjustment of the coding blocks of the data stream. The stored plurality of coding blocks can also be output according to the frequency required by the output specification by utilizing the variable input frequency and output frequency performance of the target memory. Frequency adjustment for the encoded blocks of the data stream is completed.
Optionally, the target memory is a memory and is connected to the data stream path; the bit width and the frequency of the input and the output of the memory are variable; the input specification includes: input bit width and input frequency; the output specification includes an output encoding format, an output bit width, and an output frequency.
It should be noted that, a plurality of encoders are arranged in the data interface, and the number of the memory memories may be one or a small number of encoders, so that the encoders are connected with the memory memories through the multiplexer, when the corresponding encoders perform encoding, the encoders are communicated with the memory memories through the multiplexer, and a plurality of encoded blocks that have been encoded are input into the memory memories to perform bit width frequency adjustment. The memory can also output the coding block according to the output coding format in the output specification.
Optionally, after receiving the data stream of the flexible ethernet, the method further includes: receiving input specification parameters in response to a specification parameter input operation, wherein the specification parameters include at least one of: inputting bit width, inputting frequency, outputting coding format, outputting bit width and outputting frequency; the specification parameters are used as parameters of the input specification and/or the output specification.
Since the data stream itself can carry its own source and flow direction, the corresponding output specification can also be determined by the flow direction purpose carried by the data stream. The specification parameters may be input by a user to determine an input specification and an output specification of the data stream parameters.
And under the condition that the target memory is a memory, reading the coding block with the corresponding bit width from the memory according to the output parameter, outputting and outputting to the PHY layer.
Optionally, receiving the data stream of the flexible ethernet through the data interface includes: receiving a data stream sent by a media access control layer of the flexible Ethernet through an irrelevant media interface, wherein the data interface is the irrelevant media interface, and the media access control layer sends the data stream through the irrelevant media interface; and identifying a target field of the data stream, and determining data stream parameters of the data stream.
The above-mentioned receiving of the data stream of the flexible ethernet may be understood as a data stream that is received and sent to the data interface of the flexible ethernet by the coordination layer of the flexible ethernet. The coordination sublayer may convert the format and specification of the data stream to obtain a data stream that conforms to the input parameters. In the case of the MAC layer to the PHY layer in this embodiment, the coordination sublayer is responsible for converting the data stream of the MAC into the media independent interface format and transmitting the data stream to the PHY through the media independent interface. That is, the data stream transmitted by the media access control layer of the flexible ethernet is received through the unrelated media interface.
And identifying a target field of the data stream, and determining data stream parameters of the data stream. The data stream parameters are stored on the data stream itself, marked by the target field. By identifying the target field in the data stream, the position of the data stream parameters in the data stream can be determined, and the data stream parameters can be further extracted and determined.
The coordination sublayer may be configured according to actual situations. In some scenarios, the coordination layer may be provided before the data interface input, independent of the other layers, including the MAC layer or the PHY layer, and exist as a single sub-layer. In other scenarios, the coordination layer may also be in the MAC layer, or the PHY layer. The main consideration is the location of the data interface and the coordination layer, which needs to be in front of the data interface input.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than the order illustrated.
It should be noted that the present application also provides an alternative embodiment, which is described in detail below.
In the scenario of the FlexE Client flexible ethernet data Interface, the FlexE Client is a traditional Interface corresponding to the ethernet Network, and is an ethernet data stream based on the rate of the MAC layer (media access control layer) for interfacing UNIs (User Network interfaces) with different rates, which is generally generated by the following sources:
it may be generated internally by the system, such as a network processing unit NPU (embedded neural network processor), and the rate of the data stream is the rate of the determined Client MAC layer.
Data is sourced from a 10G/25G/40G/50G/100G/200G/400G PHY (PHY is a device that operates the OSI model physical layer one ethernet PHY layer may be a chip that can send and receive ethernet data frames (frames) which typically lack the advanced functionality of ake-on-LAN or Boot ROM provided by NIC (network interface controller) chips.
And a Client data interface from a Flexe Shim logic layer can also be used. The FlexE Shim is located between the MAC layer and the PHY layer, and is a core processing logic layer of FlexE. The method comprises the steps that a Flexe Client data stream of an MAC layer is mapped to a PHY layer of a Flexe Group for transmission; and also supports FlexE Client data streams that reflect data transmitted by the PHY layer within the FlexE Group to the MAC layer. FlexE Shim can bundle, subrate, channelize the bandwidth of the intra-group PHY layer based on the group.
The FlexE1.0 protocol specifies that the user data format that the time slots in FlexE Shim need to carry is a 66B code block encoded with 64B/66B, whereas the 10G/25G ethernet pair is encoded with four block types 0x2D, 0x33, 0x55, 0x66 more than 40G/100G ethernet. If a set of interfaces with different bit widths and different coding logics is reset for each Client, the setting process is very complicated and is not favorable for flexible switching.
In order to solve the above technical problem, in the present embodiment, an original implementation protocol is improved by setting a flexible interface for a FlexE Client (flexible ethernet Client) between a PCS (physical coding sublayer) and an MAC, so that the flexible interface can receive data transmitted by an MAC layer through unrelated media interfaces with different formats, receive data streams with different frequencies and different bit widths, and perform different coding for different Client clients, thereby improving the reusability and the realizability of the setting.
One Channel needs a flexible interface to bear one Client data stream, the size of the data stream can be 10G/25G/40G/50G/100G and the like, N Client data streams can be converted by the flexible interfaces of N channels, and 66B code blocks which accord with the Flexe data-bearing standard are output.
The data stream of each user is cached by a storage unit (Fifo/RAM), the output frequency and bit width of the Memory are specified through parameter setting, and each user data is divided into 5G/25G granularity required by Flexe and then output.
Fig. 2 is a schematic diagram of a flexible data interface provided according to an embodiment of the present application, and as shown in fig. 2, a flexible interface is provided at a PCS (physical coding sublayer) and a MAC interface, txc is transmission data, txd is a control signal, 64 is a transmission bit width specified by the unrelated medium interface, a is the number of used unrelated medium interfaces, e is a used clock frequency, 66 is a transmission bit width output by the interface, b is the number of used unrelated medium interfaces, and f is an output clock frequency.
The RS is a coordination sublayer and is responsible for converting a data stream of the MAC into a format of an unrelated medium Interface and transmitting the format of the unrelated medium Interface into the PHY through the unrelated medium Interface, the Flexe Interface module is a flexible FlexeClient Interface and consists of a coding module Decode, a multiplexer MUX and a Memory unit, the coding module is used for coding the data into a 66B code block, the multiplexer selects correct coded data according to parameters and outputs the coded data to the Memory, the Memory selects different input bit widths and output bit widths according to the parameters, and the parameters specifically relate to the formats of the different unrelated medium interfaces, the bit widths of the input data and the frequency used by the input data.
For example, if the parameter of a channel is 10G ethernet, the input data is transmitted through the XGMII interface, the input bit width is identified to be 32 bits, DDR (using clock double-edge delay) transmission is adopted, the encoded input data is output as 66-bit code blocks with 5G granularity, and if the parameter is 100G ethernet, the input data is identified to be transmitted through the CGMII interface, the input bit width is 64 bits, the clock rising edge transmission is adopted, the output is 20 66-bit code blocks with 5G granularity, and the definition of FlexE is to achieve decoupling of the MAC layer and the PHY layer, and data in different formats of unrelated medium interfaces need to be received.
The parameters can be manually defined and preset, and can also be obtained through hardware identification. For example, if a data stream of 10G ethernet is identified and XGMII interface is used, the parameters are the parameters corresponding to the 10G ethernet, and if preset, the identification process is not needed.
In the embodiment, a Memory (a Memory unit such as Fifo/RAM) with variable input and output bit widths and different coding logics are used for receiving data from different formats and converting the data into a 66B code block with granularity of 5G/25G required by Flexe Shim. And controlling the input and output bit width of the Memory and controlling the multiplexer to select proper coding logic by using the set parameters.
According to the embodiment, different data interfaces do not need to be arranged in the PHY layer according to different clients, and data streams with different frequencies and different bit widths can be received only by changing corresponding parameters and coded into the 66B code block carried by the Flexe time slot, so that a complex and repeated interface is avoided, and the reusability and the realizability of the data interface are improved.
Fig. 3 is a schematic diagram of a data processing apparatus for a flexible ethernet network according to an embodiment of the present application, and as shown in fig. 3, an embodiment of the present application further provides a data processing apparatus for a flexible ethernet network, it should be noted that the data processing apparatus for a flexible ethernet network according to the embodiment of the present application may be used to execute the data processing method for a flexible ethernet network according to the embodiment of the present application. The following describes a data processing apparatus of a flexible ethernet network according to an embodiment of the present application. The device comprises: the receiving module 31, the encoding module 32, and the output module 33 will be described in detail below.
A receiving module 31, configured to receive a data stream of the flexible ethernet through a data interface, where the data interface stores data stream parameters, and the data stream parameters are used to identify an input specification and an output specification of the data stream; a coding module 32, connected to the receiving module 31, for coding the data stream according to the input specification of the data stream parameters to obtain a plurality of coding blocks with a preset size, where the input specification corresponds to the coding mode of the data stream; and an output module 33, connected to the encoding module 32, for storing the encoded block in the target memory and outputting the output data of the encoded block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable.
The data processing device of the flexible Ethernet receives the data stream of the flexible Ethernet through the data interface, selects a corresponding coding mode according to the input specification of the data stream parameters, and codes the data stream to obtain a plurality of coding blocks with preset sizes; and according to the output specification of the data stream parameters, caching and outputting the plurality of coding blocks by using a target memory with variable input and output bit widths. By the mode, the purposes of processing and outputting data streams with different specifications according to the requirements of the receiving end are achieved, the technical effects of improving the reusability of the data interface and expanding the use scenes of the data interface are achieved, and the problems that the reusability of the data interface for processing data is poor and the scenes are limited due to the fact that the data interface of the flexible Ethernet in the related technology needs to consider different input and output transmission parameters and is specially designed when different levels are connected are solved.
The data processing device of the flexible ethernet comprises a processor and a memory, wherein the receiving module 31, the encoding module 32, the output module 33, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that a user cannot determine whether the non-capacitive screen originally-matched capacitive pen is matched or not when the non-capacitive screen originally-matched capacitive pen is used in the related technology is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory in the present embodiment may be a nonvolatile memory (FRAM)
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the data processing method for flexible ethernet.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data processing method of the flexible Ethernet is executed when the program runs.
Fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, an embodiment of the present application provides an electronic device 40, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the program to implement the steps of the data processing method for flexible ethernet:
the device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing any of the above method steps when executed on a data processing device for flexible ethernet.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable flexible ethernet data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable flexible ethernet data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable flexible ethernet data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for data processing in a flexible ethernet network, the method comprising:
receiving a data stream of a flexible Ethernet through a data interface, wherein the data interface stores data stream parameters which are used for identifying an input specification and an output specification of the data stream;
coding the data stream according to the input specification of the data stream parameters to obtain a plurality of coding blocks with preset sizes, wherein the input specification corresponds to the coding mode of the data stream;
and storing the coding block into a target memory, and outputting the output data of the coding block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable.
2. The method of claim 1, wherein encoding the data stream according to the input specification of the data stream parameters to obtain a plurality of encoded blocks with a predetermined size comprises:
acquiring an input specification of the data stream parameters, wherein the input specification comprises target parameters, and the target parameters are used for determining the encoding mode of the data stream;
determining the coding mode of the data stream according to the value range of the value of the target parameter, wherein different value ranges of the target parameter correspond to different coding modes;
and coding the data stream according to the determined coding mode to obtain a plurality of coding blocks with preset sizes.
3. The method of claim 2, wherein the target parameter of the data stream is fixed, and after determining the encoding mode of the data stream according to the value range of the target parameter, the method further comprises:
selecting a corresponding encoder according to the determined encoding mode;
the encoder is coupled to a data path of the data stream from a plurality of encoders via a multiplexer, wherein the data path is used for transmitting the data stream and the encoder is used for encoding the data stream.
4. The method of claim 3, wherein storing the encoded block into a target memory, and wherein outputting the encoded block's output data via the target memory comprises:
according to the data flow parameters, caching the coding blocks to the target memory, wherein the target memory is set to input the coding blocks meeting the input specification and output the coding blocks meeting the output specification;
and reading and outputting the output data of the coding block from the target memory, wherein the output data conforms to the output specification.
5. The method of claim 4, wherein the target memory is a memory, connected to the path of the data stream;
the input and output bit width of the memory is variable, and the frequency is variable;
the input specification includes: inputting bit width and frequency;
the output specification includes an output encoding format, an output bit width, and an output frequency.
6. The method of claim 5, wherein after receiving the data stream for the flexible Ethernet, the method further comprises:
receiving input specification parameters in response to a specification parameter input operation, wherein the specification parameters include at least one of: inputting bit width, inputting frequency, outputting coding format, outputting bit width and outputting frequency;
and taking the specification parameters as parameters of the input specification and/or the output specification.
7. The method of claim 1, wherein receiving a data stream for a flexible ethernet over a data interface comprises:
receiving a data stream sent by a media access control layer of the flexible ethernet through an unrelated media interface, wherein the data interface is the unrelated media interface, and the media access control layer sends the data stream through the unrelated media interface;
and identifying a target field of the data stream, and determining data stream parameters of the data stream.
8. A data processing method for a flexible ethernet network, comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a data stream of the flexible Ethernet through a data interface, the data interface stores data stream parameters, and the data stream parameters are used for identifying the input specification and the output specification of the data stream;
the encoding module is used for encoding the data stream according to the input specification of the data stream parameters to obtain a plurality of encoding blocks with preset sizes, wherein the input specification corresponds to the encoding mode of the data stream;
and the output module is used for storing the coding block into a target memory and outputting the output data of the coding block through the target memory, wherein the obtained output data conforms to the output specification, and the input and output specification parameters of the target memory are variable.
9. A computer-readable storage medium for storing a program, wherein the program executes the data processing method of the flexible ethernet network according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of flexible ethernet of any one of claims 1 to 7.
CN202211518859.2A 2022-11-30 2022-11-30 Flexible Ethernet data processing method and device, storage medium and electronic equipment Active CN115865277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211518859.2A CN115865277B (en) 2022-11-30 2022-11-30 Flexible Ethernet data processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211518859.2A CN115865277B (en) 2022-11-30 2022-11-30 Flexible Ethernet data processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115865277A true CN115865277A (en) 2023-03-28
CN115865277B CN115865277B (en) 2023-12-15

Family

ID=85668218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211518859.2A Active CN115865277B (en) 2022-11-30 2022-11-30 Flexible Ethernet data processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115865277B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996590A (en) * 2023-07-03 2023-11-03 芯启源(上海)半导体科技有限公司 Ethernet speed reducer of FPGA prototype verification platform and data transmission method
CN117155372A (en) * 2023-09-06 2023-12-01 苏州异格技术有限公司 Input/output driver structure, input/output control method and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191277A1 (en) * 2013-09-06 2016-06-30 Huawei Technologies Co.,Ltd. Data processing method and apparatus
US20180013511A1 (en) * 2016-07-07 2018-01-11 Infinera Corp. Flexe gmpls signaling extensions
US20190319742A1 (en) * 2016-12-27 2019-10-17 Huawei Technologies Co., Ltd. Radio fronthaul interface signal transmission method, network device, and system
WO2020024721A1 (en) * 2018-08-03 2020-02-06 中兴通讯股份有限公司 Service transmission method, device, and computer storage medium
WO2022227640A1 (en) * 2021-04-29 2022-11-03 华为技术有限公司 Data processing method for flexible ethernet, and related apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191277A1 (en) * 2013-09-06 2016-06-30 Huawei Technologies Co.,Ltd. Data processing method and apparatus
US20180013511A1 (en) * 2016-07-07 2018-01-11 Infinera Corp. Flexe gmpls signaling extensions
US20190319742A1 (en) * 2016-12-27 2019-10-17 Huawei Technologies Co., Ltd. Radio fronthaul interface signal transmission method, network device, and system
WO2020024721A1 (en) * 2018-08-03 2020-02-06 中兴通讯股份有限公司 Service transmission method, device, and computer storage medium
WO2022227640A1 (en) * 2021-04-29 2022-11-03 华为技术有限公司 Data processing method for flexible ethernet, and related apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
易准;: "400 Gbit/s WDM技术方案及应用场景分析", 电信快报, no. 06 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996590A (en) * 2023-07-03 2023-11-03 芯启源(上海)半导体科技有限公司 Ethernet speed reducer of FPGA prototype verification platform and data transmission method
CN116996590B (en) * 2023-07-03 2024-04-05 芯启源(上海)半导体科技有限公司 Ethernet speed reducer of FPGA prototype verification platform and data transmission method
CN117155372A (en) * 2023-09-06 2023-12-01 苏州异格技术有限公司 Input/output driver structure, input/output control method and communication system
CN117155372B (en) * 2023-09-06 2024-02-06 苏州异格技术有限公司 Input/output driver structure, input/output control method and communication system

Also Published As

Publication number Publication date
CN115865277B (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN115865277A (en) Data processing method and device for flexible Ethernet, storage medium and electronic equipment
CN111767143B (en) Transaction data processing method, device, equipment and system
CN101309258A (en) Distributing and receiving method and device of high-speed Ethernet network medium irrelevant interface
US20210304443A1 (en) Point Cloud Encoding and Decoding Method and Apparatus
JP2020532167A (en) Transmission block size identification method, equipment and devices
CN108092739A (en) The transmission method and device of business
EP4135438A1 (en) Resource allocation method, device, apparatus, and storage medium
CN105207794A (en) Statistics counting equipment and realization method thereof, and system with statistics counting equipment
CN112714082A (en) Ethernet chip for SV and GOOSE communication
CN111193622A (en) Asymmetric configuration management method, device and equipment and readable storage medium
US9282041B2 (en) Congestion profiling of computer network devices
CN102568605B (en) System bus error detection and error correction method and NAND FLASH controller
CN111586752B (en) Configuration method and device of time slot container
CN109271108B (en) Memory control device and data storage equipment
CN113971148A (en) PCIE real-time network card data transmission method and device based on linux real-time operating system
CN109474554B (en) PR-ASK modulation method and device
CN110633564B (en) File generation method and device
CN105574292A (en) Method for achieving multi-channel any-bandwidth packet sending based on dynamic arrays
CN111405293A (en) Video transmission method and device
CN106817205A (en) Data in special physical data channel dispatching method and device
CN114338843B (en) Intelligent coding system of wireless communication protocol
CN115941792A (en) Method and device for processing data block of flexible Ethernet and storage medium
WO2019047348A1 (en) Data sending method and receiving method based on audio interface
CN111158588B (en) Double-rate control method and system
CN117915397B (en) Method, device and storage medium for transmitting telemetry transport frame based on virtual channel

Legal Events

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