This is a continuation of Int'l Patent App. No. PCT/CN2021/141089, filed on Dec. 24, 2021, which claims priority to Chinese Patent App. No. 202011628010.1, filed on Dec. 30, 2020, both of which are incorporated by reference.
This disclosure relates to the field of communication technologies, and in particular, to a baseband data transmission method and system.
There is a large quantity of high-speed interconnection interfaces in a modern computer and a wired communication system. Baseband transmission is used for the high-speed interconnection interface, that is, data transmission is performed without carrier modulation. This is different from a wireless communication system. Because there is a variety of noise in a sender, a receiver, and a channel of data, a transmitted signal is distorted, and consequently a bit error is caused on a receiver side. A higher frequency indicates a lower signal-to-noise ratio and a higher bit error rate. Therefore, a transmission bandwidth of the signal cannot be excessively high. However, with development of technologies, an increasingly high bandwidth requirement and an increasingly low delay requirement are imposed on the high-speed interconnection interface. An existing non-return-to-zero (NRZ) modulation technology has a low delay but a low bandwidth, and a 4-level pulse-amplitude (PAM4) modulation technology has a high bandwidth but a high delay.
Embodiments of this disclosure provide a baseband data transmission method and system, to select, based on types of to-be-transmitted data packets, sending paths having different performance indicators, thereby satisfying requirements of the to-be-transmitted data packets.
This disclosure discloses a baseband data transmission system, including: a first switching unit, a first sending path, a second sending path, and a sender, where the first sending path and the second sending path are disposed in parallel, and the first sending path and the second sending path have different performance indicators; the first sending path is configured to modulate a to-be-transmitted data packet, and sending a modulated output to the first switching unit; the second sending path is configured to modulate the to-be-transmitted data packet, and sending a modulated output to the first switching unit; and the first switching unit is configured to connect to the first sending path and the second sending path, and select the output of the first sending path or the second sending path based on a type of the to-be-transmitted data packet.
The system disclosed in this embodiment includes the first sending path and the second sending path that have the different performance indicators. The first switching unit selects the output of one of the sending paths based on the type of the to-be-transmitted data packet, and sends the output to the sender. In this way, when there is to-be-transmitted data of a plurality of different types, the output of the appropriate sending path may be selected by using the first switching unit without rebooting the data transmission system or performing link renegotiation, so that hybrid transmission of data packets of a plurality of types in the system is implemented.
It should be noted that, that the first switching unit selects the output of one of the sending paths based on the type of the to-be-transmitted data packet means enabling a connection between the selected sending path and the sender.
In a possible implementation, the first sending path and the second sending path are configured to modulate the to-be-transmitted data packet, and output modulated data and modulation types.
In another possible implementation, the system further includes a receiver, an analysis unit, a first receiving path, a second receiving path, and a third switching unit, where the first receiving path and the second receiving path are disposed in parallel; the analysis unit is configured to receive an output from the receiver, extract the modulation type of the modulated data, and send the modulation type to the third switching unit; the first receiving path and the second receiving path are configured to demodulate the modulated data; and the third switching unit is configured to connect to the first receiving path and the second receiving path, and select an output of the first receiving path or the second receiving path based on the modulation type.
The data modulated by the sending paths carries the modulation types. After a receiving side receives the modulated data, the receiving paths demodulate the modulated data, and the third switching unit selects an appropriate receiving path based on the modulation type to enable, and uses an output of the receiving path as a final output, so that a modulation path that satisfies the modulation type is correctly identified on the receiving side.
In a possible implementation, the performance indicator of the sending path includes at least one of the following: a delay, a bit error rate, a bandwidth, and power consumption.
The system may further include a second switching unit configured to receive the to-be-transmitted data packet, and select a sending path based on the type of the to-be-transmitted data packet.
Before the sending path, a sending side may further include the second switching unit configured to select the sending path based on the type of the to-be-transmitted data packet, to avoid sending data on both the first sending path and the second sending path, so that system power consumption is reduced.
It should be noted that, when the sending side does not include the second switching unit, the to-be-transmitted data packet may be transmitted on both the first sending path and the second sending path. In this case, the first switching unit may correctly select, based on the type of the to-be-transmitted data packet, the appropriate path to receive the modulated data.
When the to-be-transmitted data packet is a short packet having a low-delay requirement, the first switching unit sends the to-be-transmitted data packet to the first sending path; when the to-be-transmitted data packet is a long packet having a low-delay requirement, the first switching unit divides the data packet into first data and second data, sends the first data to the first sending path, and sends the second data to the second sending path; or when the to-be-transmitted data packet is a data packet having a high-bandwidth requirement, and has no delay requirement, the first switching unit sends the to-be-transmitted data packet to the second sending path.
The first data is an operation instruction, and the second data is to-be-operated data.
A length m of the first data satisfies: m<n+2BR*T, where T is a codec delay, BR is a bitrate of a first modulator, and n is a quantity of bits of check data of an error correction encoder.
When the length of the first data satisfies the foregoing condition, performance is better by using the first sending path for sending.
In another possible implementation, the system may further include a fourth switching unit on a receiving side configured to receive the output of the receiver, and select a receiving path based on the modulation type.
The first sending path includes the first modulator, and the second sending path includes a second modulator.
A bit error rate of the first modulator is less than a bit error rate of the second modulator, a delay of the first sending path is less than a delay of the second sending path, and a bandwidth of the second modulator is greater than a bandwidth of the first modulator.
A voltage difference between adjacent levels output by the first modulator is greater than a voltage difference between adjacent levels output by the second modulator.
A level output by the first modulator is a subset of a level output by the second modulator. It should be noted that a level output by the first modulator may alternatively not be a subset of a level output by the second modulator. For example, levels used for the first modulator are two levels at a largest interval in PAM6 modulation, and levels used for the second modulator are four levels in the middle in the PAM6 modulation.
In a possible implementation, the first modulator is an NRZ modulator, the second modulator is a PAM4 modulator, the sender is a PAM4 sender, and the receiver is a PAM4 receiver.
A first demodulator on the first receiving path is an NRZ demodulator, and a second demodulator on the second receiving path is a PAM4 demodulator, where the NRZ demodulator is configured to receive a data packet from the receiver, and output, with a granularity of two bits, a high-order bit in every two bits as a demodulation output result.
A type parameter of the data packet includes at least one of the following: a bandwidth parameter, a delay parameter, and a length parameter.
According to a second aspect, an embodiment further provides a baseband data transmission method, applied to a baseband data transmission system, where the system includes a first switching unit, a first sending path, a second sending path, and a sender, the first sending path and the second sending path are disposed in parallel, and the first sending path and the second sending path have different performance indicators.
The method includes: The first sending path modulates a to-be-transmitted data packet, and sends a modulated output to the first switching unit. The second sending path modulates the to-be-transmitted data packet, and sends a modulated output to the first switching unit. The first switching unit connects to the first sending path and the second sending path, and selects the output of the first sending path or the second sending path based on a type of the to-be-transmitted data packet.
In a possible implementation, the first sending path and the second sending path modulate the to-be-transmitted data packet, and output modulated data and modulation types.
In another possible implementation, the system further includes a receiver, an analysis unit, a first receiving path, a second receiving path, and a third switching unit, where the first receiving path and the second receiving path are disposed in parallel.
The method further includes: The analysis unit receives an output from the receiver, extracts the modulation type of the modulated data, and sends the modulation type to the third switching unit. The first receiving path and the second receiving path demodulate the modulated data. The third switching unit connects to the first receiving path and the second receiving path, and selects an output of the first receiving path or the second receiving path based on the modulation type.
Optionally, the system further includes a second switching unit, and the method further includes:
The second switching unit receives the to-be-transmitted data packet, and selects a sending path based on the type of the to-be-transmitted data packet.
When the to-be-transmitted data packet is a short packet having a low-delay requirement, the first switching unit sends the to-be-transmitted data packet to the first sending path; when the to-be-transmitted data packet is a long packet having a low-delay requirement, the first switching unit divides the to-be-transmitted data packet into first data and second data, sends the first data to the first sending path, and sends the second data to the second sending path; or
When the to-be-transmitted data packet is a data packet having a high-bandwidth requirement, and has no delay requirement, the first switching unit sends the to-be-transmitted data packet to the second sending path. Optionally, the system further includes a fourth switching unit, and the method further includes: The fourth switching unit receives the output of the receiver, and selects a receiving path based on the modulation type.
According to the baseband data transmission method disclosed in embodiments, the first switching unit selects the output of one of the sending paths based on the type of the to-be-transmitted data packet, and sends the output to the sender. In this way, when there is to-be-transmitted data of a plurality of different types, the output of the appropriate sending path may be selected by using the first switching unit without rebooting the data transmission system or performing link renegotiation, so that the hybrid transmission of the data packets of the plurality of types in the system is implemented.
In the other approach, the NRZ modulation and the PAM4 modulation cannot satisfy requirements for a low delay and a high bandwidth, and switching between the NRZ modulation and the PAM4 modulation cannot be implemented.
Embodiments provide a data transmission method, apparatus, and system, to better satisfy requirements for a low delay and a high bandwidth of baseband signal transmission.
To describe beneficial effects of the solutions more clearly, as shown in
When the PAM4 modulation technology is used, a total delay of transmission of the data packet is a sum of the foregoing encoder delay, sender delay, channel delay, receiver delay, and decoder delay, and transmission time of the data packet.
When NRZ modulation is used, no encoder or decoder is needed, and delays introduced in a data transmission process are a sender delay, a channel delay, and a receiver delay. Therefore, a total delay of transmission of the data packet depends on the foregoing delays introduced in a data packet sending process and transmission time of the data packet.
For ease of description, a sum of the sender delay, the channel delay, and the receiver delay may be referred to as a basic delay, and the encoder delay and the decoder delay may be referred to as a codec delay.
An embodiment provides a method for simulating an NRZ sender by using a PAM4 sender. For example, the PAM4 sender may use only two levels, namely, level 0 and level 3 (for example, 0b11 and 0b00 in
When a virtual NRZ sender is implemented by using the PAM4 sender, the two levels that have a largest voltage difference are used, and one bit is sent for each symbol. In this case, the voltage difference between the two levels of the virtual NRZ sender is the same as that of a another NRZ sender. When PAM4 implements the virtual NRZ sender, only level 0 and level 3 are sent. On a receiving side, an NRZ demodulator determines a received level, and restores a binary data stream. If the received level is 0 or 1, and two corresponding bits are 00/01, the NRZ demodulator selects a high-order bit in the two bits, to determine that 0 is received. If the received level is 2 or 3, and two corresponding bits are 11/10, the NRZ demodulator selects a high-order bit in the two bits, to determine that 1 is received. Even if level 3 sent by the virtual NRZ sender is presented as level 2 on a receiver side due to impact such as a channel noise, the NRZ demodulator can still determine correct data.
It is assumed that the codec delay is T. When a length m of the to-be-sent data packet satisfies the following condition, the total delay of sending the data packet by using the virtual NRZ modulation is less than the total delay of sending the data packet by using the PAM4 modulation: m<n+2BR*T.
n+2BR*T is used as a preset threshold. When a quantity of bits of the to-be-sent data packet is less than the preset threshold, the to-be-sent data packet may be classified as a short packet. When a quantity of bits of the to-be-sent data packet is greater than the preset threshold, the to-be-sent data packet is classified as a long packet. It may be understood that, in a specific implementation scenario, a value of the preset threshold may be less than n+2BR*T. In this case, a short packet can be distinguished more accurately, so that data transmission efficiency is improved.
For example, when Codec delay T=10 ns, and Bit rate n/m=3% (56G PAM4), provided that valid data m is less than 543 bits and a total packet length m+n is less than 560 bits, a total delay of transmission using virtual NRZ is less than that of transmission using PAM4, and a receiving side may obtain a complete data packet earlier.
In embodiments, type parameters of a packet include a bandwidth parameter, a delay parameter, and a length parameter. The bandwidth parameter indicates whether a to-be-sent data packet has a high-bandwidth requirement, the delay parameter indicates whether the to-be-sent data packet has a low-delay requirement, and the length parameter indicates a length of the to-be-sent data packet. In a possible implementation, to-be-sent packets are classified into a delay-sensitive short packet, a delay-sensitive long packet, and a bandwidth-sensitive packet (which may be a long packet or a short packet).
As shown in the following table, embodiments provide a modulation scheme selection mechanism. An appropriate modulation scheme is selected based on a type of a to-be-sent data packet and depending on whether there are high-bandwidth and low-delay requirements.
In embodiments, a PAM4 sender is used to use different PAM4 level selection solutions for three types of packets, to implement hybrid modulation of PAM4 and virtual NRZ, and the modulation scheme can be switched in real time.
Further, a modulation type is added to a packet header of a data packet generated through modulation. When the modulation scheme is hybrid modulation of virtual NRZ and PAM4, a data size of the virtual NRZ modulation is further added to the packet header. For example, embodiments provide a data packet format, including a modulation type identifier, an NRZ length parameter, and a payload. For example, a modulation type identifier 0b111000 indicates the virtual NRZ modulation, a modulation type identifier 0b000111 indicates the PAM4 modulation, and a modulation type identifier 0b111111 indicates the hybrid modulation. When the modulation scheme is the hybrid modulation, the NRZ length parameter carries a data packet size of the NRZ modulation. Data packets generated in the foregoing three modulation schemes may be sent on a link in a hybrid manner. A receiving side determines, based on the modulation type identifier and the NRZ length parameter in the packet header, data on which NRZ modulation is performed or data on which PAM4 modulation is performed.
In another possible implementation, a modulation type may be carried in a control packet that does not include a payload, and indicate a modulation type and a length of a data packet after the control packet.
In still another possible implementation, a modulation type may be carried in a header of a modulated data packet, and indicate a modulation type and a length of the data packet. Further, either of NRZ modulation and PAM4 modulation may be used as a default modulation scheme, and modulated data output in the default modulation scheme does not carry a modulation type. A data packet output in a non-default modulation scheme carries a modulation type and a data length, so that the non-default modulation scheme and the default modulation scheme can be distinguished from each other.
Specifically, the delay-sensitive long packet is sent in a hybrid modulation scheme, and the NRZ length parameter is for distinguishing which parts of the data packet use the NRZ modulation and which parts use the PAM4 modulation.
In a possible implementation, in the hybrid modulation scheme, the first data may be an operation instruction, and the second data may be to-be-operated data. In this case, the operation instruction may be sent to a receiving side with a low delay in a virtual NRZ scheme. After receiving the operation instruction, the receiving side may need to perform another preparation operation used as a basis for subsequent processing of the to-be-operated data. In this scenario, the hybrid modulation scheme more efficiently uses time for performing the preparation operation by the receiving side, and efficiency is higher.
For the bandwidth-sensitive packet, according to the standard PAM4 modulation scheme, all four levels of PAM4 symbols are used, to implement high-bandwidth transmission.
In conclusion, according to a hybrid modulation technology provided in this embodiment, for transmission of a short packet, a low delay can be implemented, and data transmission can be completed in shorter time; and for transmission of a long packet, high-bandwidth and low-delay requirements can be satisfied.
Specifically, upper-layer software may indicate, by carrying the foregoing type parameters of the data packet in the to-be-sent data packet, a modulation scheme that needs to be used, or may indicate, by invoking different application programming interfaces (APIs), a modulation scheme that needs to be used, and may use three types of APIs, for example, a high-bandwidth transmission API, a low-delay transmission API, and a hybrid-mode API, to correspond to the foregoing three types of data packets respectively.
A sending path on which the NRZ modulator 602 is located may be a first sending path, a sending path on which the PAM4 modulator is located may be a second sending path, the first sending path and the second sending path are disposed in parallel, and the first sending path and the second sending path have different performance indicators. The first sending path and the second sending path modulate a to-be-transmitted data packet, and send modulated outputs to the first switching unit 605. The first switching unit 605 connects to the first sending path and the second sending path, and selects the output of the first sending path or the second sending path based on a type of the to-be-transmitted data packet.
The system disclosed in this embodiment includes the first sending path and the second sending path that have the different performance indicators. The first switching unit selects the output of one of the sending paths based on the type of the to-be-transmitted data packet, and sends the output to the sender. In this way, when there is to-be-transmitted data of a plurality of different types, the output of the appropriate sending path may be selected by using the first switching unit without rebooting the data transmission system or performing link renegotiation, so that hybrid transmission of data packets of a plurality of types in the system is implemented.
Correspondingly, a receiving path on which the NRZ demodulator 612 is located is a first receiving path, a receiving path on which the PAM4 demodulator 613 is located is a second receiving path, and the first receiving path and the second receiving path are disposed in parallel. The analysis unit 619 is configured to receive an output from the receiver 616, extract a modulation type of modulated data, and send the modulation type to the third switching unit 615.
The first receiving path and the second receiving path configured to demodulate the modulated data.
The third switching unit 615 is configured to connect to the first receiving path and the second receiving path, and select an output of the first receiving path or the second receiving path based on the modulation type.
A bit error rate of the NRZ modulator 602 is less than a bit error rate of the PAM4 modulator 603, a delay of the first sending path is less than a delay of the second sending path, and a bandwidth of the PAM4 modulator 603 is greater than a bandwidth of the NRZ modulator 602.
A voltage difference between adjacent levels output by the NRZ modulator 602 is greater than a voltage difference between adjacent levels output by the PAM4 modulator 603.
A level output by the NRZ modulator 602 is a subset of a level output by the PAM4 modulator 603. It should be noted that, when modulators on the first sending path and the second sending path are modulators of another type, a level output by the modulator on the first sending path may alternatively not be a subset of a level output by the modulator on the second sending path. For example, levels used for a first modulator are two levels at a largest interval in PAM6 modulation, and levels used for a second modulator are four levels in the middle in the PAM6 modulation.
A serializer/deserializer (SerDes) interface is used between the sender 606 and the receiver 616.
In a possible implementation, the first sending path may further include another error correction encoder (not shown in the figure). Correspondingly, the first receiving path includes another corresponding error correction decoder. Performance of the modulator and the encoder on the first sending path jointly determines a performance indicator of the first sending path. For example, the first sending path may be a low-delay path, and the second sending path is a high-bandwidth path. The performance indicator includes at least one of the following: a delay, a bit error rate, a bandwidth, and power consumption.
Corresponding to
Step 701: A second switching unit receives a to-be-sent data packet, and selects a modulation scheme based on a type of the data packet with reference to the foregoing Table 1. For a process of selecting the modulation scheme, refer to the descriptions in the foregoing embodiment. Details are not described herein again.
For example, the to-be-sent data packet is 00011011.
Step 702: When it is determined that NRZ modulation needs to be performed on the data packet, the second switching unit sends the data packet to an NRZ modulator, and step 704 is performed.
Step 703: When it is determined that PAM4 modulation needs to be performed on the data packet, the second switching unit sends the data packet to a PAM4 modulator, and step 705 is performed.
The second switching unit includes routing logic, and enables, based on the determined modulation scheme, a path that matches the modulation scheme.
When it is determined that hybrid modulation needs to be performed on the data packet, for a procedure of a hybrid modulation method, refer to an embodiment corresponding to
It should be noted that, in a possible implementation, the second switching unit is optional. When a baseband data transmission system does not include the second switching unit, the data packet may be transmitted on both a first sending path on which the NRZ modulator is located and a second sending path on which PAM4 modulator is located. A first switching unit selects a sending path based on the type of the data packet, and enables the sending path corresponding to the type of the data packet, thereby sending an output of the selected sending path to a sender.
When the baseband data transmission system includes the second switching unit, a sending path that is not selected may be disabled based on a selection result in step 701, so that power consumption can be further reduced.
Step 704: The NRZ modulator modulates the data packet to generate a modulated first data packet.
The modulated data packet carries the foregoing packet header structure and a payload, and the packet header structure includes a modulation type identifier and an NRZ length parameter. For example, a level of an electrical signal corresponding to all bits in the payload of the modulated data packet is 00033033. The NRZ length parameter is optional.
Step 705: The PAM4 modulator modulates the data packet to generate a modulated second data packet, and sends the second data packet to an error correction encoder.
The modulated data packet carries the foregoing header structure and a payload. For example, a level of an electrical signal corresponding to all bits in the payload of the modulated data packet is 0123. Because the PMA4 modulation is used in this case, an NRZ length parameter is optional, and a value may be null.
Step 706: The error correction encoder performs error correction encoding on the second data packet, to add check data x and generate a third data packet, where a modulation type identifier and an NRZ length parameter of the third data packet are the same as those of the second data packet, and a level of an electrical signal corresponding to all bits in a payload of the third data packet is 0123x.
Step 707: The first switching unit selects a sending path based on the type of the data packet, and sends the first data packet or the third data packet to a PAM4 sender.
Specifically, the first switching unit and the second switching unit may implement similar processing logic. When an encoding scheme corresponding to the type of the data packet is NRZ encoding, the first switching unit selects a first sending path, and sends a modulated bit stream generated by the NRZ modulator to the PAM4 sender. When an encoding scheme corresponding to the type of the data packet is PAM4 encoding, the first switching unit selects a second sending path, and sends a modulated bit stream generated by the PAM4 modulator to the PAM4 sender.
A format of data generated through modulation is the format in the foregoing embodiment. Details are not described in this embodiment again.
Step 708: The PAM4 sender sends the first data packet or the third data packet to a PAM4 receiver through a channel.
Step 709: The PAM4 receiver sends the data packet received from the channel to an analysis unit and a fourth switching unit.
Step 710: The analysis unit analyzes the packet header of the data packet, obtains the modulation type of the data packet, and notifies a third switching unit and the fourth switching unit of the modulation type.
The analysis unit on a receiving side may be combined into the fourth switching unit. The fourth switching unit implements two functions: packet analysis and connection switching.
It should be noted that, in a possible implementation, the fourth switching unit is optional. When the baseband data transmission system does not include the fourth switching unit, the receiver sends received modulated data to a first receiving path and a second receiving path separately, and the two receiving paths demodulate the modulated data separately. In this case, the third switching unit selects an appropriate receiving path based on the modulation type, that is, enables the selected receiving path, and outputs data demodulated by the receiving path, to obtain the original data packet.
When the baseband data transmission system includes the fourth switching unit, a receiving path that is not selected may be disabled, to reduce system power consumption.
Step 711: The fourth switching unit sends the data packet to an NRZ demodulator based on the modulation type of the data packet, and step 712 is performed; or the fourth switching unit sends the data packet to a PAM4 demodulator based on the modulation type of the data packet, and step 713 is performed.
For example, when the modulation type of the data packet is the NRZ modulation, a level of an electrical signal corresponding to all bits in the payload of the data packet is 00033033, and a corresponding binary data stream is 0000001111001111; or when the modulation type of the data packet is the PAM4 modulation, a level of an electrical signal corresponding to all bits in the payload of the data packet is 0123x.
Step 712: An NRZ demodulator demodulates the received data packet, and outputs the demodulated data packet.
For example, in this case, the NRZ demodulator selects a high-order bit in every two bits for output, and the demodulated data packet is 00011011.
Step 713: The PAM4 decoder decodes the data, an error correction decoder performs error correction decoding, outputs the decoded data packet, and sends the decoded data packet to a PAM4 demodulator, and the PAM4 demodulator outputs the demodulated data packet.
For example, a level of an electrical signal corresponding to all bits in a payload of the decoded data packet is 0123. The demodulated data packet output by the PAM4 demodulator is 00011011.
Step 714: The third switching unit selects the first receiving path or the second receiving path based on the modulation type sent by the analysis unit, to output the data packet from the NRZ demodulator or the PAM4 demodulator.
Corresponding to
Step 801: A second switching unit receives a to-be-sent data packet, determines a type of the to-be-sent data packet with reference to the foregoing Table 1, selects a modulation scheme based on the type of the data packet, and performs steps 802 and 803 when it is determined that hybrid modulation needs to be performed on the data packet. For processes of an NRZ modulation scheme and a PAM4 modulation scheme, refer to the descriptions in the foregoing embodiment. Details are not described herein again.
Step 802: The second switching unit splits the data packet into first data and second data, and sends the first data to an NRZ modulator.
A data packet splitting method is described in the foregoing embodiment. Details are not described in this embodiment again.
Step 803: The second switching unit sends the second data to a PAM4 modulator.
Step 804: The NRZ modulator modulates the first data to generate a modulated first data packet.
The modulated data packet carries the foregoing packet header structure, and includes a modulation type identifier, an NRZ length parameter, and a payload. The NRZ length parameter indicates a size of the first data.
Step 805: The PAM4 modulator modulates the second data to generate a modulated second data packet, and sends the second data packet to an error correction encoder.
Step 806: The error correction encoder performs error correction encoding on the second data packet, to add check data and generate a third data packet, and sends the third data packet to a first switching unit.
Step 807: The first switching unit combines the first data packet and the third data packet, and sends a combined data packet to a PAM4 sender.
Step 808: The PAM4 sender sends the combined data packet to a PAM4 receiver through a channel.
Step 809: The PAM4 receiver sends the data packet received from the channel to an analysis unit and a fourth switching unit.
Step 810: The analysis unit analyzes a packet header of the data packet, obtains a modulation type and an NRZ length parameter of the data packet, and notifies a third switching unit and the fourth switching unit of the modulation type and the NRZ length parameter.
Step 811: The fourth switching unit splits the received data packet into the first data packet and the third data packet based on the modulation type and the NRZ length parameter of the data packet, sends the first data packet to an NRZ demodulator, and sends the third data packet to an error correction decoder.
Step 812: An NRZ demodulator demodulates the received first data packet, and outputs the demodulated first data.
Step 813: The error correction decoder performs error correction decoding on the received third data packet, outputs the decoded data packet, and sends the decoded data packet to a PAM4 demodulator, and the PAM4 demodulator outputs the demodulated second data.
Step 814: The third switching unit receives the first data from the NRZ demodulator and the second data from the PAM4 demodulator, combines the first data and the second data based on the modulation type and the NRZ length parameter that are sent by the analysis unit, and outputs the original data packet, namely, the to-be-sent data packet in 801.
According to the data transmission method provided in this embodiment, the modulation scheme may be freely switched without rebooting a system. In other words, a switching unit only needs to select, based on the type of the data packet, a path corresponding to an appropriate modulation scheme. In this way, fast switching of the modulation scheme is implemented. Further, when NRZ modulation is used in a low-delay scenario, a codec may be disabled to reduce system power consumption.
It should be noted that the NRZ modulation and the PAM4 modulation in the foregoing embodiments are merely specific examples. In embodiments, the NRZ modulation is referred to as first modulation, and the PAM4 modulation is referred to as second modulation. The first modulation is a low-delay modulation scheme, and the second modulation is a high-bandwidth modulation scheme. It may be understood that the NRZ modulation may alternatively be replaced with another low-bit-error-rate modulation scheme, and the PAM4 modulation may alternatively be replaced with another high-bandwidth modulation scheme. For example, the NRZ modulation is replaced with a low-bit-error-rate PAM4 symbol sequence and low-delay FEC. In this way, a bandwidth of a low-delay part can be increased.
The system disclosed in embodiments includes the first sending path and the second sending path that have the different performance indicators. The first switching unit selects the output of one of the sending paths based on the type of the to-be-transmitted data packet, and sends the output to the sender. In this way, when there is to-be-transmitted data of a plurality of different types, the output may be selected from the appropriate sending path by using the first switching unit without rebooting the data transmission system or performing link renegotiation, so that the hybrid transmission of the data packets of the plurality of types in the system is implemented.
The foregoing descriptions are merely specific implementations, but are not intended to limit the protection scope of this disclosure. Any equivalent modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed shall fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202011628010.1 | Dec 2020 | CN | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2021/141089 | Dec 2021 | US |
Child | 18345628 | US |