WO2022187993A1 - 数据处理方法、设备及数据传输系统 - Google Patents

数据处理方法、设备及数据传输系统 Download PDF

Info

Publication number
WO2022187993A1
WO2022187993A1 PCT/CN2021/079507 CN2021079507W WO2022187993A1 WO 2022187993 A1 WO2022187993 A1 WO 2022187993A1 CN 2021079507 W CN2021079507 W CN 2021079507W WO 2022187993 A1 WO2022187993 A1 WO 2022187993A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
data
indication
correction
error detection
Prior art date
Application number
PCT/CN2021/079507
Other languages
English (en)
French (fr)
Inventor
聂耳
郭健
王坤
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21929476.6A priority Critical patent/EP4283893A4/en
Priority to CN202180095346.2A priority patent/CN116941200A/zh
Priority to PCT/CN2021/079507 priority patent/WO2022187993A1/zh
Publication of WO2022187993A1 publication Critical patent/WO2022187993A1/zh
Priority to US18/462,497 priority patent/US20230418704A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0023Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
    • H04L1/0025Transmission of mode-switching indication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a data processing method, device and data transmission system.
  • the transmitting end uses forward error correction (FEC) mode to encode the data to be transmitted, and the receiving end correspondingly uses the FEC mode to decode and correct the received data, thereby reducing the bit error rate of the data.
  • FEC forward error correction
  • bit error ratio BER
  • BER is an index to measure the degree of data error.
  • the present application provides a data processing method, equipment and data transmission system.
  • the technical solution is as follows:
  • a data processing method includes: a first device first obtains a first state parameter of a data link between the first device and a second device, and performs multiple detection and correction according to the first state parameter.
  • the first mode is determined in the wrong mode.
  • the first device sends the first indication to the second device, and uses the first mode to decode the data.
  • the first indication is used to instruct the second device to use the first mode to encode the data.
  • the first device may determine the first mode according to the acquired first state parameter of the data link. Afterwards, the first device may instruct the second device to use the first mode for encoding, and the first device to use the first mode for decoding, thereby implementing error detection and correction on the transmission data.
  • the first device and the second device can support multiple error detection and correction modes, and can determine the adopted error detection and correction mode according to the state parameter of the data link, so that the application of error detection and correction technology is more convenient flexible.
  • the multiple error detection and correction modes are in one-to-one correspondence with multiple parameter ranges
  • the first device determines the first mode among the multiple error detection and correction modes according to the state information, including: the first device determines that among the multiple parameter ranges, The first parameter range where the first state parameter is located. It is determined that the error detection and correction mode corresponding to the first parameter range is the first mode.
  • Different parameter ranges correspond to different error detection and correction modes, so that the error detection and correction mode selected during data transmission is more appropriate, and will not cause waste of error correction performance or insufficient error correction capability.
  • the first device may acquire the second state parameter of the data link.
  • the first device may determine the second parameter range in which the second state parameter is located among the multiple parameter ranges, and determine that the error detection and correction mode corresponding to the second parameter range is the second mode .
  • the first device may send a second indication to the second device, where the second indication is used to instruct the second device to use the second mode to encode the data.
  • the first device switches the first mode to the second mode, and uses the second mode to decode data.
  • the second state parameter of the data link When the second state parameter of the data link is outside the range of the first parameter, it indicates that the currently used error detection and correction mode does not match the state of the data link.
  • the first device switches the currently used first mode to the second mode that matches the state of the current data link, which can ensure that the data error correction capability is sufficient, and the error correction capability will not be wasted.
  • the first device may receive a response of the second indication sent by the second device, where the response of the second indication is used to indicate whether the second device is allowed to use the second mode to decode the data. to encode.
  • the first device switches the first mode to the second mode when the response of the second instruction is used to instruct the second device to allow the use of the second mode.
  • the second device Before switching the error detection and correction mode, the second device needs to negotiate with the first device to ensure that both parties are allowed to use the error detection and correction mode, and the flexibility is better.
  • the first device may receive the first capability information sent by the second device, where the first capability information is used to indicate that the second device supports error detection and correction mode. After that, the first device may determine multiple error detection and correction modes according to the first capability information and the error detection and correction modes supported by the first device. The multiple error detection and correction modes belong to the error detection and correction modes supported by both the first device and the second device.
  • the first device determines a plurality of error detection and correction modes supported by both parties according to the indication of the capability information of the second device, so as to ensure that no error occurs when selecting an error detection and correction mode in the subsequent negotiation, and to ensure that the first device is based on the status of the data link.
  • the mode determined by the parameter is supported by both the first device and the second device.
  • the first device may receive a response of the first indication sent by the second device before decoding the data in the first mode, where the response of the first indication is used to indicate whether the second device allows the data to be decoded in the first mode. to encode.
  • the first device may use the first mode to decode the data when the response of the first instruction is used to instruct the second device to allow the first mode to be used.
  • the first device Only when the second device allows to use the first mode to encode the data, the first device will use the first mode to decode the data, to ensure that the modes used for encoding and decoding are consistent.
  • the first device may receive a message including the first verification information sent by the second device. Afterwards, the first device may acquire the first state parameter according to the first verification information.
  • the first device Before transmitting the service data, the first device detects the first state parameter of the current data link by transmitting a message carrying the first verification information.
  • the first device may receive encoded data sent by the second device and obtained by encoding the data in the first mode, where the encoded data carries the second check information. Afterwards, the first device may decode the encoded data in the first mode, and obtain the second state parameter according to the second check information carried in the encoded data.
  • the first device detects the second state parameter in the process of transmitting the service data by using the second check information carried in the code stream of the service data.
  • the first device may receive a message including the first verification information sent by the second device, so that the first device can Obtain the first state parameter according to the first verification information.
  • the first device may also receive a message including first capability information sent by the second device before determining the first mode among the plurality of error detection and correction modes according to the first state parameter, where the first capability information is used to indicate that the second device supports error detection and correction mode.
  • the first device may determine multiple error detection and correction modes according to the first capability information and the error detection and correction modes supported by the first device. The multiple error detection and correction modes belong to the error detection and correction modes supported by both the first device and the second device.
  • the first device may receive a message including a response of the first indication sent by the second device, and the response of the first indication is used to indicate whether the second device allows the data to be decoded in the first mode. coding. So that the first device can use the first mode to decode data when the response of the first instruction is used to instruct the second device to allow the first mode to be used.
  • the first device may send a message including the first indication to the second device.
  • the first device may also send a message including the second indication to the second device.
  • the first device may also receive a message including a response of the second indication sent by the second device.
  • the message includes: a capability field, a control field and a check field
  • the capability field is used to carry the first capability information
  • the control field is used to carry the first indication, the response to the first indication, the second indication or the response to the second indication
  • the check field is used to carry the first check information.
  • the first verification information, the first capability information, the first indication, the response to the first indication, the second indication or the response to the second indication can all be carried in the message for transmission, and the format of the message used to carry the above content can be identical. By using messages in the same format, the complexity of reading the messages when the first device and the second device negotiate can be reduced.
  • the message includes: a training code stream block TSB (training set block, TSB) message.
  • TSB training code stream block
  • the first device and the second device may be devices using the PCIE technology, and the TSB message transmitted in the link training phase carries the first check information, the first capability information, the first indication, the response to the first indication, the second indication or The information such as the response of the second instruction can reduce the complexity of information interaction.
  • the first state parameter includes: a bit error rate before correction.
  • the error detection and correction mode includes an FEC mode.
  • another data processing method includes: the second device receives a first indication sent by the first device, where the first indication is used to instruct the second device to use the first mode to encode data.
  • the second device uses the first mode to encode the data according to the first instruction.
  • the second device uses the first mode to encode the data according to the instruction of the first device, to ensure that the encoding mode and the decoding mode are consistent.
  • the second device may receive a second indication sent by the first device, where the second indication is used to instruct the second device to encode the data in the second mode.
  • the second device may switch the first mode to the second mode and use the second mode to encode data.
  • the second device uses the second mode to encode the data according to the instruction of the first device, to ensure that the encoding mode and the decoding mode are consistent.
  • the second device may determine, according to the mode selection condition, whether to allow the data to be encoded in the second mode.
  • the second device may send a second indicated response to the first device, where the second indicated response is used to indicate whether the second device is allowed to use the second mode to encode data.
  • the second device may switch the first mode to the second mode when it is determined that the encoding of the data in the second mode is allowed.
  • the second device needs to select the error detection and correction mode used when encoding the data according to the actual data link conditions.
  • the handover is only made when the conditions of the data link allow the second mode to be used.
  • the second device may send first capability information to the first device before encoding the data in the second mode, where the first capability information is used to indicate an error detection and correction mode supported by the second device.
  • the second device informs the first device of the error detection and correction mode supported by itself, ensuring that the error detection and correction mode determined by the first device is an error detection and correction mode supported by both parties, and ensures that no error occurs when selecting an error detection and correction mode in subsequent negotiation.
  • the second device may determine, according to the mode selection condition, whether to allow the first mode to be used to encode the data. Afterwards, the second device may send a response to the first indication to the first device, where the response to the first indication is used to indicate whether the second device is allowed to use the first mode to encode data. Further, the second device may use the first mode to encode the data when it is determined that the first mode is allowed to be used to encode the data.
  • the second device needs to select the error detection and correction mode used when encoding the data according to the actual data link conditions.
  • Data is encoded in the first mode only if the conditions of the data link allow the first mode to be used.
  • whether to allow the first mode to be used needs to be informed to the first device to avoid inconsistency between the mode used for encoding and the mode used for decoding.
  • the second device may send a message including the first verification information to the first device.
  • the second device sends a message including the first check information to the first device, which is used to measure the status parameter of the current data link.
  • the second device may send the encoded data obtained by encoding the data in the first mode to the first device after the first device encodes the data in the first mode, and the encoded data carries the second check information.
  • the second device When transmitting the service data, the second device carries the second check information in the encoded data, which is used to measure the state parameter of the data link when transmitting the service data.
  • the second device may send a message including the first verification information to the first device.
  • the second device may also send a message including first capability information to the first device before receiving the first indication sent by the first device, where the first capability information is used to indicate an error detection and correction mode supported by the second device.
  • the second device may also, before encoding the data in the first mode, determine whether to allow encoding of the data in the first mode according to the mode selection condition, and send a message including a response of the first indication to the first device.
  • the indicated response is used to indicate whether the second device is allowed to use the first mode to encode the data.
  • the second device may also use the first mode to encode the data when it is determined that the first mode is allowed to be used to encode the data.
  • the second device may also receive a message including the first indication sent by the first device.
  • the second device may also receive a message including the second indication sent by the first device.
  • the second device may send a message including the response of the first indication to the first device.
  • the message includes: a capability field, a control field and a check field, the capability field is used to carry the first capability information, and the control field is used to carry the first indication, the response to the first indication, the second indication or the response to the second indication,
  • the check field is used to carry the first check information.
  • the message includes: a TSB message.
  • the first state parameter includes: a bit error rate before correction.
  • the error detection and correction mode includes an FEC mode.
  • a data processing apparatus which is applied to a first device.
  • the apparatus includes: various modules for executing any of the data processing methods provided in the first aspect.
  • another data processing apparatus is provided, which is applied to a second device.
  • the apparatus includes: various modules for executing any one of the data processing methods provided in the second aspect.
  • the data processing apparatus includes: a processor and a memory, where the processor is configured to execute a program stored in the memory to implement any data processing method provided in the first aspect above.
  • the data processing apparatus includes: a processor and a memory, where the processor is configured to execute a program stored in the memory to implement any data processing method provided in the second aspect above.
  • a data transmission system in a seventh aspect, includes: a first device and a second device.
  • the first device is the data processing apparatus provided in the third aspect, or the data processing apparatus provided in the fifth aspect.
  • the second device is the data processing apparatus provided in the fourth aspect, or the data processing apparatus provided in the sixth aspect.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is made to execute any one of the data processing methods provided in the first aspect above, or Any data processing method provided in the second aspect above.
  • a ninth aspect provides a computer program product comprising instructions, which, when the computer program product is run on a computer, causes the computer to execute any one of the data processing methods provided in the above-mentioned first aspect, or any one of the above-mentioned second aspects. data processing method.
  • FIG. 1 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a data stream provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a format of an AM field provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another data processing apparatus provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another data processing apparatus provided by an embodiment of the present application.
  • a data transmission system may generally include a data link for transmitting data and devices at both ends of the data link, wherein the device at one end of the data link is the data sending end, and the device at the other end is the data receiving end.
  • the devices at both ends of the data link can be the sender and receiver of each other, that is, the device at one end can be both the sender and the receiver, and the device at the other end can be both the sender and the receiver. Can be the receiver.
  • FIG. 1 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
  • the data transmission system may include a first device 01 and a second device 02 , and the first device 01 and the second device A data link exists between devices 02.
  • the first device 01 sends data to the second device 02
  • the first device 01 is the sending end
  • the second device 02 is the receiving end.
  • the second device 02 sends data to the first device 01
  • the second device 02 is the sending end
  • the first device 01 is the receiving end.
  • the data transmitted in the data link may have bit errors.
  • the data signal sent by the sending end is "0", but the data signal received by the receiving end is "1", which indicates that there is a bit error in the transmitted data.
  • the transmitting end may introduce an error correction code when encoding data, and correspondingly, the receiving end uses the corresponding error correction technology to decode, which can reduce the data error rate.
  • the FEC mode is a widely used error correction technology.
  • the sender can use the FEC mode to increase the redundant information of the data when encoding the data, so that the receiver can use the redundant information after a bit error occurs in the data transmission.
  • the erroneous data is recovered, thereby realizing the effect of reducing the data error rate.
  • the FEC mode can provide gain for the data received by the receiving end, so that the bit error rate of the decoded data is reduced.
  • the transmitting end may add a forward error correction code when encoding the data to be transmitted, and then send the encoded data to the receiving end;
  • the data is decoded according to the FEC mode to obtain the data to be sent by the sender.
  • a forward error correction code may be used to correct the error data, thereby reducing the bit error rate of the decoded data.
  • FEC mode there are two FEC modes: interleaving and non-interleaving.
  • the transmitting end device and the receiving end device carry a request for selecting interleaving and non-interleaving FEC mode in the transmission training code stream to negotiate the FEC mode. choose.
  • this solution requires that the transmitting end device and the receiving end device must support two FEC modes, interleaving and non-interleaving, otherwise the negotiation between the transmitting end device and the receiving end device will fail, and the FEC mode cannot be used for data transmission.
  • the sending end device and the receiving end device negotiate the FEC mode, they cannot be changed, and the flexibility is poor.
  • FIG. 2 is a flowchart of a data processing method provided by an embodiment of the present application, and the method can be applied to a data transmission system provided by an embodiment of the present application (the data transmission system shown in FIG. 1 ), as shown in FIG. 2 ,
  • the method may include the following steps.
  • Step 201 The second device sends first capability information to the first device, where the first capability information is used to indicate an error detection and correction mode supported by the second device.
  • the error detection and correction technology can detect and correct the errors generated in the process of data transmission, so as to reduce the error rate.
  • the introduction of error detection and correction technology into the data transmission system reduces the bit error rate, but also increases the overhead of the data transmission system. Therefore, different error detection and correction modes can be configured for the first device and the second device according to the difference in the bit error rate of the data link between the first device and the second device. Different error detection and correction modes have different error correction capabilities, and error detection and correction modes with different error correction capabilities are applied to data links with different bit error rates. Therefore, when the bit error rate of the data link is low, the error detection and correction mode with strong error correction capability is applied, which causes waste of error correction performance and brings unnecessary delay and power consumption.
  • both the first device and the second device may be configured to support multiple error detection and correction modes.
  • the multiple error detection and correction modes have different error detection and correction capabilities, so that different error detection and correction modes can be selected according to the requirements of different error correction capabilities.
  • the second device may send the first capability information to the first device through the data link, where the first capability information may be used to indicate an error detection and correction mode supported by the second device.
  • Step 202 The first device determines multiple error detection and correction modes according to the first capability information and the error detection and correction modes supported by the first device.
  • the multiple error detection and correction modes belong to the error detection and correction modes supported by both the first device and the second device.
  • the error detection and correction modes supported by the first device may include: mode 1, mode 2, and mode 3
  • the error detection and correction modes supported by the second device may include: mode 0, mode 1, mode 2, and mode 3.
  • the first device may determine the error detection and correction mode supported by the second device according to the indication of the first capability information, and determine multiple error detection and correction modes supported by both the first device and the second device in combination with the error detection and correction mode supported by itself.
  • the modes are: Mode 1, Mode 2 and Mode 3.
  • Step 203 The first device acquires the first state parameter of the data link between the first device and the second device.
  • the second device may send a message including the first verification information to the first device.
  • the first device After receiving the message, the first device can perform verification according to the first verification information, and can obtain the first state parameter according to the verification result.
  • the first state parameter is a parameter reflecting the state of the data link between the first device and the second device.
  • the first state parameter may include: a bit error rate before correction.
  • the pre-correction bit error rate refers to the bit error rate of the data received by the receiver before error correction is performed.
  • the first check information may be obtained through data check, and the check method may be a cyclic redundancy check (cyclic redundancy check, CRC) or a parity check.
  • Step 204 The first device determines a first mode among multiple error detection and correction modes according to the first state parameter.
  • the first device may be configured with multiple parameter ranges, and may be configured with a corresponding relationship between the parameter ranges and error detection and correction modes, and the multiple error detection and correction modes may be in one-to-one correspondence with the multiple parameter ranges.
  • the first device may determine a first parameter range in which the first state parameter is located in multiple parameter ranges, and may further determine an error detection and correction mode corresponding to the first parameter range as the first mode.
  • different error detection and correction modes may be divided according to different pre-correction bit error rate ranges, and multiple error detection and correction modes may be in one-to-one correspondence with multiple pre-correction bit error rate ranges. Therefore, as the data receiving end, the first device can select an error detection and correction mode for decoding according to the range of the acquired value of the pre-correction error rate.
  • Step 205 The first device sends a first indication to the second device, where the first indication is used to instruct the second device to use the first mode to encode data.
  • the second device is the data sending end.
  • the receiving end sends a first instruction to the sending end, instructing the sending end (the second device) to perform encoding according to the error detection and correction mode (ie, the first mode) selected by the decoding of the receiving end, to ensure that the encoding and decoding methods are the same.
  • the error detection and correction mode ie, the first mode
  • the first indication may directly instruct the second device to use the first mode to encode the data, for example, the content of the first indication is: the encoding mode is the first mode.
  • the first indication may not directly indicate the first mode that the second device needs to use to encode the data, and the content of the first indication may be: the decoding mode is the first mode.
  • the second device needs to select the same first mode for encoding, thereby realizing indirect indication.
  • Step 206 The second device determines, according to the mode selection condition, whether to allow the first mode to be used to encode the data.
  • the second device may be configured with a mode selection condition, and the mode selection condition may include: a selection condition based on the length, bandwidth, data transmission rate, and/or temperature of the device, etc. of the data link, which is not limited in this embodiment of the present application.
  • the mode selection conditions include: when the data transmission rate is above 64GT/s, error detection and correction modes 2 and 3 are allowed, and when the data transmission rate is 64GT/s and below, error detection and correction modes 0 and 1 are allowed. Assuming that the first mode is error detection and correction mode 0, if the current data transmission rate is above 64GT/s, the second device is not allowed to use the first mode to encode data; if the current data transmission rate is 64GT/s and below, then The second device allows data to be encoded in the first mode.
  • the second device After receiving the first instruction sent by the first device, the second device needs to determine whether the second device allows the first mode to be used to encode data according to the mode selection condition.
  • Step 207 The second device sends a response to the first indication to the first device, where the response to the first indication is used to indicate whether the second device is allowed to use the first mode to encode data.
  • the second device may send a response of the first indication to the first device, and the response is the result of the judgment made by the second device.
  • the response of the first indication may be a "allow” response
  • the second device does not allow the first mode to be used to encode the data
  • the first The indicated response may be a "reject” response
  • Step 208 When the second device determines that the first mode is allowed to be used to encode the data, the second device uses the first mode to encode the data.
  • the second device may use the first mode to encode the data before sending the data, and then send the encoded data to the first device.
  • Step 209 When the response of the first indication is used to indicate that the second device is allowed to use the first mode, the first device decodes the data by using the first mode.
  • the first device can use the first mode to decode the received data after determining that the second device is allowed to use the first mode for encoding according to the response of the second instruction, which ensures the matching between the decoding mode and the encoding mode. .
  • steps 201 to 209 are the first stage of the data processing method provided by this embodiment of the application.
  • the first stage no service data transmission is performed between the first device and the second device, and the first device Determine the first mode through negotiation with the second device.
  • the second stage of the data processing method provided by the embodiment of the present application is entered to start the transmission of service data, so that the first device and the second device start to work in the first mode at the same time to ensure the encoding mode of the service data sender. It is consistent with the decoding mode of the receiving end.
  • the first device and the second device provided in this embodiment of the present application may be devices using the PCIE technology, and the above-mentioned first stage may be a link training stage of the first device and the second device.
  • Step 210 The first device acquires the second state parameter of the data link.
  • the first device and the second device After the first device and the second device have determined to adopt the first mode in the first stage, they enter the second stage to start the transmission of service data.
  • the first device can obtain the second state parameter of the data link during the process of service data transmission.
  • the second state parameter reference may be made to the foregoing first state parameter, which is not described in detail in this embodiment of the present application.
  • the interference on the data link may change, or the temperature of the equipment and lines transmitting data may change, which may cause the status parameters of the data link to change, making the error detection and correction mode currently used. (ie the first mode) does not match the scope in which the current state parameter is located.
  • the mismatch between the error detection and correction mode and the range of the current state parameter may lead to an increase in the bit error rate of the transmitted data, or the problem of excess error correction performance.
  • the second state parameter as the pre-correction bit error rate as an example
  • the pre-correction bit error rate currently obtained by the first device is greater than the maximum value of the pre-correction bit error rate range corresponding to the first mode
  • the gain provided is insufficient, which will increase the bit error rate of the decoded data.
  • the pre-correction bit error rate currently obtained by the first device is smaller than the minimum value of the range of pre-correction bit error rates corresponding to the first mode, then using the first mode for encoding and decoding will result in excess error correction performance and unnecessary overhead.
  • the first device may receive encoded data sent by the second device and obtained by encoding the data in the first mode, where the encoded data may carry the second check information.
  • the first device may use the first mode to decode the encoded data, and obtain the second state parameter according to the second check information carried in the encoded data.
  • the second device may periodically insert an alignment mark (Alignment Mark, AM) into the data stream when sending the encoded data obtained by encoding the data in the first mode to the first device. ), and carry the second verification information in the AM, the first device can perform verification according to the second verification information after receiving the AM, and count the pre-correction bit error rate of the current data link accordingly.
  • AM Alignment Mark
  • the data to be transmitted may be cut into a plurality of data blocks, and AM is added after each data block, and the AM carries the check information of the data block.
  • FIG. 3 is a schematic structural diagram of a data code stream. As shown in FIG. 3 , AM0, AM1 and AM2 can all carry the check information of their previous data blocks.
  • FIG. 4 is a schematic diagram of the format of an AM field.
  • the AM field may include 20 bytes (byte), and may be divided into 4 subfields in units of 5 bytes (as shown in FIG. 3 ). A, B, C, D 4 subfields shown).
  • the formats of the four subfields may be the same, each subfield may include a Unique Marker (UM) field and a Unique Programmable (UP) field, the UM field may include UM0 and UM1, and UM0 and UM1 occupy 2 bytes, and the UP field occupies one byte.
  • UM Unique Marker
  • UP Unique Programmable
  • the UM0 and UM1 fields in the AM field can be coded with an error detection and correction code (such as a BCH code), and the error detection capability of the error detection and correction code can be used to count the error conditions of the AM field.
  • an error detection and correction code such as a BCH code
  • the UP field in the AM field stores the verification information. Since the AM field is interspersed in the transmitted data, the verification information is to verify the data between two adjacent AM fields (such as CRC check) generated. It should be noted that the verification information generated after verifying a piece of data can be inserted into the UP field (including the UP field in each subfield) in the AM field after the piece of data. The receiving end can check the verification information carried in the UP field in the AM field to realize the detection of the bit error rate before correction.
  • Step 211 When the second state parameter is outside the first parameter range, the first device determines the second parameter range in which the second state parameter is located among the multiple parameter ranges.
  • the first device When the first device detects that the second state parameter is outside the range of the first parameter, it indicates that the second state parameter does not match the currently used first mode. The first device needs to determine the second parameter range in which the second state parameter is located.
  • the first device When the first device detects that the second state parameter is within the range of the first parameter, it indicates that the second state parameter matches the currently used first mode, and can continue to use the first mode for error detection and correction.
  • Step 212 The first device determines that the error detection and correction mode corresponding to the second parameter range is the second mode.
  • the first device determines the error detection and correction mode corresponding to the second parameter range where the second state parameter is located as the second mode.
  • Step 213 The first device sends a second indication to the second device, where the second indication is used to instruct the second device to use the second mode to encode data.
  • the first device sends a second indication to instruct the second device to use an error detection and correction mode (ie, the second mode) matching the current link state for encoding.
  • Step 214 The second device determines, according to the mode selection condition, whether to allow the data to be encoded in the second mode.
  • step 214 For the content of step 214, reference may be made to the relevant description of step 206, which will not be repeated here.
  • Step 215 The second device sends a response to the second indication to the first device, where the response to the second indication is used to indicate whether the second device is allowed to use the second mode to encode data.
  • the second device may send a response of the second indication to the first device, and the response is the result of the judgment made by the second device.
  • the response is the result of the judgment made by the second device.
  • Step 216 when the second device determines that the second mode is allowed to be used to encode the data, it switches the first mode to the second mode, and uses the second mode to encode the data.
  • the second device When the second device determines that the second mode is allowed to encode the data, it can switch the error detection and correction mode currently used in encoding the data from the first mode to the second mode to match the current state of the data link. Afterwards, the data can be encoded using the second mode, and the encoded data can be sent to the first device.
  • Step 217 When the response of the second instruction is used to instruct the second device to allow the second mode to be used to encode the data, the first device switches the first mode to the second mode, and uses the second mode to decode the data.
  • the first device determines that the second device allows to use the second mode to encode the data, that is, the second mode can be used to decode the received data to ensure that the decoding mode matches the encoding mode.
  • the first device detects that the current link state parameter does not match the first mode (that is, when step 211 is executed), it needs to suspend the service transmission of data. After that, the first device and the second device need to negotiate and determine a new error detection and correction mode (ie, the second mode) before continuing to transmit service data (ie, after step 217 ).
  • the stage where the first device and the second device negotiate and determine a new error detection and correction mode is similar to the first stage. If the first device and the second device are devices using PCIE technology, then this stage can be called the data link. The retrain stage.
  • an embodiment of the present application provides a data processing method.
  • the first device can determine an error detection and correction mode supported by both parties according to the first capability information sent by the second device, and the first device is further configured with a detection and correction mode.
  • the corresponding relationship between the error mode and the first state parameter of the data link enables the first device to determine the first mode according to the acquired first state parameter of the data link.
  • the first device may instruct the second device to use the first mode for encoding, and the first device to use the first mode for decoding, thereby implementing error detection and correction on the transmission data.
  • the first device and the second device can support multiple error detection and correction modes, and can determine the adopted error detection and correction mode according to the state parameter of the data link, so that the application of error detection and correction technology is more convenient flexible.
  • the first device can also detect the second state parameter of the data link in the process of data transmission, and when the second state parameter does not match the first mode, the first device The mode is switched to the second mode.
  • the error detection and correction mode is switched according to the state of the current data link, and the flexibility is stronger, which is beneficial to improve the performance of the data transmission system.
  • step 203 if the first state parameter is not within the parameter ranges corresponding to the multiple error detection and correction modes, the first device cannot determine the first mode among the multiple error detection and correction modes. In this case, the first device may determine a bypass mode, indicating that the first device chooses not to use the error detection and correction mode.
  • the first device can determine the bypass mode. It should be noted that, in this case, since the bit error rate before correction is very small, there is no need to use error detection and correction technology when transmitting data.
  • the first device determines the bypass mode
  • the first indication is correspondingly used to instruct the second device to use the bypass mode encoding. If the second device allows encoding in the bypass mode, the second device does not use the error detection and correction mode for encoding, and the first device does not use the error detection and correction mode for decoding.
  • the first device may also determine the bypass mode in step 212. Therefore, the second instruction is correspondingly used to instruct the second device to switch the first mode to the bypass mode. If the second device allows encoding in the bypass mode, the subsequent second device will no longer use the error detection and correction mode for encoding, The first device also no longer uses the error detection and correction mode for decoding.
  • the above embodiments of the present application take the first device as the receiving end and the second device as the sending end as an example.
  • the first device can also serve as the sending end and the second device can also serve as the receiving end at the same time. Therefore, the first device may also execute the method executed by the second device in the foregoing embodiment, and the second device may also execute the method executed by the first device in the foregoing embodiment. This embodiment of the present application does not limit this.
  • the error detection and correction modes used may be different.
  • the error detection and correction mode used by the first device to encode the data before sending the data may be different from the error detection and correction mode used to decode the received data.
  • the process of negotiating the error detection and correction mode adopted by the first device and the second device for sending data is independent of the process of negotiating the error detection and correction mode adopted by the first device and the second device for receiving data.
  • the gain provided by the error detection and correction technology for the transmitted data can be independently adjusted in the two data transmission directions.
  • the first capability information, the first indication, the response to the first indication, the second indication, and the response to the second indication transmitted between the first device and the second device in the above embodiment can also be carried in the transmitted in the message.
  • the formats of the messages for carrying the first verification information, the first capability information, the first indication, the response to the first indication, the second indication, and the response to the second indication may be the same. In other words, all of these messages may include fields for carrying the first verification information, capability information, indication, and indicated response. When the device transmits the first verification information, capability information, indication or indicated response, only The corresponding fields in the message need to carry valid information.
  • the message may include: a capability field, a control field and a check field
  • the capability field may be used to carry the first capability information
  • the control field may be used to carry the first indication, the response to the first indication, the second indication or the first indication
  • the check field may be used to carry the first check information.
  • the check field may be located after the capability field and the control field, and the first check information carried by the check field may be obtained by checking the capability field and the control field.
  • the message may be a training code stream block message transmitted during the link training stage.
  • the TSB message may include an FEC capability (capability, CAP) field (that is, the above-mentioned capability field), and the FEC capability field may be used to carry the first Capability information, thereby indicating the FEC mode (including encoding mode and decoding mode) supported by the first device.
  • FEC capability Capability, CAP
  • Table 1 is an explanation of the format of a FEC CAP field provided by this application.
  • the first 4 bits of the FEC capability field can be used to indicate the encoding mode supported by the second device, for example, the first bit (Bit 0) is used to indicate: whether the second device supports the FEC mode 0 for encoding, in Table 1, Bit 0 is used to indicate that the second device supports FEC mode 0 for encoding (FEC Mode 0 Coder support) as an example; the second bit (Bit 1) is used to indicate: whether the second device supports Encoding in FEC Mode 1 (FEC Mode 1 Coder support), in Table 1, Bit 1 is used to indicate that the second device supports encoding in FEC Mode 1 (FEC Mode 1 Coder support) as an example; the third bit (Bit 2) Used to indicate: whether the second device supports encoding in FEC mode 2 (FEC Mode 2 Coder support), in Table 1, Bit 2 is used to indicate that the second device supports encoding in FEC mode 2 (FEC Mode 2 Coder support) as an example; The fourth bit (Bit 3) is used to indicate whether the second device supports the FEC mode
  • the second device can function as both a sending end and a receiving end, the second device can also carry its own decoding capability information in the sent first capability information.
  • the last 4 bits of the FEC capability field may be used to indicate the decoding mode supported by the second device.
  • the fifth bit (Bit 4) is used to indicate whether the second device supports FEC mode 0 for decoding (FEC Mode 0 Encoder support).
  • Bit 4 is used to indicate that the second device supports FEC mode 0 for decoding.
  • the sixth bit (Bit 5) is used to indicate: whether the second device supports FEC Mode 1 for decoding (FEC Mode 1 Encoder support), in Table 1, Bit 5 is used for Instruct the second device to support FEC mode 1 for decoding (FEC Mode 1 Encoder support) as an example;
  • the seventh bit (Bit 6) is used to indicate whether the second device supports FEC mode 2 for decoding (FEC Mode 2 Encoder support) , in Table 1, Bit 6 is used to indicate that the second device supports FEC mode 2 for decoding (FEC Mode 2 Encoder support) as an example;
  • the eighth bit (Bit 7) is used to indicate: whether the second device supports FEC mode 3 Perform decoding (FEC Mode 3 Encoder support). In Table 1, Bit 7 is used to indicate that the second device supports FEC Mode 3 for decoding (FEC Mode 3 Encoder support) as an example.
  • the TSB message may also include a FEC mode control (Mode Control) field (that is, the above-mentioned control field), and the FEC mode control field can be used to carry instructions (such as the first indication or the second indication) and the response to the indication (eg, the response to the first indication or the response to the second indication).
  • FEC mode control field can be used to carry instructions (such as the first indication or the second indication) and the response to the indication (eg, the response to the first indication or the response to the second indication).
  • Table 2 is an explanation of the FEC mode control field.
  • the FEC mode control field can include 8 bits, and the first 3 bits can be used to indicate the indication sent by the first device, which is used to indicate the first The mode that the device expects the second device to adopt; the fourth bit can be used to indicate the response to the instruction sent by the second device, to indicate whether the second device allows the mode indicated by the first instruction or the second instruction; the fifth Bits up to the 8th can be reserved bits and do not represent any information.
  • the first 3 bits can represent different indications when they have different values.
  • the binary number "000" indicates that the mode selected by the first device is the bypass mode (Encoder Bypass), that is, the FEC mode is not used for encoding.
  • FEC encoding mode 0 FEC coder Mode 0
  • FEC coder Mode 1 FEC coder Mode 1
  • FEC coder Mode 2 FEC coder Mode 2
  • FEC coder Mode 3 FEC coder Mode 3
  • FEC encoding mode 4 which is not limited in this embodiment of the present application.
  • the response of the indication indicated by the fourth bit in Table 2 is: reject FEC mode control (FEC mode control Reject), that is, it means that the second device is not allowed to adopt the mode indicated by the first device.
  • FEC mode control Reject reject FEC mode control
  • the 5th to 8th bits in Table 2 are currently reserved bits (Reserved).
  • 3 bits are used to represent the indication sent by the first device.
  • 4 or 5 bits can also be used to represent the indication sent by the first device. .
  • the first 4 or 5 bits can be used to represent the instructions sent by the first device.
  • Ground, the 5th or 6th bit is used to represent the response of the indication sent by the second device. It may be adjusted according to the actual situation, which is not limited in this embodiment of the present application.
  • the aforementioned FEC capability field and FEC mode control field are located in different bits in the TSB message.
  • the FEC capability field is located in the first 8 bits of the TSB message
  • the FEC mode control field is located in the 9th to 16th bits.
  • the order of the FEC capability field and the FEC mode control field may also be reversed, which is not limited in this embodiment of the present application.
  • the 17th and 18th bits in the TSB message may be the above-mentioned check fields, which are used to carry check information for the FEC capability field and the FEC mode control field.
  • the 17th bit can be used to carry the check information for the first 8 bits of the TSB message
  • the 18th bit can be used to carry the check information for the 9th to 16th bits of the TSB message. check information.
  • the verification information may also be carried in other manners, which are not limited in this embodiment of the present application.
  • the verification information carried in the verification field is the first verification information described above.
  • FIG. 5 is a schematic structural diagram of a data processing apparatus 50 provided by an embodiment of the present application, and the data processing apparatus 50 may be applied to a first device.
  • the data processing apparatus 50 may include: a first obtaining module 501 , a first determining module 502 , a first sending module 503 and a first decoding module 504 .
  • the first obtaining module 501 is configured to obtain the first state parameter of the data link between the first device and the second device.
  • the first determination module 502 is configured to determine the first mode among multiple error detection and correction modes according to the first state parameter.
  • the first sending module 503 is configured to send a first indication to the second device, where the first indication is used to instruct the second device to use the first mode to encode data.
  • the first decoding module 504 is configured to decode the data in the first mode.
  • the multiple error detection and correction modes are in one-to-one correspondence with multiple parameter ranges
  • the first determination module 502 is configured to determine, among the multiple parameter ranges, the first parameter range where the first state parameter is located, and then determine the first parameter range.
  • the corresponding error detection and correction mode is the first mode.
  • the data processing device 50 may further include:
  • the second obtaining module (not shown in FIG. 5 ) is configured to obtain the second state parameter of the data link after the data is decoded in the first mode.
  • the second determination module (not shown in FIG. 5 ) is configured to determine, when the second state parameter is outside the first parameter range, the second parameter range in which the second state parameter is located in the plurality of parameter ranges.
  • the third determining module (not shown in FIG. 5 ) is configured to determine that the error detection and correction mode corresponding to the second parameter range is the second mode.
  • the second sending module (not shown in FIG. 5 ) is configured to send a second indication to the second device, where the second indication is used to instruct the second device to use the second mode to encode data.
  • a switching module (not shown in FIG. 5 ) is used for switching the first mode to the second mode.
  • the second decoding module (not shown in FIG. 5 ) is used for decoding the data in the second mode.
  • the data processing device 50 may further include:
  • the first receiving module (not shown in FIG. 5 ) is used to receive the response of the second indication sent by the second device before decoding the data in the second mode, and the response of the second indication is used to indicate whether the second device is Allows data to be encoded in the second mode.
  • a switching module (not shown in FIG. 5 ), configured to switch the first mode to the second mode when the response of the second instruction is used to instruct the second device to allow the second mode to be adopted.
  • the data processing device 50 may further include:
  • the second receiving module (not shown in FIG. 5 ) is configured to receive the first capability information sent by the second device before determining the first mode among the plurality of error detection and correction modes according to the first state parameter, the first capability information Used to indicate the error detection and correction mode supported by the second device.
  • the fourth determination module (not shown in FIG. 5 ) is configured to determine multiple error detection and correction modes according to the first capability information and the error detection and correction modes supported by the first device.
  • the multiple error detection and correction modes belong to the error detection and correction modes supported by both the first device and the second device.
  • the data processing device 50 may further include:
  • a third receiving module (not shown in FIG. 5 ), configured to receive a response to the first indication sent by the second device before decoding the data in the first mode, where the response to the first indication is used to indicate whether the second device is Data is allowed to be encoded in the first mode.
  • the first decoding module 504 is configured to use the first mode to decode the data when the response of the first instruction is used to instruct the second device to allow the first mode to be used.
  • the data processing device 50 may further include:
  • the fourth receiving module (not shown in FIG. 5 ) is configured to receive, before acquiring the first state parameter of the data link between the first device and the second device, a message including the first verification information sent by the second device. information.
  • the first obtaining module 501 is configured to obtain the first state parameter according to the first verification information.
  • the data processing device 50 may further include:
  • the fifth receiving module before using the first mode to decode the data, receives the encoded data sent by the second device that is obtained by encoding the data in the first mode, and the encoded data carries the second calibration data. check information.
  • the first decoding module 504 is configured to decode the encoded data using the first mode.
  • the second obtaining module (not shown in FIG. 5 ) is configured to obtain the second state parameter according to the second check information carried in the encoded data.
  • the data processing device 50 may further include:
  • the sixth receiving module (not shown in FIG. 5 ) is configured to receive, before acquiring the first state parameter of the data link between the first device and the second device, a message including the first verification information sent by the second device. information.
  • a seventh receiving module (not shown in FIG. 5 ) is configured to receive a message including the first capability information sent by the second device before determining the first mode among the plurality of error detection and correction modes according to the first state parameter, and the first A capability information is used to indicate the error detection and correction mode supported by the second device.
  • the eighth receiving module (not shown in FIG. 5 ) is configured to receive, before using the first mode to decode the data, a message including a response of the first indication sent by the second device, and the response of the first indication is used to indicate the first Whether the second device is allowed to use the first mode to encode data.
  • the first sending module 503 is configured to send a message including the first indication to the second device.
  • the second sending module (not shown in FIG. 5 ) is configured to send a message including the second indication to the second device.
  • a first receiving module (not shown in FIG. 5 ), configured to receive a message including a response of the second indication sent by the second device.
  • the message includes: a capability field, a control field and a check field
  • the capability field is used to carry the first capability information
  • the control field is used to carry the first indication, the response to the first indication, the second indication or the response to the second indication
  • the check field is used to carry the first check information.
  • the above message may include: a TSB message.
  • the first state parameter includes: a bit error rate before correction.
  • the error detection and correction mode includes an FEC mode.
  • the actions performed by at least some of the above-mentioned multiple modules may be performed by the same module, and correspondingly, the at least some of the modules may be integrated into one module.
  • the first obtaining module and the second obtaining module may be integrated into one obtaining module
  • the first determining module, the second determining module, the third determining module and the fourth determining module may be integrated into one determining module.
  • the module and the second sending module can be integrated into a sending module
  • the first decoding module and the second decoding module can be integrated into a decoding module
  • the fifth receiving module, the sixth receiving module, the seventh receiving module and the eighth receiving module may be integrated into one receiving module.
  • the above-mentioned multiple determination modules may be integrated with the switching module into a control module for controlling the selection of the error detection and correction mode. This application does not limit this.
  • an embodiment of the present application provides a data processing apparatus.
  • the first device can determine the error detection and correction supported by both parties according to the first capability information sent by the second device.
  • the first device is also configured with a corresponding relationship between the error detection and correction mode and the first state parameter of the data link, so that the first device can determine the first mode according to the acquired first state parameter of the data link.
  • the first device may instruct the second device to use the first mode for encoding, and the first device to use the first mode for decoding, thereby implementing error detection and correction on the transmission data.
  • the first device and the second device can support multiple error detection and correction modes, and can determine the adopted error detection and correction mode according to the state parameter of the data link, so that the application of error detection and correction technology is more convenient flexible.
  • the first device can also detect the second state parameter of the data link in the process of data transmission, and can indicate the second state parameter when the second state parameter does not match the first mode.
  • the second device switches the first mode to the second mode.
  • the error detection and correction mode is switched according to the state of the current data link, and the flexibility is stronger, which is beneficial to improve the performance of the data transmission system.
  • FIG. 6 is a schematic structural diagram of another data processing apparatus 60 provided by an embodiment of the present application, and the data processing apparatus 60 may be applied to a second device.
  • the data processing apparatus 60 may include: a first receiving module 601 and a first encoding module 602 .
  • the first receiving module 601 is configured to receive a first indication sent by the first device, where the first indication is used to instruct the second device to use the first mode to encode data.
  • the first encoding module 602 is configured to use the first mode to encode the data according to the first instruction.
  • the data processing device 60 may further include:
  • the second receiving module is configured to receive a second indication sent by the first device after encoding the data in the first mode, where the second indication is used to instruct the second device to encode the data in the second mode.
  • a switching module (not shown in FIG. 6 ), for switching the first mode to the second mode.
  • the second encoding module (not shown in FIG. 6 ) is used for encoding the data in the second mode.
  • the data processing device 60 may further include:
  • the first determining module (not shown in FIG. 6 ) is configured to determine whether to allow the data to be encoded in the second mode according to the mode selection condition before encoding the data in the second mode.
  • the first sending module (not shown in FIG. 6 ) is configured to send a response to the second indication to the first device, where the response to the second indication is used to indicate whether the second device allows to use the second mode to encode data.
  • a switching module (not shown in FIG. 6 ), configured to switch the first mode to the second mode when it is determined that the second mode is allowed to encode data.
  • the data processing device 60 may further include:
  • the second sending module (not shown in FIG. 6 ) is configured to send first capability information to the first device before encoding the data in the second mode, where the first capability information is used to indicate the detection and correction supported by the second device wrong mode.
  • the data processing device 60 may further include:
  • the second determining module (not shown in FIG. 6 ) is configured to, before encoding the data in the first mode, determine whether to allow encoding of the data in the first mode according to the mode selection condition.
  • a third sending module (not shown in FIG. 6 ) is configured to send a response to the first indication to the first device, where the response to the first indication is used to indicate whether the second device is allowed to use the first mode to encode data.
  • the first encoding module 602 is configured to use the first mode to encode the data when it is determined that the first mode is allowed to be used to encode the data.
  • the data processing device 60 may further include:
  • the fourth sending module (not shown in FIG. 6 ) is configured to send a message including the first verification information to the first device before receiving the first indication sent by the first device.
  • the data processing device 60 may further include:
  • the fifth sending module (not shown in FIG. 6 ) is used to send the encoded data obtained by encoding the data in the first mode to the first device after encoding the data in the first mode, and the encoded data carries the second data. Check information.
  • the data processing device 60 may further include:
  • a sixth sending module (not shown in FIG. 6 ), configured to send a message including first capability information to the first device before receiving the first indication sent by the first device, where the first capability information is used to indicate the second device Supported error detection and correction modes.
  • a seventh sending module (not shown in FIG. 6 ), configured to send a message including a response of the first indication to the first device, where the response of the first indication is used to indicate whether the second device allows to use the first mode to encode data .
  • the first receiving module 601 is configured to receive a message including a first indication sent by a first device.
  • the second receiving module (not shown in FIG. 6 ) is configured to receive the message including the second indication sent by the first device.
  • a third sending module (not shown in FIG. 6 ) is configured to send a message including a response of the first indication to the first device.
  • the message includes: a capability field, a control field, and a check field.
  • the capability field is used to carry the first capability information
  • the control field is used to carry the first indication, the response to the first indication, the second indication, or the response to the second indication.
  • the check field is used to carry the first check information.
  • the above message may include: a TSB message.
  • the first state parameter includes: a bit error rate before correction.
  • the error detection and correction mode includes an FEC mode.
  • the actions performed by at least some of the above-mentioned multiple modules may be performed by the same module, and correspondingly, the at least some of the modules may be integrated into one module.
  • the first receiving module and the second receiving module may be integrated into one receiving module
  • the first encoding module and the second encoding module may be integrated into one encoding module
  • the first determining module and the second determining module may be integrated into one
  • the determining module, the first sending module, the second sending module, the third sending module, the fourth sending module, the fifth sending module, the sixth sending module and the seventh sending module can be integrated into one sending module.
  • the above-mentioned multiple determination modules may be integrated with the switching module into a control module for controlling the selection of the error detection and correction mode. This application does not limit this.
  • the embodiments of the present application provide a data processing apparatus, and the data processing apparatus can be applied to a second device.
  • the first capability information that the second device may send to the first device enables the first device to determine an error detection and correction mode supported by both parties.
  • the second device may use the first mode for encoding according to the instruction of the first device, while the first device uses the first mode for decoding, thereby implementing error detection and correction on the transmission data.
  • the first device and the second device can support multiple error detection and correction modes, and can determine the adopted error detection and correction mode according to the state parameter of the data link, so that the application of error detection and correction technology is more convenient flexible.
  • the first device can also detect the second state parameter of the data link in the process of data transmission, and when the second state parameter does not match the first mode, according to the second state parameter. An indication of a device switches the first mode to the second mode. In the process of data transmission, the error detection and correction mode is switched according to the state of the current data link, and the flexibility is stronger, which is beneficial to improve the performance of the data transmission system.
  • both the first device and the second device can serve as the sending end and the receiving end at the same time, so the first device and the second device can both include the above-mentioned data processing apparatus 50 and Modules in the data processing device 60 .
  • the determination and switching of the error detection and correction mode at the transmitting end and the determination and switching of the error detection and correction mode at the receiving end may be performed by the same module.
  • the devices serving as both the transmitting end and the receiving end may include an FEC switch circuit. FEC circuit so that the device can use the FEC circuit to encode and/or decode using the FEC mode.
  • the data processing device may also be implemented by an application-specific integrated circuit (ASIC), or a programmable logic device (PLD), and the above-mentioned PLD may be a complex Program logic device (complex programmable logical device, CPLD), field-programmable gate array (field-programmable gate array, FPGA), general array logic (generic array logic, GAL) or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the data processing methods provided by the above method embodiments can also be implemented by software.
  • each module in the data processing device can also be software modules.
  • FIG. 7 is a schematic structural diagram of another data processing apparatus provided by an embodiment of the present application, and the data processing apparatus may be applied to the data transmission system provided by the embodiment of the present application.
  • the data processing apparatus may be the first device described in the foregoing embodiment, or may be the second device described in the foregoing embodiment.
  • the communication device may include: a processor 701 , a memory 702 , a communication interface 703 and a bus 704 .
  • the bus 704 is used to connect the processor 701 , the memory 702 and the communication interface 703 .
  • the communication connection with other devices can be realized through the communication interface 703 (which may be wired or wireless).
  • the memory 702 stores a computer program 7021 for realizing various application functions. When each module in the communication device shown in FIG. 5 or FIG. 6 is implemented in the form of software modules, programs corresponding to these software modules may be stored in the memory 702 of the communication device.
  • the processor 701 may be a CPU, and the processor 701 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays ( FPGA), GPU or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGA field programmable gate arrays
  • GPU GPU or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the processor 701 may further include a hardware chip, and the above-mentioned hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), a General Array Logic (GAL) or any combination thereof.
  • CPLD Complex Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • GAL General Array Logic
  • Memory 702 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM), portable read-only memory (compact disc read-only memory, CD-ROM), flash memory (flash memory), hard disk drive (hard disk drive, HDD) or solid state drive (solid-state drive, SSD) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • DRAM direct rambus RAM
  • DR RAM direct Memory bus random access memory
  • Memory 702 may also include any combination of the types of memory described above.
  • bus 704 may also include a power bus, a control bus, a status signal bus, and the like.
  • bus 704 may also include a power bus, a control bus, a status signal bus, and the like.
  • the various buses are labeled as bus 704 in the figure.
  • Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the data provided by the above method embodiments Approach.
  • the embodiments of the present application also provide a computer program product containing instructions, when the computer program product is run on a computer, the computer program product causes the computer to execute the data processing method provided by the above method embodiments.
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination.
  • the above-described embodiments may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that contains one or more sets of available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media.
  • the semiconductor medium may be a solid state drive (SSD).
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • first, second and other words are used to distinguish the same or similar items with basically the same function and function, and it should be understood that between “first”, “second” and “nth” There are no logical or timing dependencies, and no restrictions on the number and execution order. It will also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first device could be termed a second device, and, similarly, a second device could be termed a first device, without departing from the scope of various described examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本申请提供了一种数据处理方法、设备及数据传输系统,涉及通信技术领域,所述方法包括:第一设备可以根据获取到的数据链路的第一状态参数在多种检纠错模式中确定第一模式。之后,第一设备可以指示第二设备采用第一模式编码,以及第一设备可以采用第一模式解码,从而实现了对传输数据的检纠错。在申请实施例提供的方法中,第一设备和第二设备可以支持多种检纠错模式,并且第一设备可以根据数据链路的状态参数确定采用的检纠错模式,使得检纠错技术的应用更加灵活。本申请用于数据的处理和传输。

