Data transmission method and device, electronic equipment and readable storage medium

Through segmented and incremental data transmission methods, segmented files that need to be transferred are filtered based on file verification results, solving the inefficiency of the FTP protocol in large file transfer and high-latency network environments, and achieving more efficient Data transmission.

CN118972381APending Publication Date: 2024-11-15NEW H3C SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047074.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The data transmission efficiency of the FTP protocol is affected by a variety of factors, especially in large file transmission and high-latency network environments, there is a lack of reliable and effective efficiency improvement solutions, and the efficiency improvement is limited after increasing bandwidth.

Method used

By calculating the verification result of the file to be transferred, the file is divided into multiple segmented files, and based on the verification result of the segmented file, it is determined whether it is the same as the corresponding segmented file of the preset file, and only the different contents are transferred Segment files adopt segmented and incremental data transmission methods.

Benefits of technology

Reduce the amount of data transmission, avoid repeated transmission of segmented files with the same content, and improve FTP transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972381A_ABST
    Figure CN118972381A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment and a readable storage medium. The method comprises the following steps: calculating a verification result of a to-be-transmitted version file; segmenting a to-be-transmitted version file into a plurality of segmented files, and calculating a verification result of each segmented file; according to the verification result, judging whether each segmented file and a segmented file corresponding to the segmented file in the preset version file have the same content or not; sending all the segmented files with no judgment results and the verification result of the version file to be transmitted to a data receiving end through an FTP protocol, so that the data receiving end combines the segmented files of the version file to be transmitted with the segmented files of the local preset version file to obtain a complete version file and calculate the verification result; according to the verification result, judging whether the to-be-transmitted version file and the complete version file have the same content or not; and if the judgment result is yes, determining that the version file transmission is completed. According to the invention, the FTP transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, device, electronic device and readable storage medium. Background Art

[0002] The File Transfer Protocol (FTP) is used to transfer files between FTP servers and FTP clients. It is a common protocol for transferring files on IP networks. FTP transmission efficiency is affected by many factors, including network conditions, server configuration, file type, etc., especially in large file transfers and high-latency network environments. At present, the main way to improve FTP transmission efficiency is to increase bandwidth. However, increasing bandwidth will increase costs on the one hand, and on the other hand, when the bandwidth increases to a certain value, bandwidth is no longer the main influencing factor. Even if the bandwidth is further increased, it will not bring obvious efficiency improvement.

[0003] In summary, the data transmission efficiency based on the FTP protocol is affected by many factors, and there is currently a lack of reliable and effective efficiency improvement solutions. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a data transmission method, device, electronic device and readable storage medium.

[0005] According to a first aspect of an embodiment of the present application, a data transmission method is provided, the method being applied to a data sending end, the method comprising:

[0006] Calculate the verification result of the version file to be transmitted;

[0007] Dividing the version file to be transmitted into multiple segment files, and calculating the verification result of each segment file;

[0008] According to the verification result of each segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content;

[0009] The verification results of all the segmented files with a negative judgment result and the version file to be transmitted are sent to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps:

[0010] Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

[0011] According to a second aspect of an embodiment of the present application, a data transmission method is provided, the method being applied to a data receiving end, the method comprising:

[0012] The segmented files of the version file to be transmitted received through the FTP protocol are combined with the segmented files of the local preset version file to obtain a complete version file, wherein the received segmented files of the version file to be transmitted are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version file;

[0013] Calculating the verification result of the complete version file;

[0014] Based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol, it is determined whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, it is determined that the version file transmission is completed.

[0015] According to a third aspect of an embodiment of the present application, a data transmission device is provided, the device being applied to a data sending end, the device comprising:

[0016] A first verification module, used to calculate the verification result of the version file to be transmitted;

[0017] A segmentation module, used to segment the version file to be transmitted into multiple segment files, and calculate the verification result of each segment file;

[0018] A first judgment module is used to judge whether the contents of each segment file and the segment file corresponding to the segment file in the preset version file are the same according to the verification result of each segment file;

[0019] The sending module is used to send the verification results of all the segmented files with a judgment result of "no" and the version file to be transmitted to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps:

[0020] Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

[0021] According to a fourth aspect of an embodiment of the present application, a data transmission device is provided, the device being applied to a data receiving end, the device comprising:

