File transmission checking method, device and equipment and computer program product
The file transfer and verification process are decoupled through the file verification method, and the file transfer is efficient and complete, solving the problem of the confirmation response mechanism in the existing technology that increases network bandwidth and processing time, ensuring the accurate transmission of file data.
Patent Information
- Application Number
- CN202510523908.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-08-01
AI Technical Summary
The existing file transfer confirmation and response mechanism increases the overhead of network bandwidth and processing time in batch file transfer, and cannot meet the real-time requirements. It also needs to be retransmitted when file transfer fails, which reduces the file processing speed.
The file transfer verification method is adopted. The file verification party receives information from the file sender and the receiver, conducts file verification, determines the verification consistency, and sends differential information when inconsistent so that the file sender can resend the file, decouple the file transmission and verification process.
It improves the efficiency and integrity of file transfer, reduces the number of confirmation and responses between both parties to file transfer, and ensures the integrity and real-timeness of file data.
Smart Images

Figure CN120415657A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of file transfer, and particularly to a file transfer verification method, apparatus, device, and computer program product. Background Art
[0002] In order to ensure the consistency of the quantity of batch file sending and receiving between systems and the security and reliability of file transfer, the current confirmation response mechanism is used to achieve secure data transfer between systems.
[0003] The confirmation response mechanism is that after the file sender sends a file, it waits for the confirmation response from the file receiver. If the file receiver fails to send the confirmation response in time, the file sender can resend the file to ensure that the receiver receives the complete data. However, this mechanism will increase the file transfer time, and the fixed confirmation response mode will increase the network bandwidth and processing time. Summary of the Invention
[0004] Embodiments of this application provide a file transfer verification method, apparatus, device, and computer program product to improve file transfer efficiency and integrity.
[0005] Embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a file transfer verification method, which is executed by a file verifier. The file transfer verification method includes:
[0007] Receiving file sending information sent by a file sender;
[0008] Receiving file receiving information sent by a file receiver;
[0009] Performing file verification according to the file sending information and the file receiving information to obtain a file verification result, where the file verification result includes consistent verification and inconsistent verification;
[0010] In the case where the file verification result is inconsistent verification, determining file transfer difference information according to the file sending information and the file receiving information, and sending the file transfer difference information to the file sender, so that the file sender can resend the file according to the file transfer difference information.
[0011] Optionally, after receiving the file sending information sent by the file sender, the file transfer verification method further includes:
[0012] Storing the file sending information into a file sending information table;
[0013] After receiving the file receiving information sent by the file receiver, the file transfer verification method further includes:
[0014] Store the file reception information in a file reception information table.
[0015] Optionally, the file verification based on the file sending information and the file reception information to obtain a file verification result includes:
[0016] Obtain the file sending information from the file sending information table, where the file sending information includes the sending file name and the file recipient information;
[0017] Obtain the file reception information from the file reception information table, where the file reception information includes the received file name and the file recipient information;
[0018] Perform file verification based on the file sending information and the file reception information to obtain the file verification result.
[0019] Optionally, the file sending information further includes the number of sent files, the file reception information further includes the number of received files, and the file verification based on the file sending information and the file reception information to obtain a file verification result includes:
[0020] Verify the number of sent files of the file sender with the number of received files of the file recipient;
[0021] If the quantities are the same, determine that the file verification result is consistent;
[0022] Otherwise, determine that the file verification result is inconsistent.
[0023] Optionally, the file sending information table further stores file status information. In the case where the file verification result is inconsistent, determining file transfer difference information based on the file sending information and the file reception information includes:
[0024] In the case where the file verification result is inconsistent, obtain the file name with the file status information of the unchecked status from the file sending information table;
[0025] Based on the file name with the unchecked status and the file recipient information, obtain the corresponding file reception information from the file reception information table;
[0026] Determine the file transfer difference information based on the acquisition result of the corresponding file reception information.
[0027] Optionally, determining the file transfer difference information based on the acquisition result of the corresponding file reception information includes:
[0028] If the obtained result is that the corresponding file reception information is obtained, update the corresponding file status information in the file sending information table to the verified status;
[0029] If the obtained result is that the corresponding file reception information is not obtained, update the corresponding file status information in the file sending information table to the status of needing to be resent.
[0030] Optionally, determining the file transfer difference information according to the obtained result of the corresponding file reception information includes:
[0031] Filter out the file information with the file status information being the status of needing to be resent from the file sending information table as the file transfer difference information.
[0032] In a second aspect, an embodiment of the present application further provides a file transfer verification device, which is applied to a file verification party, and the file transfer verification device includes:
[0033] A first receiving module, configured to receive file sending information sent by a file sender;
[0034] A second receiving module, configured to receive file reception information sent by a file receiver;
[0035] A file verification module, configured to perform file verification according to the file sending information and the file reception information to obtain a file verification result, where the file verification result includes consistent verification and inconsistent verification;
[0036] A file verification result feedback module, configured to, when the file verification result is inconsistent verification, determine file transfer difference information according to the file sending information and the file reception information, and send the file transfer difference information to the file sender, so that the file sender resends the file according to the file transfer difference information.
[0037] In a third aspect, an embodiment of the present application further provides a device, including:
[0038] A processor; and a memory arranged to store computer-executable instructions, and when the executable instructions are executed, the processor executes any one of the foregoing file transfer verification methods.
[0039] In a fourth aspect, an embodiment of the present application further provides a computer program product, including computer programs / instructions, and when the computer programs / instructions are executed by a processor, any one of the foregoing file transfer verification methods is implemented.
[0040] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the file transfer verification method in the embodiments of the present application is executed by the file verification party, which first receives the file sending information sent by the file sender; then receives the file receiving information sent by the file receiver; then performs file verification based on the file sending information and the file receiving information to obtain a file verification result, which includes verification consistency and verification inconsistency; finally, when the file verification result is verification inconsistency, determines file transfer difference information based on the file sending information and the file receiving information, and sends the file transfer difference information to the file sender, so that the file sender resends the file based on the file transfer difference information. The file transfer verification method in the embodiments of the present application achieves data integrity of file transfer and efficient transmission of file data in a batch file transfer scenario. On the one hand, by decoupling the file verification process from the file transfer process, the number of file confirmation responses between the file sender and the receiver during the file transfer is reduced, thereby reducing the operations between the two parties of the file transfer and improving the transmission efficiency of the file data; on the other hand, the file verification party can filter out files that have not been successfully received based on the file information sent by the file sender and the receiver, making it easier for the file sender to resend the missing files and ensuring the integrity of the transmitted file data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1 A flowchart of a file transfer verification method according to an embodiment of the present application is shown;
[0043] Figure 2 This is a schematic diagram of a file transfer verification process in an embodiment of the present application;
[0044] Figure 3 This is a structural diagram of a file transmission and verification device in an embodiment of the present application;
[0045] Figure 4 This is an architectural diagram of a file transfer verification system in an embodiment of the present application;
[0046] Figure 5 This is a structural diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION
[0047] To make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the scope of protection of the present application.
[0048] The following will, with reference to the drawings, elaborate on the technical solutions provided by each embodiment of the present application.
[0049] The verification solution for the number of files sent and received based on the acknowledgment mechanism mainly includes the following steps:
[0050] 1) The file sender divides the batch of files to be transmitted into multiple data packets and generates a unique sequence number for each data packet;
[0051] 2) The file sender sends each data packet to the file receiver and waits for the acknowledgment from the receiver;
[0052] 3) After receiving the data packet, the file receiver checks it. If the check passes, it sends an acknowledgment to the file sender;
[0053] 4) After receiving the acknowledgment, the file sender continues to send the next data packet;
[0054] 5) If the file sender does not receive the acknowledgment within the set time, it will retransmit the data packet.
[0055] Although the above acknowledgment mechanism can ensure the data integrity of file transmission, it also has the following disadvantages:
[0056] 1) In the scenario of batch file transmission, the acknowledgment mechanism will increase the overhead of network bandwidth and processing time;
[0057] 2) In scenarios with high real-time requirements, the file sender needs to wait for the acknowledgment from the receiver to continue sending the next segment of data. In the scenario of file transmission failure, the failed file needs to be retransmitted, which will increase the overall transmission time and reduce the file processing speed, and cannot meet the requirements of high real-time.
[0058] Based on this, the embodiments of the present application provide a file transmission verification method. As Figure 1 shown, a flowchart of a file transmission verification method in the embodiments of the present application is provided. The file transmission verification method is executed by the file verifier, and the file transmission verification method at least includes the following steps S110 to step S140:
[0059] Step S110: Receive the file sending information sent by the file sender.
[0060] Combined Figure 2 , a schematic diagram of a file transfer verification process in an embodiment of the present application is provided. The file transfer verification method in the embodiment of the present application is executed by the file verifier. A communication connection is established between the file verifier and the file sender, and this connection can be implemented based on a specific network protocol (such as the Http protocol, etc.). During the process of sending a file, the file sender can package the file sending information according to a predetermined format and specification and send it to the file verifier through this communication connection. The file verifier listens to the corresponding port or channel, receives the data packet from the file sender in real time, and extracts the file sending information from the data packet according to the predetermined protocol parsing rules.
[0061] The file sending information can, for example, include the identification information of the file (such as the file name, file number, etc.) and the number of files sent, and can also include the information of the recipient who receives the file, etc., as one of the bases for subsequent file verification to ensure that the file verifier can accurately identify and verify the file.
[0062] Step S120: Receive the file receiving information sent by the file recipient.
[0063] Similarly, a communication connection is also established between the file verifier and the file recipient. After successfully receiving the file, the file recipient will generate file receiving information and send the file receiving information to the file verifier in a communication manner similar to that of the file sender. The file verifier listens to the corresponding port or channel, receives the data packet from the file recipient, and parses out the file receiving information.
[0064] The file receiving information can, for example, include the identification information of the file (such as the file name, file number, etc.), the number of files received, and the information of the file recipient, etc. These information are used to compare with the file sending information to determine whether the file has been successfully transferred.
[0065] Step S130: Perform file verification based on the file sending information and the file receiving information to obtain a file verification result, where the file verification result includes consistent verification and inconsistent verification.
[0066] After receiving the file sending information and the file receiving information, the file verifier can perform file verification based on the file sending information and the file receiving information. The purpose of the verification is to ensure that all the files sent by the file sender are successfully received by the recipient. According to the verification result of the file sending and receiving information, the file verifier will obtain a result of consistent verification or inconsistent verification. Consistent verification means that all the files sent by the file sender are successfully received by the recipient, while inconsistent verification means that the files sent by the file sender are not completely received by the recipient.
[0067] Step S140, in the case where the file verification result is inconsistent, determine file transfer difference information according to the file sending information and the file receiving information, and send the file transfer difference information to the file sender, so that the file sender can re-send the file according to the file transfer difference information.
[0068] If the file verification result is inconsistent, it is necessary to further determine the file transfer difference information by combining the file sending information and the file receiving information. The file transfer difference information refers to the file information that has been sent by the file sender but not successfully received by the receiving party, and these files need to be re-sent.
[0069] After determining the file transfer difference information, the file verifier needs to feedback the file transfer difference information to the file sender, so as to facilitate the file sender to directly reissue the file according to the file transfer difference information, and then ensure the integrity of the file received by the file receiving party.
[0070] The file transfer verification method of the embodiments of the present application realizes the data integrity of file transfer and the efficient transfer of file data in the scenario of batch file transfer. On the one hand, by decoupling the file verification process from the file transfer process, the number of file confirmation responses between the file sender and the receiver during file transfer is reduced, thereby reducing the operations between the two parties of file transfer and improving the transfer efficiency of file data; on the other hand, the file verifier can screen out the files that have not been successfully received according to the file information sent by the file sender and the receiver, which is convenient for the file sender to reissue the missing files and ensures the integrity of the transferred file data.
[0071] In some embodiments of the present application, after receiving the file sending information sent by the file sender, the file transfer verification method further includes: storing the file sending information in a file sending information table; after receiving the file receiving information sent by the file receiver, the file transfer verification method further includes: storing the file receiving information in a file receiving information table.
[0072] Continue to refer to Figure 2 , after receiving the file sending information sent by the file sender, it is necessary to register the file sending information, that is, store the file sending information in a specially designed file sending information table. This file sending information table can be a database table with a specific field structure to store file sending information, such as file name, file size, sending time, sender identifier, receiver identifier, sending status, etc. Specifically, which field information is included can be flexibly set by those skilled in the art according to actual needs and will not be specifically limited here.
[0073] Similarly, after receiving the file receiving information sent by the file recipient, it is necessary to register the file receiving information, that is, store the file receiving information in a specially designed file receiving information table. The file receiving information table can also be a database table with specific fields to store relevant information about file reception, such as file name, reception time, recipient identifier, sender identifier, etc. Specifically, which field information is included can be flexibly set by those skilled in the art according to actual needs and will not be specifically limited here.
[0074] By storing the file sending information and the file receiving information into the file sending information table and the file receiving information table respectively in the embodiments of the present application, the transmission process of each file can be detailedly recorded, providing a strong data basis for subsequent file verification.
[0075] In some embodiments of the present application, the file verification based on the file sending information and the file receiving information to obtain a file verification result includes: obtaining the file sending information from the file sending information table, where the file sending information includes the sending file name and the file recipient information; obtaining the file receiving information from the file receiving information table, where the file receiving information includes the received file name and the file recipient information; and performing file verification based on the file sending information and the file receiving information to obtain the file verification result.
[0076] Continue to refer to Figure 2 , when performing file verification, the file verifier respectively obtains the file sending information from the file sending information table and the file receiving information from the file receiving information table, and then verifies information such as the number of files and the file name based on the obtained file sending information and file receiving information.
[0077] Considering the actual application scenario, the file sender may send files to multiple file recipients. When obtaining the above file information from the database table, the file sending information of the file sender can be first obtained from the file sending information table. Since the file sending information includes the sending file name and the file recipient information, the corresponding file receiving information of the file recipient can be further obtained from the file receiving information table according to the file recipient information therein for verification. Of course, in the actual application scenario, there may also be a situation where a file recipient receives files sent by multiple file senders. Therefore, the files received by the same file recipient from different file senders can also be further distinguished and verified separately. For example, they can be distinguished according to the sender identifier in the file receiving information.
[0078] By obtaining detailed file sending information and file receiving information from the file sending information table and the file receiving information table respectively, key information in the file verification process can be obtained quickly and accurately, which avoids verification deviations caused by incomplete or incorrect information and improves the accuracy and efficiency of file verification.
[0079] In some embodiments of the present application, the file sending information further includes the number of sent files, and the file receiving information further includes the number of received files. The file verification based on the file sending information and the file receiving information to obtain a file verification result includes: comparing the number of sent files of the file sender with the number of received files of the file receiver; if the numbers are the same, determining that the file verification result is consistent; otherwise, determining that the file verification result is inconsistent.
[0080] As mentioned above, after the file sender completes file sending, it will send the sent file name, the number of sent files, and the file receiver information, etc. to the file verifier. After the file receiver completes file receiving, it will send the received file name, the number of received files, and the file receiver information, etc. to the file verifier. Therefore, when performing file sending and receiving verification, the number of files already sent by the file sender can be compared with the number of files actually received by the file receiver first. If the number of files is the same, the file verification result can be directly determined to be consistent. If the number of files is different, the file verification result can be determined to be inconsistent.
[0081] For example, if file sender A sends 10 files to file receiver B, and file receiver B also receives 10 files and these 10 files are from file sender A, then file receiver B has received complete file data. If the number of files received by file receiver B from file sender A is less than 10, it means that the file data received by file receiver B is incomplete.
[0082] Embodiments of the present application can timely detect problems such as file transmission failure or loss during the file transmission process through the verification of the file sending quantity and the received quantity, and thus can ensure the integrity of the file data received by the file receiver.
[0083] In some embodiments of the present application, the file sending information table further stores file status information. When the file verification result is inconsistent, determining the file transfer difference information according to the file sending information and the file receiving information includes: when the file verification result is inconsistent, obtaining the file name with the file status information of the unchecked state from the file sending information table; according to the file name in the unchecked state and the file receiving party information, obtaining the corresponding file receiving information from the file receiving information table; determining the file transfer difference information according to the obtaining result of the corresponding file receiving information.
[0084] In addition to storing basic file sending-related information, the file sending information table in the embodiments of the present application also stores file status information additionally. The file status information is used to identify different stages of the file in the transfer verification process, such as "unchecked", "verified", etc. This provides a key basis for status judgment in the subsequent verification process.
[0085] Continue to refer to Figure 2 , when the file verification result is inconsistent, a specific processing logic will be triggered. First, obtain all the file names with the file status information of "unchecked state" from the file sending information table. Since the foregoing embodiments are only based on the verification of the file quantity, in the case of inconsistent file quantities, it is necessary to further determine which files the file receiving party did not receive specifically. Therefore, at the initial stage of the execution of this processing logic, it can be considered that all the files sent by the file sending party this time are in the unchecked state, and then each unchecked file is verified and judged one by one.
[0086] For the currently traversed file name in the unchecked state and the corresponding file receiving party information (such as the receiving party number), the file receiving information corresponding to this file receiving party can be found from the file receiving information table, and then it can be determined whether the file corresponding to the currently traversed file name in the unchecked state has been successfully received by the file receiving party according to the search result. And so on, each unchecked file is verified one by one, so that the file information that has not been received by the file receiving party can be finally determined, that is, the above-mentioned file transfer difference information.
[0087] By introducing file status information, it is possible to clearly distinguish which files need to be verified, and only process the files in the unchecked state, avoiding the interference of verified files, thereby improving the accuracy of locating different files. At the same time, accurately searching for file receiving information according to the file name and file receiving party information further ensures the accuracy of file verification.
[0088] Only process the files in the unchecked state, reducing unnecessary calculation and query operations, and greatly improving the processing efficiency.
[0089] In some embodiments of the present application, determining the file transfer difference information according to the acquisition result of the corresponding file reception information includes: if the acquisition result is that the corresponding file reception information is acquired, updating the corresponding file status information to the verified status in the file sending information table; if the acquisition result is that the corresponding file reception information is not acquired, updating the corresponding file status information to the retransmission required status in the file sending information table.
[0090] Continue to refer to Figure 2 , if the file reception information corresponding to the file recipient can be acquired from the file reception information table, it indicates that the file corresponding to the file name in the unverified status currently traversed has been received by the file recipient. Therefore, the corresponding file status can be updated to verified. If the file reception information corresponding to the file recipient cannot be acquired from the file reception information table, it may indicate that the file is lost or the transmission fails during the transmission process. At this time, the corresponding file status needs to be updated to the retransmission required status so that the file sender can retransmit it later.
[0091] By updating the file status information to the "verified status" or "retransmission required status", the file status management in the file sending information table becomes clearer and more explicit, which helps the subsequent file sender to retransmit the files that need to be retransmitted, thereby ensuring the integrity of the file data received by the file recipient.
[0092] In some embodiments of the present application, determining the file transfer difference information according to the acquisition result of the corresponding file reception information includes: screening out the file information with the file status information of the retransmission required status from the file sending information table as the file transfer difference information.
[0093] Based on the foregoing embodiments, the statuses of all unverified files in the file sending information table are updated to the "verified status" or "retransmission required status". The "verified status" indicates the files successfully received by the file recipient, while the "retransmission required status" indicates the files not received by the file recipient. Therefore, all the file information with the "retransmission required status" can be screened out from the file sending information table. These files are the files that need to be retransmitted by the file sender, that is, used as the file transfer difference information.
[0094] By recording and maintaining the file sending status information through the file sending information table, the file information that needs to be retransmitted can be quickly and timely located, thereby improving the integrity of file reception and the file sending and receiving efficiency.
[0095] In summary, the key points of the file transfer verification method of the present application mainly lie in:
[0096] 1) Implement the verification of the number of files using the proxy method. The file sender and receiver of this application provide file information to the file verifier, and the file verifier verifies the file sending and receiving situation, reducing the coupling degree between the file transmission process and the verification process;
[0097] 2) Simplify the file transmission process and improve the transmission efficiency. During the file sending and receiving by the file sender and receiver of this application, only file sending and receiving operations are performed. After the file transmission is completed, the information is sent to the file verifier, reducing the confirmation and response operations between the file sender and receiver during file transmission;
[0098] 3) Ensure the integrity of the transmitted file quantity. This application verifies the number of files sent and received through the file verifier, checks the file sending and receiving results. If the sending and receiving quantities are inconsistent, the file verifier counts the information of the files not sent and notifies the file sender to re - send the files.
[0099] This application adopts the method of decoupling the file sending and receiving process from the verification process, reducing the impact of the sender's frequent confirmation of the file reception result on the overall file transmission efficiency, and improving the efficiency of batch file transmission. By uniformly comparing the file sending result and the receiving result through the file verifier, if there are files that have not been successfully received, the sender re - issues the files, ensuring the integrity of the file transmission.
[0100] The embodiment of this application also provides a file transmission verification device 300, as Figure 3 shown, providing a structural schematic diagram of a file transmission verification device in the embodiment of this application. The file transmission verification device 300 is applied to the file verifier. The file transmission verification device 300 at least includes: a first receiving module 310, a second receiving module 320, a file verification module 330, and a file verification result feedback module 340, where:
[0101] The first receiving module 310 is used to receive the file sending information sent by the file sender;
[0102] The second receiving module 320 is used to receive the file receiving information sent by the file receiver;
[0103] The file verification module 330 is used to perform file verification based on the file sending information and the file receiving information to obtain a file verification result, and the file verification result includes consistent verification and inconsistent verification;
[0104] The file verification result feedback module 340 is used to, when the file verification result is inconsistent verification, determine file transmission difference information based on the file sending information and the file receiving information, and send the file transmission difference information to the file sender, so that the file sender re - sends the files according to the file transmission difference information.
[0105] In some embodiments of the present application, the file transfer verification device 300 further includes: a file information registration module, configured to store the file sending information into a file sending information table after receiving the file sending information sent by a file sender; and further configured to store the file receiving information into a file receiving information table after receiving the file receiving information sent by a file receiver.
[0106] In some embodiments of the present application, the file verification module 330 is specifically configured to: obtain the file sending information from the file sending information table, where the file sending information includes a sending file name and file receiver information; obtain the file receiving information from the file receiving information table, where the file receiving information includes a receiving file name and file receiver information; and perform file verification based on the file sending information and the file receiving information to obtain the file verification result.
[0107] In some embodiments of the present application, the file sending information further includes the number of sent files, and the file receiving information further includes the number of received files. The file verification module 330 is specifically configured to: verify the number of sent files of the file sender and the number of received files of the file receiver; if the numbers are consistent, determine that the file verification result is consistent; otherwise, determine that the file verification result is inconsistent.
[0108] In some embodiments of the present application, the file status information is further stored in the file sending information table. The file verification result feedback module 340 is specifically configured to: in the case where the file verification result is inconsistent, obtain the file name with the file status information being the unverified status from the file sending information table; obtain the corresponding file receiving information from the file receiving information table according to the file name with the unverified status and the file receiver information; and determine the file transfer difference information according to the obtaining result of the corresponding file receiving information.
[0109] In some embodiments of the present application, the file verification result feedback module 340 is specifically configured to: if the obtaining result is that the corresponding file receiving information is obtained, update the corresponding file status information to the verified status in the file sending information table; if the obtaining result is that the corresponding file receiving information is not obtained, update the corresponding file status information to the retransmission required status in the file sending information table.
[0110] In some embodiments of the present application, the file verification result feedback module 340 is specifically configured to: screen out the file information with the file status information being the retransmission required status from the file sending information table as the file transfer difference information.
[0111] It can be understood that the above file transfer verification device can implement each step of the file transfer verification method provided in the foregoing embodiments. The relevant explanations regarding the file transfer verification method are applicable to the file transfer verification device and will not be elaborated herein.
[0112] For the convenience of understanding the above embodiments, as Figure 4 shown, an architecture diagram of a file transfer verification system in an embodiment of the present application is provided, and the core links involved in its working process are as follows:
[0113] F1: The file sender sends a batch of files to the file receiver;
[0114] F2: The file sender reissues the missing files to the receiver;
[0115] Q2: After the file sender finishes sending the files, it sends information such as the file name and the file receiver to the file information registration module of the file verifier.
[0116] Q1: After the file receiver finishes receiving the files, it sends information such as the file name and the file receiver to the file information registration module of the file verifier, notifying the file verifier to start verifying the files.
[0117] Q3: The file information registration module saves the file information to the database.
[0118] C1: The file information registration module notifies the file verification module to start verification;
[0119] C2: The file verification module obtains the file sending and receiving information from the database and verifies the number of files;
[0120] C3: The file verification module notifies the file verification result feedback module to send the verification result;
[0121] C4: The file verification result feedback module feeds back the verification result to the sender;
[0122] C5: The file verification result feedback module updates the data file record.
[0123] Figure 5 is a schematic structural diagram of a device in an embodiment of the present application. As Figure 5 shown, the device includes one or more processors (or processing modules), and may further include one or more memories coupled to the processor, and may further include a communication module coupled to the processor.
[0124] The communication module can be used to communicate with other devices or apparatuses, such as sending or receiving data and / or signals. The communication module can have at least one communication module for communication. The communication module can include any interface necessary for communicating with other devices. Exemplarily, the communication module can be a transceiver, a circuit, a bus, a module, or other types of communication modules.
[0125] The processor can include but is not limited to at least one of the following: a general-purpose computer, a special-purpose computer, a microcontroller, a digital signal controller (DSP), or one or more in a multi-core controller architecture based on a controller. The device can have multiple processors, such as an application-specific integrated circuit chip, which is subordinate to a clock synchronized with the main processor in time.
[0126] The memory can include one or more non-volatile memories and one or more volatile memories. Examples of non-volatile memories include but are not limited to at least one of the following: read-only memory (ROM), electrically programmable read-only memory (EPROM), flash memory, hard disk, compact disc (CD), digital video disc (DVD), or other magnetic storage and / or optical storage. Examples of volatile memories include but are not limited to at least one of the following: random access memory (RAM), or other volatile memories that do not persist during a power outage duration.
[0127] The computer program includes computer-executable instructions executed by an associated processor. The program can be stored in the ROM. The processor can perform any appropriate actions and processes by loading the program into the RAM.
[0128] Possible implementations of the present application can be realized by means of the program, such that the communication device can execute any process discussed in the foregoing embodiments. Possible implementations of the present application can also be realized by hardware or by a combination of software and hardware.
[0129] In some embodiments, the program can be tangibly embodied in a computer-readable storage medium, which can be included in the device (such as in the memory) or other storage devices accessible by the device. The program can be loaded from the computer-readable storage medium into the RAM for execution. The computer-readable storage medium can include any type of tangible non-volatile memory, such as ROM, EPROM, flash memory, hard disk, CD, DVD, etc.
[0130] The embodiments of the present application also provide a computer-readable storage medium, on which computer instructions or program codes are stored. When the processor runs the instructions or the program codes, the processor is caused to execute the methods and functions involved in any of the above embodiments. The computer-readable medium can be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, a data center, etc. that includes one or more integrated available media. More detailed examples of the computer-readable storage medium include electrical connections with one or more wires, magnetic media (such as disks, floppy disks, hard disks, magnetic tapes, magnetic storage devices), optical media (such as optical storage devices, DVDs), semiconductor media (such as solid-state drives), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), or any suitable combination thereof, etc.
[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The embodiments of the present application also provide at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes one or more computer-executable instructions, such as instructions included in program modules, which are executed in a device on a target real or virtual processor to execute the processes, methods, and functions involved in any of the above embodiments. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.).
[0132] The embodiments of the present application also propose a computer program product, including a computer program or instruction. When the computer program or instruction runs on a computer, it enables the computer to execute the processes, methods, and functions in the above embodiments. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In various embodiments, the functions of program modules can be combined or divided as needed. The machine-executable instructions for program modules can be executed within local or distributed devices. In a distributed device, program modules can be located in local and remote storage media.
[0133] Generally, the various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software, which can be executed by a controller, microprocessor, or other computing device. Although the various aspects of the embodiments of the present disclosure are shown and described as block diagrams, flowcharts, or using some other graphical representation, it should be understood that the blocks, devices, systems, techniques, or methods described herein can be implemented as, by way of non-limiting example, hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or a controller or other computing device, or some combination thereof.
[0134] It should be noted that although the embodiments of the present application are described above in conjunction with the accompanying drawings respectively, the above embodiments are not independent of each other, and they can also be combined to obtain other embodiments. The ways, situations, categories, and the division of embodiments in the embodiments of the present application are only for the convenience of description and should not constitute a special limitation. The features in various ways, categories, situations, and embodiments can be combined with each other under logical conditions. The various embodiments of the present application can be combined arbitrarily to achieve different technical effects. The embodiments of the present application will no longer list various combinations.
[0135] In addition, although the operations of the method of the present disclosure are described in a specific order in the drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the steps depicted in the flowchart can change the execution order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step for execution, and / or one step can be decomposed into multiple steps for execution. It should also be noted that the features and functions of two or more devices according to the present disclosure can be embodied in one device. Conversely, the features and functions of one device described above can be further divided and embodied by multiple devices.
[0136] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising said element.
[0137] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A file transfer verification method, characterized in that, The file transfer verification method is executed by a file verifier, and the file transfer verification method includes: Receiving file sending information sent by a file sender; Receiving file receiving information sent by a file receiver; Performing file verification based on the file sending information and the file receiving information to obtain a file verification result, where the file verification result includes consistent verification and inconsistent verification; In the case where the file verification result is inconsistent verification, determining file transfer difference information based on the file sending information and the file receiving information, and sending the file transfer difference information to the file sender so that the file sender can resend the file according to the file transfer difference information.
2. The file transfer verification method according to claim 1, wherein After receiving the file sending information sent by the file sender, the file transfer verification method further includes: Storing the file sending information in a file sending information table; After receiving the file receiving information sent by the file receiver, the file transfer verification method further includes: Storing the file receiving information in a file receiving information table.
3. The file transfer verification method according to claim 2, wherein The performing file verification based on the file sending information and the file receiving information to obtain a file verification result includes: Obtaining the file sending information from the file sending information table, where the file sending information includes a sending file name and file receiver information; Obtaining the file receiving information from the file receiving information table, where the file receiving information includes a receiving file name and file receiver information; Performing file verification based on the file sending information and the file receiving information to obtain the file verification result.
4. The file transfer verification method according to claim 1 or 3, characterized in that The file sending information further includes the number of sent files, and the file receiving information further includes the number of received files. The performing file verification based on the file sending information and the file receiving information to obtain a file verification result includes: Verifying the number of sent files of the file sender with the number of received files of the file receiver; If the numbers are consistent, determining that the file verification result is consistent verification; Otherwise, determining that the file verification result is inconsistent verification.
5. The file transfer verification method according to claim 3, wherein File status information is further stored in the file sending information table. In the case where the file verification result is inconsistent verification, determining the file transfer difference information based on the file sending information and the file receiving information includes: In the case where the file verification result is inconsistent verification, obtaining the file name with the file status information of the un-verified status from the file sending information table; Obtaining the corresponding file receiving information from the file receiving information table according to the file name with the un-verified status and the file receiver information; Determining the file transfer difference information according to the obtaining result of the corresponding file receiving information.
6. The file transfer verification method according to claim 5, wherein The determining the file transfer difference information according to the obtaining result of the corresponding file receiving information includes: If the obtaining result is that the corresponding file receiving information is obtained, updating the corresponding file status information to the verified status in the file sending information table; If the obtaining result is that the corresponding file receiving information is not obtained, updating the corresponding file status information to the re-send required status in the file sending information table.
7. The file transfer verification method according to claim 6, wherein Determining the file transfer difference information according to the acquisition result of the information received according to the corresponding file includes: Screening out the file information with the file status information being the retransmission required status from the file sending information table as the file transfer difference information.
8. A file transfer verification device, characterized in that, The file transfer verification device is applied to the file verifier, and the file transfer verification device includes: A first receiving module, configured to receive file sending information sent by a file sender; A second receiving module, configured to receive file receiving information sent by a file receiver; A file verification module, configured to perform file verification according to the file sending information and the file receiving information to obtain a file verification result, where the file verification result includes consistent verification and inconsistent verification; A file verification result feedback module, configured to, when the file verification result is inconsistent verification, determine file transfer difference information according to the file sending information and the file receiving information, and send the file transfer difference information to the file sender, so that the file sender retransmits the file according to the file transfer difference information.
9. A device, including: A processor; And a memory arranged to store computer-executable instructions, where the executable instructions, when executed, cause the processor to execute the file transfer verification method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, the file transfer verification method according to any one of claims 1 to 7 is implemented.