A data transmission method and system based on channel state
By dynamically adjusting the data frame length and verification algorithm at both the sending and receiving ends, the inefficiency and channel blocking problems of fixed frame length transmission under changing channel conditions are solved, enabling flexible data transmission and improving communication quality and security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- MATRICTIME DIGITAL TECH CO LTD
- Filing Date
- 2026-04-20
- Publication Date
- 2026-07-14
AI Technical Summary
Existing fixed frame length transmission methods lack the ability to adapt to channel transmission parameters and cannot dynamically adjust the data frame length according to the real-time channel status, resulting in difficulty in guaranteeing communication quality. In particular, when channel conditions change, the transmission efficiency is low and channel blocking is likely to occur.
By pre-setting the same key pool and verification algorithm allocation table at the sending and receiving ends, the initial data unit length and verification algorithm of data segmentation are dynamically adjusted according to the channel quality parameters to generate and transmit ciphertext units and corresponding verification codes. Integrity verification and decryption are performed at the receiving end to ensure that the data frame length adapts to the channel state.
It enables flexible adjustment of data frame length, improves transmission efficiency, reduces retransmissions and channel congestion, ensures data integrity and reliability, and enhances data fluency and security in wireless or wired channel environments.
Smart Images

Figure CN122394781A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission technology, and in particular to a data transmission method and system based on channel state. Background Technology
[0002] In existing communication systems, data transmission typically involves dividing the raw data into fixed-length transmission frames, which are then transmitted through a channel. This fixed-frame-length transmission mechanism can achieve relatively reliable communication when channel conditions are good and transmission parameters are stable, offering advantages such as simplicity and low processing overhead. However, in real-world communication environments, channel transmission parameters are often dynamically changing and affected by various factors, such as signal attenuation, multipath effects, interference noise, variations in mobile terminal speed, and network load fluctuations.
[0003] When channel transmission parameters are good, fixed-length data frames can be transmitted normally, and the receiving end can deframe and reassemble them according to a predetermined format, ensuring communication quality. However, when channel transmission parameters deteriorate, such as a decrease in signal-to-noise ratio, an increase in bit error rate, or a reduction in available bandwidth, continuing to use the same fixed frame length for data transmission can lead to serious problems. For example, under deteriorating channel conditions, longer data frames are more susceptible to bit errors, triggering whole-frame retransmission and reducing transmission efficiency. Simultaneously, a fixed frame length cannot adapt to dynamic changes in channel capacity. When channel transmission capacity decreases, continuing to send data with the original frame length will exacerbate channel congestion, further straining already limited transmission resources and worsening communication quality. Conversely, under favorable channel conditions, a fixed frame length may fail to fully utilize channel capacity, limiting the increase in transmission throughput.
[0004] It is evident that existing fixed-frame-length transmission methods lack the ability to adapt to channel transmission parameters and cannot dynamically adjust the size of transmitted data frames according to real-time channel conditions. Therefore, how to adjust the data frame length in real-time and flexibly when channel transmission parameters change, in order to optimize transmission efficiency, reduce retransmission overhead, and avoid channel congestion, has become a pressing technical challenge in this field. Summary of the Invention
[0005] Objective: This invention aims to provide a data transmission method and system based on channel state, addressing the problem that current fixed-frame-length transmission methods lack adaptability to channel transmission parameters, leading to difficulties in guaranteeing communication quality. This invention can flexibly adjust the data frame length in real time when channel transmission parameters change, thereby optimizing transmission efficiency and avoiding channel congestion.
[0006] Technical solution: This invention provides a data transmission method based on channel state, the method comprising the following steps:
[0007] (1) Both the sending and receiving ends have the same key pool and verification algorithm allocation table pre-set;
[0008] (2) The sending end obtains the channel quality parameters of the current transmission channel and the original data to be sent. Based on the channel quality parameters, it dynamically determines the initial data unit length and the corresponding verification algorithm for data segmentation. Then, it segments the original data into multiple data units according to the initial data unit length. Then, it obtains the corresponding key from the key pool to encrypt the multiple data units to obtain multiple ciphertext units. It uses the corresponding verification algorithm to generate the corresponding initial verification code for each ciphertext unit. Then, it combines the ciphertext unit, the index of the key used by the ciphertext unit, the corresponding initial verification code and the identifier of the verification algorithm into a transmission frame and sends it to the receiving end through the transmission channel.
[0009] (3) The receiving end receives the transmission frame from the sending end and parses the transmission frame, extracts the ciphertext unit, the index of the key used in the ciphertext unit, the initial check code, and the identifier of the check algorithm in the frame header of the transmission frame; then generates the corresponding intermediate check code for the ciphertext unit according to the check algorithm corresponding to the check algorithm identifier, compares the initial check code with the intermediate check code to perform integrity check on the ciphertext unit, and determines whether to decrypt the ciphertext unit based on the check result; finally, the receiving end reassembles the decrypted data unit to obtain the original data.
[0010] Furthermore, the verification algorithm allocation table includes a weak verification algorithm part and a strong verification algorithm part; wherein, the weak verification algorithm part includes multiple weak verification algorithms, and each weak verification algorithm has its own identifier; the strong verification algorithm part includes multiple strong verification algorithms, and each strong verification algorithm has its own identifier; the computational complexity of the weak verification algorithm is lower than that of the strong verification algorithm.
[0011] Furthermore, the step of dynamically determining the initial data unit length and corresponding verification algorithm for data segmentation based on channel quality parameters refers to:
[0012] When the channel quality parameter is higher than the preset first threshold, the first data length is used and any weak verification algorithm is randomly selected.
[0013] When the channel quality parameter is lower than the preset second threshold, the second data length is used and any strong verification algorithm is randomly selected; wherein, the first data length is greater than the second data length.
[0014] Furthermore, the header of the transmission frame also includes the sequence number of the current data unit; the channel quality parameters include bandwidth and signal-to-noise ratio.
[0015] Furthermore, the step of comparing the initial check code with the intermediate check code to perform integrity verification on the ciphertext unit, and determining whether to decrypt the ciphertext unit based on the verification result, refers to:
[0016] The receiving end compares the initial checksum with the intermediate checksum. If the comparison is successful, it obtains the decryption key based on the index of the key used in the ciphertext unit, decrypts the ciphertext unit using the decryption key to obtain the data unit, submits the data unit to the upper layer application, and sends an acknowledgment signal back to the sending end. If the comparison fails, it sends a retransmission request back to the sending end and discards the current transmission frame.
[0017] Furthermore, the method also includes step (4): in response to receiving an acknowledgment signal from the receiver, the sending end continues to send the next transmission frame; in response to receiving a retransmission request from the receiver, the sending end retransmits the corresponding transmission frame.
[0018] Meanwhile, the sending end records the sequence number of the current data unit in the header of the transmitted frame that has been sent but has not received an acknowledgment signal. When the time without receiving an acknowledgment signal exceeds the preset retransmission time threshold, the initial data unit length corresponding to the current data unit is reduced and the corresponding verification algorithm is updated for data retransmission.
[0019] Furthermore, the weak verification algorithms include the Adler-32 algorithm, checksum algorithm, XOR check algorithm, and FNV hash algorithm; the strong verification algorithms include the MD5 algorithm, SHA-256 algorithm, CRC32 algorithm, and SM3 algorithm.
[0020] The present invention also includes a system for a data transmission method based on channel state, the system comprising a transmitter and a receiver connected via a wireless or wired transmission channel;
[0021] The transmitting end includes a channel monitoring module, a parameter decision module, a data segmentation module, a verification coding module, and a frame encapsulation and transmission module connected in sequence.
[0022] The channel monitoring module is used to obtain the channel quality parameters of the current transmission channel;
[0023] The parameter decision module is used to dynamically determine the initial data unit length and corresponding verification algorithm for data segmentation based on channel quality parameters.
[0024] The data segmentation module is used to segment the original data into multiple data units according to the initial data unit length, and then obtain the corresponding key from the key pool to encrypt the multiple data units to obtain multiple ciphertext units.
[0025] The verification encoding module is used to generate a corresponding initial verification code for each ciphertext unit using a verification algorithm;
[0026] The frame encapsulation and transmission module is used to combine the ciphertext unit, the index of the key used in the ciphertext unit, the corresponding initial check code and the identifier of the check algorithm into a transmission frame, and send it to the receiving end through the transmission channel;
[0027] The receiving end includes a frame receiving and parsing module, a verification execution module, a decryption and feedback module, and a data reconstruction module connected in sequence.
[0028] The frame receiving and parsing module is used to receive and parse the transmission frames from the sending end, extracting the ciphertext unit, the index of the key used in the ciphertext unit, the initial checksum, and the identifier of the check algorithm in the frame header of the transmission frame.
[0029] The verification execution module is used to generate a corresponding intermediate verification code for the ciphertext unit according to the verification algorithm corresponding to the verification algorithm identifier, and compare the initial verification code with the intermediate verification code to perform integrity verification on the ciphertext unit.
[0030] The decryption and feedback module is used to obtain the decryption key according to the index of the key used by the ciphertext unit when the verification is successful, decrypt the ciphertext unit to obtain the data unit using the decryption key, and send an acknowledgment signal back to the sending end; when the verification fails, it sends a retransmission request back to the sending end and discards the current transmission frame.
[0031] The data recombination module is used to recombine multiple data units that have passed verification and decryption into complete original data in their original order.
[0032] Furthermore, the transmitting end also includes a retransmission control module connected to the frame encapsulation and transmission module. The retransmission control module is used to decide whether to continue sending the next transmission frame or retransmit the corresponding transmission frame based on the acknowledgment signal or retransmission request fed back by the receiving end.
[0033] The beneficial effects of this invention are:
[0034] (1) The present invention obtains the quality parameters of the current transmission channel in real time at the transmitting end, and dynamically determines the initial data unit length of the data segmentation accordingly, so that the data frame length can adaptively match the channel state; when the channel quality is good, a longer data length is used to reduce the overhead, and when the channel quality deteriorates, a shorter data length is used to reduce the retransmission cost, thereby significantly improving the overall transmission efficiency.
[0035] (2) In this invention, an initial check code is generated for each ciphertext unit at the sending end, and an intermediate check code is generated at the receiving end using the same check algorithm for comparison, thereby realizing the integrity check of each ciphertext unit; this mechanism can promptly detect ciphertext units that have been erroneous or tampered with during transmission, prevent invalid data from entering the decryption process, and effectively ensure the integrity and reliability of the data;
[0036] (3) Since the data unit length can be dynamically adjusted according to the channel state and the corresponding verification algorithm is used, the present invention reduces the high packet loss rate and retransmission number caused by excessively long data units, and avoids channel blocking caused by repeated failures due to fixed frame length in poor channel conditions, thereby improving the smoothness of data transmission in unstable environments such as wireless or wired channels.
[0037] (4) The sending end obtains a key from the preset key pool to encrypt the data unit, and the receiving end quickly locates the corresponding key according to the key index carried in the transmission frame to decrypt it, which takes into account both the security of data transmission and the low overhead of key management; at the same time, the preset mechanism of key pool and verification algorithm allocation table enables the encryption and verification processes to be executed efficiently and collaboratively.
[0038] (5) After completing the integrity verification and decryption, the receiving end reassembles the data unit to obtain the original data. Since the entire segmentation, encryption, verification and decryption process is based on dynamically negotiated and consistent parameters (initial data unit length, verification algorithm, key index), it ensures that the receiving end can accurately recover the original data of the sending end, thus improving the end-to-end correctness of the system. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a schematic diagram of the system structure of this application;
[0041] Figure 2 This is a flowchart illustrating the method described in this application;
[0042] Figure 3 A schematic diagram for generating a transmission frame;
[0043] Figure 4 This is a schematic diagram illustrating the parsing, verification, and decryption of data frames. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] In existing communication systems, data transmission typically involves dividing the raw data into fixed-length transmission frames, which are then transmitted through the channel. This fixed-frame-length transmission mechanism provides relatively reliable communication when channel transmission parameters are good and stable. However, when channel transmission parameters deteriorate, continuing to transmit data using the same fixed frame length leads to serious problems. For example, under deteriorating channel conditions, longer data frames are more susceptible to bit errors, triggering whole-frame retransmissions and reducing transmission efficiency. Furthermore, when channel transmission capacity decreases, continuing to send data with the original frame length exacerbates channel congestion, further straining already limited transmission resources and worsening communication quality. Therefore, how to adjust the data frame length in real-time and flexibly under changing channel transmission parameters to optimize transmission efficiency, reduce retransmission overhead, and avoid channel congestion has become a pressing technical challenge in this field.
[0046] In view of this, this embodiment proposes a data transmission system based on channel state, such as... Figure 1 As shown, the system includes a transmitter 1 and a receiver 2 that are connected via a wireless or wired transmission channel.
[0047] The transmitter 1 includes a channel monitoring module 11, a parameter decision module 12, a data segmentation module 13, a check coding module 14, and a frame encapsulation and transmission module 15 connected in sequence.
[0048] The channel monitoring module 11 is used to acquire the channel quality parameters of the current transmission channel, including bandwidth and signal-to-noise ratio, and may also include transmission rate, etc. The parameter decision module 12 is used to dynamically determine the initial data unit length and corresponding verification algorithm of data segmentation according to the channel quality parameters. That is, different channel quality parameters result in different initial data unit lengths and corresponding verification algorithms, dynamically adjusting the data transmission length. The data segmentation module 13 is used to segment the original data into multiple data units according to the initial data unit length, and then obtain the corresponding key from the key pool to encrypt the multiple data units to obtain multiple ciphertext units. The verification encoding module 14 is used to generate a corresponding initial verification code for each ciphertext unit using a verification algorithm. The frame encapsulation and transmission module 15 is used to combine the ciphertext unit, the index of the key used in the ciphertext unit, the corresponding initial verification code, and the identifier of the verification algorithm into a transmission frame, and send it to the receiving end 2 through the transmission channel. This means that each ciphertext unit and its corresponding index and other information form a transmission frame, and multiple transmission frames are sent to the receiving end 2 sequentially through the transmission channel.
[0049] The transmitting end 1 also includes a retransmission control module 16 connected to the frame encapsulation and transmitting module 15. The retransmission control module 16 is used to decide whether to continue sending the next transmission frame or retransmit the corresponding transmission frame based on the acknowledgment signal or retransmission request fed back by the receiving end 2.
[0050] The receiving end 2 includes a frame receiving and parsing module 21, a verification execution module 22, a decryption and feedback module 23, and a data reconstruction module 24 connected in sequence.
[0051] The frame receiving and parsing module 21 receives and parses the transmission frame from the sending end 1, extracting the ciphertext unit, the index of the key used in the ciphertext unit, the initial checksum, and the identifier of the check algorithm in the frame header of the transmission frame. The check execution module 22 generates the corresponding intermediate checksum for the ciphertext unit according to the check algorithm corresponding to the check algorithm identifier, and compares the initial checksum with the intermediate checksum to perform integrity check on the ciphertext unit. The decryption and feedback module 23, when the check passes, obtains the decryption key according to the index of the key used in the ciphertext unit, decrypts the ciphertext unit with the decryption key to obtain the data unit, and sends an acknowledgment signal back to the sending end 1. When the check fails, it sends a retransmission request back to the sending end 1 and discards the current transmission frame. The data reassembly module 24 reassembles the multiple data units that have passed the check and been decrypted into complete original data in their original order.
[0052] By dynamically adjusting the data unit length according to the channel condition and cooperating with the corresponding verification algorithm, this invention reduces the high packet loss rate and retransmission number caused by excessively long data units, while avoiding channel blocking caused by repeated failures due to fixed frame length in poor channel conditions, thereby improving the smoothness of data transmission in unstable environments such as wireless or wired channels.
[0053] This embodiment also proposes a data transmission method based on channel state, such as... Figure 2 As shown, the method includes the following steps:
[0054] (1) Both the sending end 1 and the receiving end 2 have the same key pool and verification algorithm allocation table. The verification algorithm allocation table includes a weak verification algorithm part and a strong verification algorithm part. The weak verification algorithm part includes multiple weak verification algorithms, and each weak verification algorithm has its own identifier. The weak verification algorithms include Adler-32 algorithm, checksum algorithm, XOR check algorithm and FNV hash algorithm, etc. The strong verification algorithm part includes multiple strong verification algorithms, and each strong verification algorithm has its own identifier. The strong verification algorithms include MD5 algorithm, SHA-256 algorithm, CRC32 algorithm and SM3 algorithm, etc. It should be noted that the computational complexity of the weak verification algorithm is lower than that of the strong verification algorithm.
[0055] (2) The transmitting end 1 obtains the channel quality parameters of the current transmission channel and the original data to be transmitted. The channel quality parameters may include bandwidth and signal-to-noise ratio, etc. The channel quality of the current transmission channel can be seen from the channel quality parameters. Then, the initial data unit length of the data segmentation and the corresponding verification algorithm are dynamically determined according to the channel quality parameters. Specifically, when the channel quality parameters are higher than the preset first threshold (e.g., 70%), it means that the channel quality is good at this time. The first data length is adopted and any weak verification algorithm is randomly selected. When the channel quality parameters are lower than the preset second threshold (e.g., 40%), it means that the channel quality is poor at this time. The second data length is adopted and any strong verification algorithm is randomly selected. The first data length is greater than the second data length. In this embodiment, the first data length can be 256 bytes and the second data length can be 128 bytes. It can be seen that by obtaining the quality parameters of the current transmission channel in real time by the transmitting end 1, and dynamically determining the initial data unit length of the data segmentation accordingly, the data frame length can adaptively match the channel state. When the channel quality is good, a longer data length is used to reduce the overhead. When the channel quality is poor, a shorter data length is used to reduce the retransmission cost, thereby significantly improving the overall transmission efficiency.
[0056] The original data is then divided into multiple data units according to the initial data unit length. The corresponding keys are then obtained from the key pool to encrypt these data units, resulting in multiple ciphertext units. A corresponding initial checksum is generated for each ciphertext unit using a dynamically determined checksum algorithm based on channel quality parameters. Next, the ciphertext unit, the index of the key used in the ciphertext unit, the corresponding initial checksum, and the identifier of the checksum algorithm are combined into a transmission frame and sent to receiver 2 through the transmission channel. Figure 3 As shown; that is, each ciphertext unit and its corresponding index and other information form a transmission frame, and multiple transmission frames are sent to the receiving end 2 in sequence through the transmission channel; the frame header of the transmission frame also includes the sequence number of the current data unit, which is convenient for the data unit to be reassembled later;
[0057] (3) The receiving end 2 receives the transmission frame from the sending end 1 and parses the transmission frame, extracting the ciphertext unit, the index of the key used in the ciphertext unit, the initial check code, and the identifier of the check algorithm in the frame header of the transmission frame; then, according to the check algorithm corresponding to the check algorithm identifier, it generates the corresponding intermediate check code for the ciphertext unit, compares the initial check code with the intermediate check code to perform integrity verification of the ciphertext unit, and determines whether to decrypt the ciphertext unit based on the verification result; In this invention, the sending end 1 generates an initial check code for each ciphertext unit, and the receiving end 2 uses the same check algorithm to generate an intermediate check code for comparison, thereby realizing integrity verification of each ciphertext unit; This mechanism can promptly detect ciphertext units that have been erroneous or tampered with during transmission, avoid invalid data from entering the decryption process, and effectively ensure the integrity and reliability of the data;
[0058] Among these, performing integrity verification on the ciphertext unit and determining whether to decrypt the ciphertext unit based on the verification result means: such as Figure 4 As shown, receiver 2 compares the initial checksum with the intermediate checksum. If the comparison passes, it obtains the decryption key based on the index of the key used in the ciphertext unit, decrypts the ciphertext unit using the decryption key to obtain the data unit, submits the data unit to the upper-layer application, and sends an acknowledgment signal back to sender 1. If the comparison fails, it sends a retransmission request back to sender 1 and discards the current transmission frame. Finally, receiver 2 reassembles the decrypted data units to obtain the original data.
[0059] For sender 1, in response to receiving an acknowledgment signal from receiver 2, it continues to send the next transmission frame; in response to receiving a retransmission request from receiver 2, it retransmits the corresponding transmission frame; simultaneously, sender 1 records the sequence number of the current data unit in the header of the transmitted frames for which no acknowledgment signal has been received, and if the time without receiving an acknowledgment signal exceeds a preset retransmission time threshold, it reduces the initial data unit length corresponding to the current data unit and updates the corresponding verification algorithm for data retransmission. Since no acknowledgment signal has been received for a long time, it can be determined that the current channel quality has deteriorated and the transmission capacity has decreased. If data is still sent according to the original frame length, it will exacerbate channel congestion, making the already limited transmission resources even more strained and further deteriorating communication quality. Therefore, it is necessary to reduce the corresponding initial data unit length and update the corresponding verification algorithm for data retransmission to ensure normal data transmission. Thus, sender 1 can dynamically adjust the unit length of subsequent data segments and update the corresponding verification algorithm based on the acknowledgment signal, retransmission request, or judgment of channel deterioration from receiver 2.
[0060] In summary, the transmitting end 1 of this invention obtains a key from a pre-set key pool to encrypt the data unit, and the receiving end 2 quickly locates the corresponding key for decryption based on the key index carried in the transmission frame, thus balancing data transmission security with low key management overhead. Simultaneously, the pre-set mechanism of the key pool and verification algorithm allocation table enables efficient collaborative execution of the encryption and verification processes. Furthermore, after completing integrity verification and decryption, the receiving end 2 reassembles the data unit to obtain the original data. Since the entire segmentation, encryption, verification, and decryption process is based on dynamically negotiated and consistent parameters (initial data unit length, verification algorithm, key index), it ensures that the receiving end 2 can accurately recover the original data from the transmitting end 1, improving the end-to-end correctness of the system.
Claims
1. A data transmission method based on channel state, characterized in that, The method includes the following steps: (1) Both the sending and receiving ends have the same key pool and verification algorithm allocation table pre-set; (2) The sending end obtains the channel quality parameters of the current transmission channel and the original data to be sent. Based on the channel quality parameters, it dynamically determines the initial data unit length and the corresponding verification algorithm for data segmentation. Then, it segments the original data into multiple data units according to the initial data unit length. Then, it obtains the corresponding key from the key pool to encrypt the multiple data units to obtain multiple ciphertext units. It uses the corresponding verification algorithm to generate the corresponding initial verification code for each ciphertext unit. Then, it combines the ciphertext unit, the index of the key used by the ciphertext unit, the corresponding initial verification code and the identifier of the verification algorithm into a transmission frame and sends it to the receiving end through the transmission channel. (3) The receiving end receives the transmission frame from the sending end and parses the transmission frame, extracts the ciphertext unit, the index of the key used in the ciphertext unit, the initial check code, and the identifier of the check algorithm in the frame header of the transmission frame; then generates the corresponding intermediate check code for the ciphertext unit according to the check algorithm corresponding to the check algorithm identifier, compares the initial check code with the intermediate check code to perform integrity check on the ciphertext unit, and determines whether to decrypt the ciphertext unit based on the check result; finally, the receiving end reassembles the decrypted data unit to obtain the original data.
2. The data transmission method based on channel state according to claim 1, characterized in that: The verification algorithm allocation table includes a weak verification algorithm part and a strong verification algorithm part; wherein, the weak verification algorithm part includes multiple weak verification algorithms, and each weak verification algorithm has its own identifier; the strong verification algorithm part includes multiple strong verification algorithms, and each strong verification algorithm has its own identifier; the computational complexity of the weak verification algorithm is lower than that of the strong verification algorithm.
3. The data transmission method based on channel state according to claim 2, characterized in that: The dynamic determination of the initial data unit length and corresponding verification algorithm for data segmentation based on channel quality parameters refers to: When the channel quality parameter is higher than the preset first threshold, the first data length is used and any weak verification algorithm is randomly selected. When the channel quality parameter is lower than the preset second threshold, the second data length is used and any strong verification algorithm is randomly selected; wherein, the first data length is greater than the second data length.
4. The data transmission method based on channel state according to claim 1, characterized in that: The header of the transmission frame also includes the sequence number of the current data unit; the channel quality parameters include bandwidth and signal-to-noise ratio.
5. The data transmission method based on channel state according to claim 1, characterized in that: The process of comparing the initial checksum with the intermediate checksum to perform integrity verification on the ciphertext unit, and determining whether to decrypt the ciphertext unit based on the verification result, refers to: The receiving end compares the initial checksum with the intermediate checksum. If the comparison is successful, it obtains the decryption key based on the index of the key used in the ciphertext unit, decrypts the ciphertext unit using the decryption key to obtain the data unit, submits the data unit to the upper layer application, and sends an acknowledgment signal back to the sending end. If the comparison fails, it sends a retransmission request back to the sending end and discards the current transmission frame.
6. The data transmission method based on channel state according to claim 5, characterized in that: The method further includes step (4): the sending end continues to send the next transmission frame in response to receiving the acknowledgment signal from the receiving end; and retransmits the corresponding transmission frame in response to receiving the retransmission request from the receiving end. Meanwhile, the sending end records the sequence number of the current data unit in the header of the transmitted frame that has been sent but has not received an acknowledgment signal. When the time without receiving an acknowledgment signal exceeds the preset retransmission time threshold, the initial data unit length corresponding to the current data unit is reduced and the corresponding verification algorithm is updated for data retransmission.
7. The data transmission method based on channel state according to claim 2, characterized in that: The weak verification algorithms include Adler-32 algorithm, checksum algorithm, XOR check algorithm and FNV hash algorithm; the strong verification algorithms include MD5 algorithm, SHA-256 algorithm, CRC32 algorithm and SM3 algorithm.
8. A system based on the channel state-based data transmission method according to any one of claims 1 to 7, characterized in that: The system includes a transmitter and a receiver that are connected via a wireless or wired transmission channel. The transmitting end includes a channel monitoring module, a parameter decision module, a data segmentation module, a verification coding module, and a frame encapsulation and transmission module connected in sequence. The channel monitoring module is used to obtain the channel quality parameters of the current transmission channel; The parameter decision module is used to dynamically determine the initial data unit length and corresponding verification algorithm for data segmentation based on channel quality parameters. The data segmentation module is used to segment the original data into multiple data units according to the initial data unit length, and then obtain the corresponding key from the key pool to encrypt the multiple data units to obtain multiple ciphertext units. The verification encoding module is used to generate a corresponding initial verification code for each ciphertext unit using a verification algorithm; The frame encapsulation and transmission module is used to combine the ciphertext unit, the index of the key used in the ciphertext unit, the corresponding initial check code and the identifier of the check algorithm into a transmission frame, and send it to the receiving end through the transmission channel; The receiving end includes a frame receiving and parsing module, a verification execution module, a decryption and feedback module, and a data reconstruction module connected in sequence. The frame receiving and parsing module is used to receive and parse the transmission frames from the sending end, extracting the ciphertext unit, the index of the key used in the ciphertext unit, the initial checksum, and the identifier of the check algorithm in the frame header of the transmission frame. The verification execution module is used to generate a corresponding intermediate verification code for the ciphertext unit according to the verification algorithm corresponding to the verification algorithm identifier, and compare the initial verification code with the intermediate verification code to perform integrity verification on the ciphertext unit. The decryption and feedback module is used to obtain the decryption key according to the index of the key used by the ciphertext unit when the verification is successful, decrypt the ciphertext unit to obtain the data unit using the decryption key, and send an acknowledgment signal back to the sending end; when the verification fails, it sends a retransmission request back to the sending end and discards the current transmission frame. The data recombination module is used to recombine multiple data units that have passed verification and decryption into complete original data in their original order.
9. The system according to claim 8, characterized in that: The transmitting end also includes a retransmission control module connected to the frame encapsulation and transmission module. The retransmission control module is used to decide whether to continue sending the next transmission frame or retransmit the corresponding transmission frame based on the acknowledgment signal or retransmission request fed back by the receiving end.