A data transmission method, apparatus, device, and storage medium
By performing packet redundancy coding and cross-arrangement processing on data in one-way network communication, the impact of the loss of a single data packet on the overall data integrity is resolved, and efficient data transmission is achieved.
Patent Information
- Application Number
- CN202411650986.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-11-19
AI Technical Summary
In one-way network communication, the loss of a single data packet can severely affect the overall data integrity. Existing technologies address this by retransmitting all data packets, but this is inefficient.
At the sending end, the data is grouped and redundantly encoded, and the data packets are rearranged using a preset cross-arrangement method. The data is then transmitted at a constant speed through a one-way network. At the receiving end, the data is reassembled and error corrected based on the meta information.
It reduces the impact of a single lost data packet on overall data integrity and improves transmission efficiency.
Smart Images

Figure CN119483830B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a data transmission method, device, equipment and storage medium. BACKGROUND
[0002] One-way network communication is a branch of network communication. It can only realize one-way data transmission from the sending end to the receiving end, and errors such as data packet loss and bit change often occur due to reasons such as network congestion, weak signal, rain attenuation, etc., and directly affect the correct data restoration at the receiving end. In order to avoid the influence of such errors on data transmission, the original data needs to be processed according to the predetermined rules at the sending end and the receiving end respectively, to ensure that the receiving end can check and correct the received data, and finally restore the correct and usable data. The traditional scheme is mostly realized by means of network hardware such as repeaters, and the data checking and correction is mainly for a single data packet, and the loss of a data packet means the loss of a segment of data, affecting the integrity of the overall data, and the missing data packet needs to be retransmitted. In one-way communication, the receiving end and the sending end have no information communication, and the sender will generally choose to resend all data packets multiple times to ensure that the receiving end can receive complete data, which seriously affects the transmission efficiency. Therefore, how to reduce the influence of the loss of a single data packet on the integrity of the overall data in the process of one-way network communication is a problem to be solved at present. SUMMARY
[0003] Therefore, the purpose of the present application is to provide a data transmission method, device, equipment and storage medium, which can reduce the influence of the loss of a single data packet on the integrity of the overall data in the process of 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] Based on the source data and the check data, the to-be-transmitted data is constructed, the to-be-transmitted data is grouped to obtain each group data, and each group data is redundantly encoded according to the target redundancy data to obtain each encoded data group;
[0006] According to a preset cross arrangement method, each encoded data group is rearranged to obtain corresponding each target data packet, and each target data packet, the packet 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 representing positioning information and check information of the target data packet;
[0007] The combined data is sent to a receiving end at a constant speed through a unidirectional network, so that the receiving end reorganizes the combined data based on the target meta information to obtain reorganized data;
[0008] The receiving end determines target transmission data according to the reorganized data, and performs corresponding verification on the target transmission data to complete data transmission.
[0009] Optionally, the grouping of the to-be-transmitted data to obtain grouped data comprises:
[0010] Determining a data grouping length based on the to-be-transmitted data, a maximum transmission unit of a network, and a pre-set redundancy ratio;
[0011] Grouping the to-be-transmitted data based on the data grouping length to obtain the grouped data.
[0012] Optionally, the rearranging of the encoded data groups according to a pre-set cross arrangement method to obtain corresponding target data packets comprises:
[0013] Selecting data in the encoded data groups in sequence to obtain selected data;
[0014] Combining the selected data in the encoded data groups at the same position to obtain corresponding target data packets.
[0015] Optionally, the sending of the combined data to the receiving end at a constant speed through a unidirectional network, so that the receiving end reorganizes the combined data based on the target meta information to obtain reorganized data, comprises:
[0016] Determining a data transmission rate according to a data sending capacity of the unidirectional network;
[0017] The combined data is sent to a receiving end at a constant speed through a unidirectional network, so that the receiving end reorganizes the combined data based on the target meta information to obtain reorganized data.
[0018] Optionally, the sending of the combined data to the receiving end at a constant speed through a unidirectional network, so that the receiving end reorganizes the combined data based on the target meta information to obtain reorganized data, comprises:
[0019] The data combination module combines each target data packet, packet header information of a transmission protocol corresponding to the target data packet, and target meta information to obtain each combined data, wherein the target meta information is information representing positioning information and check information of the target data packet.
[0020] Optionally, the determining target transmission data according to each of the recombined data and performing corresponding check on the target transmission data to complete data transmission by the receiving end comprises:
[0021] determining redundant transmission data according to each of the recombined data and the target redundant data, performing packet error correction and de-redundancy operation on the redundant transmission data according to the target meta information, and combining corresponding error-corrected de-redundancy data to obtain the target transmission data, and performing corresponding check on the target transmission data to complete data transmission.
[0022] Optionally, the determining target transmission data according to each of the recombined data and performing corresponding check on the target transmission data to complete data transmission by the receiving end further comprises:
[0023] if the target transmission data passes the check, performing corresponding operation according to the target transmission data by the receiving end;
[0024] if the target transmission data fails the check, discarding the target transmission data.
[0025] In a second aspect, the present application discloses a data transmission device applied to a sending end, comprising:
[0026] a data encoding module configured to construct to-be-transmitted data based on source data and check data, group the to-be-transmitted data to obtain each group data, and perform redundant encoding on each group data according to target redundant data to obtain each encoded data group;
[0027] a data combination module configured to rearrange each encoded data group according to a preset cross arrangement method to obtain corresponding each target data packet, combine each target data packet, packet header information of a transmission protocol corresponding to the target data packet, and target meta information to obtain each combined data, wherein the target meta information is information representing positioning information and check information of the target data packet;
[0028] a data sending module configured to send each combined data to a receiving end at a constant speed through a one-way network, so that the receiving end recombines each combined data based on the target meta information to obtain each recombined data.
[0029] A data checking module is configured to determine target transmission data according to the reorganized data, and perform corresponding checking on the target transmission data to complete data transmission.
[0030] In a third aspect, the present application discloses an electronic device, comprising:
[0031] A memory is configured to save a computer program.
[0032] A processor is configured to execute the computer program to implement the steps of the data transmission method.
[0033] In a fourth aspect, the present application discloses a computer readable storage medium configured to store a computer program, wherein the computer program is executed by a processor to implement the steps of the data transmission method.
[0034] In the present application, the sending end constructs to-be-transmitted data based on source data and check data, groups the to-be-transmitted data to obtain each group data, and respectively performs redundancy coding on each group data according to target redundancy data to obtain each coded data group; then, the sending end rearranges each coded data group according to a preset cross arrangement method to obtain each corresponding target data packet, combines each target data packet, the packet header information of the transmission protocol corresponding to the target data packet, and target meta information to obtain each combined data; the target meta information is information representing positioning information and check information of the target data packet; then, the sending end uniformly sends each combined data to the receiving end through a unidirectional network, so that the receiving end reorganizes each combined data based on the target meta information to obtain each reorganized data; finally, the receiving end determines target transmission data according to each reorganized data and performs corresponding check on the target transmission data to complete data transmission. As can be seen, the present application groups the to-be-transmitted data composed of source data and check data at the sending end, then performs redundancy coding on each group data obtained by grouping to obtain each corresponding coded data group, and then rearranges the data in each coded data group according to a preset cross arrangement method to obtain a target data packet. Since the target data packet is composed of data in each coded data group, the influence factor of losing a single data packet on the overall data is reduced. The target data packet, the packet 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 uniformly sent to the receiving end through a unidirectional network. After the receiving end receives the target data packet, as long as the packet loss is less than the redundancy data amount, the receiving end can decode the target data packet based on the meta information in the target data packet to obtain source data and check data, and perform corresponding operations based on the obtained source data and check data, thereby reducing the influence of losing a single data packet on the integrity of the overall data in the unidirectional network communication process. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on the provided drawings.
[0036] Figure 1 A data transmission method flow chart disclosed by the present application;
[0037] Figure 2 A specific process diagram of data packetization and redundancy coding provided by the present application;
[0038] Figure 3 A specific process diagram of data rearrangement, transmission and reassembly provided by the present application is shown in the following figure;
[0039] Figure 4 A specific process diagram of data error correction and reassembly provided by the present application is shown in the following figure;
[0040] Figure 5 A structure diagram of a data transmission device disclosed by the present application is shown in the following figure;
[0041] Figure 6 A structure diagram of an electronic device disclosed by the present application is shown in the following figure. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0043] At present, when unidirectional communication is performed, data check and error correction mainly face a single data packet. Losing one data packet means losing a segment of data, which affects the integrity of the overall data, and the missing data packet needs to be filled by retransmission. In unidirectional communication, the receiving end and the sending end have no information communication. In order to ensure data integrity, the sender generally chooses to resend 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 is applied to a sending end and can reduce the influence of loss of a single data packet on the integrity of overall data in the process of unidirectional network communication.
[0044] Referring to Figure 1 The embodiment of the present application discloses a data transmission method applied to a sending end, which comprises the following steps:
[0045] In step S11, based on source data and check data, to-be-transmitted data is constructed, the to-be-transmitted data is grouped to obtain each group data, and each group data is respectively redundantly encoded according to target redundant data to obtain each encoded data group.
[0046] In this embodiment, the sending end first constructs the to-be-transmitted data based on the source data and the check data. It can be understood that the to-be-transmitted data = source data + check data. In order to ensure the safety of the data in the transmission process, the to-be-transmitted data obtained here is encrypted data, that is, the source data is data obtained by encrypting the plaintext data by using an encryption algorithm, and the check data is data obtained by converting the source data into a fixed-length data string by using a digest algorithm. Then, the to-be-transmitted data is grouped to obtain each group data. When the to-be-transmitted data is grouped, the data grouping length can be determined based on the to-be-transmitted data, the maximum transmission unit of the network and the pre-set redundancy ratio, and then the to-be-transmitted data is grouped based on the data grouping length to obtain each group data. That is, the to-be-transmitted data is combined with the maximum transmission unit (MTU length, Maximum Transmission Unit) of the network, the redundancy ratio and other factors to calculate the length of each data group, and the to-be-transmitted data is grouped to obtain each group data. After obtaining each group data, the target redundancy data is used to perform redundancy coding on each group data, so as to realize the attachment of the redundancy data after the corresponding group data to obtain each coded data group. As shown in Figure 2 In a specific implementation, first, the original data (that is, the source data) and the check data are evenly divided into t groups, each group having i data, to obtain t groups of group data according to the data grouping length. The t groups of group data are respectively subjected to redundancy coding according to the target redundancy data to obtain t groups of coded data.
[0047] In step S12, each of the coded data groups is rearranged according to a pre-set cross arrangement method to obtain corresponding target data packets, and each of the target data packets, the packet header information of the transmission protocol corresponding to the target data packet and the target meta information are combined to obtain each combined data.
[0048] In this embodiment, each of the coded data groups is rearranged according to a pre-set cross arrangement method to obtain corresponding target data packets. Specifically, each data in the coded data group can be sequentially selected to obtain selected data, and the selected data at the same position in each coded data group are combined to obtain corresponding target data packets. The specific rearrangement process is as follows: Figure 3As shown, there are 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, the second target data packet selects the second data in each group of encoded data groups, and so on. If there are i data in each group of encoded data groups, a total of i target data packets can be obtained, thereby dispersing the network packet loss risk and constructing a data responsibility sharing mechanism. After obtaining each target data packet, the packet 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 representing the positioning information and check information of the target data packet, which is used to inform the receiving end of the positioning information, check 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 maximum transmission unit of the network, that is, the data length of the target data packet + target meta information + packet 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.
[0049] Step S13, uniformly sending each combined data to the receiving end through the unidirectional network, so that the receiving end recombines each combined data based on the target meta information to obtain each recombined data.
[0050] In this embodiment, when the sending end uniformly sends each combined data to the receiving end through the unidirectional network, the data transmission rate can be determined according to the data transmission capacity of the unidirectional network, and then each combined data is uniformly sent to the receiving end through the unidirectional network based on the data transmission rate. As shown, Figure 3 As shown, after receiving each combined data, the receiving end recombines each combined data based on the target meta information in each combined data to obtain each recombined data. Specifically, the process of reassembling the combined data by the receiving end is the reverse process of the process of rearranging each group of encoded data by the sending end based on the 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 in each group of encoded data is respectively placed in the first position of the corresponding recombined data, the second data in each group of encoded data is respectively placed in the second position of the corresponding recombined data, and so on, thereby obtaining each recombined data.
[0051] Step S14, determining target transmission data according to each recombined data by the receiving end, and performing corresponding check on the target transmission data to complete data transmission.
[0052] In the embodiment, when determining the target transmission data, the receiving end can determine redundancy transmission data according to the target redundancy data and the recombined data, perform grouping error correction and redundancy removal on the redundancy transmission data according to the target meta information, and obtain the target transmission data. That is, the redundancy transmission data includes the recombined data and the target redundancy data. Then, the target transmission data is obtained by grouping the redundancy transmission data, performing redundancy correction and removing redundancy, and then sequentially combining the grouped data. The target transmission data also includes the source data and the check data, that is, target transmission data = source data x + check data x, and the correctness of the source data x needs to be verified. In the verification process, if the check data x is equal to the data obtained by converting the source data x into a fixed-length data string using the digest algorithm, it means that the source data x and the check data x of the receiving end are the same as the source data and the check data of the sending end, that is, the data is correct, and the verification is successful.
[0053] As shown in Figure 3 , when transmitting the recombined data through the unidirectional network, packet loss or data bit error may occur. However, since the data in each target data packet is not continuous in the source data, but is a data in different data packets, the risk of packet loss changes from losing a whole continuous data to losing one data in each grouped packet. Assuming that there are n target network data packets in total, the risk of data loss is reduced to 1 / n when one target network data packet is lost. 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 redundancy coding on the to-be-transmitted data, and the target network data packet includes redundancy data packets. Assuming that the target network data packet includes m redundancy data packets, and the number of lost packets i is less than the number of redundancy data m, the receiving end can restore the correct to-be-transmitted data through error correction calculation, as shown in Figure 4 . After obtaining the recombined data, the receiving end performs matrix inverse operation on the redundancy transmission data determined according to the recombined data and the target redundancy data. Assuming that data a2, a (i-x) , A1 are lost, and matrix X and A are formed by removing the lost data a2, a (i-x) , A1 from the original matrix. According to the formula X*a=A, the inverse A operation of X is performed to obtain the original data matrix a. Thus, the error correction of the redundancy transmission data is realized, the error-corrected and redundancy-removed data is sequentially combined into a new data queue, and the target transmission data is obtained. When performing error correction on the recombined data, the larger the redundancy ratio of the to-be-transmitted data coded by the sending end, the more redundancy data in the to-be-transmitted data, and the stronger the error correction ability of the receiving end when performing error correction on the recombined data.
[0054] In this embodiment, if the target transmission data is successfully verified by the receiving end, it means that the current data transmission is successful, and the receiving end can perform corresponding operations based on the target transmission data; if the target transmission data is not verified by the receiving end, it means that an exception occurs in the current data transmission process, and the receiving end needs to discard the target transmission data. Since the to-be-transmitted data constructed by the sending end is encrypted, the receiving end needs to decrypt the correct source data x after obtaining the target transmission data to obtain the decrypted data.
[0055] As can be seen, the present application groups the to-be-transmitted data composed of source data and check data at the sending end, then performs redundancy coding on each grouped data obtained by grouping to obtain corresponding each coded data group, and then rearranges the data in each coded data group according to a preset cross arrangement method to obtain a target data packet. Since the target data packet is composed of data in each coded data group, the influence factor of losing a single data packet on the overall data is reduced. The target data packet, the packet 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 at a constant speed to the receiving end through a one-way network, so that the receiving end can reassemble and correct the target data packet based on the meta information in the target data packet to obtain the source data and the check data after receiving the target data packet, and perform corresponding operations based on the obtained source data and check data, reducing the influence of a single data packet loss on the integrity of the overall data in the one-way network communication process.
[0056] Based on the above embodiment, the present application discloses a data transmission method, which can reduce the influence of a single data packet loss on the integrity of the overall data in the one-way network communication process. Next, the specific process of data transmission will be described.
[0057] As shown in Figure 3 The sending end first constructs to-be-transmitted data based on source data and check data, wherein the to-be-transmitted data is encrypted data, thereby ensuring data security in the data transmission process. Then, the data grouping length is determined based on the to-be-transmitted data, the redundancy ratio and the MTU length, and the to-be-transmitted data is grouped based on the data grouping length, thereby obtaining each grouped data. Then, each grouped data is redundantly coded based on the target redundancy data, and the redundancy data is attached after the corresponding grouped data to obtain each coded data group corresponding to each grouped data. That is, the first group of coded data groups is obtained by redundantly coding the first group of grouped data, the second group of coded data groups is obtained by redundantly coding the second group of grouped data, and so on. The ith group of coded data groups is obtained by redundantly coding the ith group of grouped data.
[0058] After obtaining each encoded data group, each data in the encoded data group is selected in sequence to obtain selected data; and the selected data at the same position in each encoded data group is combined to obtain each target data packet. That is, the first data in the first encoded data group, the first data in the second encoded data group, and the first data in the last encoded data group are combined to obtain the first target data packet. Similarly, the ith data in each encoded data group is included in the ith target data packet. After obtaining each target data packet, the target meta information corresponding to the target data packet, the packet header information of the transmission protocol corresponding to the target data packet, and the target data packet are combined to construct combined data, wherein the target meta information does not represent the positioning information and the check information of the target data packet, and is used to inform the receiving end of the positioning information, the check information, and the like 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 maximum transmission unit of the network, that is, the data length of the target data packet + the target meta information + the packet 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 a data transmission rate based on the data carrying capacity of the unidirectional network, and then transmits 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 encoded data group in the first position of each corresponding recombined data according to the positioning information in the target meta information in the combined data, places the second data stored in each encoded data group in the second position of each corresponding recombined data, and so on, to obtain each recombined data.
[0060] After obtaining each recombined data, the receiving end determines redundant transmission data according to each recombined data and the target redundant data, groups the redundant transmission data according to the meta information, performs error correction on each corresponding grouped data by using matrix inversion operation, and then combines the error-corrected error-removed data obtained by error correction into a new data queue in sequence to obtain target transmission data. The target transmission data needs to be checked for correctness. If the target transmission data passes the check, it means that the data is correct and usable, and the receiving end can perform corresponding operations based on the data; if the data does not pass the check, the receiving end can discard the data. Since the sending end constructs the data to be transmitted by encryption, the receiving end needs to decrypt the source transmission data after obtaining the source data that passes the check, thereby completing the entire data transmission process.
[0061] It can be seen that, by grouping the to-be-transmitted data composed of source data and check data at the sending end, then performing redundancy coding on each grouped data to obtain corresponding coded data groups, and then rearranging the data in each coded data group according to a preset cross arrangement method to obtain a target data packet, since the target data packet is composed of data in each coded data group, the influence factor of losing a single data packet on the overall data is reduced, the target data packet, the packet 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 at a uniform speed through a unidirectional network to a receiving end, so that the receiving end, after receiving the target data packet, can perform recombination and error correction on the target data packet based on the meta information in the target data packet to obtain source data and check data, and perform corresponding operations based on the obtained source data and check data, reducing the influence of a single data packet loss on the integrity of the overall data in the unidirectional network communication process.
[0062] Referring to Figure 5 The embodiment of the application discloses a data transmission device, applied to a sending end, comprising:
[0063] A data encoding module 11 is configured to construct to-be-transmitted data based on source data and check data, group the to-be-transmitted data to obtain grouped data, and perform redundancy coding on each grouped data based on target redundancy data to obtain coded data groups.
[0064] A data combination module 12 is configured to rearrange each coded data group according to a preset cross arrangement method to obtain corresponding target data packets, and combine each target data packet, packet header information of a transmission protocol corresponding to the target data packet, and target meta information to obtain combined data.
[0065] A data sending module 13 is configured to send each combined data at a uniform speed through a unidirectional network to a receiving end, so that the receiving end recombines each combined data based on the target meta information to obtain recombined data.
[0066] A data checking module 14 is configured to determine target transmission data based on each recombined data at the receiving end, and perform corresponding checking on the target transmission data to complete data transmission.
[0067] It can be seen that, by grouping the to-be-transmitted data composed of source data and check data at the sending end, then performing redundancy coding on each grouped data to obtain corresponding coded data groups, and then rearranging the data in each coded data group according to a preset cross arrangement method to obtain a target data packet, since the target data packet is composed of data in each coded data group, the influence factor of losing a single data packet on the overall data is reduced, the target data packet, the packet 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 at a uniform speed to the receiving end through the unidirectional network, so that the receiving end, after receiving the target data packet, can perform recombination and error correction on the target data packet based on the meta information in the target data packet to obtain the source data and the check data, and perform corresponding operations based on the obtained source data and check data, reducing the influence of a single data packet loss on the integrity of the overall data in the unidirectional network communication process.
[0068] In a specific embodiment, the data encoding module 11 can specifically include:
[0069] A data grouping length determination unit configured to determine a data grouping length based on the to-be-transmitted data, a maximum transmission unit of the network, and a pre-set redundancy ratio.
[0070] A data grouping unit configured to group the to-be-transmitted data based on the data grouping length to obtain each grouped data.
[0071] In a specific embodiment, the data combination module 12 can specifically include:
[0072] A data selection unit configured to sequentially select each data in the coded data group to obtain selected data.
[0073] A data packet determination unit configured to combine the selected data at the same position in each coded data group to obtain each corresponding target data packet.
[0074] In a specific embodiment, the data sending module 13 can specifically include:
[0075] A transmission rate determination unit configured to determine a data transmission rate according to a data sending carrying capacity of the unidirectional network.
[0076] A first data sending unit configured to send each combined data at a uniform speed to a receiving end through the unidirectional network based on the data transmission rate, so that the receiving end recombines each combined data based on the target meta information to obtain each recombined data.
[0077] In a specific implementation, the data sending module 13 can specifically include:
[0078] The second data sending unit is configured to send the combined data to the receiving end at a constant speed through a unidirectional network, so that the receiving end determines the position information of each data in the combined data based on the positioning information of the target data packet, and recombines each data in the combined data according to the position information to obtain each recombined data.
[0079] In a specific implementation, the data checking module 14 can specifically include:
[0080] The data checking unit is configured to determine redundant transmission data according to each recombined data and the target redundant data through the receiving end, perform grouping error correction and de-redundancy operation on the redundant transmission data according to the target meta information, combine the corresponding error-corrected and de-redundant data to obtain the target transmission data, and perform corresponding checking on the target transmission data to complete data transmission.
[0081] In a specific implementation, the apparatus can further include:
[0082] The checking success operation unit is configured to perform corresponding operations on the target transmission data through the receiving end if the target transmission data passes the checking.
[0083] The checking failure operation unit is configured to discard the target transmission data if the target transmission data fails the checking.
[0084] Further, the embodiment of the present application also discloses an electronic device, Figure 6 is an electronic device 20 structure diagram shown according to an exemplary embodiment, the contents in the figure cannot be considered as any limitation on the use range of the present application.
[0085] Figure 6 A structure diagram of an electronic device 20 provided by the embodiment of the present application. The electronic device 20 can 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. Wherein, the memory 22 is used to store computer programs, the computer programs are loaded and executed by the processor 21 to realize the related steps in the data transmission method disclosed in any of the preceding embodiments. In addition, the electronic device 20 in the embodiment can be an electronic computer.
[0086] In this embodiment, the power supply 23 is configured to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 is configured to create a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which will not be specifically limited herein; the input / output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which will not be specifically limited herein.
[0087] In addition, the memory 22 as a carrier for storing resources can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage mode can be temporary storage or permanent storage.
[0088] The operating system 221 is configured to manage and control each hardware device and the computer program 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program capable of completing the data transmission method executed by the electronic device 20 disclosed in any of the preceding embodiments, the computer program 222 can further include a computer program capable of completing other specific work.
[0089] Further, the present application further discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the data transmission method disclosed above. For the specific steps of the method, please refer to the corresponding contents disclosed in the preceding embodiments, which will not be described here.
[0090] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. For the same or similar parts between each embodiment, please refer to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and please refer to the method part for the relevant part.
[0091] The skilled person can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly show the interchangeability of hardware and software, the components and steps of each example have been described in a general manner in the above description. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0092] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in RAM, flash memory, ROM, electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. The
[0093] Finally, it should be noted that, in the description of the application, relational terms such as first and second, and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.
[0094] The above provides a detailed description of the technical solutions of the present application. The principles and implementation modes of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation modes and application ranges will be changed, and the above description of the content of the specification should not be understood as a limitation of the present application.
Claims
1. A data transmission method, characterized by, Applied to a sending end, comprising: Based on source data and check data to build data to be transmitted, the data to be transmitted is grouped to obtain each group data, and each group data is respectively encoded according to target redundant data to obtain each encoded data group; According to the preset cross arrangement method, each of the encoded data groups is rearranged to obtain the corresponding target data packet, and each of 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;The target meta information is the positioning information and the check information of the target data packet; Each of the combined data is sent to the receiving end at a constant speed through a one-way network, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each of the reorganized data; The target transmission data is determined by the receiving end according to each of the reorganized data, and the target transmission data is checked correspondingly to complete data transmission; The data to be transmitted is grouped to obtain each group data, comprising: Based on the data grouping length, the data to be transmitted is grouped to obtain each of the group data; According to the preset cross arrangement method, each of the encoded data groups is rearranged to obtain the corresponding target data packet, comprising: Each data in the encoded data group is selected in turn to obtain selected data; The selected data in each of the encoded data groups with the same position are combined to obtain the corresponding target data packet. The combined data is sent to the receiving end at a constant speed through a one-way network, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each of the reorganized data, comprising:
2. The data transmission method of claim 1, wherein, According to the data transmission capacity of the one-way network, the data transmission rate is determined; Each of the combined data is sent to the receiving end at a constant speed through the one-way network based on the data transmission rate, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each of the reorganized data. The combined data is sent to the receiving end at a constant speed through a one-way network, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each of the reorganized data, comprising:
3. The data transmission method of claim 1, wherein, Each of the combined data is sent to the receiving end at a constant speed through a one-way network, so that the receiving end reorganizes each of the combined data based on the target meta information to obtain each of the reorganized data. The target transmission data is determined by the receiving end according to each of the reorganized data, and the target transmission data is checked correspondingly to complete data transmission, comprising:
4. The data transmission method of claim 1, wherein, The receiving end determines target transmission data according to the reorganized data, performs corresponding checking on the target transmission data, and completes data transmission.
5. The data transmission method according to any one of claims 1 to 4, characterized in that, After the receiving end determines target transmission data according to the reorganized data and performs corresponding checking on the target transmission data, the method further includes: If the target transmission data passes the checking, the receiving end performs corresponding operations according to the target transmission data; If the target transmission data fails the checking, the target transmission data is discarded.
6. A data transmission apparatus characterized by comprising: The method is applied to a sending end and includes: A data encoding module constructs to-be-transmitted data based on source data and checking data, groups the to-be-transmitted data to obtain each group data, and redundantly encodes each group data according to target redundancy data to obtain each encoded data group. A data combination module rearranges each encoded data group according to a preset cross arrangement method to obtain corresponding each target data packet, combines each target data packet, packet header information corresponding to the target data packet, and target meta information to obtain each combined data. A data sending module sends each combined data to a receiving end at a constant speed through a unidirectional network, so that the receiving end reorganizes each combined data based on the target meta information to obtain each reorganized data. A data checking module determines target transmission data according to each reorganized data through the receiving end and performs corresponding checking on the target transmission data to complete data transmission. The data encoding module determines a data grouping length based on the to-be-transmitted data, a maximum network transmission unit, and a pre-set redundancy ratio, groups the to-be-transmitted data based on the data grouping length to obtain each group data. The data combination module sequentially selects each data in the encoded data group to obtain selected data, and combines the selected data with the same position in each encoded data group to obtain each corresponding target data packet.
7. An electronic device, comprising: The method includes: A memory for saving a computer program; A processor for executing the computer program to implement the data transmission method in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, A computer program is saved, and the computer program is executed by a processor to implement the data transmission method in any one of claims 1 to 5.
Citation Information
Patent Citations
Data transmitter, data receiver, data transmitting method, data receiving method, and program
JP2007324876A
Packet coding based network communication
US20200177311A1