[0022] A combining module is used to combine the segmented files of the version file to be transmitted received through the FTP protocol with the segmented files of the local preset version file to obtain a complete version file, wherein the received segmented files of the version file to be transmitted are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version file;

[0023] A second verification module, used to calculate the verification result of the complete version file;

[0024] The second judgment module is used to judge whether the content of the version file to be transmitted is the same as that of the complete version file based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol; if the judgment result is yes, it is determined that the version file transmission is completed.

[0025] According to a fifth aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the above-mentioned method steps.

[0026] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described above are implemented.

[0027] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0028] In an embodiment of the present application, a verification result of a version file to be transmitted is calculated, the version file to be transmitted is divided into a series of segmented files and the verification result of each segmented file is calculated, and a determination is made based on the verification result of the segmented file whether the segmented file and the segmented file corresponding to the segmented file in the preset version file have the same content. In the subsequent data transmission process through the FTP protocol, only segmented files with different contents are transmitted, and repeated transmission of segmented files with the same content is avoided, thereby reducing the amount of data transmission. Ultimately, the FTP transmission efficiency is improved through this segmented and incremental data transmission method.

[0029] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0031] Figure 1 A schematic diagram of a data transmission process based on the FTP protocol provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a flow chart of a data transmission method applied to a data sending end provided in an embodiment of the present application;

[0033] Figure 3 Another schematic diagram of a data transmission method applied to a data sending end provided in an embodiment of the present application;

[0034] Figure 4 A flowchart of a data transmission method applied to a data receiving end provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of the structure of a data transmission device applied to a data sending end provided in an embodiment of the present application;

[0036] Figure 6 A schematic diagram of the structure of a data transmission device applied to a data receiving end provided in an embodiment of the present application;

[0037] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0039] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0040] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".

[0041] Next, the embodiments of the present application are described in detail.

[0042] Figure 1 This is a schematic diagram of the data transmission process based on the FTP protocol. The FTP protocol uses TCP ports 20 and 21 for transmission, where port 20 is used to transmit data and port 21 is used to transmit control messages. A device can be used as both an FTP server (FTP client) and an FTP client (FTP server). In the embodiment of the present application, the data transmission process refers to the data transmission process between the FTP server and the FTP client in the network (Internet), where the data transmission direction can be from the FTP server to the FTP client, or from the FTP client to the FTP server, and the embodiment of the present application does not limit this.

[0043] The present application embodiment provides a data transmission method, which is applied to a data sending end, such as Figure 2 As shown, the method may include the following steps:

[0044] Step 210, calculating the verification result of the version file to be transmitted;

[0045] Step 220: divide the version file to be transmitted into multiple segment files, and calculate the verification result of each segment file;

[0046] Step 230: According to the verification result of each segment file, determine whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content;

[0047] Step 240: Send the verification results of all the segmented files and the version files to be transmitted whose judgment results are negative to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps:

[0048] Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

[0049] Specifically, the version file refers to the device software version file. In actual applications, the device software will be continuously upgraded and updated, and the corresponding version file content will also change. In daily version testing, it is often necessary to send version files to the device through the FTP protocol. However, these version files have a certain degree of repetitiveness, that is, not every version update is a full modification, so there is a situation in which unmodified version files are repeatedly transmitted during the FTP transmission process, which brings unnecessary data transmission work. In view of this situation, the embodiment of the present application proposes a segmented and incremental data transmission method.

[0050] The embodiment of the present application first calculates the verification result of the version file to be transmitted. Specifically, the purpose of the embodiment of the present application to verify the version file is to verify whether the content of the version file before transmission on the data sending end side is consistent with the content of the version file after transmission on the data receiving end side. The embodiment of the present application does not limit the verification method of the version file. Specifically, a checksum check can be selected, such as calculating the checksum of the version file through the message digest algorithm (Message-Digest Algorithm, MD5) or the secure hash 256 algorithm (Secure Hash Algorithm, SHA), or a cyclic redundancy check algorithm (Cyclic Redundancy Check, CRC) can be selected to calculate the CRC check value of the version file.

[0051] The above-mentioned dividing the version file to be transmitted into a plurality of segment files may specifically be: dividing the version file to be transmitted into a plurality of segment files according to a preset segment size. Specifically, the preset segment size may be set to 5kb. To distinguish different segment files, each segment file may be numbered sequentially. It is understandable that the size of the last segment file may be less than the above-mentioned preset segment size, in which case the actual segment size of the last segment file may be recorded.

[0052] After the version file to be transmitted is segmented, the embodiment of the present application will calculate the verification results of each segment file. The purpose of the embodiment of the present application to verify the segment file is to verify whether the content of the segment file of the current version file to be transmitted is consistent with the content of the segment file corresponding to the segment file in the preset segment file on the data sending end. The embodiment of the present application does not limit the verification method for the segment file. Specifically, a checksum check can be selected, such as calculating the checksum of the segment file through the MD5 algorithm or the SHA-256 algorithm, or a CRC algorithm can be selected to calculate the CRC check value of the segment file.

[0053] The embodiment of the present application determines whether the content of each segmented file of the version file to be transmitted is the same as the segmented file corresponding to the segmented file in the preset version file based on the verification result of the segmented file. That is to say, the segmented files of the preset version file are stored on the data sending end side, and the segmentation method of the preset version file is the same as the segmentation method of the version file to be transmitted. Therefore, there is a corresponding relationship between the segmented files of the two version files, that is, the nth segmented file of the version file to be transmitted corresponds to the nth segmented file of the preset version file, where n is an integer between 1 and N, and N is the number of segmented files of the preset version file. Therefore, if Figure 3 As shown, before step 210, the following steps are also included:

[0054] Step 310: Calculate the verification result of the preset version file;

[0055] Step 320: divide the preset version file into multiple segment files, and calculate the verification result of each segment file;

[0056] Step 330: Send all segment files of the preset version file, the verification result of each segment file, and the verification result of the preset version file to the data receiving end through the FTP protocol.

[0057] Specifically, the preset version file is a previous version file, such as an initial version file, a previous version file, etc. As a preferred implementation, the previous version file is selected as the preset version file, thereby ensuring the minimum data transmission amount as much as possible.

[0058] As described above, the size of the last segment file may be less than the aforementioned preset segment size. On this basis, the above step 230 may specifically include: for the last segment file of the version file to be transmitted, judging whether the content of the segment file and the segment file corresponding to the segment file in the preset version file is the same according to the verification result of the segment file and the actual segment size of the segment file. That is to say, for the last segment file, if and only if the verification result of the segment file is the same as the verification result of the segment file corresponding to the segment file in the preset version file, and the actual segment size of the segment file is the same as the actual segment size of the segment file corresponding to the segment file in the preset version file, then it is judged that the content of the segment file and the segment file corresponding to the segment file in the preset version file are the same, otherwise it is judged that the two contents are different.

[0059] It is worth mentioning that after the version file to be transmitted is segmented, the number of segmented files of the version file to be transmitted can be known. Correspondingly, after the preset version file is segmented, the number of segmented files of the preset version file can also be known. According to the relationship between the number of segmented files of the version file to be transmitted and the number of segmented files of the preset version file, there are three situations:

[0060] Scenario 1: The number of segmented files of the version file to be transmitted is equal to the number of segmented files of the preset version file, which indicates that the size of the version file has hardly changed. In this case, it is necessary to determine whether the content of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same based on the verification result of each segmented file. Specifically, it is possible to determine whether the verification results of the version file to be transmitted and the segmented files with the same number in the preset version file are the same. If they are the same, it indicates that the contents of the two are the same and do not need to be transmitted. If they are different, it indicates that the content has changed and needs to be transmitted. The numbers of all segmented files with a negative judgment result can be recorded for subsequent transmission.

[0061] Scenario 2: The number of segmented files of the version file to be transmitted is greater than the number of segmented files of the preset version file, which indicates that the version file has increased in size. At this time, based on the verification results of each segmented file, it is possible to determine in turn whether the content of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same, until the first judgment result is no. Specifically, the verification results of the version file to be transmitted and the segmented file with the same number in the preset version file can be determined in order from small to large. If they are the same, it indicates that the contents of the two are consistent and do not need to be transmitted. If they are different, it indicates that the content has changed and needs to be transmitted, until the first judgment result is no. There is no need to continue to judge the remaining segmented files, and the judgment results of the segmented files with a judgment result of no and the remaining segmented files that have not been judged can all be recorded as no. Specifically, the number of the first segmented file with a judgment result of no can be recorded, and the segmented files with this number and those after this number can be transmitted;