Description

数据处理方法、设备及数据传输系统 技术领域
本申请涉及通信技术领域,特别涉及一种数据处理方法、设备及数据传输系统。
背景技术
数据在设备间传输时,由于受到传输条件的影响,传输数据的信号会出现差错,导致接收端接收到的数据存在误码。
相关技术中,发送端采用前向纠错(forward error correction,FEC)模式对待传输的数据进行编码,接收端相应的采用FEC模式对接收到的数据进行解码纠错,从而降低数据的误码率(bit error ratio,BER)。其中,BER是衡量数据误码程度的指标。
但是,现有数据纠错的方案单一,灵活性较差。
发明内容
为了解决现有数据纠错的方案单一,灵活性较差的问题,本申请提供了一种数据处理方法、设备及数据传输系统。所述技术方案如下:
第一方面,提供了一种数据处理方法,方法包括:第一设备首先获取第一设备和第二设备之间的数据链路的第一状态参数,并根据第一状态参数在多种检纠错模式中确定第一模式。之后,第一设备向第二设备发送第一指示,并采用第一模式对数据进行解码。其中,第一指示用于指示第二设备采用第一模式对数据进行编码。
第一设备可以根据获取到的数据链路的第一状态参数确定第一模式。之后,第一设备可以指示第二设备采用第一模式编码,第一设备采用第一模式解码,从而实现了对传输数据的检纠错。在申请实施例提供的方法中,第一设备和第二设备可以支持多种检纠错模式,并且可以根据数据链路的状态参数确定采用的检纠错模式,使得检纠错技术的应用更加灵活。
可选地,多个检纠错模式与多个参数范围一一对应,第一设备根据状态信息在多个检纠错模式中确定第一模式,包括:第一设备确定多个参数范围中,第一状态参数所在的第一参数范围。确定第一参数范围对应的检纠错模式为第一模式。
不同的参数范围对应不同的检纠错模式,使得在数据传输时选择的检纠错模式是比较合适的,不会造成纠错性能的浪费,或者是纠错能力的不足。
可选地,第一设备在采用第一模式对数据进行解码之后,可以获取数据链路的第二状态参数。在第二状态参数位于第一参数范围外时,第一设备可以确定多个参数范围中第二状态参数所在的第二参数范围,并确定第二参数范围对应的检纠错模式为第二模式。之后,第一设备可以向第二设备发送第二指示,第二指示用于指示第二设备采用第二模式对数据进行编码。与此同时,第一设备将第一模式切换为第二模式,并采用第二模式对数据进行解码。
当数据链路的第二状态参数位于第一参数范围外时,说明当前采用的检纠错模式与数据链路的状态不匹配。第一设备将当前采用的第一模式切换为与当前数据链路的状态匹配的第 二模式,可以保证数据纠错能力足够,且不会造成纠错能力的浪费。
可选地,第一设备可以在采用第二模式对数据进行解码之前,接收第二设备发送的第二指示的响应,第二指示的响应用于指示第二设备是否允许采用第二模式对数据进行编码。第一设备在第二指示的响应用于指示第二设备允许采用第二模式时,将第一模式切换为第二模式。
第二设备在切换检纠错模式之前需要和第一设备协商,保证双方都允许采用该检纠错模式,灵活性更好。
可选地,第一设备可以在根据第一状态参数在多个检纠错模式中确定第一模式之前,接收第二设备发送的第一能力信息,第一能力信息用于指示第二设备支持的检纠错模式。之后,第一设备可以根据第一能力信息以及第一设备支持的检纠错模式,确定多个检纠错模式。其中,多个检纠错模式属于第一设备和第二设备均支持的检纠错模式。
第一设备根据第二设备的能力信息的指示,确定出双方都支持的多个检纠错模式,确保后续在协商选择检纠错模式时不会出错,保证第一设备根据数据链路的状态参数确定出的模式第一设备和第二设备均支持。
可选地,第一设备可以在采用第一模式对数据进行解码之前,接收第二设备发送的第一指示的响应,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。第一设备可以在第一指示的响应用于指示第二设备允许采用第一模式时,采用第一模式对数据进行解码。
只有在第二设备允许采用第一模式对数据进行编码时,第一设备才会采用第一模式对数据进行解码,确保编码和解码采用的模式一致。
可选地,第一设备可以在获取第一设备和第二设备之间的数据链路的第一状态参数之前,接收第二设备发送的包括第一校验信息的消息。之后,第一设备可以根据第一校验信息,获取第一状态参数。
第一设备在传输业务数据之前,通过传输携带第一校验信息的消息,来检测当前数据链路的第一状态参数。
可选地,第一设备可以在采用第一模式对数据进行解码之前,接收第二设备发送的采用第一模式对数据进行编码得到的编码数据,编码数据携带有第二校验信息。之后,第一设备可以采用第一模式对编码数据进行解码,并根据编码数据携带的第二校验信息,获取第二状态参数。
第一设备在传输业务数据的过程中,通过业务数据码流中携带的第二校验信息,检测业务数据传输过程中的第二状态参数。
可选地,第一设备可以在获取第一设备和第二设备之间的数据链路的第一状态参数之前,接收第二设备发送的包括第一校验信息的消息,使得第一设备可以根据第一校验信息,获取第一状态参数。第一设备还可以在根据第一状态参数在多个检纠错模式中确定第一模式之前,接收第二设备发送的包括第一能力信息的消息,第一能力信息用于指示第二设备支持的检纠错模式。进而,第一设备可以根据第一能力信息以及第一设备支持的检纠错模式,确定多个检纠错模式。其中,多个检纠错模式属于第一设备和第二设备均支持的检纠错模式。第一设备可以在采用第一模式对数据进行解码之前,接收第二设备发送的包括第一指示的响应的消息,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。以使得第一 设备可以在第一指示的响应用于指示第二设备允许采用第一模式时,采用第一模式对数据进行解码。第一设备可以向第二设备发送包括第一指示的消息。第一设备还可以向第二设备发送包括第二指示的消息。第一设备还可以接收第二设备发送的包括第二指示的响应的消息。其中,消息包括:能力字段、控制字段和校验字段,能力字段用于携带第一能力信息,控制字段用于携带第一指示、第一指示的响应、第二指示或第二指示的响应,校验字段用于携带第一校验信息。
第一校验信息、第一能力信息、第一指示、第一指示的响应、第二指示或第二指示的响应均可以携带在消息中传输,并且用于携带上述内容的消息的格式可以是相同的。采用相同格式的消息,可以降低第一设备和第二设备在进行协商时读取消息的复杂度。
可选地,消息包括:训练码流块TSB(training set block,TSB)消息。
第一设备和第二设备可以为采用PCIE技术的设备,利用链路训练阶段传输的TSB消息携带第一校验信息、第一能力信息、第一指示、第一指示的响应、第二指示或第二指示的响应等信息,可以降低信息交互的复杂度。
可选地,第一状态参数包括:纠前误码率。
可选地,检纠错模式包括FEC模式。
第二方面,提供了另一种数据处理方法,该方法包括:第二设备接收第一设备发送的第一指示,第一指示用于指示第二设备采用第一模式对数据进行编码。第二设备根据第一指示,采用第一模式对数据进行编码。
第二设备根据第一设备的指示采用第一模式对数据进行编码,保证编码模式与解码模式的一致。
可选地,第二设备可以在采用第一模式对数据进行编码之后,接收第一设备发送的第二指示,第二指示用于指示第二设备采用第二模式对数据进行编码。第二设备可以将第一模式切换为第二模式,并采用第二模式对数据进行编码。
第二设备根据第一设备的指示采用第二模式对数据进行编码,保证编码模式与解码模式的一致。
可选地,第二设备可以在采用第二模式对数据进行编码之前,根据模式选择条件,确定是否允许采用第二模式对数据进行编码。第二设备可以向第一设备发送第二指示的响应,第二指示的响应用于指示第二设备是否允许采用第二模式对数据进行编码。第二设备可以在确定允许采用第二模式对数据进行编码时,将第一模式切换为第二模式。
影响数据链路误码率的因素有很多种,第二设备需要结合实际的数据链路的情况选择对数据编码时采用的检纠错模式。只有当数据链路的情况允许采用第二模式时,才进行切换。
可选地,第二设备可以在采用第二模式对数据进行编码之前,向第一设备发送第一能力信息,第一能力信息用于指示第二设备支持的检纠错模式。
第二设备告知第一设备自己支持的检纠错模式,确保第一设备确定出的检纠错模式为双方均支持的检纠错模式,确保后续协商选择检纠错模式时不会出错。
可选地,第二设备可以在采用第一模式对数据进行编码之前,根据模式选择条件,确定是否允许采用第一模式对数据进行编码。之后,第二设备可以向第一设备发送第一指示的响应,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。进而,第二设备可以在确定允许采用第一模式对数据进行编码时,并采用第一模式对数据进行编码。
影响数据链路误码率的因素有很多种,第二设备需要结合实际的数据链路的情况选择对数据编码时采用的检纠错模式。只有当数据链路的情况允许采用第一模式时,才采用第一模式对数据进行编码。并且,是否允许采用第一模式需要告知第一设备,避免编码采用的模式和解码采用的模式不一致。
可选地,第二设备可以在接收第一设备发送的第一指示之前,向第一设备发送包括第一校验信息的消息。
第二设备向第一设备发送包括第一校验信息的消息,用来测量当前数据链路的状态参数。
可选地,第二设备可以第一设备可以在采用第一模式对数据进行编码之后,向第一设备发送采用第一模式对数据进行编码得到的编码数据,编码数据携带有第二校验信息。
第二设备在传输业务数据时,在编码数据中携带第二校验信息,用于测量传输业务数据时数据链路的状态参数。
可选地,第二设备可以在接收第一设备发送的第一指示之前,向第一设备发送包括第一校验信息的消息。第二设备还可以在接收第一设备发送的第一指示之前,向第一设备发送包括第一能力信息的消息,第一能力信息用于指示第二设备支持的检纠错模式。第二设备还可以在采用第一模式对数据进行编码之前,根据模式选择条件,确定是否允许采用第一模式对数据进行编码,以及向第一设备发送包括第一指示的响应的消息,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。第二设备还可以在确定允许采用第一模式对数据进行编码时,采用第一模式对数据进行编码。第二设备还可以接收第一设备发送的包括第一指示的消息。第二设备还可以接收第一设备发送的包括第二指示的消息。第二设备可以向第一设备发送包括第一指示的响应的消息。其中,消息包括:能力字段、控制字段和校验字段,能力字段用于携带第一能力信息,控制字段用于携带第一指示、第一指示的响应、第二指示或第二指示的响应,校验字段用于携带第一校验信息。
可选地,消息包括:TSB消息。
可选地,第一状态参数包括:纠前误码率。
可选地,检纠错模式包括FEC模式。
第三方面,提供了一种数据处理装置,应用于第一设备,该装置包括:用于执行第一方面提供的任一种数据处理方法的各个模块。
第四方面,提供了另一种数据处理装置,应用于第二设备,装置包括:用于执行第二方面提供的任一种数据处理方法的各个模块。
第五方面,提供了又一种数据处理装置,数据处理装置包括:处理器和存储器,处理器用于执行存储器中存储的程序,以实现上述第一方面提供的任一种数据处理方法。
第六方面,提供了再一种数据处理装置,数据处理装置包括:处理器和存储器,处理器用于执行存储器中存储的程序,以实现上述第二方面提供的任一种数据处理方法。
第七方面,提供了一种数据传输系统,数据传输系统包括:第一设备和第二设备。第一设备为上述第三方面提供的数据处理装置,或者,上述第五方面提供的数据处理装置。第二设备为上述第四方面提供的数据处理装置,或者,上述第六方面提供的数据处理装置。
第八方面,提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行如上述第一方面提供的任一种数据处理方法,或上述第二方面提供的任一种数据处理方法。
第九方面,提供了包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述第一方面提供的任一种数据处理方法,或上述第二方面提供的任一种数据处理方法。
附图说明
图1是本申请实施例提供的数据传输系统的结构示意图;
图2是本申请实施例提供的数据处理方法的流程图;
图3是本申请实施例提供的一种数据码流的结构示意图;
图4是是本申请实施例提供的一种AM字段的格式示意图;
图5是是本申请实施例提供的一种数据处理装置的结构示意图;
图6是是本申请实施例提供的另一种数据处理装置的结构示意图;
图7是是本申请实施例提供的又一种数据处理装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
数据传输是数据从一个地方传送到另一个地方的过程。数据传输系统通常可以包括传输数据的数据链路和数据链路两端的设备,其中,数据链路一端的设备为数据的发送端,另一端的设备为数据的接收端。在某些情况下,数据链路两端的设备可以互为发送端和接收端,也即是一端的设备既可以是发送端,也可以是接收端,另一端的设备既可以是发送端,也可以是接收端。
示例地,图1是本申请实施例提供的一种数据传输系统的结构示意图,如图1所示,该数据传输系统可以包括第一设备01和第二设备02,第一设备01和第二设备02之间存在数据链路。在第一设备01向第二设备02发送数据时,第一设备01为发送端,第二设备02为接收端。在第二设备02向第一设备01发送数据时,第二设备02为发送端,第一设备01为接收端。
但是,在数据传输的过程中,由于数据链路可能会受到外界因素的干扰,导致数据链路中传输的数据出现误码。比如,发送端发送的数据信号为“0”,而接收端接收到的数据信号却为“1”,这就表明传输的数据存在误码。
相关技术中,发送端在对数据进行编码时可以引入纠错码,相应地,接收端采用对应的纠错技术进行解码,可以实现降低数据误码率的效果。目前,FEC模式是目前应用较为广泛的一种纠错技术,发送端可以采用FEC模式在对数据编码时增加数据的冗余信息,使得接收端能够在数据传输发生误码后利用这些冗余信息恢复出误码的数据,从而实现降低数据误码率的效果。可以理解为,FEC模式对于接收端接收到的数据可以提供增益,使得解码后的数据的误码率降低。
示例地,在数据传输系统中应用FEC模式时,发送端可以在对待传输的数据进行编码时加入前向纠错码,之后将编码后的数据发送至接收端;接收端对接收到的编码后的数据按照FEC模式进行解码,得到发送端所要发送的数据。其中,解码的过程可以利用前向纠错码对误码的数据进行纠错,从而降低解码后数据的误码率。
不过,目前FEC模式的应用方案存在较多问题。
在一种FEC模式的应用方案中,在高速串行计算机扩展总线标准(peripheral component interconnect express,PCIE)6.0的规范中,规定了数据传输速率在64千兆每秒(giga transaction per second,GT/s)及以上时使用一种固定的FEC模式,但是该FEC模式的增益是固定的,无法调节,灵活性较差。
在另一种FEC模式的应用方案中,具有交织和非交织两种FEC模式,发送端设备和接收端设备在传输训练码流中携带选择交织和非交织FEC模式的请求,来协商FEC的模式选择。但是,该方案要求发送端设备和接收端设备必须支持交织和非交织两种FEC模式,否则发送端设备和接收端设备会协商失败,而导致无法应用FEC模式进行数据传输。并且,在该方案中,发送端设备和接收端设备协商好FEC的模式后就无法再改变,灵活性较差。
本申请实施例提供了一种数据处理方法,可以解决相关技术中存在的上述问题。图2是本申请实施例提供的一种数据处理方法的流程图,该方法可以应用于本申请实施例提供的数据传输系统(如图1所示的数据传输系统),如图2所示,该方法可以包括以下步骤。
步骤201、第二设备向第一设备发送第一能力信息,第一能力信息用于指示第二设备支持的检纠错模式。
检纠错技术可以对传输数据过程产生的误码进行检错并纠错,实现降低误码率的效果。但是,在数据传输系统中引入检纠错技术降低误码率的同时,也增加了数据传输系统的开销。因此,可以根据第一设备和第二设备之间的数据链路的误码率的不同,为第一设备和第二设备配置不同的检纠错模式。不同的检纠错模式具有不同的纠错能力,不同纠错能力的检纠错模式应用于不同误码率的数据链路。从而可以避免在数据链路的误码率较低时,应用纠错能力较强的检纠错模式而造成纠错性能的浪费,带来不必要的延迟和功耗。或者,可以避免在数据链路的误码率较高时,应用纠错能力较弱的检纠错模式,该检纠错模式的增益不足,使得数据链路的误码率增加,降低业务传输效率。
需要说明的是,在本申请实施例中,第一设备和第二设备均可以被配置为支持多种检纠错模式。该多种检纠错模式具有不同的检纠错能力,从而可以根据不同纠错能力的需求选择不同的检纠错模式。
第二设备可以通过数据链路向第一设备发送第一能力信息,该第一能力信息可以用于指示第二设备所支持的检纠错模式。
步骤202、第一设备根据第一能力信息以及第一设备支持的检纠错模式,确定多个检纠错模式。其中,多个检纠错模式属于第一设备和第二设备均支持的检纠错模式。
示例地,第一设备支持的检纠错模式可以包括:模式1、模式2和模式3,第二设备支持的检纠错模式可以包括:模式0、模式1、模式2和模式3。第一设备可以根据第一能力信息的指示确定出第二设备支持的检纠错模式,并结合自身支持的检纠错模式,确定出第一设备和第二设备均支持的多个检纠错模式为:模式1、模式2和模式3。
步骤203、第一设备获取第一设备和第二设备之间的数据链路的第一状态参数。
第二设备可以向第一设备发送包括第一校验信息的消息。第一设备在接收到该消息后可以根据第一校验信息进行校验,并可以根据校验的结果获取第一状态参数。
第一状态参数为反映第一设备和第二设备之间的数据链路状态的参数,比如,第一状态参数可以包括:纠前误码率。纠前误码率是指接收端接收到的数据在进行纠错前的误码率。 第一校验信息可以通过数据校验得到,校验方式可以为循环冗余校验(cyclic redundancy check,CRC)或奇偶校验等。
步骤204、第一设备根据第一状态参数在多个检纠错模式中确定第一模式。
第一设备中可以配置有多个参数范围,并可以配置有参数范围与检纠错模式的对应关系,多个检纠错模式可以与多个参数范围一一对应。第一设备可以在多个参数范围中,确定第一状态参数所在的第一参数范围,进而可以将第一参数范围对应的检纠错模式确定为第一模式。
示例地,不同的检纠错模式可以是根据不同的纠前误码率范围划分的,多个检纠错模式可以与多个纠前误码率的范围一一对应。从而,第一设备作为数据的接收端,可以根据获取到的纠前误码率的值所在的范围,选择用于解码的检纠错模式。
步骤205、第一设备向第二设备发送第一指示,第一指示用于指示第二设备采用第一模式对数据进行编码。
可以看出,第一设备作为数据的接收端时,第二设备即为数据的发送端。接收端向发送端发送第一指示,指示发送端(第二设备)按照接收端解码选择的检纠错模式(即第一模式)进行编码,确保编解码方式相同。
需要说明的是,第一指示可以直接指示第二设备采用第一模式对数据进行编码,比如,第一指示的内容为:编码模式为第一模式。当然,第一指示也可以不直接指示第二设备编码时需要采用的第一模式对数据进行编码,第一指示的内容可以为:解码模式为第一模式。进而,第二设备在知道第一设备解码时选择的检纠错模式为第一模式后,便需要选择相同的第一模式进行编码,从而实现了间接指示。
步骤206、第二设备根据模式选择条件,确定是否允许采用第一模式对数据进行编码。
影响数据链路误码率的因素有很多种,第二设备需要结合实际的数据链路的情况选择对数据编码时采用的检纠错模式。第二设备可以配置有模式选择条件,该模式选择条件可以包括:基于数据链路的长度、带宽、数据传输速率和/或设备的温度等的选择条件,本申请实施例对此不做限定。
比如,模式选择条件包括:数据传输速率在64GT/s以上时,允许采用检纠错模式2和3,速率为64GT/s及以下时,允许采用检纠错模式0和1。假设第一模式为检纠错模式0,若当前数据传输速率在64GT/s以上,则第二设备不允许采用第一模式对数据进行编码;若当前数据传输速率为64GT/s及以下,则第二设备允许采用第一模式对数据进行编码。
第二设备收到第一设备发送第一指示,需要根据模式选择条件判断第二设备是否允许采用第一模式对数据进行编码。
步骤207、第二设备向第一设备发送第一指示的响应,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。
第二设备在根据模式选择条件做出判断之后,可以向第一设备发送第一指示的响应,该响应即是第二设备所做的判断的结果。
示例地,如果第二设备允许采用第一模式对数据进行编码,则该第一指示的响应可以为“允许”响应,如果第二设备不允许采用第一模式对数据进行编码,则该第一指示的响应可以为“拒绝”响应。
步骤208、第二设备在确定允许采用第一模式对数据进行编码时,采用第一模式对数据进行编码。
第二设备作为数据的发送端,可以在数据发送之前采用第一模式对数据进行编码,之后将编码后的数据发送至第一设备。
步骤209、在第一指示的响应用于指示第二设备允许采用第一模式时,第一设备采用第一模式对数据进行解码。
第一设备作为接收端,可以根据第二指示的响应确定第二设备允许采用第一模式进行编码后,便可以采用第一模式对接收到的数据进行解码,保证了解码模式与编码模式的匹配。
需要说明的是,步骤201至步骤209为本申请实施例提供的数据处理方法的第一阶段,在该第一阶段,第一设备和第二设备之间不进行业务数据的传输,第一设备和第二设备通过协商确定第一模式。在第一阶段之后,才进入本申请实施例提供的数据处理方法的第二阶段开始业务数据的传输,从而第一设备和第二设备同时采用第一模式开始工作,保证业务数据发送端的编码模式与接收端的解码模式是一致的。可选地,本申请实施例提供的第一设备和第二设备可以为采用PCIE技术的设备,上述第一阶段可以为第一设备和第二设备的链路训练阶段。
步骤210、第一设备获取数据链路的第二状态参数。
第一设备和第二设备在第一阶段已经确定采用第一模式之后,进入第二阶段开始业务数据的传输,第一设备可以在业务数据传输的过程中,获取数据链路的第二状态参数,该第二状态参数可以参考前述第一状态参数,本申请实施例在此不做赘述。
在业务数据传输过程中,数据链路所受的干扰可能发生变化,或者传输数据的设备和线路的温度发生变化,都可能导致数据链路的状态参数发生变化,使得当前采用的检纠错模式(即第一模式)与当前状态参数所在的范围不匹配。检纠错模式与当前状态参数所在的范围不匹配可能会导致传输数据的误码率增大,或者纠错性能过剩的问题。
示例地,以第二状态参数为纠前误码率为例,如果第一设备当前获取到的纠前误码率大于第一模式对应的纠前误码率的范围的最大值,那么第一设备在对接收到的数据采用第一模式进行解码时,提供的增益不足,会使得解码后的数据的误码率提高。如果第一设备当前获取到的纠前误码率小于第一模式对应的纠前误码率的范围的最小值,那么采用第一模式进行编解码会造成纠错性能过剩,带来不必要的开销。
因此,在业务数据传输的过程中,需要去获取数据链路的第二状态参数,以监控当前采用的检纠错模式是否合适。
可选地,在业务数据传输的过程中,第一设备可以接收第二设备发送的采用第一模式对数据进行编码得到的编码数据,该编码数据可以携带有第二校验信息。第一设备可以采用第一模式对该编码数据进行解码,并根据编码数据携带的第二校验信息,获取第二状态参数。
作为一种可选地实现方式,第二设备可以在向第一设备发送采用第一模式对数据进行编码得到的编码数据时,周期性的在数据码流中插入对准标记(Alignment Mark,AM),并在该AM中携带第二校验信息,第一设备在接收到AM后可以根据第二校验信息进行校验,并据此统计当前数据链路的纠前误码率。
示例地,可以将待传输的数据切割为多个数据块,并在每个数据块之后添加AM,AM携带该数据块的校验信息。图3是一种数据码流的结构示意图,如图3所示,AM0、AM1和AM2均可以可以携带它们之前数据块的校验信息。
又示例地,图4是一种AM字段的格式示意图,如图4所示,AM字段可以包括20个字节 (byte),以5字节为单位可以划分为4个子字段(如图3所示的A、B、C、D 4个子字段)。该4个子字段的格式可以是相同的,每个子字段均可以包括唯一标记(Unique Marker,UM)字段和唯一编程(Unique Programmable,UP)字段,UM字段可以包括UM0和UM1,UM0和UM1占用2个字节,UP字段占用一个字节。
AM字段的编码结构可以包括如下两个方面:
一方面,AM字段中的UM0和UM1字段可以采用检纠错码(比如BCH码)进行编码,利用检纠错码的检错能力可以统计AM字段的误码情况。
另一方面,AM字段中的UP字段存储的是校验信息,由于AM字段是穿插在传输的数据中的,从而该校验信息是对相邻两个AM字段之间的数据进行校验(比如CRC校验)生成的。需要说明的是,对一段数据进行校验之后生成的校验信息可以插入到位于该段数据之后的AM字段中的UP字段(包括每个子字段中的UP字段)。接收端可以通过对AM字段中UP字段携带的校验信息进行校验,实现对纠前误码率的检测。
步骤211、在第二状态参数位于第一参数范围外时,第一设备确定多个参数范围中第二状态参数所在的第二参数范围。
当第一设备检测到第二状态参数位于第一参数范围外时,说明第二状态参数与当前采用的第一模式不匹配。第一设备需要确定第二状态参数所在的第二参数范围。
当第一设备检测到第二状态参数位于第一参数范围内时,说明第二状态参数与当前采用的第一模式匹配,可以继续采用第一模式进行检纠错。
步骤212、第一设备确定第二参数范围对应的检纠错模式为第二模式。
第一设备将第二状态参数所在的第二参数范围对应的检纠错模式,确定为第二模式。
步骤213、第一设备向第二设备发送第二指示,第二指示用于指示第二设备采用第二模式对数据进行编码。
由于当前采用的第一模式已经不适合当前的链路状态,因此第一设备发送第二指示用于指示第二设备采用匹配当前链路状态的检纠错模式(即第二模式)进行编码。
步骤214、第二设备根据模式选择条件,确定是否允许采用第二模式对数据进行编码。
步骤214的内容可以参考步骤206的相关描述,此处不在赘述。
步骤215、第二设备向第一设备发送第二指示的响应,第二指示的响应用于指示第二设备是否允许采用第二模式对数据进行编码。
第二设备在根据模式选择条件做出判断之后,可以向第一设备发送第二指示的响应,该响应即是第二设备所做的判断的结果。步骤215的内容可以参考步骤207的相关描述,此处不在赘述。
步骤216、第二设备在确定允许采用第二模式对数据进行编码时,将第一模式切换为第二模式,并采用第二模式对数据进行编码。
第二设备在确定允许采用第二模式对数据进行编码时,便可以将当前对数据编码时采用的检纠错模式由第一模式切换为第二模式,以匹配当前数据链路的状态。之后,既可以采用第二模式对数据进行编码,并将编码后的数据发送至第一设备。
步骤217、在第二指示的响应用于指示第二设备允许采用第二模式对数据进行编码时,第一设备将第一模式切换为第二模式,并采用第二模式对数据进行解码。
第一设备根据第二指示的响应确定第二设备允许采用第二模式对数据进行编码,即可采 用第二模式对接收到的数据进行解码,确保解码模式与编码模式匹配。
需要说明的是,在第二阶段进行业务数据传输的过程中,如果第一设备检测到当前的链路状态参数与第一模式不匹配(也即是执行到步骤211时),则需要暂停业务数据的传输。之后,第一设备和第二设备需要协商并确定新的检纠错模式(即第二模式),才能继续进行业务数据的传输(也即是在步骤217之后)。第一设备和第二设备进行协商并确定新的检纠错模式的阶段与第一阶段相似,若第一设备和第二设备为采用PCIE技术的设备,那么该阶段可以称为数据链路的重训(retrain)阶段。
综上所述,本申请实施例提供了一种数据处理方法,第一设备可以根据第二设备发送的第一能力信息确定双方都支持的检纠错模式,第一设备中还配置有检纠错模式与数据链路的第一状态参数的对应关系,使得第一设备可以根据获取到的数据链路的第一状态参数确定第一模式。之后,第一设备可以指示第二设备采用第一模式编码,第一设备采用第一模式解码,从而实现了对传输数据的检纠错。在申请实施例提供的方法中,第一设备和第二设备可以支持多种检纠错模式,并且可以根据数据链路的状态参数确定采用的检纠错模式,使得检纠错技术的应用更加灵活。
此外,在运用第一模式进行数据传输后,第一设备还可以在数据传输的过程中检测数据链路的第二状态参数,并在第二状态参数与第一模式不匹配时,将第一模式切换为第二模式。实现了在数据传输的过程中,根据当前数据链路的状态切换检纠错模式,灵活性更强,有利于提高数据传输系统的性能。
需要说明的是,在步骤203中,如果第一状态参数不位于多个检纠错模式对应的参数范围内,则第一设备无法在多个检纠错模式中确定出第一模式。此种情况下,第一设备可以确定出旁路(bypass)模式,表示第一设备选择不采用检纠错模式。
示例地,以第一状态参数为纠前误码率为例,若第一设备获取到的纠前误码率很小,该纠前误码率不属于任一检纠错模式对应的参数范围,则第一设备可以确定出旁路模式。需要说明的是,此种情况下,由于纠前误码率很小,传输数据时也无需采用检纠错技术。
还需要说明的是,若在步骤204中,第一设备确定出旁路模式,那么该第一指示相应地用于指示第二设备采用旁路模式编码。如果第二设备允许采用该旁路模式编码,则第二设备不采用检纠错模式进行编码,第一设备也不采用检纠错模式进行解码。
此外,当上述步骤211获取到的第二状态参数不位于多个检纠错模式对应的参数范围内时,步骤212中第一设备也可以确定出旁路模式。从而,第二指示相应地用于指示第二设备将第一模式切换为旁路模式,如果第二设备允许采用该旁路模式编码,那么后续第二设备不再采用检纠错模式进行编码,第一设备也不再采用检纠错模式进行解码。
应理解的是,本申请上述实施例以第一设备为接收端,第二设备为发送端为例,当然,第一设备也可以同时作为发送端,第二设备也可以同时作为接收端。从而,第一设备也可以执行上述实施例中第二设备所执行的方法,第二设备也可以执行上述实施例中第一设备所执行的方法。本申请实施例对此不做限定。
还应理解的是,若第一设备和第二设备均可以同时作为发送端和接收端,数据在第一设备和第二设备之间传输的方向不同时,接收端接收到的数据的误码率可以是不同的。相应地,两个不同方向的数据传输时,采用的检纠错模式可以不同。以第一设备为例,第一设备发送 数据之前对数据进行编码采用的检纠错模式,可以与对接收到的数据进行解码采用的检纠错模式不同。并且,第一设备与第二设备协商发送数据采用的检纠错模式的过程,与第一设备与第二设备协商接受数据采用的检纠错模式的过程相互独立。检纠错技术对于传输的数据提供的增益,在两个数据传输方向上是可以独立调节的。
还需要说明的是,上述实施例中第一设备和第二设备之间传输的第一能力信息、第一指示、第一指示的响应、第二指示以及第二指示的响应也都可以携带在消息中传输。并且,用于携带第一校验信息、第一能力信息、第一指示、第一指示的响应、第二指示以及第二指示的响应的消息的格式可以是相同的。换句话说,就是这些消息均可以包括用于携带第一校验信息、能力信息、指示以及指示的响应的字段,设备在传输第一校验信息、能力信息、指示或指示的响应时,仅需让消息中相应的字段携带有效信息即可。
示例地,该消息可以包括:能力字段、控制字段和校验字段,能力字段可以用于携带第一能力信息,控制字段可以用于携带第一指示、第一指示的响应、第二指示或第二指示的响应,校验字段可以用于携带第一校验信息。作为一种实现方式,校验字段可以位于能力字段和控制字段之后,该校验字段用于携带的第一校验信息可以是对能力字段和控制字段进行校验得到的。此外,当步骤201至209所在的第一阶段为链路训练阶段时,该消息可以为链路训练阶段传输的训练码流块消息。
以检纠错模式为FEC模式,消息为TSB消息为例,示例地,TSB消息中可以包括FEC能力(capability,CAP)字段(也即上述能力字段),该FEC能力字段可以用于携带第一能力信息,从而指示第一设备所支持的FEC模式(包括编码模式和解码模式)。表1是本申请提供的一种FEC CAP字段的格式的解释说明。
表1
Figure PCTCN2021079507-appb-000001
如表1所示,该FEC能力字段的前4个比特位可以用于指示第二设备支持的编码模式,比如,第1个比特位(Bit 0)用于指示:第二设备是否支持FEC模式0进行编码,表1中以Bit 0用于指示第二设备支持FEC模式0进行编码(FEC Mode 0 Coder support)为例;第2个比特位(Bit 1)用于指示:第二设备是否支持FEC模式1进行编码(FEC Mode 1 Coder support),表1中以Bit 1用于指示第二设备支持FEC模式1进行编码(FEC Mode 1 Coder support)为例;第3个比特位(Bit 2)用于指示:第二设备是否支持FEC模式2进行编码(FEC Mode 2 Coder support),表1中以Bit 2用于指示第二设备支持FEC模式2进行编码(FEC Mode 2 Coder support)为例; 第4个比特位(Bit 3)用于指示:第二设备是否支持FEC模式3进行编码(FEC Mode 3 Coder support),表1中以Bit 3用于指示第二设备支持FEC模式3进行编码(FEC Mode 3 Coder support)为例。
可选地,由于第二设备既可以作为发送端,也可以作为接收端,因此第二设备也可以在发送的第一能力信息中携带自己的解码能力信息。
继续参考表1,FEC能力字段的后4个比特位可以用于指示第二设备支持的解码模式。比如,第5个比特位(Bit 4)用于指示:第二设备是否支持FEC模式0进行解码(FEC Mode 0 Encoder support),表1中以Bit 4用于指示第二设备支持FEC模式0进行解码(FEC Mode 0 Encoder support)为例;第6个比特位(Bit 5)用于指示:第二设备是否支持FEC模式1进行解码(FEC Mode 1 Encoder support),表1中以Bit 5用于指示第二设备支持FEC模式1进行解码(FEC Mode 1 Encoder support)为例;第7个比特位(Bit 6)用于指示:第二设备是否支持FEC模式2进行解码(FEC Mode 2 Encoder support),表1中以Bit 6用于指示第二设备支持FEC模式2进行解码(FEC Mode 2 Encoder support)为例;第8个比特位(Bit 7)用于指示:第二设备是否支持FEC模式3进行解码(FEC Mode 3 Encoder support),表1中以Bit 7用于指示第二设备支持FEC模式3进行解码(FEC Mode 3 Encoder support)为例。
又示例地,继续以检纠错模式为FEC模式为例,TSB消息中还可以包括FEC模式控制(Mode Control)字段(也即上述控制字段),该FEC模式控制字段可以用于携带指示(如第一指示或第二指示)以及指示的响应(如第一指示的响应或第二指示的响应)。表2是FEC模式控制字段的解释说明,如表2所示,该FEC模式控制字段可以包括8个比特位,前3个比特位可以用于表示第一设备发送的指示,用于指示第一设备希望第二设备采用的模式;第4个比特位可以用于表示第二设备发送的指示的响应,用于指示第二设备是否允许采用第一指示或第二指示所指示的模式;第5到第8个比特位可以为预留位,不表示任何信息。
表2
Figure PCTCN2021079507-appb-000002
继续参考表2,前3个比特位具有不同的值时可以表示不同的指示。比如,二进制数“000”表示第一设备选择的模式为旁路模式(Encoder Bypass),也即是不采用FEC模式进行编码。又比如,“001”表示第一设备希望第二设备采用的模式为:FEC编码模式0(FEC coder Mode 0),“010”表示第一设备希望第二设备采用的模式为:FEC编码模式1(FEC coder Mode 1),“011”表示第一设备希望第二设备采用的模式为:FEC编码模式2(FEC coder Mode 2),“100”表示第一设备希望第二设备采用的模式为:FEC编码模式3(FEC coder Mode 3)。二进制数 “101”至“111”为:预留位(Reserved),如果第一设备还支持更多的模式,则可以用“101”至“111”来表示更多的模式,比如用“101”表示第一设备希望第二设备采用的模式为:FEC编码模式4,本申请实施例对此不做限定。表2中第4个比特位表示的指示的响应为:拒绝FEC模式控制(FEC mode control Reject),即表示第二设备不允许采用第一设备所指示的模式。表2中第5到第8个比特位当前为预留位(Reserved)。
需要说明的是,表2中以3个比特位来表示第一设备发送的指示,当然,在该FEC模式控制字段中,也可以用4个或5个比特位来表示第一设备发送的指示。比如,第一设备可选择的FEC模式较多时,3个比特位就无法表示完所有的FEC模式,此种情况下可以用前4个或5个比特位来表示第一设备发送的指示,相应地,用第5个或6个比特位表示第二设备发送的指示的响应。可以根据实际情况进行调整,本申请实施例对此不做限定。
还需要说明的是,前述FEC能力字段和FEC模式控制字段位于TSB消息中的不同比特位,比如FEC能力字段位于TSB消息的前8个比特位,FEC模式控制字段位于第9至16个比特位,当然FEC能力字段和FEC模式控制字段的顺序也可以调换,本申请实施例对此不做限定。
再示例地,TSB消息中的第17和第18个比特位可以为上述校验字段,用于携带对FEC能力字段和FEC模式控制字段的校验信息。在一种实现方式中,第17个比特位可以用于携带对TSB消息前个8比特位的校验信息,第18个比特位可以用于携带对TSB消息第9至16个比特位的校验信息。当然,校验信息也可以有其他的携带方式,本申请实施例对此不做限定。校验字段携带的校验信息为上文所述的第一校验信息。
图5是本申请实施例提供的一种数据处理装置50的结构示意图,该数据处理装置50可以应用于第一设备。如图5所示,该数据处理装置50可以包括:第一获取模块501、第一确定模块502、第一发送模块503和第一解码模块504。
第一获取模块501,用于获取第一设备和第二设备之间的数据链路的第一状态参数。
第一确定模块502,用于根据第一状态参数在多种检纠错模式中确定第一模式。
第一发送模块503,用于向第二设备发送第一指示,第一指示用于指示第二设备采用第一模式对数据进行编码。
第一解码模块504,用于采用第一模式对数据进行解码。
可选地,多个检纠错模式与多个参数范围一一对应,第一确定模块502用于确定多个参数范围中,第一状态参数所在的第一参数范围,进而确定第一参数范围对应的检纠错模式为第一模式。
可选地,数据处理装置50还可以包括:
第二获取模块(图5中未示出),用于在采用第一模式对数据进行解码之后,获取数据链路的第二状态参数。
第二确定模块(图5中未示出),用于在第二状态参数位于第一参数范围外时,确定多个参数范围中第二状态参数所在的第二参数范围。
第三确定模块(图5中未示出),用于确定第二参数范围对应的检纠错模式为第二模式。
第二发送模块(图5中未示出),用于向第二设备发送第二指示,第二指示用于指示第二设备采用第二模式对数据进行编码。
切换模块(图5中未示出),用于将第一模式切换为第二模式。
第二解码模块(图5中未示出),用于采用第二模式对数据进行解码。
可选地,数据处理装置50还可以包括:
第一接收模块(图5中未示出),用于在采用第二模式对数据进行解码之前,接收第二设备发送的第二指示的响应,第二指示的响应用于指示第二设备是否允许采用第二模式对数据进行编码。
切换模块(图5中未示出),用于在第二指示的响应用于指示第二设备允许采用第二模式时,将第一模式切换为第二模式。
可选地,数据处理装置50还可以包括:
第二接收模块(图5中未示出),用于在根据第一状态参数在多个检纠错模式中确定第一模式之前,接收第二设备发送的第一能力信息,第一能力信息用于指示第二设备支持的检纠错模式。
第四确定模块(图5中未示出),用于根据第一能力信息以及第一设备支持的检纠错模式,确定多个检纠错模式。其中,多个检纠错模式属于第一设备和第二设备均支持的检纠错模式。
可选地,数据处理装置50还可以包括:
第三接收模块(图5中未示出),用于在采用第一模式对数据进行解码之前,接收第二设备发送的第一指示的响应,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。
第一解码模块504,用于在第一指示的响应用于指示第二设备允许采用第一模式时,采用第一模式对数据进行解码。
可选地,数据处理装置50还可以包括:
第四接收模块(图5中未示出),用于在获取第一设备和第二设备之间的数据链路的第一状态参数之前,接收第二设备发送的包括第一校验信息的消息。
第一获取模块501,用于根据第一校验信息,获取第一状态参数。
可选地,数据处理装置50还可以包括:
第五接收模块(图5中未示出),在采用第一模式对数据进行解码之前,接收第二设备发送的采用第一模式对数据进行编码得到的编码数据,编码数据携带有第二校验信息。
第一解码模块504,用于采用第一模式对编码数据进行解码。
第二获取模块(图5中未示出),用于根据编码数据携带的第二校验信息,获取第二状态参数。
可选地,数据处理装置50还可以包括:
第六接收模块(图5中未示出),用于在获取第一设备和第二设备之间的数据链路的第一状态参数之前,接收第二设备发送的包括第一校验信息的消息。
第七接收模块(图5中未示出),用于在根据第一状态参数在多个检纠错模式中确定第一模式之前,接收第二设备发送的包括第一能力信息的消息,第一能力信息用于指示第二设备支持的检纠错模式。
第八接收模块(图5中未示出),用于在采用第一模式对数据进行解码之前,接收第二设备发送的包括第一指示的响应的消息,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。
第一发送模块503,用于向第二设备发送包括第一指示的消息。
第二发送模块(图5中未示出),用于向第二设备发送包括第二指示的消息。
第一接收模块(图5中未示出),用于接收第二设备发送的包括第二指示的响应的消息。
其中,消息包括:能力字段、控制字段和校验字段,能力字段用于携带第一能力信息,控制字段用于携带第一指示、第一指示的响应、第二指示或第二指示的响应,校验字段用于携带第一校验信息。
可选地,上述消息可以包括:TSB消息。
可选地,第一状态参数包括:纠前误码率。
可选地,检纠错模式包括FEC模式。
应理解的是,上述多个模块中的至少部分模块所执行的动作可以由同一个模块完成,相应地该至少部分模块可以集成为一个模块。例如,上述第一获取模块和第二获取模块可以集成为一个获取模块,上述第一确定模块、第二确定模块、第三确定模块和第四确定模块可以集成为一个确定模块,上述第一发送模块和第二发送模块可以集成为一个发送模块,上述第一解码模块和第二解码模块可以集成为一个解码模块,第一接收模块、第二接收模块、第三接收模块、第四接收模块、第五接收模块、第六接收模块、第七接收模块和第八接收模块可以集成为一个接收模块。另外,上述多个确定模块可以和切换模块集成为一个控制模块,用于控制检纠错模式的选择。本申请对此均不做限定。
综上所述,本申请实施例提供了一种数据处理装置,该数据处理装置应用于第一设备时,第一设备可以根据第二设备发送的第一能力信息确定双方都支持的检纠错模式,第一设备中还配置有检纠错模式与数据链路的第一状态参数的对应关系,使得第一设备可以根据获取到的数据链路的第一状态参数确定第一模式。之后,第一设备可以指示第二设备采用第一模式编码,第一设备采用第一模式解码,从而实现了对传输数据的检纠错。在申请实施例提供的方法中,第一设备和第二设备可以支持多种检纠错模式,并且可以根据数据链路的状态参数确定采用的检纠错模式,使得检纠错技术的应用更加灵活。
此外,在运用第一模式进行数据传输后,第一设备还可以在数据传输的过程中检测数据链路的第二状态参数,并可以在第二状态参数与第一模式不匹配时,指示第二设备将第一模式切换为第二模式。实现了在数据传输的过程中,根据当前数据链路的状态切换检纠错模式,灵活性更强,有利于提高数据传输系统的性能。
图6是本申请实施例提供的另一种数据处理装置60的结构示意图,该数据处理装置60可以应用于第二设备。如图6所示,该数据处理装置60可以包括:第一接收模块601和第一编码模块602。
第一接收模块601,用于接收第一设备发送的第一指示,第一指示用于指示第二设备采用第一模式对数据进行编码。
第一编码模块602,用于根据第一指示,采用第一模式对数据进行编码。
可选地,数据处理装置60还可以包括:
第二接收模块,用于在采用第一模式对数据进行编码之后,接收第一设备发送的第二指示,第二指示用于指示第二设备采用第二模式对数据进行编码。
切换模块(图6中未示出),用于将第一模式切换为第二模式。
第二编码模块(图6中未示出),用于采用第二模式对数据进行编码。
可选地,数据处理装置60还可以包括:
第一确定模块(图6中未示出),用于在采用第二模式对数据进行编码之前,根据模式选择条件,确定是否允许采用第二模式对数据进行编码。
第一发送模块(图6中未示出),用于向第一设备发送第二指示的响应,第二指示的响应用于指示第二设备是否允许采用第二模式对数据进行编码。
切换模块(图6中未示出),用于在确定允许采用所述第二模式对数据进行编码时,将第一模式切换为第二模式。
可选地,数据处理装置60还可以包括:
第二发送模块(图6中未示出),用于在采用第二模式对数据进行编码之前,向第一设备发送第一能力信息,第一能力信息用于指示第二设备支持的检纠错模式。
可选地,数据处理装置60还可以包括:
第二确定模块(图6中未示出),用于在采用第一模式对数据进行编码之前,根据模式选择条件,确定是否允许采用第一模式对数据进行编码。
第三发送模块(图6中未示出),用于向第一设备发送第一指示的响应,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。
第一编码模块602,用于在确定允许采用第一模式对数据进行编码时,并采用第一模式对数据进行编码。
可选地,数据处理装置60还可以包括:
第四发送模块(图6中未示出),用于在接收第一设备发送的第一指示之前,向第一设备发送包括第一校验信息的消息。
可选地,数据处理装置60还可以包括:
第五发送模块(图6中未示出),用于在采用第一模式对数据进行编码之后,向第一设备发送采用第一模式对数据进行编码得到的编码数据,编码数据携带有第二校验信息。
可选地,数据处理装置60还可以包括:
第六发送模块(图6中未示出),用于在接收第一设备发送的第一指示之前,向第一设备发送包括第一能力信息的消息,第一能力信息用于指示第二设备支持的检纠错模式。
第七发送模块(图6中未示出),用于向第一设备发送包括第一指示的响应的消息,第一指示的响应用于指示第二设备是否允许采用第一模式对数据进行编码。
第一接收模块601,用于接收第一设备发送的包括第一指示的消息。
第二接收模块(图6中未示出),用于接收第一设备发送的包括第二指示的消息。
第三发送模块(图6中未示出),用于向第一设备发送包括第一指示的响应的消息。
其中,消息包括:能力字段、控制字段和校验字段,能力字段用于携带第一能力信息,控制字段用于携带第一指示、第一指示的响应、第二指示或第二指示的响应。校验字段用于携带第一校验信息。
可选地,上述消息可以包括:TSB消息。
可选地,第一状态参数包括:纠前误码率。
可选地,检纠错模式包括FEC模式。
应理解的是,上述多个模块中的至少部分模块所执行的动作可以由同一个模块完成,相应地该至少部分模块可以集成为一个模块。例如,上述第一接收模块和第二接收模块可以集 成为一个接收模块,上述第一编码模块和第二编码模块可以集成为一个编码模块,上述第一确定模块和第二确定模块可以集成为一个确定模块,上述第一发送模块、第二发送模块、第三发送模块、第四发送模块、第五发送模块、第六发送模块和第七发送模块可以集成为一个发送模块。另外,上述多个确定模块可以和切换模块集成为一个控制模块,用于控制检纠错模式的选择。本申请对此不做限定。
综上所述,本申请实施例提供了一种数据处理装置,该数据处理装置可以应用于第二设备。第二设备可以向第一设备发送的第一能力信息,使得第一设备可以确定双方都支持的检纠错模式。第二设备可以根据第一设备的指示采用第一模式编码,而第一设备采用第一模式解码,从而实现了对传输数据的检纠错。在申请实施例提供的方法中,第一设备和第二设备可以支持多种检纠错模式,并且可以根据数据链路的状态参数确定采用的检纠错模式,使得检纠错技术的应用更加灵活。
此外,在运用第一模式进行数据传输后,第一设备还可以在数据传输的过程中检测数据链路的第二状态参数,并可以在第二状态参数与第一模式不匹配时,根据第一设备的指示将第一模式切换为第二模式。实现了在数据传输的过程中,根据当前数据链路的状态切换检纠错模式,灵活性更强,有利于提高数据传输系统的性能。
需要说明的是,由于在本申请提供的实施例中,第一设备和第二设备均可以同时作为发送端和接收端,从而第一设备和第二设备均可以同时包括上述数据处理装置50和数据处理装置60中的模块。此外,作为一种实现方式,发送端检纠错模式的确定和切换,与接收端检纠错模式的确定和切换,可以由同一个模块来执行。
示例地,以检纠错模式为FEC模式为例,同时作为发送端和接收端的设备中可以包括FEC开关电路,该FEC开关电路可以根据需要采用的FEC模式,选择性地开启该种FEC模式的FEC电路,以便于设备可以利用该FEC电路采用该FEC模式进行编码和/或解码。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的通信设备以及各模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
应理解的是,本申请实施例提供的数据处理设备还可以用专用集成电路(application-specific integrated circuit,ASIC)实现,或可编程逻辑器件(programmable logic device,PLD)实现,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。也可以通过软件实现上述方法实施例提供的数据处理方法,当通过软件实现上述方法实施例提供的数据处理方法时,该数据处理设备中的各个模块也可以为软件模块。
图7是本申请实施例提供的又一种数据处理装置的结构示意图,该数据处理装置可以应用于本申请实施例提供的数据传输系统中。该数据处理装置可以为上述实施例所述的第一设备,或者可以为上述实施例所述的第二设备。
参考图7,该通信设备可以包括:处理器701、存储器702、通信接口703和总线704。其中, 总线704用于连接处理器701、存储器702和通信接口703。通过通信接口703(可以是有线或者无线)可以实现与其他设备之间的通信连接。存储器702中存储有计算机程序7021,该计算机程序7021用于实现各种应用功能。当图5或图6所示的通信设备中的各个模块采取软件模块的方式实现时,这些软件模块对应的程序可以存储在通信设备的存储器702中。
应理解,在本申请实施例中,处理器701可以是CPU,该处理器701还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、GPU或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。
处理器701还可以进一步包括硬件芯片,上述硬件芯片可以是专用集成电路(ASIC),可编程逻辑器件(PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(CPLD),现场可编程逻辑门阵列(FPGA),通用阵列逻辑(GAL)或其任意组合。
存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、便携式只读存储器(compact disc read-only memory,CD-ROM)、快闪存储器(flash memory)、硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。存储器702还可以包括上述种类存储器的任意组合。
总线704除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线704。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该计算机可读存储介质在计算机上运行时,使得计算机执行如上述方法实施例提供的数据处理方法。
本申请实施例还提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例提供的数据处理方法。
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可 以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘(SSD)。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本申请的一些具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可对这些实施例做出另外的变更和修改。因此,所附权利要求意欲解释为包括上述实施例以及落入本申请范围的说是有变更和修改。因此,本申请保护范围应以所述权利要求的保护范围为准。
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。例如,在不脱离各种所述示例的范围的情况下,第一设备可以被称为第二设备,并且类似地,第二设备可以被称为第一设备。
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上,例如,多个通信设备是指两个或两个以上的通信设备。本申请中术语“和/或”的含义是指“和”与“或”两种情况中的任意一种。本文中术语“系统”和“网络”经常可互换使用。
以上所述,仅为本申请的可选实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (29)

  1. 一种数据处理方法,其特征在于,应用于第一设备,所述方法包括:
    获取所述第一设备和第二设备之间的数据链路的第一状态参数;
    根据所述第一状态参数在多种检纠错模式中确定第一模式;
    向所述第二设备发送第一指示,所述第一指示用于指示所述第二设备采用所述第一模式对数据进行编码;
    采用所述第一模式对数据进行解码。
  2. 根据权利要求1所述的方法,其特征在于,所述多个检纠错模式与多个参数范围一一对应,所述根据所述状态信息在多个检纠错模式中确定第一模式,包括:
    确定所述多个参数范围中,所述第一状态参数所在的第一参数范围;
    确定所述第一参数范围对应的检纠错模式为所述第一模式。
  3. 根据权利要求2所述的方法,其特征在于,在采用所述第一模式对数据进行解码之后,所述方法还包括:
    获取所述数据链路的第二状态参数;
    在所述第二状态参数位于所述第一参数范围外时,确定所述多个参数范围中所述第二状态参数所在的第二参数范围;
    确定所述第二参数范围对应的检纠错模式为第二模式;
    向所述第二设备发送第二指示,所述第二指示用于指示所述第二设备采用所述第二模式对数据进行编码;
    将所述第一模式切换为所述第二模式;
    采用所述第二模式对数据进行解码。
  4. 根据权利要求3所述的方法,其特征在于,在采用所述第二模式对数据进行解码之前,所述方法还包括:
    接收所述第二设备发送的第二指示的响应,所述第二指示的响应用于指示所述第二设备是否允许采用所述第二模式对数据进行编码;
    将所述第一模式切换为所述第二模式,包括:
    在所述第二指示的响应用于指示所述第二设备允许采用所述第二模式时,将所述第一模式切换为所述第二模式。
  5. 根据权利要求1至4任一所述的方法,其特征在于,在根据所述第一状态参数在多个检纠错模式中确定第一模式之前,所述方法还包括:
    接收所述第二设备发送的第一能力信息,所述第一能力信息用于指示所述第二设备支持的检纠错模式;
    根据所述第一能力信息以及所述第一设备支持的检纠错模式,确定所述多个检纠错模式;其中,所述多个检纠错模式属于所述第一设备和所述第二设备均支持的检纠错模式。
  6. 根据权利要求1至5任一所述的方法,其特征在于,在采用所述第一模式对数据进行解码之前,所述方法还包括:
    接收所述第二设备发送的第一指示的响应,所述第一指示的响应用于指示所述第二设备是否允许采用所述第一模式对数据进行编码;
    采用所述第一模式对数据进行解码,包括:
    在所述第一指示的响应用于指示所述第二设备允许采用所述第一模式时,采用所述第一模式对数据进行解码。
  7. 根据权利要求1至6任一所述的方法,其特征在于,在获取所述第一设备和第二设备之间的数据链路的第一状态参数之前,所述方法还包括:
    接收所述第二设备发送的包括第一校验信息的消息;
    获取所述第一设备和第二设备之间的数据链路的第一状态参数,包括:
    根据所述第一校验信息,获取所述第一状态参数。
  8. 根据权利要求3或4所述的方法,其特征在于,在采用所述第一模式对数据进行解码之前,所述方法还包括:
    接收所述第二设备发送的采用所述第一模式对数据进行编码得到的编码数据,所述编码数据携带有第二校验信息;
    采用所述第一模式对数据进行解码,包括:
    采用所述第一模式对所述编码数据进行解码;
    获取所述数据链路的第二状态参数,包括:
    根据所述编码数据携带的所述第二校验信息,获取所述第二状态参数。
  9. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    在获取所述第一设备和第二设备之间的数据链路的第一状态参数之前,接收所述第二设备发送的包括第一校验信息的消息;
    在根据所述第一状态参数在多个检纠错模式中确定第一模式之前,接收所述第二设备发送的包括第一能力信息的消息,所述第一能力信息用于指示所述第二设备支持的检纠错模式;
    根据所述第一能力信息以及所述第一设备支持的检纠错模式,确定所述多个检纠错模式;其中,所述多个检纠错模式属于所述第一设备和所述第二设备均支持的检纠错模式;
    在采用所述第一模式对数据进行解码之前,接收所述第二设备发送的包括所述第一指示的响应的消息,所述第一指示的响应用于指示所述第二设备是否允许采用所述第一模式对数据进行编码;
    获取所述第一设备和第二设备之间的数据链路的第一状态参数,包括:根据所述第一校验信息,获取所述第一状态参数;
    采用所述第一模式对数据进行解码,包括:在所述第一指示的响应用于指示所述第二设备允许采用所述第一模式时,采用所述第一模式对数据进行解码;
    向所述第二设备发送第一指示,包括:向所述第二设备发送包括所述第一指示的消息;
    向所述第二设备发送第二指示,包括:向所述第二设备发送包括所述第二指示的消息;
    接收所述第二设备发送的第二指示的响应,包括:接收所述第二设备发送的包括所述第二指示的响应的消息;
    其中,所述消息包括:能力字段、控制字段和校验字段,所述能力字段用于携带所述第一能力信息,所述控制字段用于携带所述第一指示、所述第一指示的响应、所述第二指示或所述第二指示的响应;所述校验字段用于携带所述第一校验信息。
  10. 根据权利要求7或9所述的方法,其特征在于,所述消息包括:训练码流块TSB消息。
  11. 根据权利要求1至10任一所述的方法,其特征在于,所述第一状态参数包括:纠前误码率。
  12. 根据权利要求1至11任一所述的方法,其特征在于,所述检纠错模式包括前向纠错FEC模式。
  13. 一种数据处理方法,其特征在于,应用于第二设备,所述方法包括:
    接收第一设备发送的第一指示,所述第一指示用于指示所述第二设备采用第一模式对数据进行编码;
    根据所述第一指示,采用所述第一模式对数据进行编码。
  14. 根据权利要求13所述的方法,其特征在于,在采用所述第一模式对数据进行编码之后,所述方法还包括:
    接收第一设备发送的第二指示,所述第二指示用于指示所述第二设备采用所述第二模式对数据进行编码;
    将所述第一模式切换为所述第二模式;
    采用所述第二模式对数据进行编码。
  15. 根据权利要求14所述的方法,其特征在于,在采用所述第二模式对数据进行编码之前,所述方法还包括:
    根据模式选择条件,确定是否允许采用所述第二模式对数据进行编码;
    向第一设备发送所述第二指示的响应,所述第二指示的响应用于指示所述第二设备是否允许采用所述第二模式对数据进行编码;
    将所述第一模式切换为所述第二模式,包括:
    在确定允许采用所述第二模式对数据进行编码时,将所述第一模式切换为所述第二模式。
  16. 根据权利要求13至15任一所述的方法,其特征在于,在采用所述第二模式对数据进行编码之前,所述方法还包括:
    向所述第一设备发送第一能力信息,所述第一能力信息用于指示所述第二设备支持的检纠错模式。
  17. 根据权利要求13至16任一所述的方法,其特征在于,在采用所述第一模式对数据进行编码之前,所述方法还包括:
    根据模式选择条件,确定是否允许采用所述第一模式对数据进行编码;
    向所述第一设备发送所述第一指示的响应,所述第一指示的响应用于指示所述第二设备是否允许采用所述第一模式对数据进行编码;
    采用所述第一模式对数据进行解码,包括:
    在确定允许采用所述第一模式对数据进行编码时,并采用所述第一模式对数据进行编码。
  18. 根据权利要求13至17任一所述的方法,其特征在于,在接收第一设备发送的第一指示之前,所述方法还包括:
    向所述第一设备发送包括第一校验信息的消息。
  19. 根据权利要求14或15所述的方法,其特征在于,在采用所述第一模式对数据进行编码之后,所述方法还包括:
    向所述第一设备发送采用所述第一模式对数据进行编码得到的编码数据,所述编码数据携带有第二校验信息。
  20. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    在接收第一设备发送的第一指示之前,向所述第一设备发送包括第一校验信息的消息;
    在接收第一设备发送的第一指示之前,向所述第一设备发送包括第一能力信息的消息,所述第一能力信息用于指示所述第二设备支持的检纠错模式;
    在采用所述第一模式对数据进行编码之前,根据模式选择条件,确定是否允许采用所述第一模式对数据进行编码,以及向所述第一设备发送包括所述第一指示的响应的消息,所述第一指示的响应用于指示所述第二设备是否允许采用所述第一模式对数据进行编码;
    采用所述第一模式对数据进行解码,包括:在确定允许采用所述第一模式对数据进行编码时,采用所述第一模式对数据进行编码;
    所述接收第一设备发送的第一指示,包括:接收所述第一设备发送的包括所述第一指示的消息;
    所述接收第一设备发送的第二指示,包括:接收所述第一设备发送的包括所述第二指示的消息;
    向所述第一设备发送所述第一指示的响应,包括:向所述第一设备发送包括所述第一指示的响应的消息;
    其中,所述消息包括:能力字段、控制字段和校验字段,所述能力字段用于携带所述第一能力信息,所述控制字段用于携带所述第一指示、所述第一指示的响应、所述第二指示或所述第二指示的响应;所述校验字段用于携带所述第一校验信息。
  21. 根据权利要求18或20所述的方法,其特征在于,所述消息包括:训练码流块TSB消息。
  22. 根据权利要求13至21任一所述的方法,其特征在于,所述第一状态参数包括:纠前误码率。
  23. 根据权利要求13至22任一所述的方法,其特征在于,所述检纠错模式包括前向纠错FEC模式。
  24. 一种数据处理装置,其特征在于,应用于第一设备,所述装置包括:
    获取模块,用于获取所述第一设备和第二设备之间的数据链路的第一状态参数;
    确定模块,用于根据所述第一状态参数在多种检纠错模式中确定第一模式;
    发送模块,用于向所述第二设备发送第一指示,所述第一指示用于指示所述第二设备采用所述第一模式对数据进行编码;
    解码模块,用于采用所述第一模式对数据进行解码。
  25. 一种数据处理装置,其特征在于,应用于第二设备,所述装置包括:
    接收模块,用于接收第一设备发送的第一指示,所述第一指示用于指示所述第二设备采用第一模式对数据进行编码;
    编码模块,用于根据所述第一指示,采用所述第一模式对数据进行编码。
  26. 一种数据处理装置,其特征在于,所述数据处理装置包括:处理器和存储器,所述处理器用于执行所述存储器中存储的程序,以实现权利要求1至12任一所述的数据处理方法。
  27. 一种数据处理装置,其特征在于,所述数据处理装置包括:处理器和存储器,所述处理器用于执行所述存储器中存储的程序,以实现权利要求13至23任一所述的数据处理方法。
  28. 一种数据传输系统,其特征在于,所述数据传输系统包括:第一设备和第二设备;
    所述第一设备为:权利要求24所述的数据处理装置,或者,权利要求26所述的数据处理装置;
    所述第二设备为:权利要求25所述的数据处理装置,或者,权利要求27所述的数据处理装置。
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1至12任一项所述的方法,或权利要求13至23任一项所述的方法。
PCT/CN2021/079507 2021-03-08 2021-03-08 数据处理方法、设备及数据传输系统 WO2022187993A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP21929476.6A EP4283893A4 (en) 2021-03-08 2021-03-08 DATA PROCESSING METHOD, APPARATUS AND DATA TRANSMISSION SYSTEM
CN202180095346.2A CN116941200A (zh) 2021-03-08 2021-03-08 数据处理方法、设备及数据传输系统
PCT/CN2021/079507 WO2022187993A1 (zh) 2021-03-08 2021-03-08 数据处理方法、设备及数据传输系统
US18/462,497 US20230418704A1 (en) 2021-03-08 2023-09-07 Data processing method and device, and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/079507 WO2022187993A1 (zh) 2021-03-08 2021-03-08 数据处理方法、设备及数据传输系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/462,497 Continuation US20230418704A1 (en) 2021-03-08 2023-09-07 Data processing method and device, and data transmission system

Publications (1)

Publication Number Publication Date
WO2022187993A1 true WO2022187993A1 (zh) 2022-09-15

Family

ID=83227283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079507 WO2022187993A1 (zh) 2021-03-08 2021-03-08 数据处理方法、设备及数据传输系统

Country Status (4)

Country Link
US (1) US20230418704A1 (zh)
EP (1) EP4283893A4 (zh)
CN (1) CN116941200A (zh)
WO (1) WO2022187993A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732639A (zh) * 2002-12-26 2006-02-08 松下电器产业株式会社 无线通信系统、通信终端装置、基站装置以及无线通信方法
US20140223265A1 (en) * 2012-05-07 2014-08-07 Kent Lusted Network system configured for resolving forward error correction during a link training sequence
CN107211311A (zh) * 2015-01-29 2017-09-26 株式会社Ntt都科摩 终端及通信系统
CN107483144A (zh) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 前向纠错反馈信息传输方法、装置
CN108684050A (zh) * 2018-04-12 2018-10-19 京信通信系统(中国)有限公司 前向纠错功能的调节方法、装置、计算机设备和存储介质
CN109150422A (zh) * 2018-08-16 2019-01-04 海能达通信股份有限公司 一种数据传输方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433969B1 (en) * 2010-11-18 2013-04-30 Applied Micro Circuits Corporation Forward error correction (FEC) auto negotiation for an optical transport network (OTN)
JP5992058B2 (ja) * 2012-07-10 2016-09-14 インテル・コーポレーション データモード時に順方向誤り訂正を解決するよう構成されているネットワークシステム
US11740958B2 (en) * 2019-11-27 2023-08-29 Intel Corporation Multi-protocol support on common physical layer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732639A (zh) * 2002-12-26 2006-02-08 松下电器产业株式会社 无线通信系统、通信终端装置、基站装置以及无线通信方法
US20140223265A1 (en) * 2012-05-07 2014-08-07 Kent Lusted Network system configured for resolving forward error correction during a link training sequence
CN107211311A (zh) * 2015-01-29 2017-09-26 株式会社Ntt都科摩 终端及通信系统
CN107483144A (zh) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 前向纠错反馈信息传输方法、装置
CN108684050A (zh) * 2018-04-12 2018-10-19 京信通信系统(中国)有限公司 前向纠错功能的调节方法、装置、计算机设备和存储介质
CN109150422A (zh) * 2018-08-16 2019-01-04 海能达通信股份有限公司 一种数据传输方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4283893A4 *

Also Published As

Publication number Publication date
US20230418704A1 (en) 2023-12-28
EP4283893A1 (en) 2023-11-29
CN116941200A (zh) 2023-10-24
EP4283893A4 (en) 2024-03-13

Similar Documents

Publication Publication Date Title
US10554224B2 (en) Method and apparatus for processing data with polar encoding
TWI549435B (zh) 用以產生可變碼長之極化碼的方法及裝置
WO2018202057A1 (zh) 传输数据的方法、基站和终端设备
USRE44487E1 (en) Command packet packing to mitigate CRC overhead
WO2019062145A1 (zh) Ploar编码方法和编码装置、译码方法和译码装置
US20100138573A1 (en) System including transmitter and receiver
WO2018141212A1 (zh) 一种信息的传输方法、译码方法和装置
BR112019013900B1 (pt) Método de processamento de informação, dispositivo de comunicações, aparelho, meio de armazenamento legível por computador e sistema de comunicações
ES2931080T3 (es) Método y dispositivo de comprobación de redundancia cíclica
TW201629981A (zh) 記憶體控制模組與方法以及錯誤更正碼編/解碼電路與方法
US6327688B1 (en) Data bus with automatic data integrity verification and verification method
US20210141685A1 (en) System and method for improving efficiency and reducing system resource consumption in a data integrity check
CN107947902A (zh) 一种高速接口芯片的数据差错处理系统及方法
JP2024505862A (ja) データ伝送方法、装置、装置及びシステム、並びにコンピュータ可読記憶媒体
WO2022187993A1 (zh) 数据处理方法、设备及数据传输系统
WO2016179743A1 (zh) 一种编码装置及方法
CN110519004B (zh) 一种编码方法及相关设备
CN102098130A (zh) 具有高速度和高可靠性的高效动态传输
CN102103559B (zh) 一种带有AES和ECC的多通道NANDflash控制器
US7627800B2 (en) Communicating with error checking to a device capable of operating according to an address prefix serial bus protocol
US11283465B2 (en) Network data prediction method, network data processing device and network data processing method
WO2022062946A1 (zh) 一种数据编码方法、数据解码方法及通信装置
WO2012059039A1 (zh) 一种无线发送、接收方法以及装置
CN210274035U (zh) 一种不等错误保护增强型的无速率编译码装置
WO2018202151A1 (zh) 通信方法和通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21929476

Country of ref document: EP

Kind code of ref document: A1

DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
ENP Entry into the national phase

Ref document number: 2021929476

Country of ref document: EP

Effective date: 20230823

WWE Wipo information: entry into national phase

Ref document number: 202180095346.2

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE