Data transmission method and device, equipment and storage medium
By grouping, redundantly encoding and cross-arrangement of transmitted data at the sending end of unidirectional network communication, the impact of single packet loss in a unidirectional network on the overall data integrity is solved, and more efficient and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202411650986.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-19
AI Technical Summary
In one-way network communication, loss of a single packet can seriously affect the integrity of the overall data, resulting in reduced transmission efficiency.
The data to be transmitted is grouped and redundantly encoded at the sending end, the data packets are rearranged through a preset cross-arrangement method, and the data packets, header information and meta information are combined and then sent to the receiving end through a one-way network. The receiver reorganizes and corrects the data based on meta information to ensure data integrity.
Reduces the impact of individual packet loss on overall data integrity, improves transmission efficiency, and ensures data reliability through redundant encoding and error correction mechanisms.
Smart Images

Figure CN119483830A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a data transmission method, device, equipment and storage medium. Background Art
[0002] One-way network communication is a branch of network communication. It can only realize one-way data transmission from the sender to the receiver. It often causes errors such as packet loss and bit change due to network congestion, weak signal, rain attenuation, etc., and directly affects the receiver to restore the correct data. In order to avoid the impact of such errors on data transmission, it is necessary to process the original data at the sender and the receiver according to predetermined rules to ensure that the receiver can check and correct the received data, and finally restore the correct and available data. Traditional solutions are mostly implemented with the help of network hardware such as repeaters, and data verification and error correction are mainly for a single data packet. Losing a data packet means losing a piece of data, which affects the integrity of the overall data. The missing data packet needs to be supplemented by retransmission. In one-way communication, the receiver and the sender do not communicate information. In order to ensure the integrity of the data, the sender generally chooses to resend all data packets multiple times to ensure that the receiver can receive complete data, which seriously affects the transmission efficiency. Therefore, how to reduce the impact of a single data packet loss on the overall data integrity in the process of one-way network communication is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a data transmission method, device, equipment and storage medium, which can reduce the impact of a single data packet loss on the overall data integrity during a one-way network communication. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses a data transmission method, applied to a sending end, comprising:
[0005] Constructing data to be transmitted based on source data and verification data, grouping the data to be transmitted to obtain grouped data, and performing redundant encoding on each grouped data according to target redundant data to obtain encoded data groups;
[0006] Rearranging the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets, and combining the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain combined data; the target meta information is information representing the positioning information and verification information of the target data packets;
[0007] Sending each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data;
[0008] The receiving end determines target transmission data according to each of the reorganized data, and performs corresponding verification on the target transmission data to complete data transmission.
[0009] Optionally, grouping the data to be transmitted to obtain data in each group includes:
[0010] Determining a data packet length based on the data to be transmitted, a network maximum transmission unit, and a preset redundancy ratio;
[0011] The data to be transmitted are grouped based on the data group length to obtain the grouped data.
[0012] Optionally, the step of rearranging the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets includes:
[0013] Selecting each data in the encoded data group in turn to obtain selected data;
[0014] The selected data in the same position in each of the encoded data groups are combined to obtain corresponding target data packets.
[0015] Optionally, sending each of the combined data to a receiving end at a uniform speed through a unidirectional network so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data, including:
[0016] Determining a data transmission rate according to a data transmission carrying capacity of the unidirectional network;
[0017] The combined data are uniformly sent to a receiving end through the unidirectional network based on the data transmission rate, so that the receiving end reassembles the combined data based on the target meta information to obtain the reassembled data.
[0018] Optionally, the sending of each of the combined data to a receiving end at a uniform speed through a unidirectional network so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data, includes:
[0019] Each of the combined data is sent to a receiving end at a uniform speed through a unidirectional network, so that the receiving end determines the position information of each data in each of the combined data based on the positioning information of the target data packet, and reorganizes each of the combined data according to the position information to obtain each reorganized data.
[0020] Optionally, the determining, by the receiving end, target transmission data according to each of the reorganized data, and performing corresponding verification on the target transmission data to complete data transmission includes:
[0021] The receiving end determines redundant transmission data according to each of the reorganized data and the target redundant data, performs grouping error correction and de-redundancy operations on the redundant transmission data according to the target meta information, merges the corresponding error-corrected and de-redundancy data to obtain the target transmission data, and performs corresponding verification on the target transmission data to complete data transmission.
[0022] Optionally, after the receiving end determines the target transmission data according to each of the reorganized data and performs corresponding verification on the target transmission data, the method further includes:
[0023] If the target transmission data is successfully verified, the receiving end performs a corresponding operation according to the target transmission data;
[0024] If the target transmission data fails to be verified, the target transmission data is discarded.
[0025] In a second aspect, the present application discloses a data transmission device, applied to a sending end, comprising:
[0026] A data encoding module, used for constructing data to be transmitted based on source data and verification data, grouping the data to be transmitted to obtain each group data, and performing redundant encoding on each group data according to target redundant data to obtain each encoded data group;
[0027] A data combination module, used to rearrange the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets, and combine the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain the combined data; the target meta information is information representing the positioning information and verification information of the target data packets;
[0028] A data sending module, used for sending each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data;
[0029] The data verification module is used to determine the target transmission data according to each of the reorganized data through the receiving end, and perform corresponding verification on the target transmission data to complete the data transmission.
[0030] In a third aspect, the present application discloses an electronic device, comprising:
[0031] Memory, used to store computer programs;
[0032] The processor is used to execute the computer program to implement the steps of the aforementioned data transmission method.
[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned data transmission method are implemented.
[0034] In the present application, the transmitting end constructs the data to be transmitted based on the source data and the verification data, groups the data to be transmitted to obtain each group data, and performs redundant encoding on each group data according to the target redundant data to obtain each encoded data group; then, the encoded data groups are rearranged according to a preset cross arrangement method to obtain corresponding target data packets, and each target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data; the target meta information is information characterizing the positioning information and verification information of the target data packet; then, each combined data is uniformly sent to the receiving end through a unidirectional network, so that the receiving end recombines each combined data based on the target meta information to obtain each recombined data; finally, the receiving end determines the target transmission data according to each recombined data, and performs corresponding verification on the target transmission data to complete the data transmission. It can be seen that the present application groups the data to be transmitted, which is composed of source data and verification data, at the sending end, and then redundantly encodes each grouped data obtained by the grouping to obtain corresponding encoded data groups, and then rearranges the data in each encoded data group according to a preset cross-arrangement method to obtain a target data packet. Since the target data packet is composed of the data in each encoded data group, the impact factor of the loss of a single data packet on the overall data is reduced, and the target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data, and each combined data is sent to the receiving end at a uniform speed through a unidirectional network, so that after receiving the target data packet, the receiving end can decode the target data packet based on the meta information in the target data packet to obtain the source data and verification data as long as the packet loss amount is less than the redundant data amount, and perform corresponding operations based on the obtained source data and verification data, thereby reducing the impact of the loss of a single data packet on the overall data integrity during unidirectional network communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 A flow chart of a data transmission method disclosed in this application;
[0037] Figure 2 A schematic diagram of a specific process of data subpackaging and redundant coding provided by this application;
[0038] Figure 3 A schematic diagram of a specific process of data rearrangement, transmission and reassembly provided in this application;
[0039] Figure 4 A schematic diagram of a specific process of data error correction and reorganization provided by this application;
[0040] Figure 5 This is a schematic diagram of the structure of a data transmission device disclosed in this application;
[0041] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] At present, during one-way communication, data verification and error correction are mainly aimed at a single data packet. Losing a data packet means losing a section of data, which affects the integrity of the overall data. The missing data packet needs to be supplemented by retransmission. In one-way communication, there is no information communication between the receiver and the sender. In order to ensure data integrity, the sender generally chooses to retransmit all data packets multiple times to ensure that the receiving end can receive complete data, which seriously affects the transmission efficiency. In order to solve the above technical problems, the present application discloses a data transmission method, device, equipment and storage medium, which are applied to the sending end and can reduce the impact of the loss of a single data packet on the overall data integrity during one-way network communication.
[0044] See also Figure 1 As shown, an embodiment of the present invention discloses a data transmission method, which is applied to a sending end and includes:
[0045] Step S11, constructing data to be transmitted based on source data and verification data, grouping the data to be transmitted to obtain grouped data, and performing redundant encoding on each grouped data according to target redundant data to obtain encoded data groups.
[0046] In this embodiment, the transmitting end first constructs the data to be transmitted based on the source data and the verification data. It can be understood that the data to be transmitted = source data + verification data. In order to ensure the data security during the transmission process, the data to be transmitted obtained here is encrypted data, that is, the source data is the data obtained by encrypting the plaintext data through the encryption algorithm, and the verification data is the data obtained by converting the source data into a fixed-length data string using the digest algorithm. Then the data to be transmitted is grouped to obtain each packet data. When the data to be transmitted is grouped, the data packet length can be determined based on the data to be transmitted, the network maximum transmission unit and a pre-set redundancy ratio, and then the data to be transmitted is grouped based on the data packet length to obtain each packet data. That is, the data to be transmitted is combined with the network maximum transmission unit (MTU length, Maximum Transmission Unit), the redundancy ratio and other factors to calculate the length of each data packet, and the data to be transmitted is grouped to obtain each packet data. After obtaining each packet data, each packet data is redundantly encoded based on the target redundant data, so as to achieve the redundant data being attached to the corresponding packet data to obtain each encoded data group. Figure 2 As shown, in a specific implementation, the original data (i.e., source data) and verification data are first divided into t groups according to the data group length, each group having i data, to obtain t groups of grouped data, and the t groups of grouped data are redundantly encoded according to the target redundant data to obtain t groups of encoded data groups.
[0047] Step S12, rearrange each of the encoded data groups according to a preset cross-arrangement method to obtain corresponding target data packets, and combine each of the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain each combined data; the target meta information is information representing the positioning information and verification information of the target data packet.
[0048] In this embodiment, the encoded data groups are rearranged according to a preset cross arrangement method to obtain corresponding target data packets, which may specifically include: selecting each data in the encoded data group in turn to obtain selected data; and combining the selected data in the same position in each encoded data group to obtain corresponding target data packets. The specific rearrangement process is as follows: Figure 3As shown, there are a total of T groups of encoded data groups. When these data are rearranged to obtain each target data packet, the first target data packet can select the first data in each group of encoded data groups, and the second target data packet selects the second data in each group of encoded data groups. By analogy, if there are i data in each group of encoded data groups, a total of i target data packets will be obtained, thereby dispersing the risk of network packet loss and building a data responsibility sharing mechanism. After obtaining each target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data. The target meta information here is information that characterizes the positioning information and verification information of the target data packet, which is used to inform the receiving end of the positioning information, verification information, etc. of the target data packet. It should be pointed out that the length of the combined data should be less than or equal to the length of the network maximum transmission unit, that is, the data length of the header information of the transmission protocol corresponding to the target data packet + target meta information + target data packet should be less than or equal to the length of a single MTU.
[0049] Step S13: sending each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each reorganized data.
[0050] In this embodiment, when the transmitting end sends each combined data to the receiving end at a uniform speed through a unidirectional network, the data transmission rate can be determined according to the data transmission carrying capacity of the unidirectional network, and then each combined data is sent to the receiving end at a uniform speed through the unidirectional network based on the data transmission rate. Figure 3 As shown, after receiving each combined data, the receiving end reassembles each combined data based on the target meta information in each combined data to obtain each reassembled data. Specifically, the process of the receiving end reassembling the combined data is the reverse process of the process of the sending end rearranging each coded data group based on a preset cross arrangement method to obtain each target data packet. According to the positioning information in the target meta information in the combined data, the first data stored in each group of coded data groups is placed in the first position of each corresponding reassembled data, and the second data stored in each group of coded data groups is placed in the second position of each corresponding reassembled data, and so on, so as to obtain each reassembled data.
[0051] Step S14: the receiving end determines target transmission data according to each of the reorganized data, and performs corresponding verification on the target transmission data to complete data transmission.
[0052] In this embodiment, when determining the target transmission data, the receiving end can determine the redundant transmission data according to each of the reorganized data and the target redundant data, and perform grouping error correction and redundancy removal operations on the redundant transmission data according to the target meta information to obtain the target transmission data. That is, the redundant transmission data here includes the reorganized data and the target redundant data. After that, the redundant transmission data is grouped according to the meta information, and after performing redundant error correction and removing the redundancy on the grouped data, it is merged into the target transmission data in sequence, and the target transmission data is verified accordingly to complete the data transmission. Among them, the target transmission data also includes the source data and the verification data, that is, the target transmission data = source data x + verification data x, and the correctness of the source data x needs to be verified. In the verification process, if the verification data x is equal to the data after the source data x is converted into a fixed-length data string using the digest algorithm, it means that the source data x and the verification data x of the receiving end are the same as the source data and the verification data of the sending end, that is, the data is correct and the verification is successful.
[0053] like Figure 3 As shown, packet loss or data bit errors may occur when transmitting the combined data through a unidirectional network. However, since the data in each target data packet is not continuous in the source data, but is a piece of data in different data packets, the overall risk of packet loss changes from losing a whole segment of continuous data to losing one piece of data in each packet. Assuming that there are n data packets from the target network, the risk of data loss due to losing one target network data packet is reduced to 1 / n. Even if i target data packets are lost, the risk of data loss is only i / n. At the same time, the present application adopts redundant coding for the data to be transmitted. The target network data packet contains redundant data packets. Assuming that the target network data packet contains m redundant data packets, and the packet loss amount i is less than the redundant data amount m, the receiving end can restore the correct data to be transmitted through error correction calculations, such as Figure 4 After receiving the reorganized data, the receiving end performs matrix inverse operation on the redundant transmission data determined according to the reorganized data and the target redundant data. Assuming that data a2, a (i-x) , A1 is missing, and the matrices X and A are the original matrices with missing data a2 and a removed. (i-x) , A1 rows of data are formed. According to the formula X*a=A, the inverse A operation of X can be performed to obtain the original data matrix a. In this way, error correction of redundant transmission data is realized to obtain error-corrected data, and then the error-corrected and de-redundant data are sequentially merged into the new data queue to obtain the target transmission data. When correcting the errors of each reorganized data, if the redundancy ratio of the sending end in redundant encoding of the data to be transmitted is larger, the more redundant data is generated in the data to be transmitted, and the stronger the error correction capability of the receiving end when correcting the errors of each reorganized data.
[0054] In this embodiment, if the receiving end successfully verifies the target transmission data, it means that the data transmission is successful, and the receiving end can perform corresponding operations based on the target transmission data; if the receiving end fails to verify the target transmission data, it means that an abnormality has occurred during the data transmission process, and the receiving end needs to discard the target transmission data. Since the data to be transmitted constructed by the sending end is encrypted, the receiving end needs to decrypt the correctly verified source data x after obtaining the target transmission data to obtain the decrypted data.
[0055] It can be seen that the present application groups the data to be transmitted, which is composed of source data and verification data, at the sending end, and then redundantly encodes each grouped data obtained by the grouping to obtain corresponding encoded data groups, and then rearranges the data in each encoded data group according to a preset cross-arrangement method to obtain a target data packet. Since the target data packet is composed of the data in each encoded data group, the impact factor of the loss of a single data packet on the overall data is reduced, and the target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data, and each combined data is sent to the receiving end at a uniform speed through a unidirectional network, so that after receiving the target data packet, as long as the packet loss amount is less than the redundant data amount, the receiving end can reorganize and correct the target data packet based on the meta information in the target data packet to obtain the source data and verification data, and perform corresponding operations based on the obtained source data and verification data, thereby reducing the impact of the loss of a single data packet on the overall data integrity during unidirectional network communication.
[0056] Based on the above embodiment, it can be known that the present application discloses a data transmission method, which can reduce the impact of a single data packet loss on the overall data integrity during a one-way network communication. Next, the specific process of data transmission will be described.
[0057] like Figure 3 As shown, the transmitting end first constructs the data to be transmitted based on the source data and the check data, wherein the data to be transmitted is encrypted data, thereby ensuring data security during the data transmission process. Then, the data packet length is determined based on the data to be transmitted, the redundancy ratio and the MTU length, and the data to be transmitted is grouped based on the data packet length to obtain each packet data, and then each packet data is redundantly encoded based on the target redundant data, and the redundant data is attached to the corresponding packet data to obtain each encoded data group corresponding to each packet data, that is, the first group of encoded data is obtained after redundant encoding of the first group of packet data, the second group of encoded data is obtained after redundant encoding of the second group of packet data, and so on, the i-th group of encoded data is obtained after redundant encoding of the i-th group of packet data.
[0058] After obtaining each encoded data group, each data in the encoded data group is selected in turn to obtain the selected data; the selected data in the same position in each encoded data group is combined to obtain the corresponding target data packets. That is to say, the first data in the first group of encoded data groups, the first data in the second group of encoded data groups, and the first data in the last group of encoded data groups are combined to obtain the first target data packet. Similarly, the i-th target data packet contains the i-th data in each group of encoded data groups. After obtaining each target data packet, the target meta information corresponding to the target data packet, the header information of the transmission protocol corresponding to the target data packet, and the target data packet are combined to construct the combined data, wherein the target meta information does not represent the positioning information and verification information of the target data packet, and is used to inform the receiving end of the positioning information, verification information, etc. of the target data packet. It should be noted that the length of the combined data should be less than or equal to the length of the network maximum transmission unit, that is, the data length of the target data packet + target meta information + header information of the transmission protocol corresponding to the target data packet should be less than or equal to the length of a single MTU.
[0059] After obtaining the combined data, the sending end determines the data transmission rate based on the data carrying capacity of the unidirectional network, and then sends the combined data to the receiving end through the unidirectional network based on the data transmission rate. After receiving the combined data, the receiving end places the first data stored in each group of encoded data groups at the first position of each corresponding reorganized data according to the positioning information in the target meta information in the combined data, and places the second data stored in each group of encoded data groups at the second position of each corresponding reorganized data, and so on, thereby obtaining each reorganized data.
[0060] After obtaining each reorganized data, the receiving end determines the redundant transmission data according to each reorganized data and the target redundant data, groups the redundant transmission data according to the meta information, uses matrix inverse operation to correct the errors of each corresponding grouped data, and then merges the corrected and de-redundant data obtained by error correction into the new data queue in sequence to obtain the target transmission data. The target transmission data needs to be checked for correctness. If the target transmission data has completed the verification, it means that the data is correct and available, and the receiving end can perform corresponding operations based on the data; if the data has not completed the verification, the receiving end can discard the data. Since the data to be transmitted constructed by the sending end is encrypted, the receiving end needs to decrypt the source transmission data after obtaining the verified source data, so as to complete the entire data transmission process.
[0061] It can be seen that the present application groups the data to be transmitted, which is composed of source data and verification data, at the sending end, and then redundantly encodes each grouped data obtained by the grouping to obtain corresponding encoded data groups, and then rearranges the data in each encoded data group according to a preset cross-arrangement method to obtain a target data packet. Since the target data packet is composed of the data in each encoded data group, the impact factor of the loss of a single data packet on the overall data is reduced, and the target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data, and each combined data is sent to the receiving end at a uniform speed through a unidirectional network, so that after receiving the target data packet, as long as the packet loss amount is less than the redundant data amount, the receiving end can reorganize and correct the target data packet based on the meta information in the target data packet to obtain the source data and verification data, and perform corresponding operations based on the obtained source data and verification data, thereby reducing the impact of the loss of a single data packet on the overall data integrity during unidirectional network communication.
[0062] See also Figure 5 As shown, the embodiment of the present application discloses a data transmission device, which is applied to a sending end and includes:
[0063] The data encoding module 11 is used to construct the data to be transmitted based on the source data and the verification data, group the data to be transmitted to obtain each group data, and perform redundant encoding on each group data according to the target redundant data to obtain each encoded data group;
[0064] The data combination module 12 is used to rearrange the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets, and combine the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain the combined data; the target meta information is information representing the positioning information and verification information of the target data packets;
[0065] A data sending module 13, configured to send each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data;
[0066] The data verification module 14 is used to determine the target transmission data according to each of the reorganized data through the receiving end, and perform corresponding verification on the target transmission data to complete the data transmission.
[0067] It can be seen that the present application groups the data to be transmitted, which is composed of source data and verification data, at the sending end, and then redundantly encodes each grouped data obtained by the grouping to obtain corresponding encoded data groups, and then rearranges the data in each encoded data group according to a preset cross-arrangement method to obtain a target data packet. Since the target data packet is composed of the data in each encoded data group, the impact factor of the loss of a single data packet on the overall data is reduced, and the target data packet, the header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data, and each combined data is sent to the receiving end at a uniform speed through a unidirectional network, so that after receiving the target data packet, as long as the packet loss amount is less than the redundant data amount, the receiving end can reorganize and correct the target data packet based on the meta information in the target data packet to obtain the source data and verification data, and perform corresponding operations based on the obtained source data and verification data, thereby reducing the impact of the loss of a single data packet on the overall data integrity during unidirectional network communication.
[0068] In a specific implementation, the data encoding module 11 may specifically include:
[0069] A data packet length determination unit, configured to determine the data packet length based on the data to be transmitted, a network maximum transmission unit and a preset redundancy ratio;
[0070] The data grouping unit is used to group the data to be transmitted based on the data group length to obtain each group of data.
[0071] In a specific implementation, the data combination module 12 may specifically include:
[0072] A data selection unit, used for sequentially selecting each data in the encoded data group to obtain selected data;
[0073] The data packet determination unit is used to combine the selected data with the same position in each of the encoded data groups to obtain corresponding target data packets.
[0074] In a specific implementation, the data sending module 13 may specifically include:
[0075] A transmission rate determining unit, configured to determine a data transmission rate according to a data transmission carrying capacity of the unidirectional network;
[0076] The first data sending unit is used to send each of the combined data to the receiving end at a uniform speed based on the data transmission rate through the unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data.
[0077] In a specific implementation, the data sending module 13 may specifically include:
[0078] The second data sending unit is used to send each of the combined data to the receiving end at a uniform speed through a unidirectional network, so that the receiving end can determine the position information of each data in each of the combined data based on the positioning information of the target data packet, and reorganize each data in each of the combined data according to the position information to obtain each reorganized data.
[0079] In a specific implementation, the data verification module 14 may specifically include:
[0080] A data verification unit is used to determine redundant transmission data according to each of the reorganized data and the target redundant data through the receiving end, perform grouping error correction and redundancy removal operations on the redundant transmission data according to the target meta information, merge the corresponding error-corrected and redundancy-removed data to obtain the target transmission data, and perform corresponding verification on the target transmission data to complete data transmission.
[0081] In a specific embodiment, the device may further include:
[0082] A successful verification operation unit, configured to execute a corresponding operation according to the target transmission data through the receiving end if the target transmission data is successfully verified;
[0083] The verification failure operation unit is used to discard the target transmission data if the verification of the target transmission data fails.
[0084] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0085] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data transmission method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0086] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0087] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.
[0088] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data transmission method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0089] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed data transmission method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0090] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0091] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0092] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0093] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0094] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data transmission method, characterized in that: Applied to the sending end, including: Constructing data to be transmitted based on source data and verification data, grouping the data to be transmitted to obtain grouped data, and performing redundant encoding on each grouped data according to target redundant data to obtain encoded data groups; Rearranging the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets, and combining the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain combined data; the target meta information is information representing the positioning information and verification information of the target data packets; Sending each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data; The receiving end determines target transmission data according to each of the reorganized data, and performs corresponding verification on the target transmission data to complete data transmission.
2. The data transmission method according to claim 1, characterized in that: The step of grouping the data to be transmitted to obtain data of each group includes: Determining a data packet length based on the data to be transmitted, a network maximum transmission unit, and a preset redundancy ratio; The data to be transmitted are grouped based on the data group length to obtain the grouped data.
3. The data transmission method according to claim 1, characterized in that: The step of rearranging the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets includes: Selecting each data in the encoded data group in turn to obtain selected data; The selected data in the same position in each of the encoded data groups are combined to obtain corresponding target data packets.
4. The data transmission method according to claim 1, characterized in that: The step of uniformly sending the combined data to a receiving end through a unidirectional network so that the receiving end reorganizes the combined data based on the target meta information to obtain the reorganized data includes: Determining a data transmission rate according to a data transmission carrying capacity of the unidirectional network; The combined data are uniformly sent to a receiving end through the unidirectional network based on the data transmission rate, so that the receiving end reassembles the combined data based on the target meta information to obtain the reassembled data.
5. The data transmission method according to claim 1, characterized in that: The step of uniformly sending the combined data to a receiving end through a unidirectional network so that the receiving end reorganizes the combined data based on the target meta information to obtain the reorganized data includes: Each of the combined data is sent to a receiving end at a uniform speed through a unidirectional network, so that the receiving end determines the position information of each data in each of the combined data based on the positioning information of the target data packet, and reorganizes each of the combined data according to the position information to obtain each reorganized data.
6. The data transmission method according to claim 1, characterized in that: The receiving end determines the target transmission data according to each of the reorganized data, and performs corresponding verification on the target transmission data to complete the data transmission, including: The receiving end determines redundant transmission data according to each of the reorganized data and the target redundant data, performs grouping error correction and de-redundancy operations on the redundant transmission data according to the target meta information, merges the corresponding error-corrected and de-redundancy data to obtain the target transmission data, and performs corresponding verification on the target transmission data to complete data transmission.
7. The data transmission method according to any one of claims 1 to 6, characterized in that: After the receiving end determines the target transmission data according to each of the reorganized data and performs corresponding verification on the target transmission data, the method further includes: If the target transmission data is successfully verified, the receiving end performs a corresponding operation according to the target transmission data; If the target transmission data fails to be verified, the target transmission data is discarded.
8. A data transmission device, characterized in that: Applied to the sending end, including: A data encoding module, used for constructing data to be transmitted based on source data and verification data, grouping the data to be transmitted to obtain each group data, and performing redundant encoding on each group data according to target redundant data to obtain each encoded data group; A data combination module, used to rearrange the encoded data groups according to a preset cross arrangement method to obtain corresponding target data packets, and combine the target data packets, the header information of the transmission protocol corresponding to the target data packets, and the target meta information to obtain the combined data; the target meta information is information representing the positioning information and verification information of the target data packets; A data sending module, used for sending each of the combined data to a receiving end at a uniform speed through a unidirectional network, so that the receiving end reassembles each of the combined data based on the target meta information to obtain each reassembled data; The data verification module is used to determine the target transmission data according to each of the reorganized data through the receiving end, and perform corresponding verification on the target transmission data to complete the data transmission.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the data transmission method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Media data error correction transmission and error correction methods and devices, equipment and storage medium
CN109547467A
Data transmitter, data receiver, data transmitting method, data receiving method, and program
JP2007324876A
Packet coding based network communication
US20200177311A1
Cited By
Data packing method and device, electronic equipment, storage medium and computer program product
CN121283571A
A data packet packaging method and device, electronic equipment, storage medium and computer program product
CN121283571B