[0062] Scenario three: the number of segmented files of the version file to be transmitted is less than the number of segmented files of the preset version file, which indicates that the version file has been reduced. At this time, the verification results of each segmented file can be used to determine whether the content of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same, until the first judgment result is no. Specifically, the verification results of the version file to be transmitted and the segmented files with the same number in the preset version file can be determined in order from small to large. If they are the same, it means that the contents of the two are consistent and do not need to be transmitted. If they are different, it means that the content has changed and needs to be transmitted. Until the first judgment result is no, there is no need to continue to judge the remaining segmented files. The judgment results of the segmented files with a no judgment result and the remaining segmented files that have not been judged can all be recorded as no. Specifically, the number of the first segmented file with a no judgment result can be recorded, and the segmented files with this number and those after this number can be transmitted.

[0063] It can be seen from the above technical solution that the embodiment of the present application proposes a segmented, incremental data transmission method. When transmitting version files through the FTP protocol, the segmented files with changed contents are first screened out according to the verification results, and then only the segmented files with changed contents are transmitted, and the segmented files with unchanged contents are not transmitted, thereby avoiding unnecessary data transmission processes, reducing the data transmission volume, and improving the FTP transmission efficiency.

[0064] The present application embodiment provides a data transmission method, which is applied to a data receiving end, such as Figure 4 As shown, the method may include the following steps:

[0065] Step 410: Combine the segmented files of the version file to be transmitted received through the FTP protocol with the segmented files of the local preset version file to obtain a complete version file;

[0066] Step 420: Calculate the verification result of the complete version file;

[0067] Step 430: Based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

[0068] The segmented files of the version file to be transmitted received above are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version files.

[0069] Based on the same inventive concept, the present application also provides a data transmission device, which is applied to a data sending end, and its structural diagram is as follows: Figure 5 As shown, specifically including:

[0070] A first verification module 510, used to calculate the verification result of the version file to be transmitted;

[0071] A segmentation module 520, configured to segment the version file to be transmitted into a plurality of segment files, and calculate a verification result of each segment file;

[0072] A first judgment module 530 is used to judge whether the contents of each segment file and the segment file corresponding to the segment file in the preset version file are the same according to the verification result of each segment file;

[0073] The sending module 540 is used to send the verification results of all the segmented files with a judgment result of "no" and the version file to be transmitted to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps:

[0074] Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

[0075] Optionally, the first determination module 530 is used to:

[0076] When the number of segmented files of the version file to be transmitted is greater than or less than the number of segmented files of the preset version file, based on the verification result of each segmented file, determine in turn whether the contents of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same, until the first judgment result is no, the judgment results of the segmented file with a no judgment result and the remaining segmented files that have not been judged are all recorded as no.

[0077] Optionally, the segmentation module 520 is used to:

[0078] Dividing the version file to be transmitted into multiple segment files according to a preset segment size;

[0079] The first determination module 530 is used for:

[0080] For the last segment file of the version file to be transmitted, based on the verification result of the segment file and the actual segment size of the segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content.

[0081] The present application also provides a data transmission device, which is applied to a data receiving end, and its structural diagram is as follows: Figure 6 As shown, specifically including:

[0082] The combining module 610 is used to combine the segmented files of the version file to be transmitted received through the FTP protocol with the segmented files of the local preset version file to obtain a complete version file, wherein the received segmented files of the version file to be transmitted are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version file;

[0083] A second verification module 620, used to calculate the verification result of the complete version file;

[0084] The second judgment module 630 is used to judge whether the content of the version file to be transmitted is the same as that of the complete version file based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol; if the judgment result is yes, it is determined that the version file transmission is completed.

[0085] The present application also provides an electronic device, such as Figure 7As shown, it includes a processor 710 and a machine-readable storage medium 720, wherein the machine-readable storage medium 720 stores machine-executable instructions that can be executed by the processor 710, and the processor 710 is prompted by the machine-executable instructions to implement the steps of any of the above-mentioned data transmission methods.

[0086] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

[0087] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0088] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned data transmission methods are implemented.

[0089] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data transmission method, characterized in that: The method is applied to a data sending end, and the method comprises: Calculate the verification result of the version file to be transmitted; Dividing the version file to be transmitted into multiple segment files, and calculating the verification result of each segment file; According to the verification result of each segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content; The verification results of all the segmented files with a negative judgment result and the version file to be transmitted are sent to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps: Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

2. The method according to claim 1, characterized in that According to the verification result of each segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content, including: When the number of segmented files of the version file to be transmitted is greater than or less than the number of segmented files of the preset version file, based on the verification result of each segmented file, determine in turn whether the contents of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same, until the first judgment result is no, the judgment results of the segmented file with a no judgment result and the remaining segmented files that have not been judged are all recorded as no.

3. The method according to claim 1, characterized in that The version file to be transmitted is divided into multiple segment files, including: Dividing the version file to be transmitted into multiple segment files according to a preset segment size; According to the verification result of each segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content, including: For the last segment file of the version file to be transmitted, based on the verification result of the segment file and the actual segment size of the segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content.

4. The method according to claim 1, characterized in that: Before calculating the verification result of the version file to be transmitted, it also includes: Calculate the verification result of the preset version file; Divide the preset version file into multiple segment files, and calculate the verification result of each segment file; All segment files of the preset version file, the verification result of each segment file and the verification result of the preset version file are sent to the data receiving end through the FTP protocol.

5. A data transmission method, characterized in that: The method is applied to a data receiving end, and the method comprises: The segmented files of the version file to be transmitted received through the FTP protocol are combined with the segmented files of the local preset version file to obtain a complete version file, wherein the received segmented files of the version file to be transmitted are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version file; Calculating the verification result of the complete version file; Based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol, it is determined whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, it is determined that the version file transmission is completed.

6. A data transmission device, characterized in that: The device is applied to a data sending end, and comprises: A first verification module, used to calculate the verification result of the version file to be transmitted; A segmentation module, used to segment the version file to be transmitted into multiple segment files, and calculate the verification result of each segment file; A first judgment module is used to judge whether the contents of each segment file and the segment file corresponding to the segment file in the preset version file are the same according to the verification result of each segment file; The sending module is used to send the verification results of all the segmented files with a judgment result of "no" and the version file to be transmitted to the data receiving end through the FTP protocol, so that the data receiving end performs the following steps: Combine the received segmented file of the version file to be transmitted with the segmented file of the local preset version file to obtain a complete version file; calculate the verification result of the complete version file; based on the verification result of the complete version file and the verification result of the received version file to be transmitted, determine whether the content of the version file to be transmitted is the same as that of the complete version file; if the judgment result is yes, determine that the version file transmission is completed.

7. The device according to claim 6, characterized in that The first judgment module is used for: When the number of segmented files of the version file to be transmitted is greater than or less than the number of segmented files of the preset version file, based on the verification result of each segmented file, determine in turn whether the contents of the segmented file and the segmented file corresponding to the segmented file in the preset version file are the same, until the first judgment result is no, the judgment results of the segmented file with a no judgment result and the remaining segmented files that have not been judged are all recorded as no.

8. The device according to claim 6, characterized in that The segmentation module is used to: Dividing the version file to be transmitted into multiple segment files according to a preset segment size; The first judgment module is used for: For the last segment file of the version file to be transmitted, based on the verification result of the segment file and the actual segment size of the segment file, it is determined whether the segment file and the segment file corresponding to the segment file in the preset version file have the same content.

9. A data transmission device, characterized in that: The device is applied to a data receiving end, and comprises: A combining module is used to combine the segmented files of the version file to be transmitted received through the FTP protocol with the segmented files of the local preset version file to obtain a complete version file, wherein the received segmented files of the version file to be transmitted are: among all the segmented files obtained by segmenting the version file to be transmitted by the data sending end, some segmented files whose contents determined according to the verification results of the segmented files are different from the segmented files corresponding to the segmented files in the preset version file; A second verification module, used to calculate the verification result of the complete version file; The second judgment module is used to judge whether the content of the version file to be transmitted is the same as that of the complete version file based on the verification result of the complete version file and the verification result of the version file to be transmitted received through the FTP protocol; if the judgment result is yes, it is determined that the version file transmission is completed.

10. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 5.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 5 are implemented.